@osdk/cli 0.29.0-beta.3 → 0.29.0-beta.5

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 (100) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/esm/{acorn-JD7YOXOW.js → acorn-OOLA2SYL.js} +1429 -1263
  3. package/build/esm/acorn-OOLA2SYL.js.map +1 -0
  4. package/build/esm/angular-B3DVBAJV.js +3921 -0
  5. package/build/esm/angular-B3DVBAJV.js.map +1 -0
  6. package/build/esm/{babel-QGX3VV5S.js → babel-QGU36NF2.js} +4749 -4416
  7. package/build/esm/babel-QGU36NF2.js.map +1 -0
  8. package/build/esm/{chunk-GQTSTRG7.js → chunk-2R54QG3I.js} +7 -6
  9. package/build/esm/chunk-2R54QG3I.js.map +1 -0
  10. package/build/esm/{chunk-XN5PUPF7.js → chunk-5WP6J4UN.js} +3 -3
  11. package/build/esm/{chunk-XN5PUPF7.js.map → chunk-5WP6J4UN.js.map} +1 -1
  12. package/build/esm/{chunk-HFQXGJUG.js → chunk-CZNX7NAA.js} +8 -8
  13. package/build/esm/{chunk-HFQXGJUG.js.map → chunk-CZNX7NAA.js.map} +1 -1
  14. package/build/esm/{chunk-MRRQIWFU.js → chunk-HDRBKETK.js} +3 -3
  15. package/build/esm/{chunk-MRRQIWFU.js.map → chunk-HDRBKETK.js.map} +1 -1
  16. package/build/esm/{chunk-WHNUNGND.js → chunk-QCQEOFJ7.js} +15 -10
  17. package/build/esm/chunk-QCQEOFJ7.js.map +1 -0
  18. package/build/esm/{chunk-DXFUAG7W.js → chunk-SEG3TN7G.js} +7 -7
  19. package/build/esm/{chunk-DXFUAG7W.js.map → chunk-SEG3TN7G.js.map} +1 -1
  20. package/build/esm/{chunk-MU732G7I.js → chunk-TGQMPTOO.js} +6 -5
  21. package/build/esm/chunk-TGQMPTOO.js.map +1 -0
  22. package/build/esm/{chunk-5PX3HSZR.js → chunk-WLPJIKJV.js} +3 -3
  23. package/build/esm/{chunk-5PX3HSZR.js.map → chunk-WLPJIKJV.js.map} +1 -1
  24. package/build/esm/{chunk-PFFPV5JQ.js → chunk-ZAWCQ47H.js} +9 -9
  25. package/build/esm/chunk-ZAWCQ47H.js.map +1 -0
  26. package/build/esm/estree-ATGZ6OGQ.js +6145 -0
  27. package/build/esm/estree-ATGZ6OGQ.js.map +1 -0
  28. package/build/esm/find-up-JM7QWHT3.js +4 -0
  29. package/build/esm/{find-up-W7EXJFQH.js.map → find-up-JM7QWHT3.js.map} +1 -1
  30. package/build/esm/flow-GUZBCHQS.js +27169 -0
  31. package/build/esm/flow-GUZBCHQS.js.map +1 -0
  32. package/build/esm/{glimmer-LTNZJIJW.js → glimmer-K2WK52BN.js} +2642 -2669
  33. package/build/esm/glimmer-K2WK52BN.js.map +1 -0
  34. package/build/esm/{graphql-KTAUFGIO.js → graphql-MBGHR3ZR.js} +543 -529
  35. package/build/esm/graphql-MBGHR3ZR.js.map +1 -0
  36. package/build/esm/{handleGenerate-WOXIHSCJ.js → handleGenerate-KGS77ERN.js} +4659 -8558
  37. package/build/esm/handleGenerate-KGS77ERN.js.map +1 -0
  38. package/build/esm/{html-GMDGBLFG.js → html-IRNVR4MI.js} +1485 -1328
  39. package/build/esm/html-IRNVR4MI.js.map +1 -0
  40. package/build/esm/index.js +27 -18
  41. package/build/esm/index.js.map +1 -1
  42. package/build/esm/loginFlow-AGXNBVJB.js +4 -0
  43. package/build/esm/{loginFlow-HRPXRVXN.js.map → loginFlow-AGXNBVJB.js.map} +1 -1
  44. package/build/esm/markdown-N3ITOTMK.js +6697 -0
  45. package/build/esm/markdown-N3ITOTMK.js.map +1 -0
  46. package/build/esm/meriyah-LUFL36FF.js +4343 -0
  47. package/build/esm/meriyah-LUFL36FF.js.map +1 -0
  48. package/build/esm/{postcss-HFWVKWXX.js → postcss-TV6UK7MR.js} +2266 -2173
  49. package/build/esm/postcss-TV6UK7MR.js.map +1 -0
  50. package/build/esm/{siteDeployCommand-YDROISOZ.js → siteDeployCommand-CWR5F4EH.js} +11 -11
  51. package/build/esm/{siteDeployCommand-YDROISOZ.js.map → siteDeployCommand-CWR5F4EH.js.map} +1 -1
  52. package/build/esm/typescript-KPTOIHC3.js +13078 -0
  53. package/build/esm/typescript-KPTOIHC3.js.map +1 -0
  54. package/build/esm/{versionDeleteCommand-VIPTBZ2L.js → versionDeleteCommand-5KF34BQE.js} +7 -7
  55. package/build/esm/{versionDeleteCommand-VIPTBZ2L.js.map → versionDeleteCommand-5KF34BQE.js.map} +1 -1
  56. package/build/esm/{versionDeleteCommand-HUCQPSGV.js → versionDeleteCommand-5ZF5YLI4.js} +7 -7
  57. package/build/esm/{versionDeleteCommand-HUCQPSGV.js.map → versionDeleteCommand-5ZF5YLI4.js.map} +1 -1
  58. package/build/esm/{versionGetCommand-SAF7DVRA.js → versionGetCommand-JCTQEP3R.js} +6 -6
  59. package/build/esm/{versionGetCommand-SAF7DVRA.js.map → versionGetCommand-JCTQEP3R.js.map} +1 -1
  60. package/build/esm/{versionInfoCommand-DK25W5U7.js → versionInfoCommand-FCPKK743.js} +6 -6
  61. package/build/esm/{versionInfoCommand-DK25W5U7.js.map → versionInfoCommand-FCPKK743.js.map} +1 -1
  62. package/build/esm/{versionListCommand-MDBG5UYM.js → versionListCommand-6KQHQNSI.js} +6 -6
  63. package/build/esm/{versionListCommand-MDBG5UYM.js.map → versionListCommand-6KQHQNSI.js.map} +1 -1
  64. package/build/esm/{versionListCommand-VPPGAYL7.js → versionListCommand-HSSUX52Q.js} +6 -6
  65. package/build/esm/{versionListCommand-VPPGAYL7.js.map → versionListCommand-HSSUX52Q.js.map} +1 -1
  66. package/build/esm/{versionSetCommand-H34E5M4G.js → versionSetCommand-X4B2SNU4.js} +6 -6
  67. package/build/esm/{versionSetCommand-H34E5M4G.js.map → versionSetCommand-X4B2SNU4.js.map} +1 -1
  68. package/build/esm/{versionUnsetCommand-DEHOEXY6.js → versionUnsetCommand-FPJ4K56H.js} +7 -7
  69. package/build/esm/{versionUnsetCommand-DEHOEXY6.js.map → versionUnsetCommand-FPJ4K56H.js.map} +1 -1
  70. package/build/esm/{widgetSetDeployCommand-3UOFO3I5.js → widgetSetDeployCommand-N34DLLLN.js} +10 -10
  71. package/build/esm/{widgetSetDeployCommand-3UOFO3I5.js.map → widgetSetDeployCommand-N34DLLLN.js.map} +1 -1
  72. package/build/esm/{yaml-AZTVLK7P.js → yaml-LD5K7H4C.js} +1294 -1270
  73. package/build/esm/yaml-LD5K7H4C.js.map +1 -0
  74. package/package.json +11 -11
  75. package/build/esm/acorn-JD7YOXOW.js.map +0 -1
  76. package/build/esm/angular-3AJ2SFX7.js +0 -1981
  77. package/build/esm/angular-3AJ2SFX7.js.map +0 -1
  78. package/build/esm/babel-QGX3VV5S.js.map +0 -1
  79. package/build/esm/chunk-GQTSTRG7.js.map +0 -1
  80. package/build/esm/chunk-MU732G7I.js.map +0 -1
  81. package/build/esm/chunk-PFFPV5JQ.js.map +0 -1
  82. package/build/esm/chunk-WHNUNGND.js.map +0 -1
  83. package/build/esm/estree-KG4K5QQZ.js +0 -6035
  84. package/build/esm/estree-KG4K5QQZ.js.map +0 -1
  85. package/build/esm/find-up-W7EXJFQH.js +0 -4
  86. package/build/esm/flow-JJAOFHVR.js +0 -26049
  87. package/build/esm/flow-JJAOFHVR.js.map +0 -1
  88. package/build/esm/glimmer-LTNZJIJW.js.map +0 -1
  89. package/build/esm/graphql-KTAUFGIO.js.map +0 -1
  90. package/build/esm/handleGenerate-WOXIHSCJ.js.map +0 -1
  91. package/build/esm/html-GMDGBLFG.js.map +0 -1
  92. package/build/esm/loginFlow-HRPXRVXN.js +0 -4
  93. package/build/esm/markdown-HFDLFZ5Y.js +0 -6529
  94. package/build/esm/markdown-HFDLFZ5Y.js.map +0 -1
  95. package/build/esm/meriyah-M2H255YT.js +0 -4105
  96. package/build/esm/meriyah-M2H255YT.js.map +0 -1
  97. package/build/esm/postcss-HFWVKWXX.js.map +0 -1
  98. package/build/esm/typescript-LVGK7LR7.js +0 -19653
  99. package/build/esm/typescript-LVGK7LR7.js.map +0 -1
  100. package/build/esm/yaml-AZTVLK7P.js.map +0 -1
@@ -1,294 +1,256 @@
1
- import { init_esm_shims } from './chunk-MU732G7I.js';
1
+ import { init_esm_shims } from './chunk-TGQMPTOO.js';
2
2
 
3
- // ../../node_modules/.pnpm/prettier@3.2.5/node_modules/prettier/plugins/html.mjs
3
+ // ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/html.mjs
4
4
  init_esm_shims();
5
- var Js = Object.defineProperty;
6
- var Yr = (t8, e) => {
7
- for (var r in e) Js(t8, r, {
5
+ var on = Object.defineProperty;
6
+ var un = (t7) => {
7
+ throw TypeError(t7);
8
+ };
9
+ var Ai = (t7, e, r) => e in t7 ? on(t7, e, {
10
+ enumerable: true,
11
+ configurable: true,
12
+ writable: true,
13
+ value: r
14
+ }) : t7[e] = r;
15
+ var ln = (t7, e) => {
16
+ for (var r in e) on(t7, r, {
8
17
  get: e[r],
9
18
  enumerable: true
10
19
  });
11
20
  };
12
- var jr = (t8, e, r) => {
13
- if (!e.has(t8)) throw TypeError("Cannot " + r);
14
- };
15
- var Q = (t8, e, r) => (jr(t8, e, "read from private field"), e.get(t8));
16
- var Kr = (t8, e, r) => {
17
- if (e.has(t8)) throw TypeError("Cannot add the same private member more than once");
18
- e instanceof WeakSet ? e.add(t8) : e.set(t8, r);
19
- };
20
- var Qr = (t8, e, r, n) => (jr(t8, e, "write to private field"), e.set(t8, r), r);
21
- var Ur = {};
22
- Yr(Ur, {
23
- languages: () => Cs,
24
- options: () => _s,
25
- parsers: () => Vr,
26
- printers: () => Lo
21
+ var lr = (t7, e, r) => Ai(t7, typeof e != "symbol" ? e + "" : e, r);
22
+ var cn = (t7, e, r) => e.has(t7) || un("Cannot " + r);
23
+ var R = (t7, e, r) => (cn(t7, e, "read from private field"), r ? r.call(t7) : e.get(t7));
24
+ var At = (t7, e, r) => e.has(t7) ? un("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t7) : e.set(t7, r);
25
+ var pn = (t7, e, r, n) => (cn(t7, e, "write to private field"), e.set(t7, r), r);
26
+ var rn = {};
27
+ ln(rn, {
28
+ languages: () => Hs,
29
+ options: () => Us,
30
+ parsers: () => tn,
31
+ printers: () => uu
27
32
  });
28
- var Zs = (t8, e, r, n) => {
29
- if (!(t8 && e == null)) return e.replaceAll ? e.replaceAll(r, n) : r.global ? e.replace(r, n) : e.split(r).join(n);
33
+ var Di = (t7, e, r, n) => {
34
+ if (!(t7 && e == null)) return e.replaceAll ? e.replaceAll(r, n) : r.global ? e.replace(r, n) : e.split(r).join(n);
30
35
  };
31
- var w = Zs;
32
- var xe = "string";
33
- var ke = "array";
34
- var Be = "cursor";
35
- var ue = "indent";
36
- var le = "align";
37
- var Le = "trim";
38
- var te = "group";
39
- var ce = "fill";
40
- var pe = "if-break";
41
- var he = "indent-if-break";
42
- var Fe = "line-suffix";
43
- var Pe = "line-suffix-boundary";
44
- var Y = "line";
45
- var Ne = "label";
46
- var fe = "break-parent";
47
- var mt = /* @__PURE__ */ new Set([Be, ue, le, Le, te, ce, pe, he, Fe, Pe, Y, Ne, fe]);
48
- function ei(t8) {
49
- if (typeof t8 == "string") return xe;
50
- if (Array.isArray(t8)) return ke;
51
- if (!t8) return;
36
+ var w = Di;
37
+ var we = "string";
38
+ var ze = "array";
39
+ var Ye = "cursor";
40
+ var be = "indent";
41
+ var Te = "align";
42
+ var je = "trim";
43
+ var xe = "group";
44
+ var ke = "fill";
45
+ var ce = "if-break";
46
+ var Be = "indent-if-break";
47
+ var Ke = "line-suffix";
48
+ var Xe = "line-suffix-boundary";
49
+ var j = "line";
50
+ var Qe = "label";
51
+ var Le = "break-parent";
52
+ var Dt = /* @__PURE__ */ new Set([Ye, be, Te, je, xe, ke, ce, Be, Ke, Xe, j, Qe, Le]);
53
+ var vi = (t7, e, r) => {
54
+ if (!(t7 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[r < 0 ? e.length + r : r] : e.at(r);
55
+ };
56
+ var K = vi;
57
+ function yi(t7) {
58
+ if (typeof t7 == "string") return we;
59
+ if (Array.isArray(t7)) return ze;
60
+ if (!t7) return;
52
61
  let {
53
62
  type: e
54
- } = t8;
55
- if (mt.has(e)) return e;
63
+ } = t7;
64
+ if (Dt.has(e)) return e;
56
65
  }
57
- var Ie = ei;
58
- var ti = (t8) => new Intl.ListFormat("en-US", {
66
+ var Fe = yi;
67
+ var wi = (t7) => new Intl.ListFormat("en-US", {
59
68
  type: "disjunction"
60
- }).format(t8);
61
- function ri(t8) {
62
- let e = t8 === null ? "null" : typeof t8;
69
+ }).format(t7);
70
+ function bi(t7) {
71
+ let e = t7 === null ? "null" : typeof t7;
63
72
  if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
64
73
  Expected it to be 'string' or 'object'.`;
65
- if (Ie(t8)) throw new Error("doc is valid.");
66
- let r = Object.prototype.toString.call(t8);
74
+ if (Fe(t7)) throw new Error("doc is valid.");
75
+ let r = Object.prototype.toString.call(t7);
67
76
  if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
68
- let n = ti([...mt].map((s) => `'${s}'`));
69
- return `Unexpected doc.type '${t8.type}'.
77
+ let n = wi([...Dt].map((s) => `'${s}'`));
78
+ return `Unexpected doc.type '${t7.type}'.
70
79
  Expected it to be ${n}.`;
71
80
  }
72
- var rr = class extends Error {
81
+ var cr = class extends Error {
73
82
  name = "InvalidDocError";
74
83
  constructor(e) {
75
- super(ri(e)), this.doc = e;
84
+ super(bi(e)), this.doc = e;
76
85
  }
77
86
  };
78
- var gt = rr;
79
- var Xr = () => {
87
+ var pr = cr;
88
+ function hr(t7, e) {
89
+ if (typeof t7 == "string") return e(t7);
90
+ let r = /* @__PURE__ */ new Map();
91
+ return n(t7);
92
+ function n(i) {
93
+ if (r.has(i)) return r.get(i);
94
+ let a = s(i);
95
+ return r.set(i, a), a;
96
+ }
97
+ function s(i) {
98
+ switch (Fe(i)) {
99
+ case ze:
100
+ return e(i.map(n));
101
+ case ke:
102
+ return e({
103
+ ...i,
104
+ parts: i.parts.map(n)
105
+ });
106
+ case ce:
107
+ return e({
108
+ ...i,
109
+ breakContents: n(i.breakContents),
110
+ flatContents: n(i.flatContents)
111
+ });
112
+ case xe: {
113
+ let {
114
+ expandedStates: a,
115
+ contents: o
116
+ } = i;
117
+ return a ? (a = a.map(n), o = a[0]) : o = n(o), e({
118
+ ...i,
119
+ contents: o,
120
+ expandedStates: a
121
+ });
122
+ }
123
+ case Te:
124
+ case be:
125
+ case Be:
126
+ case Qe:
127
+ case Ke:
128
+ return e({
129
+ ...i,
130
+ contents: n(i.contents)
131
+ });
132
+ case we:
133
+ case Ye:
134
+ case je:
135
+ case Xe:
136
+ case j:
137
+ case Le:
138
+ return e(i);
139
+ default:
140
+ throw new pr(i);
141
+ }
142
+ }
143
+ }
144
+ function B(t7, e = hn) {
145
+ return hr(t7, (r) => typeof r == "string" ? H(e, r.split(`
146
+ `)) : r);
147
+ }
148
+ var mr = () => {
80
149
  };
81
- var dt = Xr;
82
- function L(t8) {
150
+ var fr = mr;
151
+ function k(t7) {
83
152
  return {
84
- type: ue,
85
- contents: t8
153
+ type: be,
154
+ contents: t7
86
155
  };
87
156
  }
88
- function Jr(t8, e) {
157
+ function fn(t7, e) {
89
158
  return {
90
- type: le,
159
+ type: Te,
91
160
  contents: e,
92
- n: t8
161
+ n: t7
93
162
  };
94
163
  }
95
- function E(t8, e = {}) {
96
- return dt(e.expandedStates), {
97
- type: te,
164
+ function E(t7, e = {}) {
165
+ return fr(e.expandedStates), {
166
+ type: xe,
98
167
  id: e.id,
99
- contents: t8,
168
+ contents: t7,
100
169
  break: !!e.shouldBreak,
101
170
  expandedStates: e.expandedStates
102
171
  };
103
172
  }
104
- function Zr(t8) {
105
- return Jr(Number.NEGATIVE_INFINITY, t8);
173
+ function dn(t7) {
174
+ return fn(Number.NEGATIVE_INFINITY, t7);
106
175
  }
107
- function en(t8) {
108
- return Jr({
176
+ function gn(t7) {
177
+ return fn({
109
178
  type: "root"
110
- }, t8);
179
+ }, t7);
111
180
  }
112
- function Ct(t8) {
181
+ function vt(t7) {
113
182
  return {
114
- type: ce,
115
- parts: t8
183
+ type: ke,
184
+ parts: t7
116
185
  };
117
186
  }
118
- function me(t8, e = "", r = {}) {
187
+ function pe(t7, e = "", r = {}) {
119
188
  return {
120
- type: pe,
121
- breakContents: t8,
189
+ type: ce,
190
+ breakContents: t7,
122
191
  flatContents: e,
123
192
  groupId: r.groupId
124
193
  };
125
194
  }
126
- function tn(t8, e) {
195
+ function Cn(t7, e) {
127
196
  return {
128
- type: he,
129
- contents: t8,
197
+ type: Be,
198
+ contents: t7,
130
199
  groupId: e.groupId,
131
200
  negate: e.negate
132
201
  };
133
202
  }
134
203
  var ne = {
135
- type: fe
204
+ type: Le
136
205
  };
137
- var ni = {
138
- type: Y,
206
+ var xi = {
207
+ type: j,
139
208
  hard: true
140
209
  };
141
- var si = {
142
- type: Y,
210
+ var ki = {
211
+ type: j,
143
212
  hard: true,
144
213
  literal: true
145
214
  };
146
- var A = {
147
- type: Y
215
+ var _ = {
216
+ type: j
148
217
  };
149
218
  var v = {
150
- type: Y,
219
+ type: j,
151
220
  soft: true
152
221
  };
153
- var S = [ni, ne];
154
- var rn = [si, ne];
155
- function M(t8, e) {
222
+ var S = [xi, ne];
223
+ var hn = [ki, ne];
224
+ function H(t7, e) {
156
225
  let r = [];
157
- for (let n = 0; n < e.length; n++) n !== 0 && r.push(t8), r.push(e[n]);
226
+ for (let n = 0; n < e.length; n++) n !== 0 && r.push(t7), r.push(e[n]);
158
227
  return r;
159
228
  }
160
- var ii = (t8, e, r) => {
161
- if (!(t8 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[r < 0 ? e.length + r : r] : e.at(r);
162
- };
163
- var X = ii;
164
- function St(t8, e) {
165
- if (typeof t8 == "string") return e(t8);
166
- let r = /* @__PURE__ */ new Map();
167
- return n(t8);
168
- function n(i) {
169
- if (r.has(i)) return r.get(i);
170
- let a = s(i);
171
- return r.set(i, a), a;
172
- }
173
- function s(i) {
174
- switch (Ie(i)) {
175
- case ke:
176
- return e(i.map(n));
177
- case ce:
178
- return e({
179
- ...i,
180
- parts: i.parts.map(n)
181
- });
182
- case pe:
183
- return e({
184
- ...i,
185
- breakContents: n(i.breakContents),
186
- flatContents: n(i.flatContents)
187
- });
188
- case te: {
189
- let {
190
- expandedStates: a,
191
- contents: o
192
- } = i;
193
- return a ? (a = a.map(n), o = a[0]) : o = n(o), e({
194
- ...i,
195
- contents: o,
196
- expandedStates: a
197
- });
198
- }
199
- case le:
200
- case ue:
201
- case he:
202
- case Ne:
203
- case Fe:
204
- return e({
205
- ...i,
206
- contents: n(i.contents)
207
- });
208
- case xe:
209
- case Be:
210
- case Le:
211
- case Pe:
212
- case Y:
213
- case fe:
214
- return e(i);
215
- default:
216
- throw new gt(i);
217
- }
218
- }
219
- }
220
- function ai(t8) {
221
- switch (Ie(t8)) {
222
- case ce:
223
- if (t8.parts.every((e) => e === "")) return "";
224
- break;
225
- case te:
226
- if (!t8.contents && !t8.id && !t8.break && !t8.expandedStates) return "";
227
- if (t8.contents.type === te && t8.contents.id === t8.id && t8.contents.break === t8.break && t8.contents.expandedStates === t8.expandedStates) return t8.contents;
228
- break;
229
- case le:
230
- case ue:
231
- case he:
232
- case Fe:
233
- if (!t8.contents) return "";
234
- break;
235
- case pe:
236
- if (!t8.flatContents && !t8.breakContents) return "";
237
- break;
238
- case ke: {
239
- let e = [];
240
- for (let r of t8) {
241
- if (!r) continue;
242
- let [n, ...s] = Array.isArray(r) ? r : [r];
243
- typeof n == "string" && typeof X(false, e, -1) == "string" ? e[e.length - 1] += n : e.push(n), e.push(...s);
244
- }
245
- return e.length === 0 ? "" : e.length === 1 ? e[0] : e;
246
- }
247
- case xe:
248
- case Be:
249
- case Le:
250
- case Pe:
251
- case Y:
252
- case Ne:
253
- case fe:
254
- break;
255
- default:
256
- throw new gt(t8);
257
- }
258
- return t8;
259
- }
260
- function nn(t8) {
261
- return St(t8, (e) => ai(e));
262
- }
263
- function T(t8, e = rn) {
264
- return St(t8, (r) => typeof r == "string" ? M(e, r.split(`
265
- `)) : r);
266
- }
267
- var _t = "'";
268
- var sn = '"';
269
- function oi(t8, e) {
270
- let r = e === true || e === _t ? _t : sn, n = r === _t ? sn : _t, s = 0, i = 0;
271
- for (let a of t8) a === r ? s++ : a === n && i++;
229
+ var yt = "'";
230
+ var Sn = '"';
231
+ function Bi(t7, e) {
232
+ let r = e === true || e === yt ? yt : Sn, n = r === yt ? Sn : yt, s = 0, i = 0;
233
+ for (let a of t7) a === r ? s++ : a === n && i++;
272
234
  return s > i ? n : r;
273
235
  }
274
- var an = oi;
275
- function nr(t8) {
276
- if (typeof t8 != "string") throw new TypeError("Expected a string");
277
- return t8.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
236
+ var _n = Bi;
237
+ function dr(t7) {
238
+ if (typeof t7 != "string") throw new TypeError("Expected a string");
239
+ return t7.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
278
240
  }
279
- var q;
280
- var sr = class {
241
+ var V;
242
+ var gr = class {
281
243
  constructor(e) {
282
- Kr(this, q, void 0);
283
- Qr(this, q, new Set(e));
244
+ At(this, V);
245
+ pn(this, V, new Set(e));
284
246
  }
285
247
  getLeadingWhitespaceCount(e) {
286
- let r = Q(this, q), n = 0;
248
+ let r = R(this, V), n = 0;
287
249
  for (let s = 0; s < e.length && r.has(e.charAt(s)); s++) n++;
288
250
  return n;
289
251
  }
290
252
  getTrailingWhitespaceCount(e) {
291
- let r = Q(this, q), n = 0;
253
+ let r = R(this, V), n = 0;
292
254
  for (let s = e.length - 1; s >= 0 && r.has(e.charAt(s)); s--) n++;
293
255
  return n;
294
256
  }
@@ -301,10 +263,10 @@ var sr = class {
301
263
  return e.slice(e.length - r);
302
264
  }
303
265
  hasLeadingWhitespace(e) {
304
- return Q(this, q).has(e.charAt(0));
266
+ return R(this, V).has(e.charAt(0));
305
267
  }
306
268
  hasTrailingWhitespace(e) {
307
- return Q(this, q).has(X(false, e, -1));
269
+ return R(this, V).has(K(false, e, -1));
308
270
  }
309
271
  trimStart(e) {
310
272
  let r = this.getLeadingWhitespaceCount(e);
@@ -318,66 +280,66 @@ var sr = class {
318
280
  return this.trimEnd(this.trimStart(e));
319
281
  }
320
282
  split(e, r = false) {
321
- let n = `[${nr([...Q(this, q)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n);
283
+ let n = `[${dr([...R(this, V)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
322
284
  return e.split(s);
323
285
  }
324
286
  hasWhitespaceCharacter(e) {
325
- let r = Q(this, q);
287
+ let r = R(this, V);
326
288
  return Array.prototype.some.call(e, (n) => r.has(n));
327
289
  }
328
290
  hasNonWhitespaceCharacter(e) {
329
- let r = Q(this, q);
291
+ let r = R(this, V);
330
292
  return Array.prototype.some.call(e, (n) => !r.has(n));
331
293
  }
332
294
  isWhitespaceOnly(e) {
333
- let r = Q(this, q);
295
+ let r = R(this, V);
334
296
  return Array.prototype.every.call(e, (n) => r.has(n));
335
297
  }
336
298
  };
337
- q = /* @__PURE__ */ new WeakMap();
338
- var on = sr;
339
- var ui = [" ", `
299
+ V = /* @__PURE__ */ new WeakMap();
300
+ var En = gr;
301
+ var Li = [" ", `
340
302
  `, "\f", "\r", " "];
341
- var li = new on(ui);
342
- var F = li;
343
- var ir = class extends Error {
303
+ var Fi = new En(Li);
304
+ var O = Fi;
305
+ var Cr = class extends Error {
344
306
  name = "UnexpectedNodeError";
345
307
  constructor(e, r, n = "type") {
346
308
  super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`), this.node = e;
347
309
  }
348
310
  };
349
- var un = ir;
350
- function ci(t8) {
351
- return (t8 == null ? void 0 : t8.type) === "front-matter";
352
- }
353
- var Re = ci;
354
- var pi = /* @__PURE__ */ new Set(["sourceSpan", "startSourceSpan", "endSourceSpan", "nameSpan", "valueSpan", "keySpan", "tagDefinition", "tokens", "valueTokens", "switchValueSourceSpan", "expSourceSpan", "valueSourceSpan"]);
355
- var hi = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
356
- function ln(t8, e) {
311
+ var An = Cr;
312
+ function Pi(t7) {
313
+ return (t7 == null ? void 0 : t7.type) === "front-matter";
314
+ }
315
+ var Pe = Pi;
316
+ var Ni = /* @__PURE__ */ new Set(["sourceSpan", "startSourceSpan", "endSourceSpan", "nameSpan", "valueSpan", "keySpan", "tagDefinition", "tokens", "valueTokens", "switchValueSourceSpan", "expSourceSpan", "valueSourceSpan"]);
317
+ var Ii = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
318
+ function Dn(t7, e) {
357
319
  var r;
358
- if (t8.type === "text" || t8.type === "comment" || Re(t8) || t8.type === "yaml" || t8.type === "toml") return null;
359
- if (t8.type === "attribute" && delete e.value, t8.type === "docType" && delete e.value, t8.type === "angularControlFlowBlock" && (r = e.parameters) != null && r.children) for (let n of e.parameters.children) hi.has(t8.name) ? delete n.expression : n.expression = n.expression.trim();
360
- t8.type === "angularIcuExpression" && (e.switchValue = t8.switchValue.trim());
361
- }
362
- ln.ignoredProperties = pi;
363
- var cn = ln;
364
- async function fi(t8, e) {
365
- if (t8.lang === "yaml") {
366
- let r = t8.value.trim(), n = r ? await e(r, {
320
+ if (t7.type === "text" || t7.type === "comment" || Pe(t7) || t7.type === "yaml" || t7.type === "toml") return null;
321
+ if (t7.type === "attribute" && delete e.value, t7.type === "docType" && delete e.value, t7.type === "angularControlFlowBlock" && (r = t7.parameters) != null && r.children) for (let n of e.parameters.children) Ii.has(t7.name) ? delete n.expression : n.expression = n.expression.trim();
322
+ t7.type === "angularIcuExpression" && (e.switchValue = t7.switchValue.trim()), t7.type === "angularLetDeclarationInitializer" && delete e.value;
323
+ }
324
+ Dn.ignoredProperties = Ni;
325
+ var vn = Dn;
326
+ async function Ri(t7, e) {
327
+ if (t7.language === "yaml") {
328
+ let r = t7.value.trim(), n = r ? await e(r, {
367
329
  parser: "yaml"
368
330
  }) : "";
369
- return en([t8.startDelimiter, S, n, n ? S : "", t8.endDelimiter]);
331
+ return gn([t7.startDelimiter, t7.explicitLanguage, S, n, n ? S : "", t7.endDelimiter]);
370
332
  }
371
333
  }
372
- var pn = fi;
373
- function ge(t8, e = true) {
374
- return [L([v, t8]), e ? v : ""];
334
+ var yn = Ri;
335
+ function he(t7, e = true) {
336
+ return [k([v, t7]), e ? v : ""];
375
337
  }
376
- function j(t8, e) {
377
- 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;
338
+ function X(t7, e) {
339
+ let r = t7.type === "NGRoot" ? t7.node.type === "NGMicrosyntax" && t7.node.body.length === 1 && t7.node.body[0].type === "NGMicrosyntaxExpression" ? t7.node.body[0].expression : t7.node : t7.type === "JsExpressionRoot" ? t7.node : t7;
378
340
  return r && (r.type === "ObjectExpression" || r.type === "ArrayExpression" || (e.parser === "__vue_expression" || e.parser === "__vue_ts_expression") && (r.type === "TemplateLiteral" || r.type === "StringLiteral"));
379
341
  }
380
- async function x(t8, e, r, n) {
342
+ async function T(t7, e, r, n) {
381
343
  r = {
382
344
  __isInHtmlAttribute: true,
383
345
  __embeddedInHtml: true,
@@ -387,46 +349,89 @@ async function x(t8, e, r, n) {
387
349
  n && (r.__onHtmlBindingRoot = (a, o) => {
388
350
  s = n(a, o);
389
351
  });
390
- let i = await e(t8, r, e);
391
- return s ? E(i) : ge(i);
352
+ let i = await e(t7, r, e);
353
+ return s ? E(i) : he(i);
392
354
  }
393
- function mi(t8, e, r, n) {
355
+ function $i(t7, e, r, n) {
394
356
  let {
395
357
  node: s
396
358
  } = r, i = n.originalText.slice(s.sourceSpan.start.offset, s.sourceSpan.end.offset);
397
- return /^\s*$/.test(i) ? "" : x(i, t8, {
359
+ return /^\s*$/u.test(i) ? "" : T(i, t7, {
398
360
  parser: "__ng_directive",
399
- __isInHtmlAttribute: false,
400
- trailingComma: "none"
401
- }, j);
361
+ __isInHtmlAttribute: false
362
+ }, X);
402
363
  }
403
- var hn = mi;
404
- var gi = (t8) => String(t8).split(/[/\\]/).pop();
405
- function fn(t8, e) {
364
+ var wn = $i;
365
+ var Oi = (t7, e) => {
366
+ if (!(t7 && e == null)) return e.toReversed || !Array.isArray(e) ? e.toReversed() : [...e].reverse();
367
+ };
368
+ var bn = Oi;
369
+ function Mi(t7) {
370
+ return Array.isArray(t7) && t7.length > 0;
371
+ }
372
+ var me = Mi;
373
+ var Tn;
374
+ var xn;
375
+ var kn;
376
+ var Bn;
377
+ var Ln;
378
+ var qi = ((Tn = globalThis.Deno) == null ? void 0 : Tn.build.os) === "windows" || ((kn = (xn = globalThis.navigator) == null ? void 0 : xn.platform) == null ? void 0 : kn.startsWith("Win")) || ((Ln = (Bn = globalThis.process) == null ? void 0 : Bn.platform) == null ? void 0 : Ln.startsWith("win")) || false;
379
+ function Fn(t7) {
380
+ if (t7 = t7 instanceof URL ? t7 : new URL(t7), t7.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${t7.protocol}"`);
381
+ return t7;
382
+ }
383
+ function Hi(t7) {
384
+ return t7 = Fn(t7), decodeURIComponent(t7.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
385
+ }
386
+ function Vi(t7) {
387
+ t7 = Fn(t7);
388
+ let e = decodeURIComponent(t7.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
389
+ return t7.hostname !== "" && (e = `\\\\${t7.hostname}${e}`), e;
390
+ }
391
+ function Pn(t7) {
392
+ return qi ? Vi(t7) : Hi(t7);
393
+ }
394
+ var Nn = Pn;
395
+ var Ui = (t7) => String(t7).split(/[/\\]/u).pop();
396
+ function In(t7, e) {
406
397
  if (!e) return;
407
- let r = gi(e).toLowerCase();
408
- return t8.find(({
398
+ let r = Ui(e).toLowerCase();
399
+ return t7.find(({
409
400
  filenames: n
410
- }) => n == null ? void 0 : n.some((s) => s.toLowerCase() === r)) ?? t8.find(({
401
+ }) => n == null ? void 0 : n.some((s) => s.toLowerCase() === r)) ?? t7.find(({
411
402
  extensions: n
412
403
  }) => n == null ? void 0 : n.some((s) => r.endsWith(s)));
413
404
  }
414
- function di(t8, e) {
415
- if (e) return t8.find(({
405
+ function Wi(t7, e) {
406
+ if (e) return t7.find(({
416
407
  name: r
417
- }) => r.toLowerCase() === e) ?? t8.find(({
408
+ }) => r.toLowerCase() === e) ?? t7.find(({
418
409
  aliases: r
419
- }) => r == null ? void 0 : r.includes(e)) ?? t8.find(({
410
+ }) => r == null ? void 0 : r.includes(e)) ?? t7.find(({
420
411
  extensions: r
421
412
  }) => r == null ? void 0 : r.includes(`.${e}`));
422
413
  }
423
- function Ci(t8, e) {
424
- let r = t8.plugins.flatMap((s) => s.languages ?? []), n = di(r, e.language) ?? fn(r, e.physicalFile) ?? fn(r, e.file) ?? (e.physicalFile, void 0);
414
+ function Rn(t7, e) {
415
+ if (e) {
416
+ if (String(e).startsWith("file:")) try {
417
+ e = Nn(e);
418
+ } catch {
419
+ return;
420
+ }
421
+ if (typeof e == "string") return t7.find(({
422
+ isSupported: r
423
+ }) => r == null ? void 0 : r({
424
+ filepath: e
425
+ }));
426
+ }
427
+ }
428
+ function Gi(t7, e) {
429
+ let r = bn(false, t7.plugins).flatMap((s) => s.languages ?? []), n = Wi(r, e.language) ?? In(r, e.physicalFile) ?? In(r, e.file) ?? Rn(r, e.physicalFile) ?? Rn(r, e.file) ?? (e.physicalFile, void 0);
425
430
  return n == null ? void 0 : n.parsers[0];
426
431
  }
427
- var $e = Ci;
428
- var mn = "inline";
429
- var gn = {
432
+ var Ne = Gi;
433
+ var $n = "inline";
434
+ var Sr = {
430
435
  area: "none",
431
436
  base: "none",
432
437
  basefont: "none",
@@ -498,11 +503,11 @@ var gn = {
498
503
  input: "inline-block",
499
504
  button: "inline-block",
500
505
  fieldset: "block",
506
+ details: "block",
507
+ summary: "block",
501
508
  marquee: "inline-block",
502
509
  source: "block",
503
510
  track: "block",
504
- details: "block",
505
- summary: "block",
506
511
  meter: "inline-block",
507
512
  progress: "inline-block",
508
513
  object: "inline-block",
@@ -512,8 +517,8 @@ var gn = {
512
517
  option: "block",
513
518
  optgroup: "block"
514
519
  };
515
- var dn = "normal";
516
- var Cn = {
520
+ var On = "normal";
521
+ var _r = {
517
522
  listing: "pre",
518
523
  plaintext: "pre",
519
524
  pre: "pre",
@@ -522,108 +527,109 @@ var Cn = {
522
527
  table: "initial",
523
528
  textarea: "pre-wrap"
524
529
  };
525
- function Si(t8) {
526
- return t8.type === "element" && !t8.hasExplicitNamespace && !["html", "svg"].includes(t8.namespace);
527
- }
528
- var de = Si;
529
- var _i = (t8) => w(false, t8, /^[\t\f\r ]*\n/g, "");
530
- var ar = (t8) => _i(F.trimEnd(t8));
531
- var Sn = (t8) => {
532
- let e = t8, r = F.getLeadingWhitespace(e);
530
+ function zi(t7) {
531
+ return t7.type === "element" && !t7.hasExplicitNamespace && !["html", "svg"].includes(t7.namespace);
532
+ }
533
+ var fe = zi;
534
+ var Yi = (t7) => w(false, t7, /^[\t\f\r ]*\n/gu, "");
535
+ var Er = (t7) => Yi(O.trimEnd(t7));
536
+ var Mn = (t7) => {
537
+ let e = t7, r = O.getLeadingWhitespace(e);
533
538
  r && (e = e.slice(r.length));
534
- let n = F.getTrailingWhitespace(e);
539
+ let n = O.getTrailingWhitespace(e);
535
540
  return n && (e = e.slice(0, -n.length)), {
536
541
  leadingWhitespace: r,
537
542
  trailingWhitespace: n,
538
543
  text: e
539
544
  };
540
545
  };
541
- function Et(t8, e) {
542
- return !!(t8.type === "ieConditionalComment" && t8.lastChild && !t8.lastChild.isSelfClosing && !t8.lastChild.endSourceSpan || t8.type === "ieConditionalComment" && !t8.complete || Ce(t8) && t8.children.some((r) => r.type !== "text" && r.type !== "interpolation") || vt(t8, e) && !U(t8) && t8.type !== "interpolation");
546
+ function wt(t7, e) {
547
+ return !!(t7.type === "ieConditionalComment" && t7.lastChild && !t7.lastChild.isSelfClosing && !t7.lastChild.endSourceSpan || t7.type === "ieConditionalComment" && !t7.complete || de(t7) && t7.children.some((r) => r.type !== "text" && r.type !== "interpolation") || xt(t7, e) && !W(t7, e) && t7.type !== "interpolation");
543
548
  }
544
- function Se(t8) {
545
- return t8.type === "attribute" || !t8.parent || !t8.prev ? false : Ei(t8.prev);
549
+ function ge(t7) {
550
+ return t7.type === "attribute" || !t7.parent || !t7.prev ? false : ji(t7.prev);
546
551
  }
547
- function Ei(t8) {
548
- return t8.type === "comment" && t8.value.trim() === "prettier-ignore";
552
+ function ji(t7) {
553
+ return t7.type === "comment" && t7.value.trim() === "prettier-ignore";
549
554
  }
550
- function R(t8) {
551
- return t8.type === "text" || t8.type === "comment";
555
+ function $(t7) {
556
+ return t7.type === "text" || t7.type === "comment";
552
557
  }
553
- function U(t8) {
554
- return t8.type === "element" && (t8.fullName === "script" || t8.fullName === "style" || t8.fullName === "svg:style" || t8.fullName === "svg:script" || de(t8) && (t8.name === "script" || t8.name === "style"));
558
+ function W(t7, e) {
559
+ return t7.type === "element" && (t7.fullName === "script" || t7.fullName === "style" || t7.fullName === "svg:style" || t7.fullName === "svg:script" || t7.fullName === "mj-style" && e.parser === "mjml" || fe(t7) && (t7.name === "script" || t7.name === "style"));
555
560
  }
556
- function _n(t8) {
557
- return t8.children && !U(t8);
561
+ function qn(t7, e) {
562
+ return t7.children && !W(t7, e);
558
563
  }
559
- function En(t8) {
560
- return U(t8) || t8.type === "interpolation" || or(t8);
564
+ function Hn(t7, e) {
565
+ return W(t7, e) || t7.type === "interpolation" || Ar(t7);
561
566
  }
562
- function or(t8) {
563
- return Ln(t8).startsWith("pre");
567
+ function Ar(t7) {
568
+ return Jn(t7).startsWith("pre");
564
569
  }
565
- function An(t8, e) {
570
+ function Vn(t7, e) {
566
571
  var s, i;
567
572
  let r = n();
568
- if (r && !t8.prev && (i = (s = t8.parent) == null ? void 0 : s.tagDefinition) != null && i.ignoreFirstLf) return t8.type === "interpolation";
573
+ if (r && !t7.prev && (i = (s = t7.parent) == null ? void 0 : s.tagDefinition) != null && i.ignoreFirstLf) return t7.type === "interpolation";
569
574
  return r;
570
575
  function n() {
571
- return Re(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 : Ce(t8.parent) ? true : !(!t8.prev && (t8.parent.type === "root" || Ce(t8) && t8.parent || U(t8.parent) || Je(t8.parent, e) || !bi(t8.parent.cssDisplay)) || t8.prev && !ki(t8.prev.cssDisplay));
576
+ return Pe(t7) || t7.type === "angularControlFlowBlock" ? false : (t7.type === "text" || t7.type === "interpolation") && t7.prev && (t7.prev.type === "text" || t7.prev.type === "interpolation") ? true : !t7.parent || t7.parent.cssDisplay === "none" ? false : de(t7.parent) ? true : !(!t7.prev && (t7.parent.type === "root" || de(t7) && t7.parent || W(t7.parent, e) || et(t7.parent, e) || !ea(t7.parent.cssDisplay)) || t7.prev && !na(t7.prev.cssDisplay));
572
577
  }
573
578
  }
574
- function Dn(t8, e) {
575
- return Re(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 : Ce(t8.parent) ? true : !(!t8.next && (t8.parent.type === "root" || Ce(t8) && t8.parent || U(t8.parent) || Je(t8.parent, e) || !Ti(t8.parent.cssDisplay)) || t8.next && !xi(t8.next.cssDisplay));
579
+ function Un(t7, e) {
580
+ return Pe(t7) || t7.type === "angularControlFlowBlock" ? false : (t7.type === "text" || t7.type === "interpolation") && t7.next && (t7.next.type === "text" || t7.next.type === "interpolation") ? true : !t7.parent || t7.parent.cssDisplay === "none" ? false : de(t7.parent) ? true : !(!t7.next && (t7.parent.type === "root" || de(t7) && t7.parent || W(t7.parent, e) || et(t7.parent, e) || !ta(t7.parent.cssDisplay)) || t7.next && !ra(t7.next.cssDisplay));
576
581
  }
577
- function vn(t8) {
578
- return Bi(t8.cssDisplay) && !U(t8);
582
+ function Wn(t7, e) {
583
+ return sa(t7.cssDisplay) && !W(t7, e);
579
584
  }
580
- function Qe(t8) {
581
- return Re(t8) || t8.next && t8.sourceSpan.end && t8.sourceSpan.end.line + 1 < t8.next.sourceSpan.start.line;
585
+ function Je(t7) {
586
+ return Pe(t7) || t7.next && t7.sourceSpan.end && t7.sourceSpan.end.line + 1 < t7.next.sourceSpan.start.line;
582
587
  }
583
- function yn(t8) {
584
- return ur(t8) || t8.type === "element" && t8.children.length > 0 && (["body", "script", "style"].includes(t8.name) || t8.children.some((e) => Di(e))) || t8.firstChild && t8.firstChild === t8.lastChild && t8.firstChild.type !== "text" && bn(t8.firstChild) && (!t8.lastChild.isTrailingSpaceSensitive || Tn(t8.lastChild));
588
+ function Gn(t7) {
589
+ return Dr(t7) || t7.type === "element" && t7.children.length > 0 && (["body", "script", "style"].includes(t7.name) || t7.children.some((e) => Xi(e))) || t7.firstChild && t7.firstChild === t7.lastChild && t7.firstChild.type !== "text" && Yn(t7.firstChild) && (!t7.lastChild.isTrailingSpaceSensitive || jn(t7.lastChild));
585
590
  }
586
- function ur(t8) {
587
- return t8.type === "element" && t8.children.length > 0 && (["html", "head", "ul", "ol", "select"].includes(t8.name) || t8.cssDisplay.startsWith("table") && t8.cssDisplay !== "table-cell");
591
+ function Dr(t7) {
592
+ return t7.type === "element" && t7.children.length > 0 && (["html", "head", "ul", "ol", "select"].includes(t7.name) || t7.cssDisplay.startsWith("table") && t7.cssDisplay !== "table-cell");
588
593
  }
589
- function At(t8) {
590
- return xn(t8) || t8.prev && Ai(t8.prev) || wn(t8);
594
+ function bt(t7) {
595
+ return Kn(t7) || t7.prev && Ki(t7.prev) || zn(t7);
591
596
  }
592
- function Ai(t8) {
593
- return xn(t8) || t8.type === "element" && t8.fullName === "br" || wn(t8);
597
+ function Ki(t7) {
598
+ return Kn(t7) || t7.type === "element" && t7.fullName === "br" || zn(t7);
594
599
  }
595
- function wn(t8) {
596
- return bn(t8) && Tn(t8);
600
+ function zn(t7) {
601
+ return Yn(t7) && jn(t7);
597
602
  }
598
- function bn(t8) {
599
- 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);
603
+ function Yn(t7) {
604
+ return t7.hasLeadingSpaces && (t7.prev ? t7.prev.sourceSpan.end.line < t7.sourceSpan.start.line : t7.parent.type === "root" || t7.parent.startSourceSpan.end.line < t7.sourceSpan.start.line);
600
605
  }
601
- function Tn(t8) {
602
- 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);
606
+ function jn(t7) {
607
+ return t7.hasTrailingSpaces && (t7.next ? t7.next.sourceSpan.start.line > t7.sourceSpan.end.line : t7.parent.type === "root" || t7.parent.endSourceSpan && t7.parent.endSourceSpan.start.line > t7.sourceSpan.end.line);
603
608
  }
604
- function xn(t8) {
605
- switch (t8.type) {
609
+ function Kn(t7) {
610
+ switch (t7.type) {
606
611
  case "ieConditionalComment":
607
612
  case "comment":
608
613
  case "directive":
609
614
  return true;
610
615
  case "element":
611
- return ["script", "select"].includes(t8.name);
616
+ return ["script", "select"].includes(t7.name);
612
617
  }
613
618
  return false;
614
619
  }
615
- function Dt(t8) {
616
- return t8.lastChild ? Dt(t8.lastChild) : t8;
620
+ function Tt(t7) {
621
+ return t7.lastChild ? Tt(t7.lastChild) : t7;
617
622
  }
618
- function Di(t8) {
623
+ function Xi(t7) {
619
624
  var e;
620
- return (e = t8.children) == null ? void 0 : e.some((r) => r.type !== "text");
625
+ return (e = t7.children) == null ? void 0 : e.some((r) => r.type !== "text");
621
626
  }
622
- function kn(t8) {
623
- if (t8) switch (t8) {
627
+ function Xn(t7) {
628
+ if (t7) switch (t7) {
624
629
  case "module":
625
630
  case "text/javascript":
626
631
  case "text/babel":
632
+ case "text/jsx":
627
633
  case "application/javascript":
628
634
  return "babel";
629
635
  case "application/x-typescript":
@@ -635,345 +641,342 @@ function kn(t8) {
635
641
  case "text/x-handlebars-template":
636
642
  return "glimmer";
637
643
  default:
638
- if (t8.endsWith("json") || t8.endsWith("importmap") || t8 === "speculationrules") return "json";
644
+ if (t7.endsWith("json") || t7.endsWith("importmap") || t7 === "speculationrules") return "json";
639
645
  }
640
646
  }
641
- function vi(t8, e) {
647
+ function Qi(t7, e) {
642
648
  let {
643
649
  name: r,
644
650
  attrMap: n
645
- } = t8;
651
+ } = t7;
646
652
  if (r !== "script" || Object.prototype.hasOwnProperty.call(n, "src")) return;
647
653
  let {
648
654
  type: s,
649
655
  lang: i
650
- } = t8.attrMap;
651
- return !i && !s ? "babel" : $e(e, {
656
+ } = t7.attrMap;
657
+ return !i && !s ? "babel" : Ne(e, {
652
658
  language: i
653
- }) ?? kn(s);
659
+ }) ?? Xn(s);
654
660
  }
655
- function yi(t8, e) {
656
- if (!vt(t8, e)) return;
661
+ function Ji(t7, e) {
662
+ if (!xt(t7, e)) return;
657
663
  let {
658
664
  attrMap: r
659
- } = t8;
665
+ } = t7;
660
666
  if (Object.prototype.hasOwnProperty.call(r, "src")) return;
661
667
  let {
662
668
  type: n,
663
669
  lang: s
664
670
  } = r;
665
- return $e(e, {
671
+ return Ne(e, {
666
672
  language: s
667
- }) ?? kn(n);
673
+ }) ?? Xn(n);
668
674
  }
669
- function wi(t8, e) {
670
- if (t8.name !== "style") return;
671
- let {
672
- lang: r
673
- } = t8.attrMap;
674
- return r ? $e(e, {
675
- language: r
676
- }) : "css";
675
+ function Zi(t7, e) {
676
+ if (t7.name === "style") {
677
+ let {
678
+ lang: r
679
+ } = t7.attrMap;
680
+ return r ? Ne(e, {
681
+ language: r
682
+ }) : "css";
683
+ }
684
+ if (t7.name === "mj-style" && e.parser === "mjml") return "css";
677
685
  }
678
- function lr(t8, e) {
679
- return vi(t8, e) ?? wi(t8, e) ?? yi(t8, e);
686
+ function vr(t7, e) {
687
+ return Qi(t7, e) ?? Zi(t7, e) ?? Ji(t7, e);
680
688
  }
681
- function Xe(t8) {
682
- return t8 === "block" || t8 === "list-item" || t8.startsWith("table");
689
+ function Ze(t7) {
690
+ return t7 === "block" || t7 === "list-item" || t7.startsWith("table");
683
691
  }
684
- function bi(t8) {
685
- return !Xe(t8) && t8 !== "inline-block";
692
+ function ea(t7) {
693
+ return !Ze(t7) && t7 !== "inline-block";
686
694
  }
687
- function Ti(t8) {
688
- return !Xe(t8) && t8 !== "inline-block";
695
+ function ta(t7) {
696
+ return !Ze(t7) && t7 !== "inline-block";
689
697
  }
690
- function xi(t8) {
691
- return !Xe(t8);
698
+ function ra(t7) {
699
+ return !Ze(t7);
692
700
  }
693
- function ki(t8) {
694
- return !Xe(t8);
701
+ function na(t7) {
702
+ return !Ze(t7);
695
703
  }
696
- function Bi(t8) {
697
- return !Xe(t8) && t8 !== "inline-block";
704
+ function sa(t7) {
705
+ return !Ze(t7) && t7 !== "inline-block";
698
706
  }
699
- function Ce(t8) {
700
- return Ln(t8).startsWith("pre");
707
+ function de(t7) {
708
+ return Jn(t7).startsWith("pre");
701
709
  }
702
- function Li(t8, e) {
703
- let r = t8;
710
+ function ia(t7, e) {
711
+ let r = t7;
704
712
  for (; r; ) {
705
713
  if (e(r)) return true;
706
714
  r = r.parent;
707
715
  }
708
716
  return false;
709
717
  }
710
- function Bn(t8, e) {
718
+ function Qn(t7, e) {
711
719
  var n;
712
- if (_e(t8, e)) return "block";
713
- if (((n = t8.prev) == null ? void 0 : n.type) === "comment") {
714
- let s = t8.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);
720
+ if (Ce(t7, e)) return "block";
721
+ if (((n = t7.prev) == null ? void 0 : n.type) === "comment") {
722
+ let s = t7.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);
715
723
  if (s) return s[1];
716
724
  }
717
725
  let r = false;
718
- if (t8.type === "element" && t8.namespace === "svg") if (Li(t8, (s) => s.fullName === "svg:foreignObject")) r = true;
719
- else return t8.name === "svg" ? "inline-block" : "block";
726
+ if (t7.type === "element" && t7.namespace === "svg") if (ia(t7, (s) => s.fullName === "svg:foreignObject")) r = true;
727
+ else return t7.name === "svg" ? "inline-block" : "block";
720
728
  switch (e.htmlWhitespaceSensitivity) {
721
729
  case "strict":
722
730
  return "inline";
723
731
  case "ignore":
724
732
  return "block";
725
733
  default:
726
- return t8.type === "element" && (!t8.namespace || r || de(t8)) && gn[t8.name] || mn;
734
+ if (t7.type === "element" && (!t7.namespace || r || fe(t7)) && Object.prototype.hasOwnProperty.call(Sr, t7.name)) return Sr[t7.name];
727
735
  }
736
+ return $n;
728
737
  }
729
- function Ln(t8) {
730
- return t8.type === "element" && (!t8.namespace || de(t8)) && Cn[t8.name] || dn;
738
+ function Jn(t7) {
739
+ return t7.type === "element" && (!t7.namespace || fe(t7)) && Object.prototype.hasOwnProperty.call(_r, t7.name) ? _r[t7.name] : On;
731
740
  }
732
- function Fi(t8) {
741
+ function aa(t7) {
733
742
  let e = Number.POSITIVE_INFINITY;
734
- for (let r of t8.split(`
743
+ for (let r of t7.split(`
735
744
  `)) {
736
745
  if (r.length === 0) continue;
737
- let n = F.getLeadingWhitespaceCount(r);
746
+ let n = O.getLeadingWhitespaceCount(r);
738
747
  if (n === 0) return 0;
739
748
  r.length !== n && n < e && (e = n);
740
749
  }
741
750
  return e === Number.POSITIVE_INFINITY ? 0 : e;
742
751
  }
743
- function cr(t8, e = Fi(t8)) {
744
- return e === 0 ? t8 : t8.split(`
752
+ function yr(t7, e = aa(t7)) {
753
+ return e === 0 ? t7 : t7.split(`
745
754
  `).map((r) => r.slice(e)).join(`
746
755
  `);
747
756
  }
748
- function pr(t8) {
749
- return w(false, w(false, t8, "&apos;", "'"), "&quot;", '"');
757
+ function wr(t7) {
758
+ return w(false, w(false, t7, "&apos;", "'"), "&quot;", '"');
750
759
  }
751
- function P(t8) {
752
- return pr(t8.value);
760
+ function P(t7) {
761
+ return wr(t7.value);
753
762
  }
754
- var Pi = /* @__PURE__ */ new Set(["template", "style", "script"]);
755
- function Je(t8, e) {
756
- return _e(t8, e) && !Pi.has(t8.fullName);
763
+ var oa = /* @__PURE__ */ new Set(["template", "style", "script"]);
764
+ function et(t7, e) {
765
+ return Ce(t7, e) && !oa.has(t7.fullName);
757
766
  }
758
- function _e(t8, e) {
759
- return e.parser === "vue" && t8.type === "element" && t8.parent.type === "root" && t8.fullName.toLowerCase() !== "html";
767
+ function Ce(t7, e) {
768
+ return e.parser === "vue" && t7.type === "element" && t7.parent.type === "root" && t7.fullName.toLowerCase() !== "html";
760
769
  }
761
- function vt(t8, e) {
762
- return _e(t8, e) && (Je(t8, e) || t8.attrMap.lang && t8.attrMap.lang !== "html");
770
+ function xt(t7, e) {
771
+ return Ce(t7, e) && (et(t7, e) || t7.attrMap.lang && t7.attrMap.lang !== "html");
763
772
  }
764
- function Fn(t8) {
765
- let e = t8.fullName;
773
+ function Zn(t7) {
774
+ let e = t7.fullName;
766
775
  return e.charAt(0) === "#" || e === "slot-scope" || e === "v-slot" || e.startsWith("v-slot:");
767
776
  }
768
- function Pn(t8, e) {
769
- let r = t8.parent;
770
- if (!_e(r, e)) return false;
771
- let n = r.fullName, s = t8.fullName;
777
+ function es(t7, e) {
778
+ let r = t7.parent;
779
+ if (!Ce(r, e)) return false;
780
+ let n = r.fullName, s = t7.fullName;
772
781
  return n === "script" && s === "setup" || n === "style" && s === "vars";
773
782
  }
774
- function yt(t8, e = t8.value) {
775
- return t8.parent.isWhitespaceSensitive ? t8.parent.isIndentationSensitive ? T(e) : T(cr(ar(e)), S) : M(A, F.split(e));
783
+ function kt(t7, e = t7.value) {
784
+ return t7.parent.isWhitespaceSensitive ? t7.parent.isIndentationSensitive ? B(e) : B(yr(Er(e)), S) : H(_, O.split(e));
776
785
  }
777
- function wt(t8, e) {
778
- return _e(t8, e) && t8.name === "script";
786
+ function Bt(t7, e) {
787
+ return Ce(t7, e) && t7.name === "script";
779
788
  }
780
- var hr = /{{(.+?)}}/s;
781
- async function Nn(t8, e) {
789
+ var br = /\{\{(.+?)\}\}/su;
790
+ async function ts(t7, e) {
782
791
  let r = [];
783
- for (let [n, s] of t8.split(hr).entries()) if (n % 2 === 0) r.push(T(s));
792
+ for (let [n, s] of t7.split(br).entries()) if (n % 2 === 0) r.push(B(s));
784
793
  else try {
785
- r.push(E(["{{", L([A, await x(s, e, {
794
+ r.push(E(["{{", k([_, await T(s, e, {
786
795
  parser: "__ng_interpolation",
787
- __isInHtmlInterpolation: true,
788
- trailingComma: "none"
789
- })]), A, "}}"]));
796
+ __isInHtmlInterpolation: true
797
+ })]), _, "}}"]));
790
798
  } catch {
791
- r.push("{{", T(s), "}}");
799
+ r.push("{{", B(s), "}}");
792
800
  }
793
801
  return r;
794
802
  }
795
- function fr({
796
- parser: t8
803
+ function Tr({
804
+ parser: t7
797
805
  }) {
798
- return (e, r, n) => x(P(n.node), e, {
799
- parser: t8,
800
- trailingComma: "none"
801
- }, j);
806
+ return (e, r, n) => T(P(n.node), e, {
807
+ parser: t7
808
+ }, X);
802
809
  }
803
- var Ni = fr({
810
+ var ua = Tr({
804
811
  parser: "__ng_action"
805
812
  });
806
- var Ii = fr({
813
+ var la = Tr({
807
814
  parser: "__ng_binding"
808
815
  });
809
- var Ri = fr({
816
+ var ca = Tr({
810
817
  parser: "__ng_directive"
811
818
  });
812
- function $i(t8, e) {
819
+ function pa(t7, e) {
813
820
  if (e.parser !== "angular") return;
814
821
  let {
815
822
  node: r
816
- } = t8, n = r.fullName;
817
- if (n.startsWith("(") && n.endsWith(")") || n.startsWith("on-")) return Ni;
818
- if (n.startsWith("[") && n.endsWith("]") || /^bind(?:on)?-/.test(n) || /^ng-(?:if|show|hide|class|style)$/.test(n)) return Ii;
819
- if (n.startsWith("*")) return Ri;
823
+ } = t7, n = r.fullName;
824
+ if (n.startsWith("(") && n.endsWith(")") || n.startsWith("on-")) return ua;
825
+ if (n.startsWith("[") && n.endsWith("]") || /^bind(?:on)?-/u.test(n) || /^ng-(?:if|show|hide|class|style)$/u.test(n)) return la;
826
+ if (n.startsWith("*")) return ca;
820
827
  let s = P(r);
821
- if (/^i18n(?:-.+)?$/.test(n)) return () => ge(Ct(yt(r, s.trim())), !s.includes("@@"));
822
- if (hr.test(s)) return (i) => Nn(s, i);
828
+ if (/^i18n(?:-.+)?$/u.test(n)) return () => he(vt(kt(r, s.trim())), !s.includes("@@"));
829
+ if (br.test(s)) return (i) => ts(s, i);
823
830
  }
824
- var In = $i;
825
- function Oi(t8, e) {
831
+ var rs = pa;
832
+ function ha(t7, e) {
826
833
  let {
827
834
  node: r
828
- } = t8, n = P(r);
829
- if (r.fullName === "class" && !e.parentParser && !n.includes("{{")) return () => n.trim().split(/\s+/).join(" ");
830
- }
831
- var Rn = Oi;
832
- function $n(t8) {
833
- return t8 === " " || t8 === `
834
- ` || t8 === "\f" || t8 === "\r" || t8 === " ";
835
- }
836
- var Mi = /^[ \t\n\r\u000c]+/;
837
- var qi = /^[, \t\n\r\u000c]+/;
838
- var Hi = /^[^ \t\n\r\u000c]+/;
839
- var Vi = /[,]+$/;
840
- var On = /^\d+$/;
841
- var Ui = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
842
- function Wi(t8) {
843
- let e = t8.length, r, n, s, i, a, o = 0, u;
835
+ } = t7, n = P(r);
836
+ if (r.fullName === "class" && !e.parentParser && !n.includes("{{")) return () => n.trim().split(/\s+/u).join(" ");
837
+ }
838
+ var ns = ha;
839
+ function ss(t7) {
840
+ return t7 === " " || t7 === `
841
+ ` || t7 === "\f" || t7 === "\r" || t7 === " ";
842
+ }
843
+ var ma = /^[ \t\n\r\u000c]+/;
844
+ var fa = /^[, \t\n\r\u000c]+/;
845
+ var da = /^[^ \t\n\r\u000c]+/;
846
+ var ga = /[,]+$/;
847
+ var is = /^\d+$/;
848
+ var Ca = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
849
+ function Sa(t7) {
850
+ let e = t7.length, r, n, s, i, a, o = 0, u;
844
851
  function p(C) {
845
- let _, D = C.exec(t8.substring(o));
846
- if (D) return [_] = D, o += _.length, _;
852
+ let A, D = C.exec(t7.substring(o));
853
+ if (D) return [A] = D, o += A.length, A;
847
854
  }
848
855
  let l = [];
849
856
  for (; ; ) {
850
- if (p(qi), o >= e) {
857
+ if (p(fa), o >= e) {
851
858
  if (l.length === 0) throw new Error("Must contain one or more image candidate strings.");
852
859
  return l;
853
860
  }
854
- u = o, r = p(Hi), n = [], r.slice(-1) === "," ? (r = r.replace(Vi, ""), g()) : m();
861
+ u = o, r = p(da), n = [], r.slice(-1) === "," ? (r = r.replace(ga, ""), f()) : m();
855
862
  }
856
863
  function m() {
857
- for (p(Mi), s = "", i = "in descriptor"; ; ) {
858
- if (a = t8.charAt(o), i === "in descriptor") {
859
- if ($n(a)) s && (n.push(s), s = "", i = "after descriptor");
864
+ for (p(ma), s = "", i = "in descriptor"; ; ) {
865
+ if (a = t7.charAt(o), i === "in descriptor") {
866
+ if (ss(a)) s && (n.push(s), s = "", i = "after descriptor");
860
867
  else if (a === ",") {
861
- o += 1, s && n.push(s), g();
868
+ o += 1, s && n.push(s), f();
862
869
  return;
863
870
  } else if (a === "(") s += a, i = "in parens";
864
871
  else if (a === "") {
865
- s && n.push(s), g();
872
+ s && n.push(s), f();
866
873
  return;
867
874
  } else s += a;
868
875
  } else if (i === "in parens") {
869
876
  if (a === ")") s += a, i = "in descriptor";
870
877
  else if (a === "") {
871
- n.push(s), g();
878
+ n.push(s), f();
872
879
  return;
873
880
  } else s += a;
874
- } else if (i === "after descriptor" && !$n(a)) if (a === "") {
875
- g();
881
+ } else if (i === "after descriptor" && !ss(a)) if (a === "") {
882
+ f();
876
883
  return;
877
884
  } else i = "in descriptor", o -= 1;
878
885
  o += 1;
879
886
  }
880
887
  }
881
- function g() {
882
- let C = false, _, D, I, B, c = {}, d, y, O, b, V;
883
- for (B = 0; B < n.length; B++) d = n[B], y = d[d.length - 1], O = d.substring(0, d.length - 1), b = parseInt(O, 10), V = parseFloat(O), On.test(O) && y === "w" ? ((_ || D) && (C = true), b === 0 ? C = true : _ = b) : Ui.test(O) && y === "x" ? ((_ || D || I) && (C = true), V < 0 ? C = true : D = V) : On.test(O) && y === "h" ? ((I || D) && (C = true), b === 0 ? C = true : I = b) : C = true;
888
+ function f() {
889
+ let C = false, A, D, I, F, c = {}, g, y, q, x, U;
890
+ for (F = 0; F < n.length; F++) g = n[F], y = g[g.length - 1], q = g.substring(0, g.length - 1), x = parseInt(q, 10), U = parseFloat(q), is.test(q) && y === "w" ? ((A || D) && (C = true), x === 0 ? C = true : A = x) : Ca.test(q) && y === "x" ? ((A || D || I) && (C = true), U < 0 ? C = true : D = U) : is.test(q) && y === "h" ? ((I || D) && (C = true), x === 0 ? C = true : I = x) : C = true;
884
891
  if (!C) c.source = {
885
892
  value: r,
886
893
  startOffset: u
887
- }, _ && (c.width = {
888
- value: _
894
+ }, A && (c.width = {
895
+ value: A
889
896
  }), D && (c.density = {
890
897
  value: D
891
898
  }), I && (c.height = {
892
899
  value: I
893
900
  }), l.push(c);
894
- else throw new Error(`Invalid srcset descriptor found in "${t8}" at "${d}".`);
901
+ else throw new Error(`Invalid srcset descriptor found in "${t7}" at "${g}".`);
895
902
  }
896
903
  }
897
- var Mn = Wi;
898
- function zi(t8) {
899
- if (t8.node.fullName === "srcset" && (t8.parent.fullName === "img" || t8.parent.fullName === "source")) return () => Yi(P(t8.node));
904
+ var as = Sa;
905
+ function _a(t7) {
906
+ if (t7.node.fullName === "srcset" && (t7.parent.fullName === "img" || t7.parent.fullName === "source")) return () => Aa(P(t7.node));
900
907
  }
901
- var qn = {
908
+ var os = {
902
909
  width: "w",
903
910
  height: "h",
904
911
  density: "x"
905
912
  };
906
- var Gi = Object.keys(qn);
907
- function Yi(t8) {
908
- let e = Mn(t8), r = Gi.filter((l) => e.some((m) => Object.prototype.hasOwnProperty.call(m, l)));
913
+ var Ea = Object.keys(os);
914
+ function Aa(t7) {
915
+ let e = as(t7), r = Ea.filter((l) => e.some((m) => Object.prototype.hasOwnProperty.call(m, l)));
909
916
  if (r.length > 1) throw new Error("Mixed descriptor in srcset is not supported");
910
- let [n] = r, s = qn[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) => {
917
+ let [n] = r, s = os[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) => {
911
918
  let m = l.indexOf(".");
912
919
  return m === -1 ? l.length : m;
913
920
  }), p = Math.max(...u);
914
- return ge(M([",", A], i.map((l, m) => {
915
- let g = [l], C = o[m];
921
+ return he(H([",", _], i.map((l, m) => {
922
+ let f = [l], C = o[m];
916
923
  if (C) {
917
- let _ = a - l.length + 1, D = p - u[m], I = " ".repeat(_ + D);
918
- g.push(me(I, " "), C + s);
924
+ let A = a - l.length + 1, D = p - u[m], I = " ".repeat(A + D);
925
+ f.push(pe(I, " "), C + s);
919
926
  }
920
- return g;
927
+ return f;
921
928
  })));
922
929
  }
923
- var Hn = zi;
924
- function Vn(t8, e) {
930
+ var us = _a;
931
+ function ls(t7, e) {
925
932
  let {
926
933
  node: r
927
- } = t8, n = P(t8.node).trim();
928
- if (r.fullName === "style" && !e.parentParser && !n.includes("{{")) return async (s) => ge(await s(n, {
934
+ } = t7, n = P(t7.node).trim();
935
+ if (r.fullName === "style" && !e.parentParser && !n.includes("{{")) return async (s) => he(await s(n, {
929
936
  parser: "css",
930
937
  __isHTMLStyleAttribute: true
931
938
  }));
932
939
  }
933
- var mr = /* @__PURE__ */ new WeakMap();
934
- function ji(t8, e) {
940
+ var xr = /* @__PURE__ */ new WeakMap();
941
+ function Da(t7, e) {
935
942
  let {
936
943
  root: r
937
- } = t8;
938
- return mr.has(r) || mr.set(r, r.children.some((n) => wt(n, e) && ["ts", "typescript"].includes(n.attrMap.lang))), mr.get(r);
944
+ } = t7;
945
+ return xr.has(r) || xr.set(r, r.children.some((n) => Bt(n, e) && ["ts", "typescript"].includes(n.attrMap.lang))), xr.get(r);
939
946
  }
940
- var Oe = ji;
941
- function Un(t8, e, r) {
947
+ var Ie = Da;
948
+ function cs(t7, e, r) {
942
949
  let {
943
950
  node: n
944
951
  } = r, s = P(n);
945
- return x(`type T<${s}> = any`, t8, {
952
+ return T(`type T<${s}> = any`, t7, {
946
953
  parser: "babel-ts",
947
954
  __isEmbeddedTypescriptGenericParameters: true
948
- }, j);
955
+ }, X);
949
956
  }
950
- function Wn(t8, e, {
957
+ function ps(t7, e, {
951
958
  parseWithTs: r
952
959
  }) {
953
- return x(`function _(${t8}) {}`, e, {
960
+ return T(`function _(${t7}) {}`, e, {
954
961
  parser: r ? "babel-ts" : "babel",
955
962
  __isVueBindings: true
956
963
  });
957
964
  }
958
- function zn(t8) {
959
- let e = /^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/, r = /^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i, n = t8.trim();
960
- return e.test(n) || r.test(n);
961
- }
962
- async function Gn(t8, e, r, n) {
965
+ async function hs(t7, e, r, n) {
963
966
  let s = P(r.node), {
964
967
  left: i,
965
968
  operator: a,
966
969
  right: o
967
- } = Ki(s), u = Oe(r, n);
968
- return [E(await x(`function _(${i}) {}`, t8, {
970
+ } = va(s), u = Ie(r, n);
971
+ return [E(await T(`function _(${i}) {}`, t7, {
969
972
  parser: u ? "babel-ts" : "babel",
970
973
  __isVueForBindingLeft: true
971
- })), " ", a, " ", await x(o, t8, {
974
+ })), " ", a, " ", await T(o, t7, {
972
975
  parser: u ? "__ts_expression" : "__js_expression"
973
976
  })];
974
977
  }
975
- function Ki(t8) {
976
- let e = /(.*?)\s+(in|of)\s+(.*)/s, r = /,([^,\]}]*)(?:,([^,\]}]*))?$/, n = /^\(|\)$/g, s = t8.match(e);
978
+ function va(t7) {
979
+ let e = /(.*?)\s+(in|of)\s+(.*)/su, r = /,([^,\]}]*)(?:,([^,\]}]*))?$/u, n = /^\(|\)$/gu, s = t7.match(e);
977
980
  if (!s) return;
978
981
  let i = {};
979
982
  if (i.for = s[3].trim(), !i.for) return;
@@ -986,114 +989,115 @@ function Ki(t8) {
986
989
  right: i.for
987
990
  };
988
991
  }
989
- function Qi(t8, e) {
992
+ function ya(t7, e) {
990
993
  if (e.parser !== "vue") return;
991
994
  let {
992
995
  node: r
993
- } = t8, n = r.fullName;
994
- if (n === "v-for") return Gn;
995
- if (n === "generic" && wt(r.parent, e)) return Un;
996
- let s = P(r), i = Oe(t8, e);
997
- if (Fn(r) || Pn(r, e)) return (a) => Wn(s, a, {
996
+ } = t7, n = r.fullName;
997
+ if (n === "v-for") return hs;
998
+ if (n === "generic" && Bt(r.parent, e)) return cs;
999
+ let s = P(r), i = Ie(t7, e);
1000
+ if (Zn(r) || es(r, e)) return (a) => ps(s, a, {
998
1001
  parseWithTs: i
999
1002
  });
1000
- if (n.startsWith("@") || n.startsWith("v-on:")) return (a) => Xi(s, a, {
1003
+ if (n.startsWith("@") || n.startsWith("v-on:")) return (a) => wa(s, a, {
1001
1004
  parseWithTs: i
1002
1005
  });
1003
- if (n.startsWith(":") || n.startsWith("v-bind:")) return (a) => Ji(s, a, {
1006
+ if (n.startsWith(":") || n.startsWith(".") || n.startsWith("v-bind:")) return (a) => ba(s, a, {
1004
1007
  parseWithTs: i
1005
1008
  });
1006
- if (n.startsWith("v-")) return (a) => Yn(s, a, {
1009
+ if (n.startsWith("v-")) return (a) => ms(s, a, {
1007
1010
  parseWithTs: i
1008
1011
  });
1009
1012
  }
1010
- function Xi(t8, e, {
1013
+ async function wa(t7, e, {
1011
1014
  parseWithTs: r
1012
1015
  }) {
1013
- return zn(t8) ? Yn(t8, e, {
1014
- parseWithTs: r
1015
- }) : x(t8, e, {
1016
+ var n;
1017
+ try {
1018
+ return await ms(t7, e, {
1019
+ parseWithTs: r
1020
+ });
1021
+ } catch (s) {
1022
+ if (((n = s.cause) == null ? void 0 : n.code) !== "BABEL_PARSER_SYNTAX_ERROR") throw s;
1023
+ }
1024
+ return T(t7, e, {
1016
1025
  parser: r ? "__vue_ts_event_binding" : "__vue_event_binding"
1017
- }, j);
1026
+ }, X);
1018
1027
  }
1019
- function Ji(t8, e, {
1028
+ function ba(t7, e, {
1020
1029
  parseWithTs: r
1021
1030
  }) {
1022
- return x(t8, e, {
1031
+ return T(t7, e, {
1023
1032
  parser: r ? "__vue_ts_expression" : "__vue_expression"
1024
- }, j);
1033
+ }, X);
1025
1034
  }
1026
- function Yn(t8, e, {
1035
+ function ms(t7, e, {
1027
1036
  parseWithTs: r
1028
1037
  }) {
1029
- return x(t8, e, {
1038
+ return T(t7, e, {
1030
1039
  parser: r ? "__ts_expression" : "__js_expression"
1031
- }, j);
1040
+ }, X);
1032
1041
  }
1033
- var jn = Qi;
1034
- function Zi(t8, e) {
1042
+ var fs = ya;
1043
+ function Ta(t7, e) {
1035
1044
  let {
1036
1045
  node: r
1037
- } = t8;
1046
+ } = t7;
1038
1047
  if (r.value) {
1039
- if (/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.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];
1040
- for (let n of [Hn, Vn, Rn, jn, In]) {
1041
- let s = n(t8, e);
1042
- if (s) return ea(s);
1048
+ 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];
1049
+ for (let n of [us, ls, ns, fs, rs]) {
1050
+ let s = n(t7, e);
1051
+ if (s) return xa(s);
1043
1052
  }
1044
1053
  }
1045
1054
  }
1046
- function ea(t8) {
1055
+ function xa(t7) {
1047
1056
  return async (e, r, n, s) => {
1048
- let i = await t8(e, r, n, s);
1049
- if (i) return i = St(i, (a) => typeof a == "string" ? w(false, a, '"', "&quot;") : a), [n.node.rawName, '="', E(i), '"'];
1057
+ let i = await t7(e, r, n, s);
1058
+ if (i) return i = hr(i, (a) => typeof a == "string" ? w(false, a, '"', "&quot;") : a), [n.node.rawName, '="', E(i), '"'];
1050
1059
  };
1051
1060
  }
1052
- var Kn = Zi;
1053
- var Qn = new Proxy(() => {
1061
+ var ds = Ta;
1062
+ var ka = new Proxy(() => {
1054
1063
  }, {
1055
- get: () => Qn
1064
+ get: () => ka
1056
1065
  });
1057
- var gr = Qn;
1058
- function ta(t8) {
1059
- return Array.isArray(t8) && t8.length > 0;
1060
- }
1061
- var Me = ta;
1062
- function se(t8) {
1063
- return t8.sourceSpan.start.offset;
1066
+ function J(t7) {
1067
+ return t7.sourceSpan.start.offset;
1064
1068
  }
1065
- function ie(t8) {
1066
- return t8.sourceSpan.end.offset;
1069
+ function se(t7) {
1070
+ return t7.sourceSpan.end.offset;
1067
1071
  }
1068
- function Ze(t8, e) {
1069
- return [t8.isSelfClosing ? "" : ra(t8, e), Ee(t8, e)];
1072
+ function tt(t7, e) {
1073
+ return [t7.isSelfClosing ? "" : Ba(t7, e), Se(t7, e)];
1070
1074
  }
1071
- function ra(t8, e) {
1072
- return t8.lastChild && ve(t8.lastChild) ? "" : [na(t8, e), bt(t8, e)];
1075
+ function Ba(t7, e) {
1076
+ return t7.lastChild && Ae(t7.lastChild) ? "" : [La(t7, e), Lt(t7, e)];
1073
1077
  }
1074
- function Ee(t8, e) {
1075
- return (t8.next ? K(t8.next) : De(t8.parent)) ? "" : [Ae(t8, e), W(t8, e)];
1078
+ function Se(t7, e) {
1079
+ return (t7.next ? Q(t7.next) : Ee(t7.parent)) ? "" : [_e(t7, e), G(t7, e)];
1076
1080
  }
1077
- function na(t8, e) {
1078
- return De(t8) ? Ae(t8.lastChild, e) : "";
1081
+ function La(t7, e) {
1082
+ return Ee(t7) ? _e(t7.lastChild, e) : "";
1079
1083
  }
1080
- function W(t8, e) {
1081
- return ve(t8) ? bt(t8.parent, e) : et(t8) ? Tt(t8.next) : "";
1084
+ function G(t7, e) {
1085
+ return Ae(t7) ? Lt(t7.parent, e) : rt(t7) ? Ft(t7.next, e) : "";
1082
1086
  }
1083
- function bt(t8, e) {
1084
- if (gr(!t8.isSelfClosing), Xn(t8, e)) return "";
1085
- switch (t8.type) {
1087
+ function Lt(t7, e) {
1088
+ if (Cs(t7, e)) return "";
1089
+ switch (t7.type) {
1086
1090
  case "ieConditionalComment":
1087
1091
  return "<!";
1088
1092
  case "element":
1089
- if (t8.hasHtmComponentClosingTag) return "<//";
1093
+ if (t7.hasHtmComponentClosingTag) return "<//";
1090
1094
  default:
1091
- return `</${t8.rawName}`;
1095
+ return `</${t7.rawName}`;
1092
1096
  }
1093
1097
  }
1094
- function Ae(t8, e) {
1095
- if (Xn(t8, e)) return "";
1096
- switch (t8.type) {
1098
+ function _e(t7, e) {
1099
+ if (Cs(t7, e)) return "";
1100
+ switch (t7.type) {
1097
1101
  case "ieConditionalComment":
1098
1102
  case "ieConditionalEndComment":
1099
1103
  return "[endif]-->";
@@ -1104,121 +1108,130 @@ function Ae(t8, e) {
1104
1108
  case "angularIcuExpression":
1105
1109
  return "}";
1106
1110
  case "element":
1107
- if (t8.isSelfClosing) return "/>";
1111
+ if (t7.isSelfClosing) return "/>";
1108
1112
  default:
1109
1113
  return ">";
1110
1114
  }
1111
1115
  }
1112
- function Xn(t8, e) {
1113
- return !t8.isSelfClosing && !t8.endSourceSpan && (Se(t8) || Et(t8.parent, e));
1116
+ function Cs(t7, e) {
1117
+ return !t7.isSelfClosing && !t7.endSourceSpan && (ge(t7) || wt(t7.parent, e));
1114
1118
  }
1115
- function K(t8) {
1116
- return t8.prev && t8.prev.type !== "docType" && t8.type !== "angularControlFlowBlock" && !R(t8.prev) && t8.isLeadingSpaceSensitive && !t8.hasLeadingSpaces;
1119
+ function Q(t7) {
1120
+ return t7.prev && t7.prev.type !== "docType" && t7.type !== "angularControlFlowBlock" && !$(t7.prev) && t7.isLeadingSpaceSensitive && !t7.hasLeadingSpaces;
1117
1121
  }
1118
- function De(t8) {
1122
+ function Ee(t7) {
1119
1123
  var e;
1120
- return ((e = t8.lastChild) == null ? void 0 : e.isTrailingSpaceSensitive) && !t8.lastChild.hasTrailingSpaces && !R(Dt(t8.lastChild)) && !Ce(t8);
1124
+ return ((e = t7.lastChild) == null ? void 0 : e.isTrailingSpaceSensitive) && !t7.lastChild.hasTrailingSpaces && !$(Tt(t7.lastChild)) && !de(t7);
1121
1125
  }
1122
- function ve(t8) {
1123
- return !t8.next && !t8.hasTrailingSpaces && t8.isTrailingSpaceSensitive && R(Dt(t8));
1126
+ function Ae(t7) {
1127
+ return !t7.next && !t7.hasTrailingSpaces && t7.isTrailingSpaceSensitive && $(Tt(t7));
1124
1128
  }
1125
- function et(t8) {
1126
- return t8.next && !R(t8.next) && R(t8) && t8.isTrailingSpaceSensitive && !t8.hasTrailingSpaces;
1129
+ function rt(t7) {
1130
+ return t7.next && !$(t7.next) && $(t7) && t7.isTrailingSpaceSensitive && !t7.hasTrailingSpaces;
1127
1131
  }
1128
- function sa(t8) {
1129
- let e = t8.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);
1130
- return e ? e[1] ? e[1].split(/\s+/) : true : false;
1132
+ function Fa(t7) {
1133
+ let e = t7.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);
1134
+ return e ? e[1] ? e[1].split(/\s+/u) : true : false;
1131
1135
  }
1132
- function tt(t8) {
1133
- return !t8.prev && t8.isLeadingSpaceSensitive && !t8.hasLeadingSpaces;
1136
+ function nt(t7) {
1137
+ return !t7.prev && t7.isLeadingSpaceSensitive && !t7.hasLeadingSpaces;
1134
1138
  }
1135
- function ia(t8, e, r) {
1139
+ function Pa(t7, e, r) {
1136
1140
  var m;
1137
1141
  let {
1138
1142
  node: n
1139
- } = t8;
1140
- if (!Me(n.attrs)) return n.isSelfClosing ? " " : "";
1141
- let s = ((m = n.prev) == null ? void 0 : m.type) === "comment" && sa(n.prev.value), i = typeof s == "boolean" ? () => s : Array.isArray(s) ? (g) => s.includes(g.rawName) : () => false, a = t8.map(({
1142
- node: g
1143
- }) => i(g) ? T(e.originalText.slice(se(g), ie(g))) : 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 && !_e(n, e) ? S : A, l = [L([o ? " " : A, M(p, a)])];
1144
- return n.firstChild && tt(n.firstChild) || n.isSelfClosing && De(n.parent) || o ? l.push(n.isSelfClosing ? " " : "") : l.push(e.bracketSameLine ? n.isSelfClosing ? " " : "" : n.isSelfClosing ? A : v), l;
1143
+ } = t7;
1144
+ if (!me(n.attrs)) return n.isSelfClosing ? " " : "";
1145
+ let s = ((m = n.prev) == null ? void 0 : m.type) === "comment" && Fa(n.prev.value), i = typeof s == "boolean" ? () => s : Array.isArray(s) ? (f) => s.includes(f.rawName) : () => false, a = t7.map(({
1146
+ node: f
1147
+ }) => i(f) ? B(e.originalText.slice(J(f), se(f))) : 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 && !Ce(n, e) ? S : _, l = [k([o ? " " : _, H(p, a)])];
1148
+ return n.firstChild && nt(n.firstChild) || n.isSelfClosing && Ee(n.parent) || o ? l.push(n.isSelfClosing ? " " : "") : l.push(e.bracketSameLine ? n.isSelfClosing ? " " : "" : n.isSelfClosing ? _ : v), l;
1145
1149
  }
1146
- function aa(t8) {
1147
- return t8.firstChild && tt(t8.firstChild) ? "" : xt(t8);
1150
+ function Na(t7) {
1151
+ return t7.firstChild && nt(t7.firstChild) ? "" : Pt(t7);
1148
1152
  }
1149
- function rt(t8, e, r) {
1153
+ function st(t7, e, r) {
1150
1154
  let {
1151
1155
  node: n
1152
- } = t8;
1153
- return [ye(n, e), ia(t8, e, r), n.isSelfClosing ? "" : aa(n)];
1156
+ } = t7;
1157
+ return [De(n, e), Pa(t7, e, r), n.isSelfClosing ? "" : Na(n)];
1154
1158
  }
1155
- function ye(t8, e) {
1156
- return t8.prev && et(t8.prev) ? "" : [z(t8, e), Tt(t8)];
1159
+ function De(t7, e) {
1160
+ return t7.prev && rt(t7.prev) ? "" : [z(t7, e), Ft(t7, e)];
1157
1161
  }
1158
- function z(t8, e) {
1159
- return tt(t8) ? xt(t8.parent) : K(t8) ? Ae(t8.prev, e) : "";
1162
+ function z(t7, e) {
1163
+ return nt(t7) ? Pt(t7.parent) : Q(t7) ? _e(t7.prev, e) : "";
1160
1164
  }
1161
- function Tt(t8) {
1162
- switch (t8.type) {
1165
+ var gs = "<!doctype";
1166
+ function Ft(t7, e) {
1167
+ switch (t7.type) {
1163
1168
  case "ieConditionalComment":
1164
1169
  case "ieConditionalStartComment":
1165
- return `<!--[if ${t8.condition}`;
1170
+ return `<!--[if ${t7.condition}`;
1166
1171
  case "ieConditionalEndComment":
1167
1172
  return "<!--<!";
1168
1173
  case "interpolation":
1169
1174
  return "{{";
1170
- case "docType":
1171
- return t8.value === "html" ? "<!doctype" : "<!DOCTYPE";
1175
+ case "docType": {
1176
+ if (t7.value === "html") {
1177
+ let {
1178
+ filepath: n
1179
+ } = e;
1180
+ if (n && /\.html?$/u.test(n)) return gs;
1181
+ }
1182
+ let r = J(t7);
1183
+ return e.originalText.slice(r, r + gs.length);
1184
+ }
1172
1185
  case "angularIcuExpression":
1173
1186
  return "{";
1174
1187
  case "element":
1175
- if (t8.condition) return `<!--[if ${t8.condition}]><!--><${t8.rawName}`;
1188
+ if (t7.condition) return `<!--[if ${t7.condition}]><!--><${t7.rawName}`;
1176
1189
  default:
1177
- return `<${t8.rawName}`;
1190
+ return `<${t7.rawName}`;
1178
1191
  }
1179
1192
  }
1180
- function xt(t8) {
1181
- switch (gr(!t8.isSelfClosing), t8.type) {
1193
+ function Pt(t7) {
1194
+ switch (t7.type) {
1182
1195
  case "ieConditionalComment":
1183
1196
  return "]>";
1184
1197
  case "element":
1185
- if (t8.condition) return "><!--<![endif]-->";
1198
+ if (t7.condition) return "><!--<![endif]-->";
1186
1199
  default:
1187
1200
  return ">";
1188
1201
  }
1189
1202
  }
1190
- function oa(t8, e) {
1191
- if (!t8.endSourceSpan) return "";
1192
- let r = t8.startSourceSpan.end.offset;
1193
- t8.firstChild && tt(t8.firstChild) && (r -= xt(t8).length);
1194
- let n = t8.endSourceSpan.start.offset;
1195
- return t8.lastChild && ve(t8.lastChild) ? n += bt(t8, e).length : De(t8) && (n -= Ae(t8.lastChild, e).length), e.originalText.slice(r, n);
1203
+ function Ia(t7, e) {
1204
+ if (!t7.endSourceSpan) return "";
1205
+ let r = t7.startSourceSpan.end.offset;
1206
+ t7.firstChild && nt(t7.firstChild) && (r -= Pt(t7).length);
1207
+ let n = t7.endSourceSpan.start.offset;
1208
+ return t7.lastChild && Ae(t7.lastChild) ? n += Lt(t7, e).length : Ee(t7) && (n -= _e(t7.lastChild, e).length), e.originalText.slice(r, n);
1196
1209
  }
1197
- var kt = oa;
1198
- var ua = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
1199
- function la(t8, e) {
1210
+ var Nt = Ia;
1211
+ var Ra = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
1212
+ function $a(t7, e) {
1200
1213
  let {
1201
1214
  node: r
1202
- } = t8;
1215
+ } = t7;
1203
1216
  switch (r.type) {
1204
1217
  case "element":
1205
- if (U(r) || r.type === "interpolation") return;
1206
- if (!r.isSelfClosing && vt(r, e)) {
1207
- let n = lr(r, e);
1218
+ if (W(r, e) || r.type === "interpolation") return;
1219
+ if (!r.isSelfClosing && xt(r, e)) {
1220
+ let n = vr(r, e);
1208
1221
  return n ? async (s, i) => {
1209
- let a = kt(r, e), o = /^\s*$/.test(a), u = "";
1210
- return o || (u = await s(ar(a), {
1222
+ let a = Nt(r, e), o = /^\s*$/u.test(a), u = "";
1223
+ return o || (u = await s(Er(a), {
1211
1224
  parser: n,
1212
1225
  __embeddedInHtml: true
1213
- }), o = u === ""), [z(r, e), E(rt(t8, e, i)), o ? "" : S, u, o ? "" : S, Ze(r, e), W(r, e)];
1226
+ }), o = u === ""), [z(r, e), E(st(t7, e, i)), o ? "" : S, u, o ? "" : S, tt(r, e), G(r, e)];
1214
1227
  } : void 0;
1215
1228
  }
1216
1229
  break;
1217
1230
  case "text":
1218
- if (U(r.parent)) {
1219
- let n = lr(r.parent, e);
1231
+ if (W(r.parent, e)) {
1232
+ let n = vr(r.parent, e);
1220
1233
  if (n) return async (s) => {
1221
- let i = n === "markdown" ? cr(r.value.replace(/^[^\S\n]*\n/, "")) : r.value, a = {
1234
+ let i = n === "markdown" ? yr(r.value.replace(/^[^\S\n]*\n/u, "")) : r.value, a = {
1222
1235
  parser: n,
1223
1236
  __embeddedInHtml: true
1224
1237
  };
@@ -1226,44 +1239,49 @@ function la(t8, e) {
1226
1239
  let o = "script", {
1227
1240
  attrMap: u
1228
1241
  } = r.parent;
1229
- u && (u.type === "module" || u.type === "text/babel" && u["data-type"] === "module") && (o = "module"), a.__babelSourceType = o;
1242
+ u && (u.type === "module" || (u.type === "text/babel" || u.type === "text/jsx") && u["data-type"] === "module") && (o = "module"), a.__babelSourceType = o;
1230
1243
  }
1231
- return [ne, z(r, e), await s(i, a), W(r, e)];
1244
+ return [ne, z(r, e), await s(i, a), G(r, e)];
1232
1245
  };
1233
1246
  } else if (r.parent.type === "interpolation") return async (n) => {
1234
1247
  let s = {
1235
1248
  __isInHtmlInterpolation: true,
1236
1249
  __embeddedInHtml: true
1237
1250
  };
1238
- return e.parser === "angular" ? (s.parser = "__ng_interpolation", s.trailingComma = "none") : e.parser === "vue" ? s.parser = Oe(t8, e) ? "__vue_ts_expression" : "__vue_expression" : s.parser = "__js_expression", [L([A, await n(r.value, s)]), r.parent.next && K(r.parent.next) ? " " : A];
1251
+ return e.parser === "angular" ? s.parser = "__ng_interpolation" : e.parser === "vue" ? s.parser = Ie(t7, e) ? "__vue_ts_expression" : "__vue_expression" : s.parser = "__js_expression", [k([_, await n(r.value, s)]), r.parent.next && Q(r.parent.next) ? " " : _];
1239
1252
  };
1240
1253
  break;
1241
1254
  case "attribute":
1242
- return Kn(t8, e);
1255
+ return ds(t7, e);
1243
1256
  case "front-matter":
1244
- return (n) => pn(r, n);
1257
+ return (n) => yn(r, n);
1245
1258
  case "angularControlFlowBlockParameters":
1246
- return ua.has(t8.parent.name) ? hn : void 0;
1259
+ return Ra.has(t7.parent.name) ? wn : void 0;
1260
+ case "angularLetDeclarationInitializer":
1261
+ return (n) => T(r.value, n, {
1262
+ parser: "__ng_binding",
1263
+ __isInHtmlAttribute: false
1264
+ });
1247
1265
  }
1248
1266
  }
1249
- var Jn = la;
1250
- var nt = null;
1251
- function st(t8) {
1252
- if (nt !== null && typeof nt.property) {
1253
- let e = nt;
1254
- return nt = st.prototype = null, e;
1267
+ var Ss = $a;
1268
+ var it = null;
1269
+ function at(t7) {
1270
+ if (it !== null && typeof it.property) {
1271
+ let e = it;
1272
+ return it = at.prototype = null, e;
1255
1273
  }
1256
- return nt = st.prototype = t8 ?? /* @__PURE__ */ Object.create(null), new st();
1274
+ return it = at.prototype = t7 ?? /* @__PURE__ */ Object.create(null), new at();
1257
1275
  }
1258
- var ca = 10;
1259
- for (let t8 = 0; t8 <= ca; t8++) st();
1260
- function dr(t8) {
1261
- return st(t8);
1276
+ var Oa = 10;
1277
+ for (let t7 = 0; t7 <= Oa; t7++) at();
1278
+ function kr(t7) {
1279
+ return at(t7);
1262
1280
  }
1263
- function pa(t8, e = "type") {
1264
- dr(t8);
1281
+ function Ma(t7, e = "type") {
1282
+ kr(t7);
1265
1283
  function r(n) {
1266
- let s = n[e], i = t8[s];
1284
+ let s = n[e], i = t7[s];
1267
1285
  if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), {
1268
1286
  node: n
1269
1287
  });
@@ -1271,8 +1289,8 @@ function pa(t8, e = "type") {
1271
1289
  }
1272
1290
  return r;
1273
1291
  }
1274
- var Zn = pa;
1275
- var ha = {
1292
+ var _s = Ma;
1293
+ var qa = {
1276
1294
  "front-matter": [],
1277
1295
  root: ["children"],
1278
1296
  element: ["attrs", "children"],
@@ -1288,141 +1306,153 @@ var ha = {
1288
1306
  angularControlFlowBlock: ["children", "parameters"],
1289
1307
  angularControlFlowBlockParameters: ["children"],
1290
1308
  angularControlFlowBlockParameter: [],
1309
+ angularLetDeclaration: ["init"],
1310
+ angularLetDeclarationInitializer: [],
1291
1311
  angularIcuExpression: ["cases"],
1292
1312
  angularIcuCase: ["expression"]
1293
1313
  };
1294
- var es = ha;
1295
- var fa = Zn(es);
1296
- var ts = fa;
1297
- function rs(t8) {
1298
- return /^\s*<!--\s*@(?:format|prettier)\s*-->/.test(t8);
1299
- }
1300
- function ns(t8) {
1301
- return `<!-- @format -->
1314
+ var Es = qa;
1315
+ var Ha = _s(Es);
1316
+ var As = Ha;
1317
+ var Ds = "format";
1318
+ var vs = /^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u;
1319
+ var ys = /^\s*<!--\s*@(?:format|prettier)\s*-->/u;
1320
+ function ws(t7) {
1321
+ return ys.test(t7);
1322
+ }
1323
+ function bs(t7) {
1324
+ return vs.test(t7);
1325
+ }
1326
+ function Ts(t7) {
1327
+ return `<!-- @${Ds} -->
1302
1328
 
1303
- ` + t8;
1329
+ ${t7}`;
1304
1330
  }
1305
- var ss = /* @__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"])]]);
1306
- function is(t8) {
1307
- let e = ie(t8);
1308
- return t8.type === "element" && !t8.endSourceSpan && Me(t8.children) ? Math.max(e, is(X(false, t8.children, -1))) : e;
1331
+ var xs = /* @__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"])]]);
1332
+ function ks(t7) {
1333
+ let e = se(t7);
1334
+ return t7.type === "element" && !t7.endSourceSpan && me(t7.children) ? Math.max(e, ks(K(false, t7.children, -1))) : e;
1309
1335
  }
1310
- function it(t8, e, r) {
1311
- let n = t8.node;
1312
- if (Se(n)) {
1313
- let s = is(n);
1314
- return [z(n, e), T(F.trimEnd(e.originalText.slice(se(n) + (n.prev && et(n.prev) ? Tt(n).length : 0), s - (n.next && K(n.next) ? Ae(n, e).length : 0)))), W(n, e)];
1336
+ function ot(t7, e, r) {
1337
+ let n = t7.node;
1338
+ if (ge(n)) {
1339
+ let s = ks(n);
1340
+ return [z(n, e), B(O.trimEnd(e.originalText.slice(J(n) + (n.prev && rt(n.prev) ? Ft(n).length : 0), s - (n.next && Q(n.next) ? _e(n, e).length : 0)))), G(n, e)];
1315
1341
  }
1316
1342
  return r();
1317
1343
  }
1318
- function Bt(t8, e) {
1319
- return R(t8) && R(e) ? t8.isTrailingSpaceSensitive ? t8.hasTrailingSpaces ? At(e) ? S : A : "" : At(e) ? S : v : et(t8) && (Se(e) || e.firstChild || e.isSelfClosing || e.type === "element" && e.attrs.length > 0) || t8.type === "element" && t8.isSelfClosing && K(e) ? "" : !e.isLeadingSpaceSensitive || At(e) || K(e) && t8.lastChild && ve(t8.lastChild) && t8.lastChild.lastChild && ve(t8.lastChild.lastChild) ? S : e.hasLeadingSpaces ? A : v;
1344
+ function It(t7, e) {
1345
+ return $(t7) && $(e) ? t7.isTrailingSpaceSensitive ? t7.hasTrailingSpaces ? bt(e) ? S : _ : "" : bt(e) ? S : v : rt(t7) && (ge(e) || e.firstChild || e.isSelfClosing || e.type === "element" && e.attrs.length > 0) || t7.type === "element" && t7.isSelfClosing && Q(e) ? "" : !e.isLeadingSpaceSensitive || bt(e) || Q(e) && t7.lastChild && Ae(t7.lastChild) && t7.lastChild.lastChild && Ae(t7.lastChild.lastChild) ? S : e.hasLeadingSpaces ? _ : v;
1320
1346
  }
1321
- function qe(t8, e, r) {
1347
+ function Re(t7, e, r) {
1322
1348
  let {
1323
1349
  node: n
1324
- } = t8;
1325
- if (ur(n)) return [ne, ...t8.map((i) => {
1326
- let a = i.node, o = a.prev ? Bt(a.prev, a) : "";
1327
- return [o ? [o, Qe(a.prev) ? S : ""] : "", it(i, e, r)];
1350
+ } = t7;
1351
+ if (Dr(n)) return [ne, ...t7.map((i) => {
1352
+ let a = i.node, o = a.prev ? It(a.prev, a) : "";
1353
+ return [o ? [o, Je(a.prev) ? S : ""] : "", ot(i, e, r)];
1328
1354
  }, "children")];
1329
1355
  let s = n.children.map(() => Symbol(""));
1330
- return t8.map((i, a) => {
1356
+ return t7.map((i, a) => {
1331
1357
  let o = i.node;
1332
- if (R(o)) {
1333
- if (o.prev && R(o.prev)) {
1334
- let _ = Bt(o.prev, o);
1335
- if (_) return Qe(o.prev) ? [S, S, it(i, e, r)] : [_, it(i, e, r)];
1358
+ if ($(o)) {
1359
+ if (o.prev && $(o.prev)) {
1360
+ let A = It(o.prev, o);
1361
+ if (A) return Je(o.prev) ? [S, S, ot(i, e, r)] : [A, ot(i, e, r)];
1336
1362
  }
1337
- return it(i, e, r);
1363
+ return ot(i, e, r);
1338
1364
  }
1339
- let u = [], p = [], l = [], m = [], g = o.prev ? Bt(o.prev, o) : "", C = o.next ? Bt(o, o.next) : "";
1340
- return g && (Qe(o.prev) ? u.push(S, S) : g === S ? u.push(S) : R(o.prev) ? p.push(g) : p.push(me("", v, {
1365
+ let u = [], p = [], l = [], m = [], f = o.prev ? It(o.prev, o) : "", C = o.next ? It(o, o.next) : "";
1366
+ return f && (Je(o.prev) ? u.push(S, S) : f === S ? u.push(S) : $(o.prev) ? p.push(f) : p.push(pe("", v, {
1341
1367
  groupId: s[a - 1]
1342
- }))), C && (Qe(o) ? R(o.next) && m.push(S, S) : C === S ? R(o.next) && m.push(S) : l.push(C)), [...u, E([...p, E([it(i, e, r), ...l], {
1368
+ }))), C && (Je(o) ? $(o.next) && m.push(S, S) : C === S ? $(o.next) && m.push(S) : l.push(C)), [...u, E([...p, E([ot(i, e, r), ...l], {
1343
1369
  id: s[a]
1344
1370
  })]), ...m];
1345
1371
  }, "children");
1346
1372
  }
1347
- function as(t8, e, r) {
1373
+ function Bs(t7, e, r) {
1348
1374
  let {
1349
1375
  node: n
1350
- } = t8, s = [];
1351
- ma(t8) && s.push("} "), s.push("@", n.name), n.parameters && s.push(" (", E(r("parameters")), ")"), s.push(" {");
1352
- let i = os(n);
1353
- return n.children.length > 0 ? (n.firstChild.hasLeadingSpaces = true, n.lastChild.hasTrailingSpaces = true, s.push(L([S, qe(t8, e, r)])), i && s.push(S, "}")) : i && s.push("}"), E(s, {
1376
+ } = t7, s = [];
1377
+ Va(t7) && s.push("} "), s.push("@", n.name), n.parameters && s.push(" (", E(r("parameters")), ")"), s.push(" {");
1378
+ let i = Ls(n);
1379
+ return n.children.length > 0 ? (n.firstChild.hasLeadingSpaces = true, n.lastChild.hasTrailingSpaces = true, s.push(k([S, Re(t7, e, r)])), i && s.push(S, "}")) : i && s.push("}"), E(s, {
1354
1380
  shouldBreak: true
1355
1381
  });
1356
1382
  }
1357
- function os(t8) {
1383
+ function Ls(t7) {
1358
1384
  var e, r;
1359
- return !(((e = t8.next) == null ? void 0 : e.type) === "angularControlFlowBlock" && (r = ss.get(t8.name)) != null && r.has(t8.next.name));
1385
+ return !(((e = t7.next) == null ? void 0 : e.type) === "angularControlFlowBlock" && (r = xs.get(t7.name)) != null && r.has(t7.next.name));
1360
1386
  }
1361
- function ma(t8) {
1387
+ function Va(t7) {
1362
1388
  let {
1363
1389
  previous: e
1364
- } = t8;
1365
- return (e == null ? void 0 : e.type) === "angularControlFlowBlock" && !Se(e) && !os(e);
1390
+ } = t7;
1391
+ return (e == null ? void 0 : e.type) === "angularControlFlowBlock" && !ge(e) && !Ls(e);
1366
1392
  }
1367
- function us(t8, e, r) {
1368
- return [L([v, M([";", A], t8.map(r, "children"))]), v];
1393
+ function Fs(t7, e, r) {
1394
+ return [k([v, H([";", _], t7.map(r, "children"))]), v];
1369
1395
  }
1370
- function ls(t8, e, r) {
1396
+ function Ps(t7, e, r) {
1371
1397
  let {
1372
1398
  node: n
1373
- } = t8;
1374
- return [ye(n, e), E([n.switchValue.trim(), ", ", n.clause, n.cases.length > 0 ? [",", L([A, M(A, t8.map(r, "cases"))])] : "", v]), Ee(n, e)];
1399
+ } = t7;
1400
+ return [De(n, e), E([n.switchValue.trim(), ", ", n.clause, n.cases.length > 0 ? [",", k([_, H(_, t7.map(r, "cases"))])] : "", v]), Se(n, e)];
1375
1401
  }
1376
- function cs(t8, e, r) {
1402
+ function Ns(t7, e, r) {
1377
1403
  let {
1378
1404
  node: n
1379
- } = t8;
1380
- return [n.value, " {", E([L([v, t8.map(({
1381
- node: s
1382
- }) => s.type === "text" && !F.trim(s.value) ? "" : r(), "expression")]), v]), "}"];
1383
- }
1384
- function ps(t8, e, r) {
1405
+ } = t7;
1406
+ return [n.value, " {", E([k([v, t7.map(({
1407
+ node: s,
1408
+ isLast: i
1409
+ }) => {
1410
+ let a = [r()];
1411
+ return s.type === "text" && (s.hasLeadingSpaces && a.unshift(_), s.hasTrailingSpaces && !i && a.push(_)), a;
1412
+ }, "expression")]), v]), "}"];
1413
+ }
1414
+ function Is(t7, e, r) {
1385
1415
  let {
1386
1416
  node: n
1387
- } = t8;
1388
- if (Et(n, e)) return [z(n, e), E(rt(t8, e, r)), T(kt(n, e)), ...Ze(n, e), W(n, e)];
1389
- 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) => E([E(rt(t8, e, r), {
1417
+ } = t7;
1418
+ if (wt(n, e)) return [z(n, e), E(st(t7, e, r)), B(Nt(n, e)), ...tt(n, e), G(n, e)];
1419
+ 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) => E([E(st(t7, e, r), {
1390
1420
  id: i
1391
- }), l, Ze(n, e)]), o = (l) => s ? tn(l, {
1421
+ }), l, tt(n, e)]), o = (l) => s ? Cn(l, {
1392
1422
  groupId: i
1393
- }) : (U(n) || Je(n, e)) && n.parent.type === "root" && e.parser === "vue" && !e.vueIndentScriptAndStyle ? l : L(l), u = () => s ? me(v, "", {
1423
+ }) : (W(n, e) || et(n, e)) && n.parent.type === "root" && e.parser === "vue" && !e.vueIndentScriptAndStyle ? l : k(l), u = () => s ? pe(v, "", {
1394
1424
  groupId: i
1395
- }) : n.firstChild.hasLeadingSpaces && n.firstChild.isLeadingSpaceSensitive ? A : n.firstChild.type === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive ? Zr(v) : v, p = () => (n.next ? K(n.next) : De(n.parent)) ? n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? " " : "" : s ? me(v, "", {
1425
+ }) : n.firstChild.hasLeadingSpaces && n.firstChild.isLeadingSpaceSensitive ? _ : n.firstChild.type === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive ? dn(v) : v, p = () => (n.next ? Q(n.next) : Ee(n.parent)) ? n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? " " : "" : s ? pe(v, "", {
1396
1426
  groupId: i
1397
- }) : n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? A : (n.lastChild.type === "comment" || n.lastChild.type === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${e.tabWidth * (t8.ancestors.length - 1)}}$`).test(n.lastChild.value) ? "" : v;
1398
- return n.children.length === 0 ? a(n.hasDanglingSpaces && n.isDanglingSpaceSensitive ? A : "") : a([yn(n) ? ne : "", o([u(), qe(t8, e, r)]), p()]);
1427
+ }) : n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? _ : (n.lastChild.type === "comment" || n.lastChild.type === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${e.tabWidth * (t7.ancestors.length - 1)}}$`, "u").test(n.lastChild.value) ? "" : v;
1428
+ return n.children.length === 0 ? a(n.hasDanglingSpaces && n.isDanglingSpaceSensitive ? _ : "") : a([Gn(n) ? ne : "", o([u(), Re(t7, e, r)]), p()]);
1399
1429
  }
1400
- function Lt(t8) {
1401
- return t8 >= 9 && t8 <= 32 || t8 == 160;
1430
+ function ut(t7) {
1431
+ return t7 >= 9 && t7 <= 32 || t7 == 160;
1402
1432
  }
1403
- function Cr(t8) {
1404
- return 48 <= t8 && t8 <= 57;
1433
+ function Rt(t7) {
1434
+ return 48 <= t7 && t7 <= 57;
1405
1435
  }
1406
- function Ft(t8) {
1407
- return t8 >= 97 && t8 <= 122 || t8 >= 65 && t8 <= 90;
1436
+ function lt(t7) {
1437
+ return t7 >= 97 && t7 <= 122 || t7 >= 65 && t7 <= 90;
1408
1438
  }
1409
- function hs(t8) {
1410
- return t8 >= 97 && t8 <= 102 || t8 >= 65 && t8 <= 70 || Cr(t8);
1439
+ function Rs(t7) {
1440
+ return t7 >= 97 && t7 <= 102 || t7 >= 65 && t7 <= 70 || Rt(t7);
1411
1441
  }
1412
- function Sr(t8) {
1413
- return t8 === 10 || t8 === 13;
1442
+ function $t(t7) {
1443
+ return t7 === 10 || t7 === 13;
1414
1444
  }
1415
- function _r(t8) {
1416
- return 48 <= t8 && t8 <= 55;
1445
+ function Br(t7) {
1446
+ return 48 <= t7 && t7 <= 55;
1417
1447
  }
1418
- function Er(t8) {
1419
- return t8 === 39 || t8 === 34 || t8 === 96;
1448
+ function Ot(t7) {
1449
+ return t7 === 39 || t7 === 34 || t7 === 96;
1420
1450
  }
1421
- var ga = /-+([a-z0-9])/g;
1422
- function ms(t8) {
1423
- return t8.replace(ga, (...e) => e[1].toUpperCase());
1451
+ var Ua = /-+([a-z0-9])/g;
1452
+ function Os(t7) {
1453
+ return t7.replace(Ua, (...e) => e[1].toUpperCase());
1424
1454
  }
1425
- var ae = class t {
1455
+ var ie = class t {
1426
1456
  constructor(e, r, n, s) {
1427
1457
  this.file = e, this.offset = r, this.line = n, this.col = s;
1428
1458
  }
@@ -1459,12 +1489,12 @@ var ae = class t {
1459
1489
  return null;
1460
1490
  }
1461
1491
  };
1462
- var we = class {
1492
+ var ve = class {
1463
1493
  constructor(e, r) {
1464
1494
  this.content = e, this.url = r;
1465
1495
  }
1466
1496
  };
1467
- var f = class {
1497
+ var h = class {
1468
1498
  constructor(e, r, n = e, s = null) {
1469
1499
  this.start = e, this.end = r, this.fullStart = n, this.details = s;
1470
1500
  }
@@ -1472,30 +1502,30 @@ var f = class {
1472
1502
  return this.start.file.content.substring(this.start.offset, this.end.offset);
1473
1503
  }
1474
1504
  };
1475
- var Pt;
1476
- (function(t8) {
1477
- t8[t8.WARNING = 0] = "WARNING", t8[t8.ERROR = 1] = "ERROR";
1478
- })(Pt || (Pt = {}));
1479
- var Ve = class {
1480
- constructor(e, r, n = Pt.ERROR) {
1481
- this.span = e, this.msg = r, this.level = n;
1505
+ var Mt;
1506
+ (function(t7) {
1507
+ t7[t7.WARNING = 0] = "WARNING", t7[t7.ERROR = 1] = "ERROR";
1508
+ })(Mt || (Mt = {}));
1509
+ var Oe = class {
1510
+ constructor(e, r, n = Mt.ERROR, s) {
1511
+ this.span = e, this.msg = r, this.level = n, this.relatedError = s;
1482
1512
  }
1483
1513
  contextualMessage() {
1484
1514
  let e = this.span.start.getContext(100, 3);
1485
- return e ? `${this.msg} ("${e.before}[${Pt[this.level]} ->]${e.after}")` : this.msg;
1515
+ return e ? `${this.msg} ("${e.before}[${Mt[this.level]} ->]${e.after}")` : this.msg;
1486
1516
  }
1487
1517
  toString() {
1488
1518
  let e = this.span.details ? `, ${this.span.details}` : "";
1489
1519
  return `${this.contextualMessage()}: ${this.span.start}${e}`;
1490
1520
  }
1491
1521
  };
1492
- var da = [Sa, _a, Aa, va, ya, Ta, wa, ba, xa, Da];
1493
- function Ca(t8, e) {
1494
- for (let r of da) r(t8, e);
1495
- return t8;
1522
+ var Wa = [za, Ya, Ka, Qa, Ja, to, Za, eo, ro, Xa];
1523
+ function Ga(t7, e) {
1524
+ for (let r of Wa) r(t7, e);
1525
+ return t7;
1496
1526
  }
1497
- function Sa(t8) {
1498
- t8.walk((e) => {
1527
+ function za(t7) {
1528
+ t7.walk((e) => {
1499
1529
  if (e.type === "element" && e.tagDefinition.ignoreFirstLf && e.children.length > 0 && e.children[0].type === "text" && e.children[0].value[0] === `
1500
1530
  `) {
1501
1531
  let r = e.children[0];
@@ -1503,55 +1533,55 @@ function Sa(t8) {
1503
1533
  }
1504
1534
  });
1505
1535
  }
1506
- function _a(t8) {
1536
+ function Ya(t7) {
1507
1537
  let e = (r) => {
1508
1538
  var n, s;
1509
1539
  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;
1510
1540
  };
1511
- t8.walk((r) => {
1541
+ t7.walk((r) => {
1512
1542
  if (r.children) for (let n = 0; n < r.children.length; n++) {
1513
1543
  let s = r.children[n];
1514
1544
  if (!e(s)) continue;
1515
1545
  let i = s.prev, a = s.firstChild;
1516
1546
  r.removeChild(i), n--;
1517
- let o = new f(i.sourceSpan.start, a.sourceSpan.end), u = new f(o.start, s.sourceSpan.end);
1547
+ let o = new h(i.sourceSpan.start, a.sourceSpan.end), u = new h(o.start, s.sourceSpan.end);
1518
1548
  s.condition = i.condition, s.sourceSpan = u, s.startSourceSpan = o, s.removeChild(a);
1519
1549
  }
1520
1550
  });
1521
1551
  }
1522
- function Ea(t8, e, r) {
1523
- t8.walk((n) => {
1552
+ function ja(t7, e, r) {
1553
+ t7.walk((n) => {
1524
1554
  if (n.children) for (let s = 0; s < n.children.length; s++) {
1525
1555
  let i = n.children[s];
1526
1556
  if (i.type !== "text" && !e(i)) continue;
1527
1557
  i.type !== "text" && (i.type = "text", i.value = r(i));
1528
1558
  let a = i.prev;
1529
- !a || a.type !== "text" || (a.value += i.value, a.sourceSpan = new f(a.sourceSpan.start, i.sourceSpan.end), n.removeChild(i), s--);
1559
+ !a || a.type !== "text" || (a.value += i.value, a.sourceSpan = new h(a.sourceSpan.start, i.sourceSpan.end), n.removeChild(i), s--);
1530
1560
  }
1531
1561
  });
1532
1562
  }
1533
- function Aa(t8) {
1534
- return Ea(t8, (e) => e.type === "cdata", (e) => `<![CDATA[${e.value}]]>`);
1563
+ function Ka(t7) {
1564
+ return ja(t7, (e) => e.type === "cdata", (e) => `<![CDATA[${e.value}]]>`);
1535
1565
  }
1536
- function Da(t8) {
1566
+ function Xa(t7) {
1537
1567
  let e = (r) => {
1538
1568
  var n, s;
1539
- return r.type === "element" && r.attrs.length === 0 && r.children.length === 1 && r.firstChild.type === "text" && !F.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";
1569
+ return r.type === "element" && r.attrs.length === 0 && r.children.length === 1 && r.firstChild.type === "text" && !O.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";
1540
1570
  };
1541
- t8.walk((r) => {
1571
+ t7.walk((r) => {
1542
1572
  if (r.children) for (let n = 0; n < r.children.length; n++) {
1543
1573
  let s = r.children[n];
1544
1574
  if (!e(s)) continue;
1545
1575
  let i = s.prev, a = s.next;
1546
- i.value += `<${s.rawName}>` + s.firstChild.value + `</${s.rawName}>` + a.value, i.sourceSpan = new f(i.sourceSpan.start, a.sourceSpan.end), i.isTrailingSpaceSensitive = a.isTrailingSpaceSensitive, i.hasTrailingSpaces = a.hasTrailingSpaces, r.removeChild(s), n--, r.removeChild(a);
1576
+ 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);
1547
1577
  }
1548
1578
  });
1549
1579
  }
1550
- function va(t8, e) {
1580
+ function Qa(t7, e) {
1551
1581
  if (e.parser === "html") return;
1552
- let r = /{{(.+?)}}/s;
1553
- t8.walk((n) => {
1554
- if (_n(n)) for (let s of n.children) {
1582
+ let r = /\{\{(.+?)\}\}/su;
1583
+ t7.walk((n) => {
1584
+ if (qn(n, e)) for (let s of n.children) {
1555
1585
  if (s.type !== "text") continue;
1556
1586
  let i = s.sourceSpan.start, a = null, o = s.value.split(r);
1557
1587
  for (let u = 0; u < o.length; u++, i = a) {
@@ -1560,17 +1590,17 @@ function va(t8, e) {
1560
1590
  a = i.moveBy(p.length), p.length > 0 && n.insertChildBefore(s, {
1561
1591
  type: "text",
1562
1592
  value: p,
1563
- sourceSpan: new f(i, a)
1593
+ sourceSpan: new h(i, a)
1564
1594
  });
1565
1595
  continue;
1566
1596
  }
1567
1597
  a = i.moveBy(p.length + 4), n.insertChildBefore(s, {
1568
1598
  type: "interpolation",
1569
- sourceSpan: new f(i, a),
1599
+ sourceSpan: new h(i, a),
1570
1600
  children: p.length === 0 ? [] : [{
1571
1601
  type: "text",
1572
1602
  value: p,
1573
- sourceSpan: new f(i.moveBy(2), a.moveBy(-2))
1603
+ sourceSpan: new h(i.moveBy(2), a.moveBy(-2))
1574
1604
  }]
1575
1605
  });
1576
1606
  }
@@ -1578,53 +1608,54 @@ function va(t8, e) {
1578
1608
  }
1579
1609
  });
1580
1610
  }
1581
- function ya(t8) {
1582
- t8.walk((e) => {
1583
- if (!e.children) return;
1584
- if (e.children.length === 0 || e.children.length === 1 && e.children[0].type === "text" && F.trim(e.children[0].value).length === 0) {
1585
- e.hasDanglingSpaces = e.children.length > 0, e.children = [];
1611
+ function Ja(t7, e) {
1612
+ t7.walk((r) => {
1613
+ let n = r.$children;
1614
+ if (!n) return;
1615
+ if (n.length === 0 || n.length === 1 && n[0].type === "text" && O.trim(n[0].value).length === 0) {
1616
+ r.hasDanglingSpaces = n.length > 0, r.$children = [];
1586
1617
  return;
1587
1618
  }
1588
- let r = En(e), n = or(e);
1589
- if (!r) for (let s = 0; s < e.children.length; s++) {
1590
- let i = e.children[s];
1591
- if (i.type !== "text") continue;
1619
+ let s = Hn(r, e), i = Ar(r);
1620
+ if (!s) for (let a = 0; a < n.length; a++) {
1621
+ let o = n[a];
1622
+ if (o.type !== "text") continue;
1592
1623
  let {
1593
- leadingWhitespace: a,
1594
- text: o,
1595
- trailingWhitespace: u
1596
- } = Sn(i.value), p = i.prev, l = i.next;
1597
- o ? (i.value = o, i.sourceSpan = new f(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)));
1624
+ leadingWhitespace: u,
1625
+ text: p,
1626
+ trailingWhitespace: l
1627
+ } = Mn(o.value), m = o.prev, f = o.next;
1628
+ p ? (o.value = p, o.sourceSpan = new h(o.sourceSpan.start.moveBy(u.length), o.sourceSpan.end.moveBy(-l.length)), u && (m && (m.hasTrailingSpaces = true), o.hasLeadingSpaces = true), l && (o.hasTrailingSpaces = true, f && (f.hasLeadingSpaces = true))) : (r.removeChild(o), a--, (u || l) && (m && (m.hasTrailingSpaces = true), f && (f.hasLeadingSpaces = true)));
1598
1629
  }
1599
- e.isWhitespaceSensitive = r, e.isIndentationSensitive = n;
1630
+ r.isWhitespaceSensitive = s, r.isIndentationSensitive = i;
1600
1631
  });
1601
1632
  }
1602
- function wa(t8) {
1603
- t8.walk((e) => {
1633
+ function Za(t7) {
1634
+ t7.walk((e) => {
1604
1635
  e.isSelfClosing = !e.children || e.type === "element" && (e.tagDefinition.isVoid || e.endSourceSpan && e.startSourceSpan.start === e.endSourceSpan.start && e.startSourceSpan.end === e.endSourceSpan.end);
1605
1636
  });
1606
1637
  }
1607
- function ba(t8, e) {
1608
- t8.walk((r) => {
1609
- r.type === "element" && (r.hasHtmComponentClosingTag = r.endSourceSpan && /^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset, r.endSourceSpan.end.offset)));
1638
+ function eo(t7, e) {
1639
+ t7.walk((r) => {
1640
+ r.type === "element" && (r.hasHtmComponentClosingTag = r.endSourceSpan && /^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset, r.endSourceSpan.end.offset)));
1610
1641
  });
1611
1642
  }
1612
- function Ta(t8, e) {
1613
- t8.walk((r) => {
1614
- r.cssDisplay = Bn(r, e);
1643
+ function to(t7, e) {
1644
+ t7.walk((r) => {
1645
+ r.cssDisplay = Qn(r, e);
1615
1646
  });
1616
1647
  }
1617
- function xa(t8, e) {
1618
- t8.walk((r) => {
1648
+ function ro(t7, e) {
1649
+ t7.walk((r) => {
1619
1650
  let {
1620
1651
  children: n
1621
1652
  } = r;
1622
1653
  if (n) {
1623
1654
  if (n.length === 0) {
1624
- r.isDanglingSpaceSensitive = vn(r);
1655
+ r.isDanglingSpaceSensitive = Wn(r, e);
1625
1656
  return;
1626
1657
  }
1627
- for (let s of n) s.isLeadingSpaceSensitive = An(s, e), s.isTrailingSpaceSensitive = Dn(s, e);
1658
+ for (let s of n) s.isLeadingSpaceSensitive = Vn(s, e), s.isTrailingSpaceSensitive = Un(s, e);
1628
1659
  for (let s = 0; s < n.length; s++) {
1629
1660
  let i = n[s];
1630
1661
  i.isLeadingSpaceSensitive = (s === 0 || i.prev.isTrailingSpaceSensitive) && i.isLeadingSpaceSensitive, i.isTrailingSpaceSensitive = (s === n.length - 1 || i.next.isLeadingSpaceSensitive) && i.isTrailingSpaceSensitive;
@@ -1632,118 +1663,131 @@ function xa(t8, e) {
1632
1663
  }
1633
1664
  });
1634
1665
  }
1635
- var gs = Ca;
1636
- function ka(t8, e, r) {
1666
+ var Ms = Ga;
1667
+ function no(t7, e, r) {
1637
1668
  let {
1638
1669
  node: n
1639
- } = t8;
1670
+ } = t7;
1640
1671
  switch (n.type) {
1641
1672
  case "front-matter":
1642
- return T(n.raw);
1673
+ return B(n.raw);
1643
1674
  case "root":
1644
- return e.__onHtmlRoot && e.__onHtmlRoot(n), [E(qe(t8, e, r)), S];
1675
+ return e.__onHtmlRoot && e.__onHtmlRoot(n), [E(Re(t7, e, r)), S];
1645
1676
  case "element":
1646
1677
  case "ieConditionalComment":
1647
- return ps(t8, e, r);
1678
+ return Is(t7, e, r);
1648
1679
  case "angularControlFlowBlock":
1649
- return as(t8, e, r);
1680
+ return Bs(t7, e, r);
1650
1681
  case "angularControlFlowBlockParameters":
1651
- return us(t8, e, r);
1682
+ return Fs(t7, e, r);
1652
1683
  case "angularControlFlowBlockParameter":
1653
- return F.trim(n.expression);
1684
+ return O.trim(n.expression);
1685
+ case "angularLetDeclaration":
1686
+ return E(["@let ", E([n.id, " =", E(k([_, r("init")]))]), ";"]);
1687
+ case "angularLetDeclarationInitializer":
1688
+ return n.value;
1654
1689
  case "angularIcuExpression":
1655
- return ls(t8, e, r);
1690
+ return Ps(t7, e, r);
1656
1691
  case "angularIcuCase":
1657
- return cs(t8, e, r);
1692
+ return Ns(t7, e, r);
1658
1693
  case "ieConditionalStartComment":
1659
1694
  case "ieConditionalEndComment":
1660
- return [ye(n), Ee(n)];
1695
+ return [De(n), Se(n)];
1661
1696
  case "interpolation":
1662
- return [ye(n, e), ...t8.map(r, "children"), Ee(n, e)];
1697
+ return [De(n, e), ...t7.map(r, "children"), Se(n, e)];
1663
1698
  case "text": {
1664
1699
  if (n.parent.type === "interpolation") {
1665
- let i = /\n[^\S\n]*$/, a = i.test(n.value), o = a ? n.value.replace(i, "") : n.value;
1666
- return [T(o), a ? S : ""];
1700
+ let o = /\n[^\S\n]*$/u, u = o.test(n.value), p = u ? n.value.replace(o, "") : n.value;
1701
+ return [B(p), u ? S : ""];
1667
1702
  }
1668
- let s = nn([z(n, e), ...yt(n), W(n, e)]);
1669
- return Array.isArray(s) ? Ct(s) : s;
1703
+ let s = z(n, e), i = kt(n), a = G(n, e);
1704
+ return i[0] = [s, i[0]], i.push([i.pop(), a]), vt(i);
1670
1705
  }
1671
1706
  case "docType":
1672
- return [E([ye(n, e), " ", w(false, n.value.replace(/^html\b/i, "html"), /\s+/g, " ")]), Ee(n, e)];
1707
+ return [E([De(n, e), " ", w(false, n.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), Se(n, e)];
1673
1708
  case "comment":
1674
- return [z(n, e), T(e.originalText.slice(se(n), ie(n))), W(n, e)];
1709
+ return [z(n, e), B(e.originalText.slice(J(n), se(n))), G(n, e)];
1675
1710
  case "attribute": {
1676
1711
  if (n.value === null) return n.rawName;
1677
- let s = pr(n.value), i = an(s, '"');
1678
- return [n.rawName, "=", i, T(i === '"' ? w(false, s, '"', "&quot;") : w(false, s, "'", "&apos;")), i];
1712
+ let s = wr(n.value), i = _n(s, '"');
1713
+ return [n.rawName, "=", i, B(i === '"' ? w(false, s, '"', "&quot;") : w(false, s, "'", "&apos;")), i];
1679
1714
  }
1680
1715
  case "cdata":
1681
1716
  default:
1682
- throw new un(n, "HTML");
1717
+ throw new An(n, "HTML");
1683
1718
  }
1684
1719
  }
1685
- var Ba = {
1686
- preprocess: gs,
1687
- print: ka,
1688
- insertPragma: ns,
1689
- massageAstNode: cn,
1690
- embed: Jn,
1691
- getVisitorKeys: ts
1720
+ var so = {
1721
+ preprocess: Ms,
1722
+ print: no,
1723
+ insertPragma: Ts,
1724
+ massageAstNode: vn,
1725
+ embed: Ss,
1726
+ getVisitorKeys: As
1692
1727
  };
1693
- var ds = Ba;
1694
- var Cs = [{
1695
- linguistLanguageId: 146,
1728
+ var qs = so;
1729
+ var Hs = [{
1696
1730
  name: "Angular",
1697
1731
  type: "markup",
1732
+ extensions: [".component.html"],
1698
1733
  tmScope: "text.html.basic",
1699
1734
  aceMode: "html",
1735
+ aliases: ["xhtml"],
1700
1736
  codemirrorMode: "htmlmixed",
1701
1737
  codemirrorMimeType: "text/html",
1702
- color: "#e34c26",
1703
- aliases: ["xhtml"],
1704
- extensions: [".component.html"],
1705
1738
  parsers: ["angular"],
1706
1739
  vscodeLanguageIds: ["html"],
1707
- filenames: []
1740
+ filenames: [],
1741
+ linguistLanguageId: 146
1708
1742
  }, {
1709
- linguistLanguageId: 146,
1710
1743
  name: "HTML",
1711
1744
  type: "markup",
1745
+ extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"],
1712
1746
  tmScope: "text.html.basic",
1713
1747
  aceMode: "html",
1748
+ aliases: ["xhtml"],
1714
1749
  codemirrorMode: "htmlmixed",
1715
1750
  codemirrorMimeType: "text/html",
1716
- color: "#e34c26",
1717
- aliases: ["xhtml"],
1718
- extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml", ".mjml"],
1719
1751
  parsers: ["html"],
1720
- vscodeLanguageIds: ["html"]
1752
+ vscodeLanguageIds: ["html"],
1753
+ linguistLanguageId: 146
1721
1754
  }, {
1722
- linguistLanguageId: 146,
1723
1755
  name: "Lightning Web Components",
1724
1756
  type: "markup",
1757
+ extensions: [],
1725
1758
  tmScope: "text.html.basic",
1726
1759
  aceMode: "html",
1760
+ aliases: ["xhtml"],
1727
1761
  codemirrorMode: "htmlmixed",
1728
1762
  codemirrorMimeType: "text/html",
1729
- color: "#e34c26",
1730
- aliases: ["xhtml"],
1731
- extensions: [],
1732
1763
  parsers: ["lwc"],
1733
1764
  vscodeLanguageIds: ["html"],
1734
- filenames: []
1765
+ filenames: [],
1766
+ linguistLanguageId: 146
1767
+ }, {
1768
+ name: "MJML",
1769
+ type: "markup",
1770
+ extensions: [".mjml"],
1771
+ tmScope: "text.mjml.basic",
1772
+ aceMode: "html",
1773
+ aliases: ["MJML", "mjml"],
1774
+ codemirrorMode: "htmlmixed",
1775
+ codemirrorMimeType: "text/html",
1776
+ parsers: ["mjml"],
1777
+ filenames: [],
1778
+ vscodeLanguageIds: ["mjml"],
1779
+ linguistLanguageId: 146
1735
1780
  }, {
1736
- linguistLanguageId: 391,
1737
1781
  name: "Vue",
1738
1782
  type: "markup",
1739
- color: "#41b883",
1740
1783
  extensions: [".vue"],
1741
- tmScope: "text.html.vue",
1784
+ tmScope: "source.vue",
1742
1785
  aceMode: "html",
1743
1786
  parsers: ["vue"],
1744
- vscodeLanguageIds: ["vue"]
1787
+ vscodeLanguageIds: ["vue"],
1788
+ linguistLanguageId: 391
1745
1789
  }];
1746
- var Ar = {
1790
+ var Lr = {
1747
1791
  bracketSameLine: {
1748
1792
  category: "Common",
1749
1793
  type: "boolean",
@@ -1757,11 +1801,11 @@ var Ar = {
1757
1801
  description: "Enforce single attribute per line in HTML, Vue and JSX."
1758
1802
  }
1759
1803
  };
1760
- var Ss = "HTML";
1761
- var La = {
1762
- bracketSameLine: Ar.bracketSameLine,
1804
+ var Vs = "HTML";
1805
+ var io = {
1806
+ bracketSameLine: Lr.bracketSameLine,
1763
1807
  htmlWhitespaceSensitivity: {
1764
- category: Ss,
1808
+ category: Vs,
1765
1809
  type: "choice",
1766
1810
  default: "css",
1767
1811
  description: "How to handle whitespaces in HTML.",
@@ -1776,81 +1820,89 @@ var La = {
1776
1820
  description: "Whitespaces are considered insensitive."
1777
1821
  }]
1778
1822
  },
1779
- singleAttributePerLine: Ar.singleAttributePerLine,
1823
+ singleAttributePerLine: Lr.singleAttributePerLine,
1780
1824
  vueIndentScriptAndStyle: {
1781
- category: Ss,
1825
+ category: Vs,
1782
1826
  type: "boolean",
1783
1827
  default: false,
1784
1828
  description: "Indent script and style tags in Vue files."
1785
1829
  }
1786
1830
  };
1787
- var _s = La;
1788
- var Vr = {};
1789
- Yr(Vr, {
1790
- angular: () => xo,
1791
- html: () => To,
1792
- lwc: () => Bo,
1793
- vue: () => ko
1831
+ var Us = io;
1832
+ var tn = {};
1833
+ ln(tn, {
1834
+ angular: () => iu,
1835
+ html: () => ru,
1836
+ lwc: () => ou,
1837
+ mjml: () => su,
1838
+ vue: () => au
1794
1839
  });
1795
- var Es;
1796
- (function(t8) {
1797
- t8[t8.Emulated = 0] = "Emulated", t8[t8.None = 2] = "None", t8[t8.ShadowDom = 3] = "ShadowDom";
1798
- })(Es || (Es = {}));
1799
- var As;
1800
- (function(t8) {
1801
- t8[t8.OnPush = 0] = "OnPush", t8[t8.Default = 1] = "Default";
1802
- })(As || (As = {}));
1803
- var Dr = {
1840
+ var Ws;
1841
+ (function(t7) {
1842
+ t7[t7.Emulated = 0] = "Emulated", t7[t7.None = 2] = "None", t7[t7.ShadowDom = 3] = "ShadowDom";
1843
+ })(Ws || (Ws = {}));
1844
+ var Gs;
1845
+ (function(t7) {
1846
+ t7[t7.OnPush = 0] = "OnPush", t7[t7.Default = 1] = "Default";
1847
+ })(Gs || (Gs = {}));
1848
+ var zs;
1849
+ (function(t7) {
1850
+ t7[t7.None = 0] = "None", t7[t7.SignalBased = 1] = "SignalBased", t7[t7.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
1851
+ })(zs || (zs = {}));
1852
+ var Fr = {
1804
1853
  name: "custom-elements"
1805
1854
  };
1806
- var vr = {
1855
+ var Pr = {
1807
1856
  name: "no-errors-schema"
1808
1857
  };
1809
- var J;
1810
- (function(t8) {
1811
- 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";
1812
- })(J || (J = {}));
1813
- var Ds;
1814
- (function(t8) {
1815
- t8[t8.Error = 0] = "Error", t8[t8.Warning = 1] = "Warning", t8[t8.Ignore = 2] = "Ignore";
1816
- })(Ds || (Ds = {}));
1858
+ var Z;
1859
+ (function(t7) {
1860
+ t7[t7.NONE = 0] = "NONE", t7[t7.HTML = 1] = "HTML", t7[t7.STYLE = 2] = "STYLE", t7[t7.SCRIPT = 3] = "SCRIPT", t7[t7.URL = 4] = "URL", t7[t7.RESOURCE_URL = 5] = "RESOURCE_URL";
1861
+ })(Z || (Z = {}));
1862
+ var Ys;
1863
+ (function(t7) {
1864
+ t7[t7.Error = 0] = "Error", t7[t7.Warning = 1] = "Warning", t7[t7.Ignore = 2] = "Ignore";
1865
+ })(Ys || (Ys = {}));
1817
1866
  var N;
1818
- (function(t8) {
1819
- t8[t8.RAW_TEXT = 0] = "RAW_TEXT", t8[t8.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t8[t8.PARSABLE_DATA = 2] = "PARSABLE_DATA";
1867
+ (function(t7) {
1868
+ t7[t7.RAW_TEXT = 0] = "RAW_TEXT", t7[t7.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t7[t7.PARSABLE_DATA = 2] = "PARSABLE_DATA";
1820
1869
  })(N || (N = {}));
1821
- function at(t8) {
1822
- if (t8[0] != ":") return [null, t8];
1823
- let e = t8.indexOf(":", 1);
1824
- if (e === -1) throw new Error(`Unsupported format "${t8}" expecting ":namespace:name"`);
1825
- return [t8.slice(1, e), t8.slice(e + 1)];
1870
+ function ct(t7, e = true) {
1871
+ if (t7[0] != ":") return [null, t7];
1872
+ let r = t7.indexOf(":", 1);
1873
+ if (r === -1) {
1874
+ if (e) throw new Error(`Unsupported format "${t7}" expecting ":namespace:name"`);
1875
+ return [null, t7];
1876
+ }
1877
+ return [t7.slice(1, r), t7.slice(r + 1)];
1826
1878
  }
1827
- function yr(t8) {
1828
- return at(t8)[1] === "ng-container";
1879
+ function Nr(t7) {
1880
+ return ct(t7)[1] === "ng-container";
1829
1881
  }
1830
- function wr(t8) {
1831
- return at(t8)[1] === "ng-content";
1882
+ function Ir(t7) {
1883
+ return ct(t7)[1] === "ng-content";
1832
1884
  }
1833
- function Ue(t8) {
1834
- return t8 === null ? null : at(t8)[0];
1885
+ function Me(t7) {
1886
+ return t7 === null ? null : ct(t7)[0];
1835
1887
  }
1836
- function We(t8, e) {
1837
- return t8 ? `:${t8}:${e}` : e;
1888
+ function qe(t7, e) {
1889
+ return t7 ? `:${t7}:${e}` : e;
1838
1890
  }
1839
- var It;
1840
- function br() {
1841
- return It || (It = {}, Nt(J.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]), Nt(J.STYLE, ["*|style"]), Nt(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"]), Nt(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"])), It;
1891
+ var Ht;
1892
+ function Rr() {
1893
+ return Ht || (Ht = {}, qt(Z.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]), qt(Z.STYLE, ["*|style"]), qt(Z.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"]), qt(Z.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"])), Ht;
1842
1894
  }
1843
- function Nt(t8, e) {
1844
- for (let r of e) It[r.toLowerCase()] = t8;
1895
+ function qt(t7, e) {
1896
+ for (let r of e) Ht[r.toLowerCase()] = t7;
1845
1897
  }
1846
- var Rt = class {
1898
+ var Vt = class {
1847
1899
  };
1848
- var Fa = "boolean";
1849
- var Pa = "number";
1850
- var Na = "string";
1851
- var Ia = "object";
1852
- var Ra = ["[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,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:|"];
1853
- var vs = new Map(Object.entries({
1900
+ var ao = "boolean";
1901
+ var oo = "number";
1902
+ var uo = "string";
1903
+ var lo = "object";
1904
+ var co = ["[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:|"];
1905
+ var js = new Map(Object.entries({
1854
1906
  class: "className",
1855
1907
  for: "htmlFor",
1856
1908
  formaction: "formAction",
@@ -1858,10 +1910,10 @@ var vs = new Map(Object.entries({
1858
1910
  readonly: "readOnly",
1859
1911
  tabindex: "tabIndex"
1860
1912
  }));
1861
- var $a = Array.from(vs).reduce((t8, [e, r]) => (t8.set(e, r), t8), /* @__PURE__ */ new Map());
1862
- var $t = class extends Rt {
1913
+ var po = Array.from(js).reduce((t7, [e, r]) => (t7.set(e, r), t7), /* @__PURE__ */ new Map());
1914
+ var Ut = class extends Vt {
1863
1915
  constructor() {
1864
- super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(), Ra.forEach((e) => {
1916
+ super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(), co.forEach((e) => {
1865
1917
  let r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), [s, i] = e.split("|"), a = i.split(","), [o, u] = s.split("^");
1866
1918
  o.split(",").forEach((l) => {
1867
1919
  this._schema.set(l.toLowerCase(), r), this._eventSchema.set(l.toLowerCase(), n);
@@ -1877,38 +1929,38 @@ var $t = class extends Rt {
1877
1929
  n.add(l.substring(1));
1878
1930
  break;
1879
1931
  case "!":
1880
- r.set(l.substring(1), Fa);
1932
+ r.set(l.substring(1), ao);
1881
1933
  break;
1882
1934
  case "#":
1883
- r.set(l.substring(1), Pa);
1935
+ r.set(l.substring(1), oo);
1884
1936
  break;
1885
1937
  case "%":
1886
- r.set(l.substring(1), Ia);
1938
+ r.set(l.substring(1), lo);
1887
1939
  break;
1888
1940
  default:
1889
- r.set(l, Na);
1941
+ r.set(l, uo);
1890
1942
  }
1891
1943
  });
1892
1944
  });
1893
1945
  }
1894
1946
  hasProperty(e, r, n) {
1895
- if (n.some((i) => i.name === vr.name)) return true;
1947
+ if (n.some((i) => i.name === Pr.name)) return true;
1896
1948
  if (e.indexOf("-") > -1) {
1897
- if (yr(e) || wr(e)) return false;
1898
- if (n.some((i) => i.name === Dr.name)) return true;
1949
+ if (Nr(e) || Ir(e)) return false;
1950
+ if (n.some((i) => i.name === Fr.name)) return true;
1899
1951
  }
1900
1952
  return (this._schema.get(e.toLowerCase()) || this._schema.get("unknown")).has(r);
1901
1953
  }
1902
1954
  hasElement(e, r) {
1903
- return r.some((n) => n.name === vr.name) || e.indexOf("-") > -1 && (yr(e) || wr(e) || r.some((n) => n.name === Dr.name)) ? true : this._schema.has(e.toLowerCase());
1955
+ return r.some((n) => n.name === Pr.name) || e.indexOf("-") > -1 && (Nr(e) || Ir(e) || r.some((n) => n.name === Fr.name)) ? true : this._schema.has(e.toLowerCase());
1904
1956
  }
1905
1957
  securityContext(e, r, n) {
1906
1958
  n && (r = this.getMappedPropName(r)), e = e.toLowerCase(), r = r.toLowerCase();
1907
- let s = br()[e + "|" + r];
1908
- return s || (s = br()["*|" + r], s || J.NONE);
1959
+ let s = Rr()[e + "|" + r];
1960
+ return s || (s = Rr()["*|" + r], s || Z.NONE);
1909
1961
  }
1910
1962
  getMappedPropName(e) {
1911
- return vs.get(e) ?? e;
1963
+ return js.get(e) ?? e;
1912
1964
  }
1913
1965
  getDefaultComponentElementName() {
1914
1966
  return "ng-component";
@@ -1935,17 +1987,17 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
1935
1987
  }
1936
1988
  allKnownAttributesOfElement(e) {
1937
1989
  let r = this._schema.get(e.toLowerCase()) || this._schema.get("unknown");
1938
- return Array.from(r.keys()).map((n) => $a.get(n) ?? n);
1990
+ return Array.from(r.keys()).map((n) => po.get(n) ?? n);
1939
1991
  }
1940
1992
  allKnownEventsOfElement(e) {
1941
1993
  return Array.from(this._eventSchema.get(e.toLowerCase()) ?? []);
1942
1994
  }
1943
1995
  normalizeAnimationStyleProperty(e) {
1944
- return ms(e);
1996
+ return Os(e);
1945
1997
  }
1946
1998
  normalizeAnimationStyleValue(e, r, n) {
1947
1999
  let s = "", i = n.toString().trim(), a = null;
1948
- if (Oa(e) && n !== 0 && n !== "0") if (typeof n == "number") s = "px";
2000
+ if (ho(e) && n !== 0 && n !== "0") if (typeof n == "number") s = "px";
1949
2001
  else {
1950
2002
  let o = n.match(/^[+-]?[\d\.]+([a-z]*)$/);
1951
2003
  o && o[1].length == 0 && (a = `Please provide a CSS unit value for ${r}:${n}`);
@@ -1956,8 +2008,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
1956
2008
  };
1957
2009
  }
1958
2010
  };
1959
- function Oa(t8) {
1960
- switch (t8) {
2011
+ function ho(t7) {
2012
+ switch (t7) {
1961
2013
  case "width":
1962
2014
  case "height":
1963
2015
  case "minWidth":
@@ -1991,7 +2043,7 @@ function Oa(t8) {
1991
2043
  return false;
1992
2044
  }
1993
2045
  }
1994
- var h = class {
2046
+ var d = class {
1995
2047
  constructor({
1996
2048
  closedByChildren: e,
1997
2049
  implicitNamespacePrefix: r,
@@ -2011,160 +2063,160 @@ var h = class {
2011
2063
  return typeof this.contentType == "object" ? (e === void 0 ? void 0 : this.contentType[e]) ?? this.contentType.default : this.contentType;
2012
2064
  }
2013
2065
  };
2014
- var ys;
2015
- var ot;
2016
- function ze(t8) {
2017
- return ot || (ys = new h({
2066
+ var Ks;
2067
+ var pt;
2068
+ function He(t7) {
2069
+ return pt || (Ks = new d({
2018
2070
  canSelfClose: true
2019
- }), ot = Object.assign(/* @__PURE__ */ Object.create(null), {
2020
- base: new h({
2071
+ }), pt = Object.assign(/* @__PURE__ */ Object.create(null), {
2072
+ base: new d({
2021
2073
  isVoid: true
2022
2074
  }),
2023
- meta: new h({
2075
+ meta: new d({
2024
2076
  isVoid: true
2025
2077
  }),
2026
- area: new h({
2078
+ area: new d({
2027
2079
  isVoid: true
2028
2080
  }),
2029
- embed: new h({
2081
+ embed: new d({
2030
2082
  isVoid: true
2031
2083
  }),
2032
- link: new h({
2084
+ link: new d({
2033
2085
  isVoid: true
2034
2086
  }),
2035
- img: new h({
2087
+ img: new d({
2036
2088
  isVoid: true
2037
2089
  }),
2038
- input: new h({
2090
+ input: new d({
2039
2091
  isVoid: true
2040
2092
  }),
2041
- param: new h({
2093
+ param: new d({
2042
2094
  isVoid: true
2043
2095
  }),
2044
- hr: new h({
2096
+ hr: new d({
2045
2097
  isVoid: true
2046
2098
  }),
2047
- br: new h({
2099
+ br: new d({
2048
2100
  isVoid: true
2049
2101
  }),
2050
- source: new h({
2102
+ source: new d({
2051
2103
  isVoid: true
2052
2104
  }),
2053
- track: new h({
2105
+ track: new d({
2054
2106
  isVoid: true
2055
2107
  }),
2056
- wbr: new h({
2108
+ wbr: new d({
2057
2109
  isVoid: true
2058
2110
  }),
2059
- p: new h({
2111
+ p: new d({
2060
2112
  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"],
2061
2113
  closedByParent: true
2062
2114
  }),
2063
- thead: new h({
2115
+ thead: new d({
2064
2116
  closedByChildren: ["tbody", "tfoot"]
2065
2117
  }),
2066
- tbody: new h({
2118
+ tbody: new d({
2067
2119
  closedByChildren: ["tbody", "tfoot"],
2068
2120
  closedByParent: true
2069
2121
  }),
2070
- tfoot: new h({
2122
+ tfoot: new d({
2071
2123
  closedByChildren: ["tbody"],
2072
2124
  closedByParent: true
2073
2125
  }),
2074
- tr: new h({
2126
+ tr: new d({
2075
2127
  closedByChildren: ["tr"],
2076
2128
  closedByParent: true
2077
2129
  }),
2078
- td: new h({
2130
+ td: new d({
2079
2131
  closedByChildren: ["td", "th"],
2080
2132
  closedByParent: true
2081
2133
  }),
2082
- th: new h({
2134
+ th: new d({
2083
2135
  closedByChildren: ["td", "th"],
2084
2136
  closedByParent: true
2085
2137
  }),
2086
- col: new h({
2138
+ col: new d({
2087
2139
  isVoid: true
2088
2140
  }),
2089
- svg: new h({
2141
+ svg: new d({
2090
2142
  implicitNamespacePrefix: "svg"
2091
2143
  }),
2092
- foreignObject: new h({
2144
+ foreignObject: new d({
2093
2145
  implicitNamespacePrefix: "svg",
2094
2146
  preventNamespaceInheritance: true
2095
2147
  }),
2096
- math: new h({
2148
+ math: new d({
2097
2149
  implicitNamespacePrefix: "math"
2098
2150
  }),
2099
- li: new h({
2151
+ li: new d({
2100
2152
  closedByChildren: ["li"],
2101
2153
  closedByParent: true
2102
2154
  }),
2103
- dt: new h({
2155
+ dt: new d({
2104
2156
  closedByChildren: ["dt", "dd"]
2105
2157
  }),
2106
- dd: new h({
2158
+ dd: new d({
2107
2159
  closedByChildren: ["dt", "dd"],
2108
2160
  closedByParent: true
2109
2161
  }),
2110
- rb: new h({
2162
+ rb: new d({
2111
2163
  closedByChildren: ["rb", "rt", "rtc", "rp"],
2112
2164
  closedByParent: true
2113
2165
  }),
2114
- rt: new h({
2166
+ rt: new d({
2115
2167
  closedByChildren: ["rb", "rt", "rtc", "rp"],
2116
2168
  closedByParent: true
2117
2169
  }),
2118
- rtc: new h({
2170
+ rtc: new d({
2119
2171
  closedByChildren: ["rb", "rtc", "rp"],
2120
2172
  closedByParent: true
2121
2173
  }),
2122
- rp: new h({
2174
+ rp: new d({
2123
2175
  closedByChildren: ["rb", "rt", "rtc", "rp"],
2124
2176
  closedByParent: true
2125
2177
  }),
2126
- optgroup: new h({
2178
+ optgroup: new d({
2127
2179
  closedByChildren: ["optgroup"],
2128
2180
  closedByParent: true
2129
2181
  }),
2130
- option: new h({
2182
+ option: new d({
2131
2183
  closedByChildren: ["option", "optgroup"],
2132
2184
  closedByParent: true
2133
2185
  }),
2134
- pre: new h({
2186
+ pre: new d({
2135
2187
  ignoreFirstLf: true
2136
2188
  }),
2137
- listing: new h({
2189
+ listing: new d({
2138
2190
  ignoreFirstLf: true
2139
2191
  }),
2140
- style: new h({
2192
+ style: new d({
2141
2193
  contentType: N.RAW_TEXT
2142
2194
  }),
2143
- script: new h({
2195
+ script: new d({
2144
2196
  contentType: N.RAW_TEXT
2145
2197
  }),
2146
- title: new h({
2198
+ title: new d({
2147
2199
  contentType: {
2148
2200
  default: N.ESCAPABLE_RAW_TEXT,
2149
2201
  svg: N.PARSABLE_DATA
2150
2202
  }
2151
2203
  }),
2152
- textarea: new h({
2204
+ textarea: new d({
2153
2205
  contentType: N.ESCAPABLE_RAW_TEXT,
2154
2206
  ignoreFirstLf: true
2155
2207
  })
2156
- }), new $t().allKnownElementNames().forEach((e) => {
2157
- !ot[e] && Ue(e) === null && (ot[e] = new h({
2208
+ }), new Ut().allKnownElementNames().forEach((e) => {
2209
+ !pt[e] && Me(e) === null && (pt[e] = new d({
2158
2210
  canSelfClose: false
2159
2211
  }));
2160
- })), ot[t8] ?? ys;
2212
+ })), pt[t7] ?? Ks;
2161
2213
  }
2162
- var be = class {
2214
+ var ae = class {
2163
2215
  constructor(e, r) {
2164
2216
  this.sourceSpan = e, this.i18n = r;
2165
2217
  }
2166
2218
  };
2167
- var Ot = class extends be {
2219
+ var Wt = class extends ae {
2168
2220
  constructor(e, r, n, s) {
2169
2221
  super(r, s), this.value = e, this.tokens = n, this.type = "text";
2170
2222
  }
@@ -2172,7 +2224,7 @@ var Ot = class extends be {
2172
2224
  return e.visitText(this, r);
2173
2225
  }
2174
2226
  };
2175
- var Mt = class extends be {
2227
+ var Gt = class extends ae {
2176
2228
  constructor(e, r, n, s) {
2177
2229
  super(r, s), this.value = e, this.tokens = n, this.type = "cdata";
2178
2230
  }
@@ -2180,7 +2232,7 @@ var Mt = class extends be {
2180
2232
  return e.visitCdata(this, r);
2181
2233
  }
2182
2234
  };
2183
- var qt = class extends be {
2235
+ var zt = class extends ae {
2184
2236
  constructor(e, r, n, s, i, a) {
2185
2237
  super(s, a), this.switchValue = e, this.type = r, this.cases = n, this.switchValueSourceSpan = i;
2186
2238
  }
@@ -2188,7 +2240,7 @@ var qt = class extends be {
2188
2240
  return e.visitExpansion(this, r);
2189
2241
  }
2190
2242
  };
2191
- var Ht = class {
2243
+ var Yt = class {
2192
2244
  constructor(e, r, n, s, i) {
2193
2245
  this.value = e, this.expression = r, this.sourceSpan = n, this.valueSourceSpan = s, this.expSourceSpan = i, this.type = "expansionCase";
2194
2246
  }
@@ -2196,7 +2248,7 @@ var Ht = class {
2196
2248
  return e.visitExpansionCase(this, r);
2197
2249
  }
2198
2250
  };
2199
- var Vt = class extends be {
2251
+ var jt = class extends ae {
2200
2252
  constructor(e, r, n, s, i, a, o) {
2201
2253
  super(n, o), this.name = e, this.value = r, this.keySpan = s, this.valueSpan = i, this.valueTokens = a, this.type = "attribute";
2202
2254
  }
@@ -2207,7 +2259,7 @@ var Vt = class extends be {
2207
2259
  return this.keySpan;
2208
2260
  }
2209
2261
  };
2210
- var G = class extends be {
2262
+ var Y = class extends ae {
2211
2263
  constructor(e, r, n, s, i, a = null, o = null, u) {
2212
2264
  super(s, u), this.name = e, this.attrs = r, this.children = n, this.startSourceSpan = i, this.endSourceSpan = a, this.nameSpan = o, this.type = "element";
2213
2265
  }
@@ -2215,7 +2267,7 @@ var G = class extends be {
2215
2267
  return e.visitElement(this, r);
2216
2268
  }
2217
2269
  };
2218
- var Ut = class {
2270
+ var Kt = class {
2219
2271
  constructor(e, r) {
2220
2272
  this.value = e, this.sourceSpan = r, this.type = "comment";
2221
2273
  }
@@ -2223,7 +2275,7 @@ var Ut = class {
2223
2275
  return e.visitComment(this, r);
2224
2276
  }
2225
2277
  };
2226
- var Wt = class {
2278
+ var Xt = class {
2227
2279
  constructor(e, r) {
2228
2280
  this.value = e, this.sourceSpan = r, this.type = "docType";
2229
2281
  }
@@ -2231,15 +2283,15 @@ var Wt = class {
2231
2283
  return e.visitDocType(this, r);
2232
2284
  }
2233
2285
  };
2234
- var Z = class {
2235
- constructor(e, r, n, s, i, a = null) {
2236
- this.name = e, this.parameters = r, this.children = n, this.sourceSpan = s, this.startSourceSpan = i, this.endSourceSpan = a, this.type = "block";
2286
+ var ee = class extends ae {
2287
+ constructor(e, r, n, s, i, a, o = null, u) {
2288
+ super(s, u), this.name = e, this.parameters = r, this.children = n, this.nameSpan = i, this.startSourceSpan = a, this.endSourceSpan = o, this.type = "block";
2237
2289
  }
2238
2290
  visit(e, r) {
2239
2291
  return e.visitBlock(this, r);
2240
2292
  }
2241
2293
  };
2242
- var ut = class {
2294
+ var ht = class {
2243
2295
  constructor(e, r) {
2244
2296
  this.expression = e, this.sourceSpan = r, this.type = "blockParameter", this.startSourceSpan = null, this.endSourceSpan = null;
2245
2297
  }
@@ -2247,14 +2299,22 @@ var ut = class {
2247
2299
  return e.visitBlockParameter(this, r);
2248
2300
  }
2249
2301
  };
2250
- function zt(t8, e, r = null) {
2251
- let n = [], s = t8.visit ? (i) => t8.visit(i, r) || i.visit(t8, r) : (i) => i.visit(t8, r);
2302
+ var mt = class {
2303
+ constructor(e, r, n, s, i) {
2304
+ this.name = e, this.value = r, this.sourceSpan = n, this.nameSpan = s, this.valueSpan = i, this.type = "letDeclaration", this.startSourceSpan = null, this.endSourceSpan = null;
2305
+ }
2306
+ visit(e, r) {
2307
+ return e.visitLetDeclaration(this, r);
2308
+ }
2309
+ };
2310
+ function Qt(t7, e, r = null) {
2311
+ let n = [], s = t7.visit ? (i) => t7.visit(i, r) || i.visit(t7, r) : (i) => i.visit(t7, r);
2252
2312
  return e.forEach((i) => {
2253
2313
  let a = s(i);
2254
2314
  a && n.push(a);
2255
2315
  }), n;
2256
2316
  }
2257
- var lt = class {
2317
+ var ft = class {
2258
2318
  constructor() {
2259
2319
  }
2260
2320
  visitElement(e, r) {
@@ -2286,15 +2346,17 @@ var lt = class {
2286
2346
  }
2287
2347
  visitBlockParameter(e, r) {
2288
2348
  }
2349
+ visitLetDeclaration(e, r) {
2350
+ }
2289
2351
  visitChildren(e, r) {
2290
2352
  let n = [], s = this;
2291
2353
  function i(a) {
2292
- a && n.push(zt(s, a, e));
2354
+ a && n.push(Qt(s, a, e));
2293
2355
  }
2294
2356
  return r(i), Array.prototype.concat.apply([], n);
2295
2357
  }
2296
2358
  };
2297
- var Ge = {
2359
+ var Ve = {
2298
2360
  AElig: "\xC6",
2299
2361
  AMP: "&",
2300
2362
  amp: "&",
@@ -4422,70 +4484,70 @@ var Ge = {
4422
4484
  zwj: "\u200D",
4423
4485
  zwnj: "\u200C"
4424
4486
  };
4425
- var qa = "\uE500";
4426
- Ge.ngsp = qa;
4427
- var Ha = [/^\s*$/, /[<>]/, /^[{}]$/, /&(#|[a-z])/i, /^\/\//];
4428
- function ws(t8, e) {
4429
- if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${t8}' to be an array, [start, end].`);
4487
+ var fo = "\uE500";
4488
+ Ve.ngsp = fo;
4489
+ var go = [/@/, /^\s*$/, /[<>]/, /^[{}]$/, /&(#|[a-z])/i, /^\/\//];
4490
+ function Xs(t7, e) {
4491
+ if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${t7}' to be an array, [start, end].`);
4430
4492
  if (e != null) {
4431
4493
  let r = e[0], n = e[1];
4432
- Ha.forEach((s) => {
4494
+ go.forEach((s) => {
4433
4495
  if (s.test(r) || s.test(n)) throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`);
4434
4496
  });
4435
4497
  }
4436
4498
  }
4437
- var Tr = class t2 {
4499
+ var $r = class t2 {
4438
4500
  static fromArray(e) {
4439
- return e ? (ws("interpolation", e), new t2(e[0], e[1])) : xr;
4501
+ return e ? (Xs("interpolation", e), new t2(e[0], e[1])) : Or;
4440
4502
  }
4441
4503
  constructor(e, r) {
4442
4504
  this.start = e, this.end = r;
4443
4505
  }
4444
4506
  };
4445
- var xr = new Tr("{{", "}}");
4446
- var pt = class extends Ve {
4507
+ var Or = new $r("{{", "}}");
4508
+ var gt = class extends Oe {
4447
4509
  constructor(e, r, n) {
4448
4510
  super(n, e), this.tokenType = r;
4449
4511
  }
4450
4512
  };
4451
- var Pr = class {
4513
+ var Ur = class {
4452
4514
  constructor(e, r, n) {
4453
4515
  this.tokens = e, this.errors = r, this.nonNormalizedIcuExpressions = n;
4454
4516
  }
4455
4517
  };
4456
- function Ms(t8, e, r, n = {}) {
4457
- let s = new Nr(new we(t8, e), r, n);
4458
- return s.tokenize(), new Pr(fo(s.tokens), s.errors, s.nonNormalizedIcuExpressions);
4518
+ function li(t7, e, r, n = {}) {
4519
+ let s = new Wr(new ve(t7, e), r, n);
4520
+ return s.tokenize(), new Ur(Vo(s.tokens), s.errors, s.nonNormalizedIcuExpressions);
4459
4521
  }
4460
- var ao = /\r\n?/g;
4461
- function Ye(t8) {
4462
- return `Unexpected character "${t8 === 0 ? "EOF" : String.fromCharCode(t8)}"`;
4522
+ var Io = /\r\n?/g;
4523
+ function Ue(t7) {
4524
+ return `Unexpected character "${t7 === 0 ? "EOF" : String.fromCharCode(t7)}"`;
4463
4525
  }
4464
- function Ls(t8) {
4465
- return `Unknown entity "${t8}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`;
4526
+ function ti(t7) {
4527
+ return `Unknown entity "${t7}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`;
4466
4528
  }
4467
- function oo(t8, e) {
4468
- return `Unable to parse entity "${e}" - ${t8} character reference entities must end with ";"`;
4529
+ function Ro(t7, e) {
4530
+ return `Unable to parse entity "${e}" - ${t7} character reference entities must end with ";"`;
4469
4531
  }
4470
- var jt;
4471
- (function(t8) {
4472
- t8.HEX = "hexadecimal", t8.DEC = "decimal";
4473
- })(jt || (jt = {}));
4474
- var ht = class {
4532
+ var rr;
4533
+ (function(t7) {
4534
+ t7.HEX = "hexadecimal", t7.DEC = "decimal";
4535
+ })(rr || (rr = {}));
4536
+ var Ct = class {
4475
4537
  constructor(e) {
4476
4538
  this.error = e;
4477
4539
  }
4478
4540
  };
4479
- var Nr = class {
4541
+ var Wr = class {
4480
4542
  constructor(e, r, n) {
4481
- 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 || xr, this._leadingTriviaCodePoints = n.leadingTriviaChars && n.leadingTriviaChars.map((i) => i.codePointAt(0) || 0), this._canSelfClose = n.canSelfClose || false, this._allowHtmComponentClosingTags = n.allowHtmComponentClosingTags || false;
4543
+ 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 || Or, this._leadingTriviaCodePoints = n.leadingTriviaChars && n.leadingTriviaChars.map((i) => i.codePointAt(0) || 0), this._canSelfClose = n.canSelfClose || false, this._allowHtmComponentClosingTags = n.allowHtmComponentClosingTags || false;
4482
4544
  let s = n.range || {
4483
4545
  endPos: e.content.length,
4484
4546
  startPos: 0,
4485
4547
  startLine: 0,
4486
4548
  startCol: 0
4487
4549
  };
4488
- this._cursor = n.escapedString ? new Ir(e, s) : new Kt(e, s), this._preserveLineEndings = n.preserveLineEndings || false, this._i18nNormalizeLineEndingsInICUs = n.i18nNormalizeLineEndingsInICUs || false, this._tokenizeBlocks = n.tokenizeBlocks ?? true;
4550
+ this._cursor = n.escapedString ? new Gr(e, s) : new nr(e, s), this._preserveLineEndings = n.preserveLineEndings || false, this._i18nNormalizeLineEndingsInICUs = n.i18nNormalizeLineEndingsInICUs || false, this._tokenizeBlocks = n.tokenizeBlocks ?? true, this._tokenizeLet = n.tokenizeLet ?? true;
4489
4551
  try {
4490
4552
  this._cursor.init();
4491
4553
  } catch (i) {
@@ -4493,7 +4555,7 @@ var Nr = class {
4493
4555
  }
4494
4556
  }
4495
4557
  _processCarriageReturns(e) {
4496
- return this._preserveLineEndings ? e : e.replace(ao, `
4558
+ return this._preserveLineEndings ? e : e.replace(Io, `
4497
4559
  `);
4498
4560
  }
4499
4561
  tokenize() {
@@ -4507,21 +4569,21 @@ var Nr = class {
4507
4569
  let r = this._cursor.clone();
4508
4570
  this._attemptCharCode(63) ? (this._cursor = r, this._consumeBogusComment(e)) : this._consumeTagOpen(e);
4509
4571
  }
4510
- } else 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());
4572
+ } 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());
4511
4573
  } catch (r) {
4512
4574
  this.handleError(r);
4513
4575
  }
4514
4576
  }
4515
- this._beginToken(30), this._endToken([]);
4577
+ this._beginToken(34), this._endToken([]);
4516
4578
  }
4517
4579
  _getBlockName() {
4518
4580
  let e = false, r = this._cursor.clone();
4519
- return this._attemptCharCodeUntilFn((n) => Lt(n) ? !e : Ns(n) ? (e = true, false) : true), this._cursor.getChars(r).trim();
4581
+ return this._attemptCharCodeUntilFn((n) => ut(n) ? !e : si(n) ? (e = true, false) : true), this._cursor.getChars(r).trim();
4520
4582
  }
4521
4583
  _consumeBlockStart(e) {
4522
4584
  this._beginToken(25, e);
4523
4585
  let r = this._endToken([this._getBlockName()]);
4524
- if (this._cursor.peek() === 40) if (this._cursor.advance(), this._consumeBlockParameters(), this._attemptCharCodeUntilFn(k), this._attemptCharCode(41)) this._attemptCharCodeUntilFn(k);
4586
+ if (this._cursor.peek() === 40) if (this._cursor.advance(), this._consumeBlockParameters(), this._attemptCharCodeUntilFn(b), this._attemptCharCode(41)) this._attemptCharCodeUntilFn(b);
4525
4587
  else {
4526
4588
  r.type = 29;
4527
4589
  return;
@@ -4532,14 +4594,14 @@ var Nr = class {
4532
4594
  this._beginToken(27, e), this._endToken([]);
4533
4595
  }
4534
4596
  _consumeBlockParameters() {
4535
- for (this._attemptCharCodeUntilFn(Is); this._cursor.peek() !== 41 && this._cursor.peek() !== 0; ) {
4597
+ for (this._attemptCharCodeUntilFn(ii); this._cursor.peek() !== 41 && this._cursor.peek() !== 0; ) {
4536
4598
  this._beginToken(28);
4537
4599
  let e = this._cursor.clone(), r = null, n = 0;
4538
4600
  for (; this._cursor.peek() !== 59 && this._cursor.peek() !== 0 || r !== null; ) {
4539
4601
  let s = this._cursor.peek();
4540
4602
  if (s === 92) this._cursor.advance();
4541
4603
  else if (s === r) r = null;
4542
- else if (r === null && Er(s)) r = s;
4604
+ else if (r === null && Ot(s)) r = s;
4543
4605
  else if (s === 40 && r === null) n++;
4544
4606
  else if (s === 41 && r === null) {
4545
4607
  if (n === 0) break;
@@ -4547,12 +4609,39 @@ var Nr = class {
4547
4609
  }
4548
4610
  this._cursor.advance();
4549
4611
  }
4550
- this._endToken([this._cursor.getChars(e)]), this._attemptCharCodeUntilFn(Is);
4612
+ this._endToken([this._cursor.getChars(e)]), this._attemptCharCodeUntilFn(ii);
4613
+ }
4614
+ }
4615
+ _consumeLetDeclaration(e) {
4616
+ if (this._beginToken(30, e), ut(this._cursor.peek())) this._attemptCharCodeUntilFn(b);
4617
+ else {
4618
+ let s = this._endToken([this._cursor.getChars(e)]);
4619
+ s.type = 33;
4620
+ return;
4551
4621
  }
4622
+ let r = this._endToken([this._getLetDeclarationName()]);
4623
+ if (this._attemptCharCodeUntilFn(b), !this._attemptCharCode(61)) {
4624
+ r.type = 33;
4625
+ return;
4626
+ }
4627
+ this._attemptCharCodeUntilFn((s) => b(s) && !$t(s)), this._consumeLetDeclarationValue(), this._cursor.peek() === 59 ? (this._beginToken(32), this._endToken([]), this._cursor.advance()) : (r.type = 33, r.sourceSpan = this._cursor.getSpan(e));
4628
+ }
4629
+ _getLetDeclarationName() {
4630
+ let e = this._cursor.clone(), r = false;
4631
+ return this._attemptCharCodeUntilFn((n) => lt(n) || n === 36 || n === 95 || r && Rt(n) ? (r = true, false) : true), this._cursor.getChars(e).trim();
4632
+ }
4633
+ _consumeLetDeclarationValue() {
4634
+ let e = this._cursor.clone();
4635
+ for (this._beginToken(31, e); this._cursor.peek() !== 0; ) {
4636
+ let r = this._cursor.peek();
4637
+ if (r === 59) break;
4638
+ Ot(r) && (this._cursor.advance(), this._attemptCharCodeUntilFn((n) => n === 92 ? (this._cursor.advance(), false) : n === r)), this._cursor.advance();
4639
+ }
4640
+ this._endToken([this._cursor.getChars(e)]);
4552
4641
  }
4553
4642
  _tokenizeExpansionForm() {
4554
4643
  if (this.isExpansionFormStart()) return this._consumeExpansionFormStart(), true;
4555
- if (po(this._cursor.peek()) && this._isInExpansionForm()) return this._consumeExpansionCaseStart(), true;
4644
+ if (qo(this._cursor.peek()) && this._isInExpansionForm()) return this._consumeExpansionCaseStart(), true;
4556
4645
  if (this._cursor.peek() === 125) {
4557
4646
  if (this._isInExpansionCase()) return this._consumeExpansionCaseEnd(), true;
4558
4647
  if (this._isInExpansionForm()) return this._consumeExpansionFormEnd(), true;
@@ -4563,8 +4652,8 @@ var Nr = class {
4563
4652
  this._currentTokenStart = r, this._currentTokenType = e;
4564
4653
  }
4565
4654
  _endToken(e, r) {
4566
- if (this._currentTokenStart === null) throw new pt("Programming error - attempted to end a token when there was no start to the token", this._currentTokenType, this._cursor.getSpan(r));
4567
- if (this._currentTokenType === null) throw new pt("Programming error - attempted to end a token which has no token type", null, this._cursor.getSpan(this._currentTokenStart));
4655
+ if (this._currentTokenStart === null) throw new gt("Programming error - attempted to end a token when there was no start to the token", this._currentTokenType, this._cursor.getSpan(r));
4656
+ if (this._currentTokenType === null) throw new gt("Programming error - attempted to end a token which has no token type", null, this._cursor.getSpan(this._currentTokenStart));
4568
4657
  let n = {
4569
4658
  type: this._currentTokenType,
4570
4659
  parts: e,
@@ -4574,22 +4663,22 @@ var Nr = class {
4574
4663
  }
4575
4664
  _createError(e, r) {
4576
4665
  this._isInExpansionForm() && (e += ` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);
4577
- let n = new pt(e, this._currentTokenType, r);
4578
- return this._currentTokenStart = null, this._currentTokenType = null, new ht(n);
4666
+ let n = new gt(e, this._currentTokenType, r);
4667
+ return this._currentTokenStart = null, this._currentTokenType = null, new Ct(n);
4579
4668
  }
4580
4669
  handleError(e) {
4581
- if (e instanceof ft && (e = this._createError(e.msg, this._cursor.getSpan(e.cursor))), e instanceof ht) this.errors.push(e.error);
4670
+ if (e instanceof St && (e = this._createError(e.msg, this._cursor.getSpan(e.cursor))), e instanceof Ct) this.errors.push(e.error);
4582
4671
  else throw e;
4583
4672
  }
4584
4673
  _attemptCharCode(e) {
4585
4674
  return this._cursor.peek() === e ? (this._cursor.advance(), true) : false;
4586
4675
  }
4587
4676
  _attemptCharCodeCaseInsensitive(e) {
4588
- return ho(this._cursor.peek(), e) ? (this._cursor.advance(), true) : false;
4677
+ return Ho(this._cursor.peek(), e) ? (this._cursor.advance(), true) : false;
4589
4678
  }
4590
4679
  _requireCharCode(e) {
4591
4680
  let r = this._cursor.clone();
4592
- if (!this._attemptCharCode(e)) throw this._createError(Ye(this._cursor.peek()), this._cursor.getSpan(r));
4681
+ if (!this._attemptCharCode(e)) throw this._createError(Ue(this._cursor.peek()), this._cursor.getSpan(r));
4593
4682
  }
4594
4683
  _attemptStr(e) {
4595
4684
  let r = e.length;
@@ -4604,18 +4693,18 @@ var Nr = class {
4604
4693
  }
4605
4694
  _requireStr(e) {
4606
4695
  let r = this._cursor.clone();
4607
- if (!this._attemptStr(e)) throw this._createError(Ye(this._cursor.peek()), this._cursor.getSpan(r));
4696
+ if (!this._attemptStr(e)) throw this._createError(Ue(this._cursor.peek()), this._cursor.getSpan(r));
4608
4697
  }
4609
4698
  _requireStrCaseInsensitive(e) {
4610
4699
  let r = this._cursor.clone();
4611
- if (!this._attemptStrCaseInsensitive(e)) throw this._createError(Ye(this._cursor.peek()), this._cursor.getSpan(r));
4700
+ if (!this._attemptStrCaseInsensitive(e)) throw this._createError(Ue(this._cursor.peek()), this._cursor.getSpan(r));
4612
4701
  }
4613
4702
  _attemptCharCodeUntilFn(e) {
4614
4703
  for (; !e(this._cursor.peek()); ) this._cursor.advance();
4615
4704
  }
4616
4705
  _requireCharCodeUntilFn(e, r) {
4617
4706
  let n = this._cursor.clone();
4618
- if (this._attemptCharCodeUntilFn(e), this._cursor.diff(n) < r) throw this._createError(Ye(this._cursor.peek()), this._cursor.getSpan(n));
4707
+ if (this._attemptCharCodeUntilFn(e), this._cursor.diff(n) < r) throw this._createError(Ue(this._cursor.peek()), this._cursor.getSpan(n));
4619
4708
  }
4620
4709
  _attemptUntilChar(e) {
4621
4710
  for (; this._cursor.peek() !== e; ) this._cursor.advance();
@@ -4629,10 +4718,10 @@ var Nr = class {
4629
4718
  let r = this._cursor.clone();
4630
4719
  if (this._cursor.advance(), this._attemptCharCode(35)) {
4631
4720
  let n = this._attemptCharCode(120) || this._attemptCharCode(88), s = this._cursor.clone();
4632
- if (this._attemptCharCodeUntilFn(lo), this._cursor.peek() != 59) {
4721
+ if (this._attemptCharCodeUntilFn(Oo), this._cursor.peek() != 59) {
4633
4722
  this._cursor.advance();
4634
- let a = n ? jt.HEX : jt.DEC;
4635
- throw this._createError(oo(a, this._cursor.getChars(r)), this._cursor.getSpan());
4723
+ let a = n ? rr.HEX : rr.DEC;
4724
+ throw this._createError(Ro(a, this._cursor.getChars(r)), this._cursor.getSpan());
4636
4725
  }
4637
4726
  let i = this._cursor.getChars(s);
4638
4727
  this._cursor.advance();
@@ -4640,16 +4729,16 @@ var Nr = class {
4640
4729
  let a = parseInt(i, n ? 16 : 10);
4641
4730
  this._endToken([String.fromCharCode(a), this._cursor.getChars(r)]);
4642
4731
  } catch {
4643
- throw this._createError(Ls(this._cursor.getChars(r)), this._cursor.getSpan());
4732
+ throw this._createError(ti(this._cursor.getChars(r)), this._cursor.getSpan());
4644
4733
  }
4645
4734
  } else {
4646
4735
  let n = this._cursor.clone();
4647
- if (this._attemptCharCodeUntilFn(co), this._cursor.peek() != 59) this._beginToken(e, r), this._cursor = n, this._endToken(["&"]);
4736
+ if (this._attemptCharCodeUntilFn(Mo), this._cursor.peek() != 59) this._beginToken(e, r), this._cursor = n, this._endToken(["&"]);
4648
4737
  else {
4649
4738
  let s = this._cursor.getChars(n);
4650
4739
  this._cursor.advance();
4651
- let i = Ge[s];
4652
- if (!i) throw this._createError(Ls(s), this._cursor.getSpan(r));
4740
+ let i = Ve[s];
4741
+ if (!i) throw this._createError(ti(s), this._cursor.getSpan(r));
4653
4742
  this._endToken([i, `&${s};`]);
4654
4743
  }
4655
4744
  }
@@ -4678,20 +4767,20 @@ var Nr = class {
4678
4767
  }
4679
4768
  _consumePrefixAndName() {
4680
4769
  let e = this._cursor.clone(), r = "";
4681
- for (; this._cursor.peek() !== 58 && !uo(this._cursor.peek()); ) this._cursor.advance();
4770
+ for (; this._cursor.peek() !== 58 && !$o(this._cursor.peek()); ) this._cursor.advance();
4682
4771
  let n;
4683
- this._cursor.peek() === 58 ? (r = this._cursor.getChars(e), this._cursor.advance(), n = this._cursor.clone()) : n = e, this._requireCharCodeUntilFn(Fs, r === "" ? 0 : 1);
4772
+ this._cursor.peek() === 58 ? (r = this._cursor.getChars(e), this._cursor.advance(), n = this._cursor.clone()) : n = e, this._requireCharCodeUntilFn(ri, r === "" ? 0 : 1);
4684
4773
  let s = this._cursor.getChars(n);
4685
4774
  return [r, s];
4686
4775
  }
4687
4776
  _consumeTagOpen(e) {
4688
4777
  let r, n, s, i = [];
4689
4778
  try {
4690
- if (!Ft(this._cursor.peek())) throw this._createError(Ye(this._cursor.peek()), this._cursor.getSpan(e));
4691
- for (s = this._consumeTagOpenStart(e), n = s.parts[0], r = s.parts[1], this._attemptCharCodeUntilFn(k); this._cursor.peek() !== 47 && this._cursor.peek() !== 62 && this._cursor.peek() !== 60 && this._cursor.peek() !== 0; ) {
4779
+ if (!lt(this._cursor.peek())) throw this._createError(Ue(this._cursor.peek()), this._cursor.getSpan(e));
4780
+ 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; ) {
4692
4781
  let [o, u] = this._consumeAttributeName();
4693
- if (this._attemptCharCodeUntilFn(k), this._attemptCharCode(61)) {
4694
- this._attemptCharCodeUntilFn(k);
4782
+ if (this._attemptCharCodeUntilFn(b), this._attemptCharCode(61)) {
4783
+ this._attemptCharCodeUntilFn(b);
4695
4784
  let p = this._consumeAttributeValue();
4696
4785
  i.push({
4697
4786
  prefix: o,
@@ -4702,11 +4791,11 @@ var Nr = class {
4702
4791
  prefix: o,
4703
4792
  name: u
4704
4793
  });
4705
- this._attemptCharCodeUntilFn(k);
4794
+ this._attemptCharCodeUntilFn(b);
4706
4795
  }
4707
4796
  this._consumeTagOpenEnd();
4708
4797
  } catch (o) {
4709
- if (o instanceof ht) {
4798
+ if (o instanceof Ct) {
4710
4799
  s ? s.type = 4 : (this._beginToken(5, e), this._endToken(["<"]));
4711
4800
  return;
4712
4801
  }
@@ -4717,7 +4806,7 @@ var Nr = class {
4717
4806
  this._handleFullNameStackForTagOpen(n, r), a === N.RAW_TEXT ? this._consumeRawTextWithTagClose(n, r, false) : a === N.ESCAPABLE_RAW_TEXT && this._consumeRawTextWithTagClose(n, r, true);
4718
4807
  }
4719
4808
  _consumeRawTextWithTagClose(e, r, n) {
4720
- this._consumeRawText(n, () => !this._attemptCharCode(60) || !this._attemptCharCode(47) || (this._attemptCharCodeUntilFn(k), !this._attemptStrCaseInsensitive(e ? `${e}:${r}` : r)) ? false : (this._attemptCharCodeUntilFn(k), this._attemptCharCode(62))), this._beginToken(3), this._requireCharCodeUntilFn((s) => s === 62, 3), this._cursor.advance(), this._endToken([e, r]), this._handleFullNameStackForTagClose(e, r);
4809
+ 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);
4721
4810
  }
4722
4811
  _consumeTagOpenStart(e) {
4723
4812
  this._beginToken(0, e);
@@ -4726,7 +4815,7 @@ var Nr = class {
4726
4815
  }
4727
4816
  _consumeAttributeName() {
4728
4817
  let e = this._cursor.peek();
4729
- if (e === 39 || e === 34) throw this._createError(Ye(e), this._cursor.getSpan());
4818
+ if (e === 39 || e === 34) throw this._createError(Ue(e), this._cursor.getSpan());
4730
4819
  this._beginToken(14);
4731
4820
  let r = this._consumePrefixAndName();
4732
4821
  return this._endToken(r), r;
@@ -4739,7 +4828,7 @@ var Nr = class {
4739
4828
  let n = () => this._cursor.peek() === r;
4740
4829
  e = this._consumeWithInterpolation(16, 17, n, n), this._consumeQuote(r);
4741
4830
  } else {
4742
- let r = () => Fs(this._cursor.peek());
4831
+ let r = () => ri(this._cursor.peek());
4743
4832
  e = this._consumeWithInterpolation(16, 17, r, r);
4744
4833
  }
4745
4834
  return e;
@@ -4752,10 +4841,10 @@ var Nr = class {
4752
4841
  this._beginToken(e), this._requireCharCode(62), this._endToken([]);
4753
4842
  }
4754
4843
  _consumeTagClose(e) {
4755
- if (this._beginToken(3, e), this._attemptCharCodeUntilFn(k), this._allowHtmComponentClosingTags && this._attemptCharCode(47)) this._attemptCharCodeUntilFn(k), this._requireCharCode(62), this._endToken([]);
4844
+ if (this._beginToken(3, e), this._attemptCharCodeUntilFn(b), this._allowHtmComponentClosingTags && this._attemptCharCode(47)) this._attemptCharCodeUntilFn(b), this._requireCharCode(62), this._endToken([]);
4756
4845
  else {
4757
4846
  let [r, n] = this._consumePrefixAndName();
4758
- this._attemptCharCodeUntilFn(k), this._requireCharCode(62), this._endToken([r, n]), this._handleFullNameStackForTagClose(r, n);
4847
+ this._attemptCharCodeUntilFn(b), this._requireCharCode(62), this._endToken([r, n]), this._handleFullNameStackForTagClose(r, n);
4759
4848
  }
4760
4849
  }
4761
4850
  _consumeExpansionFormStart() {
@@ -4766,17 +4855,17 @@ var Nr = class {
4766
4855
  let s = this._endToken([e]);
4767
4856
  r !== e && this.nonNormalizedIcuExpressions.push(s);
4768
4857
  }
4769
- this._requireCharCode(44), this._attemptCharCodeUntilFn(k), this._beginToken(7);
4858
+ this._requireCharCode(44), this._attemptCharCodeUntilFn(b), this._beginToken(7);
4770
4859
  let n = this._readUntil(44);
4771
- this._endToken([n]), this._requireCharCode(44), this._attemptCharCodeUntilFn(k);
4860
+ this._endToken([n]), this._requireCharCode(44), this._attemptCharCodeUntilFn(b);
4772
4861
  }
4773
4862
  _consumeExpansionCaseStart() {
4774
4863
  this._beginToken(21);
4775
4864
  let e = this._readUntil(123).trim();
4776
- this._endToken([e]), this._attemptCharCodeUntilFn(k), this._beginToken(22), this._requireCharCode(123), this._endToken([]), this._attemptCharCodeUntilFn(k), this._expansionCaseStack.push(22);
4865
+ this._endToken([e]), this._attemptCharCodeUntilFn(b), this._beginToken(22), this._requireCharCode(123), this._endToken([]), this._attemptCharCodeUntilFn(b), this._expansionCaseStack.push(22);
4777
4866
  }
4778
4867
  _consumeExpansionCaseEnd() {
4779
- this._beginToken(23), this._requireCharCode(125), this._endToken([]), this._attemptCharCodeUntilFn(k), this._expansionCaseStack.pop();
4868
+ this._beginToken(23), this._requireCharCode(125), this._endToken([]), this._attemptCharCodeUntilFn(b), this._expansionCaseStack.pop();
4780
4869
  }
4781
4870
  _consumeExpansionFormEnd() {
4782
4871
  this._beginToken(24), this._requireCharCode(125), this._endToken([]), this._expansionCaseStack.pop();
@@ -4807,7 +4896,7 @@ var Nr = class {
4807
4896
  return;
4808
4897
  } else this._attemptStr("//") && (o = true);
4809
4898
  let p = this._cursor.peek();
4810
- this._cursor.advance(), p === 92 ? this._cursor.advance() : p === a ? a = null : !o && a === null && Er(p) && (a = p);
4899
+ this._cursor.advance(), p === 92 ? this._cursor.advance() : p === a ? a = null : !o && a === null && Ot(p) && (a = p);
4811
4900
  }
4812
4901
  s.push(this._getProcessedChars(i, this._cursor)), this._endToken(s);
4813
4902
  }
@@ -4815,7 +4904,7 @@ var Nr = class {
4815
4904
  return this._processCarriageReturns(r.getChars(e));
4816
4905
  }
4817
4906
  _isTextEnd() {
4818
- 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() === 125));
4907
+ 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));
4819
4908
  }
4820
4909
  _isTagStart() {
4821
4910
  if (this._cursor.peek() === 60) {
@@ -4829,7 +4918,7 @@ var Nr = class {
4829
4918
  _isBlockStart() {
4830
4919
  if (this._tokenizeBlocks && this._cursor.peek() === 64) {
4831
4920
  let e = this._cursor.clone();
4832
- if (e.advance(), Ns(e.peek())) return true;
4921
+ if (e.advance(), si(e.peek())) return true;
4833
4922
  }
4834
4923
  return false;
4835
4924
  }
@@ -4855,53 +4944,53 @@ var Nr = class {
4855
4944
  return true;
4856
4945
  }
4857
4946
  _handleFullNameStackForTagOpen(e, r) {
4858
- let n = We(e, r);
4947
+ let n = qe(e, r);
4859
4948
  (this._fullNameStack.length === 0 || this._fullNameStack[this._fullNameStack.length - 1] === n) && this._fullNameStack.push(n);
4860
4949
  }
4861
4950
  _handleFullNameStackForTagClose(e, r) {
4862
- let n = We(e, r);
4951
+ let n = qe(e, r);
4863
4952
  this._fullNameStack.length !== 0 && this._fullNameStack[this._fullNameStack.length - 1] === n && this._fullNameStack.pop();
4864
4953
  }
4865
4954
  };
4866
- function k(t8) {
4867
- return !Lt(t8) || t8 === 0;
4955
+ function b(t7) {
4956
+ return !ut(t7) || t7 === 0;
4868
4957
  }
4869
- function Fs(t8) {
4870
- return Lt(t8) || t8 === 62 || t8 === 60 || t8 === 47 || t8 === 39 || t8 === 34 || t8 === 61 || t8 === 0;
4958
+ function ri(t7) {
4959
+ return ut(t7) || t7 === 62 || t7 === 60 || t7 === 47 || t7 === 39 || t7 === 34 || t7 === 61 || t7 === 0;
4871
4960
  }
4872
- function uo(t8) {
4873
- return (t8 < 97 || 122 < t8) && (t8 < 65 || 90 < t8) && (t8 < 48 || t8 > 57);
4961
+ function $o(t7) {
4962
+ return (t7 < 97 || 122 < t7) && (t7 < 65 || 90 < t7) && (t7 < 48 || t7 > 57);
4874
4963
  }
4875
- function lo(t8) {
4876
- return t8 === 59 || t8 === 0 || !hs(t8);
4964
+ function Oo(t7) {
4965
+ return t7 === 59 || t7 === 0 || !Rs(t7);
4877
4966
  }
4878
- function co(t8) {
4879
- return t8 === 59 || t8 === 0 || !Ft(t8);
4967
+ function Mo(t7) {
4968
+ return t7 === 59 || t7 === 0 || !lt(t7);
4880
4969
  }
4881
- function po(t8) {
4882
- return t8 !== 125;
4970
+ function qo(t7) {
4971
+ return t7 !== 125;
4883
4972
  }
4884
- function ho(t8, e) {
4885
- return Ps(t8) === Ps(e);
4973
+ function Ho(t7, e) {
4974
+ return ni(t7) === ni(e);
4886
4975
  }
4887
- function Ps(t8) {
4888
- return t8 >= 97 && t8 <= 122 ? t8 - 97 + 65 : t8;
4976
+ function ni(t7) {
4977
+ return t7 >= 97 && t7 <= 122 ? t7 - 97 + 65 : t7;
4889
4978
  }
4890
- function Ns(t8) {
4891
- return Ft(t8) || Cr(t8) || t8 === 95;
4979
+ function si(t7) {
4980
+ return lt(t7) || Rt(t7) || t7 === 95;
4892
4981
  }
4893
- function Is(t8) {
4894
- return t8 !== 59 && k(t8);
4982
+ function ii(t7) {
4983
+ return t7 !== 59 && b(t7);
4895
4984
  }
4896
- function fo(t8) {
4985
+ function Vo(t7) {
4897
4986
  let e = [], r;
4898
- for (let n = 0; n < t8.length; n++) {
4899
- let s = t8[n];
4987
+ for (let n = 0; n < t7.length; n++) {
4988
+ let s = t7[n];
4900
4989
  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));
4901
4990
  }
4902
4991
  return e;
4903
4992
  }
4904
- var Kt = class t3 {
4993
+ var nr = class t3 {
4905
4994
  constructor(e, r) {
4906
4995
  if (e instanceof t3) {
4907
4996
  this.file = e.file, this.input = e.input, this.end = e.end;
@@ -4945,7 +5034,7 @@ var Kt = class t3 {
4945
5034
  let n = e;
4946
5035
  if (r) for (; this.diff(e) > 0 && r.indexOf(e.peek()) !== -1; ) n === e && (e = e.clone()), e.advance();
4947
5036
  let s = this.locationFromCursor(e), i = this.locationFromCursor(this), a = n !== e ? this.locationFromCursor(n) : s;
4948
- return new f(s, i, a);
5037
+ return new h(s, i, a);
4949
5038
  }
4950
5039
  getChars(e) {
4951
5040
  return this.input.substring(e.state.offset, this.state.offset);
@@ -4954,18 +5043,18 @@ var Kt = class t3 {
4954
5043
  return this.input.charCodeAt(e);
4955
5044
  }
4956
5045
  advanceState(e) {
4957
- if (e.offset >= this.end) throw this.state = e, new ft('Unexpected character "EOF"', this);
5046
+ if (e.offset >= this.end) throw this.state = e, new St('Unexpected character "EOF"', this);
4958
5047
  let r = this.charAt(e.offset);
4959
- r === 10 ? (e.line++, e.column = 0) : Sr(r) || e.column++, e.offset++, this.updatePeek(e);
5048
+ r === 10 ? (e.line++, e.column = 0) : $t(r) || e.column++, e.offset++, this.updatePeek(e);
4960
5049
  }
4961
5050
  updatePeek(e) {
4962
5051
  e.peek = e.offset >= this.end ? 0 : this.charAt(e.offset);
4963
5052
  }
4964
5053
  locationFromCursor(e) {
4965
- return new ae(e.file, e.state.offset, e.state.line, e.state.column);
5054
+ return new ie(e.file, e.state.offset, e.state.line, e.state.column);
4966
5055
  }
4967
5056
  };
4968
- var Ir = class t4 extends Kt {
5057
+ var Gr = class t4 extends nr {
4969
5058
  constructor(e, r) {
4970
5059
  e instanceof t4 ? (super(e), this.internalState = {
4971
5060
  ...e.internalState
@@ -5009,24 +5098,24 @@ var Ir = class t4 extends Kt {
5009
5098
  this.advanceState(this.internalState);
5010
5099
  let r = this.clone();
5011
5100
  this.advanceState(this.internalState), this.state.peek = this.decodeHexDigits(r, 2);
5012
- } else if (_r(e())) {
5101
+ } else if (Br(e())) {
5013
5102
  let r = "", n = 0, s = this.clone();
5014
- for (; _r(e()) && n < 3; ) s = this.clone(), r += String.fromCodePoint(e()), this.advanceState(this.internalState), n++;
5103
+ for (; Br(e()) && n < 3; ) s = this.clone(), r += String.fromCodePoint(e()), this.advanceState(this.internalState), n++;
5015
5104
  this.state.peek = parseInt(r, 8), this.internalState = s.internalState;
5016
- } else Sr(this.internalState.peek) ? (this.advanceState(this.internalState), this.state = this.internalState) : this.state.peek = this.internalState.peek;
5105
+ } else $t(this.internalState.peek) ? (this.advanceState(this.internalState), this.state = this.internalState) : this.state.peek = this.internalState.peek;
5017
5106
  }
5018
5107
  decodeHexDigits(e, r) {
5019
5108
  let n = this.input.slice(e.internalState.offset, e.internalState.offset + r), s = parseInt(n, 16);
5020
- if (isNaN(s)) throw e.state = e.internalState, new ft("Invalid hexadecimal escape sequence", e);
5109
+ if (isNaN(s)) throw e.state = e.internalState, new St("Invalid hexadecimal escape sequence", e);
5021
5110
  return s;
5022
5111
  }
5023
5112
  };
5024
- var ft = class {
5113
+ var St = class {
5025
5114
  constructor(e, r) {
5026
5115
  this.msg = e, this.cursor = r;
5027
5116
  }
5028
5117
  };
5029
- var $ = class t5 extends Ve {
5118
+ var L = class t5 extends Oe {
5030
5119
  static create(e, r, n) {
5031
5120
  return new t5(e, r, n);
5032
5121
  }
@@ -5034,30 +5123,30 @@ var $ = class t5 extends Ve {
5034
5123
  super(r, n), this.elementName = e;
5035
5124
  }
5036
5125
  };
5037
- var Or = class {
5126
+ var jr = class {
5038
5127
  constructor(e, r) {
5039
5128
  this.rootNodes = e, this.errors = r;
5040
5129
  }
5041
5130
  };
5042
- var Qt = class {
5131
+ var sr = class {
5043
5132
  constructor(e) {
5044
5133
  this.getTagDefinition = e;
5045
5134
  }
5046
5135
  parse(e, r, n, s = false, i) {
5047
- let a = (D) => (I, ...B) => D(I.toLowerCase(), ...B), o = s ? this.getTagDefinition : a(this.getTagDefinition), u = (D) => o(D).getContentType(), p = s ? i : a(i), m = Ms(e, r, i ? (D, I, B, c) => {
5048
- let d = p(D, I, B, c);
5049
- return d !== void 0 ? d : u(D);
5050
- } : u, n), g = n && n.canSelfClose || false, C = n && n.allowHtmComponentClosingTags || false, _ = new Mr(m.tokens, o, g, C, s);
5051
- return _.build(), new Or(_.rootNodes, m.errors.concat(_.errors));
5136
+ let a = (D) => (I, ...F) => D(I.toLowerCase(), ...F), o = s ? this.getTagDefinition : a(this.getTagDefinition), u = (D) => o(D).getContentType(), p = s ? i : a(i), m = li(e, r, i ? (D, I, F, c) => {
5137
+ let g = p(D, I, F, c);
5138
+ return g !== void 0 ? g : u(D);
5139
+ } : u, n), f = n && n.canSelfClose || false, C = n && n.allowHtmComponentClosingTags || false, A = new Kr(m.tokens, o, f, C, s);
5140
+ return A.build(), new jr(A.rootNodes, m.errors.concat(A.errors));
5052
5141
  }
5053
5142
  };
5054
- var Mr = class t6 {
5143
+ var Kr = class t6 {
5055
5144
  constructor(e, r, n, s, i) {
5056
5145
  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();
5057
5146
  }
5058
5147
  build() {
5059
- for (; this._peek.type !== 30; ) 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 === 18 ? this._consumeDocType(this._advance()) : this._advance();
5060
- for (let e of this._containerStack) e instanceof Z && this.errors.push($.create(e.name, e.sourceSpan, `Unclosed block "${e.name}"`));
5148
+ 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();
5149
+ for (let e of this._containerStack) e instanceof ee && this.errors.push(L.create(e.name, e.sourceSpan, `Unclosed block "${e.name}"`));
5061
5150
  }
5062
5151
  _advance() {
5063
5152
  let e = this._peek;
@@ -5068,15 +5157,15 @@ var Mr = class t6 {
5068
5157
  }
5069
5158
  _consumeCdata(e) {
5070
5159
  let r = this._advance(), n = this._getText(r), s = this._advanceIf(13);
5071
- this._addToParent(new Mt(n, new f(e.sourceSpan.start, (s || r).sourceSpan.end), [r]));
5160
+ this._addToParent(new Gt(n, new h(e.sourceSpan.start, (s || r).sourceSpan.end), [r]));
5072
5161
  }
5073
5162
  _consumeComment(e) {
5074
- let r = this._advanceIf(7), n = this._advanceIf(11), s = r != null ? r.parts[0].trim() : null, i = new f(e.sourceSpan.start, (n || r || e).sourceSpan.end);
5075
- this._addToParent(new Ut(s, i));
5163
+ 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);
5164
+ this._addToParent(new Kt(s, i));
5076
5165
  }
5077
5166
  _consumeDocType(e) {
5078
- let r = this._advanceIf(7), n = this._advanceIf(19), s = r != null ? r.parts[0].trim() : null, i = new f(e.sourceSpan.start, (n || r || e).sourceSpan.end);
5079
- this._addToParent(new Wt(s, i));
5167
+ 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);
5168
+ this._addToParent(new Xt(s, i));
5080
5169
  }
5081
5170
  _consumeExpansion(e) {
5082
5171
  let r = this._advance(), n = this._advance(), s = [];
@@ -5086,37 +5175,37 @@ var Mr = class t6 {
5086
5175
  s.push(a);
5087
5176
  }
5088
5177
  if (this._peek.type !== 24) {
5089
- this.errors.push($.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
5178
+ this.errors.push(L.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
5090
5179
  return;
5091
5180
  }
5092
- let i = new f(e.sourceSpan.start, this._peek.sourceSpan.end, e.sourceSpan.fullStart);
5093
- this._addToParent(new qt(r.parts[0], n.parts[0], s, i, r.sourceSpan)), this._advance();
5181
+ let i = new h(e.sourceSpan.start, this._peek.sourceSpan.end, e.sourceSpan.fullStart);
5182
+ this._addToParent(new zt(r.parts[0], n.parts[0], s, i, r.sourceSpan)), this._advance();
5094
5183
  }
5095
5184
  _parseExpansionCase() {
5096
5185
  let e = this._advance();
5097
- if (this._peek.type !== 22) return this.errors.push($.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'.")), null;
5186
+ if (this._peek.type !== 22) return this.errors.push(L.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'.")), null;
5098
5187
  let r = this._advance(), n = this._collectExpansionExpTokens(r);
5099
5188
  if (!n) return null;
5100
5189
  let s = this._advance();
5101
5190
  n.push({
5102
- type: 30,
5191
+ type: 34,
5103
5192
  parts: [],
5104
5193
  sourceSpan: s.sourceSpan
5105
5194
  });
5106
5195
  let i = new t6(n, this.getTagDefinition, this.canSelfClose, this.allowHtmComponentClosingTags, this.isTagNameCaseSensitive);
5107
5196
  if (i.build(), i.errors.length > 0) return this.errors = this.errors.concat(i.errors), null;
5108
- let a = new f(e.sourceSpan.start, s.sourceSpan.end, e.sourceSpan.fullStart), o = new f(r.sourceSpan.start, s.sourceSpan.end, r.sourceSpan.fullStart);
5109
- return new Ht(e.parts[0], i.rootNodes, a, e.sourceSpan, o);
5197
+ 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);
5198
+ return new Yt(e.parts[0], i.rootNodes, a, e.sourceSpan, o);
5110
5199
  }
5111
5200
  _collectExpansionExpTokens(e) {
5112
5201
  let r = [], n = [22];
5113
5202
  for (; ; ) {
5114
- if ((this._peek.type === 20 || this._peek.type === 22) && n.push(this._peek.type), this._peek.type === 23) if (qs(n, 22)) {
5203
+ if ((this._peek.type === 20 || this._peek.type === 22) && n.push(this._peek.type), this._peek.type === 23) if (ci(n, 22)) {
5115
5204
  if (n.pop(), n.length === 0) return r;
5116
- } else return this.errors.push($.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
5117
- if (this._peek.type === 24) if (qs(n, 20)) n.pop();
5118
- else return this.errors.push($.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
5119
- if (this._peek.type === 30) return this.errors.push($.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
5205
+ } else return this.errors.push(L.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
5206
+ if (this._peek.type === 24) if (ci(n, 20)) n.pop();
5207
+ else return this.errors.push(L.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
5208
+ if (this._peek.type === 34) return this.errors.push(L.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
5120
5209
  r.push(this._advance());
5121
5210
  }
5122
5211
  }
@@ -5140,15 +5229,15 @@ var Mr = class t6 {
5140
5229
  parts: [s]
5141
5230
  });
5142
5231
  }
5143
- 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, Hs) : e.type === 9 ? s += e.parts[0] : s += e.parts.join("");
5232
+ 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, pi) : e.type === 9 ? s += e.parts[0] : s += e.parts.join("");
5144
5233
  if (s.length > 0) {
5145
5234
  let i = e.sourceSpan;
5146
- this._addToParent(new Ot(s, new f(n.start, i.end, n.fullStart, n.details), r));
5235
+ this._addToParent(new Wt(s, new h(n.start, i.end, n.fullStart, n.details), r));
5147
5236
  }
5148
5237
  }
5149
5238
  _closeVoidElement() {
5150
5239
  let e = this._getContainer();
5151
- e instanceof G && this.getTagDefinition(e.name).isVoid && this._containerStack.pop();
5240
+ e instanceof Y && this.getTagDefinition(e.name).isVoid && this._containerStack.pop();
5152
5241
  }
5153
5242
  _consumeStartTag(e) {
5154
5243
  let [r, n] = e.parts, s = [];
@@ -5157,70 +5246,91 @@ var Mr = class t6 {
5157
5246
  if (this._peek.type === 2) {
5158
5247
  this._advance(), a = true;
5159
5248
  let C = this.getTagDefinition(i);
5160
- this.canSelfClose || C.canSelfClose || Ue(i) !== null || C.isVoid || this.errors.push($.create(i, e.sourceSpan, `Only void, custom and foreign elements can be self closed "${e.parts[1]}"`));
5249
+ this.canSelfClose || C.canSelfClose || Me(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]}"`));
5161
5250
  } else this._peek.type === 1 && (this._advance(), a = false);
5162
- let o = this._peek.sourceSpan.fullStart, u = new f(e.sourceSpan.start, o, e.sourceSpan.fullStart), p = new f(e.sourceSpan.start, o, e.sourceSpan.fullStart), l = new f(e.sourceSpan.start.moveBy(1), e.sourceSpan.end), m = new G(i, s, [], u, p, void 0, l), g = this._getContainer();
5163
- this._pushContainer(m, g instanceof G && this.getTagDefinition(g.name).isClosedByChild(m.name)), a ? this._popContainer(i, G, u) : e.type === 4 && (this._popContainer(i, G, null), this.errors.push($.create(i, u, `Opening tag "${i}" not terminated.`)));
5251
+ 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), m = new Y(i, s, [], u, p, void 0, l), f = this._getContainer();
5252
+ this._pushContainer(m, f instanceof Y && this.getTagDefinition(f.name).isClosedByChild(m.name)), a ? this._popContainer(i, Y, u) : e.type === 4 && (this._popContainer(i, Y, null), this.errors.push(L.create(i, u, `Opening tag "${i}" not terminated.`)));
5164
5253
  }
5165
5254
  _pushContainer(e, r) {
5166
5255
  r && this._containerStack.pop(), this._addToParent(e), this._containerStack.push(e);
5167
5256
  }
5168
5257
  _consumeEndTag(e) {
5169
5258
  let r = this.allowHtmComponentClosingTags && e.parts.length === 0 ? null : this._getElementFullName(e.parts[0], e.parts[1], this._getClosestParentElement());
5170
- if (r && this.getTagDefinition(r).isVoid) this.errors.push($.create(r, e.sourceSpan, `Void elements do not have end tags "${e.parts[1]}"`));
5171
- else if (!this._popContainer(r, G, e.sourceSpan)) {
5259
+ if (r && this.getTagDefinition(r).isVoid) this.errors.push(L.create(r, e.sourceSpan, `Void elements do not have end tags "${e.parts[1]}"`));
5260
+ else if (!this._popContainer(r, Y, e.sourceSpan)) {
5172
5261
  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`;
5173
- this.errors.push($.create(r, e.sourceSpan, n));
5262
+ this.errors.push(L.create(r, e.sourceSpan, n));
5174
5263
  }
5175
5264
  }
5176
5265
  _popContainer(e, r, n) {
5177
5266
  let s = false;
5178
5267
  for (let i = this._containerStack.length - 1; i >= 0; i--) {
5179
5268
  let a = this._containerStack[i];
5180
- if (Ue(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;
5181
- (a instanceof Z || a instanceof G && !this.getTagDefinition(a.name).closedByParent) && (s = true);
5269
+ if (Me(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;
5270
+ (a instanceof ee || a instanceof Y && !this.getTagDefinition(a.name).closedByParent) && (s = true);
5182
5271
  }
5183
5272
  return false;
5184
5273
  }
5185
5274
  _consumeAttr(e) {
5186
- let r = We(e.parts[0], e.parts[1]), n = e.sourceSpan.end, s;
5275
+ let r = qe(e.parts[0], e.parts[1]), n = e.sourceSpan.end, s;
5187
5276
  this._peek.type === 15 && (s = this._advance());
5188
5277
  let i = "", a = [], o, u;
5189
5278
  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; ) {
5190
5279
  let m = this._advance();
5191
- a.push(m), m.type === 17 ? i += m.parts.join("").replace(/&([^;]+);/g, Hs) : m.type === 9 ? i += m.parts[0] : i += m.parts.join(""), u = n = m.sourceSpan.end;
5280
+ a.push(m), m.type === 17 ? i += m.parts.join("").replace(/&([^;]+);/g, pi) : m.type === 9 ? i += m.parts[0] : i += m.parts.join(""), u = n = m.sourceSpan.end;
5192
5281
  }
5193
5282
  this._peek.type === 15 && (u = n = this._advance().sourceSpan.end);
5194
- let l = o && u && new f((s == null ? void 0 : s.sourceSpan.start) ?? o.start, u, (s == null ? void 0 : s.sourceSpan.fullStart) ?? o.fullStart);
5195
- return new Vt(r, i, new f(e.sourceSpan.start, n, e.sourceSpan.fullStart), e.sourceSpan, l, a.length > 0 ? a : void 0, void 0);
5283
+ 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);
5284
+ return new jt(r, i, new h(e.sourceSpan.start, n, e.sourceSpan.fullStart), e.sourceSpan, l, a.length > 0 ? a : void 0, void 0);
5196
5285
  }
5197
5286
  _consumeBlockOpen(e) {
5198
5287
  let r = [];
5199
5288
  for (; this._peek.type === 28; ) {
5200
5289
  let o = this._advance();
5201
- r.push(new ut(o.parts[0], o.sourceSpan));
5290
+ r.push(new ht(o.parts[0], o.sourceSpan));
5202
5291
  }
5203
5292
  this._peek.type === 26 && this._advance();
5204
- let n = this._peek.sourceSpan.fullStart, s = new f(e.sourceSpan.start, n, e.sourceSpan.fullStart), i = new f(e.sourceSpan.start, n, e.sourceSpan.fullStart), a = new Z(e.parts[0], r, [], s, i);
5293
+ 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 ee(e.parts[0], r, [], s, e.sourceSpan, i);
5205
5294
  this._pushContainer(a, false);
5206
5295
  }
5207
5296
  _consumeBlockClose(e) {
5208
- this._popContainer(null, Z, e.sourceSpan) || this.errors.push($.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.'));
5297
+ this._popContainer(null, ee, 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.'));
5209
5298
  }
5210
5299
  _consumeIncompleteBlock(e) {
5211
5300
  let r = [];
5212
5301
  for (; this._peek.type === 28; ) {
5213
5302
  let o = this._advance();
5214
- r.push(new ut(o.parts[0], o.sourceSpan));
5303
+ r.push(new ht(o.parts[0], o.sourceSpan));
5304
+ }
5305
+ 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 ee(e.parts[0], r, [], s, e.sourceSpan, i);
5306
+ this._pushContainer(a, false), this._popContainer(null, ee, 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.`));
5307
+ }
5308
+ _consumeLet(e) {
5309
+ let r = e.parts[0], n, s;
5310
+ if (this._peek.type !== 31) {
5311
+ this.errors.push(L.create(e.parts[0], e.sourceSpan, `Invalid @let declaration "${r}". Declaration must have a value.`));
5312
+ return;
5313
+ } else n = this._advance();
5314
+ if (this._peek.type !== 32) {
5315
+ this.errors.push(L.create(e.parts[0], e.sourceSpan, `Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));
5316
+ return;
5317
+ } else s = this._advance();
5318
+ 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 mt(r, n.parts[0], a, p, n.sourceSpan);
5319
+ this._addToParent(l);
5320
+ }
5321
+ _consumeIncompleteLet(e) {
5322
+ let r = e.parts[0] ?? "", n = r ? ` "${r}"` : "";
5323
+ if (r.length > 0) {
5324
+ 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 mt(r, "", e.sourceSpan, a, o);
5325
+ this._addToParent(u);
5215
5326
  }
5216
- let n = this._peek.sourceSpan.fullStart, s = new f(e.sourceSpan.start, n, e.sourceSpan.fullStart), i = new f(e.sourceSpan.start, n, e.sourceSpan.fullStart), a = new Z(e.parts[0], r, [], s, i);
5217
- this._pushContainer(a, false), this._popContainer(null, Z, null), this.errors.push($.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.`));
5327
+ this.errors.push(L.create(e.parts[0], e.sourceSpan, `Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``));
5218
5328
  }
5219
5329
  _getContainer() {
5220
5330
  return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
5221
5331
  }
5222
5332
  _getClosestParentElement() {
5223
- for (let e = this._containerStack.length - 1; e > -1; e--) if (this._containerStack[e] instanceof G) return this._containerStack[e];
5333
+ for (let e = this._containerStack.length - 1; e > -1; e--) if (this._containerStack[e] instanceof Y) return this._containerStack[e];
5224
5334
  return null;
5225
5335
  }
5226
5336
  _addToParent(e) {
@@ -5229,92 +5339,109 @@ var Mr = class t6 {
5229
5339
  }
5230
5340
  _getElementFullName(e, r, n) {
5231
5341
  if (e === "" && (e = this.getTagDefinition(r).implicitNamespacePrefix || "", e === "" && n != null)) {
5232
- let s = at(n.name)[1];
5233
- this.getTagDefinition(s).preventNamespaceInheritance || (e = Ue(n.name));
5342
+ let s = ct(n.name)[1];
5343
+ this.getTagDefinition(s).preventNamespaceInheritance || (e = Me(n.name));
5234
5344
  }
5235
- return We(e, r);
5345
+ return qe(e, r);
5236
5346
  }
5237
5347
  };
5238
- function qs(t8, e) {
5239
- return t8.length > 0 && t8[t8.length - 1] === e;
5348
+ function ci(t7, e) {
5349
+ return t7.length > 0 && t7[t7.length - 1] === e;
5240
5350
  }
5241
- function Hs(t8, e) {
5242
- return Ge[e] !== void 0 ? Ge[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;
5351
+ function pi(t7, e) {
5352
+ return Ve[e] !== void 0 ? Ve[e] || t7 : /^#x[a-f0-9]+$/i.test(e) ? String.fromCodePoint(parseInt(e.slice(2), 16)) : /^#\d+$/.test(e) ? String.fromCodePoint(parseInt(e.slice(1), 10)) : t7;
5243
5353
  }
5244
- var Xt = class extends Qt {
5354
+ var ir = class extends sr {
5245
5355
  constructor() {
5246
- super(ze);
5356
+ super(He);
5247
5357
  }
5248
5358
  parse(e, r, n, s = false, i) {
5249
5359
  return super.parse(e, r, n, s, i);
5250
5360
  }
5251
5361
  };
5252
- var qr = null;
5253
- var mo = () => (qr || (qr = new Xt()), qr);
5254
- function Hr(t8, e = {}) {
5362
+ var Xr = null;
5363
+ var Uo = () => (Xr || (Xr = new ir()), Xr);
5364
+ function Qr(t7, e = {}) {
5255
5365
  let {
5256
5366
  canSelfClose: r = false,
5257
5367
  allowHtmComponentClosingTags: n = false,
5258
5368
  isTagNameCaseSensitive: s = false,
5259
5369
  getTagContentType: i,
5260
- tokenizeAngularBlocks: a = false
5370
+ tokenizeAngularBlocks: a = false,
5371
+ tokenizeAngularLetDeclaration: o = false
5261
5372
  } = e;
5262
- return mo().parse(t8, "angular-html-parser", {
5373
+ return Uo().parse(t7, "angular-html-parser", {
5263
5374
  tokenizeExpansionForms: a,
5264
5375
  interpolationConfig: void 0,
5265
5376
  canSelfClose: r,
5266
5377
  allowHtmComponentClosingTags: n,
5267
- tokenizeBlocks: a
5378
+ tokenizeBlocks: a,
5379
+ tokenizeLet: o
5268
5380
  }, s, i);
5269
5381
  }
5270
- function go(t8, e) {
5271
- let r = new SyntaxError(t8 + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
5382
+ function Wo(t7, e) {
5383
+ let r = new SyntaxError(t7 + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
5272
5384
  return Object.assign(r, e);
5273
5385
  }
5274
- var Vs = go;
5275
- var Co = new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)", "s");
5276
- function So(t8) {
5277
- let e = t8.match(Co);
5386
+ var hi = Wo;
5387
+ var _t = 3;
5388
+ function Go(t7) {
5389
+ let e = t7.slice(0, _t);
5390
+ if (e !== "---" && e !== "+++") return;
5391
+ let r = t7.indexOf(`
5392
+ `, _t);
5393
+ if (r === -1) return;
5394
+ let n = t7.slice(_t, r).trim(), s = t7.indexOf(`
5395
+ ${e}`, r), i = n;
5396
+ if (i || (i = e === "+++" ? "toml" : "yaml"), s === -1 && e === "---" && i === "yaml" && (s = t7.indexOf(`
5397
+ ...`, r)), s === -1) return;
5398
+ let a = s + 1 + _t, o = t7.charAt(a + 1);
5399
+ if (!/\s?/u.test(o)) return;
5400
+ let u = t7.slice(0, a);
5401
+ return {
5402
+ type: "front-matter",
5403
+ language: i,
5404
+ explicitLanguage: n,
5405
+ value: t7.slice(r + 1, s),
5406
+ startDelimiter: e,
5407
+ endDelimiter: u.slice(-3),
5408
+ raw: u
5409
+ };
5410
+ }
5411
+ function zo(t7) {
5412
+ let e = Go(t7);
5278
5413
  if (!e) return {
5279
- content: t8
5414
+ content: t7
5280
5415
  };
5281
5416
  let {
5282
- startDelimiter: r,
5283
- language: n,
5284
- value: s = "",
5285
- endDelimiter: i
5286
- } = e.groups, a = n.trim() || "yaml";
5287
- if (r === "+++" && (a = "toml"), a !== "yaml" && r !== i) return {
5288
- content: t8
5289
- };
5290
- let [o] = e;
5417
+ raw: r
5418
+ } = e;
5291
5419
  return {
5292
- frontMatter: {
5293
- type: "front-matter",
5294
- lang: a,
5295
- value: s,
5296
- startDelimiter: r,
5297
- endDelimiter: i,
5298
- raw: o.replace(/\n$/, "")
5299
- },
5300
- content: w(false, o, /[^\n]/g, " ") + t8.slice(o.length)
5420
+ frontMatter: e,
5421
+ content: w(false, r, /[^\n]/gu, " ") + t7.slice(r.length)
5301
5422
  };
5302
5423
  }
5303
- var Us = So;
5304
- var Jt = {
5424
+ var mi = zo;
5425
+ var ar = {
5305
5426
  attrs: true,
5306
5427
  children: true,
5307
5428
  cases: true,
5308
5429
  expression: true
5309
5430
  };
5310
- var Ws = /* @__PURE__ */ new Set(["parent"]);
5311
- var Zt = class t7 {
5431
+ var fi = /* @__PURE__ */ new Set(["parent"]);
5432
+ var le;
5433
+ var Jr;
5434
+ var Zr;
5435
+ var Ge = class Ge2 {
5312
5436
  constructor(e = {}) {
5313
- for (let r of /* @__PURE__ */ new Set([...Ws, ...Object.keys(e)])) this.setProperty(r, e[r]);
5437
+ At(this, le);
5438
+ lr(this, "type");
5439
+ lr(this, "parent");
5440
+ for (let r of /* @__PURE__ */ new Set([...fi, ...Object.keys(e)])) this.setProperty(r, e[r]);
5314
5441
  }
5315
5442
  setProperty(e, r) {
5316
5443
  if (this[e] !== r) {
5317
- if (e in Jt && (r = r.map((n) => this.createChild(n))), !Ws.has(e)) {
5444
+ if (e in ar && (r = r.map((n) => this.createChild(n))), !fi.has(e)) {
5318
5445
  this[e] = r;
5319
5446
  return;
5320
5447
  }
@@ -5327,56 +5454,64 @@ var Zt = class t7 {
5327
5454
  }
5328
5455
  map(e) {
5329
5456
  let r;
5330
- for (let n in Jt) {
5457
+ for (let n in ar) {
5331
5458
  let s = this[n];
5332
5459
  if (s) {
5333
- let i = _o(s, (a) => a.map(e));
5334
- r !== s && (r || (r = new t7({
5460
+ let i = Yo(s, (a) => a.map(e));
5461
+ r !== s && (r || (r = new Ge2({
5335
5462
  parent: this.parent
5336
5463
  })), r.setProperty(n, i));
5337
5464
  }
5338
5465
  }
5339
- if (r) for (let n in this) n in Jt || (r[n] = this[n]);
5466
+ if (r) for (let n in this) n in ar || (r[n] = this[n]);
5340
5467
  return e(r || this);
5341
5468
  }
5342
5469
  walk(e) {
5343
- for (let r in Jt) {
5470
+ for (let r in ar) {
5344
5471
  let n = this[r];
5345
5472
  if (n) for (let s = 0; s < n.length; s++) n[s].walk(e);
5346
5473
  }
5347
5474
  e(this);
5348
5475
  }
5349
5476
  createChild(e) {
5350
- let r = e instanceof t7 ? e.clone() : new t7(e);
5477
+ let r = e instanceof Ge2 ? e.clone() : new Ge2(e);
5351
5478
  return r.setProperty("parent", this), r;
5352
5479
  }
5353
5480
  insertChildBefore(e, r) {
5354
- this.children.splice(this.children.indexOf(e), 0, this.createChild(r));
5481
+ let n = this.$children;
5482
+ n.splice(n.indexOf(e), 0, this.createChild(r));
5355
5483
  }
5356
5484
  removeChild(e) {
5357
- this.children.splice(this.children.indexOf(e), 1);
5485
+ let r = this.$children;
5486
+ r.splice(r.indexOf(e), 1);
5358
5487
  }
5359
5488
  replaceChild(e, r) {
5360
- this.children[this.children.indexOf(e)] = this.createChild(r);
5489
+ let n = this.$children;
5490
+ n[n.indexOf(e)] = this.createChild(r);
5361
5491
  }
5362
5492
  clone() {
5363
- return new t7(this);
5493
+ return new Ge2(this);
5494
+ }
5495
+ get $children() {
5496
+ return this[R(this, le, Jr)];
5497
+ }
5498
+ set $children(e) {
5499
+ this[R(this, le, Jr)] = e;
5364
5500
  }
5365
5501
  get firstChild() {
5366
5502
  var e;
5367
- return (e = this.children) == null ? void 0 : e[0];
5503
+ return (e = this.$children) == null ? void 0 : e[0];
5368
5504
  }
5369
5505
  get lastChild() {
5370
- var e;
5371
- return (e = this.children) == null ? void 0 : e[this.children.length - 1];
5506
+ return K(true, this.$children, -1);
5372
5507
  }
5373
5508
  get prev() {
5374
- var e, r;
5375
- return (r = (e = this.parent) == null ? void 0 : e.children) == null ? void 0 : r[this.parent.children.indexOf(this) - 1];
5509
+ let e = R(this, le, Zr);
5510
+ return e[e.indexOf(this) - 1];
5376
5511
  }
5377
5512
  get next() {
5378
- var e, r;
5379
- return (r = (e = this.parent) == null ? void 0 : e.children) == null ? void 0 : r[this.parent.children.indexOf(this) + 1];
5513
+ let e = R(this, le, Zr);
5514
+ return e[e.indexOf(this) + 1];
5380
5515
  }
5381
5516
  get rawName() {
5382
5517
  return this.hasExplicitNamespace ? this.fullName : this.name;
@@ -5388,39 +5523,46 @@ var Zt = class t7 {
5388
5523
  return Object.fromEntries(this.attrs.map((e) => [e.fullName, e.value]));
5389
5524
  }
5390
5525
  };
5391
- function _o(t8, e) {
5392
- let r = t8.map(e);
5393
- return r.some((n, s) => n !== t8[s]) ? r : t8;
5394
- }
5395
- var Eo = [{
5396
- regex: /^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,
5397
- parse: Ao
5526
+ le = /* @__PURE__ */ new WeakSet(), Jr = function() {
5527
+ return this.type === "angularIcuCase" ? "expression" : this.type === "angularIcuExpression" ? "cases" : "children";
5528
+ }, Zr = function() {
5529
+ var e;
5530
+ return ((e = this.parent) == null ? void 0 : e.$children) ?? [];
5531
+ };
5532
+ var or = Ge;
5533
+ function Yo(t7, e) {
5534
+ let r = t7.map(e);
5535
+ return r.some((n, s) => n !== t7[s]) ? r : t7;
5536
+ }
5537
+ var jo = [{
5538
+ regex: /^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,
5539
+ parse: Ko
5398
5540
  }, {
5399
- regex: /^\[if([^\]]*)]><!$/,
5400
- parse: Do
5541
+ regex: /^\[if([^\]]*)\]><!$/u,
5542
+ parse: Xo
5401
5543
  }, {
5402
- regex: /^<!\s*\[endif]$/,
5403
- parse: vo
5544
+ regex: /^<!\s*\[endif\]$/u,
5545
+ parse: Qo
5404
5546
  }];
5405
- function zs(t8, e) {
5406
- if (t8.value) for (let {
5547
+ function di(t7, e) {
5548
+ if (t7.value) for (let {
5407
5549
  regex: r,
5408
5550
  parse: n
5409
- } of Eo) {
5410
- let s = t8.value.match(r);
5411
- if (s) return n(t8, e, s);
5551
+ } of jo) {
5552
+ let s = t7.value.match(r);
5553
+ if (s) return n(t7, e, s);
5412
5554
  }
5413
5555
  return null;
5414
5556
  }
5415
- function Ao(t8, e, r) {
5416
- let [, n, s, i] = r, a = 4 + n.length, o = t8.sourceSpan.start.moveBy(a), u = o.moveBy(i.length), [p, l] = (() => {
5557
+ function Ko(t7, e, r) {
5558
+ let [, n, s, i] = r, a = 4 + n.length, o = t7.sourceSpan.start.moveBy(a), u = o.moveBy(i.length), [p, l] = (() => {
5417
5559
  try {
5418
5560
  return [true, e(i, o).children];
5419
5561
  } catch {
5420
5562
  return [false, [{
5421
5563
  type: "text",
5422
5564
  value: i,
5423
- sourceSpan: new f(o, u)
5565
+ sourceSpan: new h(o, u)
5424
5566
  }]];
5425
5567
  }
5426
5568
  })();
@@ -5428,46 +5570,53 @@ function Ao(t8, e, r) {
5428
5570
  type: "ieConditionalComment",
5429
5571
  complete: p,
5430
5572
  children: l,
5431
- condition: w(false, s.trim(), /\s+/g, " "),
5432
- sourceSpan: t8.sourceSpan,
5433
- startSourceSpan: new f(t8.sourceSpan.start, o),
5434
- endSourceSpan: new f(u, t8.sourceSpan.end)
5573
+ condition: w(false, s.trim(), /\s+/gu, " "),
5574
+ sourceSpan: t7.sourceSpan,
5575
+ startSourceSpan: new h(t7.sourceSpan.start, o),
5576
+ endSourceSpan: new h(u, t7.sourceSpan.end)
5435
5577
  };
5436
5578
  }
5437
- function Do(t8, e, r) {
5579
+ function Xo(t7, e, r) {
5438
5580
  let [, n] = r;
5439
5581
  return {
5440
5582
  type: "ieConditionalStartComment",
5441
- condition: w(false, n.trim(), /\s+/g, " "),
5442
- sourceSpan: t8.sourceSpan
5583
+ condition: w(false, n.trim(), /\s+/gu, " "),
5584
+ sourceSpan: t7.sourceSpan
5443
5585
  };
5444
5586
  }
5445
- function vo(t8) {
5587
+ function Qo(t7) {
5446
5588
  return {
5447
5589
  type: "ieConditionalEndComment",
5448
- sourceSpan: t8.sourceSpan
5590
+ sourceSpan: t7.sourceSpan
5449
5591
  };
5450
5592
  }
5451
- var er = /* @__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"])], ["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(["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"])]]);
5452
- var Gs = /* @__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"]);
5453
- function yo(t8) {
5454
- if (t8.type === "block") {
5455
- if (t8.name = w(false, t8.name.toLowerCase(), /\s+/g, " ").trim(), t8.type = "angularControlFlowBlock", !Me(t8.parameters)) {
5456
- delete t8.parameters;
5593
+ var ur = /* @__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"])]]);
5594
+ var gi = /* @__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", "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"]);
5595
+ function Jo(t7) {
5596
+ if (t7.type === "block") {
5597
+ if (t7.name = w(false, t7.name.toLowerCase(), /\s+/gu, " ").trim(), t7.type = "angularControlFlowBlock", !me(t7.parameters)) {
5598
+ delete t7.parameters;
5457
5599
  return;
5458
5600
  }
5459
- for (let e of t8.parameters) e.type = "angularControlFlowBlockParameter";
5460
- t8.parameters = {
5601
+ for (let e of t7.parameters) e.type = "angularControlFlowBlockParameter";
5602
+ t7.parameters = {
5461
5603
  type: "angularControlFlowBlockParameters",
5462
- children: t8.parameters,
5463
- sourceSpan: new f(t8.parameters[0].sourceSpan.start, X(false, t8.parameters, -1).sourceSpan.end)
5604
+ children: t7.parameters,
5605
+ sourceSpan: new h(t7.parameters[0].sourceSpan.start, K(false, t7.parameters, -1).sourceSpan.end)
5464
5606
  };
5465
5607
  }
5466
5608
  }
5467
- function wo(t8) {
5468
- (t8.type === "plural" || t8.type === "select") && (t8.clause = t8.type, t8.type = "angularIcuExpression"), t8.type === "expansionCase" && (t8.type = "angularIcuCase");
5609
+ function Zo(t7) {
5610
+ t7.type === "letDeclaration" && (t7.type = "angularLetDeclaration", t7.id = t7.name, t7.init = {
5611
+ type: "angularLetDeclarationInitializer",
5612
+ sourceSpan: new h(t7.valueSpan.start, t7.valueSpan.end),
5613
+ value: t7.value
5614
+ }, delete t7.name, delete t7.value);
5469
5615
  }
5470
- function js(t8, e, r) {
5616
+ function eu(t7) {
5617
+ (t7.type === "plural" || t7.type === "select") && (t7.clause = t7.type, t7.type = "angularIcuExpression"), t7.type === "expansionCase" && (t7.type = "angularIcuCase");
5618
+ }
5619
+ function Si(t7, e, r) {
5471
5620
  let {
5472
5621
  name: n,
5473
5622
  canSelfClose: s = true,
@@ -5479,43 +5628,44 @@ function js(t8, e, r) {
5479
5628
  } = e, {
5480
5629
  rootNodes: l,
5481
5630
  errors: m
5482
- } = Hr(t8, {
5631
+ } = Qr(t7, {
5483
5632
  canSelfClose: s,
5484
5633
  allowHtmComponentClosingTags: o,
5485
5634
  isTagNameCaseSensitive: u,
5486
5635
  getTagContentType: p ? (...c) => p(...c) ? N.RAW_TEXT : void 0 : void 0,
5487
- tokenizeAngularBlocks: n === "angular" ? true : void 0
5636
+ tokenizeAngularBlocks: n === "angular" ? true : void 0,
5637
+ tokenizeAngularLetDeclaration: n === "angular" ? true : void 0
5488
5638
  });
5489
5639
  if (n === "vue") {
5490
- if (l.some((b) => b.type === "docType" && b.value === "html" || b.type === "element" && b.name.toLowerCase() === "html")) return js(t8, Qs, r);
5491
- let d, y = () => d ?? (d = Hr(t8, {
5640
+ if (l.some((x) => x.type === "docType" && x.value === "html" || x.type === "element" && x.name.toLowerCase() === "html")) return Si(t7, en, r);
5641
+ let g, y = () => g ?? (g = Qr(t7, {
5492
5642
  canSelfClose: s,
5493
5643
  allowHtmComponentClosingTags: o,
5494
5644
  isTagNameCaseSensitive: u
5495
- })), O = (b) => y().rootNodes.find(({
5496
- startSourceSpan: V
5497
- }) => V && V.start.offset === b.startSourceSpan.start.offset) ?? b;
5498
- for (let [b, V] of l.entries()) {
5645
+ })), q = (x) => y().rootNodes.find(({
5646
+ startSourceSpan: U
5647
+ }) => U && U.start.offset === x.startSourceSpan.start.offset) ?? x;
5648
+ for (let [x, U] of l.entries()) {
5499
5649
  let {
5500
- endSourceSpan: Wr,
5501
- startSourceSpan: Xs
5502
- } = V;
5503
- if (Wr === null) m = y().errors, l[b] = O(V);
5504
- else if (bo(V, r)) {
5505
- let zr = y().errors.find((Gr) => Gr.span.start.offset > Xs.start.offset && Gr.span.start.offset < Wr.end.offset);
5506
- zr && Ys(zr), l[b] = O(V);
5650
+ endSourceSpan: nn,
5651
+ startSourceSpan: Ei
5652
+ } = U;
5653
+ if (nn === null) m = y().errors, l[x] = q(U);
5654
+ else if (tu(U, r)) {
5655
+ let sn = y().errors.find((an) => an.span.start.offset > Ei.start.offset && an.span.start.offset < nn.end.offset);
5656
+ sn && Ci(sn), l[x] = q(U);
5507
5657
  }
5508
5658
  }
5509
5659
  }
5510
- m.length > 0 && Ys(m[0]);
5511
- let g = (c) => {
5512
- let d = c.name.startsWith(":") ? c.name.slice(1).split(":")[0] : null, y = c.nameSpan.toString(), O = d !== null && y.startsWith(`${d}:`), b = O ? y.slice(d.length + 1) : y;
5513
- c.name = b, c.namespace = d, c.hasExplicitNamespace = O;
5660
+ m.length > 0 && Ci(m[0]);
5661
+ let f = (c) => {
5662
+ let g = c.name.startsWith(":") ? c.name.slice(1).split(":")[0] : null, y = c.nameSpan.toString(), q = g !== null && y.startsWith(`${g}:`), x = q ? y.slice(g.length + 1) : y;
5663
+ c.name = x, c.namespace = g, c.hasExplicitNamespace = q;
5514
5664
  }, C = (c) => {
5515
5665
  switch (c.type) {
5516
5666
  case "element":
5517
- g(c);
5518
- for (let d of c.attrs) g(d), d.valueSpan ? (d.value = d.valueSpan.toString(), /["']/.test(d.value[0]) && (d.value = d.value.slice(1, -1))) : d.value = null;
5667
+ f(c);
5668
+ for (let g of c.attrs) f(g), g.valueSpan ? (g.value = g.valueSpan.toString(), /["']/u.test(g.value[0]) && (g.value = g.value.slice(1, -1))) : g.value = null;
5519
5669
  break;
5520
5670
  case "comment":
5521
5671
  c.value = c.sourceSpan.toString().slice(4, -3);
@@ -5524,47 +5674,47 @@ function js(t8, e, r) {
5524
5674
  c.value = c.sourceSpan.toString();
5525
5675
  break;
5526
5676
  }
5527
- }, _ = (c, d) => {
5677
+ }, A = (c, g) => {
5528
5678
  let y = c.toLowerCase();
5529
- return d(y) ? y : c;
5679
+ return g(y) ? y : c;
5530
5680
  }, D = (c) => {
5531
- if (c.type === "element" && (i && (!c.namespace || c.namespace === c.tagDefinition.implicitNamespacePrefix || de(c)) && (c.name = _(c.name, (d) => Gs.has(d))), a)) for (let d of c.attrs) d.namespace || (d.name = _(d.name, (y) => er.has(c.name) && (er.get("*").has(y) || er.get(c.name).has(y))));
5681
+ if (c.type === "element" && (i && (!c.namespace || c.namespace === c.tagDefinition.implicitNamespacePrefix || fe(c)) && (c.name = A(c.name, (g) => gi.has(g))), a)) for (let g of c.attrs) g.namespace || (g.name = A(g.name, (y) => ur.has(c.name) && (ur.get("*").has(y) || ur.get(c.name).has(y))));
5532
5682
  }, I = (c) => {
5533
- c.sourceSpan && c.endSourceSpan && (c.sourceSpan = new f(c.sourceSpan.start, c.endSourceSpan.end));
5534
- }, B = (c) => {
5683
+ c.sourceSpan && c.endSourceSpan && (c.sourceSpan = new h(c.sourceSpan.start, c.endSourceSpan.end));
5684
+ }, F = (c) => {
5535
5685
  if (c.type === "element") {
5536
- let d = ze(u ? c.name : c.name.toLowerCase());
5537
- !c.namespace || c.namespace === d.implicitNamespacePrefix || de(c) ? c.tagDefinition = d : c.tagDefinition = ze("");
5686
+ let g = He(u ? c.name : c.name.toLowerCase());
5687
+ !c.namespace || c.namespace === g.implicitNamespacePrefix || fe(c) ? c.tagDefinition = g : c.tagDefinition = He("");
5538
5688
  }
5539
5689
  };
5540
- return zt(new class extends lt {
5541
- visitExpansionCase(c, d) {
5542
- n === "angular" && this.visitChildren(d, (y) => {
5690
+ return Qt(new class extends ft {
5691
+ visitExpansionCase(c, g) {
5692
+ n === "angular" && this.visitChildren(g, (y) => {
5543
5693
  y(c.expression);
5544
5694
  });
5545
5695
  }
5546
5696
  visit(c) {
5547
- C(c), B(c), D(c), I(c);
5697
+ C(c), F(c), D(c), I(c);
5548
5698
  }
5549
5699
  }(), l), l;
5550
5700
  }
5551
- function bo(t8, e) {
5701
+ function tu(t7, e) {
5552
5702
  var n;
5553
- if (t8.type !== "element" || t8.name !== "template") return false;
5554
- let r = (n = t8.attrs.find((s) => s.name === "lang")) == null ? void 0 : n.value;
5555
- return !r || $e(e, {
5703
+ if (t7.type !== "element" || t7.name !== "template") return false;
5704
+ let r = (n = t7.attrs.find((s) => s.name === "lang")) == null ? void 0 : n.value;
5705
+ return !r || Ne(e, {
5556
5706
  language: r
5557
5707
  }) === "html";
5558
5708
  }
5559
- function Ys(t8) {
5709
+ function Ci(t7) {
5560
5710
  let {
5561
5711
  msg: e,
5562
5712
  span: {
5563
5713
  start: r,
5564
5714
  end: n
5565
5715
  }
5566
- } = t8;
5567
- throw Vs(e, {
5716
+ } = t7;
5717
+ throw hi(e, {
5568
5718
  loc: {
5569
5719
  start: {
5570
5720
  line: r.line + 1,
@@ -5575,79 +5725,86 @@ function Ys(t8) {
5575
5725
  column: n.col + 1
5576
5726
  }
5577
5727
  },
5578
- cause: t8
5728
+ cause: t7
5579
5729
  });
5580
5730
  }
5581
- function Ks(t8, e, r = {}, n = true) {
5731
+ function _i(t7, e, r = {}, n = true) {
5582
5732
  let {
5583
5733
  frontMatter: s,
5584
5734
  content: i
5585
- } = n ? Us(t8) : {
5735
+ } = n ? mi(t7) : {
5586
5736
  frontMatter: null,
5587
- content: t8
5588
- }, a = new we(t8, r.filepath), o = new ae(a, 0, 0, 0), u = o.moveBy(t8.length), p = {
5737
+ content: t7
5738
+ }, a = new ve(t7, r.filepath), o = new ie(a, 0, 0, 0), u = o.moveBy(t7.length), p = {
5589
5739
  type: "root",
5590
- sourceSpan: new f(o, u),
5591
- children: js(i, e, r)
5740
+ sourceSpan: new h(o, u),
5741
+ children: Si(i, e, r)
5592
5742
  };
5593
5743
  if (s) {
5594
- let g = new ae(a, 0, 0, 0), C = g.moveBy(s.raw.length);
5595
- s.sourceSpan = new f(g, C), p.children.unshift(s);
5744
+ let f = new ie(a, 0, 0, 0), C = f.moveBy(s.raw.length);
5745
+ s.sourceSpan = new h(f, C), p.children.unshift(s);
5596
5746
  }
5597
- let l = new Zt(p), m = (g, C) => {
5747
+ let l = new or(p), m = (f, C) => {
5598
5748
  let {
5599
- offset: _
5600
- } = C, D = w(false, t8.slice(0, _), /[^\n\r]/g, " "), B = Ks(D + g, e, r, false);
5601
- B.sourceSpan = new f(C, X(false, B.children, -1).sourceSpan.end);
5602
- let c = B.children[0];
5603
- return c.length === _ ? B.children.shift() : (c.sourceSpan = new f(c.sourceSpan.start.moveBy(_), c.sourceSpan.end), c.value = c.value.slice(_)), B;
5749
+ offset: A
5750
+ } = C, D = w(false, t7.slice(0, A), /[^\n\r]/gu, " "), F = _i(D + f, e, r, false);
5751
+ F.sourceSpan = new h(C, K(false, F.children, -1).sourceSpan.end);
5752
+ let c = F.children[0];
5753
+ 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;
5604
5754
  };
5605
- return l.walk((g) => {
5606
- if (g.type === "comment") {
5607
- let C = zs(g, m);
5608
- C && g.parent.replaceChild(g, C);
5755
+ return l.walk((f) => {
5756
+ if (f.type === "comment") {
5757
+ let C = di(f, m);
5758
+ C && f.parent.replaceChild(f, C);
5609
5759
  }
5610
- yo(g), wo(g);
5760
+ Jo(f), Zo(f), eu(f);
5611
5761
  }), l;
5612
5762
  }
5613
- function tr(t8) {
5763
+ function Et(t7) {
5614
5764
  return {
5615
- parse: (e, r) => Ks(e, t8, r),
5616
- hasPragma: rs,
5765
+ parse: (e, r) => _i(e, t7, r),
5766
+ hasPragma: ws,
5767
+ hasIgnorePragma: bs,
5617
5768
  astFormat: "html",
5618
- locStart: se,
5619
- locEnd: ie
5769
+ locStart: J,
5770
+ locEnd: se
5620
5771
  };
5621
5772
  }
5622
- var Qs = {
5773
+ var en = {
5623
5774
  name: "html",
5624
5775
  normalizeTagName: true,
5625
5776
  normalizeAttributeName: true,
5626
5777
  allowHtmComponentClosingTags: true
5627
5778
  };
5628
- var To = tr(Qs);
5629
- var xo = tr({
5779
+ var ru = Et(en);
5780
+ var nu = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]);
5781
+ var su = Et({
5782
+ ...en,
5783
+ name: "mjml",
5784
+ shouldParseAsRawText: (t7) => nu.has(t7)
5785
+ });
5786
+ var iu = Et({
5630
5787
  name: "angular"
5631
5788
  });
5632
- var ko = tr({
5789
+ var au = Et({
5633
5790
  name: "vue",
5634
5791
  isTagNameCaseSensitive: true,
5635
- shouldParseAsRawText(t8, e, r, n) {
5636
- return t8.toLowerCase() !== "html" && !r && (t8 !== "template" || n.some(({
5792
+ shouldParseAsRawText(t7, e, r, n) {
5793
+ return t7.toLowerCase() !== "html" && !r && (t7 !== "template" || n.some(({
5637
5794
  name: s,
5638
5795
  value: i
5639
5796
  }) => s === "lang" && i !== "html" && i !== "" && i !== void 0));
5640
5797
  }
5641
5798
  });
5642
- var Bo = tr({
5799
+ var ou = Et({
5643
5800
  name: "lwc",
5644
5801
  canSelfClose: false
5645
5802
  });
5646
- var Lo = {
5647
- html: ds
5803
+ var uu = {
5804
+ html: qs
5648
5805
  };
5649
- var xh = Ur;
5806
+ var ym = rn;
5650
5807
 
5651
- export { xh as default, Cs as languages, _s as options, Vr as parsers, Lo as printers };
5652
- //# sourceMappingURL=html-GMDGBLFG.js.map
5653
- //# sourceMappingURL=html-GMDGBLFG.js.map
5808
+ export { ym as default, Hs as languages, Us as options, tn as parsers, uu as printers };
5809
+ //# sourceMappingURL=html-IRNVR4MI.js.map
5810
+ //# sourceMappingURL=html-IRNVR4MI.js.map