-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser-glimmer.js
1946 lines (1910 loc) · 178 KB
/
parser-glimmer.js
1
2
3
4
5
6
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _interopDefault(t) {
return t && "object" == (typeof t === "undefined" ? "undefined" : _typeof(t)) && "default" in t ? t.default : t;
}var fs = _interopDefault(require("fs"));function createError(t, e) {
var r = new SyntaxError(t + " (" + e.start.line + ":" + e.start.column + ")");return r.loc = e, r;
}var parserCreateError = createError;function isCall(t) {
return "SubExpression" === t.type || "MustacheStatement" === t.type && "PathExpression" === t.path.type;
}function isLiteral(t) {
return !("object" != (typeof t === "undefined" ? "undefined" : _typeof(t)) || !t.type.match(/Literal$/));
}var nodes = Object.freeze({ isCall: isCall, isLiteral: isLiteral });function buildMustache(t, e, r, a, i) {
return isLiteral(t) || (t = buildPath(t)), { type: "MustacheStatement", path: t, params: e || [], hash: r || buildHash([]), escaped: !a, loc: buildLoc(i || null) };
}function buildBlock(t, e, r, a, i, n) {
return { type: "BlockStatement", path: buildPath(t), params: e || [], hash: r || buildHash([]), program: a || null, inverse: i || null, loc: buildLoc(n || null) };
}function buildElementModifier(t, e, r, a) {
return { type: "ElementModifierStatement", path: buildPath(t), params: e || [], hash: r || buildHash([]), loc: buildLoc(a || null) };
}function buildPartial(t, e, r, a, i) {
return { type: "PartialStatement", name: t, params: e || [], hash: r || buildHash([]), indent: a || "", strip: { open: !1, close: !1 }, loc: buildLoc(i || null) };
}function buildComment(t, e) {
return { type: "CommentStatement", value: t, loc: buildLoc(e || null) };
}function buildMustacheComment(t, e) {
return { type: "MustacheCommentStatement", value: t, loc: buildLoc(e || null) };
}function buildConcat(t, e) {
return { type: "ConcatStatement", parts: t || [], loc: buildLoc(e || null) };
}function buildElement(t, e, r, a, i, n) {
return Array.isArray(i) || (n = i, i = []), { type: "ElementNode", tag: t || "", attributes: e || [], blockParams: [], modifiers: r || [], comments: i || [], children: a || [], loc: buildLoc(n || null) };
}function buildAttr(t, e, r) {
return { type: "AttrNode", name: t, value: e, loc: buildLoc(r || null) };
}function buildText(t, e) {
return { type: "TextNode", chars: t || "", loc: buildLoc(e || null) };
}function buildSexpr(t, e, r, a) {
return { type: "SubExpression", path: buildPath(t), params: e || [], hash: r || buildHash([]), loc: buildLoc(a || null) };
}function buildPath(t, e) {
if ("string" != typeof t) return t;var r = t.split("."),
a = !1;return "this" === r[0] && (a = !0, r = r.slice(1)), { type: "PathExpression", original: t, this: a, parts: r, data: !1, loc: buildLoc(e || null) };
}function buildLiteral(t, e, r) {
return { type: t, value: e, original: e, loc: buildLoc(r || null) };
}function buildHash(t, e) {
return { type: "Hash", pairs: t || [], loc: buildLoc(e || null) };
}function buildPair(t, e, r) {
return { type: "HashPair", key: t, value: e, loc: buildLoc(r || null) };
}function buildProgram(t, e, r) {
return { type: "Program", body: t || [], blockParams: e || [], loc: buildLoc(r || null) };
}function buildSource(t) {
return t || null;
}function buildPosition(t, e) {
return { line: t, column: e };
}var SYNTHETIC = { source: "(synthetic)", start: { line: 1, column: 0 }, end: { line: 1, column: 0 } };function buildLoc() {
for (var _len = arguments.length, t = Array(_len), _key = 0; _key < _len; _key++) {
t[_key] = arguments[_key];
}
if (1 === t.length) {
var e = t[0];return e && "object" == (typeof e === "undefined" ? "undefined" : _typeof(e)) ? { source: buildSource(e.source), start: buildPosition(e.start.line, e.start.column), end: buildPosition(e.end.line, e.end.column) } : SYNTHETIC;
}{
var _e = t[0],
r = t[1],
a = t[2],
i = t[3],
n = t[4];
return { source: buildSource(n), start: buildPosition(_e, r), end: buildPosition(a, i) };
}
}var b = { mustache: buildMustache, block: buildBlock, partial: buildPartial, comment: buildComment, mustacheComment: buildMustacheComment, element: buildElement, elementModifier: buildElementModifier, attr: buildAttr, text: buildText, sexpr: buildSexpr, path: buildPath, concat: buildConcat, hash: buildHash, pair: buildPair, literal: buildLiteral, program: buildProgram, loc: buildLoc, pos: buildPosition, string: literal("StringLiteral"), boolean: literal("BooleanLiteral"), number: literal("NumberLiteral"), undefined: function undefined() {
return buildLiteral("UndefinedLiteral", void 0);
}, null: function _null() {
return buildLiteral("NullLiteral", null);
} };function literal(t) {
return function (e) {
return buildLiteral(t, e);
};
}var SyntaxError$1 = function () {
function t(t, e) {
var r = Error.call(this, t);this.message = t, this.stack = r.stack, this.location = e;
}return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
}();var ID_INVERSE_PATTERN = /[!"#%-,\.\/;->@\[-\^`\{-~]/;function parseElementBlockParams(t) {
var e = parseBlockParams(t);e && (t.blockParams = e);
}function parseBlockParams(t) {
var e = t.attributes.length,
r = [];for (var _a = 0; _a < e; _a++) {
r.push(t.attributes[_a].name);
}var a = r.indexOf("as");if (-1 !== a && e > a && "|" === r[a + 1].charAt(0)) {
var i = r.slice(a).join(" ");if ("|" !== i.charAt(i.length - 1) || 2 !== i.match(/\|/g).length) throw new SyntaxError$1("Invalid block parameters syntax: '" + i + "'", t.loc);var n = [];for (var s = a + 1; s < e; s++) {
var _e2 = r[s].replace(/\|/g, "");if ("" !== _e2) {
if (ID_INVERSE_PATTERN.test(_e2)) throw new SyntaxError$1("Invalid identifier for block parameters: '" + _e2 + "' in '" + i + "'", t.loc);n.push(_e2);
}
}if (0 === n.length) throw new SyntaxError$1("Cannot use zero block parameters: '" + i + "'", t.loc);return t.attributes = t.attributes.slice(0, a), n;
}return null;
}function childrenFor(t) {
switch (t.type) {case "Program":
return t.body;case "ElementNode":
return t.children;}
}function appendChild(t, e) {
childrenFor(t).push(e);
}function isLiteral$1(t) {
return "StringLiteral" === t.type || "BooleanLiteral" === t.type || "NumberLiteral" === t.type || "NullLiteral" === t.type || "UndefinedLiteral" === t.type;
}function printLiteral(t) {
return "UndefinedLiteral" === t.type ? "undefined" : JSON.stringify(t.value);
}var namedCharRefs = { Aacute: "Á", aacute: "á", Abreve: "Ă", abreve: "ă", ac: "∾", acd: "∿", acE: "∾̳", Acirc: "Â", acirc: "â", acute: "´", Acy: "А", acy: "а", AElig: "Æ", aelig: "æ", af: "", Afr: "𝔄", afr: "𝔞", Agrave: "À", agrave: "à", alefsym: "ℵ", aleph: "ℵ", Alpha: "Α", alpha: "α", Amacr: "Ā", amacr: "ā", amalg: "⨿", AMP: "&", amp: "&", And: "⩓", and: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsd: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", Aogon: "Ą", aogon: "ą", Aopf: "𝔸", aopf: "𝕒", ap: "≈", apacir: "⩯", apE: "⩰", ape: "≊", apid: "≋", apos: "'", ApplyFunction: "", approx: "≈", approxeq: "≊", Aring: "Å", aring: "å", Ascr: "𝒜", ascr: "𝒶", Assign: "≔", ast: "*", asymp: "≈", asympeq: "≍", Atilde: "Ã", atilde: "ã", Auml: "Ä", auml: "ä", awconint: "∳", awint: "⨑", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", Backslash: "∖", Barv: "⫧", barvee: "⊽", Barwed: "⌆", barwed: "⌅", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", Bcy: "Б", bcy: "б", bdquo: "„", becaus: "∵", Because: "∵", because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", Bernoullis: "ℬ", Beta: "Β", beta: "β", beth: "ℶ", between: "≬", Bfr: "𝔅", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bNot: "⫭", bnot: "⌐", Bopf: "𝔹", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxbox: "⧉", boxDL: "╗", boxDl: "╖", boxdL: "╕", boxdl: "┐", boxDR: "╔", boxDr: "╓", boxdR: "╒", boxdr: "┌", boxH: "═", boxh: "─", boxHD: "╦", boxHd: "╤", boxhD: "╥", boxhd: "┬", boxHU: "╩", boxHu: "╧", boxhU: "╨", boxhu: "┴", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxUL: "╝", boxUl: "╜", boxuL: "╛", boxul: "┘", boxUR: "╚", boxUr: "╙", boxuR: "╘", boxur: "└", boxV: "║", boxv: "│", boxVH: "╬", boxVh: "╫", boxvH: "╪", boxvh: "┼", boxVL: "╣", boxVl: "╢", boxvL: "╡", boxvl: "┤", boxVR: "╠", boxVr: "╟", boxvR: "╞", boxvr: "├", bprime: "‵", Breve: "˘", breve: "˘", brvbar: "¦", Bscr: "ℬ", bscr: "𝒷", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", Bumpeq: "≎", bumpeq: "≏", Cacute: "Ć", cacute: "ć", Cap: "⋒", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", CapitalDifferentialD: "ⅅ", caps: "∩︀", caret: "⁁", caron: "ˇ", Cayleys: "ℭ", ccaps: "⩍", Ccaron: "Č", ccaron: "č", Ccedil: "Ç", ccedil: "ç", Ccirc: "Ĉ", ccirc: "ĉ", Cconint: "∰", ccups: "⩌", ccupssm: "⩐", Cdot: "Ċ", cdot: "ċ", cedil: "¸", Cedilla: "¸", cemptyv: "⦲", cent: "¢", CenterDot: "·", centerdot: "·", Cfr: "ℭ", cfr: "𝔠", CHcy: "Ч", chcy: "ч", check: "✓", checkmark: "✓", Chi: "Χ", chi: "χ", cir: "○", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", CircleDot: "⊙", circledR: "®", circledS: "Ⓢ", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", cirE: "⧃", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", clubs: "♣", clubsuit: "♣", Colon: "∷", colon: ":", Colone: "⩴", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", Congruent: "≡", Conint: "∯", conint: "∮", ContourIntegral: "∮", Copf: "ℂ", copf: "𝕔", coprod: "∐", Coproduct: "∐", COPY: "©", copy: "©", copysr: "℗", CounterClockwiseContourIntegral: "∳", crarr: "↵", Cross: "⨯", cross: "✗", Cscr: "𝒞", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", Cup: "⋓", cup: "∪", cupbrcap: "⩈", CupCap: "≍", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", Dagger: "‡", dagger: "†", daleth: "ℸ", Darr: "↡", dArr: "⇓", darr: "↓", dash: "‐", Dashv: "⫤", dashv: "⊣", dbkarow: "⤏", dblac: "˝", Dcaron: "Ď", dcaron: "ď", Dcy: "Д", dcy: "д", DD: "ⅅ", dd: "ⅆ", ddagger: "‡", ddarr: "⇊", DDotrahd: "⤑", ddotseq: "⩷", deg: "°", Del: "∇", Delta: "Δ", delta: "δ", demptyv: "⦱", dfisht: "⥿", Dfr: "𝔇", dfr: "𝔡", dHar: "⥥", dharl: "⇃", dharr: "⇂", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", diam: "⋄", Diamond: "⋄", diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", DifferentialD: "ⅆ", digamma: "ϝ", disin: "⋲", div: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", DJcy: "Ђ", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", Dopf: "𝔻", dopf: "𝕕", Dot: "¨", dot: "˙", DotDot: "⃜", doteq: "≐", doteqdot: "≑", DotEqual: "≐", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrow: "↓", Downarrow: "⇓", downarrow: "↓", DownArrowBar: "⤓", DownArrowUpArrow: "⇵", DownBreve: "̑", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVector: "↽", DownLeftVectorBar: "⥖", DownRightTeeVector: "⥟", DownRightVector: "⇁", DownRightVectorBar: "⥗", DownTee: "⊤", DownTeeArrow: "↧", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", Dscr: "𝒟", dscr: "𝒹", DScy: "Ѕ", dscy: "ѕ", dsol: "⧶", Dstrok: "Đ", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", DZcy: "Џ", dzcy: "џ", dzigrarr: "⟿", Eacute: "É", eacute: "é", easter: "⩮", Ecaron: "Ě", ecaron: "ě", ecir: "≖", Ecirc: "Ê", ecirc: "ê", ecolon: "≕", Ecy: "Э", ecy: "э", eDDot: "⩷", Edot: "Ė", eDot: "≑", edot: "ė", ee: "ⅇ", efDot: "≒", Efr: "𝔈", efr: "𝔢", eg: "⪚", Egrave: "È", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", Element: "∈", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", Emacr: "Ē", emacr: "ē", empty: "∅", emptyset: "∅", EmptySmallSquare: "◻", emptyv: "∅", EmptyVerySmallSquare: "▫", emsp: " ", emsp13: " ", emsp14: " ", ENG: "Ŋ", eng: "ŋ", ensp: " ", Eogon: "Ę", eogon: "ę", Eopf: "𝔼", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", Epsilon: "Ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", Equal: "⩵", equals: "=", EqualTilde: "≂", equest: "≟", Equilibrium: "⇌", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erarr: "⥱", erDot: "≓", Escr: "ℰ", escr: "ℯ", esdot: "≐", Esim: "⩳", esim: "≂", Eta: "Η", eta: "η", ETH: "Ð", eth: "ð", Euml: "Ë", euml: "ë", euro: "€", excl: "!", exist: "∃", Exists: "∃", expectation: "ℰ", ExponentialE: "ⅇ", exponentiale: "ⅇ", fallingdotseq: "≒", Fcy: "Ф", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", Ffr: "𝔉", ffr: "𝔣", filig: "fi", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", Fopf: "𝔽", fopf: "𝕗", ForAll: "∀", forall: "∀", fork: "⋔", forkv: "⫙", Fouriertrf: "ℱ", fpartint: "⨍", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", Fscr: "ℱ", fscr: "𝒻", gacute: "ǵ", Gamma: "Γ", gamma: "γ", Gammad: "Ϝ", gammad: "ϝ", gap: "⪆", Gbreve: "Ğ", gbreve: "ğ", Gcedil: "Ģ", Gcirc: "Ĝ", gcirc: "ĝ", Gcy: "Г", gcy: "г", Gdot: "Ġ", gdot: "ġ", gE: "≧", ge: "≥", gEl: "⪌", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", ges: "⩾", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", Gfr: "𝔊", gfr: "𝔤", Gg: "⋙", gg: "≫", ggg: "⋙", gimel: "ℷ", GJcy: "Ѓ", gjcy: "ѓ", gl: "≷", gla: "⪥", glE: "⪒", glj: "⪤", gnap: "⪊", gnapprox: "⪊", gnE: "≩", gne: "⪈", gneq: "⪈", gneqq: "≩", gnsim: "⋧", Gopf: "𝔾", gopf: "𝕘", grave: "`", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", GT: ">", Gt: "≫", gt: ">", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", Hacek: "ˇ", hairsp: " ", half: "½", hamilt: "ℋ", HARDcy: "Ъ", hardcy: "ъ", hArr: "⇔", harr: "↔", harrcir: "⥈", harrw: "↭", Hat: "^", hbar: "ℏ", Hcirc: "Ĥ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", Hfr: "ℌ", hfr: "𝔥", HilbertSpace: "ℋ", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", Hopf: "ℍ", hopf: "𝕙", horbar: "―", HorizontalLine: "─", Hscr: "ℋ", hscr: "𝒽", hslash: "ℏ", Hstrok: "Ħ", hstrok: "ħ", HumpDownHump: "≎", HumpEqual: "≏", hybull: "⁃", hyphen: "‐", Iacute: "Í", iacute: "í", ic: "", Icirc: "Î", icirc: "î", Icy: "И", icy: "и", Idot: "İ", IEcy: "Е", iecy: "е", iexcl: "¡", iff: "⇔", Ifr: "ℑ", ifr: "𝔦", Igrave: "Ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", IJlig: "IJ", ijlig: "ij", Im: "ℑ", Imacr: "Ī", imacr: "ī", image: "ℑ", ImaginaryI: "ⅈ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", imof: "⊷", imped: "Ƶ", Implies: "⇒", in: "∈", incare: "℅", infin: "∞", infintie: "⧝", inodot: "ı", Int: "∬", int: "∫", intcal: "⊺", integers: "ℤ", Integral: "∫", intercal: "⊺", Intersection: "⋂", intlarhk: "⨗", intprod: "⨼", InvisibleComma: "", InvisibleTimes: "", IOcy: "Ё", iocy: "ё", Iogon: "Į", iogon: "į", Iopf: "𝕀", iopf: "𝕚", Iota: "Ι", iota: "ι", iprod: "⨼", iquest: "¿", Iscr: "ℐ", iscr: "𝒾", isin: "∈", isindot: "⋵", isinE: "⋹", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "", Itilde: "Ĩ", itilde: "ĩ", Iukcy: "І", iukcy: "і", Iuml: "Ï", iuml: "ï", Jcirc: "Ĵ", jcirc: "ĵ", Jcy: "Й", jcy: "й", Jfr: "𝔍", jfr: "𝔧", jmath: "ȷ", Jopf: "𝕁", jopf: "𝕛", Jscr: "𝒥", jscr: "𝒿", Jsercy: "Ј", jsercy: "ј", Jukcy: "Є", jukcy: "є", Kappa: "Κ", kappa: "κ", kappav: "ϰ", Kcedil: "Ķ", kcedil: "ķ", Kcy: "К", kcy: "к", Kfr: "𝔎", kfr: "𝔨", kgreen: "ĸ", KHcy: "Х", khcy: "х", KJcy: "Ќ", kjcy: "ќ", Kopf: "𝕂", kopf: "𝕜", Kscr: "𝒦", kscr: "𝓀", lAarr: "⇚", Lacute: "Ĺ", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", Lambda: "Λ", lambda: "λ", Lang: "⟪", lang: "⟨", langd: "⦑", langle: "⟨", lap: "⪅", Laplacetrf: "ℒ", laquo: "«", Larr: "↞", lArr: "⇐", larr: "←", larrb: "⇤", larrbfs: "⤟", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", lat: "⪫", lAtail: "⤛", latail: "⤙", late: "⪭", lates: "⪭︀", lBarr: "⤎", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", Lcaron: "Ľ", lcaron: "ľ", Lcedil: "Ļ", lcedil: "ļ", lceil: "⌈", lcub: "{", Lcy: "Л", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", lE: "≦", le: "≤", LeftAngleBracket: "⟨", LeftArrow: "←", Leftarrow: "⇐", leftarrow: "←", LeftArrowBar: "⇤", LeftArrowRightArrow: "⇆", leftarrowtail: "↢", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVector: "⇃", LeftDownVectorBar: "⥙", LeftFloor: "⌊", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", LeftRightArrow: "↔", Leftrightarrow: "⇔", leftrightarrow: "↔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", LeftRightVector: "⥎", LeftTee: "⊣", LeftTeeArrow: "↤", LeftTeeVector: "⥚", leftthreetimes: "⋋", LeftTriangle: "⊲", LeftTriangleBar: "⧏", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVector: "↿", LeftUpVectorBar: "⥘", LeftVector: "↼", LeftVectorBar: "⥒", lEg: "⪋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", les: "⩽", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", lessgtr: "≶", LessLess: "⪡", lesssim: "≲", LessSlantEqual: "⩽", LessTilde: "≲", lfisht: "⥼", lfloor: "⌊", Lfr: "𝔏", lfr: "𝔩", lg: "≶", lgE: "⪑", lHar: "⥢", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", LJcy: "Љ", ljcy: "љ", Ll: "⋘", ll: "≪", llarr: "⇇", llcorner: "⌞", Lleftarrow: "⇚", llhard: "⥫", lltri: "◺", Lmidot: "Ŀ", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnap: "⪉", lnapprox: "⪉", lnE: "≨", lne: "⪇", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", LongLeftArrow: "⟵", Longleftarrow: "⟸", longleftarrow: "⟵", LongLeftRightArrow: "⟷", Longleftrightarrow: "⟺", longleftrightarrow: "⟷", longmapsto: "⟼", LongRightArrow: "⟶", Longrightarrow: "⟹", longrightarrow: "⟶", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", Lopf: "𝕃", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", LowerLeftArrow: "↙", LowerRightArrow: "↘", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "", lrtri: "⊿", lsaquo: "‹", Lscr: "ℒ", lscr: "𝓁", Lsh: "↰", lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", Lstrok: "Ł", lstrok: "ł", LT: "<", Lt: "≪", lt: "<", ltcc: "⪦", ltcir: "⩹", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltri: "◃", ltrie: "⊴", ltrif: "◂", ltrPar: "⦖", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", macr: "¯", male: "♂", malt: "✠", maltese: "✠", Map: "⤅", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", Mcy: "М", mcy: "м", mdash: "—", mDDot: "∺", measuredangle: "∡", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", mfr: "𝔪", mho: "℧", micro: "µ", mid: "∣", midast: "*", midcir: "⫰", middot: "·", minus: "−", minusb: "⊟", minusd: "∸", minusdu: "⨪", MinusPlus: "∓", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", Mopf: "𝕄", mopf: "𝕞", mp: "∓", Mscr: "ℳ", mscr: "𝓂", mstpos: "∾", Mu: "Μ", mu: "μ", multimap: "⊸", mumap: "⊸", nabla: "∇", Nacute: "Ń", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natur: "♮", natural: "♮", naturals: "ℕ", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", Ncaron: "Ň", ncaron: "ň", Ncedil: "Ņ", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", Ncy: "Н", ncy: "н", ndash: "–", ne: "≠", nearhk: "⤤", neArr: "⇗", nearr: "↗", nearrow: "↗", nedot: "≐̸", NegativeMediumSpace: "", NegativeThickSpace: "", NegativeThinSpace: "", NegativeVeryThinSpace: "", nequiv: "≢", nesear: "⤨", nesim: "≂̸", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: "\n", nexist: "∄", nexists: "∄", Nfr: "𝔑", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", nGg: "⋙̸", ngsim: "≵", nGt: "≫⃒", ngt: "≯", ngtr: "≯", nGtv: "≫̸", nhArr: "⇎", nharr: "↮", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", NJcy: "Њ", njcy: "њ", nlArr: "⇍", nlarr: "↚", nldr: "‥", nlE: "≦̸", nle: "≰", nLeftarrow: "⇍", nleftarrow: "↚", nLeftrightarrow: "⇎", nleftrightarrow: "↮", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nLl: "⋘̸", nlsim: "≴", nLt: "≪⃒", nlt: "≮", nltri: "⋪", nltrie: "⋬", nLtv: "≪̸", nmid: "∤", NoBreak: "", NonBreakingSpace: " ", Nopf: "ℕ", nopf: "𝕟", Not: "⫬", not: "¬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", notin: "∉", notindot: "⋵̸", notinE: "⋹̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", NotLeftTriangle: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangle: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", npar: "∦", nparallel: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", npre: "⪯̸", nprec: "⊀", npreceq: "⪯̸", nrArr: "⇏", nrarr: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nRightarrow: "⇏", nrightarrow: "↛", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", Nscr: "𝒩", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", Ntilde: "Ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", Nu: "Ν", nu: "ν", num: "#", numero: "№", numsp: " ", nvap: "≍⃒", nVDash: "⊯", nVdash: "⊮", nvDash: "⊭", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvHarr: "⤄", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwarhk: "⤣", nwArr: "⇖", nwarr: "↖", nwarrow: "↖", nwnear: "⤧", Oacute: "Ó", oacute: "ó", oast: "⊛", ocir: "⊚", Ocirc: "Ô", ocirc: "ô", Ocy: "О", ocy: "о", odash: "⊝", Odblac: "Ő", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", OElig: "Œ", oelig: "œ", ofcir: "⦿", Ofr: "𝔒", ofr: "𝔬", ogon: "˛", Ograve: "Ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", Omacr: "Ō", omacr: "ō", Omega: "Ω", omega: "ω", Omicron: "Ο", omicron: "ο", omid: "⦶", ominus: "⊖", Oopf: "𝕆", oopf: "𝕠", opar: "⦷", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", operp: "⦹", oplus: "⊕", Or: "⩔", or: "∨", orarr: "↻", ord: "⩝", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oS: "Ⓢ", Oscr: "𝒪", oscr: "ℴ", Oslash: "Ø", oslash: "ø", osol: "⊘", Otilde: "Õ", otilde: "õ", Otimes: "⨷", otimes: "⊗", otimesas: "⨶", Ouml: "Ö", ouml: "ö", ovbar: "⌽", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", par: "∥", para: "¶", parallel: "∥", parsim: "⫳", parsl: "⫽", part: "∂", PartialD: "∂", Pcy: "П", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", Pfr: "𝔓", pfr: "𝔭", Phi: "Φ", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", Pi: "Π", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plus: "+", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plusdo: "∔", plusdu: "⨥", pluse: "⩲", PlusMinus: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", Poincareplane: "ℌ", pointint: "⨕", Popf: "ℙ", popf: "𝕡", pound: "£", Pr: "⪻", pr: "≺", prap: "⪷", prcue: "≼", prE: "⪳", pre: "⪯", prec: "≺", precapprox: "⪷", preccurlyeq: "≼", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", precsim: "≾", Prime: "″", prime: "′", primes: "ℙ", prnap: "⪹", prnE: "⪵", prnsim: "⋨", prod: "∏", Product: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", Proportion: "∷", Proportional: "∝", propto: "∝", prsim: "≾", prurel: "⊰", Pscr: "𝒫", pscr: "𝓅", Psi: "Ψ", psi: "ψ", puncsp: " ", Qfr: "𝔔", qfr: "𝔮", qint: "⨌", Qopf: "ℚ", qopf: "𝕢", qprime: "⁗", Qscr: "𝒬", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", QUOT: '"', quot: '"', rAarr: "⇛", race: "∽̱", Racute: "Ŕ", racute: "ŕ", radic: "√", raemptyv: "⦳", Rang: "⟫", rang: "⟩", rangd: "⦒", range: "⦥", rangle: "⟩", raquo: "»", Rarr: "↠", rArr: "⇒", rarr: "→", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", Rarrtl: "⤖", rarrtl: "↣", rarrw: "↝", rAtail: "⤜", ratail: "⤚", ratio: "∶", rationals: "ℚ", RBarr: "⤐", rBarr: "⤏", rbarr: "⤍", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", Rcaron: "Ř", rcaron: "ř", Rcedil: "Ŗ", rcedil: "ŗ", rceil: "⌉", rcub: "}", Rcy: "Р", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", Re: "ℜ", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", rect: "▭", REG: "®", reg: "®", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", rfisht: "⥽", rfloor: "⌋", Rfr: "ℜ", rfr: "𝔯", rHar: "⥤", rhard: "⇁", rharu: "⇀", rharul: "⥬", Rho: "Ρ", rho: "ρ", rhov: "ϱ", RightAngleBracket: "⟩", RightArrow: "→", Rightarrow: "⇒", rightarrow: "→", RightArrowBar: "⇥", RightArrowLeftArrow: "⇄", rightarrowtail: "↣", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", RightTee: "⊢", RightTeeArrow: "↦", RightTeeVector: "⥛", rightthreetimes: "⋌", RightTriangle: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", RightVectorBar: "⥓", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", Ropf: "ℝ", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", RoundImplies: "⥰", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", Rrightarrow: "⇛", rsaquo: "›", Rscr: "ℛ", rscr: "𝓇", Rsh: "↱", rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", RuleDelayed: "⧴", ruluhar: "⥨", rx: "℞", Sacute: "Ś", sacute: "ś", sbquo: "‚", Sc: "⪼", sc: "≻", scap: "⪸", Scaron: "Š", scaron: "š", sccue: "≽", scE: "⪴", sce: "⪰", Scedil: "Ş", scedil: "ş", Scirc: "Ŝ", scirc: "ŝ", scnap: "⪺", scnE: "⪶", scnsim: "⋩", scpolint: "⨓", scsim: "≿", Scy: "С", scy: "с", sdot: "⋅", sdotb: "⊡", sdote: "⩦", searhk: "⤥", seArr: "⇘", searr: "↘", searrow: "↘", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", Sfr: "𝔖", sfr: "𝔰", sfrown: "⌢", sharp: "♯", SHCHcy: "Щ", shchcy: "щ", SHcy: "Ш", shcy: "ш", ShortDownArrow: "↓", ShortLeftArrow: "←", shortmid: "∣", shortparallel: "∥", ShortRightArrow: "→", ShortUpArrow: "↑", shy: "", Sigma: "Σ", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", SmallCircle: "∘", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", SOFTcy: "Ь", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", Sopf: "𝕊", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", Sqrt: "√", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", squ: "□", Square: "□", square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", squarf: "▪", squf: "▪", srarr: "→", Sscr: "𝒮", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", Star: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", Sub: "⋐", sub: "⊂", subdot: "⪽", subE: "⫅", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", Subset: "⋐", subset: "⊂", subseteq: "⊆", subseteqq: "⫅", SubsetEqual: "⊆", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succ: "≻", succapprox: "⪸", succcurlyeq: "≽", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", SuchThat: "∋", Sum: "∑", sum: "∑", sung: "♪", Sup: "⋑", sup: "⊃", sup1: "¹", sup2: "²", sup3: "³", supdot: "⪾", supdsub: "⫘", supE: "⫆", supe: "⊇", supedot: "⫄", Superset: "⊃", SupersetEqual: "⊇", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", Supset: "⋑", supset: "⊃", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swarhk: "⤦", swArr: "⇙", swarr: "↙", swarrow: "↙", swnwar: "⤪", szlig: "ß", Tab: "\t", target: "⌖", Tau: "Τ", tau: "τ", tbrk: "⎴", Tcaron: "Ť", tcaron: "ť", Tcedil: "Ţ", tcedil: "ţ", Tcy: "Т", tcy: "т", tdot: "⃛", telrec: "⌕", Tfr: "𝔗", tfr: "𝔱", there4: "∴", Therefore: "∴", therefore: "∴", Theta: "Θ", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", ThickSpace: " ", thinsp: " ", ThinSpace: " ", thkap: "≈", thksim: "∼", THORN: "Þ", thorn: "þ", Tilde: "∼", tilde: "˜", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", times: "×", timesb: "⊠", timesbar: "⨱", timesd: "⨰", tint: "∭", toea: "⤨", top: "⊤", topbot: "⌶", topcir: "⫱", Topf: "𝕋", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", TRADE: "™", trade: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", TripleDot: "⃛", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", Tscr: "𝒯", tscr: "𝓉", TScy: "Ц", tscy: "ц", TSHcy: "Ћ", tshcy: "ћ", Tstrok: "Ŧ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", Uacute: "Ú", uacute: "ú", Uarr: "↟", uArr: "⇑", uarr: "↑", Uarrocir: "⥉", Ubrcy: "Ў", ubrcy: "ў", Ubreve: "Ŭ", ubreve: "ŭ", Ucirc: "Û", ucirc: "û", Ucy: "У", ucy: "у", udarr: "⇅", Udblac: "Ű", udblac: "ű", udhar: "⥮", ufisht: "⥾", Ufr: "𝔘", ufr: "𝔲", Ugrave: "Ù", ugrave: "ù", uHar: "⥣", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", Umacr: "Ū", umacr: "ū", uml: "¨", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", uogon: "ų", Uopf: "𝕌", uopf: "𝕦", UpArrow: "↑", Uparrow: "⇑", uparrow: "↑", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", UpDownArrow: "↕", Updownarrow: "⇕", updownarrow: "↕", UpEquilibrium: "⥮", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", UpperLeftArrow: "↖", UpperRightArrow: "↗", Upsi: "ϒ", upsi: "υ", upsih: "ϒ", Upsilon: "Υ", upsilon: "υ", UpTee: "⊥", UpTeeArrow: "↥", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", Uring: "Ů", uring: "ů", urtri: "◹", Uscr: "𝒰", uscr: "𝓊", utdot: "⋰", Utilde: "Ũ", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", Uuml: "Ü", uuml: "ü", uwangle: "⦧", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", vArr: "⇕", varr: "↕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", Vbar: "⫫", vBar: "⫨", vBarv: "⫩", Vcy: "В", vcy: "в", VDash: "⊫", Vdash: "⊩", vDash: "⊨", vdash: "⊢", Vdashl: "⫦", Vee: "⋁", vee: "∨", veebar: "⊻", veeeq: "≚", vellip: "⋮", Verbar: "‖", verbar: "|", Vert: "‖", vert: "|", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", Vopf: "𝕍", vopf: "𝕧", vprop: "∝", vrtri: "⊳", Vscr: "𝒱", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", Vvdash: "⊪", vzigzag: "⦚", Wcirc: "Ŵ", wcirc: "ŵ", wedbar: "⩟", Wedge: "⋀", wedge: "∧", wedgeq: "≙", weierp: "℘", Wfr: "𝔚", wfr: "𝔴", Wopf: "𝕎", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", Wscr: "𝒲", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", Xfr: "𝔛", xfr: "𝔵", xhArr: "⟺", xharr: "⟷", Xi: "Ξ", xi: "ξ", xlArr: "⟸", xlarr: "⟵", xmap: "⟼", xnis: "⋻", xodot: "⨀", Xopf: "𝕏", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrArr: "⟹", xrarr: "⟶", Xscr: "𝒳", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", Yacute: "Ý", yacute: "ý", YAcy: "Я", yacy: "я", Ycirc: "Ŷ", ycirc: "ŷ", Ycy: "Ы", ycy: "ы", yen: "¥", Yfr: "𝔜", yfr: "𝔶", YIcy: "Ї", yicy: "ї", Yopf: "𝕐", yopf: "𝕪", Yscr: "𝒴", yscr: "𝓎", YUcy: "Ю", yucy: "ю", Yuml: "Ÿ", yuml: "ÿ", Zacute: "Ź", zacute: "ź", Zcaron: "Ž", zcaron: "ž", Zcy: "З", zcy: "з", Zdot: "Ż", zdot: "ż", zeetrf: "ℨ", ZeroWidthSpace: "", Zeta: "Ζ", zeta: "ζ", Zfr: "ℨ", zfr: "𝔷", ZHcy: "Ж", zhcy: "ж", zigrarr: "⇝", Zopf: "ℤ", zopf: "𝕫", Zscr: "𝒵", zscr: "𝓏", zwj: "", zwnj: "" },
HEXCHARCODE = /^#[xX]([A-Fa-f0-9]+)$/,
CHARCODE = /^#([0-9]+)$/,
NAMED = /^([A-Za-z0-9]+)$/,
EntityParser = function () {
function t(t) {
this.named = t;
}return t.prototype.parse = function (t) {
if (t) {
var e = t.match(HEXCHARCODE);return e ? String.fromCharCode(parseInt(e[1], 16)) : (e = t.match(CHARCODE)) ? String.fromCharCode(parseInt(e[1], 10)) : (e = t.match(NAMED)) ? this.named[e[1]] : void 0;
}
}, t;
}(),
WSP = /[\t\n\f ]/,
ALPHA = /[A-Za-z]/,
CRLF = /\r\n?/g;function isSpace(t) {
return WSP.test(t);
}function isAlpha(t) {
return ALPHA.test(t);
}function preprocessInput(t) {
return t.replace(CRLF, "\n");
}function unwrap(t, e) {
if (!t) throw new Error((e || "value") + " was null");return t;
}var EventedTokenizer = function () {
function t(t, e) {
this.delegate = t, this.entityParser = e, this.state = null, this.input = null, this.index = -1, this.tagLine = -1, this.tagColumn = -1, this.line = -1, this.column = -1, this.states = { beforeData: function beforeData() {
"<" === this.peek() ? (this.state = "tagOpen", this.markTagStart(), this.consume()) : (this.state = "data", this.delegate.beginData());
}, data: function data() {
var t = this.peek();"<" === t ? (this.delegate.finishData(), this.state = "tagOpen", this.markTagStart(), this.consume()) : "&" === t ? (this.consume(), this.delegate.appendToData(this.consumeCharRef() || "&")) : (this.consume(), this.delegate.appendToData(t));
}, tagOpen: function tagOpen() {
var t = this.consume();"!" === t ? this.state = "markupDeclaration" : "/" === t ? this.state = "endTagOpen" : isAlpha(t) && (this.state = "tagName", this.delegate.beginStartTag(), this.delegate.appendToTagName(t.toLowerCase()));
}, markupDeclaration: function markupDeclaration() {
"-" === this.consume() && "-" === this.input.charAt(this.index) && (this.consume(), this.state = "commentStart", this.delegate.beginComment());
}, commentStart: function commentStart() {
var t = this.consume();"-" === t ? this.state = "commentStartDash" : ">" === t ? (this.delegate.finishComment(), this.state = "beforeData") : (this.delegate.appendToCommentData(t), this.state = "comment");
}, commentStartDash: function commentStartDash() {
var t = this.consume();"-" === t ? this.state = "commentEnd" : ">" === t ? (this.delegate.finishComment(), this.state = "beforeData") : (this.delegate.appendToCommentData("-"), this.state = "comment");
}, comment: function comment() {
var t = this.consume();"-" === t ? this.state = "commentEndDash" : this.delegate.appendToCommentData(t);
}, commentEndDash: function commentEndDash() {
var t = this.consume();"-" === t ? this.state = "commentEnd" : (this.delegate.appendToCommentData("-" + t), this.state = "comment");
}, commentEnd: function commentEnd() {
var t = this.consume();">" === t ? (this.delegate.finishComment(), this.state = "beforeData") : (this.delegate.appendToCommentData("--" + t), this.state = "comment");
}, tagName: function tagName() {
var t = this.consume();isSpace(t) ? this.state = "beforeAttributeName" : "/" === t ? this.state = "selfClosingStartTag" : ">" === t ? (this.delegate.finishTag(), this.state = "beforeData") : this.delegate.appendToTagName(t);
}, beforeAttributeName: function beforeAttributeName() {
var t = this.peek();isSpace(t) ? this.consume() : "/" === t ? (this.state = "selfClosingStartTag", this.consume()) : ">" === t ? (this.consume(), this.delegate.finishTag(), this.state = "beforeData") : "=" === t ? (this.delegate.reportSyntaxError("attribute name cannot start with equals sign"), this.state = "attributeName", this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(t)) : (this.state = "attributeName", this.delegate.beginAttribute());
}, attributeName: function attributeName() {
var t = this.peek();isSpace(t) ? (this.state = "afterAttributeName", this.consume()) : "/" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.state = "selfClosingStartTag") : "=" === t ? (this.state = "beforeAttributeValue", this.consume()) : ">" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : '"' === t || "'" === t || "<" === t ? (this.delegate.reportSyntaxError(t + " is not a valid character within attribute names"), this.consume(), this.delegate.appendToAttributeName(t)) : (this.consume(), this.delegate.appendToAttributeName(t));
}, afterAttributeName: function afterAttributeName() {
var t = this.peek();isSpace(t) ? this.consume() : "/" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.state = "selfClosingStartTag") : "=" === t ? (this.consume(), this.state = "beforeAttributeValue") : ">" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.state = "attributeName", this.delegate.beginAttribute(), this.delegate.appendToAttributeName(t));
}, beforeAttributeValue: function beforeAttributeValue() {
var t = this.peek();isSpace(t) ? this.consume() : '"' === t ? (this.state = "attributeValueDoubleQuoted", this.delegate.beginAttributeValue(!0), this.consume()) : "'" === t ? (this.state = "attributeValueSingleQuoted", this.delegate.beginAttributeValue(!0), this.consume()) : ">" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : (this.state = "attributeValueUnquoted", this.delegate.beginAttributeValue(!1), this.consume(), this.delegate.appendToAttributeValue(t));
}, attributeValueDoubleQuoted: function attributeValueDoubleQuoted() {
var t = this.consume();'"' === t ? (this.delegate.finishAttributeValue(), this.state = "afterAttributeValueQuoted") : "&" === t ? this.delegate.appendToAttributeValue(this.consumeCharRef('"') || "&") : this.delegate.appendToAttributeValue(t);
}, attributeValueSingleQuoted: function attributeValueSingleQuoted() {
var t = this.consume();"'" === t ? (this.delegate.finishAttributeValue(), this.state = "afterAttributeValueQuoted") : "&" === t ? this.delegate.appendToAttributeValue(this.consumeCharRef("'") || "&") : this.delegate.appendToAttributeValue(t);
}, attributeValueUnquoted: function attributeValueUnquoted() {
var t = this.peek();isSpace(t) ? (this.delegate.finishAttributeValue(), this.consume(), this.state = "beforeAttributeName") : "&" === t ? (this.consume(), this.delegate.appendToAttributeValue(this.consumeCharRef(">") || "&")) : ">" === t ? (this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : (this.consume(), this.delegate.appendToAttributeValue(t));
}, afterAttributeValueQuoted: function afterAttributeValueQuoted() {
var t = this.peek();isSpace(t) ? (this.consume(), this.state = "beforeAttributeName") : "/" === t ? (this.consume(), this.state = "selfClosingStartTag") : ">" === t ? (this.consume(), this.delegate.finishTag(), this.state = "beforeData") : this.state = "beforeAttributeName";
}, selfClosingStartTag: function selfClosingStartTag() {
">" === this.peek() ? (this.consume(), this.delegate.markTagAsSelfClosing(), this.delegate.finishTag(), this.state = "beforeData") : this.state = "beforeAttributeName";
}, endTagOpen: function endTagOpen() {
var t = this.consume();isAlpha(t) && (this.state = "tagName", this.delegate.beginEndTag(), this.delegate.appendToTagName(t.toLowerCase()));
} }, this.reset();
}return t.prototype.reset = function () {
this.state = "beforeData", this.input = "", this.index = 0, this.line = 1, this.column = 0, this.tagLine = -1, this.tagColumn = -1, this.delegate.reset();
}, t.prototype.tokenize = function (t) {
this.reset(), this.tokenizePart(t), this.tokenizeEOF();
}, t.prototype.tokenizePart = function (t) {
for (this.input += preprocessInput(t); this.index < this.input.length;) {
this.states[this.state].call(this);
}
}, t.prototype.tokenizeEOF = function () {
this.flushData();
}, t.prototype.flushData = function () {
"data" === this.state && (this.delegate.finishData(), this.state = "beforeData");
}, t.prototype.peek = function () {
return this.input.charAt(this.index);
}, t.prototype.consume = function () {
var t = this.peek();return this.index++, "\n" === t ? (this.line++, this.column = 0) : this.column++, t;
}, t.prototype.consumeCharRef = function () {
var t = this.input.indexOf(";", this.index);if (-1 !== t) {
var e = this.input.slice(this.index, t),
r = this.entityParser.parse(e);if (r) {
for (var a = e.length; a;) {
this.consume(), a--;
}return this.consume(), r;
}
}
}, t.prototype.markTagStart = function () {
this.tagLine = this.line, this.tagColumn = this.column, this.delegate.tagOpen && this.delegate.tagOpen();
}, t;
}(),
Tokenizer = function () {
function t(t, e) {
void 0 === e && (e = {}), this.options = e, this._token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.currentAttribute = null, this.tokenizer = new EventedTokenizer(this, t);
}return Object.defineProperty(t.prototype, "token", { get: function get() {
return unwrap(this._token);
}, set: function set(t) {
this._token = t;
}, enumerable: !0, configurable: !0 }), t.prototype.tokenize = function (t) {
return this.tokens = [], this.tokenizer.tokenize(t), this.tokens;
}, t.prototype.tokenizePart = function (t) {
return this.tokens = [], this.tokenizer.tokenizePart(t), this.tokens;
}, t.prototype.tokenizeEOF = function () {
return this.tokens = [], this.tokenizer.tokenizeEOF(), this.tokens[0];
}, t.prototype.reset = function () {
this._token = null, this.startLine = 1, this.startColumn = 0;
}, t.prototype.addLocInfo = function () {
this.options.loc && (this.token.loc = { start: { line: this.startLine, column: this.startColumn }, end: { line: this.tokenizer.line, column: this.tokenizer.column } }), this.startLine = this.tokenizer.line, this.startColumn = this.tokenizer.column;
}, t.prototype.beginData = function () {
this.token = { type: "Chars", chars: "" }, this.tokens.push(this.token);
}, t.prototype.appendToData = function (t) {
this.token.chars += t;
}, t.prototype.finishData = function () {
this.addLocInfo();
}, t.prototype.beginComment = function () {
this.token = { type: "Comment", chars: "" }, this.tokens.push(this.token);
}, t.prototype.appendToCommentData = function (t) {
this.token.chars += t;
}, t.prototype.finishComment = function () {
this.addLocInfo();
}, t.prototype.beginStartTag = function () {
this.token = { type: "StartTag", tagName: "", attributes: [], selfClosing: !1 }, this.tokens.push(this.token);
}, t.prototype.beginEndTag = function () {
this.token = { type: "EndTag", tagName: "" }, this.tokens.push(this.token);
}, t.prototype.finishTag = function () {
this.addLocInfo();
}, t.prototype.markTagAsSelfClosing = function () {
this.token.selfClosing = !0;
}, t.prototype.appendToTagName = function (t) {
this.token.tagName += t;
}, t.prototype.beginAttribute = function () {
var t = unwrap(this.token.attributes, "current token's attributs");this.currentAttribute = ["", "", !1], t.push(this.currentAttribute);
}, t.prototype.appendToAttributeName = function (t) {
unwrap(this.currentAttribute)[0] += t;
}, t.prototype.beginAttributeValue = function (t) {
unwrap(this.currentAttribute)[2] = t;
}, t.prototype.appendToAttributeValue = function (t) {
var e = unwrap(this.currentAttribute);e[1] = e[1] || "", e[1] += t;
}, t.prototype.finishAttributeValue = function () {}, t.prototype.reportSyntaxError = function (t) {
this.token.syntaxError = t;
}, t;
}();function debugAssert(t, e) {
if (!t) throw new Error(e || "assertion failure");
}var objKeys = Object.keys;
function assign(t) {
for (var e = 1; e < arguments.length; e++) {
var r = arguments[e];if (null === r || "object" != (typeof r === "undefined" ? "undefined" : _typeof(r))) continue;var a = objKeys(r);for (var _e3 = 0; _e3 < a.length; _e3++) {
var i = a[_e3];t[i] = r[i];
}
}return t;
}
var ListSlice = function () {
function ListSlice(t, e) {
_classCallCheck(this, ListSlice);
this._head = t, this._tail = e;
}
_createClass(ListSlice, [{
key: "forEachNode",
value: function forEachNode(t) {
var e = this._head;for (; null !== e;) {
t(e), e = this.nextNode(e);
}
}
}, {
key: "head",
value: function head() {
return this._head;
}
}, {
key: "tail",
value: function tail() {
return this._tail;
}
}, {
key: "toArray",
value: function toArray() {
var t = [];return this.forEachNode(function (e) {
return t.push(e);
}), t;
}
}, {
key: "nextNode",
value: function nextNode(t) {
return t === this._tail ? null : t.next;
}
}]);
return ListSlice;
}();
var EMPTY_SLICE = new ListSlice(null, null),
EMPTY_ARRAY = Object.freeze([]),
entityParser = new EntityParser(namedCharRefs);
var Parser = function () {
function Parser(t) {
var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
_classCallCheck(this, Parser);
this.elementStack = [], this.currentAttribute = null, this.currentNode = null, this.tokenizer = new EventedTokenizer(this, entityParser), this.options = e, this.tokenizer.states.tagOpen = function () {
var t = this.consume();"!" === t ? this.state = "markupDeclaration" : "/" === t ? this.state = "endTagOpen" : /[A-Za-z]/.test(t) && (this.state = "tagName", this.delegate.beginStartTag(), this.delegate.appendToTagName(t));
}, this.tokenizer.states.endTagOpen = function () {
var t = this.consume();/[A-Za-z]/.test(t) && (this.state = "tagName", this.delegate.beginEndTag(), this.delegate.appendToTagName(t));
}, this.source = t.split(/(?:\r\n?|\n)/g);
}
_createClass(Parser, [{
key: "acceptNode",
value: function acceptNode(t) {
return this[t.type](t);
}
}, {
key: "currentElement",
value: function currentElement() {
return this.elementStack[this.elementStack.length - 1];
}
}, {
key: "sourceForNode",
value: function sourceForNode(t, e) {
var r = void 0,
a = void 0,
i = void 0,
n = t.loc.start.line - 1,
s = n - 1,
o = t.loc.start.column,
l = [];for (e ? (a = e.loc.end.line - 1, i = e.loc.end.column) : (a = t.loc.end.line - 1, i = t.loc.end.column); s < a;) {
s++, r = this.source[s], s === n ? n === a ? l.push(r.slice(o, i)) : l.push(r.slice(o)) : s === a ? l.push(r.slice(0, i)) : l.push(r);
}return l.join("\n");
}
}, {
key: "currentAttr",
get: function get() {
return this.currentAttribute;
}
}, {
key: "currentTag",
get: function get() {
var t = this.currentNode;return t;
}
}, {
key: "currentStartTag",
get: function get() {
var t = this.currentNode;return t;
}
}, {
key: "currentEndTag",
get: function get() {
var t = this.currentNode;return t;
}
}, {
key: "currentComment",
get: function get() {
var t = this.currentNode;return t;
}
}, {
key: "currentData",
get: function get() {
var t = this.currentNode;return t;
}
}]);
return Parser;
}();
var HandlebarsNodeVisitors = function (_Parser) {
_inherits(HandlebarsNodeVisitors, _Parser);
function HandlebarsNodeVisitors() {
var _this;
_classCallCheck(this, HandlebarsNodeVisitors);
(_this = _possibleConstructorReturn(this, (HandlebarsNodeVisitors.__proto__ || Object.getPrototypeOf(HandlebarsNodeVisitors)).apply(this, arguments)), _this), _this.cursorCount = 0;return _this;
}
_createClass(HandlebarsNodeVisitors, [{
key: "cursor",
value: function cursor() {
return "%cursor:" + this.cursorCount++ + "%";
}
}, {
key: "Program",
value: function Program(t) {
this.cursorCount = 0;var e = void 0,
r = b.program([], t.blockParams, t.loc),
a = t.body.length;if (this.elementStack.push(r), 0 === a) return this.elementStack.pop();for (e = 0; e < a; e++) {
this.acceptNode(t.body[e]);
}var i = this.elementStack.pop();if (i !== r) {
var _t = i;throw new SyntaxError$1("Unclosed element `" + _t.tag + "` (on line " + _t.loc.start.line + ").", _t.loc);
}return r;
}
}, {
key: "BlockStatement",
value: function BlockStatement(t) {
if ("comment" === this.tokenizer.state) return void this.appendToCommentData(this.sourceForNode(t));if ("comment" !== this.tokenizer.state && "data" !== this.tokenizer.state && "beforeData" !== this.tokenizer.state) throw new SyntaxError$1("A block may only be used inside an HTML element or another block.", t.loc);
var _acceptCallNodes = acceptCallNodes(this, t),
e = _acceptCallNodes.path,
r = _acceptCallNodes.params,
a = _acceptCallNodes.hash,
i = this.Program(t.program),
n = t.inverse ? this.Program(t.inverse) : null;
"in-element" === e.original && (a = addInElementHash(this.cursor(), a, t.loc));var s = b.block(e, r, a, i, n, t.loc);appendChild(this.currentElement(), s);
}
}, {
key: "MustacheStatement",
value: function MustacheStatement(t) {
var e = void 0,
r = this.tokenizer;if ("comment" === r.state) return void this.appendToCommentData(this.sourceForNode(t));var a = t.escaped,
i = t.loc;
if (t.path.type.match(/Literal$/)) e = { type: "MustacheStatement", path: this.acceptNode(t.path), params: [], hash: b.hash(), escaped: a, loc: i };else {
var _acceptCallNodes2 = acceptCallNodes(this, t),
_r = _acceptCallNodes2.path,
n = _acceptCallNodes2.params,
s = _acceptCallNodes2.hash;
e = b.mustache(_r, n, s, !a, i);
}switch (r.state) {case "tagName":
addElementModifier(this.currentStartTag, e), r.state = "beforeAttributeName";break;case "beforeAttributeName":
addElementModifier(this.currentStartTag, e);break;case "attributeName":case "afterAttributeName":
this.beginAttributeValue(!1), this.finishAttributeValue(), addElementModifier(this.currentStartTag, e), r.state = "beforeAttributeName";break;case "afterAttributeValueQuoted":
addElementModifier(this.currentStartTag, e), r.state = "beforeAttributeName";break;case "beforeAttributeValue":
this.beginAttributeValue(!1), appendDynamicAttributeValuePart(this.currentAttribute, e), r.state = "attributeValueUnquoted";break;case "attributeValueDoubleQuoted":case "attributeValueSingleQuoted":case "attributeValueUnquoted":
appendDynamicAttributeValuePart(this.currentAttribute, e);break;default:
appendChild(this.currentElement(), e);}return e;
}
}, {
key: "ContentStatement",
value: function ContentStatement(t) {
updateTokenizerLocation(this.tokenizer, t), this.tokenizer.tokenizePart(t.value), this.tokenizer.flushData();
}
}, {
key: "CommentStatement",
value: function CommentStatement(t) {
var e = this.tokenizer;
if ("comment" === e.state) return this.appendToCommentData(this.sourceForNode(t)), null;var r = t.value,
a = t.loc,
i = b.mustacheComment(r, a);
switch (e.state) {case "beforeAttributeName":
this.currentStartTag.comments.push(i);break;case "beforeData":case "data":
appendChild(this.currentElement(), i);break;default:
throw new SyntaxError$1("Using a Handlebars comment when in the `" + e.state + "` state is not supported: \"" + i.value + "\" on line " + a.start.line + ":" + a.start.column, t.loc);}return i;
}
}, {
key: "PartialStatement",
value: function PartialStatement(t) {
var e = t.loc;
throw new SyntaxError$1("Handlebars partials are not supported: \"" + this.sourceForNode(t, t.name) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
}
}, {
key: "PartialBlockStatement",
value: function PartialBlockStatement(t) {
var e = t.loc;
throw new SyntaxError$1("Handlebars partial blocks are not supported: \"" + this.sourceForNode(t, t.name) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
}
}, {
key: "Decorator",
value: function Decorator(t) {
var e = t.loc;
throw new SyntaxError$1("Handlebars decorators are not supported: \"" + this.sourceForNode(t, t.path) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
}
}, {
key: "DecoratorBlock",
value: function DecoratorBlock(t) {
var e = t.loc;
throw new SyntaxError$1("Handlebars decorator blocks are not supported: \"" + this.sourceForNode(t, t.path) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
}
}, {
key: "SubExpression",
value: function SubExpression(t) {
var _acceptCallNodes3 = acceptCallNodes(this, t),
e = _acceptCallNodes3.path,
r = _acceptCallNodes3.params,
a = _acceptCallNodes3.hash;
return b.sexpr(e, r, a, t.loc);
}
}, {
key: "PathExpression",
value: function PathExpression(t) {
var e = void 0,
r = t.original,
a = t.loc;if (-1 !== r.indexOf("/")) {
if ("./" === r.slice(0, 2)) throw new SyntaxError$1("Using \"./\" is not supported in Glimmer and unnecessary: \"" + t.original + "\" on line " + a.start.line + ".", t.loc);if ("../" === r.slice(0, 3)) throw new SyntaxError$1("Changing context using \"../\" is not supported in Glimmer: \"" + t.original + "\" on line " + a.start.line + ".", t.loc);if (-1 !== r.indexOf(".")) throw new SyntaxError$1("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths: \"" + t.original + "\" on line " + a.start.line + ".", t.loc);e = [t.parts.join("/")];
} else e = t.parts;var i = !1;return r.match(/^this(\..+)?$/) && (i = !0), { type: "PathExpression", original: t.original, this: i, parts: e, data: t.data, loc: t.loc };
}
}, {
key: "Hash",
value: function Hash(t) {
var e = [];for (var r = 0; r < t.pairs.length; r++) {
var a = t.pairs[r];e.push(b.pair(a.key, this.acceptNode(a.value), a.loc));
}return b.hash(e, t.loc);
}
}, {
key: "StringLiteral",
value: function StringLiteral(t) {
return b.literal("StringLiteral", t.value, t.loc);
}
}, {
key: "BooleanLiteral",
value: function BooleanLiteral(t) {
return b.literal("BooleanLiteral", t.value, t.loc);
}
}, {
key: "NumberLiteral",
value: function NumberLiteral(t) {
return b.literal("NumberLiteral", t.value, t.loc);
}
}, {
key: "UndefinedLiteral",
value: function UndefinedLiteral(t) {
return b.literal("UndefinedLiteral", void 0, t.loc);
}
}, {
key: "NullLiteral",
value: function NullLiteral(t) {
return b.literal("NullLiteral", null, t.loc);
}
}]);
return HandlebarsNodeVisitors;
}(Parser);
function calculateRightStrippedOffsets(t, e) {
if ("" === e) return { lines: t.split("\n").length - 1, columns: 0 };var r = t.split(e)[0].split(/\n/),
a = r.length - 1;return { lines: a, columns: r[a].length };
}function updateTokenizerLocation(t, e) {
var r = e.loc.start.line,
a = e.loc.start.column,
i = calculateRightStrippedOffsets(e.original, e.value);r += i.lines, i.lines ? a = i.columns : a += i.columns, t.line = r, t.column = a;
}function acceptCallNodes(t, e) {
return { path: t.PathExpression(e.path), params: e.params ? e.params.map(function (e) {
return t.acceptNode(e);
}) : [], hash: e.hash ? t.Hash(e.hash) : b.hash() };
}function addElementModifier(t, e) {
var r = e.path,
a = e.params,
i = e.hash,
n = e.loc;
if (isLiteral$1(r)) {
var _a2 = "{{" + printLiteral(r) + "}}",
_i = "<" + t.name + " ... " + _a2 + " ...";throw new SyntaxError$1("In " + _i + ", " + _a2 + " is not a valid modifier: \"" + r.original + "\" on line " + (n && n.start.line) + ".", e.loc);
}var s = b.elementModifier(r, a, i, n);t.modifiers.push(s);
}function addInElementHash(t, e, r) {
var a = !1;e.pairs.forEach(function (t) {
if ("guid" === t.key) throw new SyntaxError$1("Cannot pass `guid` from user space", r);"nextSibling" === t.key && (a = !0);
});var i = b.literal("StringLiteral", t),
n = b.pair("guid", i);if (e.pairs.unshift(n), !a) {
var _t2 = b.literal("NullLiteral", null),
_r2 = b.pair("nextSibling", _t2);e.pairs.push(_r2);
}return e;
}function appendDynamicAttributeValuePart(t, e) {
t.isDynamic = !0, t.parts.push(e);
}var visitorKeys = { Program: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], PartialStatement: ["name", "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"] };var TraversalError = function () {
function t(t, e, r, a) {
var i = Error.call(this, t);this.key = a, this.message = t, this.node = e, this.parent = r, this.stack = i.stack;
}return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
}();function cannotRemoveNode(t, e, r) {
return new TraversalError("Cannot remove a node unless it is part of an array", t, e, r);
}function cannotReplaceNode(t, e, r) {
return new TraversalError("Cannot replace a node with multiple nodes unless it is part of an array", t, e, r);
}function cannotReplaceOrRemoveInKeyHandlerYet(t, e) {
return new TraversalError("Replacing and removing in key handlers is not yet supported.", t, null, e);
}function visitNode(t, e) {
var r = void 0,
a = t[e.type] || t.All || null;if (a && a.enter && (r = a.enter.call(null, e)), void 0 !== r && null !== r) {
if (JSON.stringify(e) !== JSON.stringify(r)) return Array.isArray(r) ? visitArray(t, r) || r : visitNode(t, r) || r;r = void 0;
}if (void 0 === r) {
var i = visitorKeys[e.type];for (var _r3 = 0; _r3 < i.length; _r3++) {
visitKey(t, a, e, i[_r3]);
}a && a.exit && (r = a.exit.call(null, e));
}return r;
}function visitKey(t, e, r, a) {
var i = r[a];if (!i) return;var n = void 0,
s = e && (e.keys[a] || e.keys.All);if (s && s.enter && void 0 !== (n = s.enter.call(null, r, a))) throw cannotReplaceOrRemoveInKeyHandlerYet(r, a);if (Array.isArray(i)) visitArray(t, i);else {
var _e4 = visitNode(t, i);void 0 !== _e4 && assignKey(r, a, _e4);
}if (s && s.exit && void 0 !== (n = s.exit.call(null, r, a))) throw cannotReplaceOrRemoveInKeyHandlerYet(r, a);
}function visitArray(t, e) {
for (var r = 0; r < e.length; r++) {
var a = visitNode(t, e[r]);void 0 !== a && (r += spliceArray(e, r, a) - 1);
}
}function assignKey(t, e, r) {
if (null === r) throw cannotRemoveNode(t[e], t, e);if (Array.isArray(r)) {
if (1 !== r.length) throw 0 === r.length ? cannotRemoveNode(t[e], t, e) : cannotReplaceNode(t[e], t, e);t[e] = r[0];
} else t[e] = r;
}function spliceArray(t, e, r) {
return null === r ? (t.splice(e, 1), 0) : Array.isArray(r) ? (t.splice.apply(t, [e, 1].concat(_toConsumableArray(r))), r.length) : (t.splice(e, 1, r), 1);
}function traverse(t, e) {
visitNode(normalizeVisitor(e), t);
}function normalizeVisitor(t) {
var e = {};for (var r in t) {
var a = t[r] || t.All,
i = {};if ("object" == (typeof a === "undefined" ? "undefined" : _typeof(a))) {
var _t3 = a.keys;if (_t3) for (var _e5 in _t3) {
var _r4 = _t3[_e5];"object" == (typeof _r4 === "undefined" ? "undefined" : _typeof(_r4)) ? i[_e5] = { enter: "function" == typeof _r4.enter ? _r4.enter : null, exit: "function" == typeof _r4.exit ? _r4.exit : null } : "function" == typeof _r4 && (i[_e5] = { enter: _r4, exit: null });
}e[r] = { enter: "function" == typeof a.enter ? a.enter : null, exit: "function" == typeof a.exit ? a.exit : null, keys: i };
} else "function" == typeof a && (e[r] = { enter: a, exit: null, keys: i });
}return e;
}function unreachable$1() {
throw new Error("unreachable");
}function build(t) {
if (!t) return "";var e = [];switch (t.type) {case "Program":
{
var _r5 = t.chained && t.body[0];_r5 && (_r5.chained = !0);var a = buildEach(t.body).join("");e.push(a);
}break;case "ElementNode":
e.push("<", t.tag), t.attributes.length && e.push(" ", buildEach(t.attributes).join(" ")), t.modifiers.length && e.push(" ", buildEach(t.modifiers).join(" ")), t.comments.length && e.push(" ", buildEach(t.comments).join(" ")), e.push(">"), e.push.apply(e, buildEach(t.children)), e.push("</", t.tag, ">");break;case "AttrNode":
e.push(t.name, "=");var r = build(t.value);"TextNode" === t.value.type ? e.push('"', r, '"') : e.push(r);break;case "ConcatStatement":
e.push('"'), t.parts.forEach(function (t) {
"StringLiteral" === t.type ? e.push(t.original) : e.push(build(t));
}), e.push('"');break;case "TextNode":
e.push(t.chars);break;case "MustacheStatement":
e.push(compactJoin(["{{", pathParams(t), "}}"]));break;case "MustacheCommentStatement":
e.push(compactJoin(["{{!--", t.value, "--}}"]));break;case "ElementModifierStatement":
e.push(compactJoin(["{{", pathParams(t), "}}"]));break;case "PathExpression":
e.push(t.original);break;case "SubExpression":
e.push("(", pathParams(t), ")");break;case "BooleanLiteral":
e.push(t.value ? "true" : "false");break;case "BlockStatement":
{
var _r6 = [];t.chained ? _r6.push(["{{else ", pathParams(t), "}}"].join("")) : _r6.push(openBlock(t)), _r6.push(build(t.program)), t.inverse && (t.inverse.chained || _r6.push("{{else}}"), _r6.push(build(t.inverse))), t.chained || _r6.push(closeBlock(t)), e.push(_r6.join(""));
}break;case "PartialStatement":
e.push(compactJoin(["{{>", pathParams(t), "}}"]));break;case "CommentStatement":
e.push(compactJoin(["\x3c!--", t.value, "--\x3e"]));break;case "StringLiteral":
e.push("\"" + t.value + "\"");break;case "NumberLiteral":
e.push(String(t.value));break;case "UndefinedLiteral":
e.push("undefined");break;case "NullLiteral":
e.push("null");break;case "Hash":
e.push(t.pairs.map(function (t) {
return build(t);
}).join(" "));break;case "HashPair":
e.push(t.key + "=" + build(t.value));}return e.join("");
}function compact(t) {
var e = [];return t.forEach(function (t) {
void 0 !== t && null !== t && "" !== t && e.push(t);
}), e;
}function buildEach(t) {
return t.map(build);
}function pathParams(t) {
var e = void 0;switch (t.type) {case "MustacheStatement":case "SubExpression":case "ElementModifierStatement":case "BlockStatement":
if (isLiteral(t.path)) return String(t.path.value);e = build(t.path);break;case "PartialStatement":
e = build(t.name);break;default:
return unreachable$1();}return compactJoin([e, buildEach(t.params).join(" "), build(t.hash)], " ");
}function compactJoin(t, e) {
return compact(t).join(e || "");
}function blockParams(t) {
var e = t.program.blockParams;return e.length ? " as |" + e.join(" ") + "|" : null;
}function openBlock(t) {
return ["{{#", pathParams(t), blockParams(t), "}}"].join("");
}function closeBlock(t) {
return ["{{/", build(t.path), "}}"].join("");
}
var Walker = function () {
function Walker(t) {
_classCallCheck(this, Walker);
this.order = t, this.stack = [];
}
_createClass(Walker, [{
key: "visit",
value: function visit(t, e) {
t && (this.stack.push(t), "post" === this.order ? (this.children(t, e), e(t, this)) : (e(t, this), this.children(t, e)), this.stack.pop());
}
}, {
key: "children",
value: function children(t, e) {
var r = visitors[t.type];r && r(this, t, e);
}
}]);
return Walker;
}();
var visitors = {
Program: function Program(t, e, r) {
for (var a = 0; a < e.body.length; a++) {
t.visit(e.body[a], r);
}
},
ElementNode: function ElementNode(t, e, r) {
for (var a = 0; a < e.children.length; a++) {
t.visit(e.children[a], r);
}
},
BlockStatement: function BlockStatement(t, e, r) {
t.visit(e.program, r), t.visit(e.inverse || null, r);
}
};var commonjsGlobal = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};function unwrapExports(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}function createCommonjsModule(t, e) {
return t(e = { exports: {} }, e.exports), e.exports;
}var utils = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.extend = s, e.indexOf = function (t, e) {
for (var r = 0, a = t.length; r < a; r++) {
if (t[r] === e) return r;
}return -1;
}, e.escapeExpression = function (t) {
if ("string" != typeof t) {
if (t && t.toHTML) return t.toHTML();if (null == t) return "";if (!t) return t + "";t = "" + t;
}if (!i.test(t)) return t;return t.replace(a, n);
}, e.isEmpty = function (t) {
return !t && 0 !== t || !(!c(t) || 0 !== t.length);
}, e.createFrame = function (t) {
var e = s({}, t);return e._parent = t, e;
}, e.blockParams = function (t, e) {
return t.path = e, t;
}, e.appendContextPath = function (t, e) {
return (t ? t + "." : "") + e;
};var r = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`", "=": "=" },
a = /[&<>"'`=]/g,
i = /[&<>"'`=]/;function n(t) {
return r[t];
}function s(t) {
for (var e = 1; e < arguments.length; e++) {
for (var r in arguments[e]) {
Object.prototype.hasOwnProperty.call(arguments[e], r) && (t[r] = arguments[e][r]);
}
}return t;
}var o = Object.prototype.toString;e.toString = o;var l = function l(t) {
return "function" == typeof t;
};l(/x/) && (e.isFunction = l = function l(t) {
return "function" == typeof t && "[object Function]" === o.call(t);
}), e.isFunction = l;var c = Array.isArray || function (t) {
return !(!t || "object" != (typeof t === "undefined" ? "undefined" : _typeof(t))) && "[object Array]" === o.call(t);
};e.isArray = c;
});unwrapExports(utils);var exception = createCommonjsModule(function (t, e) {
e.__esModule = !0;var r = ["description", "fileName", "lineNumber", "message", "name", "number", "stack"];function a(t, e) {
var i = e && e.loc,
n = void 0,
s = void 0;i && (t += " - " + (n = i.start.line) + ":" + (s = i.start.column));for (var o = Error.prototype.constructor.call(this, t), l = 0; l < r.length; l++) {
this[r[l]] = o[r[l]];
}Error.captureStackTrace && Error.captureStackTrace(this, a);try {
i && (this.lineNumber = n, Object.defineProperty ? Object.defineProperty(this, "column", { value: s, enumerable: !0 }) : this.column = s);
} catch (t) {}
}a.prototype = new Error(), e.default = a, t.exports = e.default;
});unwrapExports(exception);var blockHelperMissing = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
t.registerHelper("blockHelperMissing", function (e, r) {
var a = r.inverse,
i = r.fn;if (!0 === e) return i(this);if (!1 === e || null == e) return a(this);if (utils.isArray(e)) return e.length > 0 ? (r.ids && (r.ids = [r.name]), t.helpers.each(e, r)) : a(this);if (r.data && r.ids) {
var n = utils.createFrame(r.data);n.contextPath = utils.appendContextPath(r.data.contextPath, r.name), r = { data: n };
}return i(e, r);
});
}, t.exports = e.default;
});unwrapExports(blockHelperMissing);var each = createCommonjsModule(function (t, e) {
e.__esModule = !0;var r,
a = (r = exception) && r.__esModule ? r : { default: r };e.default = function (t) {
t.registerHelper("each", function (t, e) {
if (!e) throw new a.default("Must pass iterator to #each");var r = e.fn,
i = e.inverse,
n = 0,
s = "",
o = void 0,
l = void 0;function c(e, a, i) {
o && (o.key = e, o.index = a, o.first = 0 === a, o.last = !!i, l && (o.contextPath = l + e)), s += r(t[e], { data: o, blockParams: utils.blockParams([t[e], e], [l + e, null]) });
}if (e.data && e.ids && (l = utils.appendContextPath(e.data.contextPath, e.ids[0]) + "."), utils.isFunction(t) && (t = t.call(this)), e.data && (o = utils.createFrame(e.data)), t && "object" == (typeof t === "undefined" ? "undefined" : _typeof(t))) if (utils.isArray(t)) for (var u = t.length; n < u; n++) {
n in t && c(n, n, n === t.length - 1);
} else {
var p = void 0;for (var h in t) {
t.hasOwnProperty(h) && (void 0 !== p && c(p, n - 1), p = h, n++);
}void 0 !== p && c(p, n - 1, !0);
}return 0 === n && (s = i(this)), s;
});
}, t.exports = e.default;
});unwrapExports(each);var helperMissing = createCommonjsModule(function (t, e) {
e.__esModule = !0;var r,
a = (r = exception) && r.__esModule ? r : { default: r };e.default = function (t) {
t.registerHelper("helperMissing", function () {
if (1 !== arguments.length) throw new a.default('Missing helper: "' + arguments[arguments.length - 1].name + '"');
});
}, t.exports = e.default;
});unwrapExports(helperMissing);var _if = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
t.registerHelper("if", function (t, e) {
return utils.isFunction(t) && (t = t.call(this)), !e.hash.includeZero && !t || utils.isEmpty(t) ? e.inverse(this) : e.fn(this);
}), t.registerHelper("unless", function (e, r) {
return t.helpers.if.call(this, e, { fn: r.inverse, inverse: r.fn, hash: r.hash });
});
}, t.exports = e.default;
});unwrapExports(_if);var log = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
t.registerHelper("log", function () {
for (var e = [void 0], r = arguments[arguments.length - 1], a = 0; a < arguments.length - 1; a++) {
e.push(arguments[a]);
}var i = 1;null != r.hash.level ? i = r.hash.level : r.data && null != r.data.level && (i = r.data.level), e[0] = i, t.log.apply(t, e);
});
}, t.exports = e.default;
});unwrapExports(log);var lookup = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
t.registerHelper("lookup", function (t, e) {
return t && t[e];
});
}, t.exports = e.default;
});unwrapExports(lookup);var _with = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
t.registerHelper("with", function (t, e) {
utils.isFunction(t) && (t = t.call(this));var r = e.fn;if (utils.isEmpty(t)) return e.inverse(this);var a = e.data;return e.data && e.ids && ((a = utils.createFrame(e.data)).contextPath = utils.appendContextPath(e.data.contextPath, e.ids[0])), r(t, { data: a, blockParams: utils.blockParams([t], [a && a.contextPath]) });
});
}, t.exports = e.default;
});unwrapExports(_with);var helpers = createCommonjsModule(function (t, e) {
function r(t) {
return t && t.__esModule ? t : { default: t };
}e.__esModule = !0, e.registerDefaultHelpers = function (t) {
a.default(t), i.default(t), n.default(t), s.default(t), o.default(t), l.default(t), c.default(t);
};var a = r(blockHelperMissing),
i = r(each),
n = r(helperMissing),
s = r(_if),
o = r(log),
l = r(lookup),
c = r(_with);
});unwrapExports(helpers);var inline = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
t.registerDecorator("inline", function (t, e, r, a) {
var i = t;return e.partials || (e.partials = {}, i = function i(a, _i2) {
var n = r.partials;r.partials = utils.extend({}, n, e.partials);var s = t(a, _i2);return r.partials = n, s;
}), e.partials[a.args[0]] = a.fn, i;
});
}, t.exports = e.default;
});unwrapExports(inline);var decorators = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.registerDefaultDecorators = function (t) {
a.default(t);
};var r,
a = (r = inline) && r.__esModule ? r : { default: r };
});unwrapExports(decorators);var logger_1 = createCommonjsModule(function (t, e) {
e.__esModule = !0;var r = { methodMap: ["debug", "info", "warn", "error"], level: "info", lookupLevel: function lookupLevel(t) {
if ("string" == typeof t) {
var e = utils.indexOf(r.methodMap, t.toLowerCase());t = e >= 0 ? e : parseInt(t, 10);
}return t;
}, log: function log(t) {
if (t = r.lookupLevel(t), "undefined" != typeof console && r.lookupLevel(r.level) <= t) {
var e = r.methodMap[t];console[e] || (e = "log");for (var a = arguments.length, i = Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++) {
i[n - 1] = arguments[n];
}console[e].apply(console, i);
}
} };e.default = r, t.exports = e.default;
});unwrapExports(logger_1);var base = createCommonjsModule(function (t, e) {
function r(t) {
return t && t.__esModule ? t : { default: t };
}e.__esModule = !0, e.HandlebarsEnvironment = n;var a = r(exception),
i = r(logger_1);e.VERSION = "4.0.10";e.COMPILER_REVISION = 7;e.REVISION_CHANGES = { 1: "<= 1.0.rc.2", 2: "== 1.0.0-rc.3", 3: "== 1.0.0-rc.4", 4: "== 1.x.x", 5: "== 2.0.0-alpha.x", 6: ">= 2.0.0-beta.1", 7: ">= 4.0.0" };function n(t, e, r) {
this.helpers = t || {}, this.partials = e || {}, this.decorators = r || {}, helpers.registerDefaultHelpers(this), decorators.registerDefaultDecorators(this);
}n.prototype = { constructor: n, logger: i.default, log: i.default.log, registerHelper: function registerHelper(t, e) {
if ("[object Object]" === utils.toString.call(t)) {
if (e) throw new a.default("Arg not supported with multiple helpers");utils.extend(this.helpers, t);
} else this.helpers[t] = e;
}, unregisterHelper: function unregisterHelper(t) {
delete this.helpers[t];
}, registerPartial: function registerPartial(t, e) {
if ("[object Object]" === utils.toString.call(t)) utils.extend(this.partials, t);else {
if (void 0 === e) throw new a.default('Attempting to register a partial called "' + t + '" as undefined');this.partials[t] = e;
}
}, unregisterPartial: function unregisterPartial(t) {
delete this.partials[t];
}, registerDecorator: function registerDecorator(t, e) {
if ("[object Object]" === utils.toString.call(t)) {
if (e) throw new a.default("Arg not supported with multiple decorators");utils.extend(this.decorators, t);
} else this.decorators[t] = e;
}, unregisterDecorator: function unregisterDecorator(t) {
delete this.decorators[t];
} };var s = i.default.log;e.log = s, e.createFrame = utils.createFrame, e.logger = i.default;
});unwrapExports(base);var safeString = createCommonjsModule(function (t, e) {
function r(t) {
this.string = t;
}e.__esModule = !0, r.prototype.toString = r.prototype.toHTML = function () {
return "" + this.string;
}, e.default = r, t.exports = e.default;
});unwrapExports(safeString);var runtime = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.checkRevision = function (t) {
var e = t && t[0] || 1,
r = base.COMPILER_REVISION;if (e !== r) {
if (e < r) {
var a = base.REVISION_CHANGES[r],
n = base.REVISION_CHANGES[e];throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + a + ") or downgrade your runtime to an older version (" + n + ").");
}throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + t[1] + ").");
}
}, e.template = function (t, e) {
if (!e) throw new i.default("No environment passed to template");if (!t || !t.main) throw new i.default("Unknown template object: " + (typeof t === "undefined" ? "undefined" : _typeof(t)));t.main.decorator = t.main_d, e.VM.checkRevision(t.compiler);var r = { strict: function strict(t, e) {
if (!(e in t)) throw new i.default('"' + e + '" not defined in ' + t);return t[e];
}, lookup: function lookup(t, e) {
for (var r = t.length, a = 0; a < r; a++) {
if (t[a] && null != t[a][e]) return t[a][e];
}
}, lambda: function lambda(t, e) {
return "function" == typeof t ? t.call(e) : t;
}, escapeExpression: a.escapeExpression, invokePartial: function invokePartial(r, n, s) {
s.hash && (n = a.extend({}, n, s.hash), s.ids && (s.ids[0] = !0));r = e.VM.resolvePartial.call(this, r, n, s);var o = e.VM.invokePartial.call(this, r, n, s);null == o && e.compile && (s.partials[s.name] = e.compile(r, t.compilerOptions, e), o = s.partials[s.name](n, s));if (null != o) {
if (s.indent) {
for (var l = o.split("\n"), c = 0, u = l.length; c < u && (l[c] || c + 1 !== u); c++) {
l[c] = s.indent + l[c];
}o = l.join("\n");
}return o;
}throw new i.default("The partial " + s.name + " could not be compiled when running in runtime-only mode");
}, fn: function fn(e) {
var r = t[e];return r.decorator = t[e + "_d"], r;
}, programs: [], program: function program(t, e, r, a, i) {
var s = this.programs[t],
o = this.fn(t);return e || i || a || r ? s = n(this, t, o, e, r, a, i) : s || (s = this.programs[t] = n(this, t, o)), s;
}, data: function data(t, e) {
for (; t && e--;) {
t = t._parent;
}return t;
}, merge: function merge(t, e) {
var r = t || e;return t && e && t !== e && (r = a.extend({}, e, t)), r;
}, nullContext: Object.seal({}), noop: e.VM.noop, compilerInfo: t.compiler };function s(e) {
var a = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1],
i = a.data;s._setup(a), !a.partial && t.useData && (i = function (t, e) {
e && "root" in e || ((e = e ? base.createFrame(e) : {}).root = t);return e;
}(e, i));var n = void 0,
l = t.useBlockParams ? [] : void 0;function c(e) {
return "" + t.main(r, e, r.helpers, r.partials, i, l, n);
}return t.useDepths && (n = a.depths ? e != a.depths[0] ? [e].concat(a.depths) : a.depths : [e]), (c = o(t.main, c, r, a.depths || [], i, l))(e, a);
}return s.isTop = !0, s._setup = function (a) {
a.partial ? (r.helpers = a.helpers, r.partials = a.partials, r.decorators = a.decorators) : (r.helpers = r.merge(a.helpers, e.helpers), t.usePartial && (r.partials = r.merge(a.partials, e.partials)), (t.usePartial || t.useDecorators) && (r.decorators = r.merge(a.decorators, e.decorators)));
}, s._child = function (e, a, s, o) {
if (t.useBlockParams && !s) throw new i.default("must pass block params");if (t.useDepths && !o) throw new i.default("must pass parent depths");return n(r, e, t[e], a, 0, s, o);
}, s;
}, e.wrapProgram = n, e.resolvePartial = function (t, e, r) {
t ? t.call || r.name || (r.name = t, t = r.partials[t]) : t = "@partial-block" === r.name ? r.data["partial-block"] : r.partials[r.name];return t;
}, e.invokePartial = function (t, e, r) {
var n = r.data && r.data["partial-block"];r.partial = !0, r.ids && (r.data.contextPath = r.ids[0] || r.data.contextPath);var o = void 0;r.fn && r.fn !== s && function () {
r.data = base.createFrame(r.data);var t = r.fn;o = r.data["partial-block"] = function (e) {
var r = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1];return r.data = base.createFrame(r.data), r.data["partial-block"] = n, t(e, r);
}, t.partials && (r.partials = a.extend({}, r.partials, t.partials));
}();void 0 === t && o && (t = o);if (void 0 === t) throw new i.default("The partial " + r.name + " could not be found");if (t instanceof Function) return t(e, r);
}, e.noop = s;var r,
a = function (t) {
if (t && t.__esModule) return t;var e = {};if (null != t) for (var r in t) {
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
}return e.default = t, e;
}(utils),
i = (r = exception) && r.__esModule ? r : { default: r };function n(t, e, r, a, i, n, s) {
function l(e) {
var i = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1],
o = s;return !s || e == s[0] || e === t.nullContext && null === s[0] || (o = [e].concat(s)), r(t, e, t.helpers, t.partials, i.data || a, n && [i.blockParams].concat(n), o);
}return (l = o(r, l, t, s, a, n)).program = e, l.depth = s ? s.length : 0, l.blockParams = i || 0, l;
}function s() {
return "";
}function o(t, e, r, i, n, s) {
if (t.decorator) {
var o = {};e = t.decorator(e, o, r, i && i[0], n, s, i), a.extend(e, o);
}return e;
}
});unwrapExports(runtime);var noConflict = createCommonjsModule(function (t, e) {
e.__esModule = !0, e.default = function (t) {
var e = void 0 !== commonjsGlobal ? commonjsGlobal : window,
r = e.Handlebars;t.noConflict = function () {
return e.Handlebars === t && (e.Handlebars = r), t;
};
}, t.exports = e.default;
});unwrapExports(noConflict);var handlebars_runtime = createCommonjsModule(function (t, e) {
function r(t) {
return t && t.__esModule ? t : { default: t };
}function a(t) {
if (t && t.__esModule) return t;var e = {};if (null != t) for (var r in t) {
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
}return e.default = t, e;
}e.__esModule = !0;var i = a(base),
n = r(safeString),
s = r(exception),
o = a(utils),
l = a(runtime),
c = r(noConflict);function u() {
var t = new i.HandlebarsEnvironment();return o.extend(t, i), t.SafeString = n.default, t.Exception = s.default, t.Utils = o, t.escapeExpression = o.escapeExpression, t.VM = l, t.template = function (e) {
return l.template(e, t);
}, t;
}var p = u();p.create = u, c.default(p), p.default = p, e.default = p, t.exports = e.default;
});unwrapExports(handlebars_runtime);var ast = createCommonjsModule(function (t, e) {
e.__esModule = !0;var r = { helpers: { helperExpression: function helperExpression(t) {
return "SubExpression" === t.type || ("MustacheStatement" === t.type || "BlockStatement" === t.type) && !!(t.params && t.params.length || t.hash);
}, scopedId: function scopedId(t) {
return (/^\.|this\b/.test(t.original)
);
}, simpleId: function simpleId(t) {
return 1 === t.parts.length && !r.helpers.scopedId(t) && !t.depth;
} } };e.default = r, t.exports = e.default;
});unwrapExports(ast);var parser = createCommonjsModule(function (t, e) {
e.__esModule = !0;var r = function () {
var t = { trace: function trace() {}, 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_repetition_plus0: 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, mustache_repetition0: 49, mustache_option0: 50, OPEN_UNESCAPED: 51, mustache_repetition1: 52, mustache_option1: 53, CLOSE_UNESCAPED: 54, OPEN_PARTIAL: 55, partialName: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, param: 63, sexpr: 64, OPEN_SEXPR: 65, sexpr_repetition0: 66, sexpr_option0: 67, CLOSE_SEXPR: 68, hash: 69, hash_repetition_plus0: 70, hashSegment: 71, ID: 72, EQUALS: 73, blockParams: 74, OPEN_BLOCK_PARAMS: 75, blockParams_repetition_plus0: 76, CLOSE_BLOCK_PARAMS: 77, path: 78, dataName: 79, STRING: 80, NUMBER: 81, BOOLEAN: 82, UNDEFINED: 83, NULL: 84, DATA: 85, pathSegments: 86, SEP: 87, $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", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "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], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 1], [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], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]], performAction: function performAction(t, e, r, a, i, n, s) {
var o = n.length - 1;switch (i) {case 1:
return n[o - 1];case 2:
this.$ = a.prepareProgram(n[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:
this.$ = n[o];break;case 9:
this.$ = { type: "CommentStatement", value: a.stripComment(n[o]), strip: a.stripFlags(n[o], n[o]), loc: a.locInfo(this._$) };break;case 10:
this.$ = { type: "ContentStatement", original: n[o], value: n[o], loc: a.locInfo(this._$) };break;case 11:
this.$ = a.prepareRawBlock(n[o - 2], n[o - 1], n[o], this._$);break;case 12: