/*!

 handlebars v2.0.0

Copyright (C) 2011-2014 by Yehuda Katz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@license
*/
(function(r,f){if(typeof define==='function'&&define.amd){define([],f);}else if(typeof exports==='object'){module.exports=f();}else{r.Handlebars=r.Handlebars||f();}}(this,function(){var _=(function(){"use strict";var a;function S(b){this.string=b;}S.prototype.toString=function(){return""+this.string;};a=S;return a;})();var d=(function(a){"use strict";var b={};var S=a;var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};var j=/[&<>"'`]/g;var p=/[&<>"'`]/;function l(i){return c[i];}function n(A){for(var i=1;i<arguments.length;i++){for(var B in arguments[i]){if(Object.prototype.hasOwnProperty.call(arguments[i],B)){A[B]=arguments[i][B];}}}return A;}b.extend=n;var r=Object.prototype.toString;b.toString=r;
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
var v=function(i){return typeof i==='function';};if(v(/x/)){v=function(i){return typeof i==='function'&&r.call(i)==='[object Function]';};}var v;b.isFunction=v;var w=Array.isArray||function(i){return(i&&typeof i==='object')?r.call(i)==='[object Array]':false;};b.isArray=w;function x(i){if(i instanceof S){return i.toString();}else if(i==null){return"";}else if(!i){return i+'';}i=""+i;if(!p.test(i)){return i;}return i.replace(j,l);}b.escapeExpression=x;function y(i){if(!i&&i!==0){return true;}else if(w(i)&&i.length===0){return true;}else{return false;}}b.isEmpty=y;function z(i,A){return(i?i+'.':'')+A;}b.appendContextPath=z;return b;})(_);var e=(function(){"use strict";var a;var b=['description','fileName','lineNumber','message','name','number','stack'];function E(c,n){var l;if(n&&n.firstLine){l=n.firstLine;c+=' - '+l+':'+n.firstColumn;}var i=Error.prototype.constructor.call(this,c);for(var j=0;j<b.length;j++){this[b[j]]=i[b[j]];}if(l){this.lineNumber=l;this.column=n.firstColumn;}}E.prototype=new Error();a=E;return a;})();var f=(function(a,b){"use strict";var c={};var U=a;var E=b;var V="2.0.0";c.VERSION=V;var C=6;c.COMPILER_REVISION=C;var R={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'};c.REVISION_CHANGES=R;var l=U.isArray,n=U.isFunction,p=U.toString,r='[object Object]';function H(i,j){this.helpers=i||{};this.partials=j||{};v(this);}c.HandlebarsEnvironment=H;H.prototype={constructor:H,logger:w,log:x,registerHelper:function(i,j){if(p.call(i)===r){if(j){throw new E('Arg not supported with multiple helpers');}U.extend(this.helpers,i);}else{this.helpers[i]=j;}},unregisterHelper:function(i){delete this.helpers[i];},registerPartial:function(i,j){if(p.call(i)===r){U.extend(this.partials,i);}else{this.partials[i]=j;}},unregisterPartial:function(i){delete this.partials[i];}};function v(z){z.registerHelper('helperMissing',function(){if(arguments.length===1){return undefined;}else{throw new E("Missing helper: '"+arguments[arguments.length-1].name+"'");}});z.registerHelper('blockHelperMissing',function(i,j){var A=j.inverse,B=j.fn;if(i===true){return B(this);}else if(i===false||i==null){return A(this);}else if(l(i)){if(i.length>0){if(j.ids){j.ids=[j.name];}return z.helpers.each(i,j);}else{return A(this);}}else{if(j.data&&j.ids){var D=y(j.data);D.contextPath=U.appendContextPath(j.data.contextPath,j.name);j={data:D};}return B(i,j);}});z.registerHelper('each',function(A,B){if(!B){throw new E('Must pass iterator to #each');}var D=B.fn,F=B.inverse;var i=0,G="",I;var J;if(B.data&&B.ids){J=U.appendContextPath(B.data.contextPath,B.ids[0])+'.';}if(n(A)){A=A.call(this);}if(B.data){I=y(B.data);}if(A&&typeof A==='object'){if(l(A)){for(var j=A.length;i<j;i++){if(I){I.index=i;I.first=(i===0);I.last=(i===(A.length-1));if(J){I.contextPath=J+i;}}G=G+D(A[i],{data:I});}}else{for(var K in A){if(A.hasOwnProperty(K)){if(I){I.key=K;I.index=i;I.first=(i===0);if(J){I.contextPath=J+K;}}G=G+D(A[K],{data:I});i++;}}}}if(i===0){G=F(this);}return G;});z.registerHelper('if',function(i,j){if(n(i)){i=i.call(this);}if((!j.hash.includeZero&&!i)||U.isEmpty(i)){return j.inverse(this);}else{return j.fn(this);}});z.registerHelper('unless',function(i,j){return z.helpers['if'].call(this,i,{fn:j.inverse,inverse:j.fn,hash:j.hash});});z.registerHelper('with',function(i,j){if(n(i)){i=i.call(this);}var A=j.fn;if(!U.isEmpty(i)){if(j.data&&j.ids){var B=y(j.data);B.contextPath=U.appendContextPath(j.data.contextPath,j.ids[0]);j={data:B};}return A(i,j);}else{return j.inverse(this);}});z.registerHelper('log',function(i,j){var A=j.data&&j.data.level!=null?parseInt(j.data.level,10):1;z.log(A,i);});z.registerHelper('lookup',function(i,j){return i&&i[j];});}var w={methodMap:{0:'debug',1:'info',2:'warn',3:'error'},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(i,j){if(w.level<=i){var z=w.methodMap[i];if(typeof console!=='undefined'&&console[z]){console[z].call(console,j);}}}};c.logger=w;var x=w.log;c.log=x;var y=function(i){var j=U.extend({},i);j._parent=i;return j;};c.createFrame=y;return c;})(d,e);var g=(function(a,b,c){"use strict";var j={};var U=a;var E=b;var C=c.COMPILER_REVISION;var R=c.REVISION_CHANGES;var n=c.createFrame;function p(i){var l=i&&i[0]||1,z=C;if(l!==z){if(l<z){var A=R[z],B=R[l];throw new E("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 ("+B+").");}else{throw new E("Template was precompiled with a newer version of Handlebars than the current runtime. "+"Please update your runtime to a newer version ("+i[1]+").");}}}j.checkRevision=p;function r(z,A){if(!A){throw new E("No environment passed to template");}if(!z||!z.main){throw new E('Unknown template object: '+typeof z);}A.VM.checkRevision(z.compiler);var B=function(G,H,I,J,K,L,M,N,O){if(K){J=U.extend({},J,K);}var P=A.VM.invokePartial.call(this,G,I,J,L,M,N,O);if(P==null&&A.compile){var Q={helpers:L,partials:M,data:N,depths:O};M[I]=A.compile(G,{data:N!==undefined,compat:z.compat},A);P=M[I](J,Q);}if(P!=null){if(H){var S=P.split('\n');for(var i=0,l=S.length;i<l;i++){if(!S[i]&&i+1===l){break;}S[i]=H+S[i];}P=S.join('\n');}return P;}else{throw new E("The partial "+I+" could not be compiled when running in runtime-only mode");}};var D={lookup:function(l,G){var H=l.length;for(var i=0;i<H;i++){if(l[i]&&l[i][G]!=null){return l[i][G];}}},lambda:function(i,l){return typeof i==='function'?i.call(l):i;},escapeExpression:U.escapeExpression,invokePartial:B,fn:function(i){return z[i];},programs:[],program:function(i,l,G){var H=this.programs[i],I=this.fn(i);if(l||G){H=v(this,i,I,l,G);}else if(!H){H=this.programs[i]=v(this,i,I);}return H;},data:function(i,l){while(i&&l--){i=i._parent;}return i;},merge:function(i,l){var F=i||l;if(i&&l&&(i!==l)){F=U.extend({},l,i);}return F;},noop:A.VM.noop,compilerInfo:z.compiler};var F=function(i,l){l=l||{};var G=l.data;F._setup(l);if(!l.partial&&z.useData){G=y(i,G);}var H;if(z.useDepths){H=l.depths?[i].concat(l.depths):[i];}return z.main.call(D,i,D.helpers,D.partials,G,H);};F.isTop=true;F._setup=function(i){if(!i.partial){D.helpers=D.merge(i.helpers,A.helpers);if(z.usePartial){D.partials=D.merge(i.partials,A.partials);}}else{D.helpers=i.helpers;D.partials=i.partials;}};F._child=function(i,l,G){if(z.useDepths&&!G){throw new E('must pass parent depths');}return v(D,i,z[i],l,G);};return F;}j.template=r;function v(l,i,z,A,B){var D=function(F,G){G=G||{};return z.call(l,F,l.helpers,l.partials,G.data||A,B&&[F].concat(B));};D.program=i;D.depth=B?B.length:0;return D;}j.program=v;function w(i,l,z,A,B,D,F){var G={partial:true,helpers:A,partials:B,data:D,depths:F};if(i===undefined){throw new E("The partial "+l+" could not be found");}else if(i instanceof Function){return i(z,G);}}j.invokePartial=w;function x(){return"";}j.noop=x;function y(i,l){if(!l||!('root'in l)){l=l?n(l):{};l.root=i;}return l;}return j;})(d,e,f);var h=(function(a,b,c,i,j){"use strict";var l;var n=a;var S=b;var E=c;var U=i;var r=j;var p=function(){var v=new n.HandlebarsEnvironment();U.extend(v,n);v.SafeString=S;v.Exception=E;v.Utils=U;v.escapeExpression=U.escapeExpression;v.VM=r;v.template=function(w){return r.template(w,v);};return v;};var H=p();H.create=p;H['default']=H;l=H;return l;})(f,_,e,d,g);var k=(function(a){"use strict";var b;var E=a;function L(l){l=l||{};this.firstLine=l.first_line;this.firstColumn=l.first_column;this.lastColumn=l.last_column;this.lastLine=l.last_line;}var A={ProgramNode:function(c,i,l){L.call(this,l);this.type="program";this.statements=c;this.strip=i;},MustacheNode:function(r,c,i,j,l){L.call(this,l);this.type="mustache";this.strip=j;if(i!=null&&i.charAt){var n=i.charAt(3)||i.charAt(2);this.escaped=n!=='{'&&n!=='&';}else{this.escaped=!!i;}if(r instanceof A.SexprNode){this.sexpr=r;}else{this.sexpr=new A.SexprNode(r,c);}this.id=this.sexpr.id;this.params=this.sexpr.params;this.hash=this.sexpr.hash;this.eligibleHelper=this.sexpr.eligibleHelper;this.isHelper=this.sexpr.isHelper;},SexprNode:function(r,c,l){L.call(this,l);this.type="sexpr";this.hash=c;var i=this.id=r[0];var p=this.params=r.slice(1);this.isHelper=!!(p.length||c);this.eligibleHelper=this.isHelper||i.isSimple;},PartialNode:function(p,c,i,j,l){L.call(this,l);this.type="partial";this.partialName=p;this.context=c;this.hash=i;this.strip=j;this.strip.inlineStandalone=true;},BlockNode:function(c,p,i,j,l){L.call(this,l);this.type='block';this.mustache=c;this.program=p;this.inverse=i;this.strip=j;if(i&&!p){this.isInverse=true;}},RawBlockNode:function(c,i,j,l){L.call(this,l);if(c.sexpr.id.original!==j){throw new E(c.sexpr.id.original+" doesn't match "+j,this);}i=new A.ContentNode(i,l);this.type='block';this.mustache=c;this.program=new A.ProgramNode([i],{},l);},ContentNode:function(c,l){L.call(this,l);this.type="content";this.original=this.string=c;},HashNode:function(p,l){L.call(this,l);this.type="hash";this.pairs=p;},IdNode:function(p,c){L.call(this,c);this.type="ID";var j="",n=[],r=0,v='';for(var i=0,l=p.length;i<l;i++){var w=p[i].part;j+=(p[i].separator||'')+w;if(w===".."||w==="."||w==="this"){if(n.length>0){throw new E("Invalid path: "+j,this);}else if(w===".."){r++;v+='../';}else{this.isScoped=true;}}else{n.push(w);}}this.original=j;this.parts=n;this.string=n.join('.');this.depth=r;this.idName=v+this.string;this.isSimple=p.length===1&&!this.isScoped&&r===0;this.stringModeValue=this.string;},PartialNameNode:function(n,l){L.call(this,l);this.type="PARTIAL_NAME";this.name=n.original;},DataNode:function(i,l){L.call(this,l);this.type="DATA";this.id=i;this.stringModeValue=i.stringModeValue;this.idName='@'+i.stringModeValue;},StringNode:function(c,l){L.call(this,l);this.type="STRING";this.original=this.string=this.stringModeValue=c;},NumberNode:function(n,l){L.call(this,l);this.type="NUMBER";this.original=this.number=n;this.stringModeValue=Number(n);},BooleanNode:function(c,l){L.call(this,l);this.type="BOOLEAN";this.bool=c;this.stringModeValue=c==="true";},CommentNode:function(c,l){L.call(this,l);this.type="comment";this.comment=c;this.strip={inlineStandalone:true};}};b=A;return b;})(e);var m=(function(){"use strict";var b;var j=(function(){var l={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,"CONTENT":12,"COMMENT":13,"openRawBlock":14,"END_RAW_BLOCK":15,"OPEN_RAW_BLOCK":16,"sexpr":17,"CLOSE_RAW_BLOCK":18,"openBlock":19,"block_option0":20,"closeBlock":21,"openInverse":22,"block_option1":23,"OPEN_BLOCK":24,"CLOSE":25,"OPEN_INVERSE":26,"inverseAndProgram":27,"INVERSE":28,"OPEN_ENDBLOCK":29,"path":30,"OPEN":31,"OPEN_UNESCAPED":32,"CLOSE_UNESCAPED":33,"OPEN_PARTIAL":34,"partialName":35,"param":36,"partial_option0":37,"partial_option1":38,"sexpr_repetition0":39,"sexpr_option0":40,"dataName":41,"STRING":42,"NUMBER":43,"BOOLEAN":44,"OPEN_SEXPR":45,"CLOSE_SEXPR":46,"hash":47,"hash_repetition_plus0":48,"hashSegment":49,"ID":50,"EQUALS":51,"DATA":52,"pathSegments":53,"SEP":54,"$accept":0,"$end":1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function anonymous(y,a,c,i,n,$,p){var r=$.length-1;switch(n){case 1:i.prepareProgram($[r-1].statements,true);return $[r-1];break;case 2:this.$=new i.ProgramNode(i.prepareProgram($[r]),{},this._$);break;case 3:this.$=$[r];break;case 4:this.$=$[r];break;case 5:this.$=$[r];break;case 6:this.$=$[r];break;case 7:this.$=new i.ContentNode($[r],this._$);break;case 8:this.$=new i.CommentNode($[r],this._$);break;case 9:this.$=new i.RawBlockNode($[r-2],$[r-1],$[r],this._$);break;case 10:this.$=new i.MustacheNode($[r-1],null,'','',this._$);break;case 11:this.$=i.prepareBlock($[r-3],$[r-2],$[r-1],$[r],false,this._$);break;case 12:this.$=i.prepareBlock($[r-3],$[r-2],$[r-1],$[r],true,this._$);break;case 13:this.$=new i.MustacheNode($[r-1],null,$[r-2],i.stripFlags($[r-2],$[r]),this._$);break;case 14:this.$=new i.MustacheNode($[r-1],null,$[r-2],i.stripFlags($[r-2],$[r]),this._$);break;case 15:this.$={strip:i.stripFlags($[r-1],$[r-1]),program:$[r]};break;case 16:this.$={path:$[r-1],strip:i.stripFlags($[r-2],$[r])};break;case 17:this.$=new i.MustacheNode($[r-1],null,$[r-2],i.stripFlags($[r-2],$[r]),this._$);break;case 18:this.$=new i.MustacheNode($[r-1],null,$[r-2],i.stripFlags($[r-2],$[r]),this._$);break;case 19:this.$=new i.PartialNode($[r-3],$[r-2],$[r-1],i.stripFlags($[r-4],$[r]),this._$);break;case 20:this.$=new i.PartialNode($[r-2],undefined,$[r-1],i.stripFlags($[r-3],$[r]),this._$);break;case 21:this.$=new i.SexprNode([$[r-2]].concat($[r-1]),$[r],this._$);break;case 22:this.$=new i.SexprNode([$[r]],null,this._$);break;case 23:this.$=$[r];break;case 24:this.$=new i.StringNode($[r],this._$);break;case 25:this.$=new i.NumberNode($[r],this._$);break;case 26:this.$=new i.BooleanNode($[r],this._$);break;case 27:this.$=$[r];break;case 28:$[r-1].isHelper=true;this.$=$[r-1];break;case 29:this.$=new i.HashNode($[r],this._$);break;case 30:this.$=[$[r-2],$[r]];break;case 31:this.$=new i.PartialNameNode($[r],this._$);break;case 32:this.$=new i.PartialNameNode(new i.StringNode($[r],this._$),this._$);break;case 33:this.$=new i.PartialNameNode(new i.NumberNode($[r],this._$));break;case 34:this.$=new i.DataNode($[r],this._$);break;case 35:this.$=new i.IdNode($[r],this._$);break;case 36:$[r-2].push({part:$[r],separator:$[r-1]});this.$=$[r-2];break;case 37:this.$=[{part:$[r]}];break;case 38:this.$=[];break;case 39:$[r-1].push($[r]);break;case 48:this.$=[];break;case 49:$[r-1].push($[r]);break;case 52:this.$=[$[r]];break;case 53:$[r-1].push($[r]);break;}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function parseError(a,c){throw new Error(a);},parse:function parse(i){var c=this,w=[0],x=[null],y=[],z=this.table,A="",B=0,C=0,D=0,T=2,E=1;this.lexer.setInput(i);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;if(typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};var F=this.lexer.yylloc;y.push(F);var G=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function H(n){w.length=w.length-2*n;x.length=x.length-n;y.length=y.length-n;}function I(){var n;n=c.lexer.lex()||1;if(typeof n!=="number"){n=c.symbols_[n]||n;}return n;}var J,K,L,M,a,r,N={},p,O,Q,R;while(true){L=w[w.length-1];if(this.defaultActions[L]){M=this.defaultActions[L];}else{if(J===null||typeof J=="undefined"){J=I();}M=z[L]&&z[L][J];}if(typeof M==="undefined"||!M.length||!M[0]){var S="";if(!D){R=[];for(p in z[L])if(this.terminals_[p]&&p>2){R.push("'"+this.terminals_[p]+"'");}if(this.lexer.showPosition){S="Parse error on line "+(B+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[J]||J)+"'";}else{S="Parse error on line "+(B+1)+": Unexpected "+(J==1?"end of input":"'"+(this.terminals_[J]||J)+"'");}this.parseError(S,{text:this.lexer.match,token:this.terminals_[J]||J,line:this.lexer.yylineno,loc:F,expected:R});}}if(M[0]instanceof Array&&M.length>1){throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+J);}switch(M[0]){case 1:w.push(J);x.push(this.lexer.yytext);y.push(this.lexer.yylloc);w.push(M[1]);J=null;if(!K){C=this.lexer.yyleng;A=this.lexer.yytext;B=this.lexer.yylineno;F=this.lexer.yylloc;if(D>0)D--;}else{J=K;K=null;}break;case 2:O=this.productions_[M[1]][1];N.$=x[x.length-O];N._$={first_line:y[y.length-(O||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(O||1)].first_column,last_column:y[y.length-1].last_column};if(G){N._$.range=[y[y.length-(O||1)].range[0],y[y.length-1].range[1]];}r=this.performAction.call(N,A,C,B,this.yy,M[1],x,y);if(typeof r!=="undefined"){return r;}if(O){w=w.slice(0,-1*O*2);x=x.slice(0,-1*O);y=y.slice(0,-1*O);}w.push(this.productions_[M[1]][0]);x.push(N.$);y.push(N._$);Q=z[w[w.length-2]][w[w.length-1]];w.push(Q);break;case 3:return true;}}return true;}};var v=(function(){var v=({EOF:1,parseError:function parseError(a,c){if(this.yy.parser){this.yy.parser.parseError(a,c);}else{throw new Error(a);}},setInput:function(i){this._input=i;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match='';this.conditionStack=['INITIAL'];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;return this;},input:function(){var c=this._input[0];this.yytext+=c;this.yyleng++;this.offset++;this.match+=c;this.matched+=c;var a=c.match(/(?:\r\n?|\n).*/g);if(a){this.yylineno++;this.yylloc.last_line++;}else{this.yylloc.last_column++;}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);return c;},unput:function(c){var a=c.length;var i=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-a-1);this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(i.length-1)this.yylineno-=i.length-1;var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-a};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-a];}return this;},more:function(){this._more=true;return this;},less:function(n){this.unput(this.match.slice(n));},pastInput:function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?'...':'')+p.substr(-20).replace(/\n/g,"");},upcomingInput:function(){var n=this.match;if(n.length<20){n+=this._input.substr(0,20-n.length);}return(n.substr(0,20)+(n.length>20?'...':'')).replace(/\n/g,"");},showPosition:function(){var p=this.pastInput();var c=new Array(p.length+1).join("-");return p+this.upcomingInput()+"\n"+c+"^";},next:function(){if(this.done){return this.EOF;}if(!this._input)this.done=true;var a,c,n,p,r,w;if(!this._more){this.yytext='';this.match='';}var x=this._currentRules();for(var i=0;i<x.length;i++){n=this._input.match(this.rules[x[i]]);if(n&&(!c||n[0].length>c[0].length)){c=n;p=i;if(!this.options.flex)break;}}if(c){w=c[0].match(/(?:\r\n?|\n).*/g);if(w)this.yylineno+=w.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:w?w[w.length-1].length-w[w.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length};this.yytext+=c[0];this.match+=c[0];this.matches=c;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng];}this._more=false;this._input=this._input.slice(c[0].length);this.matched+=c[0];a=this.performAction.call(this,this.yy,this,x[p],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(a)return a;else return;}if(this._input===""){return this.EOF;}else{return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),{text:"",token:null,line:this.yylineno});}},lex:function lex(){var r=this.next();if(typeof r!=='undefined'){return r;}else{return this.lex();}},begin:function begin(c){this.conditionStack.push(c);},popState:function popState(){return this.conditionStack.pop();},_currentRules:function _currentRules(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;},topState:function(){return this.conditionStack[this.conditionStack.length-2];},pushState:function begin(c){this.begin(c);}});v.options={};v.performAction=function anonymous(y,a,$,Y){function c(n,p){return a.yytext=a.yytext.substr(n,a.yyleng-p);}var i=Y;switch($){case 0:if(a.yytext.slice(-2)==="\\\\"){c(0,1);this.begin("mu");}else if(a.yytext.slice(-1)==="\\"){c(0,1);this.begin("emu");}else{this.begin("mu");}if(a.yytext)return 12;break;case 1:return 12;break;case 2:this.popState();return 12;break;case 3:a.yytext=a.yytext.substr(5,a.yyleng-9);this.popState();return 15;break;case 4:return 12;break;case 5:c(0,4);this.popState();return 13;break;case 6:return 45;break;case 7:return 46;break;case 8:return 16;break;case 9:this.popState();this.begin('raw');return 18;break;case 10:return 34;break;case 11:return 24;break;case 12:return 29;break;case 13:this.popState();return 28;break;case 14:this.popState();return 28;break;case 15:return 26;break;case 16:return 26;break;case 17:return 32;break;case 18:return 31;break;case 19:this.popState();this.begin('com');break;case 20:c(3,5);this.popState();return 13;break;case 21:return 31;break;case 22:return 51;break;case 23:return 50;break;case 24:return 50;break;case 25:return 54;break;case 26:break;case 27:this.popState();return 33;break;case 28:this.popState();return 25;break;case 29:a.yytext=c(1,2).replace(/\\"/g,'"');return 42;break;case 30:a.yytext=c(1,2).replace(/\\'/g,"'");return 42;break;case 31:return 52;break;case 32:return 44;break;case 33:return 44;break;case 34:return 43;break;case 35:return 50;break;case 36:a.yytext=c(1,2);return 50;break;case 37:return'INVALID';break;case 38:return 5;break;}};v.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)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];v.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],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"com":{"rules":[5],"inclusive":false},"raw":{"rules":[3,4],"inclusive":false},"INITIAL":{"rules":[0,1,38],"inclusive":true}};return v;})();l.lexer=v;function P(){this.yy={};}P.prototype=l;l.Parser=P;return new P;})();b=j;return b;})();var o=(function(a){"use strict";var b={};var E=a;function c(i,l){return{left:i.charAt(2)==='~',right:l.charAt(l.length-3)==='~'};}b.stripFlags=c;function p(i,l,x,y,z,A){if(i.sexpr.id.original!==y.path.original){throw new E(i.sexpr.id.original+' doesn\'t match '+y.path.original,i);}var B=x&&x.program;var C={left:i.strip.left,right:y.strip.right,openStandalone:r(l.statements),closeStandalone:n((B||l).statements)};if(i.strip.right){v(l.statements,null,true);}if(B){var D=x.strip;if(D.left){w(l.statements,null,true);}if(D.right){v(B.statements,null,true);}if(y.strip.left){w(B.statements,null,true);}if(n(l.statements)&&r(B.statements)){w(l.statements);v(B.statements);}}else{if(y.strip.left){w(l.statements,null,true);}}if(z){return new this.BlockNode(i,B,l,C,A);}else{return new this.BlockNode(i,l,B,C,A);}}b.prepareBlock=p;function j(x,y){for(var i=0,l=x.length;i<l;i++){var z=x[i],A=z.strip;if(!A){continue;}var B=n(x,i,y,z.type==='partial'),C=r(x,i,y),D=A.openStandalone&&B,F=A.closeStandalone&&C,G=A.inlineStandalone&&B&&C;if(A.right){v(x,i,true);}if(A.left){w(x,i,true);}if(G){v(x,i);if(w(x,i)){if(z.type==='partial'){z.indent=(/([ \t]+$)/).exec(x[i-1].original)?RegExp.$1:'';}}}if(D){v((z.program||z.inverse).statements);w(x,i);}if(F){v(x,i);w((z.inverse||z.program).statements);}}return x;}b.prepareProgram=j;function n(l,i,x){if(i===undefined){i=l.length;}var y=l[i-1],z=l[i-2];if(!y){return x;}if(y.type==='content'){return(z||!x?(/\r?\n\s*?$/):(/(^|\r?\n)\s*?$/)).test(y.original);}}function r(l,i,x){if(i===undefined){i=-1;}var y=l[i+1],z=l[i+2];if(!y){return x;}if(y.type==='content'){return(z||!x?(/^\s*?\r?\n/):(/^\s*?(\r?\n|$)/)).test(y.original);}}function v(l,i,x){var y=l[i==null?0:i+1];if(!y||y.type!=='content'||(!x&&y.rightStripped)){return;}var z=y.string;y.string=y.string.replace(x?(/^\s+/):(/^[ \t]*\r?\n?/),'');y.rightStripped=y.string!==z;}function w(l,i,x){var y=l[i==null?l.length-1:i-1];if(!y||y.type!=='content'||(!x&&y.leftStripped)){return;}var z=y.string;y.string=y.string.replace(x?(/\s+$/):(/[ \t]+$/),'');y.leftStripped=y.string!==z;return y.leftStripped;}return b;})(e);var q=(function(a,b,c,i){"use strict";var j={};var p=a;var A=b;var H=c;var l=i.extend;j.parser=p;var y={};l(y,H,A);function n(r){if(r.constructor===A.ProgramNode){return r;}p.yy=y;return p.parse(r);}j.parse=n;return j;})(m,k,o,d);var s=(function(c,j){"use strict";var n={};var E=c;var p=j.isArray;var r=[].slice;function C(){}n.Compiler=C;C.prototype={compiler:C,equals:function(a){var l=this.opcodes.length;if(a.opcodes.length!==l){return false;}for(var i=0;i<l;i++){var b=this.opcodes[i],y=a.opcodes[i];if(b.opcode!==y.opcode||!x(b.args,y.args)){return false;}}l=this.children.length;for(i=0;i<l;i++){if(!this.children[i].equals(a.children[i])){return false;}}return true;},guid:0,compile:function(a,b){this.opcodes=[];this.children=[];this.depths={list:[]};this.options=b;this.stringParams=b.stringParams;this.trackIds=b.trackIds;var i=this.options.knownHelpers;this.options.knownHelpers={'helperMissing':true,'blockHelperMissing':true,'each':true,'if':true,'unless':true,'with':true,'log':true,'lookup':true};if(i){for(var l in i){this.options.knownHelpers[l]=i[l];}}return this.accept(a);},accept:function(a){return this[a.type](a);},program:function(y){var z=y.statements;for(var i=0,l=z.length;i<l;i++){this.accept(z[i]);}this.isSimple=l===1;this.depths.list=this.depths.list.sort(function(a,b){return a-b;});return this;},compileProgram:function(a){var b=new this.compiler().compile(a,this.options);var y=this.guid++,z;this.usePartial=this.usePartial||b.usePartial;this.children[y]=b;for(var i=0,l=b.depths.list.length;i<l;i++){z=b.depths.list[i];if(z<2){continue;}else{this.addDepth(z-1);}}return y;},block:function(b){var a=b.mustache,i=b.program,l=b.inverse;if(i){i=this.compileProgram(i);}if(l){l=this.compileProgram(l);}var y=a.sexpr;var z=this.classifySexpr(y);if(z==="helper"){this.helperSexpr(y,i,l);}else if(z==="simple"){this.simpleSexpr(y);this.opcode('pushProgram',i);this.opcode('pushProgram',l);this.opcode('emptyHash');this.opcode('blockValue',y.id.original);}else{this.ambiguousSexpr(y,i,l);this.opcode('pushProgram',i);this.opcode('pushProgram',l);this.opcode('emptyHash');this.opcode('ambiguousBlockValue');}this.opcode('append');},hash:function(a){var b=a.pairs,i,l;this.opcode('pushHash');for(i=0,l=b.length;i<l;i++){this.pushParam(b[i][1]);}while(i--){this.opcode('assignToHash',b[i][0]);}this.opcode('popHash');},partial:function(a){var b=a.partialName;this.usePartial=true;if(a.hash){this.accept(a.hash);}else{this.opcode('push','undefined');}if(a.context){this.accept(a.context);}else{this.opcode('getContext',0);this.opcode('pushContext');}this.opcode('invokePartial',b.name,a.indent||'');this.opcode('append');},content:function(a){if(a.string){this.opcode('appendContent',a.string);}},mustache:function(a){this.sexpr(a.sexpr);if(a.escaped&&!this.options.noEscape){this.opcode('appendEscaped');}else{this.opcode('append');}},ambiguousSexpr:function(a,b,i){var l=a.id,y=l.parts[0],z=b!=null||i!=null;this.opcode('getContext',l.depth);this.opcode('pushProgram',b);this.opcode('pushProgram',i);this.ID(l);this.opcode('invokeAmbiguous',y,z);},simpleSexpr:function(a){var i=a.id;if(i.type==='DATA'){this.DATA(i);}else if(i.parts.length){this.ID(i);}else{this.addDepth(i.depth);this.opcode('getContext',i.depth);this.opcode('pushContext');}this.opcode('resolvePossibleLambda');},helperSexpr:function(a,b,i){var l=this.setupFullMustacheParams(a,b,i),y=a.id,z=y.parts[0];if(this.options.knownHelpers[z]){this.opcode('invokeKnownHelper',l.length,z);}else if(this.options.knownHelpersOnly){throw new E("You specified knownHelpersOnly, but used the unknown helper "+z,a);}else{y.falsy=true;this.ID(y);this.opcode('invokeHelper',l.length,y.original,y.isSimple);}},sexpr:function(a){var b=this.classifySexpr(a);if(b==="simple"){this.simpleSexpr(a);}else if(b==="helper"){this.helperSexpr(a);}else{this.ambiguousSexpr(a);}},ID:function(i){this.addDepth(i.depth);this.opcode('getContext',i.depth);var a=i.parts[0];if(!a){this.opcode('pushContext');}else{this.opcode('lookupOnContext',i.parts,i.falsy,i.isScoped);}},DATA:function(a){this.options.data=true;this.opcode('lookupData',a.id.depth,a.id.parts);},STRING:function(a){this.opcode('pushString',a.string);},NUMBER:function(a){this.opcode('pushLiteral',a.number);},BOOLEAN:function(b){this.opcode('pushLiteral',b.bool);},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:r.call(arguments,1)});},addDepth:function(a){if(a===0){return;}if(!this.depths[a]){this.depths[a]=true;this.depths.list.push(a);}},classifySexpr:function(a){var i=a.isHelper;var b=a.eligibleHelper;var l=this.options;if(b&&!i){var y=a.id.parts[0];if(l.knownHelpers[y]){i=true;}else if(l.knownHelpersOnly){b=false;}}if(i){return"helper";}else if(b){return"ambiguous";}else{return"simple";}},pushParams:function(a){for(var i=0,l=a.length;i<l;i++){this.pushParam(a[i]);}},pushParam:function(a){if(this.stringParams){if(a.depth){this.addDepth(a.depth);}this.opcode('getContext',a.depth||0);this.opcode('pushStringParam',a.stringModeValue,a.type);if(a.type==='sexpr'){this.sexpr(a);}}else{if(this.trackIds){this.opcode('pushId',a.type,a.idName||a.stringModeValue);}this.accept(a);}},setupFullMustacheParams:function(a,b,i){var l=a.params;this.pushParams(l);this.opcode('pushProgram',b);this.opcode('pushProgram',i);if(a.hash){this.hash(a.hash);}else{this.opcode('emptyHash');}return l;}};function v(i,a,b){if(i==null||(typeof i!=='string'&&i.constructor!==b.AST.ProgramNode)){throw new E("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+i);}a=a||{};if(!('data'in a)){a.data=true;}if(a.compat){a.useDepths=true;}var l=b.parse(i);var y=new b.Compiler().compile(l,a);return new b.JavaScriptCompiler().compile(y,a);}n.precompile=v;function w(a,b,l){if(a==null||(typeof a!=='string'&&a.constructor!==l.AST.ProgramNode)){throw new E("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);}b=b||{};if(!('data'in b)){b.data=true;}if(b.compat){b.useDepths=true;}var y;function z(){var i=l.parse(a);var B=new l.Compiler().compile(i,b);var D=new l.JavaScriptCompiler().compile(B,b,undefined,true);return l.template(D);}var A=function(i,b){if(!y){y=z();}return y.call(this,i,b);};A._setup=function(b){if(!y){y=z();}return y._setup(b);};A._child=function(i,B,D){if(!y){y=z();}return y._child(i,B,D);};return A;}n.compile=w;function x(a,b){if(a===b){return true;}if(p(a)&&p(b)&&a.length===b.length){for(var i=0;i<a.length;i++){if(!x(a[i],b[i])){return false;}}return true;}}return n;})(e,d);var t=(function(a,b){"use strict";var c;var C=a.COMPILER_REVISION;var R=a.REVISION_CHANGES;var E=b;function L(v){this.value=v;}function J(){}J.prototype={nameLookup:function(p,n){if(J.isValidJavaScriptVariableName(n)){return p+"."+n;}else{return p+"['"+n+"']";}},depthedLookup:function(n){this.aliases.lookup='this.lookup';return'lookup(depths, "'+n+'")';},compilerInfo:function(){var n=C,v=R[n];return[n,v];},appendToBuffer:function(n){if(this.environment.isSimple){return"return "+n+";";}else{return{appendToBuffer:true,content:n,toString:function(){return"buffer += "+n+";";}};}},initializeBuffer:function(){return this.quotedString("");},namespace:"Handlebars",compile:function(n,p,v,w){this.environment=n;this.options=p;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!w;this.name=this.environment.name;this.isChild=!!v;this.context=v||{programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.compileChildren(n,p);this.useDepths=this.useDepths||n.depths.list.length||this.options.compat;var x=n.opcodes,y,i,l;for(i=0,l=x.length;i<l;i++){y=x[i];this[y.opcode].apply(this,y.args);}this.pushSource('');if(this.stackSlot||this.inlineStack.length||this.compileStack.length){throw new E('Compile completed with content left on stack');}var z=this.createFunctionContext(w);if(!this.isChild){var A={compiler:this.compilerInfo(),main:z};var B=this.context.programs;for(i=0,l=B.length;i<l;i++){if(B[i]){A[i]=B[i];}}if(this.environment.usePartial){A.usePartial=true;}if(this.options.data){A.useData=true;}if(this.useDepths){A.useDepths=true;}if(this.options.compat){A.compat=true;}if(!w){A.compiler=JSON.stringify(A.compiler);A=this.objectLiteral(A);}return A;}else{return z;}},preamble:function(){this.lastContext=0;this.source=[];},createFunctionContext:function(n){var v='';var p=this.stackVars.concat(this.registers.list);if(p.length>0){v+=", "+p.join(", ");}for(var w in this.aliases){if(this.aliases.hasOwnProperty(w)){v+=', '+w+'='+this.aliases[w];}}var x=["depth0","helpers","partials","data"];if(this.useDepths){x.push('depths');}var y=this.mergeSource(v);if(n){x.push(y);return Function.apply(this,x);}else{return'function('+x.join(',')+') {\n  '+y+'}';}},mergeSource:function(v){var n='',p,w=!this.forceBuffer,x;for(var i=0,y=this.source.length;i<y;i++){var z=this.source[i];if(z.appendToBuffer){if(p){p=p+'\n    + '+z.content;}else{p=z.content;}}else{if(p){if(!n){x=true;n=p+';\n  ';}else{n+='buffer += '+p+';\n  ';}p=undefined;}n+=z+'\n  ';if(!this.environment.isSimple){w=false;}}}if(w){if(p||!n){n+='return '+(p||'""')+';\n';}}else{v+=", buffer = "+(x?'':this.initializeBuffer());if(p){n+='return buffer + '+p+';\n';}else{n+='return buffer;\n';}}if(v){n='var '+v.substring(2)+(x?'':';\n  ')+n;}return n;},blockValue:function(n){this.aliases.blockHelperMissing='helpers.blockHelperMissing';var p=[this.contextName(0)];this.setupParams(n,0,p);var v=this.popStack();p.splice(1,0,v);this.push('blockHelperMissing.call('+p.join(', ')+')');},ambiguousBlockValue:function(){this.aliases.blockHelperMissing='helpers.blockHelperMissing';var p=[this.contextName(0)];this.setupParams('',0,p,true);this.flushInline();var n=this.topStack();p.splice(1,0,n);this.pushSource("if (!"+this.lastHelper+") { "+n+" = blockHelperMissing.call("+p.join(", ")+"); }");},appendContent:function(n){if(this.pendingContent){n=this.pendingContent+n;}this.pendingContent=n;},append:function(){this.flushInline();var n=this.popStack();this.pushSource('if ('+n+' != null) { '+this.appendToBuffer(n)+' }');if(this.environment.isSimple){this.pushSource("else { "+this.appendToBuffer("''")+" }");}},appendEscaped:function(){this.aliases.escapeExpression='this.escapeExpression';this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"));},getContext:function(n){this.lastContext=n;},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext));},lookupOnContext:function(p,n,v){var i=0,w=p.length;if(!v&&this.options.compat&&!this.lastContext){this.push(this.depthedLookup(p[i++]));}else{this.pushContext();}for(;i<w;i++){this.replaceStack(function(x){var y=this.nameLookup(x,p[i],'context');if(!n){return' != null ? '+y+' : '+x;}else{return' && '+y;}});}},lookupData:function(n,p){if(!n){this.pushStackLiteral('data');}else{this.pushStackLiteral('this.data(data, '+n+')');}var v=p.length;for(var i=0;i<v;i++){this.replaceStack(function(w){return' && '+this.nameLookup(w,p[i],'data');});}},resolvePossibleLambda:function(){this.aliases.lambda='this.lambda';this.push('lambda('+this.popStack()+', '+this.contextName(0)+')');},pushStringParam:function(n,p){this.pushContext();this.pushString(p);if(p!=='sexpr'){if(typeof n==='string'){this.pushString(n);}else{this.pushStackLiteral(n);}}},emptyHash:function(){this.pushStackLiteral('{}');if(this.trackIds){this.push('{}');}if(this.stringParams){this.push('{}');this.push('{}');}},pushHash:function(){if(this.hash){this.hashes.push(this.hash);}this.hash={values:[],types:[],contexts:[],ids:[]};},popHash:function(){var n=this.hash;this.hash=this.hashes.pop();if(this.trackIds){this.push('{'+n.ids.join(',')+'}');}if(this.stringParams){this.push('{'+n.contexts.join(',')+'}');this.push('{'+n.types.join(',')+'}');}this.push('{\n    '+n.values.join(',\n    ')+'\n  }');},pushString:function(n){this.pushStackLiteral(this.quotedString(n));},push:function(n){this.inlineStack.push(n);return n;},pushLiteral:function(v){this.pushStackLiteral(v);},pushProgram:function(n){if(n!=null){this.pushStackLiteral(this.programExpression(n));}else{this.pushStackLiteral(null);}},invokeHelper:function(p,n,v){this.aliases.helperMissing='helpers.helperMissing';var w=this.popStack();var x=this.setupHelper(p,n);var y=(v?x.name+' || ':'')+w+' || helperMissing';this.push('(('+y+').call('+x.callParams+'))');},invokeKnownHelper:function(p,n){var v=this.setupHelper(p,n);this.push(v.name+".call("+v.callParams+")");},invokeAmbiguous:function(n,p){this.aliases.functionType='"function"';this.aliases.helperMissing='helpers.helperMissing';this.useRegister('helper');var v=this.popStack();this.emptyHash();var w=this.setupHelper(0,n,p);var x=this.lastHelper=this.nameLookup('helpers',n,'helper');this.push('((helper = (helper = '+x+' || '+v+') != null ? helper : helperMissing'+(w.paramsInit?'),('+w.paramsInit:'')+'),'+'(typeof helper === functionType ? helper.call('+w.callParams+') : helper))');},invokePartial:function(n,p){var v=[this.nameLookup('partials',n,'partial'),"'"+p+"'","'"+n+"'",this.popStack(),this.popStack(),"helpers","partials"];if(this.options.data){v.push("data");}else if(this.options.compat){v.push('undefined');}if(this.options.compat){v.push('depths');}this.push("this.invokePartial("+v.join(", ")+")");},assignToHash:function(n){var v=this.popStack(),p,w,x;if(this.trackIds){x=this.popStack();}if(this.stringParams){w=this.popStack();p=this.popStack();}var y=this.hash;if(p){y.contexts.push("'"+n+"': "+p);}if(w){y.types.push("'"+n+"': "+w);}if(x){y.ids.push("'"+n+"': "+x);}y.values.push("'"+n+"': ("+v+")");},pushId:function(n,p){if(n==='ID'||n==='DATA'){this.pushString(p);}else if(n==='sexpr'){this.pushStackLiteral('true');}else{this.pushStackLiteral('null');}},compiler:J,compileChildren:function(n,p){var v=n.children,w,x;for(var i=0,l=v.length;i<l;i++){w=v[i];x=new this.compiler();var y=this.matchExistingProgram(w);if(y==null){this.context.programs.push('');y=this.context.programs.length;w.index=y;w.name='program'+y;this.context.programs[y]=x.compile(w,p,this.context,!this.precompile);this.context.environments[y]=w;this.useDepths=this.useDepths||x.useDepths;}else{w.index=y;w.name='program'+y;}}},matchExistingProgram:function(n){for(var i=0,p=this.context.environments.length;i<p;i++){var v=this.context.environments[i];if(v&&v.equals(n)){return i;}}},programExpression:function(n){var p=this.environment.children[n],v=p.depths.list,w=this.useDepths,x;var y=[p.index,'data'];if(w){y.push('depths');}return'this.program('+y.join(', ')+')';},useRegister:function(n){if(!this.registers[n]){this.registers[n]=true;this.registers.list.push(n);}},pushStackLiteral:function(n){return this.push(new L(n));},pushSource:function(n){if(this.pendingContent){this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent)));this.pendingContent=undefined;}if(n){this.source.push(n);}},pushStack:function(n){this.flushInline();var p=this.incrStack();this.pushSource(p+" = "+n+";");this.compileStack.push(p);return p;},replaceStack:function(n){var p='',v=this.isInline(),w,x,y;if(!this.isInline()){throw new E('replaceStack on non-inline');}var z=this.popStack(true);if(z instanceof L){p=w=z.value;y=true;}else{x=!this.stackSlot;var A=!x?this.topStackName():this.incrStack();p='('+this.push(A)+' = '+z+')';w=this.topStack();}var B=n.call(this,w);if(!y){this.popStack();}if(x){this.stackSlot--;}this.push('('+p+B+')');},incrStack:function(){this.stackSlot++;if(this.stackSlot>this.stackVars.length){this.stackVars.push("stack"+this.stackSlot);}return this.topStackName();},topStackName:function(){return"stack"+this.stackSlot;},flushInline:function(){var n=this.inlineStack;if(n.length){this.inlineStack=[];for(var i=0,p=n.length;i<p;i++){var v=n[i];if(v instanceof L){this.compileStack.push(v);}else{this.pushStack(v);}}}},isInline:function(){return this.inlineStack.length;},popStack:function(w){var n=this.isInline(),p=(n?this.inlineStack:this.compileStack).pop();if(!w&&(p instanceof L)){return p.value;}else{if(!n){if(!this.stackSlot){throw new E('Invalid stack pop');}this.stackSlot--;}return p;}},topStack:function(){var n=(this.isInline()?this.inlineStack:this.compileStack),p=n[n.length-1];if(p instanceof L){return p.value;}else{return p;}},contextName:function(n){if(this.useDepths&&n){return'depths['+n+']';}else{return'depth'+n;}},quotedString:function(n){return'"'+n.replace(/\\/g,'\\\\').replace(/"/g,'\\"').replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')+'"';},objectLiteral:function(n){var p=[];for(var v in n){if(n.hasOwnProperty(v)){p.push(this.quotedString(v)+':'+n[v]);}}return'{'+p.join(',')+'}';},setupHelper:function(p,n,v){var w=[],x=this.setupParams(n,p,w,v);var y=this.nameLookup('helpers',n,'helper');return{params:w,paramsInit:x,name:y,callParams:[this.contextName(0)].concat(w).join(", ")};},setupOptions:function(n,p,v){var w={},x=[],y=[],z=[],A,B,D;w.name=this.quotedString(n);w.hash=this.popStack();if(this.trackIds){w.hashIds=this.popStack();}if(this.stringParams){w.hashTypes=this.popStack();w.hashContexts=this.popStack();}B=this.popStack();D=this.popStack();if(D||B){if(!D){D='this.noop';}if(!B){B='this.noop';}w.fn=D;w.inverse=B;}var i=p;while(i--){A=this.popStack();v[i]=A;if(this.trackIds){z[i]=this.popStack();}if(this.stringParams){y[i]=this.popStack();x[i]=this.popStack();}}if(this.trackIds){w.ids="["+z.join(",")+"]";}if(this.stringParams){w.types="["+y.join(",")+"]";w.contexts="["+x.join(",")+"]";}if(this.options.data){w.data="data";}return w;},setupParams:function(n,p,v,w){var x=this.objectLiteral(this.setupOptions(n,p,v));if(w){this.useRegister('options');v.push('options');return'options='+x;}else{v.push(x);return'';}}};var r=("break else new var"+" case finally return void"+" catch for switch while"+" continue function this with"+" default if throw"+" delete in try"+" do instanceof typeof"+" abstract enum int short"+" boolean export interface static"+" byte extends long super"+" char final native synchronized"+" class float package throws"+" const goto private transient"+" debugger implements protected volatile"+" double import public let yield").split(" ");var j=J.RESERVED_WORDS={};for(var i=0,l=r.length;i<l;i++){j[r[i]]=true;}J.isValidJavaScriptVariableName=function(n){return!J.RESERVED_WORDS[n]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n);};c=J;return c;})(f,e);var u=(function(a,b,c,i,j){"use strict";var l;var H=a;var A=b;var P=c.parser;var p=c.parse;var C=i.Compiler;var n=i.compile;var r=i.precompile;var J=j;var v=H.create;var w=function(){var x=v();x.compile=function(y,z){return n(y,z,x);};x.precompile=function(y,z){return r(y,z,x);};x.AST=A;x.Compiler=C;x.JavaScriptCompiler=J;x.Parser=P;x.parse=p;return x;};H=w();H.create=w;H['default']=H;l=H;return l;})(h,k,q,s,t);return u;}));
