prettier
Version:
Prettier is an opinionated code formatter
11 lines • 133 kB
JavaScript
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var Wt=Object.defineProperty;var Jn=Object.getOwnPropertyDescriptor;var Xn=Object.getOwnPropertyNames;var $n=Object.prototype.hasOwnProperty;var Kt=(t,e)=>{for(var r in e)Wt(t,r,{get:e[r],enumerable:!0})},Zn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xn(e))!$n.call(t,i)&&i!==r&&Wt(t,i,{get:()=>e[i],enumerable:!(n=Jn(e,i))||n.enumerable});return t};var ei=t=>Zn(Wt({},"__esModule",{value:!0}),t);var Br=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var $=(t,e,r)=>(Br(t,e,"read from private field"),r?r.call(t):e.get(t)),Rr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},qr=(t,e,r,n)=>(Br(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var na={};Kt(na,{languages:()=>Yn,parsers:()=>qt,printers:()=>ra});var ti=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},jt=ti;var ze="string",We="array",Ke="cursor",De="indent",Oe="align",je="trim",Ie="group",Be="fill",Re="if-break",Qe="indent-if-break",Je="line-suffix",Xe="line-suffix-boundary",Z="line",$e="label",qe="break-parent",pt=new Set([Ke,De,Oe,je,Ie,Be,Re,Qe,Je,Xe,Z,$e,qe]);function ri(t){if(typeof t=="string")return ze;if(Array.isArray(t))return We;if(!t)return;let{type:e}=t;if(pt.has(e))return e}var Ze=ri;var ni=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ii(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
Expected it to be 'string' or 'object'.`;if(Ze(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ni([...pt].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${n}.`}var Qt=class extends Error{name="InvalidDocError";constructor(e){super(ii(e)),this.doc=e}},Jt=Qt;var Vr=()=>{},Te=Vr,ft=Vr;function O(t){return Te(t),{type:De,contents:t}}function si(t,e){return Te(e),{type:Oe,contents:e,n:t}}function I(t,e={}){return Te(t),ft(e.expandedStates,!0),{type:Ie,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Xt(t){return si(-1,t)}function $t(t){return ft(t),{type:Be,parts:t}}function Zt(t,e="",r={}){return Te(t),e!==""&&Te(e),{type:Re,breakContents:t,flatContents:e,groupId:r.groupId}}var Hr={type:qe};var ai={type:Z,hard:!0},oi={type:Z,hard:!0,literal:!0},_={type:Z},M={type:Z,soft:!0},ve=[ai,Hr],Ur=[oi,Hr];function we(t,e){Te(t),ft(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var li=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},he=li;function ci(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Ze(s)){case We:return e(s.map(n));case Be:return e({...s,parts:s.parts.map(n)});case Re:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Ie:{let{expandedStates:a,contents:l}=s;return a?(a=a.map(n),l=a[0]):l=n(l),e({...s,contents:l,expandedStates:a})}case Oe:case De:case Qe:case $e:case Je:return e({...s,contents:n(s.contents)});case ze:case Ke:case je:case Xe:case Z:case qe:return e(s);default:throw new Jt(s)}}}function Fr(t,e=Ur){return ci(t,r=>typeof r=="string"?we(e,r.split(`
`)):r)}var dt="'",Mr='"';function ui(t,e){let r=e===!0||e===dt?dt:Mr,n=r===dt?Mr:dt,i=0,s=0;for(let a of t)a===r?i++:a===n&&s++;return i>s?n:r}var mt=ui;function hi(t){return Array.isArray(t)&&t.length>0}var et=hi;var er=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Gr=er;function tr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,rr=class{constructor(e){Rr(this,U,void 0);qr(this,U,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,U),n=0;for(let i=0;i<e.length&&r.has(e.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(e){let r=$(this,U),n=0;for(let i=e.length-1;i>=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,U).has(he(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${tr([...$(this,U)].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return e.split(i)}hasWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,U);return Array.prototype.every.call(e,n=>r.has(n))}};U=new WeakMap;var Yr=rr;var pi=[" ",`
`,"\f","\r"," "],fi=new Yr(pi),G=fi;function xe(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}function zr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=G.split(r).join(" ")}t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value}zr.ignoredProperties=new Set(["loc","selfClosing"]);var Wr=zr;var Kr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Qr(t){return t.toUpperCase()===t}function di(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(Qr(t.tag[0])||t.tag.includes("."))}var mi=new Set(Kr);function gi(t){return mi.has(t.toLowerCase())&&!Qr(t[0])}function nr(t){return t.selfClosing===!0||gi(t.tag)||di(t)&&t.children.every(e=>gt(e))}function gt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function jr(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function Jr(t){return jr(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&jr(t.siblings[t.index-2])}var rt=null;function nt(t){if(rt!==null&&typeof rt.property){let e=rt;return rt=nt.prototype=null,e}return rt=nt.prototype=t??Object.create(null),new nt}var bi=10;for(let t=0;t<=bi;t++)nt();function ir(t){return nt(t)}function yi(t,e="type"){ir(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Xr=yi;var $r={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var Si=Xr($r),Zr=Si;var ln=2;function Ei(t,e,r){var i,s,a,l,c,h,g,y,F;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return I(t.map(r,"body"));case"ElementNode":{let b=I(vi(t,r)),k=e.htmlWhitespaceSensitivity==="ignore"&&((i=t.next)==null?void 0:i.type)==="ElementNode"?M:"";if(nr(n))return[b,k];let N=["</",n.tag,">"];return n.children.length===0?[b,O(N),k]:e.htmlWhitespaceSensitivity==="ignore"?[b,O(en(t,e,r)),ve,O(N),k]:[b,O(I(en(t,e,r))),O(N),k]}case"BlockStatement":return Ci(t)?[Ai(t,r),nn(t,r,e),sn(t,r,e)]:[Pi(t,r),I([nn(t,r,e),sn(t,r,e),_i(t,r,e)])];case"ElementModifierStatement":return I(["{{",on(t,r),"}}"]);case"MustacheStatement":return I([bt(n),on(t,r),yt(n)]);case"SubExpression":return I(["(",qi(t,r),M,")"]);case"AttrNode":{let{name:b,value:k}=n,N=k.type==="TextNode";if(N&&k.chars===""&&xe(k)===tt(k))return b;let w=N?mt(k.chars,e.singleQuote):k.type==="ConcatStatement"?mt(k.parts.map(R=>R.type==="TextNode"?R.chars:"").join(""),e.singleQuote):"",se=r("value");return[b,"=",w,b==="class"&&w?I(O(se)):se,w]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return we(_,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let b=jt(!1,n.chars,"{{","\\{{"),k=Di(t);if(k){if(k==="class"){let J=b.trim().split(/\s+/).join(" "),ae=!1,q=!1;return t.parent.type==="ConcatStatement"&&(((s=t.previous)==null?void 0:s.type)==="MustacheStatement"&&/^\s/.test(b)&&(ae=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(b)&&J!==""&&(q=!0)),[ae?_:"",J,q?_:""]}return Fr(b)}let N=G.isWhitespaceOnly(b),{isFirst:B,isLast:w}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=w&&t.parent.type==="Template",ae=B&&t.parent.type==="Template";if(N){if(ae||J)return"";let A=[_],le=Ve(b);return le&&(A=it(le)),w&&(A=A.map(ct=>Xt(ct))),A}let q=G.getLeadingWhitespace(b),Ae=[];if(q){Ae=[_];let A=Ve(q);A&&(Ae=it(A)),b=b.slice(q.length)}let V=G.getTrailingWhitespace(b),oe=[];if(V){if(!J){oe=[_];let A=Ve(V);A&&(oe=it(A)),w&&(oe=oe.map(le=>Xt(le)))}b=b.slice(0,-V.length)}return[...Ae,$t(an(b)),...oe]}let se=Ve(b),R=Oi(b),Q=Ii(b);if((B||w)&&N&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";N&&se?(R=Math.min(se,ln),Q=0):((((l=t.next)==null?void 0:l.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(Q=Math.max(Q,1)),(((h=t.previous)==null?void 0:h.type)==="BlockStatement"||((g=t.previous)==null?void 0:g.type)==="ElementNode")&&(R=Math.max(R,1)));let Ne="",Ce="";return Q===0&&((y=t.next)==null?void 0:y.type)==="MustacheStatement"&&(Ce=" "),R===0&&((F=t.previous)==null?void 0:F.type)==="MustacheStatement"&&(Ne=" "),B&&(R=0,Ne=""),w&&(Q=0,Ce=""),G.hasLeadingWhitespace(b)&&(b=Ne+G.trimStart(b)),G.hasTrailingWhitespace(b)&&(b=G.trimEnd(b)+Ce),[...it(R),$t(an(b)),...it(Q)]}case"MustacheCommentStatement":{let b=xe(n),k=tt(n),N=e.originalText.charAt(b+2)==="~",B=e.originalText.charAt(k-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,B?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return Bi(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Gr(n,"Handlebars")}}function Ti(t,e){return xe(t)-xe(e)}function vi(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(s=>et(r[s])),i=n.flatMap(s=>r[s]).sort(Ti);for(let s of n)t.each(({node:a})=>{let l=i.indexOf(a);i.splice(l,1,[_,e()])},s);return et(r.blockParams)&&i.push(_,ar(r)),["<",r.tag,O(i),wi(r)]}function en(t,e,r){let{node:n}=t,i=n.children.every(s=>gt(s));return e.htmlWhitespaceSensitivity==="ignore"&&i?"":t.map(({isFirst:s})=>{let a=r();return s&&e.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function wi(t){return nr(t)?Zt([M,"/>"],[" />",M]):Zt([M,">"],">")}function bt(t){var n;let e=t.escaped===!1?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function yt(t){var n;let e=t.escaped===!1?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function xi(t){let e=bt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function ki(t){let e=yt(t);return[t.openStrip.close?"~":"",e]}function tn(t){let e=bt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function rn(t){let e=yt(t);return[t.closeStrip.close?"~":"",e]}function cn(t){let e=bt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function un(t){let e=yt(t);return[t.inverseStrip.close?"~":"",e]}function Pi(t,e){let{node:r}=t,n=[],i=St(t,e);return i&&n.push(I(i)),et(r.program.blockParams)&&n.push(ar(r.program)),I([xi(r),sr(t,e),n.length>0?O([_,we(_,n)]):"",M,ki(r)])}function Ni(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ve:"",cn(t),"else",un(t)]}function Ci(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function Ai(t,e){let{node:r,grandparent:n}=t;return I([cn(n),["else"," ",n.inverse.body[0].path.parts[0]],O([_,I(St(t,e)),...et(r.program.blockParams)?[_,ar(r.program)]:[]]),M,un(n)])}function _i(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:ve,tn(n),e("path"),rn(n)]:[tn(n),e("path"),rn(n)]}function hn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>gt(e))}function Li(t){return pn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function pn(t){return t.type==="BlockStatement"&&t.inverse}function nn(t,e,r){let{node:n}=t;if(hn(n))return"";let i=e("program");return r.htmlWhitespaceSensitivity==="ignore"?O([ve,i]):O(i)}function sn(t,e,r){let{node:n}=t,i=e("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[ve,i]:i;return Li(n)?s:pn(n)?[Ni(n,r),O(s)]:""}function an(t){return we(_,G.split(t))}function Di(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Ve(t){return t=typeof t=="string"?t:"",t.split(`
`).length-1}function Oi(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ve(e)}function Ii(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Ve(e)}function it(t=0){return Array.from({length:Math.min(t,ln)}).fill(ve)}function Bi(t,e){let{node:{value:r}}=t,n=mt(r,Ri(t)?!e.singleQuote:e.singleQuote);return[n,jt(!1,r,n,`\\${n}`),n]}function Ri(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function qi(t,e){let r=sr(t,e),n=St(t,e);return n?O([r,_,I(n)]):r}function on(t,e){let r=sr(t,e),n=St(t,e);return n?[O([r,_,n]),M]:r}function sr(t,e){return e("path")}function St(t,e){var i;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(e("hash")),n.length===0?"":we(_,n)}function ar(t){return["as |",t.blockParams.join(" "),"|"]}var Vi={print:Ei,massageAstNode:Wr,hasPrettierIgnore:Jr,getVisitorKeys:Zr},fn=Vi;var qt={};Kt(qt,{glimmer:()=>ta});var Hi=Object.freeze([]);function dn(){return Hi}var mo=dn(),go=dn();var pe=Object.assign;var No=function(){return typeof Symbol!="function"?!1:typeof Symbol()=="symbol"}();var T=(...t)=>t;function Fi(t){return t&-536870913}function Mi(t){return t|536870912}function Gi(t){return~t}function Yi(t){return~t}function zi(t){return t|=0,t<0?Fi(t):Gi(t)}function Wi(t){return t|=0,t>-536870913?Yi(t):Mi(t)}[1,2,3].forEach(t=>t);[1,-1].forEach(t=>Wi(zi(t)));function He(t){return t.length>0}function mn(t,e="unexpected empty list"){if(!He(t))throw new Error(e)}var Ki;if(!1){let t=n=>{let i=n.name;if(i===void 0){let s=Function.prototype.toString.call(n).match(/function (\w+)\s*\(/);i=s&&s[1]||""}return i.replace(/^bound /,"")},e=n=>{let i,s;return n.constructor&&typeof n.constructor=="function"&&(s=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(i=n.toString()),i&&i.match(/<.*:ember\d+>/)&&s&&s[0]!=="_"&&s.length>2&&s!=="Class"?i.replace(/<.*:/,`<${s}:`):i||s},r=n=>String(n);Ki=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var gn=console;function bn(t,e="unexpected unreachable branch"){throw gn.log("unreachable",t),gn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var ji=function(){var t=function(ce,p,m,f){for(m=m||{},f=ce.length;f--;m[ce[f]]=p);return m},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],i=[1,35],s=[1,38],a=[1,30],l=[1,31],c=[1,32],h=[1,33],g=[1,34],y=[1,37],F=[14,15,19,29,34,39,44,47,48,52,56,60],b=[14,15,19,29,34,44,47,48,52,56,60],k=[15,18],N=[14,15,19,29,34,47,48,52,56,60],B=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],se=[1,51],R=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],Q=[2,43],Ne=[55,64,71,79,80,81,82,83,84],Ce=[1,58],J=[1,59],ae=[1,66],q=[33,64,71,74,79,80,81,82,83,84],Ae=[23,64,71,79,80,81,82,83,84],V=[1,76],oe=[64,67,71,79,80,81,82,83,84],A=[33,74],le=[23,33,55,67,71,74],ct=[1,106],Vt=[1,118],Lr=[71,76],Ht={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(p,m,f,d,v,o,_e){var u=o.length-1;switch(v){case 1:return o[u-1];case 2:this.$=d.prepareProgram(o[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=o[u];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(o[u]),strip:d.stripFlags(o[u],o[u]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[u],value:o[u],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(o[u-2],o[u-1],o[u],this._$);break;case 12:this.$={path:o[u-3],params:o[u-2],hash:o[u-1]};break;case 13:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!1,this._$);break;case 14:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!0,this._$);break;case 15:this.$={open:o[u-5],path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 16:case 17:this.$={path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 18:this.$={strip:d.stripFlags(o[u-1],o[u-1]),program:o[u]};break;case 19:var ue=d.prepareBlock(o[u-2],o[u-1],o[u],o[u],!1,this._$),Ye=d.prepareProgram([ue],o[u-1].loc);Ye.chained=!0,this.$={strip:o[u-2].strip,program:Ye,chain:!0};break;case 21:this.$={path:o[u-1],strip:d.stripFlags(o[u-2],o[u])};break;case 22:case 23:this.$=d.prepareMustache(o[u-3],o[u-2],o[u-1],o[u-4],d.stripFlags(o[u-4],o[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[u-3],params:o[u-2],hash:o[u-1],indent:"",strip:d.stripFlags(o[u-4],o[u]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(o[u-2],o[u-1],o[u],this._$);break;case 26:this.$={path:o[u-3],params:o[u-2],hash:o[u-1],strip:d.stripFlags(o[u-4],o[u])};break;case 29:this.$={type:"SubExpression",path:o[u-3],params:o[u-2],hash:o[u-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[u],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(o[u-2]),value:o[u],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(o[u-1]);break;case 35:this.$={type:"StringLiteral",value:o[u],original:o[u],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[u]),original:Number(o[u]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[u]==="true",original:o[u]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=d.preparePath(!0,o[u],this._$);break;case 41:this.$=d.preparePath(!1,o[u],this._$);break;case 42:o[u-2].push({part:d.id(o[u]),original:o[u],separator:o[u-1]}),this.$=o[u-2];break;case 43:this.$=[{part:d.id(o[u]),original:o[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:o[u-1].push(o[u]);break;case 96:case 98:this.$=[o[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:39,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(F,e,{6:3,4:40}),t(b,e,{6:3,4:41}),t(k,[2,46],{17:42}),{20:26,49:43,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:46,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:47,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:48,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(B,[2,76],{50:49}),t(w,[2,27]),t(w,[2,28]),t(w,[2,33]),t(w,[2,34]),t(w,[2,35]),t(w,[2,36]),t(w,[2,37]),t(w,[2,38]),t(w,[2,39]),{20:26,49:50,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(w,[2,41],{86:se}),{71:s,85:52},t(R,Q),t(Ne,[2,80],{53:53}),{25:54,38:56,39:Ce,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(B,[2,84],{57:64}),{26:65,47:ae},t(q,[2,56],{30:67}),t(q,[2,62],{35:68}),t(Ae,[2,48],{21:69}),t(B,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:i,68:73,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(oe,[2,92],{65:77}),{71:[1,78]},t(w,[2,40],{86:se}),{20:26,49:80,54:79,55:[2,82],63:27,64:i,68:81,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{26:82,47:ae},{47:[2,53]},t(F,e,{6:3,4:83}),{47:[2,20]},{20:84,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:85}),{26:86,47:ae},{47:[2,55]},t(n,[2,11]),t(k,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:i,68:89,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(n,[2,25]),{20:90,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),{20:26,22:97,23:[2,50],49:98,63:27,64:i,68:99,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:i,68:102,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{33:[1,103]},t(B,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(le,[2,96]),t(R,Q,{72:ct}),{20:26,49:108,63:27,64:i,66:107,67:[2,94],68:109,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(R,[2,42]),{55:[1,110]},t(Ne,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ce,43:57,44:J,45:112,46:111,47:[2,74]},t(q,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(B,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Vt},t(q,[2,57]),t(A,[2,59]),{33:[2,66],37:119,73:120,74:Vt},t(q,[2,63]),t(A,[2,65]),{23:[1,121]},t(Ae,[2,49]),{23:[2,51]},{33:[1,122]},t(B,[2,89]),{33:[2,91]},t(n,[2,22]),t(le,[2,97]),{72:ct},{20:26,49:123,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{67:[1,124]},t(oe,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(k,[2,12]),t(N,[2,26]),t(le,[2,31]),t(w,[2,29]),{33:[2,72],42:132,73:133,74:Vt},t(q,[2,69]),t(A,[2,71]),t(F,[2,15]),{71:[1,135],76:[1,134]},t(Lr,[2,98]),t(b,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(Lr,[2,99]),t(F,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(p,m){if(m.recoverable)this.trace(p);else{var f=new Error(p);throw f.hash=m,f}},parse:function(p){var m=this,f=[0],d=[],v=[null],o=[],_e=this.table,u="",ue=0,Ye=0,Dr=0,Wn=2,Or=1,Kn=o.slice.call(arguments,1),C=Object.create(this.lexer),Se={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(Se.yy[Ft]=this.yy[Ft]);C.setInput(p,Se.yy),Se.yy.lexer=C,Se.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Mt=C.yylloc;o.push(Mt);var jn=C.options&&C.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ia(W){f.length=f.length-2*W,v.length=v.length-W,o.length=o.length-W}e:var Qn=function(){var W;return W=C.lex()||Or,typeof W!="number"&&(W=m.symbols_[W]||W),W};for(var D,Gt,Ee,H,sa,Yt,Le={},ut,X,Ir,ht;;){if(Ee=f[f.length-1],this.defaultActions[Ee]?H=this.defaultActions[Ee]:((D===null||typeof D>"u")&&(D=Qn()),H=_e[Ee]&&_e[Ee][D]),typeof H>"u"||!H.length||!H[0]){var zt="";ht=[];for(ut in _e[Ee])this.terminals_[ut]&&ut>Wn&&ht.push("'"+this.terminals_[ut]+"'");C.showPosition?zt="Parse error on line "+(ue+1)+`:
`+C.showPosition()+`
Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":zt="Parse error on line "+(ue+1)+": Unexpected "+(D==Or?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(zt,{text:C.match,token:this.terminals_[D]||D,line:C.yylineno,loc:Mt,expected:ht})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+D);switch(H[0]){case 1:f.push(D),v.push(C.yytext),o.push(C.yylloc),f.push(H[1]),D=null,Gt?(D=Gt,Gt=null):(Ye=C.yyleng,u=C.yytext,ue=C.yylineno,Mt=C.yylloc,Dr>0&&Dr--);break;case 2:if(X=this.productions_[H[1]][1],Le.$=v[v.length-X],Le._$={first_line:o[o.length-(X||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(X||1)].first_column,last_column:o[o.length-1].last_column},jn&&(Le._$.range=[o[o.length-(X||1)].range[0],o[o.length-1].range[1]]),Yt=this.performAction.apply(Le,[u,Ye,ue,Se.yy,H[1],v,o].concat(Kn)),typeof Yt<"u")return Yt;X&&(f=f.slice(0,-1*X*2),v=v.slice(0,-1*X),o=o.slice(0,-1*X)),f.push(this.productions_[H[1]][0]),v.push(Le.$),o.push(Le._$),Ir=_e[f[f.length-2]][f[f.length-1]],f.push(Ir);break;case 3:return!0}}return!0}},zn=function(){var ce={EOF:1,parseError:function(m,f){if(this.yy.parser)this.yy.parser.parseError(m,f);else throw new Error(m)},setInput:function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},unput:function(p){var m=p.length,f=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var d=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),f.length-1&&(this.yylineno-=f.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(p){this.unput(this.match.slice(p))},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 p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+`
`+m+"^"},test_match:function(p,m){var f,d,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),d=p[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],f=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var o in v)this[o]=v[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,f,d;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),o=0;o<v.length;o++)if(f=this._input.match(this.rules[v[o]]),f&&(!m||f[0].length>m[0].length)){if(m=f,d=o,this.options.backtrack_lexer){if(p=this.test_match(f,v[o]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[d]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(m,f,d,v){function o(u,ue){return f.yytext=f.yytext.substring(u,f.yyleng-ue+u)}var _e=v;switch(d){case 0:if(f.yytext.slice(-2)==="\\\\"?(o(0,1),this.begin("mu")):f.yytext.slice(-1)==="\\"?(o(0,1),this.begin("emu")):this.begin("mu"),f.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(f.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return f.yytext=o(1,2).replace(/\\"/g,'"'),79;break;case 32:return f.yytext=o(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return f.yytext=f.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ce}();Ht.lexer=zn;function Ut(){this.yy={}}return Ut.prototype=Ht,Ht.Parser=Ut,new Ut}(),Et=ji;var or=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function lr(t,e){var r=e&&e.loc,n,i,s,a;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,t+=" - "+n+":"+s);for(var l=Error.prototype.constructor.call(this,t),c=0;c<or.length;c++)this[or[c]]=l[or[c]];Error.captureStackTrace&&Error.captureStackTrace(this,lr);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}lr.prototype=new Error;var fe=lr;function Tt(){this.parents=[]}Tt.prototype={constructor:Tt,mutating:!1,acceptKey:function(t,e){var r=this.accept(t[e]);if(this.mutating){if(r&&!Tt.prototype[r.type])throw new fe('Unexpected node type "'+r.type+'" found when accepting '+e+" on "+t.type);t[e]=r}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new fe(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,r=t.length;e<r;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,r--)},accept:function(t){if(t){if(!this[t.type])throw new fe("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||e)return e;if(e!==!1)return t}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:vt,Decorator:vt,BlockStatement:yn,DecoratorBlock:yn,PartialStatement:Sn,PartialBlockStatement:function(t){Sn.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:vt,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}};function vt(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function yn(t){vt.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function Sn(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}var En=Tt;function K(t){t===void 0&&(t={}),this.options=t}K.prototype=new En;K.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,i=0,s=n.length;i<s;i++){var a=n[i],l=this.accept(a);if(l){var c=cr(n,i,r),h=ur(n,i,r),g=l.openStandalone&&c,y=l.closeStandalone&&h,F=l.inlineStandalone&&c&&h;l.close&&ke(n,i,!0),l.open&&de(n,i,!0),e&&F&&(ke(n,i),de(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),e&&g&&(ke((a.program||a.inverse).body),de(n,i)),e&&y&&(ke(n,i),de((a.inverse||a.program).body))}}return t};K.prototype.BlockStatement=K.prototype.DecoratorBlock=K.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:ur(e.body),closeStandalone:cr((n||e).body)};if(t.openStrip.close&&ke(e.body,null,!0),r){var a=t.inverseStrip;a.open&&de(e.body,null,!0),a.close&&ke(n.body,null,!0),t.closeStrip.open&&de(i.body,null,!0),!this.options.ignoreStandalone&&cr(e.body)&&ur(n.body)&&(de(e.body),ke(n.body))}else t.closeStrip.open&&de(e.body,null,!0);return s};K.prototype.Decorator=K.prototype.MustacheStatement=function(t){return t.strip};K.prototype.PartialStatement=K.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function cr(t,e,r){e===void 0&&(e=t.length);var n=t[e-1],i=t[e-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function ur(t,e,r){e===void 0&&(e=-1);var n=t[e+1],i=t[e+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function ke(t,e,r){var n=t[e==null?0:e+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}function de(t,e,r){var n=t[e==null?t.length-1:e-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}var Tn=K;var st={};Kt(st,{SourceLocation:()=>pr,id:()=>Qi,prepareBlock:()=>ts,prepareMustache:()=>Zi,preparePartialBlock:()=>ns,preparePath:()=>$i,prepareProgram:()=>rs,prepareRawBlock:()=>es,stripComment:()=>Xi,stripFlags:()=>Ji});function hr(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new fe(t.path.original+" doesn't match "+e,r)}}function pr(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function Qi(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Ji(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function Xi(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function $i(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,l=e.length;a<l;a++){var c=e[a].part,h=e[a].original!==c;if(n+=(e[a].separator||"")+c,!h&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new fe("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}function Zi(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),l=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:l,strip:i,loc:this.locInfo(s)}}function es(t,e,r,n){hr(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function ts(t,e,r,n,i,s){n&&n.path&&hr(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var l,c;if(r){if(a)throw new fe("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,l=r.program}return i&&(i=l,l=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function rs(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function ns(t,e,r,n){return hr(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var vn={};for(wt in st)Object.prototype.hasOwnProperty.call(st,wt)&&(vn[wt]=st[wt]);var wt;function xt(t,e){if(t.type==="Program")return t;Et.yy=vn,Et.yy.locInfo=function(n){return new pr(e&&e.srcName,n)};var r=Et.parse(t);return r}function fr(t,e){var r=xt(t,e),n=new Tn(e);return n.accept(r)}var xn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot: