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