@kubb/core 3.0.0-alpha.15 → 3.0.0-alpha.17

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 (108) hide show
  1. package/dist/acorn-BDQRFTH5.js +3009 -0
  2. package/dist/acorn-BDQRFTH5.js.map +1 -0
  3. package/dist/acorn-SWAHAI7X.cjs +3015 -0
  4. package/dist/acorn-SWAHAI7X.cjs.map +1 -0
  5. package/dist/angular-7QLNOURG.js +1537 -0
  6. package/dist/angular-7QLNOURG.js.map +1 -0
  7. package/dist/angular-W2RY3LST.cjs +1543 -0
  8. package/dist/angular-W2RY3LST.cjs.map +1 -0
  9. package/dist/babel-GWHGORSH.js +6899 -0
  10. package/dist/babel-GWHGORSH.js.map +1 -0
  11. package/dist/babel-Z3QMLNRG.cjs +6905 -0
  12. package/dist/babel-Z3QMLNRG.cjs.map +1 -0
  13. package/dist/{chunk-HSOPQXAZ.cjs → chunk-73IP2I4Z.cjs} +36 -35
  14. package/dist/chunk-73IP2I4Z.cjs.map +1 -0
  15. package/dist/{chunk-LCONSKJV.cjs → chunk-B32U3U36.cjs} +8 -8
  16. package/dist/{chunk-LCONSKJV.cjs.map → chunk-B32U3U36.cjs.map} +1 -1
  17. package/dist/{chunk-GWZ4GG5H.cjs → chunk-BUNKJZH3.cjs} +10 -10
  18. package/dist/{chunk-GWZ4GG5H.cjs.map → chunk-BUNKJZH3.cjs.map} +1 -1
  19. package/dist/{chunk-U4NVHXG7.cjs → chunk-GDBJNFFQ.cjs} +4 -4
  20. package/dist/{chunk-U4NVHXG7.cjs.map → chunk-GDBJNFFQ.cjs.map} +1 -1
  21. package/dist/{chunk-Z5PJTU5Y.cjs → chunk-IR265SBR.cjs} +12 -4
  22. package/dist/chunk-IR265SBR.cjs.map +1 -0
  23. package/dist/{chunk-IUN6LRFH.js → chunk-IS3U2E4B.js} +5 -4
  24. package/dist/chunk-IS3U2E4B.js.map +1 -0
  25. package/dist/{chunk-E6CN2CZC.js → chunk-JSL2IBGJ.js} +3 -3
  26. package/dist/{chunk-E6CN2CZC.js.map → chunk-JSL2IBGJ.js.map} +1 -1
  27. package/dist/chunk-KHG35XCD.cjs +12933 -0
  28. package/dist/chunk-KHG35XCD.cjs.map +1 -0
  29. package/dist/chunk-OSWGRZMH.js +12927 -0
  30. package/dist/chunk-OSWGRZMH.js.map +1 -0
  31. package/dist/chunk-PZ5AY32C.js +9 -0
  32. package/dist/chunk-PZ5AY32C.js.map +1 -0
  33. package/dist/{chunk-7SY2AKJK.cjs → chunk-PZZ736XC.cjs} +6 -6
  34. package/dist/{chunk-7SY2AKJK.cjs.map → chunk-PZZ736XC.cjs.map} +1 -1
  35. package/dist/{chunk-HBQM723K.js → chunk-ZEL4DI72.js} +3 -3
  36. package/dist/{chunk-HBQM723K.js.map → chunk-ZEL4DI72.js.map} +1 -1
  37. package/dist/estree-4BFMOGHF.js +4367 -0
  38. package/dist/estree-4BFMOGHF.js.map +1 -0
  39. package/dist/estree-GUB2QUYV.cjs +4375 -0
  40. package/dist/estree-GUB2QUYV.cjs.map +1 -0
  41. package/dist/flow-KXNVL5TH.cjs +26268 -0
  42. package/dist/flow-KXNVL5TH.cjs.map +1 -0
  43. package/dist/flow-VXQDDICF.js +26262 -0
  44. package/dist/flow-VXQDDICF.js.map +1 -0
  45. package/dist/glimmer-7L53E5R3.cjs +2852 -0
  46. package/dist/glimmer-7L53E5R3.cjs.map +1 -0
  47. package/dist/glimmer-FBL5UTXI.js +2844 -0
  48. package/dist/glimmer-FBL5UTXI.js.map +1 -0
  49. package/dist/graphql-NAYJ7XUI.cjs +1250 -0
  50. package/dist/graphql-NAYJ7XUI.cjs.map +1 -0
  51. package/dist/graphql-VWUEBAX7.js +1241 -0
  52. package/dist/graphql-VWUEBAX7.js.map +1 -0
  53. package/dist/html-A4Q53WOG.cjs +2754 -0
  54. package/dist/html-A4Q53WOG.cjs.map +1 -0
  55. package/dist/html-SRQHPYU4.js +2745 -0
  56. package/dist/html-SRQHPYU4.js.map +1 -0
  57. package/dist/index.cjs +35 -35
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.js +6 -5
  60. package/dist/index.js.map +1 -1
  61. package/dist/logger.cjs +7 -7
  62. package/dist/logger.js +3 -2
  63. package/dist/markdown-7H53GZRF.js +3319 -0
  64. package/dist/markdown-7H53GZRF.js.map +1 -0
  65. package/dist/markdown-UCYRKIQU.cjs +3328 -0
  66. package/dist/markdown-UCYRKIQU.cjs.map +1 -0
  67. package/dist/meriyah-FOV342OF.cjs +2356 -0
  68. package/dist/meriyah-FOV342OF.cjs.map +1 -0
  69. package/dist/meriyah-MBZURH4I.js +2350 -0
  70. package/dist/meriyah-MBZURH4I.js.map +1 -0
  71. package/dist/mocks.cjs +23350 -18
  72. package/dist/mocks.cjs.map +1 -1
  73. package/dist/mocks.d.cts +2 -1
  74. package/dist/mocks.d.ts +2 -1
  75. package/dist/mocks.js +23312 -17
  76. package/dist/mocks.js.map +1 -1
  77. package/dist/postcss-2ZEP7RB4.cjs +4945 -0
  78. package/dist/postcss-2ZEP7RB4.cjs.map +1 -0
  79. package/dist/postcss-TPQQRMEX.js +4936 -0
  80. package/dist/postcss-TPQQRMEX.js.map +1 -0
  81. package/dist/{prompt-WQQUN22Z.js → prompt-EWVFJSYF.js} +4 -3
  82. package/dist/prompt-EWVFJSYF.js.map +1 -0
  83. package/dist/{prompt-KR6JRAMC.cjs → prompt-HYWTP2ND.cjs} +62 -62
  84. package/dist/{prompt-KR6JRAMC.cjs.map → prompt-HYWTP2ND.cjs.map} +1 -1
  85. package/dist/transformers.cjs +23 -23
  86. package/dist/transformers.js +1 -0
  87. package/dist/transformers.js.map +1 -1
  88. package/dist/typescript-HWISSPX7.cjs +19 -0
  89. package/dist/typescript-HWISSPX7.cjs.map +1 -0
  90. package/dist/typescript-IRGFXOHK.js +4 -0
  91. package/dist/typescript-IRGFXOHK.js.map +1 -0
  92. package/dist/utils.cjs +17 -17
  93. package/dist/utils.js +2 -1
  94. package/dist/yaml-HOYUWFS4.cjs +4216 -0
  95. package/dist/yaml-HOYUWFS4.cjs.map +1 -0
  96. package/dist/yaml-Q6KMUOXF.js +4207 -0
  97. package/dist/yaml-Q6KMUOXF.js.map +1 -0
  98. package/package.json +8 -8
  99. package/src/FileManager.ts +1 -1
  100. package/src/__snapshots__/barrel.json +2 -0
  101. package/src/__snapshots__/grouped.json +12 -6
  102. package/src/__snapshots__/ordered.json +12 -6
  103. package/src/build.ts +1 -1
  104. package/src/utils/parser.ts +1 -0
  105. package/dist/chunk-HSOPQXAZ.cjs.map +0 -1
  106. package/dist/chunk-IUN6LRFH.js.map +0 -1
  107. package/dist/chunk-Z5PJTU5Y.cjs.map +0 -1
  108. package/dist/prompt-WQQUN22Z.js.map +0 -1
@@ -0,0 +1,2844 @@
1
+ import './chunk-PZ5AY32C.js';
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.3.3/node_modules/prettier/plugins/glimmer.mjs
4
+ var rs = Object.defineProperty;
5
+ var Fr = (t5) => {
6
+ throw TypeError(t5);
7
+ };
8
+ var zt = (t5, e) => {
9
+ for (var r in e) rs(t5, r, { get: e[r], enumerable: true });
10
+ };
11
+ var Mr = (t5, e, r) => e.has(t5) || Fr("Cannot " + r);
12
+ var $ = (t5, e, r) => (Mr(t5, e, "read from private field"), e.get(t5));
13
+ var Gt = (t5, e, r) => e.has(t5) ? Fr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t5) : e.set(t5, r);
14
+ var Yt = (t5, e, r, n) => (Mr(t5, e, "write to private field"), e.set(t5, r), r);
15
+ var Rr = {};
16
+ zt(Rr, { languages: () => Sn, parsers: () => Ir, printers: () => pa });
17
+ var ns = (t5, e, r, n) => {
18
+ if (!(t5 && e == null)) return e.replaceAll ? e.replaceAll(r, n) : r.global ? e.replace(r, n) : e.split(r).join(n);
19
+ };
20
+ var Kt = ns;
21
+ var ze = "string";
22
+ var Ge = "array";
23
+ var Ye = "cursor";
24
+ var Le = "indent";
25
+ var _e = "align";
26
+ var Ke = "trim";
27
+ var De = "group";
28
+ var Oe = "fill";
29
+ var Be = "if-break";
30
+ var We = "indent-if-break";
31
+ var $e = "line-suffix";
32
+ var je = "line-suffix-boundary";
33
+ var ee = "line";
34
+ var Qe = "label";
35
+ var Ie = "break-parent";
36
+ var ft = /* @__PURE__ */ new Set([Ye, Le, _e, Ke, De, Oe, Be, We, $e, je, ee, Qe, Ie]);
37
+ function ss(t5) {
38
+ if (typeof t5 == "string") return ze;
39
+ if (Array.isArray(t5)) return Ge;
40
+ if (!t5) return;
41
+ let { type: e } = t5;
42
+ if (ft.has(e)) return e;
43
+ }
44
+ var Xe = ss;
45
+ var is = (t5) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(t5);
46
+ function as(t5) {
47
+ let e = t5 === null ? "null" : typeof t5;
48
+ if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
49
+ Expected it to be 'string' or 'object'.`;
50
+ if (Xe(t5)) throw new Error("doc is valid.");
51
+ let r = Object.prototype.toString.call(t5);
52
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
53
+ let n = is([...ft].map((s) => `'${s}'`));
54
+ return `Unexpected doc.type '${t5.type}'.
55
+ Expected it to be ${n}.`;
56
+ }
57
+ var Wt = class extends Error {
58
+ name = "InvalidDocError";
59
+ constructor(e) {
60
+ super(as(e)), this.doc = e;
61
+ }
62
+ };
63
+ var $t = Wt;
64
+ var zr = () => {
65
+ };
66
+ var dt = zr;
67
+ function R(t5) {
68
+ return { type: Le, contents: t5 };
69
+ }
70
+ function os(t5, e) {
71
+ return { type: _e, contents: e, n: t5 };
72
+ }
73
+ function q(t5, e = {}) {
74
+ return dt(e.expandedStates), { type: De, id: e.id, contents: t5, break: !!e.shouldBreak, expandedStates: e.expandedStates };
75
+ }
76
+ function jt(t5) {
77
+ return os(-1, t5);
78
+ }
79
+ function Qt(t5) {
80
+ return { type: Oe, parts: t5 };
81
+ }
82
+ function Xt(t5, e = "", r = {}) {
83
+ return { type: Be, breakContents: t5, flatContents: e, groupId: r.groupId };
84
+ }
85
+ var Gr = { type: Ie };
86
+ var ls = { type: ee, hard: true };
87
+ var cs = { type: ee, hard: true, literal: true };
88
+ var D = { type: ee };
89
+ var Y = { type: ee, soft: true };
90
+ var ye = [ls, Gr];
91
+ var Yr = [cs, Gr];
92
+ function Ee(t5, e) {
93
+ let r = [];
94
+ for (let n = 0; n < e.length; n++) n !== 0 && r.push(t5), r.push(e[n]);
95
+ return r;
96
+ }
97
+ var us = (t5, e, r) => {
98
+ if (!(t5 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[r < 0 ? e.length + r : r] : e.at(r);
99
+ };
100
+ var oe = us;
101
+ function hs(t5, e) {
102
+ if (typeof t5 == "string") return e(t5);
103
+ let r = /* @__PURE__ */ new Map();
104
+ return n(t5);
105
+ function n(i) {
106
+ if (r.has(i)) return r.get(i);
107
+ let a = s(i);
108
+ return r.set(i, a), a;
109
+ }
110
+ function s(i) {
111
+ switch (Xe(i)) {
112
+ case Ge:
113
+ return e(i.map(n));
114
+ case Oe:
115
+ return e({ ...i, parts: i.parts.map(n) });
116
+ case Be:
117
+ return e({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
118
+ case De: {
119
+ let { expandedStates: a, contents: o } = i;
120
+ return a ? (a = a.map(n), o = a[0]) : o = n(o), e({ ...i, contents: o, expandedStates: a });
121
+ }
122
+ case _e:
123
+ case Le:
124
+ case We:
125
+ case Qe:
126
+ case $e:
127
+ return e({ ...i, contents: n(i.contents) });
128
+ case ze:
129
+ case Ye:
130
+ case Ke:
131
+ case je:
132
+ case ee:
133
+ case Ie:
134
+ return e(i);
135
+ default:
136
+ throw new $t(i);
137
+ }
138
+ }
139
+ }
140
+ function Kr(t5, e = Yr) {
141
+ return hs(t5, (r) => typeof r == "string" ? Ee(e, r.split(`
142
+ `)) : r);
143
+ }
144
+ var mt = "'";
145
+ var Wr = '"';
146
+ function ps(t5, e) {
147
+ let r = e === true || e === mt ? mt : Wr, n = r === mt ? Wr : mt, s = 0, i = 0;
148
+ for (let a of t5) a === r ? s++ : a === n && i++;
149
+ return s > i ? n : r;
150
+ }
151
+ var gt = ps;
152
+ function Jt(t5) {
153
+ if (typeof t5 != "string") throw new TypeError("Expected a string");
154
+ return t5.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
155
+ }
156
+ var G;
157
+ var Zt = class {
158
+ constructor(e) {
159
+ Gt(this, G);
160
+ Yt(this, G, new Set(e));
161
+ }
162
+ getLeadingWhitespaceCount(e) {
163
+ let r = $(this, G), n = 0;
164
+ for (let s = 0; s < e.length && r.has(e.charAt(s)); s++) n++;
165
+ return n;
166
+ }
167
+ getTrailingWhitespaceCount(e) {
168
+ let r = $(this, G), n = 0;
169
+ for (let s = e.length - 1; s >= 0 && r.has(e.charAt(s)); s--) n++;
170
+ return n;
171
+ }
172
+ getLeadingWhitespace(e) {
173
+ let r = this.getLeadingWhitespaceCount(e);
174
+ return e.slice(0, r);
175
+ }
176
+ getTrailingWhitespace(e) {
177
+ let r = this.getTrailingWhitespaceCount(e);
178
+ return e.slice(e.length - r);
179
+ }
180
+ hasLeadingWhitespace(e) {
181
+ return $(this, G).has(e.charAt(0));
182
+ }
183
+ hasTrailingWhitespace(e) {
184
+ return $(this, G).has(oe(false, e, -1));
185
+ }
186
+ trimStart(e) {
187
+ let r = this.getLeadingWhitespaceCount(e);
188
+ return e.slice(r);
189
+ }
190
+ trimEnd(e) {
191
+ let r = this.getTrailingWhitespaceCount(e);
192
+ return e.slice(0, e.length - r);
193
+ }
194
+ trim(e) {
195
+ return this.trimEnd(this.trimStart(e));
196
+ }
197
+ split(e, r = false) {
198
+ let n = `[${Jt([...$(this, G)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
199
+ return e.split(s);
200
+ }
201
+ hasWhitespaceCharacter(e) {
202
+ let r = $(this, G);
203
+ return Array.prototype.some.call(e, (n) => r.has(n));
204
+ }
205
+ hasNonWhitespaceCharacter(e) {
206
+ let r = $(this, G);
207
+ return Array.prototype.some.call(e, (n) => !r.has(n));
208
+ }
209
+ isWhitespaceOnly(e) {
210
+ let r = $(this, G);
211
+ return Array.prototype.every.call(e, (n) => r.has(n));
212
+ }
213
+ };
214
+ G = /* @__PURE__ */ new WeakMap();
215
+ var $r = Zt;
216
+ var fs = [" ", `
217
+ `, "\f", "\r", " "];
218
+ var ds = new $r(fs);
219
+ var K = ds;
220
+ function ms(t5) {
221
+ return Array.isArray(t5) && t5.length > 0;
222
+ }
223
+ var Je = ms;
224
+ var er = class extends Error {
225
+ name = "UnexpectedNodeError";
226
+ constructor(e, r, n = "type") {
227
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`), this.node = e;
228
+ }
229
+ };
230
+ var jr = er;
231
+ function Qr(t5, e) {
232
+ if (t5.type === "TextNode") {
233
+ let r = t5.chars.trim();
234
+ if (!r) return null;
235
+ e.chars = K.split(r).join(" ");
236
+ }
237
+ t5.type === "ElementNode" && (delete e.startTag, delete e.openTag, delete e.parts, delete e.endTag, delete e.closeTag, delete e.nameNode, delete e.body, delete e.blockParamNodes, delete e.params, delete e.path), t5.type === "Block" && (delete e.blockParamNodes, delete e.params), t5.type === "AttrNode" && t5.name.toLowerCase() === "class" && delete e.value, t5.type === "PathExpression" && (e.head = t5.head.original);
238
+ }
239
+ Qr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
240
+ var Xr = Qr;
241
+ var Ze = null;
242
+ function et(t5) {
243
+ if (Ze !== null && typeof Ze.property) {
244
+ let e = Ze;
245
+ return Ze = et.prototype = null, e;
246
+ }
247
+ return Ze = et.prototype = t5 ?? /* @__PURE__ */ Object.create(null), new et();
248
+ }
249
+ var gs = 10;
250
+ for (let t5 = 0; t5 <= gs; t5++) et();
251
+ function tr(t5) {
252
+ return et(t5);
253
+ }
254
+ function bs(t5, e = "type") {
255
+ tr(t5);
256
+ function r(n) {
257
+ let s = n[e], i = t5[s];
258
+ if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
259
+ return i;
260
+ }
261
+ return r;
262
+ }
263
+ var Jr = bs;
264
+ var Zr = { Template: ["body"], Block: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };
265
+ var ys = Jr(Zr);
266
+ var en = ys;
267
+ function Se(t5) {
268
+ return t5.loc.start.offset;
269
+ }
270
+ function tt(t5) {
271
+ return t5.loc.end.offset;
272
+ }
273
+ var tn = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
274
+ function nn(t5) {
275
+ return t5.toUpperCase() === t5;
276
+ }
277
+ function Es(t5) {
278
+ return t5.type === "ElementNode" && typeof t5.tag == "string" && !t5.tag.startsWith(":") && (nn(t5.tag[0]) || t5.tag.includes("."));
279
+ }
280
+ function Ss(t5) {
281
+ return tn.has(t5.toLowerCase()) && !nn(t5[0]);
282
+ }
283
+ function rr(t5) {
284
+ return t5.selfClosing === true || Ss(t5.tag) || Es(t5) && t5.children.every((e) => bt(e));
285
+ }
286
+ function bt(t5) {
287
+ return t5.type === "TextNode" && !/\S/u.test(t5.chars);
288
+ }
289
+ function rn(t5) {
290
+ return (t5 == null ? void 0 : t5.type) === "MustacheCommentStatement" && typeof t5.value == "string" && t5.value.trim() === "prettier-ignore";
291
+ }
292
+ function sn(t5) {
293
+ return rn(t5.node) || t5.isInArray && (t5.key === "children" || t5.key === "body" || t5.key === "parts") && rn(t5.siblings[t5.index - 2]);
294
+ }
295
+ var fn = 2;
296
+ function ws(t5, e, r) {
297
+ var s, i, a, o, c, p, h, d, N;
298
+ let { node: n } = t5;
299
+ switch (n.type) {
300
+ case "Block":
301
+ case "Program":
302
+ case "Template":
303
+ return q(t5.map(r, "body"));
304
+ case "ElementNode": {
305
+ let g = q(Ts(t5, r)), T = e.htmlWhitespaceSensitivity === "ignore" && ((s = t5.next) == null ? void 0 : s.type) === "ElementNode" ? Y : "";
306
+ if (rr(n)) return [g, T];
307
+ let x = ["</", n.tag, ">"];
308
+ return n.children.length === 0 ? [g, R(x), T] : e.htmlWhitespaceSensitivity === "ignore" ? [g, R(an(t5, e, r)), ye, R(x), T] : [g, R(q(an(t5, e, r))), R(x), T];
309
+ }
310
+ case "BlockStatement":
311
+ return Cs(t5) ? [Ls(t5, r), cn(t5, r, e), un(t5, r, e)] : [Ps(t5, r), q([cn(t5, r, e), un(t5, r, e), _s(t5, r, e)])];
312
+ case "ElementModifierStatement":
313
+ return q(["{{", pn(t5, r), "}}"]);
314
+ case "MustacheStatement":
315
+ return q([yt(n), pn(t5, r), Et(n)]);
316
+ case "SubExpression":
317
+ return q(["(", Hs(t5, r), Y, ")"]);
318
+ case "AttrNode": {
319
+ let { name: g, value: T } = n, x = T.type === "TextNode";
320
+ if (x && T.chars === "" && Se(T) === tt(T)) return g;
321
+ let v = x ? gt(T.chars, e.singleQuote) : T.type === "ConcatStatement" ? gt(T.parts.map((H) => H.type === "TextNode" ? H.chars : "").join(""), e.singleQuote) : "", M = r("value");
322
+ return [g, "=", v, g === "class" && v ? q(R(M)) : M, v];
323
+ }
324
+ case "ConcatStatement":
325
+ return t5.map(r, "parts");
326
+ case "Hash":
327
+ return Ee(D, t5.map(r, "pairs"));
328
+ case "HashPair":
329
+ return [n.key, "=", r("value")];
330
+ case "TextNode": {
331
+ let g = Kt(false, n.chars, "{{", String.raw`\{{`), T = Os(t5);
332
+ if (T) {
333
+ if (T === "class") {
334
+ let J = g.trim().split(/\s+/u).join(" "), re = false, V = false;
335
+ return t5.parent.type === "ConcatStatement" && (((i = t5.previous) == null ? void 0 : i.type) === "MustacheStatement" && /^\s/u.test(g) && (re = true), ((a = t5.next) == null ? void 0 : a.type) === "MustacheStatement" && /\s$/u.test(g) && J !== "" && (V = true)), [re ? D : "", J, V ? D : ""];
336
+ }
337
+ return Kr(g);
338
+ }
339
+ let x = K.isWhitespaceOnly(g), { isFirst: C, isLast: v } = t5;
340
+ if (e.htmlWhitespaceSensitivity !== "ignore") {
341
+ let J = v && t5.parent.type === "Template", re = C && t5.parent.type === "Template";
342
+ if (x) {
343
+ if (re || J) return "";
344
+ let _ = [D], se = Re(g);
345
+ return se && (_ = rt(se)), v && (_ = _.map((ut) => jt(ut))), _;
346
+ }
347
+ let V = K.getLeadingWhitespace(g), Pe = [];
348
+ if (V) {
349
+ Pe = [D];
350
+ let _ = Re(V);
351
+ _ && (Pe = rt(_)), g = g.slice(V.length);
352
+ }
353
+ let U = K.getTrailingWhitespace(g), ne = [];
354
+ if (U) {
355
+ if (!J) {
356
+ ne = [D];
357
+ let _ = Re(U);
358
+ _ && (ne = rt(_)), v && (ne = ne.map((se) => jt(se)));
359
+ }
360
+ g = g.slice(0, -U.length);
361
+ }
362
+ return [...Pe, Qt(hn(g)), ...ne];
363
+ }
364
+ let M = Re(g), H = Bs(g), X = Is(g);
365
+ if ((C || v) && x && (t5.parent.type === "Block" || t5.parent.type === "ElementNode" || t5.parent.type === "Template")) return "";
366
+ x && M ? (H = Math.min(M, fn), X = 0) : ((((o = t5.next) == null ? void 0 : o.type) === "BlockStatement" || ((c = t5.next) == null ? void 0 : c.type) === "ElementNode") && (X = Math.max(X, 1)), (((p = t5.previous) == null ? void 0 : p.type) === "BlockStatement" || ((h = t5.previous) == null ? void 0 : h.type) === "ElementNode") && (H = Math.max(H, 1)));
367
+ let ve = "", Ae = "";
368
+ return X === 0 && ((d = t5.next) == null ? void 0 : d.type) === "MustacheStatement" && (Ae = " "), H === 0 && ((N = t5.previous) == null ? void 0 : N.type) === "MustacheStatement" && (ve = " "), C && (H = 0, ve = ""), v && (X = 0, Ae = ""), K.hasLeadingWhitespace(g) && (g = ve + K.trimStart(g)), K.hasTrailingWhitespace(g) && (g = K.trimEnd(g) + Ae), [...rt(H), Qt(hn(g)), ...rt(X)];
369
+ }
370
+ case "MustacheCommentStatement": {
371
+ let g = Se(n), T = tt(n), x = e.originalText.charAt(g + 2) === "~", C = e.originalText.charAt(T - 3) === "~", v = n.value.includes("}}") ? "--" : "";
372
+ return ["{{", x ? "~" : "", "!", v, n.value, v, C ? "~" : "", "}}"];
373
+ }
374
+ case "PathExpression":
375
+ return Ms(n);
376
+ case "BooleanLiteral":
377
+ return String(n.value);
378
+ case "CommentStatement":
379
+ return ["<!--", n.value, "-->"];
380
+ case "StringLiteral":
381
+ return Rs(t5, e);
382
+ case "NumberLiteral":
383
+ return String(n.value);
384
+ case "UndefinedLiteral":
385
+ return "undefined";
386
+ case "NullLiteral":
387
+ return "null";
388
+ case "AtHead":
389
+ case "VarHead":
390
+ case "ThisHead":
391
+ default:
392
+ throw new jr(n, "Handlebars");
393
+ }
394
+ }
395
+ function ks(t5, e) {
396
+ return Se(t5) - Se(e);
397
+ }
398
+ function Ts(t5, e) {
399
+ let { node: r } = t5, n = ["attributes", "modifiers", "comments"].filter((i) => Je(r[i])), s = n.flatMap((i) => r[i]).sort(ks);
400
+ for (let i of n) t5.each(({ node: a }) => {
401
+ let o = s.indexOf(a);
402
+ s.splice(o, 1, [D, e()]);
403
+ }, i);
404
+ return Je(r.blockParams) && s.push(D, sr(r)), ["<", r.tag, R(s), Ns(r)];
405
+ }
406
+ function an(t5, e, r) {
407
+ let { node: n } = t5, s = n.children.every((i) => bt(i));
408
+ return e.htmlWhitespaceSensitivity === "ignore" && s ? "" : t5.map(({ isFirst: i }) => {
409
+ let a = r();
410
+ return i && e.htmlWhitespaceSensitivity === "ignore" ? [Y, a] : a;
411
+ }, "children");
412
+ }
413
+ function Ns(t5) {
414
+ return rr(t5) ? Xt([Y, "/>"], [" />", Y]) : Xt([Y, ">"], ">");
415
+ }
416
+ function yt(t5) {
417
+ var n;
418
+ let e = t5.trusting ? "{{{" : "{{", r = (n = t5.strip) != null && n.open ? "~" : "";
419
+ return [e, r];
420
+ }
421
+ function Et(t5) {
422
+ var n;
423
+ let e = t5.trusting ? "}}}" : "}}";
424
+ return [(n = t5.strip) != null && n.close ? "~" : "", e];
425
+ }
426
+ function vs(t5) {
427
+ let e = yt(t5), r = t5.openStrip.open ? "~" : "";
428
+ return [e, r, "#"];
429
+ }
430
+ function As(t5) {
431
+ let e = Et(t5);
432
+ return [t5.openStrip.close ? "~" : "", e];
433
+ }
434
+ function on(t5) {
435
+ let e = yt(t5), r = t5.closeStrip.open ? "~" : "";
436
+ return [e, r, "/"];
437
+ }
438
+ function ln(t5) {
439
+ let e = Et(t5);
440
+ return [t5.closeStrip.close ? "~" : "", e];
441
+ }
442
+ function dn(t5) {
443
+ let e = yt(t5), r = t5.inverseStrip.open ? "~" : "";
444
+ return [e, r];
445
+ }
446
+ function mn(t5) {
447
+ let e = Et(t5);
448
+ return [t5.inverseStrip.close ? "~" : "", e];
449
+ }
450
+ function Ps(t5, e) {
451
+ let { node: r } = t5, n = [], s = St(t5, e);
452
+ return s && n.push(q(s)), Je(r.program.blockParams) && n.push(sr(r.program)), q([vs(r), nr(t5, e), n.length > 0 ? R([D, Ee(D, n)]) : "", Y, As(r)]);
453
+ }
454
+ function xs(t5, e) {
455
+ return [e.htmlWhitespaceSensitivity === "ignore" ? ye : "", dn(t5), "else", mn(t5)];
456
+ }
457
+ var gn = (t5, e) => t5.head.type === "VarHead" && e.head.type === "VarHead" && t5.head.name === e.head.name;
458
+ function Cs(t5) {
459
+ var n;
460
+ let { grandparent: e, node: r } = t5;
461
+ return ((n = e == null ? void 0 : e.inverse) == null ? void 0 : n.body.length) === 1 && e.inverse.body[0] === r && gn(e.inverse.body[0].path, e.path);
462
+ }
463
+ function Ls(t5, e) {
464
+ let { node: r, grandparent: n } = t5;
465
+ return q([dn(n), ["else", " ", n.inverse.body[0].path.head.name], R([D, q(St(t5, e)), ...Je(r.program.blockParams) ? [D, sr(r.program)] : []]), Y, mn(n)]);
466
+ }
467
+ function _s(t5, e, r) {
468
+ let { node: n } = t5;
469
+ return r.htmlWhitespaceSensitivity === "ignore" ? [bn(n) ? Y : ye, on(n), e("path"), ln(n)] : [on(n), e("path"), ln(n)];
470
+ }
471
+ function bn(t5) {
472
+ return t5.type === "BlockStatement" && t5.program.body.every((e) => bt(e));
473
+ }
474
+ function Ds(t5) {
475
+ return yn(t5) && t5.inverse.body.length === 1 && t5.inverse.body[0].type === "BlockStatement" && gn(t5.inverse.body[0].path, t5.path);
476
+ }
477
+ function yn(t5) {
478
+ return t5.type === "BlockStatement" && t5.inverse;
479
+ }
480
+ function cn(t5, e, r) {
481
+ let { node: n } = t5;
482
+ if (bn(n)) return "";
483
+ let s = e("program");
484
+ return r.htmlWhitespaceSensitivity === "ignore" ? R([ye, s]) : R(s);
485
+ }
486
+ function un(t5, e, r) {
487
+ let { node: n } = t5, s = e("inverse"), i = r.htmlWhitespaceSensitivity === "ignore" ? [ye, s] : s;
488
+ return Ds(n) ? i : yn(n) ? [xs(n, r), R(i)] : "";
489
+ }
490
+ function hn(t5) {
491
+ return Ee(D, K.split(t5));
492
+ }
493
+ function Os(t5) {
494
+ for (let e = 0; e < 2; e++) {
495
+ let r = t5.getParentNode(e);
496
+ if ((r == null ? void 0 : r.type) === "AttrNode") return r.name.toLowerCase();
497
+ }
498
+ }
499
+ function Re(t5) {
500
+ return t5 = typeof t5 == "string" ? t5 : "", t5.split(`
501
+ `).length - 1;
502
+ }
503
+ function Bs(t5) {
504
+ t5 = typeof t5 == "string" ? t5 : "";
505
+ let e = (t5.match(/^([^\S\n\r]*[\n\r])+/gu) || [])[0] || "";
506
+ return Re(e);
507
+ }
508
+ function Is(t5) {
509
+ t5 = typeof t5 == "string" ? t5 : "";
510
+ let e = (t5.match(/([\n\r][^\S\n\r]*)+$/gu) || [])[0] || "";
511
+ return Re(e);
512
+ }
513
+ function rt(t5 = 0) {
514
+ return Array.from({ length: Math.min(t5, fn) }).fill(ye);
515
+ }
516
+ function Rs(t5, e) {
517
+ let { node: { value: r } } = t5, n = gt(r, qs(t5) ? !e.singleQuote : e.singleQuote);
518
+ return [n, Kt(false, r, n, `\\${n}`), n];
519
+ }
520
+ function qs(t5) {
521
+ let { ancestors: e } = t5, r = e.findIndex((n) => n.type !== "SubExpression");
522
+ return r !== -1 && e[r + 1].type === "ConcatStatement" && e[r + 2].type === "AttrNode";
523
+ }
524
+ function Hs(t5, e) {
525
+ let r = nr(t5, e), n = St(t5, e);
526
+ return n ? R([r, D, q(n)]) : r;
527
+ }
528
+ function pn(t5, e) {
529
+ let r = nr(t5, e), n = St(t5, e);
530
+ return n ? [R([r, D, n]), Y] : r;
531
+ }
532
+ function nr(t5, e) {
533
+ return e("path");
534
+ }
535
+ function St(t5, e) {
536
+ var s;
537
+ let { node: r } = t5, n = [];
538
+ return r.params.length > 0 && n.push(...t5.map(e, "params")), ((s = r.hash) == null ? void 0 : s.pairs.length) > 0 && n.push(e("hash")), n.length === 0 ? "" : Ee(D, n);
539
+ }
540
+ function sr(t5) {
541
+ return ["as |", t5.blockParams.join(" "), "|"];
542
+ }
543
+ var Vs = new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~");
544
+ var Us = /* @__PURE__ */ new Set(["true", "false", "null", "undefined"]);
545
+ var Fs = (t5, e) => e === 0 && t5.startsWith("@") ? false : e !== 0 && Us.has(t5) || /\s/u.test(t5) || /^\d/u.test(t5) || Array.prototype.some.call(t5, (r) => Vs.has(r));
546
+ function Ms(t5) {
547
+ return t5.tail.length === 0 && t5.original.includes("/") ? t5.original : [t5.head.original, ...t5.tail].map((r, n) => Fs(r, n) ? `[${r}]` : r).join(".");
548
+ }
549
+ var zs = { print: ws, massageAstNode: Xr, hasPrettierIgnore: sn, getVisitorKeys: en };
550
+ var En = zs;
551
+ var Sn = [{ linguistLanguageId: 155, name: "Handlebars", type: "markup", color: "#f7931e", aliases: ["hbs", "htmlbars"], extensions: [".handlebars", ".hbs"], tmScope: "text.html.handlebars", aceMode: "handlebars", parsers: ["glimmer"], vscodeLanguageIds: ["handlebars"] }];
552
+ var Ir = {};
553
+ zt(Ir, { glimmer: () => ha });
554
+ function w(t5, e) {
555
+ if (!t5) throw new Error(e || "assertion failure");
556
+ }
557
+ function F(t5) {
558
+ Js.warn(`DEPRECATION: ${t5}`);
559
+ }
560
+ function kt(t5) {
561
+ if (t5 == null) throw new Error("Expected value to be present");
562
+ return t5;
563
+ }
564
+ function Tn(t5, e) {
565
+ if (t5 == null) throw new Error(e);
566
+ return t5;
567
+ }
568
+ function we(t5) {
569
+ return t5.length > 0;
570
+ }
571
+ function Tt(t5, e = "unexpected empty list") {
572
+ if (!we(t5)) throw new Error(e);
573
+ }
574
+ function qe(t5, e = "unexpected empty list") {
575
+ return Tt(t5, e), t5;
576
+ }
577
+ function Nt(t5) {
578
+ return t5.length === 0 ? void 0 : t5[t5.length - 1];
579
+ }
580
+ function Nn(t5) {
581
+ return t5.length === 0 ? void 0 : t5[0];
582
+ }
583
+ var ir = function(t5) {
584
+ return t5[t5.MAX_SMI = 1073741823] = "MAX_SMI", t5[t5.MIN_SMI = -1073741824] = "MIN_SMI", t5[t5.SIGN_BIT = -536870913] = "SIGN_BIT", t5[t5.MAX_INT = 536870911] = "MAX_INT", t5[t5.MIN_INT = -536870912] = "MIN_INT", t5[t5.FALSE_HANDLE = 0] = "FALSE_HANDLE", t5[t5.TRUE_HANDLE = 1] = "TRUE_HANDLE", t5[t5.NULL_HANDLE = 2] = "NULL_HANDLE", t5[t5.UNDEFINED_HANDLE = 3] = "UNDEFINED_HANDLE", t5[t5.ENCODED_FALSE_HANDLE = 0] = "ENCODED_FALSE_HANDLE", t5[t5.ENCODED_TRUE_HANDLE = 1] = "ENCODED_TRUE_HANDLE", t5[t5.ENCODED_NULL_HANDLE = 2] = "ENCODED_NULL_HANDLE", t5[t5.ENCODED_UNDEFINED_HANDLE = 3] = "ENCODED_UNDEFINED_HANDLE", t5;
585
+ }({});
586
+ function Ks(t5) {
587
+ return t5 & ir.SIGN_BIT;
588
+ }
589
+ function Ws(t5) {
590
+ return t5 | ~ir.SIGN_BIT;
591
+ }
592
+ function $s(t5) {
593
+ return ~t5;
594
+ }
595
+ function js(t5) {
596
+ return ~t5;
597
+ }
598
+ function Qs(t5) {
599
+ return t5 |= 0, t5 < 0 ? Ks(t5) : $s(t5);
600
+ }
601
+ function Xs(t5) {
602
+ return t5 |= 0, t5 > ir.SIGN_BIT ? js(t5) : Ws(t5);
603
+ }
604
+ [1, -1].forEach((t5) => Xs(Qs(t5)));
605
+ var ar = Object.assign;
606
+ var Js = console;
607
+ var wn = console;
608
+ function vn(t5, e = "unexpected unreachable branch") {
609
+ throw wn.log("unreachable", t5), wn.log(`${e} :: ${JSON.stringify(t5)} (${t5})`), new Error("code reached unreachable");
610
+ }
611
+ var Zs = function() {
612
+ var t5 = function(ie, m, E, b) {
613
+ for (E = E || {}, b = ie.length; b--; E[ie[b]] = m) ;
614
+ return E;
615
+ }, e = [2, 44], r = [1, 20], n = [5, 14, 15, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], s = [1, 35], i = [1, 38], a = [1, 30], o = [1, 31], c = [1, 32], p = [1, 33], h = [1, 34], d = [1, 37], N = [14, 15, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], g = [14, 15, 19, 29, 34, 44, 47, 48, 52, 56, 60], T = [15, 18], x = [14, 15, 19, 29, 34, 47, 48, 52, 56, 60], C = [33, 64, 71, 79, 80, 81, 82, 83, 84], v = [23, 33, 55, 64, 67, 71, 74, 79, 80, 81, 82, 83, 84], M = [1, 51], H = [23, 33, 55, 64, 67, 71, 74, 79, 80, 81, 82, 83, 84, 86], X = [2, 43], ve = [55, 64, 71, 79, 80, 81, 82, 83, 84], Ae = [1, 58], J = [1, 59], re = [1, 66], V = [33, 64, 71, 74, 79, 80, 81, 82, 83, 84], Pe = [23, 64, 71, 79, 80, 81, 82, 83, 84], U = [1, 76], ne = [64, 67, 71, 79, 80, 81, 82, 83, 84], _ = [33, 74], se = [23, 33, 55, 67, 71, 74], ut = [1, 106], It = [1, 118], qr = [71, 76], Rt = { trace: function() {
616
+ }, yy: {}, symbols_: { error: 2, root: 3, program: 4, EOF: 5, program_repetition0: 6, statement: 7, mustache: 8, block: 9, rawBlock: 10, partial: 11, partialBlock: 12, content: 13, COMMENT: 14, CONTENT: 15, openRawBlock: 16, rawBlock_repetition0: 17, END_RAW_BLOCK: 18, OPEN_RAW_BLOCK: 19, helperName: 20, openRawBlock_repetition0: 21, openRawBlock_option0: 22, CLOSE_RAW_BLOCK: 23, openBlock: 24, block_option0: 25, closeBlock: 26, openInverse: 27, block_option1: 28, OPEN_BLOCK: 29, openBlock_repetition0: 30, openBlock_option0: 31, openBlock_option1: 32, CLOSE: 33, OPEN_INVERSE: 34, openInverse_repetition0: 35, openInverse_option0: 36, openInverse_option1: 37, openInverseChain: 38, OPEN_INVERSE_CHAIN: 39, openInverseChain_repetition0: 40, openInverseChain_option0: 41, openInverseChain_option1: 42, inverseAndProgram: 43, INVERSE: 44, inverseChain: 45, inverseChain_option0: 46, OPEN_ENDBLOCK: 47, OPEN: 48, expr: 49, mustache_repetition0: 50, mustache_option0: 51, OPEN_UNESCAPED: 52, mustache_repetition1: 53, mustache_option1: 54, CLOSE_UNESCAPED: 55, OPEN_PARTIAL: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, sexpr: 63, OPEN_SEXPR: 64, sexpr_repetition0: 65, sexpr_option0: 66, CLOSE_SEXPR: 67, hash: 68, hash_repetition_plus0: 69, hashSegment: 70, ID: 71, EQUALS: 72, blockParams: 73, OPEN_BLOCK_PARAMS: 74, blockParams_repetition_plus0: 75, CLOSE_BLOCK_PARAMS: 76, path: 77, dataName: 78, STRING: 79, NUMBER: 80, BOOLEAN: 81, UNDEFINED: 82, NULL: 83, DATA: 84, pathSegments: 85, SEP: 86, $accept: 0, $end: 1 }, terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 52: "OPEN_UNESCAPED", 55: "CLOSE_UNESCAPED", 56: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 64: "OPEN_SEXPR", 67: "CLOSE_SEXPR", 71: "ID", 72: "EQUALS", 74: "OPEN_BLOCK_PARAMS", 76: "CLOSE_BLOCK_PARAMS", 79: "STRING", 80: "NUMBER", 81: "BOOLEAN", 82: "UNDEFINED", 83: "NULL", 84: "DATA", 86: "SEP" }, productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [49, 1], [49, 1], [63, 5], [68, 1], [70, 3], [73, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [78, 2], [77, 1], [85, 3], [85, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [50, 0], [50, 2], [51, 0], [51, 1], [53, 0], [53, 2], [54, 0], [54, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [65, 0], [65, 2], [66, 0], [66, 1], [69, 1], [69, 2], [75, 1], [75, 2]], performAction: function(m, E, b, y, P, l, xe) {
617
+ var u = l.length - 1;
618
+ switch (P) {
619
+ case 1:
620
+ return l[u - 1];
621
+ case 2:
622
+ this.$ = y.prepareProgram(l[u]);
623
+ break;
624
+ case 3:
625
+ case 4:
626
+ case 5:
627
+ case 6:
628
+ case 7:
629
+ case 8:
630
+ case 20:
631
+ case 27:
632
+ case 28:
633
+ case 33:
634
+ case 34:
635
+ this.$ = l[u];
636
+ break;
637
+ case 9:
638
+ this.$ = { type: "CommentStatement", value: y.stripComment(l[u]), strip: y.stripFlags(l[u], l[u]), loc: y.locInfo(this._$) };
639
+ break;
640
+ case 10:
641
+ this.$ = { type: "ContentStatement", original: l[u], value: l[u], loc: y.locInfo(this._$) };
642
+ break;
643
+ case 11:
644
+ this.$ = y.prepareRawBlock(l[u - 2], l[u - 1], l[u], this._$);
645
+ break;
646
+ case 12:
647
+ this.$ = { path: l[u - 3], params: l[u - 2], hash: l[u - 1] };
648
+ break;
649
+ case 13:
650
+ this.$ = y.prepareBlock(l[u - 3], l[u - 2], l[u - 1], l[u], false, this._$);
651
+ break;
652
+ case 14:
653
+ this.$ = y.prepareBlock(l[u - 3], l[u - 2], l[u - 1], l[u], true, this._$);
654
+ break;
655
+ case 15:
656
+ this.$ = { open: l[u - 5], path: l[u - 4], params: l[u - 3], hash: l[u - 2], blockParams: l[u - 1], strip: y.stripFlags(l[u - 5], l[u]) };
657
+ break;
658
+ case 16:
659
+ case 17:
660
+ this.$ = { path: l[u - 4], params: l[u - 3], hash: l[u - 2], blockParams: l[u - 1], strip: y.stripFlags(l[u - 5], l[u]) };
661
+ break;
662
+ case 18:
663
+ this.$ = { strip: y.stripFlags(l[u - 1], l[u - 1]), program: l[u] };
664
+ break;
665
+ case 19:
666
+ var ae = y.prepareBlock(l[u - 2], l[u - 1], l[u], l[u], false, this._$), Me = y.prepareProgram([ae], l[u - 1].loc);
667
+ Me.chained = true, this.$ = { strip: l[u - 2].strip, program: Me, chain: true };
668
+ break;
669
+ case 21:
670
+ this.$ = { path: l[u - 1], strip: y.stripFlags(l[u - 2], l[u]) };
671
+ break;
672
+ case 22:
673
+ case 23:
674
+ this.$ = y.prepareMustache(l[u - 3], l[u - 2], l[u - 1], l[u - 4], y.stripFlags(l[u - 4], l[u]), this._$);
675
+ break;
676
+ case 24:
677
+ this.$ = { type: "PartialStatement", name: l[u - 3], params: l[u - 2], hash: l[u - 1], indent: "", strip: y.stripFlags(l[u - 4], l[u]), loc: y.locInfo(this._$) };
678
+ break;
679
+ case 25:
680
+ this.$ = y.preparePartialBlock(l[u - 2], l[u - 1], l[u], this._$);
681
+ break;
682
+ case 26:
683
+ this.$ = { path: l[u - 3], params: l[u - 2], hash: l[u - 1], strip: y.stripFlags(l[u - 4], l[u]) };
684
+ break;
685
+ case 29:
686
+ this.$ = { type: "SubExpression", path: l[u - 3], params: l[u - 2], hash: l[u - 1], loc: y.locInfo(this._$) };
687
+ break;
688
+ case 30:
689
+ this.$ = { type: "Hash", pairs: l[u], loc: y.locInfo(this._$) };
690
+ break;
691
+ case 31:
692
+ this.$ = { type: "HashPair", key: y.id(l[u - 2]), value: l[u], loc: y.locInfo(this._$) };
693
+ break;
694
+ case 32:
695
+ this.$ = y.id(l[u - 1]);
696
+ break;
697
+ case 35:
698
+ this.$ = { type: "StringLiteral", value: l[u], original: l[u], loc: y.locInfo(this._$) };
699
+ break;
700
+ case 36:
701
+ this.$ = { type: "NumberLiteral", value: Number(l[u]), original: Number(l[u]), loc: y.locInfo(this._$) };
702
+ break;
703
+ case 37:
704
+ this.$ = { type: "BooleanLiteral", value: l[u] === "true", original: l[u] === "true", loc: y.locInfo(this._$) };
705
+ break;
706
+ case 38:
707
+ this.$ = { type: "UndefinedLiteral", original: void 0, value: void 0, loc: y.locInfo(this._$) };
708
+ break;
709
+ case 39:
710
+ this.$ = { type: "NullLiteral", original: null, value: null, loc: y.locInfo(this._$) };
711
+ break;
712
+ case 40:
713
+ this.$ = y.preparePath(true, l[u], this._$);
714
+ break;
715
+ case 41:
716
+ this.$ = y.preparePath(false, l[u], this._$);
717
+ break;
718
+ case 42:
719
+ l[u - 2].push({ part: y.id(l[u]), original: l[u], separator: l[u - 1] }), this.$ = l[u - 2];
720
+ break;
721
+ case 43:
722
+ this.$ = [{ part: y.id(l[u]), original: l[u] }];
723
+ break;
724
+ case 44:
725
+ case 46:
726
+ case 48:
727
+ case 56:
728
+ case 62:
729
+ case 68:
730
+ case 76:
731
+ case 80:
732
+ case 84:
733
+ case 88:
734
+ case 92:
735
+ this.$ = [];
736
+ break;
737
+ case 45:
738
+ case 47:
739
+ case 49:
740
+ case 57:
741
+ case 63:
742
+ case 69:
743
+ case 77:
744
+ case 81:
745
+ case 85:
746
+ case 89:
747
+ case 93:
748
+ case 97:
749
+ case 99:
750
+ l[u - 1].push(l[u]);
751
+ break;
752
+ case 96:
753
+ case 98:
754
+ this.$ = [l[u]];
755
+ break;
756
+ }
757
+ }, table: [t5([5, 14, 15, 19, 29, 34, 48, 52, 56, 60], e, { 3: 1, 4: 2, 6: 3 }), { 1: [3] }, { 5: [1, 4] }, t5([5, 39, 44, 47], [2, 2], { 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 24: 15, 27: 16, 16: 17, 59: 19, 14: [1, 12], 15: r, 19: [1, 23], 29: [1, 21], 34: [1, 22], 48: [1, 13], 52: [1, 14], 56: [1, 18], 60: [1, 24] }), { 1: [2, 1] }, t5(n, [2, 45]), t5(n, [2, 3]), t5(n, [2, 4]), t5(n, [2, 5]), t5(n, [2, 6]), t5(n, [2, 7]), t5(n, [2, 8]), t5(n, [2, 9]), { 20: 26, 49: 25, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 26, 49: 39, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(N, e, { 6: 3, 4: 40 }), t5(g, e, { 6: 3, 4: 41 }), t5(T, [2, 46], { 17: 42 }), { 20: 26, 49: 43, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(x, e, { 6: 3, 4: 44 }), t5([5, 14, 15, 18, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], [2, 10]), { 20: 45, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 46, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 47, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 26, 49: 48, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(C, [2, 76], { 50: 49 }), t5(v, [2, 27]), t5(v, [2, 28]), t5(v, [2, 33]), t5(v, [2, 34]), t5(v, [2, 35]), t5(v, [2, 36]), t5(v, [2, 37]), t5(v, [2, 38]), t5(v, [2, 39]), { 20: 26, 49: 50, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(v, [2, 41], { 86: M }), { 71: i, 85: 52 }, t5(H, X), t5(ve, [2, 80], { 53: 53 }), { 25: 54, 38: 56, 39: Ae, 43: 57, 44: J, 45: 55, 47: [2, 52] }, { 28: 60, 43: 61, 44: J, 47: [2, 54] }, { 13: 63, 15: r, 18: [1, 62] }, t5(C, [2, 84], { 57: 64 }), { 26: 65, 47: re }, t5(V, [2, 56], { 30: 67 }), t5(V, [2, 62], { 35: 68 }), t5(Pe, [2, 48], { 21: 69 }), t5(C, [2, 88], { 61: 70 }), { 20: 26, 33: [2, 78], 49: 72, 51: 71, 63: 27, 64: s, 68: 73, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(ne, [2, 92], { 65: 77 }), { 71: [1, 78] }, t5(v, [2, 40], { 86: M }), { 20: 26, 49: 80, 54: 79, 55: [2, 82], 63: 27, 64: s, 68: 81, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 26: 82, 47: re }, { 47: [2, 53] }, t5(N, e, { 6: 3, 4: 83 }), { 47: [2, 20] }, { 20: 84, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(x, e, { 6: 3, 4: 85 }), { 26: 86, 47: re }, { 47: [2, 55] }, t5(n, [2, 11]), t5(T, [2, 47]), { 20: 26, 33: [2, 86], 49: 88, 58: 87, 63: 27, 64: s, 68: 89, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(n, [2, 25]), { 20: 90, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(_, [2, 58], { 20: 26, 63: 27, 77: 28, 78: 29, 85: 36, 69: 74, 70: 75, 31: 91, 49: 92, 68: 93, 64: s, 71: U, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d }), t5(_, [2, 64], { 20: 26, 63: 27, 77: 28, 78: 29, 85: 36, 69: 74, 70: 75, 36: 94, 49: 95, 68: 96, 64: s, 71: U, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d }), { 20: 26, 22: 97, 23: [2, 50], 49: 98, 63: 27, 64: s, 68: 99, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 26, 33: [2, 90], 49: 101, 62: 100, 63: 27, 64: s, 68: 102, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 33: [1, 103] }, t5(C, [2, 77]), { 33: [2, 79] }, t5([23, 33, 55, 67, 74], [2, 30], { 70: 104, 71: [1, 105] }), t5(se, [2, 96]), t5(H, X, { 72: ut }), { 20: 26, 49: 108, 63: 27, 64: s, 66: 107, 67: [2, 94], 68: 109, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(H, [2, 42]), { 55: [1, 110] }, t5(ve, [2, 81]), { 55: [2, 83] }, t5(n, [2, 13]), { 38: 56, 39: Ae, 43: 57, 44: J, 45: 112, 46: 111, 47: [2, 74] }, t5(V, [2, 68], { 40: 113 }), { 47: [2, 18] }, t5(n, [2, 14]), { 33: [1, 114] }, t5(C, [2, 85]), { 33: [2, 87] }, { 33: [1, 115] }, { 32: 116, 33: [2, 60], 73: 117, 74: It }, t5(V, [2, 57]), t5(_, [2, 59]), { 33: [2, 66], 37: 119, 73: 120, 74: It }, t5(V, [2, 63]), t5(_, [2, 65]), { 23: [1, 121] }, t5(Pe, [2, 49]), { 23: [2, 51] }, { 33: [1, 122] }, t5(C, [2, 89]), { 33: [2, 91] }, t5(n, [2, 22]), t5(se, [2, 97]), { 72: ut }, { 20: 26, 49: 123, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 67: [1, 124] }, t5(ne, [2, 93]), { 67: [2, 95] }, t5(n, [2, 23]), { 47: [2, 19] }, { 47: [2, 75] }, t5(_, [2, 70], { 20: 26, 63: 27, 77: 28, 78: 29, 85: 36, 69: 74, 70: 75, 41: 125, 49: 126, 68: 127, 64: s, 71: U, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d }), t5(n, [2, 24]), t5(n, [2, 21]), { 33: [1, 128] }, { 33: [2, 61] }, { 71: [1, 130], 75: 129 }, { 33: [1, 131] }, { 33: [2, 67] }, t5(T, [2, 12]), t5(x, [2, 26]), t5(se, [2, 31]), t5(v, [2, 29]), { 33: [2, 72], 42: 132, 73: 133, 74: It }, t5(V, [2, 69]), t5(_, [2, 71]), t5(N, [2, 15]), { 71: [1, 135], 76: [1, 134] }, t5(qr, [2, 98]), t5(g, [2, 16]), { 33: [1, 136] }, { 33: [2, 73] }, { 33: [2, 32] }, t5(qr, [2, 99]), t5(N, [2, 17])], defaultActions: { 4: [2, 1], 55: [2, 53], 57: [2, 20], 61: [2, 55], 73: [2, 79], 81: [2, 83], 85: [2, 18], 89: [2, 87], 99: [2, 51], 102: [2, 91], 109: [2, 95], 111: [2, 19], 112: [2, 75], 117: [2, 61], 120: [2, 67], 133: [2, 73], 134: [2, 32] }, parseError: function(m, E) {
758
+ if (E.recoverable) this.trace(m);
759
+ else {
760
+ var b = new Error(m);
761
+ throw b.hash = E, b;
762
+ }
763
+ }, parse: function(m) {
764
+ var E = this, b = [0], P = [null], l = [], xe = this.table, u = "", ae = 0, Me = 0, Hr = 0, Jn = 2, Vr = 1, Zn = l.slice.call(arguments, 1), L = Object.create(this.lexer), me = { yy: {} };
765
+ for (var Ht in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Ht) && (me.yy[Ht] = this.yy[Ht]);
766
+ L.setInput(m, me.yy), me.yy.lexer = L, me.yy.parser = this, typeof L.yylloc > "u" && (L.yylloc = {});
767
+ var Vt = L.yylloc;
768
+ l.push(Vt);
769
+ var es = L.options && L.options.ranges;
770
+ typeof me.yy.parseError == "function" ? this.parseError = me.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
771
+ for (var ts = function() {
772
+ var W;
773
+ return W = L.lex() || Vr, typeof W != "number" && (W = E.symbols_[W] || W), W;
774
+ }, I, Ut, ge, z, da, Ft, Ce = {}, ht, Z, Ur, pt; ; ) {
775
+ if (ge = b[b.length - 1], this.defaultActions[ge] ? z = this.defaultActions[ge] : ((I === null || typeof I > "u") && (I = ts()), z = xe[ge] && xe[ge][I]), typeof z > "u" || !z.length || !z[0]) {
776
+ var Mt = "";
777
+ pt = [];
778
+ for (ht in xe[ge]) this.terminals_[ht] && ht > Jn && pt.push("'" + this.terminals_[ht] + "'");
779
+ L.showPosition ? Mt = "Parse error on line " + (ae + 1) + `:
780
+ ` + L.showPosition() + `
781
+ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Mt = "Parse error on line " + (ae + 1) + ": Unexpected " + (I == Vr ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Mt, { text: L.match, token: this.terminals_[I] || I, line: L.yylineno, loc: Vt, expected: pt });
782
+ }
783
+ if (z[0] instanceof Array && z.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + ge + ", token: " + I);
784
+ switch (z[0]) {
785
+ case 1:
786
+ b.push(I), P.push(L.yytext), l.push(L.yylloc), b.push(z[1]), I = null, Ut ? (I = Ut, Ut = null) : (Me = L.yyleng, u = L.yytext, ae = L.yylineno, Vt = L.yylloc, Hr > 0);
787
+ break;
788
+ case 2:
789
+ if (Z = this.productions_[z[1]][1], Ce.$ = P[P.length - Z], Ce._$ = { first_line: l[l.length - (Z || 1)].first_line, last_line: l[l.length - 1].last_line, first_column: l[l.length - (Z || 1)].first_column, last_column: l[l.length - 1].last_column }, es && (Ce._$.range = [l[l.length - (Z || 1)].range[0], l[l.length - 1].range[1]]), Ft = this.performAction.apply(Ce, [u, Me, ae, me.yy, z[1], P, l].concat(Zn)), typeof Ft < "u") return Ft;
790
+ Z && (b = b.slice(0, -1 * Z * 2), P = P.slice(0, -1 * Z), l = l.slice(0, -1 * Z)), b.push(this.productions_[z[1]][0]), P.push(Ce.$), l.push(Ce._$), Ur = xe[b[b.length - 2]][b[b.length - 1]], b.push(Ur);
791
+ break;
792
+ case 3:
793
+ return true;
794
+ }
795
+ }
796
+ return true;
797
+ } }, Xn = /* @__PURE__ */ function() {
798
+ var ie = { EOF: 1, parseError: function(E, b) {
799
+ if (this.yy.parser) this.yy.parser.parseError(E, b);
800
+ else throw new Error(E);
801
+ }, setInput: function(m, E) {
802
+ return this.yy = E || this.yy || {}, this._input = m, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
803
+ }, input: function() {
804
+ var m = this._input[0];
805
+ this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m;
806
+ var E = m.match(/(?:\r\n?|\n).*/g);
807
+ return E ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), m;
808
+ }, unput: function(m) {
809
+ var E = m.length, b = m.split(/(?:\r\n?|\n)/g);
810
+ this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - E), this.offset -= E;
811
+ var y = this.match.split(/(?:\r\n?|\n)/g);
812
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
813
+ var P = this.yylloc.range;
814
+ return this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: b ? (b.length === y.length ? this.yylloc.first_column : 0) + y[y.length - b.length].length - b[0].length : this.yylloc.first_column - E }, this.options.ranges && (this.yylloc.range = [P[0], P[0] + this.yyleng - E]), this.yyleng = this.yytext.length, this;
815
+ }, more: function() {
816
+ return this._more = true, this;
817
+ }, reject: function() {
818
+ if (this.options.backtrack_lexer) this._backtrack = true;
819
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
820
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
821
+ return this;
822
+ }, less: function(m) {
823
+ this.unput(this.match.slice(m));
824
+ }, pastInput: function() {
825
+ var m = this.matched.substr(0, this.matched.length - this.match.length);
826
+ return (m.length > 20 ? "..." : "") + m.substr(-20).replace(/\n/g, "");
827
+ }, upcomingInput: function() {
828
+ var m = this.match;
829
+ return m.length < 20 && (m += this._input.substr(0, 20 - m.length)), (m.substr(0, 20) + (m.length > 20 ? "..." : "")).replace(/\n/g, "");
830
+ }, showPosition: function() {
831
+ var m = this.pastInput(), E = new Array(m.length + 1).join("-");
832
+ return m + this.upcomingInput() + `
833
+ ` + E + "^";
834
+ }, test_match: function(m, E) {
835
+ var b, y, P;
836
+ if (this.options.backtrack_lexer && (P = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, last_line: this.last_line, first_column: this.yylloc.first_column, last_column: this.yylloc.last_column }, yytext: this.yytext, match: this.match, matches: this.matches, matched: this.matched, yyleng: this.yyleng, offset: this.offset, _more: this._more, _input: this._input, yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done }, this.options.ranges && (P.yylloc.range = this.yylloc.range.slice(0))), y = m[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + m[0].length }, this.yytext += m[0], this.match += m[0], this.matches = m, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(m[0].length), this.matched += m[0], b = this.performAction.call(this, this.yy, this, E, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), b) return b;
837
+ if (this._backtrack) {
838
+ for (var l in P) this[l] = P[l];
839
+ return false;
840
+ }
841
+ return false;
842
+ }, next: function() {
843
+ if (this.done) return this.EOF;
844
+ this._input || (this.done = true);
845
+ var m, E, b, y;
846
+ this._more || (this.yytext = "", this.match = "");
847
+ for (var P = this._currentRules(), l = 0; l < P.length; l++) if (b = this._input.match(this.rules[P[l]]), b && (!E || b[0].length > E[0].length)) {
848
+ if (E = b, y = l, this.options.backtrack_lexer) {
849
+ if (m = this.test_match(b, P[l]), m !== false) return m;
850
+ if (this._backtrack) {
851
+ E = false;
852
+ continue;
853
+ } else return false;
854
+ } else if (!this.options.flex) break;
855
+ }
856
+ return E ? (m = this.test_match(E, P[y]), m !== false ? m : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
857
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
858
+ }, lex: function() {
859
+ var E = this.next();
860
+ return E || this.lex();
861
+ }, begin: function(E) {
862
+ this.conditionStack.push(E);
863
+ }, popState: function() {
864
+ var E = this.conditionStack.length - 1;
865
+ return E > 0 ? this.conditionStack.pop() : this.conditionStack[0];
866
+ }, _currentRules: function() {
867
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
868
+ }, topState: function(E) {
869
+ return E = this.conditionStack.length - 1 - Math.abs(E || 0), E >= 0 ? this.conditionStack[E] : "INITIAL";
870
+ }, pushState: function(E) {
871
+ this.begin(E);
872
+ }, stateStackSize: function() {
873
+ return this.conditionStack.length;
874
+ }, options: {}, performAction: function(E, b, y, P) {
875
+ function l(u, ae) {
876
+ return b.yytext = b.yytext.substring(u, b.yyleng - ae + u);
877
+ }
878
+ switch (y) {
879
+ case 0:
880
+ if (b.yytext.slice(-2) === "\\\\" ? (l(0, 1), this.begin("mu")) : b.yytext.slice(-1) === "\\" ? (l(0, 1), this.begin("emu")) : this.begin("mu"), b.yytext) return 15;
881
+ break;
882
+ case 1:
883
+ return 15;
884
+ case 2:
885
+ return this.popState(), 15;
886
+ case 3:
887
+ return this.begin("raw"), 15;
888
+ case 4:
889
+ return this.popState(), this.conditionStack[this.conditionStack.length - 1] === "raw" ? 15 : (l(5, 9), 18);
890
+ case 5:
891
+ return 15;
892
+ case 6:
893
+ return this.popState(), 14;
894
+ case 7:
895
+ return 64;
896
+ case 8:
897
+ return 67;
898
+ case 9:
899
+ return 19;
900
+ case 10:
901
+ return this.popState(), this.begin("raw"), 23;
902
+ case 11:
903
+ return 56;
904
+ case 12:
905
+ return 60;
906
+ case 13:
907
+ return 29;
908
+ case 14:
909
+ return 47;
910
+ case 15:
911
+ return this.popState(), 44;
912
+ case 16:
913
+ return this.popState(), 44;
914
+ case 17:
915
+ return 34;
916
+ case 18:
917
+ return 39;
918
+ case 19:
919
+ return 52;
920
+ case 20:
921
+ return 48;
922
+ case 21:
923
+ this.unput(b.yytext), this.popState(), this.begin("com");
924
+ break;
925
+ case 22:
926
+ return this.popState(), 14;
927
+ case 23:
928
+ return 48;
929
+ case 24:
930
+ return 72;
931
+ case 25:
932
+ return 71;
933
+ case 26:
934
+ return 71;
935
+ case 27:
936
+ return 86;
937
+ case 28:
938
+ break;
939
+ case 29:
940
+ return this.popState(), 55;
941
+ case 30:
942
+ return this.popState(), 33;
943
+ case 31:
944
+ return b.yytext = l(1, 2).replace(/\\"/g, '"'), 79;
945
+ case 32:
946
+ return b.yytext = l(1, 2).replace(/\\'/g, "'"), 79;
947
+ case 33:
948
+ return 84;
949
+ case 34:
950
+ return 81;
951
+ case 35:
952
+ return 81;
953
+ case 36:
954
+ return 82;
955
+ case 37:
956
+ return 83;
957
+ case 38:
958
+ return 80;
959
+ case 39:
960
+ return 74;
961
+ case 40:
962
+ return 76;
963
+ case 41:
964
+ return 71;
965
+ case 42:
966
+ return b.yytext = b.yytext.replace(/\\([\\\]])/g, "$1"), 71;
967
+ case 43:
968
+ return "INVALID";
969
+ case 44:
970
+ return 5;
971
+ }
972
+ }, rules: [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], conditions: { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: false }, emu: { rules: [2], inclusive: false }, com: { rules: [6], inclusive: false }, raw: { rules: [3, 4, 5], inclusive: false }, INITIAL: { rules: [0, 1, 44], inclusive: true } } };
973
+ return ie;
974
+ }();
975
+ Rt.lexer = Xn;
976
+ function qt() {
977
+ this.yy = {};
978
+ }
979
+ return qt.prototype = Rt, Rt.Parser = qt, new qt();
980
+ }();
981
+ var vt = Zs;
982
+ var or = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
983
+ function lr(t5, e) {
984
+ var r = e && e.loc, n, s, i, a;
985
+ r && (n = r.start.line, s = r.end.line, i = r.start.column, a = r.end.column, t5 += " - " + n + ":" + i);
986
+ for (var o = Error.prototype.constructor.call(this, t5), c = 0; c < or.length; c++) this[or[c]] = o[or[c]];
987
+ Error.captureStackTrace && Error.captureStackTrace(this, lr);
988
+ try {
989
+ r && (this.lineNumber = n, this.endLineNumber = s, Object.defineProperty ? (Object.defineProperty(this, "column", { value: i, enumerable: true }), Object.defineProperty(this, "endColumn", { value: a, enumerable: true })) : (this.column = i, this.endColumn = a));
990
+ } catch {
991
+ }
992
+ }
993
+ lr.prototype = new Error();
994
+ var le = lr;
995
+ function At() {
996
+ this.parents = [];
997
+ }
998
+ At.prototype = { constructor: At, mutating: false, acceptKey: function(t5, e) {
999
+ var r = this.accept(t5[e]);
1000
+ if (this.mutating) {
1001
+ if (r && !At.prototype[r.type]) throw new le('Unexpected node type "' + r.type + '" found when accepting ' + e + " on " + t5.type);
1002
+ t5[e] = r;
1003
+ }
1004
+ }, acceptRequired: function(t5, e) {
1005
+ if (this.acceptKey(t5, e), !t5[e]) throw new le(t5.type + " requires " + e);
1006
+ }, acceptArray: function(t5) {
1007
+ for (var e = 0, r = t5.length; e < r; e++) this.acceptKey(t5, e), t5[e] || (t5.splice(e, 1), e--, r--);
1008
+ }, accept: function(t5) {
1009
+ if (t5) {
1010
+ if (!this[t5.type]) throw new le("Unknown type: " + t5.type, t5);
1011
+ this.current && this.parents.unshift(this.current), this.current = t5;
1012
+ var e = this[t5.type](t5);
1013
+ if (this.current = this.parents.shift(), !this.mutating || e) return e;
1014
+ if (e !== false) return t5;
1015
+ }
1016
+ }, Program: function(t5) {
1017
+ this.acceptArray(t5.body);
1018
+ }, MustacheStatement: Pt, Decorator: Pt, BlockStatement: An, DecoratorBlock: An, PartialStatement: Pn, PartialBlockStatement: function(t5) {
1019
+ Pn.call(this, t5), this.acceptKey(t5, "program");
1020
+ }, ContentStatement: function() {
1021
+ }, CommentStatement: function() {
1022
+ }, SubExpression: Pt, PathExpression: function() {
1023
+ }, StringLiteral: function() {
1024
+ }, NumberLiteral: function() {
1025
+ }, BooleanLiteral: function() {
1026
+ }, UndefinedLiteral: function() {
1027
+ }, NullLiteral: function() {
1028
+ }, Hash: function(t5) {
1029
+ this.acceptArray(t5.pairs);
1030
+ }, HashPair: function(t5) {
1031
+ this.acceptRequired(t5, "value");
1032
+ } };
1033
+ function Pt(t5) {
1034
+ this.acceptRequired(t5, "path"), this.acceptArray(t5.params), this.acceptKey(t5, "hash");
1035
+ }
1036
+ function An(t5) {
1037
+ Pt.call(this, t5), this.acceptKey(t5, "program"), this.acceptKey(t5, "inverse");
1038
+ }
1039
+ function Pn(t5) {
1040
+ this.acceptRequired(t5, "name"), this.acceptArray(t5.params), this.acceptKey(t5, "hash");
1041
+ }
1042
+ var xn = At;
1043
+ function j(t5) {
1044
+ t5 === void 0 && (t5 = {}), this.options = t5;
1045
+ }
1046
+ j.prototype = new xn();
1047
+ j.prototype.Program = function(t5) {
1048
+ var e = !this.options.ignoreStandalone, r = !this.isRootSeen;
1049
+ this.isRootSeen = true;
1050
+ for (var n = t5.body, s = 0, i = n.length; s < i; s++) {
1051
+ var a = n[s], o = this.accept(a);
1052
+ if (o) {
1053
+ var c = cr(n, s, r), p = ur(n, s, r), h = o.openStandalone && c, d = o.closeStandalone && p, N = o.inlineStandalone && c && p;
1054
+ o.close && ke(n, s, true), o.open && ce(n, s, true), e && N && (ke(n, s), ce(n, s) && a.type === "PartialStatement" && (a.indent = /([ \t]+$)/.exec(n[s - 1].original)[1])), e && h && (ke((a.program || a.inverse).body), ce(n, s)), e && d && (ke(n, s), ce((a.inverse || a.program).body));
1055
+ }
1056
+ }
1057
+ return t5;
1058
+ };
1059
+ j.prototype.BlockStatement = j.prototype.DecoratorBlock = j.prototype.PartialBlockStatement = function(t5) {
1060
+ this.accept(t5.program), this.accept(t5.inverse);
1061
+ var e = t5.program || t5.inverse, r = t5.program && t5.inverse, n = r, s = r;
1062
+ if (r && r.chained) for (n = r.body[0].program; s.chained; ) s = s.body[s.body.length - 1].program;
1063
+ var i = { open: t5.openStrip.open, close: t5.closeStrip.close, openStandalone: ur(e.body), closeStandalone: cr((n || e).body) };
1064
+ if (t5.openStrip.close && ke(e.body, null, true), r) {
1065
+ var a = t5.inverseStrip;
1066
+ a.open && ce(e.body, null, true), a.close && ke(n.body, null, true), t5.closeStrip.open && ce(s.body, null, true), !this.options.ignoreStandalone && cr(e.body) && ur(n.body) && (ce(e.body), ke(n.body));
1067
+ } else t5.closeStrip.open && ce(e.body, null, true);
1068
+ return i;
1069
+ };
1070
+ j.prototype.Decorator = j.prototype.MustacheStatement = function(t5) {
1071
+ return t5.strip;
1072
+ };
1073
+ j.prototype.PartialStatement = j.prototype.CommentStatement = function(t5) {
1074
+ var e = t5.strip || {};
1075
+ return { inlineStandalone: true, open: e.open, close: e.close };
1076
+ };
1077
+ function cr(t5, e, r) {
1078
+ e === void 0 && (e = t5.length);
1079
+ var n = t5[e - 1], s = t5[e - 2];
1080
+ if (!n) return r;
1081
+ if (n.type === "ContentStatement") return (s || !r ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(n.original);
1082
+ }
1083
+ function ur(t5, e, r) {
1084
+ e === void 0 && (e = -1);
1085
+ var n = t5[e + 1], s = t5[e + 2];
1086
+ if (!n) return r;
1087
+ if (n.type === "ContentStatement") return (s || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(n.original);
1088
+ }
1089
+ function ke(t5, e, r) {
1090
+ var n = t5[e == null ? 0 : e + 1];
1091
+ if (!(!n || n.type !== "ContentStatement" || !r && n.rightStripped)) {
1092
+ var s = n.value;
1093
+ n.value = n.value.replace(r ? /^\s+/ : /^[ \t]*\r?\n?/, ""), n.rightStripped = n.value !== s;
1094
+ }
1095
+ }
1096
+ function ce(t5, e, r) {
1097
+ var n = t5[e == null ? t5.length - 1 : e - 1];
1098
+ if (!(!n || n.type !== "ContentStatement" || !r && n.leftStripped)) {
1099
+ var s = n.value;
1100
+ return n.value = n.value.replace(r ? /\s+$/ : /[ \t]+$/, ""), n.leftStripped = n.value !== s, n.leftStripped;
1101
+ }
1102
+ }
1103
+ var Cn = j;
1104
+ var nt = {};
1105
+ zt(nt, { SourceLocation: () => pr, id: () => ei, prepareBlock: () => ai, prepareMustache: () => si, preparePartialBlock: () => li, preparePath: () => ni, prepareProgram: () => oi, prepareRawBlock: () => ii, stripComment: () => ri, stripFlags: () => ti });
1106
+ function hr(t5, e) {
1107
+ if (e = e.path ? e.path.original : e, t5.path.original !== e) {
1108
+ var r = { loc: t5.path.loc };
1109
+ throw new le(t5.path.original + " doesn't match " + e, r);
1110
+ }
1111
+ }
1112
+ function pr(t5, e) {
1113
+ this.source = t5, this.start = { line: e.first_line, column: e.first_column }, this.end = { line: e.last_line, column: e.last_column };
1114
+ }
1115
+ function ei(t5) {
1116
+ return /^\[.*\]$/.test(t5) ? t5.substring(1, t5.length - 1) : t5;
1117
+ }
1118
+ function ti(t5, e) {
1119
+ return { open: t5.charAt(2) === "~", close: e.charAt(e.length - 3) === "~" };
1120
+ }
1121
+ function ri(t5) {
1122
+ return t5.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
1123
+ }
1124
+ function ni(t5, e, r) {
1125
+ r = this.locInfo(r);
1126
+ for (var n = t5 ? "@" : "", s = [], i = 0, a = 0, o = e.length; a < o; a++) {
1127
+ var c = e[a].part, p = e[a].original !== c;
1128
+ if (n += (e[a].separator || "") + c, !p && (c === ".." || c === "." || c === "this")) {
1129
+ if (s.length > 0) throw new le("Invalid path: " + n, { loc: r });
1130
+ c === ".." && i++;
1131
+ } else s.push(c);
1132
+ }
1133
+ return { type: "PathExpression", data: t5, depth: i, parts: s, original: n, loc: r };
1134
+ }
1135
+ function si(t5, e, r, n, s, i) {
1136
+ var a = n.charAt(3) || n.charAt(2), o = a !== "{" && a !== "&", c = /\*/.test(n);
1137
+ return { type: c ? "Decorator" : "MustacheStatement", path: t5, params: e, hash: r, escaped: o, strip: s, loc: this.locInfo(i) };
1138
+ }
1139
+ function ii(t5, e, r, n) {
1140
+ hr(t5, r), n = this.locInfo(n);
1141
+ var s = { type: "Program", body: e, strip: {}, loc: n };
1142
+ return { type: "BlockStatement", path: t5.path, params: t5.params, hash: t5.hash, program: s, openStrip: {}, inverseStrip: {}, closeStrip: {}, loc: n };
1143
+ }
1144
+ function ai(t5, e, r, n, s, i) {
1145
+ n && n.path && hr(t5, n);
1146
+ var a = /\*/.test(t5.open);
1147
+ e.blockParams = t5.blockParams;
1148
+ var o, c;
1149
+ if (r) {
1150
+ if (a) throw new le("Unexpected inverse block on decorator", r);
1151
+ r.chain && (r.program.body[0].closeStrip = n.strip), c = r.strip, o = r.program;
1152
+ }
1153
+ return s && (s = o, o = e, e = s), { type: a ? "DecoratorBlock" : "BlockStatement", path: t5.path, params: t5.params, hash: t5.hash, program: e, inverse: o, openStrip: t5.strip, inverseStrip: c, closeStrip: n && n.strip, loc: this.locInfo(i) };
1154
+ }
1155
+ function oi(t5, e) {
1156
+ if (!e && t5.length) {
1157
+ var r = t5[0].loc, n = t5[t5.length - 1].loc;
1158
+ r && n && (e = { source: r.source, start: { line: r.start.line, column: r.start.column }, end: { line: n.end.line, column: n.end.column } });
1159
+ }
1160
+ return { type: "Program", body: t5, strip: {}, loc: e };
1161
+ }
1162
+ function li(t5, e, r, n) {
1163
+ return hr(t5, r), { type: "PartialBlockStatement", name: t5.path, params: t5.params, hash: t5.hash, program: e, openStrip: t5.strip, closeStrip: r && r.strip, loc: this.locInfo(n) };
1164
+ }
1165
+ var Ln = {};
1166
+ for (xt in nt) Object.prototype.hasOwnProperty.call(nt, xt) && (Ln[xt] = nt[xt]);
1167
+ var xt;
1168
+ function Ct(t5, e) {
1169
+ if (t5.type === "Program") return t5;
1170
+ vt.yy = Ln, vt.yy.locInfo = function(n) {
1171
+ return new pr(e && e.srcName, n);
1172
+ };
1173
+ var r = vt.parse(t5);
1174
+ return r;
1175
+ }
1176
+ function fr(t5, e) {
1177
+ var r = Ct(t5, e), n = new Cn(e);
1178
+ return n.accept(r);
1179
+ }
1180
+ var Dn = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: `
1181
+ `, nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
1182
+ var ci = /^#[xX]([A-Fa-f0-9]+)$/;
1183
+ var ui = /^#([0-9]+)$/;
1184
+ var hi = /^([A-Za-z0-9]+)$/;
1185
+ var dr = function() {
1186
+ function t5(e) {
1187
+ this.named = e;
1188
+ }
1189
+ return t5.prototype.parse = function(e) {
1190
+ if (e) {
1191
+ var r = e.match(ci);
1192
+ if (r) return String.fromCharCode(parseInt(r[1], 16));
1193
+ if (r = e.match(ui), r) return String.fromCharCode(parseInt(r[1], 10));
1194
+ if (r = e.match(hi), r) return this.named[r[1]];
1195
+ }
1196
+ }, t5;
1197
+ }();
1198
+ var pi = /[\t\n\f ]/;
1199
+ var fi = /[A-Za-z]/;
1200
+ var di = /\r\n?/g;
1201
+ function B(t5) {
1202
+ return pi.test(t5);
1203
+ }
1204
+ function _n(t5) {
1205
+ return fi.test(t5);
1206
+ }
1207
+ function mi(t5) {
1208
+ return t5.replace(di, `
1209
+ `);
1210
+ }
1211
+ var mr = function() {
1212
+ function t5(e, r, n) {
1213
+ n === void 0 && (n = "precompile"), this.delegate = e, this.entityParser = r, this.mode = n, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = { beforeData: function() {
1214
+ var s = this.peek();
1215
+ if (s === "<" && !this.isIgnoredEndTag()) this.transitionTo("tagOpen"), this.markTagStart(), this.consume();
1216
+ else {
1217
+ if (this.mode === "precompile" && s === `
1218
+ `) {
1219
+ var i = this.tagNameBuffer.toLowerCase();
1220
+ (i === "pre" || i === "textarea") && this.consume();
1221
+ }
1222
+ this.transitionTo("data"), this.delegate.beginData();
1223
+ }
1224
+ }, data: function() {
1225
+ var s = this.peek(), i = this.tagNameBuffer;
1226
+ s === "<" && !this.isIgnoredEndTag() ? (this.delegate.finishData(), this.transitionTo("tagOpen"), this.markTagStart(), this.consume()) : s === "&" && i !== "script" && i !== "style" ? (this.consume(), this.delegate.appendToData(this.consumeCharRef() || "&")) : (this.consume(), this.delegate.appendToData(s));
1227
+ }, tagOpen: function() {
1228
+ var s = this.consume();
1229
+ s === "!" ? this.transitionTo("markupDeclarationOpen") : s === "/" ? this.transitionTo("endTagOpen") : (s === "@" || s === ":" || _n(s)) && (this.transitionTo("tagName"), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
1230
+ }, markupDeclarationOpen: function() {
1231
+ var s = this.consume();
1232
+ if (s === "-" && this.peek() === "-") this.consume(), this.transitionTo("commentStart"), this.delegate.beginComment();
1233
+ else {
1234
+ var i = s.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase();
1235
+ i === "DOCTYPE" && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.transitionTo("doctype"), this.delegate.beginDoctype && this.delegate.beginDoctype());
1236
+ }
1237
+ }, doctype: function() {
1238
+ var s = this.consume();
1239
+ B(s) && this.transitionTo("beforeDoctypeName");
1240
+ }, beforeDoctypeName: function() {
1241
+ var s = this.consume();
1242
+ B(s) || (this.transitionTo("doctypeName"), this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(s.toLowerCase()));
1243
+ }, doctypeName: function() {
1244
+ var s = this.consume();
1245
+ B(s) ? this.transitionTo("afterDoctypeName") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(s.toLowerCase());
1246
+ }, afterDoctypeName: function() {
1247
+ var s = this.consume();
1248
+ if (!B(s)) if (s === ">") this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData");
1249
+ else {
1250
+ var i = s.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase(), a = i.toUpperCase() === "PUBLIC", o = i.toUpperCase() === "SYSTEM";
1251
+ (a || o) && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume()), a ? this.transitionTo("afterDoctypePublicKeyword") : o && this.transitionTo("afterDoctypeSystemKeyword");
1252
+ }
1253
+ }, afterDoctypePublicKeyword: function() {
1254
+ var s = this.peek();
1255
+ B(s) ? (this.transitionTo("beforeDoctypePublicIdentifier"), this.consume()) : s === '"' ? (this.transitionTo("doctypePublicIdentifierDoubleQuoted"), this.consume()) : s === "'" ? (this.transitionTo("doctypePublicIdentifierSingleQuoted"), this.consume()) : s === ">" && (this.consume(), this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
1256
+ }, doctypePublicIdentifierDoubleQuoted: function() {
1257
+ var s = this.consume();
1258
+ s === '"' ? this.transitionTo("afterDoctypePublicIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypePublicIdentifier && this.delegate.appendToDoctypePublicIdentifier(s);
1259
+ }, doctypePublicIdentifierSingleQuoted: function() {
1260
+ var s = this.consume();
1261
+ s === "'" ? this.transitionTo("afterDoctypePublicIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypePublicIdentifier && this.delegate.appendToDoctypePublicIdentifier(s);
1262
+ }, afterDoctypePublicIdentifier: function() {
1263
+ var s = this.consume();
1264
+ B(s) ? this.transitionTo("betweenDoctypePublicAndSystemIdentifiers") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : s === '"' ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : s === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted");
1265
+ }, betweenDoctypePublicAndSystemIdentifiers: function() {
1266
+ var s = this.consume();
1267
+ B(s) || (s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : s === '"' ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : s === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted"));
1268
+ }, doctypeSystemIdentifierDoubleQuoted: function() {
1269
+ var s = this.consume();
1270
+ s === '"' ? this.transitionTo("afterDoctypeSystemIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeSystemIdentifier && this.delegate.appendToDoctypeSystemIdentifier(s);
1271
+ }, doctypeSystemIdentifierSingleQuoted: function() {
1272
+ var s = this.consume();
1273
+ s === "'" ? this.transitionTo("afterDoctypeSystemIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeSystemIdentifier && this.delegate.appendToDoctypeSystemIdentifier(s);
1274
+ }, afterDoctypeSystemIdentifier: function() {
1275
+ var s = this.consume();
1276
+ B(s) || s === ">" && (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
1277
+ }, commentStart: function() {
1278
+ var s = this.consume();
1279
+ s === "-" ? this.transitionTo("commentStartDash") : s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData(s), this.transitionTo("comment"));
1280
+ }, commentStartDash: function() {
1281
+ var s = this.consume();
1282
+ s === "-" ? this.transitionTo("commentEnd") : s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData("-"), this.transitionTo("comment"));
1283
+ }, comment: function() {
1284
+ var s = this.consume();
1285
+ s === "-" ? this.transitionTo("commentEndDash") : this.delegate.appendToCommentData(s);
1286
+ }, commentEndDash: function() {
1287
+ var s = this.consume();
1288
+ s === "-" ? this.transitionTo("commentEnd") : (this.delegate.appendToCommentData("-" + s), this.transitionTo("comment"));
1289
+ }, commentEnd: function() {
1290
+ var s = this.consume();
1291
+ s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData("--" + s), this.transitionTo("comment"));
1292
+ }, tagName: function() {
1293
+ var s = this.consume();
1294
+ B(s) ? this.transitionTo("beforeAttributeName") : s === "/" ? this.transitionTo("selfClosingStartTag") : s === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData")) : this.appendToTagName(s);
1295
+ }, endTagName: function() {
1296
+ var s = this.consume();
1297
+ B(s) ? (this.transitionTo("beforeAttributeName"), this.tagNameBuffer = "") : s === "/" ? (this.transitionTo("selfClosingStartTag"), this.tagNameBuffer = "") : s === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData"), this.tagNameBuffer = "") : this.appendToTagName(s);
1298
+ }, beforeAttributeName: function() {
1299
+ var s = this.peek();
1300
+ if (B(s)) {
1301
+ this.consume();
1302
+ return;
1303
+ } else s === "/" ? (this.transitionTo("selfClosingStartTag"), this.consume()) : s === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : s === "=" ? (this.delegate.reportSyntaxError("attribute name cannot start with equals sign"), this.transitionTo("attributeName"), this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(s)) : (this.transitionTo("attributeName"), this.delegate.beginAttribute());
1304
+ }, attributeName: function() {
1305
+ var s = this.peek();
1306
+ B(s) ? (this.transitionTo("afterAttributeName"), this.consume()) : s === "/" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : s === "=" ? (this.transitionTo("beforeAttributeValue"), this.consume()) : s === ">" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : s === '"' || s === "'" || s === "<" ? (this.delegate.reportSyntaxError(s + " is not a valid character within attribute names"), this.consume(), this.delegate.appendToAttributeName(s)) : (this.consume(), this.delegate.appendToAttributeName(s));
1307
+ }, afterAttributeName: function() {
1308
+ var s = this.peek();
1309
+ if (B(s)) {
1310
+ this.consume();
1311
+ return;
1312
+ } else s === "/" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : s === "=" ? (this.consume(), this.transitionTo("beforeAttributeValue")) : s === ">" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.transitionTo("attributeName"), this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(s));
1313
+ }, beforeAttributeValue: function() {
1314
+ var s = this.peek();
1315
+ B(s) ? this.consume() : s === '"' ? (this.transitionTo("attributeValueDoubleQuoted"), this.delegate.beginAttributeValue(true), this.consume()) : s === "'" ? (this.transitionTo("attributeValueSingleQuoted"), this.delegate.beginAttributeValue(true), this.consume()) : s === ">" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.transitionTo("attributeValueUnquoted"), this.delegate.beginAttributeValue(false), this.consume(), this.delegate.appendToAttributeValue(s));
1316
+ }, attributeValueDoubleQuoted: function() {
1317
+ var s = this.consume();
1318
+ s === '"' ? (this.delegate.finishAttributeValue(), this.transitionTo("afterAttributeValueQuoted")) : s === "&" ? this.delegate.appendToAttributeValue(this.consumeCharRef() || "&") : this.delegate.appendToAttributeValue(s);
1319
+ }, attributeValueSingleQuoted: function() {
1320
+ var s = this.consume();
1321
+ s === "'" ? (this.delegate.finishAttributeValue(), this.transitionTo("afterAttributeValueQuoted")) : s === "&" ? this.delegate.appendToAttributeValue(this.consumeCharRef() || "&") : this.delegate.appendToAttributeValue(s);
1322
+ }, attributeValueUnquoted: function() {
1323
+ var s = this.peek();
1324
+ B(s) ? (this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("beforeAttributeName")) : s === "/" ? (this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : s === "&" ? (this.consume(), this.delegate.appendToAttributeValue(this.consumeCharRef() || "&")) : s === ">" ? (this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.consume(), this.delegate.appendToAttributeValue(s));
1325
+ }, afterAttributeValueQuoted: function() {
1326
+ var s = this.peek();
1327
+ B(s) ? (this.consume(), this.transitionTo("beforeAttributeName")) : s === "/" ? (this.consume(), this.transitionTo("selfClosingStartTag")) : s === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
1328
+ }, selfClosingStartTag: function() {
1329
+ var s = this.peek();
1330
+ s === ">" ? (this.consume(), this.delegate.markTagAsSelfClosing(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
1331
+ }, endTagOpen: function() {
1332
+ var s = this.consume();
1333
+ (s === "@" || s === ":" || _n(s)) && (this.transitionTo("endTagName"), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
1334
+ } }, this.reset();
1335
+ }
1336
+ return t5.prototype.reset = function() {
1337
+ this.transitionTo("beforeData"), this.input = "", this.tagNameBuffer = "", this.index = 0, this.line = 1, this.column = 0, this.delegate.reset();
1338
+ }, t5.prototype.transitionTo = function(e) {
1339
+ this.state = e;
1340
+ }, t5.prototype.tokenize = function(e) {
1341
+ this.reset(), this.tokenizePart(e), this.tokenizeEOF();
1342
+ }, t5.prototype.tokenizePart = function(e) {
1343
+ for (this.input += mi(e); this.index < this.input.length; ) {
1344
+ var r = this.states[this.state];
1345
+ if (r !== void 0) r.call(this);
1346
+ else throw new Error("unhandled state " + this.state);
1347
+ }
1348
+ }, t5.prototype.tokenizeEOF = function() {
1349
+ this.flushData();
1350
+ }, t5.prototype.flushData = function() {
1351
+ this.state === "data" && (this.delegate.finishData(), this.transitionTo("beforeData"));
1352
+ }, t5.prototype.peek = function() {
1353
+ return this.input.charAt(this.index);
1354
+ }, t5.prototype.consume = function() {
1355
+ var e = this.peek();
1356
+ return this.index++, e === `
1357
+ ` ? (this.line++, this.column = 0) : this.column++, e;
1358
+ }, t5.prototype.consumeCharRef = function() {
1359
+ var e = this.input.indexOf(";", this.index);
1360
+ if (e !== -1) {
1361
+ var r = this.input.slice(this.index, e), n = this.entityParser.parse(r);
1362
+ if (n) {
1363
+ for (var s = r.length; s; ) this.consume(), s--;
1364
+ return this.consume(), n;
1365
+ }
1366
+ }
1367
+ }, t5.prototype.markTagStart = function() {
1368
+ this.delegate.tagOpen();
1369
+ }, t5.prototype.appendToTagName = function(e) {
1370
+ this.tagNameBuffer += e, this.delegate.appendToTagName(e);
1371
+ }, t5.prototype.isIgnoredEndTag = function() {
1372
+ var e = this.tagNameBuffer;
1373
+ return e === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || e === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || e === "script" && this.input.substring(this.index, this.index + 9) !== "</script>";
1374
+ }, t5;
1375
+ }();
1376
+ var kr = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
1377
+ function yi(t5) {
1378
+ var e;
1379
+ return kr.has(t5.toLowerCase()) && ((e = t5[0]) == null ? void 0 : e.toLowerCase()) === t5[0];
1380
+ }
1381
+ var pe = Object.freeze({ line: 1, column: 0 });
1382
+ var Ei = Object.freeze({ source: "(synthetic)", start: pe, end: pe });
1383
+ var st = Object.freeze({ source: "(nonexistent)", start: pe, end: pe });
1384
+ var ue = Object.freeze({ source: "(broken)", start: pe, end: pe });
1385
+ var k = function(t5) {
1386
+ return t5.CharPosition = "CharPosition", t5.HbsPosition = "HbsPosition", t5.InternalsSynthetic = "InternalsSynthetic", t5.NonExistent = "NonExistent", t5.Broken = "Broken", t5;
1387
+ }({});
1388
+ var it = "MATCH_ANY";
1389
+ var Tr = "IS_INVISIBLE";
1390
+ var Nr = class {
1391
+ _whens;
1392
+ constructor(e) {
1393
+ this._whens = e;
1394
+ }
1395
+ first(e) {
1396
+ for (let r of this._whens) {
1397
+ let n = r.match(e);
1398
+ if (we(n)) return n[0];
1399
+ }
1400
+ return null;
1401
+ }
1402
+ };
1403
+ var Dt = class {
1404
+ _map = /* @__PURE__ */ new Map();
1405
+ get(e, r) {
1406
+ let n = this._map.get(e);
1407
+ return n || (n = r(), this._map.set(e, n), n);
1408
+ }
1409
+ add(e, r) {
1410
+ this._map.set(e, r);
1411
+ }
1412
+ match(e) {
1413
+ let r = Si(e), n = [], s = this._map.get(r), i = this._map.get(it);
1414
+ return s && n.push(s), i && n.push(i), n;
1415
+ }
1416
+ };
1417
+ function Hn(t5) {
1418
+ return t5(new vr()).check();
1419
+ }
1420
+ var vr = class {
1421
+ _whens = new Dt();
1422
+ check() {
1423
+ return (e, r) => this.matchFor(e.kind, r.kind)(e, r);
1424
+ }
1425
+ matchFor(e, r) {
1426
+ let n = this._whens.match(e);
1427
+ w(we(n), `no match defined for (${e}, ${r}) and no AnyMatch defined either`);
1428
+ let s = new Nr(n).first(r);
1429
+ return w(s !== null, `no match defined for (${e}, ${r}) and no AnyMatch defined either`), s;
1430
+ }
1431
+ when(e, r, n) {
1432
+ return this._whens.get(e, () => new Dt()).add(r, n), this;
1433
+ }
1434
+ };
1435
+ function Si(t5) {
1436
+ switch (t5) {
1437
+ case k.Broken:
1438
+ case k.InternalsSynthetic:
1439
+ case k.NonExistent:
1440
+ return Tr;
1441
+ default:
1442
+ return t5;
1443
+ }
1444
+ }
1445
+ var Ar = class t {
1446
+ static synthetic(e) {
1447
+ let r = O.synthetic(e);
1448
+ return new t({ loc: r, chars: e });
1449
+ }
1450
+ static load(e, r) {
1451
+ return new t({ loc: O.load(e, r[1]), chars: r[0] });
1452
+ }
1453
+ chars;
1454
+ loc;
1455
+ constructor(e) {
1456
+ this.loc = e.loc, this.chars = e.chars;
1457
+ }
1458
+ getString() {
1459
+ return this.chars;
1460
+ }
1461
+ serialize() {
1462
+ return [this.chars, this.loc.serialize()];
1463
+ }
1464
+ };
1465
+ var O = class t2 {
1466
+ static get NON_EXISTENT() {
1467
+ return new te(k.NonExistent, st).wrap();
1468
+ }
1469
+ static load(e, r) {
1470
+ if (typeof r == "number") return t2.forCharPositions(e, r, r);
1471
+ if (typeof r == "string") return t2.synthetic(r);
1472
+ if (Array.isArray(r)) return t2.forCharPositions(e, r[0], r[1]);
1473
+ if (r === k.NonExistent) return t2.NON_EXISTENT;
1474
+ if (r === k.Broken) return t2.broken(ue);
1475
+ vn(r);
1476
+ }
1477
+ static forHbsLoc(e, r) {
1478
+ let n = new de(e, r.start), s = new de(e, r.end);
1479
+ return new ot(e, { start: n, end: s }, r).wrap();
1480
+ }
1481
+ static forCharPositions(e, r, n) {
1482
+ let s = new Ne(e, r), i = new Ne(e, n);
1483
+ return new at(e, { start: s, end: i }).wrap();
1484
+ }
1485
+ static synthetic(e) {
1486
+ return new te(k.InternalsSynthetic, st, e).wrap();
1487
+ }
1488
+ static broken(e = ue) {
1489
+ return new te(k.Broken, e).wrap();
1490
+ }
1491
+ isInvisible;
1492
+ constructor(e) {
1493
+ this.data = e, this.isInvisible = e.kind !== k.CharPosition && e.kind !== k.HbsPosition;
1494
+ }
1495
+ getStart() {
1496
+ return this.data.getStart().wrap();
1497
+ }
1498
+ getEnd() {
1499
+ return this.data.getEnd().wrap();
1500
+ }
1501
+ get loc() {
1502
+ let e = this.data.toHbsSpan();
1503
+ return e === null ? ue : e.toHbsLoc();
1504
+ }
1505
+ get module() {
1506
+ return this.data.getModule();
1507
+ }
1508
+ get startPosition() {
1509
+ return this.loc.start;
1510
+ }
1511
+ get endPosition() {
1512
+ return this.loc.end;
1513
+ }
1514
+ toJSON() {
1515
+ return this.loc;
1516
+ }
1517
+ withStart(e) {
1518
+ return Q(e.data, this.data.getEnd());
1519
+ }
1520
+ withEnd(e) {
1521
+ return Q(this.data.getStart(), e.data);
1522
+ }
1523
+ asString() {
1524
+ return this.data.asString();
1525
+ }
1526
+ toSlice(e) {
1527
+ let r = this.data.asString();
1528
+ return new Ar({ loc: this, chars: e || r });
1529
+ }
1530
+ get start() {
1531
+ return this.loc.start;
1532
+ }
1533
+ set start(e) {
1534
+ this.data.locDidUpdate({ start: e });
1535
+ }
1536
+ get end() {
1537
+ return this.loc.end;
1538
+ }
1539
+ set end(e) {
1540
+ this.data.locDidUpdate({ end: e });
1541
+ }
1542
+ get source() {
1543
+ return this.module;
1544
+ }
1545
+ collapse(e) {
1546
+ switch (e) {
1547
+ case "start":
1548
+ return this.getStart().collapsed();
1549
+ case "end":
1550
+ return this.getEnd().collapsed();
1551
+ }
1552
+ }
1553
+ extend(e) {
1554
+ return Q(this.data.getStart(), e.data.getEnd());
1555
+ }
1556
+ serialize() {
1557
+ return this.data.serialize();
1558
+ }
1559
+ slice({ skipStart: e = 0, skipEnd: r = 0 }) {
1560
+ return Q(this.getStart().move(e).data, this.getEnd().move(-r).data);
1561
+ }
1562
+ sliceStartChars({ skipStart: e = 0, chars: r }) {
1563
+ return Q(this.getStart().move(e).data, this.getStart().move(e + r).data);
1564
+ }
1565
+ sliceEndChars({ skipEnd: e = 0, chars: r }) {
1566
+ return Q(this.getEnd().move(e - r).data, this.getStart().move(-e).data);
1567
+ }
1568
+ };
1569
+ var at = class {
1570
+ kind = k.CharPosition;
1571
+ _locPosSpan = null;
1572
+ constructor(e, r) {
1573
+ this.source = e, this.charPositions = r;
1574
+ }
1575
+ wrap() {
1576
+ return new O(this);
1577
+ }
1578
+ asString() {
1579
+ return this.source.slice(this.charPositions.start.charPos, this.charPositions.end.charPos);
1580
+ }
1581
+ getModule() {
1582
+ return this.source.module;
1583
+ }
1584
+ getStart() {
1585
+ return this.charPositions.start;
1586
+ }
1587
+ getEnd() {
1588
+ return this.charPositions.end;
1589
+ }
1590
+ locDidUpdate() {
1591
+ }
1592
+ toHbsSpan() {
1593
+ let e = this._locPosSpan;
1594
+ if (e === null) {
1595
+ let r = this.charPositions.start.toHbsPos(), n = this.charPositions.end.toHbsPos();
1596
+ r === null || n === null ? e = this._locPosSpan = fe : e = this._locPosSpan = new ot(this.source, { start: r, end: n });
1597
+ }
1598
+ return e === fe ? null : e;
1599
+ }
1600
+ serialize() {
1601
+ let { start: { charPos: e }, end: { charPos: r } } = this.charPositions;
1602
+ return e === r ? e : [e, r];
1603
+ }
1604
+ toCharPosSpan() {
1605
+ return this;
1606
+ }
1607
+ };
1608
+ var ot = class {
1609
+ kind = k.HbsPosition;
1610
+ _charPosSpan = null;
1611
+ _providedHbsLoc;
1612
+ constructor(e, r, n = null) {
1613
+ this.source = e, this.hbsPositions = r, this._providedHbsLoc = n;
1614
+ }
1615
+ serialize() {
1616
+ let e = this.toCharPosSpan();
1617
+ return e === null ? k.Broken : e.wrap().serialize();
1618
+ }
1619
+ wrap() {
1620
+ return new O(this);
1621
+ }
1622
+ updateProvided(e, r) {
1623
+ this._providedHbsLoc && (this._providedHbsLoc[r] = e), this._charPosSpan = null, this._providedHbsLoc = { start: e, end: e };
1624
+ }
1625
+ locDidUpdate({ start: e, end: r }) {
1626
+ e !== void 0 && (this.updateProvided(e, "start"), this.hbsPositions.start = new de(this.source, e, null)), r !== void 0 && (this.updateProvided(r, "end"), this.hbsPositions.end = new de(this.source, r, null));
1627
+ }
1628
+ asString() {
1629
+ let e = this.toCharPosSpan();
1630
+ return e === null ? "" : e.asString();
1631
+ }
1632
+ getModule() {
1633
+ return this.source.module;
1634
+ }
1635
+ getStart() {
1636
+ return this.hbsPositions.start;
1637
+ }
1638
+ getEnd() {
1639
+ return this.hbsPositions.end;
1640
+ }
1641
+ toHbsLoc() {
1642
+ return { start: this.hbsPositions.start.hbsPos, end: this.hbsPositions.end.hbsPos };
1643
+ }
1644
+ toHbsSpan() {
1645
+ return this;
1646
+ }
1647
+ toCharPosSpan() {
1648
+ let e = this._charPosSpan;
1649
+ if (e === null) {
1650
+ let r = this.hbsPositions.start.toCharPos(), n = this.hbsPositions.end.toCharPos();
1651
+ if (r && n) e = this._charPosSpan = new at(this.source, { start: r, end: n });
1652
+ else return e = this._charPosSpan = fe, null;
1653
+ }
1654
+ return e === fe ? null : e;
1655
+ }
1656
+ };
1657
+ var te = class {
1658
+ constructor(e, r, n = null) {
1659
+ this.kind = e, this.loc = r, this.string = n;
1660
+ }
1661
+ serialize() {
1662
+ switch (this.kind) {
1663
+ case k.Broken:
1664
+ case k.NonExistent:
1665
+ return this.kind;
1666
+ case k.InternalsSynthetic:
1667
+ return this.string || "";
1668
+ }
1669
+ }
1670
+ wrap() {
1671
+ return new O(this);
1672
+ }
1673
+ asString() {
1674
+ return this.string || "";
1675
+ }
1676
+ locDidUpdate({ start: e, end: r }) {
1677
+ e !== void 0 && (this.loc.start = e), r !== void 0 && (this.loc.end = r);
1678
+ }
1679
+ getModule() {
1680
+ return "an unknown module";
1681
+ }
1682
+ getStart() {
1683
+ return new lt(this.kind, this.loc.start);
1684
+ }
1685
+ getEnd() {
1686
+ return new lt(this.kind, this.loc.end);
1687
+ }
1688
+ toCharPosSpan() {
1689
+ return this;
1690
+ }
1691
+ toHbsSpan() {
1692
+ return null;
1693
+ }
1694
+ toHbsLoc() {
1695
+ return ue;
1696
+ }
1697
+ };
1698
+ var Q = Hn((t5) => t5.when(k.HbsPosition, k.HbsPosition, (e, r) => new ot(e.source, { start: e, end: r }).wrap()).when(k.CharPosition, k.CharPosition, (e, r) => new at(e.source, { start: e, end: r }).wrap()).when(k.CharPosition, k.HbsPosition, (e, r) => {
1699
+ let n = r.toCharPos();
1700
+ return n === null ? new te(k.Broken, ue).wrap() : Q(e, n);
1701
+ }).when(k.HbsPosition, k.CharPosition, (e, r) => {
1702
+ let n = e.toCharPos();
1703
+ return n === null ? new te(k.Broken, ue).wrap() : Q(n, r);
1704
+ }).when(Tr, it, (e) => new te(e.kind, ue).wrap()).when(it, Tr, (e, r) => new te(r.kind, ue).wrap()));
1705
+ var fe = "BROKEN";
1706
+ var Ue = class t3 {
1707
+ static forHbsPos(e, r) {
1708
+ return new de(e, r, null).wrap();
1709
+ }
1710
+ static broken(e = pe) {
1711
+ return new lt(k.Broken, e).wrap();
1712
+ }
1713
+ constructor(e) {
1714
+ this.data = e;
1715
+ }
1716
+ get offset() {
1717
+ let e = this.data.toCharPos();
1718
+ return e === null ? null : e.offset;
1719
+ }
1720
+ eql(e) {
1721
+ return wi(this.data, e.data);
1722
+ }
1723
+ until(e) {
1724
+ return Q(this.data, e.data);
1725
+ }
1726
+ move(e) {
1727
+ let r = this.data.toCharPos();
1728
+ if (r === null) return t3.broken();
1729
+ {
1730
+ let n = r.offset + e;
1731
+ return r.source.check(n) ? new Ne(r.source, n).wrap() : t3.broken();
1732
+ }
1733
+ }
1734
+ collapsed() {
1735
+ return Q(this.data, this.data);
1736
+ }
1737
+ toJSON() {
1738
+ return this.data.toJSON();
1739
+ }
1740
+ };
1741
+ var Ne = class {
1742
+ kind = k.CharPosition;
1743
+ _locPos = null;
1744
+ constructor(e, r) {
1745
+ this.source = e, this.charPos = r;
1746
+ }
1747
+ toCharPos() {
1748
+ return this;
1749
+ }
1750
+ toJSON() {
1751
+ let e = this.toHbsPos();
1752
+ return e === null ? pe : e.toJSON();
1753
+ }
1754
+ wrap() {
1755
+ return new Ue(this);
1756
+ }
1757
+ get offset() {
1758
+ return this.charPos;
1759
+ }
1760
+ toHbsPos() {
1761
+ let e = this._locPos;
1762
+ if (e === null) {
1763
+ let r = this.source.hbsPosFor(this.charPos);
1764
+ r === null ? this._locPos = e = fe : this._locPos = e = new de(this.source, r, this.charPos);
1765
+ }
1766
+ return e === fe ? null : e;
1767
+ }
1768
+ };
1769
+ var de = class {
1770
+ kind = k.HbsPosition;
1771
+ _charPos;
1772
+ constructor(e, r, n = null) {
1773
+ this.source = e, this.hbsPos = r, this._charPos = n === null ? null : new Ne(e, n);
1774
+ }
1775
+ toCharPos() {
1776
+ let e = this._charPos;
1777
+ if (e === null) {
1778
+ let r = this.source.charPosFor(this.hbsPos);
1779
+ r === null ? this._charPos = e = fe : this._charPos = e = new Ne(this.source, r);
1780
+ }
1781
+ return e === fe ? null : e;
1782
+ }
1783
+ toJSON() {
1784
+ return this.hbsPos;
1785
+ }
1786
+ wrap() {
1787
+ return new Ue(this);
1788
+ }
1789
+ toHbsPos() {
1790
+ return this;
1791
+ }
1792
+ };
1793
+ var lt = class {
1794
+ constructor(e, r) {
1795
+ this.kind = e, this.pos = r;
1796
+ }
1797
+ toCharPos() {
1798
+ return null;
1799
+ }
1800
+ toJSON() {
1801
+ return this.pos;
1802
+ }
1803
+ wrap() {
1804
+ return new Ue(this);
1805
+ }
1806
+ get offset() {
1807
+ return null;
1808
+ }
1809
+ };
1810
+ var wi = Hn((t5) => t5.when(k.HbsPosition, k.HbsPosition, ({ hbsPos: e }, { hbsPos: r }) => e.column === r.column && e.line === r.line).when(k.CharPosition, k.CharPosition, ({ charPos: e }, { charPos: r }) => e === r).when(k.CharPosition, k.HbsPosition, ({ offset: e }, r) => {
1811
+ var n;
1812
+ return e === ((n = r.toCharPos()) == null ? void 0 : n.offset);
1813
+ }).when(k.HbsPosition, k.CharPosition, (e, { offset: r }) => {
1814
+ var n;
1815
+ return ((n = e.toCharPos()) == null ? void 0 : n.offset) === r;
1816
+ }).when(it, it, () => false));
1817
+ var Te = class t4 {
1818
+ static from(e, r = {}) {
1819
+ var n;
1820
+ return new t4(e, (n = r.meta) == null ? void 0 : n.moduleName);
1821
+ }
1822
+ constructor(e, r = "an unknown module") {
1823
+ this.source = e, this.module = r;
1824
+ }
1825
+ check(e) {
1826
+ return e >= 0 && e <= this.source.length;
1827
+ }
1828
+ slice(e, r) {
1829
+ return this.source.slice(e, r);
1830
+ }
1831
+ offsetFor(e, r) {
1832
+ return Ue.forHbsPos(this, { line: e, column: r });
1833
+ }
1834
+ spanFor({ start: e, end: r }) {
1835
+ return O.forHbsLoc(this, { start: { line: e.line, column: e.column }, end: { line: r.line, column: r.column } });
1836
+ }
1837
+ hbsPosFor(e) {
1838
+ let r = 0, n = 0;
1839
+ if (e > this.source.length) return null;
1840
+ for (; ; ) {
1841
+ let s = this.source.indexOf(`
1842
+ `, n);
1843
+ if (e <= s || s === -1) return { line: r + 1, column: e - n };
1844
+ r += 1, n = s + 1;
1845
+ }
1846
+ }
1847
+ charPosFor(e) {
1848
+ let { line: r, column: n } = e, i = this.source.length, a = 0, o = 0;
1849
+ for (; o < i; ) {
1850
+ let c = this.source.indexOf(`
1851
+ `, o);
1852
+ if (c === -1 && (c = this.source.length), a === r - 1) {
1853
+ if (o + n > c) return c;
1854
+ return o + n;
1855
+ } else {
1856
+ if (c === -1) return 0;
1857
+ a += 1, o = c + 1;
1858
+ }
1859
+ }
1860
+ return i;
1861
+ }
1862
+ };
1863
+ function S(t5, e) {
1864
+ let { module: r, loc: n } = e, { line: s, column: i } = n.start, a = e.asString(), o = a ? `
1865
+
1866
+ |
1867
+ | ${a.split(`
1868
+ `).join(`
1869
+ | `)}
1870
+ |
1871
+
1872
+ ` : "", c = new Error(`${t5}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);
1873
+ return c.name = "SyntaxError", c.location = e, c.code = a, c;
1874
+ }
1875
+ var ki = { Template: ["body"], Block: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };
1876
+ var Or = function() {
1877
+ t5.prototype = Object.create(Error.prototype), t5.prototype.constructor = t5;
1878
+ function t5(e, r, n, s) {
1879
+ let i = Error.call(this, e);
1880
+ this.key = s, this.message = e, this.node = r, this.parent = n, i.stack && (this.stack = i.stack);
1881
+ }
1882
+ return t5;
1883
+ }();
1884
+ function Bn(t5, e, r) {
1885
+ return new Or("Cannot remove a node unless it is part of an array", t5, e, r);
1886
+ }
1887
+ function Ti(t5, e, r) {
1888
+ return new Or("Cannot replace a node with multiple nodes unless it is part of an array", t5, e, r);
1889
+ }
1890
+ function In(t5, e) {
1891
+ return new Or("Replacing and removing in key handlers is not yet supported.", t5, null, e);
1892
+ }
1893
+ var Fe = class {
1894
+ node;
1895
+ parent;
1896
+ parentKey;
1897
+ constructor(e, r = null, n = null) {
1898
+ this.node = e, this.parent = r, this.parentKey = n;
1899
+ }
1900
+ get parentNode() {
1901
+ return this.parent ? this.parent.node : null;
1902
+ }
1903
+ parents() {
1904
+ return { [Symbol.iterator]: () => new Pr(this) };
1905
+ }
1906
+ };
1907
+ var Pr = class {
1908
+ path;
1909
+ constructor(e) {
1910
+ this.path = e;
1911
+ }
1912
+ next() {
1913
+ return this.path.parent ? (this.path = this.path.parent, { done: false, value: this.path }) : { done: true, value: null };
1914
+ }
1915
+ };
1916
+ function Vn(t5) {
1917
+ return typeof t5 == "function" ? t5 : t5.enter;
1918
+ }
1919
+ function Un(t5) {
1920
+ if (typeof t5 != "function") return t5.exit;
1921
+ }
1922
+ function Ni(t5, e) {
1923
+ let r = typeof t5 != "function" ? t5.keys : void 0;
1924
+ if (r === void 0) return;
1925
+ let n = r[e];
1926
+ return n !== void 0 ? n : r.All;
1927
+ }
1928
+ function vi(t5, e) {
1929
+ if (t5.Program && (e === "Template" && !t5.Template || e === "Block" && !t5.Block)) return F(`The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was '${e}') `), t5.Program;
1930
+ let r = t5[e];
1931
+ return r !== void 0 ? r : t5.All;
1932
+ }
1933
+ function Ot(t5, e) {
1934
+ let { node: r, parent: n, parentKey: s } = e, i = vi(t5, r.type), a, o;
1935
+ i !== void 0 && (a = Vn(i), o = Un(i));
1936
+ let c;
1937
+ if (a !== void 0 && (c = a(r, e)), c != null) if (JSON.stringify(r) === JSON.stringify(c)) c = void 0;
1938
+ else {
1939
+ if (Array.isArray(c)) return Fn(t5, c, n, s), c;
1940
+ {
1941
+ let p = new Fe(c, n, s);
1942
+ return Ot(t5, p) || c;
1943
+ }
1944
+ }
1945
+ if (c === void 0) {
1946
+ let p = ki[r.type];
1947
+ for (let h = 0; h < p.length; h++) {
1948
+ let d = p[h];
1949
+ Pi(t5, i, e, d);
1950
+ }
1951
+ o !== void 0 && (c = o(r, e));
1952
+ }
1953
+ return c;
1954
+ }
1955
+ function Ai(t5, e) {
1956
+ return t5[e];
1957
+ }
1958
+ function Rn(t5, e, r) {
1959
+ t5[e] = r;
1960
+ }
1961
+ function Pi(t5, e, r, n) {
1962
+ let { node: s } = r, i = Ai(s, n);
1963
+ if (!i) return;
1964
+ let a, o;
1965
+ if (e !== void 0) {
1966
+ let c = Ni(e, n);
1967
+ c !== void 0 && (a = Vn(c), o = Un(c));
1968
+ }
1969
+ if (a !== void 0 && a(s, n) !== void 0) throw In(s, n);
1970
+ if (Array.isArray(i)) Fn(t5, i, r, n);
1971
+ else {
1972
+ let c = new Fe(i, r, n), p = Ot(t5, c);
1973
+ p !== void 0 && xi(s, n, i, p);
1974
+ }
1975
+ if (o !== void 0 && o(s, n) !== void 0) throw In(s, n);
1976
+ }
1977
+ function Fn(t5, e, r, n) {
1978
+ for (let s = 0; s < e.length; s++) {
1979
+ let i = kt(e[s]), a = new Fe(i, r, n), o = Ot(t5, a);
1980
+ o !== void 0 && (s += Ci(e, s, o) - 1);
1981
+ }
1982
+ }
1983
+ function xi(t5, e, r, n) {
1984
+ if (n === null) throw Bn(r, t5, e);
1985
+ if (Array.isArray(n)) if (n.length === 1) Rn(t5, e, n[0]);
1986
+ else throw n.length === 0 ? Bn(r, t5, e) : Ti(r, t5, e);
1987
+ else Rn(t5, e, n);
1988
+ }
1989
+ function Ci(t5, e, r) {
1990
+ return r === null ? (t5.splice(e, 1), 0) : Array.isArray(r) ? (t5.splice(e, 1, ...r), r.length) : (t5.splice(e, 1, r), 1);
1991
+ }
1992
+ function Li(t5, e) {
1993
+ let r = new Fe(t5);
1994
+ Ot(e, r);
1995
+ }
1996
+ function _i(t5) {
1997
+ switch (t5.type) {
1998
+ case "Block":
1999
+ case "Template":
2000
+ return t5.body;
2001
+ case "ElementNode":
2002
+ return t5.children;
2003
+ }
2004
+ }
2005
+ function Ve(t5, e) {
2006
+ _i(t5).push(e);
2007
+ }
2008
+ function Mn(t5) {
2009
+ return t5.type === "StringLiteral" || t5.type === "BooleanLiteral" || t5.type === "NumberLiteral" || t5.type === "NullLiteral" || t5.type === "UndefinedLiteral";
2010
+ }
2011
+ function Di(t5) {
2012
+ return t5.type === "UndefinedLiteral" ? "undefined" : JSON.stringify(t5.value);
2013
+ }
2014
+ var br;
2015
+ function yr() {
2016
+ return br || (br = new Te("", "(synthetic)")), br;
2017
+ }
2018
+ function Oi(t5, e = [], r = ct([]), n = false, s, i) {
2019
+ return f.mustache({ path: he(t5), params: e, hash: r, trusting: n, strip: i, loc: A(s || null) });
2020
+ }
2021
+ function Bi(t5, e, r, n, s = null, i, a, o, c) {
2022
+ let p, h = null;
2023
+ return n.type === "Template" ? (F("b.program is deprecated. Use b.blockItself instead."), p = f.blockItself({ params: Gn(n.blockParams), body: n.body, loc: n.loc })) : p = n, (s == null ? void 0 : s.type) === "Template" ? (F("b.program is deprecated. Use b.blockItself instead."), w(s.blockParams.length === 0, "{{else}} block cannot have block params"), h = f.blockItself({ params: [], body: s.body, loc: s.loc })) : h = s, f.block({ path: he(t5), params: e || [], hash: r || ct([]), defaultBlock: p, elseBlock: h, loc: A(i || null), openStrip: a, inverseStrip: o, closeStrip: c });
2024
+ }
2025
+ function Ii(t5, e, r, n) {
2026
+ return f.elementModifier({ path: he(t5), params: e || [], hash: r || ct([]), loc: A(n || null) });
2027
+ }
2028
+ function Ri(t5, e) {
2029
+ return f.comment({ value: t5, loc: A(e || null) });
2030
+ }
2031
+ function qi(t5, e) {
2032
+ return f.mustacheComment({ value: t5, loc: A(e || null) });
2033
+ }
2034
+ function Hi(t5, e) {
2035
+ if (!we(t5)) throw new Error("b.concat requires at least one part");
2036
+ return f.concat({ parts: t5, loc: A(e || null) });
2037
+ }
2038
+ function Vi(t5, e = {}) {
2039
+ let { attrs: r, blockParams: n, modifiers: s, comments: i, children: a, openTag: o, closeTag: c, loc: p } = e, h, d;
2040
+ typeof t5 == "string" ? t5.endsWith("/") ? (h = he(t5.slice(0, -1)), d = true) : h = he(t5) : "type" in t5 ? (w(t5.type === "PathExpression", `Invalid tag type ${t5.type}`), h = t5) : "path" in t5 ? (w(t5.path.type === "PathExpression", `Invalid tag type ${t5.path.type}`), h = t5.path, d = t5.selfClosing) : (h = he(t5.name), d = t5.selfClosing), d && w(c == null, "Cannot build a self-closing tag with a closeTag source location");
2041
+ let N = n == null ? void 0 : n.map((T) => typeof T == "string" ? zn(T) : T), g = null;
2042
+ return c ? g = A(c || null) : c === void 0 && (g = d || yi(h.original) ? null : A(null)), f.element({ path: h, selfClosing: d || false, attributes: r || [], params: N || [], modifiers: s || [], comments: i || [], children: a || [], openTag: A(o || null), closeTag: g, loc: A(p || null) });
2043
+ }
2044
+ function Ui(t5, e, r) {
2045
+ return f.attr({ name: t5, value: e, loc: A(r || null) });
2046
+ }
2047
+ function Fi(t5 = "", e) {
2048
+ return f.text({ chars: t5, loc: A(e || null) });
2049
+ }
2050
+ function Mi(t5, e = [], r = ct([]), n) {
2051
+ return f.sexpr({ path: he(t5), params: e, hash: r, loc: A(n || null) });
2052
+ }
2053
+ function zi(t5, e) {
2054
+ let [r, ...n] = qe(t5.split(".")), s = f.head({ original: r, loc: A(e || null) });
2055
+ return f.path({ head: s, tail: n, loc: A(e || null) });
2056
+ }
2057
+ function Gi(t5) {
2058
+ return f.this({ loc: A(t5 || null) });
2059
+ }
2060
+ function Yi(t5, e) {
2061
+ return f.atName({ name: t5, loc: A(e || null) });
2062
+ }
2063
+ function zn(t5, e) {
2064
+ return f.var({ name: t5, loc: A(e || null) });
2065
+ }
2066
+ function Ki(t5, e) {
2067
+ return f.head({ original: t5, loc: A(e || null) });
2068
+ }
2069
+ function Wi(t5, e = [], r) {
2070
+ return f.path({ head: t5, tail: e, loc: A(r || null) });
2071
+ }
2072
+ function he(t5, e) {
2073
+ let r = A(e || null);
2074
+ if (typeof t5 != "string") {
2075
+ if ("type" in t5) return t5;
2076
+ {
2077
+ w(t5.head.indexOf(".") === -1, "builder.path({ head, tail }) should not be called with a head with dots in it");
2078
+ let { head: i, tail: a } = t5;
2079
+ return f.path({ head: f.head({ original: i, loc: r.sliceStartChars({ chars: i.length }) }), tail: a, loc: A(e || null) });
2080
+ }
2081
+ }
2082
+ let { head: n, tail: s } = zi(t5, r);
2083
+ return f.path({ head: n, tail: s, loc: r });
2084
+ }
2085
+ function _t(t5, e, r) {
2086
+ return f.literal({ type: t5, value: e, loc: A(r || null) });
2087
+ }
2088
+ function ct(t5 = [], e) {
2089
+ return f.hash({ pairs: t5, loc: A(e || null) });
2090
+ }
2091
+ function $i(t5, e, r) {
2092
+ return f.pair({ key: t5, value: e, loc: A(r || null) });
2093
+ }
2094
+ function ji(t5, e, r) {
2095
+ return F("b.program is deprecated. Use b.template or b.blockItself instead."), e && e.length ? Yn(t5, e, false, r) : Kn(t5, [], r);
2096
+ }
2097
+ function Gn(t5) {
2098
+ return t5.map((e) => typeof e == "string" ? f.var({ name: e, loc: O.synthetic(e) }) : e);
2099
+ }
2100
+ function Yn(t5 = [], e = [], r = false, n) {
2101
+ return f.blockItself({ body: t5, params: Gn(e), chained: r, loc: A(n || null) });
2102
+ }
2103
+ function Kn(t5 = [], e = [], r) {
2104
+ return f.template({ body: t5, blockParams: e, loc: A(r || null) });
2105
+ }
2106
+ function Qi(t5, e) {
2107
+ return f.pos({ line: t5, column: e });
2108
+ }
2109
+ function A(...t5) {
2110
+ if (t5.length === 1) {
2111
+ let e = t5[0];
2112
+ return e && typeof e == "object" ? O.forHbsLoc(yr(), e) : O.forHbsLoc(yr(), Ei);
2113
+ } else {
2114
+ let [e, r, n, s, i] = t5, a = i ? new Te("", i) : yr();
2115
+ return O.forHbsLoc(a, { start: { line: e, column: r }, end: { line: n || e, column: s || r } });
2116
+ }
2117
+ }
2118
+ var Xi = { mustache: Oi, block: Bi, comment: Ri, mustacheComment: qi, element: Vi, elementModifier: Ii, attr: Ui, text: Fi, sexpr: Mi, concat: Hi, hash: ct, pair: $i, literal: _t, program: ji, blockItself: Yn, template: Kn, loc: A, pos: Qi, path: he, fullPath: Wi, head: Ki, at: Yi, var: zn, this: Gi, string: Er("StringLiteral"), boolean: Er("BooleanLiteral"), number: Er("NumberLiteral"), undefined() {
2119
+ return _t("UndefinedLiteral", void 0);
2120
+ }, null() {
2121
+ return _t("NullLiteral", null);
2122
+ } };
2123
+ function Er(t5) {
2124
+ return function(e, r) {
2125
+ return _t(t5, e, r);
2126
+ };
2127
+ }
2128
+ function Ji({ path: t5, params: e, hash: r, trusting: n, strip: s, loc: i }) {
2129
+ let a = { type: "MustacheStatement", path: t5, params: e, hash: r, trusting: n, strip: s, loc: i };
2130
+ return Object.defineProperty(a, "escaped", { enumerable: false, get() {
2131
+ return F("The escaped property on mustache nodes is deprecated, use trusting instead"), !this.trusting;
2132
+ }, set(o) {
2133
+ F("The escaped property on mustache nodes is deprecated, use trusting instead"), this.trusting = !o;
2134
+ } }), a;
2135
+ }
2136
+ function Zi({ head: t5, tail: e, loc: r }) {
2137
+ let n = { type: "PathExpression", head: t5, tail: e, get original() {
2138
+ return [this.head.original, ...this.tail].join(".");
2139
+ }, set original(s) {
2140
+ let [i, ...a] = qe(s.split("."));
2141
+ this.head = Xi.head(i, this.head.loc), this.tail = a;
2142
+ }, loc: r };
2143
+ return Object.defineProperty(n, "parts", { enumerable: false, get() {
2144
+ F("The parts property on path nodes is deprecated, use head and tail instead");
2145
+ let s = qe(this.original.split("."));
2146
+ return s[0] === "this" ? s.shift() : s[0].startsWith("@") && (s[0] = s[0].slice(1)), Object.freeze(s);
2147
+ }, set(s) {
2148
+ var a;
2149
+ F("The parts property on mustache nodes is deprecated, use head and tail instead");
2150
+ let i = [...s];
2151
+ i[0] !== "this" && !((a = i[0]) != null && a.startsWith("@")) && (this.head.type === "ThisHead" ? i.unshift("this") : this.head.type === "AtHead" && (i[0] = `@${i[0]}`)), this.original = i.join(".");
2152
+ } }), Object.defineProperty(n, "this", { enumerable: false, get() {
2153
+ return F("The this property on path nodes is deprecated, use head.type instead"), this.head.type === "ThisHead";
2154
+ } }), Object.defineProperty(n, "data", { enumerable: false, get() {
2155
+ return F("The data property on path nodes is deprecated, use head.type instead"), this.head.type === "AtHead";
2156
+ } }), n;
2157
+ }
2158
+ function ea({ type: t5, value: e, loc: r }) {
2159
+ let n = { type: t5, value: e, loc: r };
2160
+ return Object.defineProperty(n, "original", { enumerable: false, get() {
2161
+ return F("The original property on literal nodes is deprecated, use value instead"), this.value;
2162
+ }, set(s) {
2163
+ F("The original property on literal nodes is deprecated, use value instead"), this.value = s;
2164
+ } }), n;
2165
+ }
2166
+ var Lt = { close: false, open: false };
2167
+ var xr = class {
2168
+ pos({ line: e, column: r }) {
2169
+ return { line: e, column: r };
2170
+ }
2171
+ blockItself({ body: e, params: r, chained: n = false, loc: s }) {
2172
+ return { type: "Block", body: e, params: r, get blockParams() {
2173
+ return this.params.map((i) => i.name);
2174
+ }, set blockParams(i) {
2175
+ this.params = i.map((a) => f.var({ name: a, loc: O.synthetic(a) }));
2176
+ }, chained: n, loc: s };
2177
+ }
2178
+ template({ body: e, blockParams: r, loc: n }) {
2179
+ return { type: "Template", body: e, blockParams: r, loc: n };
2180
+ }
2181
+ mustache({ path: e, params: r, hash: n, trusting: s, loc: i, strip: a = Lt }) {
2182
+ return Ji({ path: e, params: r, hash: n, trusting: s, strip: a, loc: i });
2183
+ }
2184
+ block({ path: e, params: r, hash: n, defaultBlock: s, elseBlock: i = null, loc: a, openStrip: o = Lt, inverseStrip: c = Lt, closeStrip: p = Lt }) {
2185
+ return { type: "BlockStatement", path: e, params: r, hash: n, program: s, inverse: i, loc: a, openStrip: o, inverseStrip: c, closeStrip: p };
2186
+ }
2187
+ comment({ value: e, loc: r }) {
2188
+ return { type: "CommentStatement", value: e, loc: r };
2189
+ }
2190
+ mustacheComment({ value: e, loc: r }) {
2191
+ return { type: "MustacheCommentStatement", value: e, loc: r };
2192
+ }
2193
+ concat({ parts: e, loc: r }) {
2194
+ return { type: "ConcatStatement", parts: e, loc: r };
2195
+ }
2196
+ element({ path: e, selfClosing: r, attributes: n, modifiers: s, params: i, comments: a, children: o, openTag: c, closeTag: p, loc: h }) {
2197
+ let d = r;
2198
+ return { type: "ElementNode", path: e, attributes: n, modifiers: s, params: i, comments: a, children: o, openTag: c, closeTag: p, loc: h, get tag() {
2199
+ return this.path.original;
2200
+ }, set tag(N) {
2201
+ this.path.original = N;
2202
+ }, get blockParams() {
2203
+ return this.params.map((N) => N.name);
2204
+ }, set blockParams(N) {
2205
+ this.params = N.map((g) => f.var({ name: g, loc: O.synthetic(g) }));
2206
+ }, get selfClosing() {
2207
+ return d;
2208
+ }, set selfClosing(N) {
2209
+ d = N, N ? this.closeTag = null : this.closeTag = O.synthetic(`</${this.tag}>`);
2210
+ } };
2211
+ }
2212
+ elementModifier({ path: e, params: r, hash: n, loc: s }) {
2213
+ return { type: "ElementModifierStatement", path: e, params: r, hash: n, loc: s };
2214
+ }
2215
+ attr({ name: e, value: r, loc: n }) {
2216
+ return { type: "AttrNode", name: e, value: r, loc: n };
2217
+ }
2218
+ text({ chars: e, loc: r }) {
2219
+ return { type: "TextNode", chars: e, loc: r };
2220
+ }
2221
+ sexpr({ path: e, params: r, hash: n, loc: s }) {
2222
+ return { type: "SubExpression", path: e, params: r, hash: n, loc: s };
2223
+ }
2224
+ path({ head: e, tail: r, loc: n }) {
2225
+ return Zi({ head: e, tail: r, loc: n });
2226
+ }
2227
+ head({ original: e, loc: r }) {
2228
+ return e === "this" ? this.this({ loc: r }) : e[0] === "@" ? this.atName({ name: e, loc: r }) : this.var({ name: e, loc: r });
2229
+ }
2230
+ this({ loc: e }) {
2231
+ return { type: "ThisHead", get original() {
2232
+ return "this";
2233
+ }, loc: e };
2234
+ }
2235
+ atName({ name: e, loc: r }) {
2236
+ let n = "", s = { type: "AtHead", get name() {
2237
+ return n;
2238
+ }, set name(i) {
2239
+ w(i[0] === "@", "call builders.at() with a string that starts with '@'"), w(i.indexOf(".") === -1, "builder.at() should not be called with a name with dots in it"), n = i;
2240
+ }, get original() {
2241
+ return this.name;
2242
+ }, set original(i) {
2243
+ this.name = i;
2244
+ }, loc: r };
2245
+ return s.name = e, s;
2246
+ }
2247
+ var({ name: e, loc: r }) {
2248
+ let n = "", s = { type: "VarHead", get name() {
2249
+ return n;
2250
+ }, set name(i) {
2251
+ w(i !== "this", "You called builders.var() with 'this'. Call builders.this instead"), w(i[0] !== "@", `You called builders.var() with '${e}'. Call builders.at('${e}') instead`), w(i.indexOf(".") === -1, "builder.var() should not be called with a name with dots in it"), n = i;
2252
+ }, get original() {
2253
+ return this.name;
2254
+ }, set original(i) {
2255
+ this.name = i;
2256
+ }, loc: r };
2257
+ return s.name = e, s;
2258
+ }
2259
+ hash({ pairs: e, loc: r }) {
2260
+ return { type: "Hash", pairs: e, loc: r };
2261
+ }
2262
+ pair({ key: e, value: r, loc: n }) {
2263
+ return { type: "HashPair", key: e, value: r, loc: n };
2264
+ }
2265
+ literal({ type: e, value: r, loc: n }) {
2266
+ return ea({ type: e, value: r, loc: n });
2267
+ }
2268
+ };
2269
+ var f = new xr();
2270
+ var Cr = class {
2271
+ elementStack = [];
2272
+ lines;
2273
+ source;
2274
+ currentAttribute = null;
2275
+ currentNode = null;
2276
+ tokenizer;
2277
+ constructor(e, r = new dr(Dn), n = "precompile") {
2278
+ this.source = e, this.lines = e.source.split(/\r\n?|\n/u), this.tokenizer = new mr(this, r, n);
2279
+ }
2280
+ offset() {
2281
+ let { line: e, column: r } = this.tokenizer;
2282
+ return this.source.offsetFor(e, r);
2283
+ }
2284
+ pos({ line: e, column: r }) {
2285
+ return this.source.offsetFor(e, r);
2286
+ }
2287
+ finish(e) {
2288
+ return ar({}, e, { loc: e.start.until(this.offset()) });
2289
+ }
2290
+ get currentAttr() {
2291
+ return Tn(this.currentAttribute, "expected attribute");
2292
+ }
2293
+ get currentTag() {
2294
+ let e = this.currentNode;
2295
+ return w(e && (e.type === "StartTag" || e.type === "EndTag"), "expected tag"), e;
2296
+ }
2297
+ get currentStartTag() {
2298
+ let e = this.currentNode;
2299
+ return w(e && e.type === "StartTag", "expected start tag"), e;
2300
+ }
2301
+ get currentEndTag() {
2302
+ let e = this.currentNode;
2303
+ return w(e && e.type === "EndTag", "expected end tag"), e;
2304
+ }
2305
+ get currentComment() {
2306
+ let e = this.currentNode;
2307
+ return w(e && e.type === "CommentStatement", "expected a comment"), e;
2308
+ }
2309
+ get currentData() {
2310
+ let e = this.currentNode;
2311
+ return w(e && e.type === "TextNode", "expected a text node"), e;
2312
+ }
2313
+ acceptNode(e) {
2314
+ return this[e.type](e);
2315
+ }
2316
+ currentElement() {
2317
+ return Nt(qe(this.elementStack));
2318
+ }
2319
+ sourceForNode(e, r) {
2320
+ let n = e.loc.start.line - 1, s = n - 1, i = e.loc.start.column, a = [], o, c, p;
2321
+ for (r ? (c = r.loc.end.line - 1, p = r.loc.end.column) : (c = e.loc.end.line - 1, p = e.loc.end.column); s < c; ) s++, o = kt(this.lines[s]), s === n ? n === c ? a.push(o.slice(i, p)) : a.push(o.slice(i)) : s === c ? a.push(o.slice(0, p)) : a.push(o);
2322
+ return a.join(`
2323
+ `);
2324
+ }
2325
+ };
2326
+ var qn = "beforeAttributeName";
2327
+ var ta = "attributeValueUnquoted";
2328
+ var Lr = class extends Cr {
2329
+ pendingError = null;
2330
+ parse(e, r) {
2331
+ var i;
2332
+ let n = f.template({ body: [], blockParams: r, loc: this.source.spanFor(e.loc) }), s = this.parseProgram(n, e);
2333
+ return (i = this.pendingError) == null || i.eof(s.loc.getEnd()), s;
2334
+ }
2335
+ Program(e, r) {
2336
+ w(Array.isArray(r), "[BUG] Program in parser unexpectedly called without block params");
2337
+ let n = f.blockItself({ body: [], params: r, chained: e.chained, loc: this.source.spanFor(e.loc) });
2338
+ return this.parseProgram(n, e);
2339
+ }
2340
+ parseProgram(e, r) {
2341
+ if (r.body.length === 0) return e;
2342
+ let n;
2343
+ try {
2344
+ this.elementStack.push(e);
2345
+ for (let s of r.body) this.acceptNode(s);
2346
+ } finally {
2347
+ n = this.elementStack.pop();
2348
+ }
2349
+ if (e !== n) {
2350
+ if ((n == null ? void 0 : n.type) === "ElementNode") throw S(`Unclosed element \`${n.tag}\``, n.loc);
2351
+ w(n !== void 0, "[BUG] empty parser elementStack"), w(false, `[BUG] mismatched parser elementStack node: ${e.type}`);
2352
+ }
2353
+ return e;
2354
+ }
2355
+ BlockStatement(e) {
2356
+ var d;
2357
+ if (this.tokenizer.state === "comment") {
2358
+ this.appendToCommentData(this.sourceForNode(e));
2359
+ return;
2360
+ }
2361
+ if (this.tokenizer.state !== "data" && this.tokenizer.state !== "beforeData") throw S("A block may only be used inside an HTML element or another block.", this.source.spanFor(e.loc));
2362
+ let { path: r, params: n, hash: s } = Sr(this, e), i = this.source.spanFor(e.loc), a = [];
2363
+ if ((d = e.program.blockParams) != null && d.length) {
2364
+ let N = s.loc.collapse("end");
2365
+ e.program.loc ? N = N.withEnd(this.source.spanFor(e.program.loc).getStart()) : e.program.body[0] ? N = N.withEnd(this.source.spanFor(e.program.body[0].loc).getStart()) : N = N.withEnd(i.getEnd());
2366
+ let g = N.asString(), T = g.indexOf("|") + 1, x = g.indexOf("|", T);
2367
+ for (let C of e.program.blockParams) {
2368
+ let v, M;
2369
+ T >= x ? v = -1 : v = g.indexOf(C, T), v === -1 || v + C.length > x ? (T = x, M = this.source.spanFor(st)) : (T = v, M = N.sliceStartChars({ skipStart: T, chars: C.length }), T += C.length), a.push(f.var({ name: C, loc: M }));
2370
+ }
2371
+ }
2372
+ e.program.loc || (e.program.loc = st), e.inverse && !e.inverse.loc && (e.inverse.loc = st);
2373
+ let o = this.Program(e.program, a), c = e.inverse ? this.Program(e.inverse, []) : null, p = f.block({ path: r, params: n, hash: s, defaultBlock: o, elseBlock: c, loc: this.source.spanFor(e.loc), openStrip: e.openStrip, inverseStrip: e.inverseStrip, closeStrip: e.closeStrip }), h = this.currentElement();
2374
+ Ve(h, p);
2375
+ }
2376
+ MustacheStatement(e) {
2377
+ var o;
2378
+ (o = this.pendingError) == null || o.mustache(this.source.spanFor(e.loc));
2379
+ let { tokenizer: r } = this;
2380
+ if (r.state === "comment") {
2381
+ this.appendToCommentData(this.sourceForNode(e));
2382
+ return;
2383
+ }
2384
+ let n, { escaped: s, loc: i, strip: a } = e;
2385
+ if ("original" in e.path && e.path.original === "...attributes") throw S("Illegal use of ...attributes", this.source.spanFor(e.loc));
2386
+ if (Mn(e.path)) n = f.mustache({ path: this.acceptNode(e.path), params: [], hash: f.hash({ pairs: [], loc: this.source.spanFor(e.path.loc).collapse("end") }), trusting: !s, loc: this.source.spanFor(i), strip: a });
2387
+ else {
2388
+ let { path: c, params: p, hash: h } = Sr(this, e);
2389
+ n = f.mustache({ path: c, params: p, hash: h, trusting: !s, loc: this.source.spanFor(i), strip: a });
2390
+ }
2391
+ switch (r.state) {
2392
+ case "tagOpen":
2393
+ case "tagName":
2394
+ throw S("Cannot use mustaches in an elements tagname", n.loc);
2395
+ case "beforeAttributeName":
2396
+ wr(this.currentStartTag, n);
2397
+ break;
2398
+ case "attributeName":
2399
+ case "afterAttributeName":
2400
+ this.beginAttributeValue(false), this.finishAttributeValue(), wr(this.currentStartTag, n), r.transitionTo(qn);
2401
+ break;
2402
+ case "afterAttributeValueQuoted":
2403
+ wr(this.currentStartTag, n), r.transitionTo(qn);
2404
+ break;
2405
+ case "beforeAttributeValue":
2406
+ this.beginAttributeValue(false), this.appendDynamicAttributeValuePart(n), r.transitionTo(ta);
2407
+ break;
2408
+ case "attributeValueDoubleQuoted":
2409
+ case "attributeValueSingleQuoted":
2410
+ case "attributeValueUnquoted":
2411
+ this.appendDynamicAttributeValuePart(n);
2412
+ break;
2413
+ default:
2414
+ Ve(this.currentElement(), n);
2415
+ }
2416
+ return n;
2417
+ }
2418
+ appendDynamicAttributeValuePart(e) {
2419
+ this.finalizeTextPart();
2420
+ let r = this.currentAttr;
2421
+ r.isDynamic = true, r.parts.push(e);
2422
+ }
2423
+ finalizeTextPart() {
2424
+ let r = this.currentAttr.currentPart;
2425
+ r !== null && (this.currentAttr.parts.push(r), this.startTextPart());
2426
+ }
2427
+ startTextPart() {
2428
+ this.currentAttr.currentPart = null;
2429
+ }
2430
+ ContentStatement(e) {
2431
+ na(this.tokenizer, e), this.tokenizer.tokenizePart(e.value), this.tokenizer.flushData();
2432
+ }
2433
+ CommentStatement(e) {
2434
+ let { tokenizer: r } = this;
2435
+ if (r.state === "comment") return this.appendToCommentData(this.sourceForNode(e)), null;
2436
+ let { value: n, loc: s } = e, i = f.mustacheComment({ value: n, loc: this.source.spanFor(s) });
2437
+ switch (r.state) {
2438
+ case "beforeAttributeName":
2439
+ case "afterAttributeName":
2440
+ this.currentStartTag.comments.push(i);
2441
+ break;
2442
+ case "beforeData":
2443
+ case "data":
2444
+ Ve(this.currentElement(), i);
2445
+ break;
2446
+ default:
2447
+ throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`, this.source.spanFor(e.loc));
2448
+ }
2449
+ return i;
2450
+ }
2451
+ PartialStatement(e) {
2452
+ throw S("Handlebars partials are not supported", this.source.spanFor(e.loc));
2453
+ }
2454
+ PartialBlockStatement(e) {
2455
+ throw S("Handlebars partial blocks are not supported", this.source.spanFor(e.loc));
2456
+ }
2457
+ Decorator(e) {
2458
+ throw S("Handlebars decorators are not supported", this.source.spanFor(e.loc));
2459
+ }
2460
+ DecoratorBlock(e) {
2461
+ throw S("Handlebars decorator blocks are not supported", this.source.spanFor(e.loc));
2462
+ }
2463
+ SubExpression(e) {
2464
+ let { path: r, params: n, hash: s } = Sr(this, e);
2465
+ return f.sexpr({ path: r, params: n, hash: s, loc: this.source.spanFor(e.loc) });
2466
+ }
2467
+ PathExpression(e) {
2468
+ let { original: r } = e, n;
2469
+ if (r.indexOf("/") !== -1) {
2470
+ if (r.slice(0, 2) === "./") throw S('Using "./" is not supported in Glimmer and unnecessary', this.source.spanFor(e.loc));
2471
+ if (r.slice(0, 3) === "../") throw S('Changing context using "../" is not supported in Glimmer', this.source.spanFor(e.loc));
2472
+ if (r.indexOf(".") !== -1) throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths", this.source.spanFor(e.loc));
2473
+ n = [e.parts.join("/")];
2474
+ } else {
2475
+ if (r === ".") throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'", this.source.spanFor(e.loc));
2476
+ n = e.parts;
2477
+ }
2478
+ let s = false;
2479
+ /^this(?:\..+)?$/u.test(r) && (s = true);
2480
+ let i;
2481
+ if (s) i = f.this({ loc: this.source.spanFor({ start: e.loc.start, end: { line: e.loc.start.line, column: e.loc.start.column + 4 } }) });
2482
+ else if (e.data) {
2483
+ let a = n.shift();
2484
+ if (a === void 0) throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.", this.source.spanFor(e.loc));
2485
+ i = f.atName({ name: `@${a}`, loc: this.source.spanFor({ start: e.loc.start, end: { line: e.loc.start.line, column: e.loc.start.column + a.length + 1 } }) });
2486
+ } else {
2487
+ let a = n.shift();
2488
+ if (a === void 0) throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.", this.source.spanFor(e.loc));
2489
+ i = f.var({ name: a, loc: this.source.spanFor({ start: e.loc.start, end: { line: e.loc.start.line, column: e.loc.start.column + a.length } }) });
2490
+ }
2491
+ return f.path({ head: i, tail: n, loc: this.source.spanFor(e.loc) });
2492
+ }
2493
+ Hash(e) {
2494
+ let r = e.pairs.map((n) => f.pair({ key: n.key, value: this.acceptNode(n.value), loc: this.source.spanFor(n.loc) }));
2495
+ return f.hash({ pairs: r, loc: this.source.spanFor(e.loc) });
2496
+ }
2497
+ StringLiteral(e) {
2498
+ return f.literal({ type: "StringLiteral", value: e.value, loc: this.source.spanFor(e.loc) });
2499
+ }
2500
+ BooleanLiteral(e) {
2501
+ return f.literal({ type: "BooleanLiteral", value: e.value, loc: this.source.spanFor(e.loc) });
2502
+ }
2503
+ NumberLiteral(e) {
2504
+ return f.literal({ type: "NumberLiteral", value: e.value, loc: this.source.spanFor(e.loc) });
2505
+ }
2506
+ UndefinedLiteral(e) {
2507
+ return f.literal({ type: "UndefinedLiteral", value: void 0, loc: this.source.spanFor(e.loc) });
2508
+ }
2509
+ NullLiteral(e) {
2510
+ return f.literal({ type: "NullLiteral", value: null, loc: this.source.spanFor(e.loc) });
2511
+ }
2512
+ };
2513
+ function ra(t5, e) {
2514
+ if (e === "") return { lines: t5.split(`
2515
+ `).length - 1, columns: 0 };
2516
+ let [r] = t5.split(e), n = r.split(/\n/u), s = n.length - 1;
2517
+ return { lines: s, columns: kt(n[s]).length };
2518
+ }
2519
+ function na(t5, e) {
2520
+ let r = e.loc.start.line, n = e.loc.start.column, s = ra(e.original, e.value);
2521
+ r = r + s.lines, s.lines ? n = s.columns : n = n + s.columns, t5.line = r, t5.column = n;
2522
+ }
2523
+ function Sr(t5, e) {
2524
+ let r;
2525
+ switch (e.path.type) {
2526
+ case "PathExpression":
2527
+ r = t5.PathExpression(e.path);
2528
+ break;
2529
+ case "SubExpression":
2530
+ r = t5.SubExpression(e.path);
2531
+ break;
2532
+ case "StringLiteral":
2533
+ case "UndefinedLiteral":
2534
+ case "NullLiteral":
2535
+ case "NumberLiteral":
2536
+ case "BooleanLiteral": {
2537
+ let a;
2538
+ throw e.path.type === "BooleanLiteral" ? a = e.path.original.toString() : e.path.type === "StringLiteral" ? a = `"${e.path.original}"` : e.path.type === "NullLiteral" ? a = "null" : e.path.type === "NumberLiteral" ? a = e.path.value.toString() : a = "undefined", S(`${e.path.type} "${e.path.type === "StringLiteral" ? e.path.original : a}" cannot be called as a sub-expression, replace (${a}) with ${a}`, t5.source.spanFor(e.path.loc));
2539
+ }
2540
+ }
2541
+ let n = e.params ? e.params.map((a) => t5.acceptNode(a)) : [], s = we(n) ? Nt(n).loc : r.loc, i = e.hash ? t5.Hash(e.hash) : f.hash({ pairs: [], loc: t5.source.spanFor(s).collapse("end") });
2542
+ return { path: r, params: n, hash: i };
2543
+ }
2544
+ function wr(t5, e) {
2545
+ let { path: r, params: n, hash: s, loc: i } = e;
2546
+ if (Mn(r)) {
2547
+ let o = `{{${Di(r)}}}`, c = `<${t5.name} ... ${o} ...`;
2548
+ throw S(`In ${c}, ${o} is not a valid modifier`, e.loc);
2549
+ }
2550
+ let a = f.elementModifier({ path: r, params: n, hash: s, loc: i });
2551
+ t5.modifiers.push(a);
2552
+ }
2553
+ function He(t5) {
2554
+ return /[\t\n\f ]/u.test(t5);
2555
+ }
2556
+ var _r = class extends Lr {
2557
+ tagOpenLine = 0;
2558
+ tagOpenColumn = 0;
2559
+ reset() {
2560
+ this.currentNode = null;
2561
+ }
2562
+ beginComment() {
2563
+ this.currentNode = { type: "CommentStatement", value: "", start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2564
+ }
2565
+ appendToCommentData(e) {
2566
+ this.currentComment.value += e;
2567
+ }
2568
+ finishComment() {
2569
+ Ve(this.currentElement(), f.comment(this.finish(this.currentComment)));
2570
+ }
2571
+ beginData() {
2572
+ this.currentNode = { type: "TextNode", chars: "", start: this.offset() };
2573
+ }
2574
+ appendToData(e) {
2575
+ this.currentData.chars += e;
2576
+ }
2577
+ finishData() {
2578
+ Ve(this.currentElement(), f.text(this.finish(this.currentData)));
2579
+ }
2580
+ tagOpen() {
2581
+ this.tagOpenLine = this.tokenizer.line, this.tagOpenColumn = this.tokenizer.column;
2582
+ }
2583
+ beginStartTag() {
2584
+ this.currentNode = { type: "StartTag", name: "", nameStart: null, nameEnd: null, attributes: [], modifiers: [], comments: [], params: [], selfClosing: false, start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2585
+ }
2586
+ beginEndTag() {
2587
+ this.currentNode = { type: "EndTag", name: "", start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2588
+ }
2589
+ finishTag() {
2590
+ let e = this.finish(this.currentTag);
2591
+ if (e.type === "StartTag") {
2592
+ if (this.finishStartTag(), e.name === ":") throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter", this.source.spanFor({ start: this.currentTag.start.toJSON(), end: this.offset().toJSON() }));
2593
+ (kr.has(e.name) || e.selfClosing) && this.finishEndTag(true);
2594
+ } else e.type === "EndTag" && this.finishEndTag(false);
2595
+ }
2596
+ finishStartTag() {
2597
+ let { name: e, nameStart: r, nameEnd: n } = this.currentStartTag;
2598
+ w(e !== "", "tag name cannot be empty"), w(r !== null, "nameStart unexpectedly null"), w(n !== null, "nameEnd unexpectedly null");
2599
+ let s = r.until(n), [i, ...a] = qe(e.split(".")), o = f.path({ head: f.head({ original: i, loc: s.sliceStartChars({ chars: i.length }) }), tail: a, loc: s }), { attributes: c, modifiers: p, comments: h, params: d, selfClosing: N, loc: g } = this.finish(this.currentStartTag), T = f.element({ path: o, selfClosing: N, attributes: c, modifiers: p, comments: h, params: d, children: [], openTag: g, closeTag: N ? null : O.broken(), loc: g });
2600
+ this.elementStack.push(T);
2601
+ }
2602
+ finishEndTag(e) {
2603
+ let { start: r } = this.currentTag, n = this.finish(this.currentTag), s = this.elementStack.pop();
2604
+ this.validateEndTag(n, s, e);
2605
+ let i = this.currentElement();
2606
+ e ? s.closeTag = null : s.selfClosing ? w(s.closeTag === null, "element.closeTag unexpectedly present") : s.closeTag = r.until(this.offset()), s.loc = s.loc.withEnd(this.offset()), Ve(i, f.element(s));
2607
+ }
2608
+ markTagAsSelfClosing() {
2609
+ let e = this.currentTag;
2610
+ if (e.type === "StartTag") e.selfClosing = true;
2611
+ else throw S("Invalid end tag: closing tag must not be self-closing", this.source.spanFor({ start: e.start.toJSON(), end: this.offset().toJSON() }));
2612
+ }
2613
+ appendToTagName(e) {
2614
+ let r = this.currentTag;
2615
+ if (r.name += e, r.type === "StartTag") {
2616
+ let n = this.offset();
2617
+ r.nameStart === null && (w(r.nameEnd === null, "nameStart and nameEnd must both be null"), r.nameStart = n.move(-1)), r.nameEnd = n;
2618
+ }
2619
+ }
2620
+ beginAttribute() {
2621
+ let e = this.offset();
2622
+ this.currentAttribute = { name: "", parts: [], currentPart: null, isQuoted: false, isDynamic: false, start: e, valueSpan: e.collapsed() };
2623
+ }
2624
+ appendToAttributeName(e) {
2625
+ this.currentAttr.name += e, this.currentAttr.name === "as" && this.parsePossibleBlockParams();
2626
+ }
2627
+ beginAttributeValue(e) {
2628
+ this.currentAttr.isQuoted = e, this.startTextPart(), this.currentAttr.valueSpan = this.offset().collapsed();
2629
+ }
2630
+ appendToAttributeValue(e) {
2631
+ let r = this.currentAttr.parts, n = r[r.length - 1], s = this.currentAttr.currentPart;
2632
+ if (s) s.chars += e, s.loc = s.loc.withEnd(this.offset());
2633
+ else {
2634
+ let i = this.offset();
2635
+ e === `
2636
+ ` ? i = n ? n.loc.getEnd() : this.currentAttr.valueSpan.getStart() : i = i.move(-1), this.currentAttr.currentPart = f.text({ chars: e, loc: i.collapsed() });
2637
+ }
2638
+ }
2639
+ finishAttributeValue() {
2640
+ this.finalizeTextPart();
2641
+ let e = this.currentTag, r = this.offset();
2642
+ if (e.type === "EndTag") throw S("Invalid end tag: closing tag must not have attributes", this.source.spanFor({ start: e.start.toJSON(), end: r.toJSON() }));
2643
+ let { name: n, parts: s, start: i, isQuoted: a, isDynamic: o, valueSpan: c } = this.currentAttr;
2644
+ if (n.startsWith("|") && s.length === 0 && !a && !o) throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword", i.until(i.move(n.length)));
2645
+ let p = this.assembleAttributeValue(s, a, o, i.until(r));
2646
+ p.loc = c.withEnd(r);
2647
+ let h = f.attr({ name: n, value: p, loc: i.until(r) });
2648
+ this.currentStartTag.attributes.push(h);
2649
+ }
2650
+ parsePossibleBlockParams() {
2651
+ let e = "beforeAttributeName", r = "attributeName", n = "afterAttributeName", s = /[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;
2652
+ w(this.tokenizer.state === r, "must be in TokenizerState.attributeName");
2653
+ let i = this.currentStartTag, a = this.currentAttr, o = { state: "PossibleAs" }, c = { PossibleAs: (h) => {
2654
+ if (w(o.state === "PossibleAs", "bug in block params parser"), He(h)) o = { state: "BeforeStartPipe" }, this.tokenizer.transitionTo(n), this.tokenizer.consume();
2655
+ else {
2656
+ if (h === "|") throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"', a.start.until(this.offset().move(1)));
2657
+ o = { state: "Done" };
2658
+ }
2659
+ }, BeforeStartPipe: (h) => {
2660
+ w(o.state === "BeforeStartPipe", "bug in block params parser"), He(h) ? this.tokenizer.consume() : h === "|" ? (o = { state: "BeforeBlockParamName" }, this.tokenizer.transitionTo(e), this.tokenizer.consume()) : o = { state: "Done" };
2661
+ }, BeforeBlockParamName: (h) => {
2662
+ if (w(o.state === "BeforeBlockParamName", "bug in block params parser"), He(h)) this.tokenizer.consume();
2663
+ else if (h === "") o = { state: "Done" }, this.pendingError = { mustache(d) {
2664
+ throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list", d);
2665
+ }, eof(d) {
2666
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', a.start.until(d));
2667
+ } };
2668
+ else if (h === "|") {
2669
+ if (i.params.length === 0) throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier", a.start.until(this.offset().move(1)));
2670
+ o = { state: "AfterEndPipe" }, this.tokenizer.consume();
2671
+ } else {
2672
+ if (h === ">" || h === "/") throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely', a.start.until(this.offset().move(1)));
2673
+ o = { state: "BlockParamName", name: h, start: this.offset() }, this.tokenizer.consume();
2674
+ }
2675
+ }, BlockParamName: (h) => {
2676
+ if (w(o.state === "BlockParamName", "bug in block params parser"), h === "") o = { state: "Done" }, this.pendingError = { mustache(d) {
2677
+ throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list", d);
2678
+ }, eof(d) {
2679
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', a.start.until(d));
2680
+ } };
2681
+ else if (h === "|" || He(h)) {
2682
+ let d = o.start.until(this.offset());
2683
+ if (o.name === "this" || s.test(o.name)) throw S(`Invalid block parameters syntax: invalid identifier name \`${o.name}\``, d);
2684
+ i.params.push(f.var({ name: o.name, loc: d })), o = h === "|" ? { state: "AfterEndPipe" } : { state: "BeforeBlockParamName" }, this.tokenizer.consume();
2685
+ } else {
2686
+ if (h === ">" || h === "/") throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely', a.start.until(this.offset().move(1)));
2687
+ o.name += h, this.tokenizer.consume();
2688
+ }
2689
+ }, AfterEndPipe: (h) => {
2690
+ w(o.state === "AfterEndPipe", "bug in block params parser"), He(h) ? this.tokenizer.consume() : h === "" ? (o = { state: "Done" }, this.pendingError = { mustache(d) {
2691
+ throw S("Invalid block parameters syntax: modifiers cannot follow parameters list", d);
2692
+ }, eof(d) {
2693
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', a.start.until(d));
2694
+ } }) : h === ">" || h === "/" ? o = { state: "Done" } : (o = { state: "Error", message: 'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', start: this.offset() }, this.tokenizer.consume());
2695
+ }, Error: (h) => {
2696
+ if (w(o.state === "Error", "bug in block params parser"), h === "" || h === "/" || h === ">" || He(h)) throw S(o.message, o.start.until(this.offset()));
2697
+ this.tokenizer.consume();
2698
+ }, Done: () => {
2699
+ w(false, "This should never be called");
2700
+ } }, p;
2701
+ do
2702
+ p = this.tokenizer.peek(), c[o.state](p);
2703
+ while (o.state !== "Done" && p !== "");
2704
+ w(o.state === "Done", "bug in block params parser");
2705
+ }
2706
+ reportSyntaxError(e) {
2707
+ throw S(e, this.offset().collapsed());
2708
+ }
2709
+ assembleConcatenatedValue(e) {
2710
+ for (let s of e) if (s.type !== "MustacheStatement" && s.type !== "TextNode") throw S(`Unsupported node in quoted attribute value: ${s.type}`, s.loc);
2711
+ Tt(e, "the concatenation parts of an element should not be empty");
2712
+ let r = Nn(e), n = Nt(e);
2713
+ return f.concat({ parts: e, loc: this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc)) });
2714
+ }
2715
+ validateEndTag(e, r, n) {
2716
+ if (kr.has(e.name) && !n) throw S(`<${e.name}> elements do not need end tags. You should remove it`, e.loc);
2717
+ if (r.tag === void 0) throw S(`Closing tag </${e.name}> without an open tag`, e.loc);
2718
+ if (r.tag !== e.name) throw S(`Closing tag </${e.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`, e.loc);
2719
+ }
2720
+ assembleAttributeValue(e, r, n, s) {
2721
+ if (n) {
2722
+ if (r) return this.assembleConcatenatedValue(e);
2723
+ {
2724
+ Tt(e);
2725
+ let [i, a] = e;
2726
+ if (a === void 0 || a.type === "TextNode" && a.chars === "/") return i;
2727
+ throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'", s);
2728
+ }
2729
+ } else return we(e) ? e[0] : f.text({ chars: "", loc: s });
2730
+ }
2731
+ };
2732
+ var sa = {};
2733
+ var Dr = class extends dr {
2734
+ constructor() {
2735
+ super({});
2736
+ }
2737
+ parse() {
2738
+ }
2739
+ };
2740
+ function Wn(t5, e = {}) {
2741
+ var c, p, h;
2742
+ let r = e.mode || "precompile", n, s;
2743
+ typeof t5 == "string" ? (n = new Te(t5, (c = e.meta) == null ? void 0 : c.moduleName), r === "codemod" ? s = Ct(t5, e.parseOptions) : s = fr(t5, e.parseOptions)) : t5 instanceof Te ? (n = t5, r === "codemod" ? s = Ct(t5.source, e.parseOptions) : s = fr(t5.source, e.parseOptions)) : (n = new Te("", (p = e.meta) == null ? void 0 : p.moduleName), s = t5);
2744
+ let i;
2745
+ r === "codemod" && (i = new Dr());
2746
+ let a = O.forCharPositions(n, 0, n.source.length);
2747
+ s.loc = { source: "(program)", start: a.startPosition, end: a.endPosition };
2748
+ let o = new _r(n, i, r).parse(s, e.locals ?? []);
2749
+ if ((h = e == null ? void 0 : e.plugins) != null && h.ast) for (let d of e.plugins.ast) {
2750
+ let N = ar({}, e, { syntax: sa }, { plugins: void 0 }), g = d(N);
2751
+ Li(o, g.visitor);
2752
+ }
2753
+ return o;
2754
+ }
2755
+ (function(t5) {
2756
+ return t5.Helper = "Helper", t5.Modifier = "Modifier", t5.Component = "Component", t5;
2757
+ })({});
2758
+ var Bt = `
2759
+ `;
2760
+ var $n = "\r";
2761
+ var jn = function() {
2762
+ function t5(e) {
2763
+ this.length = e.length;
2764
+ for (var r = [0], n = 0; n < e.length; ) switch (e[n]) {
2765
+ case Bt:
2766
+ n += Bt.length, r.push(n);
2767
+ break;
2768
+ case $n:
2769
+ n += $n.length, e[n] === Bt && (n += Bt.length), r.push(n);
2770
+ break;
2771
+ default:
2772
+ n++;
2773
+ break;
2774
+ }
2775
+ this.offsets = r;
2776
+ }
2777
+ return t5.prototype.locationForIndex = function(e) {
2778
+ if (e < 0 || e > this.length) return null;
2779
+ for (var r = 0, n = this.offsets; n[r + 1] <= e; ) r++;
2780
+ var s = e - n[r];
2781
+ return { line: r, column: s };
2782
+ }, t5.prototype.indexForLocation = function(e) {
2783
+ var r = e.line, n = e.column;
2784
+ return r < 0 || r >= this.offsets.length || n < 0 || n > this.lengthOfLine(r) ? null : this.offsets[r] + n;
2785
+ }, t5.prototype.lengthOfLine = function(e) {
2786
+ var r = this.offsets[e], n = e === this.offsets.length - 1 ? this.length : this.offsets[e + 1];
2787
+ return n - r;
2788
+ }, t5;
2789
+ }();
2790
+ function ia(t5, e) {
2791
+ let r = new SyntaxError(t5 + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
2792
+ return Object.assign(r, e);
2793
+ }
2794
+ var Qn = ia;
2795
+ function aa(t5) {
2796
+ let e = t5.children ?? t5.body;
2797
+ if (e) for (let r = 0; r < e.length - 1; r++) e[r].type === "TextNode" && e[r + 1].type === "MustacheStatement" && (e[r].chars = e[r].chars.replace(/\\$/u, "\\\\"));
2798
+ }
2799
+ function oa(t5) {
2800
+ let e = new jn(t5), r = ({ line: s, column: i }) => e.indexForLocation({ line: s - 1, column: i }), n = (s) => {
2801
+ let { start: i, end: a } = s.loc;
2802
+ i.offset = r(i), a.offset = r(a);
2803
+ };
2804
+ return () => ({ name: "prettierParsePlugin", visitor: { All(s) {
2805
+ n(s), aa(s);
2806
+ } } });
2807
+ }
2808
+ function la(t5) {
2809
+ let e;
2810
+ try {
2811
+ e = Wn(t5, { mode: "codemod", plugins: { ast: [oa(t5)] } });
2812
+ } catch (r) {
2813
+ let n = ua(r);
2814
+ if (n) {
2815
+ let s = ca(r);
2816
+ throw Qn(s, { loc: n, cause: r });
2817
+ }
2818
+ throw r;
2819
+ }
2820
+ return e;
2821
+ }
2822
+ function ca(t5) {
2823
+ let { message: e } = t5, r = e.split(`
2824
+ `);
2825
+ return r.length >= 4 && /^Parse error on line \d+:$/u.test(r[0]) && /^-*\^$/u.test(oe(false, r, -2)) ? oe(false, r, -1) : r.length >= 4 && /:\s?$/u.test(r[0]) && /^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(oe(false, r, -1)) && r[1] === "" && oe(false, r, -2) === "" && r.slice(2, -2).every((n) => n.startsWith("|")) ? r[0].trim().slice(0, -1) : e;
2826
+ }
2827
+ function ua(t5) {
2828
+ let { location: e, hash: r } = t5;
2829
+ if (e) {
2830
+ let { start: n, end: s } = e;
2831
+ return typeof s.line != "number" ? { start: n } : e;
2832
+ }
2833
+ if (r) {
2834
+ let { loc: { last_line: n, last_column: s } } = r;
2835
+ return { start: { line: n, column: s + 1 } };
2836
+ }
2837
+ }
2838
+ var ha = { parse: la, astFormat: "glimmer", locStart: Se, locEnd: tt };
2839
+ var pa = { glimmer: En };
2840
+ var bl = Rr;
2841
+
2842
+ export { bl as default, Sn as languages, Ir as parsers, pa as printers };
2843
+ //# sourceMappingURL=glimmer-FBL5UTXI.js.map
2844
+ //# sourceMappingURL=glimmer-FBL5UTXI.js.map