Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80713 views
1
/* jshint ignore:start */
2
/* istanbul ignore next */
3
/* Jison generated parser */
4
var handlebars = (function(){
5
var parser = {trace: function trace() { },
6
yy: {},
7
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"program_repetition0":6,"statement":7,"mustache":8,"block":9,"rawBlock":10,"partial":11,"content":12,"COMMENT":13,"CONTENT":14,"openRawBlock":15,"END_RAW_BLOCK":16,"OPEN_RAW_BLOCK":17,"helperName":18,"openRawBlock_repetition0":19,"openRawBlock_option0":20,"CLOSE_RAW_BLOCK":21,"openBlock":22,"block_option0":23,"closeBlock":24,"openInverse":25,"block_option1":26,"OPEN_BLOCK":27,"openBlock_repetition0":28,"openBlock_option0":29,"openBlock_option1":30,"CLOSE":31,"OPEN_INVERSE":32,"openInverse_repetition0":33,"openInverse_option0":34,"openInverse_option1":35,"openInverseChain":36,"OPEN_INVERSE_CHAIN":37,"openInverseChain_repetition0":38,"openInverseChain_option0":39,"openInverseChain_option1":40,"inverseAndProgram":41,"INVERSE":42,"inverseChain":43,"inverseChain_option0":44,"OPEN_ENDBLOCK":45,"OPEN":46,"mustache_repetition0":47,"mustache_option0":48,"OPEN_UNESCAPED":49,"mustache_repetition1":50,"mustache_option1":51,"CLOSE_UNESCAPED":52,"OPEN_PARTIAL":53,"partialName":54,"partial_repetition0":55,"partial_option0":56,"param":57,"sexpr":58,"OPEN_SEXPR":59,"sexpr_repetition0":60,"sexpr_option0":61,"CLOSE_SEXPR":62,"hash":63,"hash_repetition_plus0":64,"hashSegment":65,"ID":66,"EQUALS":67,"blockParams":68,"OPEN_BLOCK_PARAMS":69,"blockParams_repetition_plus0":70,"CLOSE_BLOCK_PARAMS":71,"path":72,"dataName":73,"STRING":74,"NUMBER":75,"BOOLEAN":76,"DATA":77,"pathSegments":78,"SEP":79,"$accept":0,"$end":1},
8
terminals_: {2:"error",5:"EOF",13:"COMMENT",14:"CONTENT",16:"END_RAW_BLOCK",17:"OPEN_RAW_BLOCK",21:"CLOSE_RAW_BLOCK",27:"OPEN_BLOCK",31:"CLOSE",32:"OPEN_INVERSE",37:"OPEN_INVERSE_CHAIN",42:"INVERSE",45:"OPEN_ENDBLOCK",46:"OPEN",49:"OPEN_UNESCAPED",52:"CLOSE_UNESCAPED",53:"OPEN_PARTIAL",59:"OPEN_SEXPR",62:"CLOSE_SEXPR",66:"ID",67:"EQUALS",69:"OPEN_BLOCK_PARAMS",71:"CLOSE_BLOCK_PARAMS",74:"STRING",75:"NUMBER",76:"BOOLEAN",77:"DATA",79:"SEP"},
9
productions_: [0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[12,1],[10,3],[15,5],[9,4],[9,4],[22,6],[25,6],[36,6],[41,2],[43,3],[43,1],[24,3],[8,5],[8,5],[11,5],[57,1],[57,1],[58,5],[63,1],[65,3],[68,3],[18,1],[18,1],[18,1],[18,1],[18,1],[54,1],[54,1],[73,2],[72,1],[78,3],[78,1],[6,0],[6,2],[19,0],[19,2],[20,0],[20,1],[23,0],[23,1],[26,0],[26,1],[28,0],[28,2],[29,0],[29,1],[30,0],[30,1],[33,0],[33,2],[34,0],[34,1],[35,0],[35,1],[38,0],[38,2],[39,0],[39,1],[40,0],[40,1],[44,0],[44,1],[47,0],[47,2],[48,0],[48,1],[50,0],[50,2],[51,0],[51,1],[55,0],[55,2],[56,0],[56,1],[60,0],[60,2],[61,0],[61,1],[64,1],[64,2],[70,1],[70,2]],
10
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
11
12
var $0 = $$.length - 1;
13
switch (yystate) {
14
case 1: return $$[$0-1];
15
break;
16
case 2:this.$ = new yy.Program($$[$0], null, {}, yy.locInfo(this._$));
17
break;
18
case 3:this.$ = $$[$0];
19
break;
20
case 4:this.$ = $$[$0];
21
break;
22
case 5:this.$ = $$[$0];
23
break;
24
case 6:this.$ = $$[$0];
25
break;
26
case 7:this.$ = $$[$0];
27
break;
28
case 8:this.$ = new yy.CommentStatement(yy.stripComment($$[$0]), yy.stripFlags($$[$0], $$[$0]), yy.locInfo(this._$));
29
break;
30
case 9:this.$ = new yy.ContentStatement($$[$0], yy.locInfo(this._$));
31
break;
32
case 10:this.$ = yy.prepareRawBlock($$[$0-2], $$[$0-1], $$[$0], this._$);
33
break;
34
case 11:this.$ = { path: $$[$0-3], params: $$[$0-2], hash: $$[$0-1] };
35
break;
36
case 12:this.$ = yy.prepareBlock($$[$0-3], $$[$0-2], $$[$0-1], $$[$0], false, this._$);
37
break;
38
case 13:this.$ = yy.prepareBlock($$[$0-3], $$[$0-2], $$[$0-1], $$[$0], true, this._$);
39
break;
40
case 14:this.$ = { path: $$[$0-4], params: $$[$0-3], hash: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-5], $$[$0]) };
41
break;
42
case 15:this.$ = { path: $$[$0-4], params: $$[$0-3], hash: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-5], $$[$0]) };
43
break;
44
case 16:this.$ = { path: $$[$0-4], params: $$[$0-3], hash: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-5], $$[$0]) };
45
break;
46
case 17:this.$ = { strip: yy.stripFlags($$[$0-1], $$[$0-1]), program: $$[$0] };
47
break;
48
case 18:
49
var inverse = yy.prepareBlock($$[$0-2], $$[$0-1], $$[$0], $$[$0], false, this._$),
50
program = new yy.Program([inverse], null, {}, yy.locInfo(this._$));
51
program.chained = true;
52
53
this.$ = { strip: $$[$0-2].strip, program: program, chain: true };
54
55
break;
56
case 19:this.$ = $$[$0];
57
break;
58
case 20:this.$ = {path: $$[$0-1], strip: yy.stripFlags($$[$0-2], $$[$0])};
59
break;
60
case 21:this.$ = yy.prepareMustache($$[$0-3], $$[$0-2], $$[$0-1], $$[$0-4], yy.stripFlags($$[$0-4], $$[$0]), this._$);
61
break;
62
case 22:this.$ = yy.prepareMustache($$[$0-3], $$[$0-2], $$[$0-1], $$[$0-4], yy.stripFlags($$[$0-4], $$[$0]), this._$);
63
break;
64
case 23:this.$ = new yy.PartialStatement($$[$0-3], $$[$0-2], $$[$0-1], yy.stripFlags($$[$0-4], $$[$0]), yy.locInfo(this._$));
65
break;
66
case 24:this.$ = $$[$0];
67
break;
68
case 25:this.$ = $$[$0];
69
break;
70
case 26:this.$ = new yy.SubExpression($$[$0-3], $$[$0-2], $$[$0-1], yy.locInfo(this._$));
71
break;
72
case 27:this.$ = new yy.Hash($$[$0], yy.locInfo(this._$));
73
break;
74
case 28:this.$ = new yy.HashPair($$[$0-2], $$[$0], yy.locInfo(this._$));
75
break;
76
case 29:this.$ = $$[$0-1];
77
break;
78
case 30:this.$ = $$[$0];
79
break;
80
case 31:this.$ = $$[$0];
81
break;
82
case 32:this.$ = new yy.StringLiteral($$[$0], yy.locInfo(this._$));
83
break;
84
case 33:this.$ = new yy.NumberLiteral($$[$0], yy.locInfo(this._$));
85
break;
86
case 34:this.$ = new yy.BooleanLiteral($$[$0], yy.locInfo(this._$));
87
break;
88
case 35:this.$ = $$[$0];
89
break;
90
case 36:this.$ = $$[$0];
91
break;
92
case 37:this.$ = yy.preparePath(true, $$[$0], this._$);
93
break;
94
case 38:this.$ = yy.preparePath(false, $$[$0], this._$);
95
break;
96
case 39: $$[$0-2].push({part: $$[$0], separator: $$[$0-1]}); this.$ = $$[$0-2];
97
break;
98
case 40:this.$ = [{part: $$[$0]}];
99
break;
100
case 41:this.$ = [];
101
break;
102
case 42:$$[$0-1].push($$[$0]);
103
break;
104
case 43:this.$ = [];
105
break;
106
case 44:$$[$0-1].push($$[$0]);
107
break;
108
case 51:this.$ = [];
109
break;
110
case 52:$$[$0-1].push($$[$0]);
111
break;
112
case 57:this.$ = [];
113
break;
114
case 58:$$[$0-1].push($$[$0]);
115
break;
116
case 63:this.$ = [];
117
break;
118
case 64:$$[$0-1].push($$[$0]);
119
break;
120
case 71:this.$ = [];
121
break;
122
case 72:$$[$0-1].push($$[$0]);
123
break;
124
case 75:this.$ = [];
125
break;
126
case 76:$$[$0-1].push($$[$0]);
127
break;
128
case 79:this.$ = [];
129
break;
130
case 80:$$[$0-1].push($$[$0]);
131
break;
132
case 83:this.$ = [];
133
break;
134
case 84:$$[$0-1].push($$[$0]);
135
break;
136
case 87:this.$ = [$$[$0]];
137
break;
138
case 88:$$[$0-1].push($$[$0]);
139
break;
140
case 89:this.$ = [$$[$0]];
141
break;
142
case 90:$$[$0-1].push($$[$0]);
143
break;
144
}
145
},
146
table: [{3:1,4:2,5:[2,41],6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],46:[2,41],49:[2,41],53:[2,41]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:[1,11],14:[1,18],15:16,17:[1,21],22:14,25:15,27:[1,19],32:[1,20],37:[2,2],42:[2,2],45:[2,2],46:[1,12],49:[1,13],53:[1,17]},{1:[2,1]},{5:[2,42],13:[2,42],14:[2,42],17:[2,42],27:[2,42],32:[2,42],37:[2,42],42:[2,42],45:[2,42],46:[2,42],49:[2,42],53:[2,42]},{5:[2,3],13:[2,3],14:[2,3],17:[2,3],27:[2,3],32:[2,3],37:[2,3],42:[2,3],45:[2,3],46:[2,3],49:[2,3],53:[2,3]},{5:[2,4],13:[2,4],14:[2,4],17:[2,4],27:[2,4],32:[2,4],37:[2,4],42:[2,4],45:[2,4],46:[2,4],49:[2,4],53:[2,4]},{5:[2,5],13:[2,5],14:[2,5],17:[2,5],27:[2,5],32:[2,5],37:[2,5],42:[2,5],45:[2,5],46:[2,5],49:[2,5],53:[2,5]},{5:[2,6],13:[2,6],14:[2,6],17:[2,6],27:[2,6],32:[2,6],37:[2,6],42:[2,6],45:[2,6],46:[2,6],49:[2,6],53:[2,6]},{5:[2,7],13:[2,7],14:[2,7],17:[2,7],27:[2,7],32:[2,7],37:[2,7],42:[2,7],45:[2,7],46:[2,7],49:[2,7],53:[2,7]},{5:[2,8],13:[2,8],14:[2,8],17:[2,8],27:[2,8],32:[2,8],37:[2,8],42:[2,8],45:[2,8],46:[2,8],49:[2,8],53:[2,8]},{18:22,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:31,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{4:32,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],37:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{4:33,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{12:34,14:[1,18]},{18:36,54:35,58:37,59:[1,38],66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,9],13:[2,9],14:[2,9],16:[2,9],17:[2,9],27:[2,9],32:[2,9],37:[2,9],42:[2,9],45:[2,9],46:[2,9],49:[2,9],53:[2,9]},{18:39,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:40,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:41,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{31:[2,71],47:42,59:[2,71],66:[2,71],74:[2,71],75:[2,71],76:[2,71],77:[2,71]},{21:[2,30],31:[2,30],52:[2,30],59:[2,30],62:[2,30],66:[2,30],69:[2,30],74:[2,30],75:[2,30],76:[2,30],77:[2,30]},{21:[2,31],31:[2,31],52:[2,31],59:[2,31],62:[2,31],66:[2,31],69:[2,31],74:[2,31],75:[2,31],76:[2,31],77:[2,31]},{21:[2,32],31:[2,32],52:[2,32],59:[2,32],62:[2,32],66:[2,32],69:[2,32],74:[2,32],75:[2,32],76:[2,32],77:[2,32]},{21:[2,33],31:[2,33],52:[2,33],59:[2,33],62:[2,33],66:[2,33],69:[2,33],74:[2,33],75:[2,33],76:[2,33],77:[2,33]},{21:[2,34],31:[2,34],52:[2,34],59:[2,34],62:[2,34],66:[2,34],69:[2,34],74:[2,34],75:[2,34],76:[2,34],77:[2,34]},{21:[2,38],31:[2,38],52:[2,38],59:[2,38],62:[2,38],66:[2,38],69:[2,38],74:[2,38],75:[2,38],76:[2,38],77:[2,38],79:[1,43]},{66:[1,30],78:44},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],79:[2,40]},{50:45,52:[2,75],59:[2,75],66:[2,75],74:[2,75],75:[2,75],76:[2,75],77:[2,75]},{23:46,36:48,37:[1,50],41:49,42:[1,51],43:47,45:[2,47]},{26:52,41:53,42:[1,51],45:[2,49]},{16:[1,54]},{31:[2,79],55:55,59:[2,79],66:[2,79],74:[2,79],75:[2,79],76:[2,79],77:[2,79]},{31:[2,35],59:[2,35],66:[2,35],74:[2,35],75:[2,35],76:[2,35],77:[2,35]},{31:[2,36],59:[2,36],66:[2,36],74:[2,36],75:[2,36],76:[2,36],77:[2,36]},{18:56,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{28:57,31:[2,51],59:[2,51],66:[2,51],69:[2,51],74:[2,51],75:[2,51],76:[2,51],77:[2,51]},{31:[2,57],33:58,59:[2,57],66:[2,57],69:[2,57],74:[2,57],75:[2,57],76:[2,57],77:[2,57]},{19:59,21:[2,43],59:[2,43],66:[2,43],74:[2,43],75:[2,43],76:[2,43],77:[2,43]},{18:63,31:[2,73],48:60,57:61,58:64,59:[1,38],63:62,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{66:[1,68]},{21:[2,37],31:[2,37],52:[2,37],59:[2,37],62:[2,37],66:[2,37],69:[2,37],74:[2,37],75:[2,37],76:[2,37],77:[2,37],79:[1,43]},{18:63,51:69,52:[2,77],57:70,58:64,59:[1,38],63:71,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{24:72,45:[1,73]},{45:[2,48]},{4:74,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],37:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{45:[2,19]},{18:75,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{4:76,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{24:77,45:[1,73]},{45:[2,50]},{5:[2,10],13:[2,10],14:[2,10],17:[2,10],27:[2,10],32:[2,10],37:[2,10],42:[2,10],45:[2,10],46:[2,10],49:[2,10],53:[2,10]},{18:63,31:[2,81],56:78,57:79,58:64,59:[1,38],63:80,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{59:[2,83],60:81,62:[2,83],66:[2,83],74:[2,83],75:[2,83],76:[2,83],77:[2,83]},{18:63,29:82,31:[2,53],57:83,58:64,59:[1,38],63:84,64:65,65:66,66:[1,67],69:[2,53],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:63,31:[2,59],34:85,57:86,58:64,59:[1,38],63:87,64:65,65:66,66:[1,67],69:[2,59],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:63,20:88,21:[2,45],57:89,58:64,59:[1,38],63:90,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{31:[1,91]},{31:[2,72],59:[2,72],66:[2,72],74:[2,72],75:[2,72],76:[2,72],77:[2,72]},{31:[2,74]},{21:[2,24],31:[2,24],52:[2,24],59:[2,24],62:[2,24],66:[2,24],69:[2,24],74:[2,24],75:[2,24],76:[2,24],77:[2,24]},{21:[2,25],31:[2,25],52:[2,25],59:[2,25],62:[2,25],66:[2,25],69:[2,25],74:[2,25],75:[2,25],76:[2,25],77:[2,25]},{21:[2,27],31:[2,27],52:[2,27],62:[2,27],65:92,66:[1,93],69:[2,27]},{21:[2,87],31:[2,87],52:[2,87],62:[2,87],66:[2,87],69:[2,87]},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],67:[1,94],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],79:[2,40]},{21:[2,39],31:[2,39],52:[2,39],59:[2,39],62:[2,39],66:[2,39],69:[2,39],74:[2,39],75:[2,39],76:[2,39],77:[2,39],79:[2,39]},{52:[1,95]},{52:[2,76],59:[2,76],66:[2,76],74:[2,76],75:[2,76],76:[2,76],77:[2,76]},{52:[2,78]},{5:[2,12],13:[2,12],14:[2,12],17:[2,12],27:[2,12],32:[2,12],37:[2,12],42:[2,12],45:[2,12],46:[2,12],49:[2,12],53:[2,12]},{18:96,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{36:48,37:[1,50],41:49,42:[1,51],43:98,44:97,45:[2,69]},{31:[2,63],38:99,59:[2,63],66:[2,63],69:[2,63],74:[2,63],75:[2,63],76:[2,63],77:[2,63]},{45:[2,17]},{5:[2,13],13:[2,13],14:[2,13],17:[2,13],27:[2,13],32:[2,13],37:[2,13],42:[2,13],45:[2,13],46:[2,13],49:[2,13],53:[2,13]},{31:[1,100]},{31:[2,80],59:[2,80],66:[2,80],74:[2,80],75:[2,80],76:[2,80],77:[2,80]},{31:[2,82]},{18:63,57:102,58:64,59:[1,38],61:101,62:[2,85],63:103,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{30:104,31:[2,55],68:105,69:[1,106]},{31:[2,52],59:[2,52],66:[2,52],69:[2,52],74:[2,52],75:[2,52],76:[2,52],77:[2,52]},{31:[2,54],69:[2,54]},{31:[2,61],35:107,68:108,69:[1,106]},{31:[2,58],59:[2,58],66:[2,58],69:[2,58],74:[2,58],75:[2,58],76:[2,58],77:[2,58]},{31:[2,60],69:[2,60]},{21:[1,109]},{21:[2,44],59:[2,44],66:[2,44],74:[2,44],75:[2,44],76:[2,44],77:[2,44]},{21:[2,46]},{5:[2,21],13:[2,21],14:[2,21],17:[2,21],27:[2,21],32:[2,21],37:[2,21],42:[2,21],45:[2,21],46:[2,21],49:[2,21],53:[2,21]},{21:[2,88],31:[2,88],52:[2,88],62:[2,88],66:[2,88],69:[2,88]},{67:[1,94]},{18:63,57:110,58:64,59:[1,38],66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,22],13:[2,22],14:[2,22],17:[2,22],27:[2,22],32:[2,22],37:[2,22],42:[2,22],45:[2,22],46:[2,22],49:[2,22],53:[2,22]},{31:[1,111]},{45:[2,18]},{45:[2,70]},{18:63,31:[2,65],39:112,57:113,58:64,59:[1,38],63:114,64:65,65:66,66:[1,67],69:[2,65],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,23],13:[2,23],14:[2,23],17:[2,23],27:[2,23],32:[2,23],37:[2,23],42:[2,23],45:[2,23],46:[2,23],49:[2,23],53:[2,23]},{62:[1,115]},{59:[2,84],62:[2,84],66:[2,84],74:[2,84],75:[2,84],76:[2,84],77:[2,84]},{62:[2,86]},{31:[1,116]},{31:[2,56]},{66:[1,118],70:117},{31:[1,119]},{31:[2,62]},{14:[2,11]},{21:[2,28],31:[2,28],52:[2,28],62:[2,28],66:[2,28],69:[2,28]},{5:[2,20],13:[2,20],14:[2,20],17:[2,20],27:[2,20],32:[2,20],37:[2,20],42:[2,20],45:[2,20],46:[2,20],49:[2,20],53:[2,20]},{31:[2,67],40:120,68:121,69:[1,106]},{31:[2,64],59:[2,64],66:[2,64],69:[2,64],74:[2,64],75:[2,64],76:[2,64],77:[2,64]},{31:[2,66],69:[2,66]},{21:[2,26],31:[2,26],52:[2,26],59:[2,26],62:[2,26],66:[2,26],69:[2,26],74:[2,26],75:[2,26],76:[2,26],77:[2,26]},{13:[2,14],14:[2,14],17:[2,14],27:[2,14],32:[2,14],37:[2,14],42:[2,14],45:[2,14],46:[2,14],49:[2,14],53:[2,14]},{66:[1,123],71:[1,122]},{66:[2,89],71:[2,89]},{13:[2,15],14:[2,15],17:[2,15],27:[2,15],32:[2,15],42:[2,15],45:[2,15],46:[2,15],49:[2,15],53:[2,15]},{31:[1,124]},{31:[2,68]},{31:[2,29]},{66:[2,90],71:[2,90]},{13:[2,16],14:[2,16],17:[2,16],27:[2,16],32:[2,16],37:[2,16],42:[2,16],45:[2,16],46:[2,16],49:[2,16],53:[2,16]}],
147
defaultActions: {4:[2,1],47:[2,48],49:[2,19],53:[2,50],62:[2,74],71:[2,78],76:[2,17],80:[2,82],90:[2,46],97:[2,18],98:[2,70],103:[2,86],105:[2,56],108:[2,62],109:[2,11],121:[2,68],122:[2,29]},
148
parseError: function parseError(str, hash) {
149
throw new Error(str);
150
},
151
parse: function parse(input) {
152
var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
153
this.lexer.setInput(input);
154
this.lexer.yy = this.yy;
155
this.yy.lexer = this.lexer;
156
this.yy.parser = this;
157
if (typeof this.lexer.yylloc == "undefined")
158
this.lexer.yylloc = {};
159
var yyloc = this.lexer.yylloc;
160
lstack.push(yyloc);
161
var ranges = this.lexer.options && this.lexer.options.ranges;
162
if (typeof this.yy.parseError === "function")
163
this.parseError = this.yy.parseError;
164
function popStack(n) {
165
stack.length = stack.length - 2 * n;
166
vstack.length = vstack.length - n;
167
lstack.length = lstack.length - n;
168
}
169
function lex() {
170
var token;
171
token = self.lexer.lex() || 1;
172
if (typeof token !== "number") {
173
token = self.symbols_[token] || token;
174
}
175
return token;
176
}
177
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
178
while (true) {
179
state = stack[stack.length - 1];
180
if (this.defaultActions[state]) {
181
action = this.defaultActions[state];
182
} else {
183
if (symbol === null || typeof symbol == "undefined") {
184
symbol = lex();
185
}
186
action = table[state] && table[state][symbol];
187
}
188
if (typeof action === "undefined" || !action.length || !action[0]) {
189
var errStr = "";
190
if (!recovering) {
191
expected = [];
192
for (p in table[state])
193
if (this.terminals_[p] && p > 2) {
194
expected.push("'" + this.terminals_[p] + "'");
195
}
196
if (this.lexer.showPosition) {
197
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
198
} else {
199
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1?"end of input":"'" + (this.terminals_[symbol] || symbol) + "'");
200
}
201
this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
202
}
203
}
204
if (action[0] instanceof Array && action.length > 1) {
205
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
206
}
207
switch (action[0]) {
208
case 1:
209
stack.push(symbol);
210
vstack.push(this.lexer.yytext);
211
lstack.push(this.lexer.yylloc);
212
stack.push(action[1]);
213
symbol = null;
214
if (!preErrorSymbol) {
215
yyleng = this.lexer.yyleng;
216
yytext = this.lexer.yytext;
217
yylineno = this.lexer.yylineno;
218
yyloc = this.lexer.yylloc;
219
if (recovering > 0)
220
recovering--;
221
} else {
222
symbol = preErrorSymbol;
223
preErrorSymbol = null;
224
}
225
break;
226
case 2:
227
len = this.productions_[action[1]][1];
228
yyval.$ = vstack[vstack.length - len];
229
yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column};
230
if (ranges) {
231
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
232
}
233
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
234
if (typeof r !== "undefined") {
235
return r;
236
}
237
if (len) {
238
stack = stack.slice(0, -1 * len * 2);
239
vstack = vstack.slice(0, -1 * len);
240
lstack = lstack.slice(0, -1 * len);
241
}
242
stack.push(this.productions_[action[1]][0]);
243
vstack.push(yyval.$);
244
lstack.push(yyval._$);
245
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
246
stack.push(newState);
247
break;
248
case 3:
249
return true;
250
}
251
}
252
return true;
253
}
254
};
255
/* Jison generated lexer */
256
var lexer = (function(){
257
var lexer = ({EOF:1,
258
parseError:function parseError(str, hash) {
259
if (this.yy.parser) {
260
this.yy.parser.parseError(str, hash);
261
} else {
262
throw new Error(str);
263
}
264
},
265
setInput:function (input) {
266
this._input = input;
267
this._more = this._less = this.done = false;
268
this.yylineno = this.yyleng = 0;
269
this.yytext = this.matched = this.match = '';
270
this.conditionStack = ['INITIAL'];
271
this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
272
if (this.options.ranges) this.yylloc.range = [0,0];
273
this.offset = 0;
274
return this;
275
},
276
input:function () {
277
var ch = this._input[0];
278
this.yytext += ch;
279
this.yyleng++;
280
this.offset++;
281
this.match += ch;
282
this.matched += ch;
283
var lines = ch.match(/(?:\r\n?|\n).*/g);
284
if (lines) {
285
this.yylineno++;
286
this.yylloc.last_line++;
287
} else {
288
this.yylloc.last_column++;
289
}
290
if (this.options.ranges) this.yylloc.range[1]++;
291
292
this._input = this._input.slice(1);
293
return ch;
294
},
295
unput:function (ch) {
296
var len = ch.length;
297
var lines = ch.split(/(?:\r\n?|\n)/g);
298
299
this._input = ch + this._input;
300
this.yytext = this.yytext.substr(0, this.yytext.length-len-1);
301
//this.yyleng -= len;
302
this.offset -= len;
303
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
304
this.match = this.match.substr(0, this.match.length-1);
305
this.matched = this.matched.substr(0, this.matched.length-1);
306
307
if (lines.length-1) this.yylineno -= lines.length-1;
308
var r = this.yylloc.range;
309
310
this.yylloc = {first_line: this.yylloc.first_line,
311
last_line: this.yylineno+1,
312
first_column: this.yylloc.first_column,
313
last_column: lines ?
314
(lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length:
315
this.yylloc.first_column - len
316
};
317
318
if (this.options.ranges) {
319
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
320
}
321
return this;
322
},
323
more:function () {
324
this._more = true;
325
return this;
326
},
327
less:function (n) {
328
this.unput(this.match.slice(n));
329
},
330
pastInput:function () {
331
var past = this.matched.substr(0, this.matched.length - this.match.length);
332
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
333
},
334
upcomingInput:function () {
335
var next = this.match;
336
if (next.length < 20) {
337
next += this._input.substr(0, 20-next.length);
338
}
339
return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
340
},
341
showPosition:function () {
342
var pre = this.pastInput();
343
var c = new Array(pre.length + 1).join("-");
344
return pre + this.upcomingInput() + "\n" + c+"^";
345
},
346
next:function () {
347
if (this.done) {
348
return this.EOF;
349
}
350
if (!this._input) this.done = true;
351
352
var token,
353
match,
354
tempMatch,
355
index,
356
col,
357
lines;
358
if (!this._more) {
359
this.yytext = '';
360
this.match = '';
361
}
362
var rules = this._currentRules();
363
for (var i=0;i < rules.length; i++) {
364
tempMatch = this._input.match(this.rules[rules[i]]);
365
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
366
match = tempMatch;
367
index = i;
368
if (!this.options.flex) break;
369
}
370
}
371
if (match) {
372
lines = match[0].match(/(?:\r\n?|\n).*/g);
373
if (lines) this.yylineno += lines.length;
374
this.yylloc = {first_line: this.yylloc.last_line,
375
last_line: this.yylineno+1,
376
first_column: this.yylloc.last_column,
377
last_column: lines ? lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length};
378
this.yytext += match[0];
379
this.match += match[0];
380
this.matches = match;
381
this.yyleng = this.yytext.length;
382
if (this.options.ranges) {
383
this.yylloc.range = [this.offset, this.offset += this.yyleng];
384
}
385
this._more = false;
386
this._input = this._input.slice(match[0].length);
387
this.matched += match[0];
388
token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]);
389
if (this.done && this._input) this.done = false;
390
if (token) return token;
391
else return;
392
}
393
if (this._input === "") {
394
return this.EOF;
395
} else {
396
return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
397
{text: "", token: null, line: this.yylineno});
398
}
399
},
400
lex:function lex() {
401
var r = this.next();
402
if (typeof r !== 'undefined') {
403
return r;
404
} else {
405
return this.lex();
406
}
407
},
408
begin:function begin(condition) {
409
this.conditionStack.push(condition);
410
},
411
popState:function popState() {
412
return this.conditionStack.pop();
413
},
414
_currentRules:function _currentRules() {
415
return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
416
},
417
topState:function () {
418
return this.conditionStack[this.conditionStack.length-2];
419
},
420
pushState:function begin(condition) {
421
this.begin(condition);
422
}});
423
lexer.options = {};
424
lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
425
426
427
function strip(start, end) {
428
return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng-end);
429
}
430
431
432
var YYSTATE=YY_START
433
switch($avoiding_name_collisions) {
434
case 0:
435
if(yy_.yytext.slice(-2) === "\\\\") {
436
strip(0,1);
437
this.begin("mu");
438
} else if(yy_.yytext.slice(-1) === "\\") {
439
strip(0,1);
440
this.begin("emu");
441
} else {
442
this.begin("mu");
443
}
444
if(yy_.yytext) return 14;
445
446
break;
447
case 1:return 14;
448
break;
449
case 2:
450
this.popState();
451
return 14;
452
453
break;
454
case 3:
455
yy_.yytext = yy_.yytext.substr(5, yy_.yyleng-9);
456
this.popState();
457
return 16;
458
459
break;
460
case 4: return 14;
461
break;
462
case 5:
463
this.popState();
464
return 13;
465
466
break;
467
case 6:return 59;
468
break;
469
case 7:return 62;
470
break;
471
case 8: return 17;
472
break;
473
case 9:
474
this.popState();
475
this.begin('raw');
476
return 21;
477
478
break;
479
case 10:return 53;
480
break;
481
case 11:return 27;
482
break;
483
case 12:return 45;
484
break;
485
case 13:this.popState(); return 42;
486
break;
487
case 14:this.popState(); return 42;
488
break;
489
case 15:return 32;
490
break;
491
case 16:return 37;
492
break;
493
case 17:return 49;
494
break;
495
case 18:return 46;
496
break;
497
case 19:
498
this.unput(yy_.yytext);
499
this.popState();
500
this.begin('com');
501
502
break;
503
case 20:
504
this.popState();
505
return 13;
506
507
break;
508
case 21:return 46;
509
break;
510
case 22:return 67;
511
break;
512
case 23:return 66;
513
break;
514
case 24:return 66;
515
break;
516
case 25:return 79;
517
break;
518
case 26:// ignore whitespace
519
break;
520
case 27:this.popState(); return 52;
521
break;
522
case 28:this.popState(); return 31;
523
break;
524
case 29:yy_.yytext = strip(1,2).replace(/\\"/g,'"'); return 74;
525
break;
526
case 30:yy_.yytext = strip(1,2).replace(/\\'/g,"'"); return 74;
527
break;
528
case 31:return 77;
529
break;
530
case 32:return 76;
531
break;
532
case 33:return 76;
533
break;
534
case 34:return 75;
535
break;
536
case 35:return 69;
537
break;
538
case 36:return 71;
539
break;
540
case 37:return 66;
541
break;
542
case 38:yy_.yytext = strip(1,2); return 66;
543
break;
544
case 39:return 'INVALID';
545
break;
546
case 40:return 5;
547
break;
548
}
549
};
550
lexer.rules = [/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];
551
lexer.conditions = {"mu":{"rules":[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],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"com":{"rules":[5],"inclusive":false},"raw":{"rules":[3,4],"inclusive":false},"INITIAL":{"rules":[0,1,40],"inclusive":true}};
552
return lexer;})()
553
parser.lexer = lexer;
554
function Parser () { this.yy = {}; }Parser.prototype = parser;parser.Parser = Parser;
555
return new Parser;
556
})();export default handlebars;
557
/* jshint ignore:end */
558
559