UNPKG

prettier

Version:

Prettier is an opinionated code formatter

11 lines 137 kB
var Br=Object.defineProperty;var Ir=e=>{throw TypeError(e)};var jn=(e,t,r)=>t in e?Br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ue=(e,t)=>{for(var r in t)Br(e,r,{get:t[r],enumerable:!0})};var Me=(e,t,r)=>jn(e,typeof t!="symbol"?t+"":t,r),Rr=(e,t,r)=>t.has(e)||Ir("Cannot "+r);var I=(e,t,r)=>(Rr(e,t,"read from private field"),r?r.call(e):t.get(e)),Pt=(e,t,r)=>t.has(e)?Ir("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),J=(e,t,r,n)=>(Rr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Pr={};Ue(Pr,{languages:()=>mn,parsers:()=>Ar,printers:()=>vi});var Qn=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ze=Qn;var Mt="string",zt="array",Yt="cursor",Lt="indent",Dt="align",Gt="trim",_t="group",Ot="fill",Bt="if-break",Kt="indent-if-break",Wt="line-suffix",jt="line-suffix-boundary",$="line",Qt="label",It="break-parent",me=new Set([Yt,Lt,Dt,Gt,_t,Ot,Bt,Kt,Wt,jt,$,Qt,It]);function Jn(e){if(typeof e=="string")return Mt;if(Array.isArray(e))return zt;if(!e)return;let{type:t}=e;if(me.has(t))return t}var Jt=Jn;var $n=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Xn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(Jt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=$n([...me].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var Ye=class extends Error{name="InvalidDocError";constructor(t){super(Xn(t)),this.doc=t}},Ge=Ye;var qr=()=>{},dt=qr,de=qr;function B(e){return dt(e),{type:Lt,contents:e}}function Zn(e,t){return dt(t),{type:Dt,contents:t,n:e}}function R(e,t={}){return dt(e),de(t.expandedStates,!0),{type:_t,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ke(e){return Zn(-1,e)}function We(e){return de(e),{type:Ot,parts:e}}function je(e,t="",r={}){return dt(e),t!==""&&dt(t),{type:Bt,breakContents:e,flatContents:t,groupId:r.groupId}}var Vr={type:It};var ts={type:$,hard:!0},es={type:$,hard:!0,literal:!0},L={type:$},M={type:$,soft:!0},gt=[ts,Vr],Hr=[es,Vr];function bt(e,t){dt(e),de(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var rs=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},it=rs;function ns(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Jt(i)){case zt:return t(i.map(n));case Ot:return t({...i,parts:i.parts.map(n)});case Bt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case _t:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),t({...i,contents:o,expandedStates:a})}case Dt:case Lt:case Kt:case Qt:case Wt:return t({...i,contents:n(i.contents)});case Mt:case Yt:case Gt:case jt:case $:case It:return t(i);default:throw new Ge(i)}}}function Fr(e,t=Hr){return ns(e,r=>typeof r=="string"?bt(t,r.split(` `)):r)}var ge="'",Ur='"';function ss(e,t){let r=t===!0||t===ge?ge:Ur,n=r===ge?Ur:ge,s=0,i=0;for(let a of e)a===r?s++:a===n&&i++;return s>i?n:r}var be=ss;function Qe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Je=class{constructor(t){Pt(this,U);J(this,U,new Set(t))}getLeadingWhitespaceCount(t){let r=I(this,U),n=0;for(let s=0;s<t.length&&r.has(t.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(t){let r=I(this,U),n=0;for(let s=t.length-1;s>=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return I(this,U).has(t.charAt(0))}hasTrailingWhitespace(t){return I(this,U).has(it(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Qe([...I(this,U)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=I(this,U);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=I(this,U);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=I(this,U);return Array.prototype.every.call(t,n=>r.has(n))}};U=new WeakMap;var Mr=Je;var is=[" ",` `,"\f","\r"," "],as=new Mr(is),z=as;function os(e){return Array.isArray(e)&&e.length>0}var $t=os;var $e=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},zr=$e;function Yr(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=z.split(r).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Yr.ignoredProperties=new Set(["loc","selfClosing"]);var Gr=Yr;var Xt=null;function Zt(e){if(Xt!==null&&typeof Xt.property){let t=Xt;return Xt=Zt.prototype=null,t}return Xt=Zt.prototype=e??Object.create(null),new Zt}var ls=10;for(let e=0;e<=ls;e++)Zt();function Xe(e){return Zt(e)}function cs(e,t="type"){Xe(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Kr=cs;var Wr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var us=Kr(Wr),jr=us;function yt(e){return e.loc.start.offset}function te(e){return e.loc.end.offset}var Qr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function $r(e){return e.toUpperCase()===e}function hs(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&($r(e.tag[0])||e.tag.includes("."))}function ps(e){return Qr.has(e.toLowerCase())&&!$r(e[0])}function Ze(e){return e.selfClosing===!0||ps(e.tag)||hs(e)&&e.children.every(t=>ye(t))}function ye(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function Jr(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function Xr(e){return Jr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Jr(e.siblings[e.index-2])}var on=2;function fs(e,t,r){var s,i,a,o,c,h,p,m,v;let{node:n}=e;switch(n.type){case"Block":case"Program":case"Template":return R(e.map(r,"body"));case"ElementNode":{let g=R(ds(e,r)),E=t.htmlWhitespaceSensitivity==="ignore"&&((s=e.next)==null?void 0:s.type)==="ElementNode"?M:"";if(Ze(n))return[g,E];let N=["</",n.tag,">"];return n.children.length===0?[g,B(N),E]:t.htmlWhitespaceSensitivity==="ignore"?[g,B(Zr(e,t,r)),gt,B(N),E]:[g,B(R(Zr(e,t,r))),B(N),E]}case"BlockStatement":return vs(e)?[Es(e,r),rn(e,r,t),nn(e,r,t)]:[ks(e,r),R([rn(e,r,t),nn(e,r,t),ws(e,r,t)])];case"ElementModifierStatement":return R(["{{",an(e,r),"}}"]);case"MustacheStatement":return R([ke(n),an(e,r),Se(n)]);case"SubExpression":return R(["(",Ls(e,r),M,")"]);case"AttrNode":{let{name:g,value:E}=n,N=E.type==="TextNode";if(N&&E.chars===""&&yt(E)===te(E))return g;let w=N?be(E.chars,t.singleQuote):E.type==="ConcatStatement"?be(E.parts.map(q=>q.type==="TextNode"?q.chars:"").join(""),t.singleQuote):"",Z=r("value");return[g,"=",w,g==="class"&&w?R(B(Z)):Z,w]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return bt(L,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=ze(!1,n.chars,"{{",String.raw`\{{`),E=Cs(e);if(E){if(E==="class"){let j=g.trim().split(/\s+/u).join(" "),tt=!1,V=!1;return e.parent.type==="ConcatStatement"&&(((i=e.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(tt=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&j!==""&&(V=!0)),[tt?L:"",j,V?L:""]}return Fr(g)}let N=z.isWhitespaceOnly(g),{isFirst:x,isLast:w}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let j=w&&e.parent.type==="Template",tt=x&&e.parent.type==="Template";if(N){if(tt||j)return"";let P=[L],rt=Rt(g);return rt&&(P=ee(rt)),w&&(P=P.map(he=>Ke(he))),P}let V=z.getLeadingWhitespace(g),Nt=[];if(V){Nt=[L];let P=Rt(V);P&&(Nt=ee(P)),g=g.slice(V.length)}let H=z.getTrailingWhitespace(g),et=[];if(H){if(!j){et=[L];let P=Rt(H);P&&(et=ee(P)),w&&(et=et.map(rt=>Ke(rt)))}g=g.slice(0,-H.length)}return[...Nt,We(sn(g)),...et]}let Z=Rt(g),q=Ns(g),W=xs(g);if((x||w)&&N&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";N&&Z?(q=Math.min(Z,on),W=0):((((o=e.next)==null?void 0:o.type)==="BlockStatement"||((c=e.next)==null?void 0:c.type)==="ElementNode")&&(W=Math.max(W,1)),(((h=e.previous)==null?void 0:h.type)==="BlockStatement"||((p=e.previous)==null?void 0:p.type)==="ElementNode")&&(q=Math.max(q,1)));let Tt="",Ct="";return W===0&&((m=e.next)==null?void 0:m.type)==="MustacheStatement"&&(Ct=" "),q===0&&((v=e.previous)==null?void 0:v.type)==="MustacheStatement"&&(Tt=" "),x&&(q=0,Tt=""),w&&(W=0,Ct=""),z.hasLeadingWhitespace(g)&&(g=Tt+z.trimStart(g)),z.hasTrailingWhitespace(g)&&(g=z.trimEnd(g)+Ct),[...ee(q),We(sn(g)),...ee(W)]}case"MustacheCommentStatement":{let g=yt(n),E=te(n),N=t.originalText.charAt(g+2)==="~",x=t.originalText.charAt(E-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,x?"~":"","}}"]}case"PathExpression":return Bs(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return As(e,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new zr(n,"Handlebars")}}function ms(e,t){return yt(e)-yt(t)}function ds(e,t){let{node:r}=e,n=["attributes","modifiers","comments"].filter(i=>$t(r[i])),s=n.flatMap(i=>r[i]).sort(ms);for(let i of n)e.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[L,t()])},i);return $t(r.blockParams)&&s.push(L,er(r)),["<",r.tag,B(s),gs(r)]}function Zr(e,t,r){let{node:n}=e,s=n.children.every(i=>ye(i));return t.htmlWhitespaceSensitivity==="ignore"&&s?"":e.map(({isFirst:i})=>{let a=r();return i&&t.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function gs(e){return Ze(e)?je([M,"/>"],[" />",M]):je([M,">"],">")}function ke(e){var n;let t=e.trusting?"{{{":"{{",r=(n=e.strip)!=null&&n.open?"~":"";return[t,r]}function Se(e){var n;let t=e.trusting?"}}}":"}}";return[(n=e.strip)!=null&&n.close?"~":"",t]}function bs(e){let t=ke(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function ys(e){let t=Se(e);return[e.openStrip.close?"~":"",t]}function tn(e){let t=ke(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function en(e){let t=Se(e);return[e.closeStrip.close?"~":"",t]}function ln(e){let t=ke(e),r=e.inverseStrip.open?"~":"";return[t,r]}function cn(e){let t=Se(e);return[e.inverseStrip.close?"~":"",t]}function ks(e,t){let{node:r}=e,n=[],s=ve(e,t);return s&&n.push(R(s)),$t(r.program.blockParams)&&n.push(er(r.program)),R([bs(r),tr(e,t),n.length>0?B([L,bt(L,n)]):"",M,ys(r)])}function Ss(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?gt:"",ln(e),"else",cn(e)]}var un=(e,t)=>e.head.type==="VarHead"&&t.head.type==="VarHead"&&e.head.name===t.head.name;function vs(e){var n;let{grandparent:t,node:r}=e;return((n=t==null?void 0:t.inverse)==null?void 0:n.body.length)===1&&t.inverse.body[0]===r&&un(t.inverse.body[0].path,t.path)}function Es(e,t){let{node:r,grandparent:n}=e;return R([ln(n),["else"," ",n.inverse.body[0].path.head.name],B([L,R(ve(e,t)),...$t(r.program.blockParams)?[L,er(r.program)]:[]]),M,cn(n)])}function ws(e,t,r){let{node:n}=e;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:gt,tn(n),t("path"),en(n)]:[tn(n),t("path"),en(n)]}function hn(e){return e.type==="BlockStatement"&&e.program.body.every(t=>ye(t))}function Ts(e){return pn(e)&&e.inverse.body.length===1&&e.inverse.body[0].type==="BlockStatement"&&un(e.inverse.body[0].path,e.path)}function pn(e){return e.type==="BlockStatement"&&e.inverse}function rn(e,t,r){let{node:n}=e;if(hn(n))return"";let s=t("program");return r.htmlWhitespaceSensitivity==="ignore"?B([gt,s]):B(s)}function nn(e,t,r){let{node:n}=e,s=t("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[gt,s]:s;return Ts(n)?i:pn(n)?[Ss(n,r),B(i)]:""}function sn(e){return bt(L,z.split(e))}function Cs(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Rt(e){return e=typeof e=="string"?e:"",e.split(` `).length-1}function Ns(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Rt(t)}function xs(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Rt(t)}function ee(e=0){return Array.from({length:Math.min(e,on)}).fill(gt)}function As(e,t){let{node:{value:r}}=e,n=be(r,Ps(e)?!t.singleQuote:t.singleQuote);return[n,ze(!1,r,n,`\\${n}`),n]}function Ps(e){let{ancestors:t}=e,r=t.findIndex(n=>n.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Ls(e,t){let r=tr(e,t),n=ve(e,t);return n?B([r,L,R(n)]):r}function an(e,t){let r=tr(e,t),n=ve(e,t);return n?[B([r,L,n]),M]:r}function tr(e,t){return t("path")}function ve(e,t){var s;let{node:r}=e,n=[];return r.params.length>0&&n.push(...e.map(t,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(t("hash")),n.length===0?"":bt(L,n)}function er(e){return["as |",e.blockParams.join(" "),"|"]}var Ds=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),_s=new Set(["true","false","null","undefined"]),Os=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&_s.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>Ds.has(r));function Bs(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,n)=>Os(r,n)?`[${r}]`:r).join(".")}var Is={print:fs,massageAstNode:Gr,hasPrettierIgnore:Xr,getVisitorKeys:jr},fn=Is;var mn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Ar={};Ue(Ar,{glimmer:()=>Si});var Rs=Object.freeze([]);function gn(){return Rs}var Oa=gn(),Ba=gn();var rr=Object.assign;var dn=console;function bn(e,t="unexpected unreachable branch"){throw dn.log("unreachable",e),dn.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var qs=function(){var e=function(nt,d,k,b){for(k=k||{},b=nt.length;b--;k[nt[b]]=d);return k},t=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],h=[1,33],p=[1,34],m=[1,37],v=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],E=[15,18],N=[14,15,19,29,34,47,48,52,56,60],x=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],Z=[1,51],q=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],W=[2,43],Tt=[55,64,71,79,80,81,82,83,84],Ct=[1,58],j=[1,59],tt=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Nt=[23,64,71,79,80,81,82,83,84],H=[1,76],et=[64,67,71,79,80,81,82,83,84],P=[33,74],rt=[23,33,55,67,71,74],he=[1,106],Oe=[1,118],Lr=[71,76],Be={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(d,k,b,y,C,l,xt){var u=l.length-1;switch(C){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[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.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var st=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Ut=y.prepareProgram([st],l[u-1].loc);Ut.chained=!0,this.$={strip:l[u-2].strip,program:Ut,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[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:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,52,56,60],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([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]},e(n,[2,45]),e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),e(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(v,t,{6:3,4:40}),e(g,t,{6:3,4:41}),e(E,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(N,t,{6:3,4:44}),e([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(x,[2,76],{50:49}),e(w,[2,27]),e(w,[2,28]),e(w,[2,33]),e(w,[2,34]),e(w,[2,35]),e(w,[2,36]),e(w,[2,37]),e(w,[2,38]),e(w,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(w,[2,41],{86:Z}),{71:i,85:52},e(q,W),e(Tt,[2,80],{53:53}),{25:54,38:56,39:Ct,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]},e(x,[2,84],{57:64}),{26:65,47:tt},e(V,[2,56],{30:67}),e(V,[2,62],{35:68}),e(Nt,[2,48],{21:69}),e(x,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(et,[2,92],{65:77}),{71:[1,78]},e(w,[2,40],{86:Z}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{26:82,47:tt},{47:[2,53]},e(v,t,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(N,t,{6:3,4:85}),{26:86,47:tt},{47:[2,55]},e(n,[2,11]),e(E,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(P,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(P,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{33:[1,103]},e(x,[2,77]),{33:[2,79]},e([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),e(rt,[2,96]),e(q,W,{72:he}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(q,[2,42]),{55:[1,110]},e(Tt,[2,81]),{55:[2,83]},e(n,[2,13]),{38:56,39:Ct,43:57,44:j,45:112,46:111,47:[2,74]},e(V,[2,68],{40:113}),{47:[2,18]},e(n,[2,14]),{33:[1,114]},e(x,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Oe},e(V,[2,57]),e(P,[2,59]),{33:[2,66],37:119,73:120,74:Oe},e(V,[2,63]),e(P,[2,65]),{23:[1,121]},e(Nt,[2,49]),{23:[2,51]},{33:[1,122]},e(x,[2,89]),{33:[2,91]},e(n,[2,22]),e(rt,[2,97]),{72:he},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{67:[1,124]},e(et,[2,93]),{67:[2,95]},e(n,[2,23]),{47:[2,19]},{47:[2,75]},e(P,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(n,[2,24]),e(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},e(E,[2,12]),e(N,[2,26]),e(rt,[2,31]),e(w,[2,29]),{33:[2,72],42:132,73:133,74:Oe},e(V,[2,69]),e(P,[2,71]),e(v,[2,15]),{71:[1,135],76:[1,134]},e(Lr,[2,98]),e(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},e(Lr,[2,99]),e(v,[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(d,k){if(k.recoverable)this.trace(d);else{var b=new Error(d);throw b.hash=k,b}},parse:function(d){var k=this,b=[0],y=[],C=[null],l=[],xt=this.table,u="",st=0,Ut=0,Dr=0,Yn=2,_r=1,Gn=l.slice.call(arguments,1),A=Object.create(this.lexer),ft={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(ft.yy[Re]=this.yy[Re]);A.setInput(d,ft.yy),ft.yy.lexer=A,ft.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var qe=A.yylloc;l.push(qe);var Kn=A.options&&A.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ei(Y){b.length=b.length-2*Y,C.length=C.length-Y,l.length=l.length-Y}for(var Wn=function(){var Y;return Y=A.lex()||_r,typeof Y!="number"&&(Y=k.symbols_[Y]||Y),Y},O,Ve,mt,F,wi,He,At={},pe,Q,Or,fe;;){if(mt=b[b.length-1],this.defaultActions[mt]?F=this.defaultActions[mt]:((O===null||typeof O>"u")&&(O=Wn()),F=xt[mt]&&xt[mt][O]),typeof F>"u"||!F.length||!F[0]){var Fe="";fe=[];for(pe in xt[mt])this.terminals_[pe]&&pe>Yn&&fe.push("'"+this.terminals_[pe]+"'");A.showPosition?Fe="Parse error on line "+(st+1)+`: `+A.showPosition()+` Expecting `+fe.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Fe="Parse error on line "+(st+1)+": Unexpected "+(O==_r?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Fe,{text:A.match,token:this.terminals_[O]||O,line:A.yylineno,loc:qe,expected:fe})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+O);switch(F[0]){case 1:b.push(O),C.push(A.yytext),l.push(A.yylloc),b.push(F[1]),O=null,Ve?(O=Ve,Ve=null):(Ut=A.yyleng,u=A.yytext,st=A.yylineno,qe=A.yylloc,Dr>0&&Dr--);break;case 2:if(Q=this.productions_[F[1]][1],At.$=C[C.length-Q],At._$={first_line:l[l.length-(Q||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Q||1)].first_column,last_column:l[l.length-1].last_column},Kn&&(At._$.range=[l[l.length-(Q||1)].range[0],l[l.length-1].range[1]]),He=this.performAction.apply(At,[u,Ut,st,ft.yy,F[1],C,l].concat(Gn)),typeof He<"u")return He;Q&&(b=b.slice(0,-1*Q*2),C=C.slice(0,-1*Q),l=l.slice(0,-1*Q)),b.push(this.productions_[F[1]][0]),C.push(At.$),l.push(At._$),Or=xt[b[b.length-2]][b[b.length-1]],b.push(Or);break;case 3:return!0}}return!0}},zn=function(){var nt={EOF:1,parseError:function(k,b){if(this.yy.parser)this.yy.parser.parseError(k,b);else throw new Error(k)},setInput:function(d,k){return this.yy=k||this.yy||{},this._input=d,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 d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var k=d.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var k=d.length,b=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var y=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),b.length-1&&(this.yylineno-=b.length-1);var C=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:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-k]),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(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),k=new Array(d.length+1).join("-");return d+this.upcomingInput()+` `+k+"^"},test_match:function(d,k){var b,y,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),y=d[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],b=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var l in C)this[l]=C[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,k,b,y;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),l=0;l<C.length;l++)if(b=this._input.match(this.rules[C[l]]),b&&(!k||b[0].length>k[0].length)){if(k=b,y=l,this.options.backtrack_lexer){if(d=this.test_match(b,C[l]),d!==!1)return d;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(d=this.test_match(k,C[y]),d!==!1?d:!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 k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>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(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,b,y,C){function l(u,st){return b.yytext=b.yytext.substring(u,b.yyleng-st+u)}var xt=C;switch(y){case 0:if(b.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):b.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),b.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:(l(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(b.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 b.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return b.yytext=l(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 b.yytext=b.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 nt}();Be.lexer=zn;function Ie(){this.yy={}}return Ie.prototype=Be,Be.Parser=Ie,new Ie}(),Ee=qs;var nr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function sr(e,t){var r=t&&t.loc,n,s,i,a;r&&(n=r.start.line,s=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+n+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;c<nr.length;c++)this[nr[c]]=o[nr[c]];Error.captureStackTrace&&Error.captureStackTrace(this,sr);try{r&&(this.lineNumber=n,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=i,this.endColumn=a))}catch{}}sr.prototype=new Error;var at=sr;function we(){this.parents=[]}we.prototype={constructor:we,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!we.prototype[r.type])throw new at('Unexpected node type "'+r.type+'" found when accepting '+t+" on "+e.type);e[t]=r}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new at(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new at("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||t)return t;if(t!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:Te,Decorator:Te,BlockStatement:yn,DecoratorBlock:yn,PartialStatement:kn,PartialBlockStatement:function(e){kn.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:Te,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function Te(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function yn(e){Te.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function kn(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}var Sn=we;function G(e){e===void 0&&(e={}),this.options=e}G.prototype=new Sn;G.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,s=0,i=n.length;s<i;s++){var a=n[s],o=this.accept(a);if(o){var c=ir(n,s,r),h=ar(n,s,r),p=o.openStandalone&&c,m=o.closeStandalone&&h,v=o.inlineStandalone&&c&&h;o.close&&kt(n,s,!0),o.open&&ot(n,s,!0),t&&v&&(kt(n,s),ot(n,s)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[s-1].original)[1])),t&&p&&(kt((a.program||a.inverse).body),ot(n,s)),t&&m&&(kt(n,s),ot((a.inverse||a.program).body))}}return e};G.prototype.BlockStatement=G.prototype.DecoratorBlock=G.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,s=r;if(r&&r.chained)for(n=r.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:ar(t.body),closeStandalone:ir((n||t).body)};if(e.openStrip.close&&kt(t.body,null,!0),r){var a=e.inverseStrip;a.open&&ot(t.body,null,!0),a.close&&kt(n.body,null,!0),e.closeStrip.open&&ot(s.body,null,!0),!this.options.ignoreStandalone&&ir(t.body)&&ar(n.body)&&(ot(t.body),kt(n.body))}else e.closeStrip.open&&ot(t.body,null,!0);return i};G.prototype.Decorator=G.prototype.MustacheStatement=function(e){return e.strip};G.prototype.PartialStatement=G.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function ir(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],s=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(s||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function ar(e,t,r){t===void 0&&(t=-1);var n=e[t+1],s=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(s||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function kt(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var s=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}function ot(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var s=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==s,n.leftStripped}}var vn=G;var re={};Ue(re,{SourceLocation:()=>lr,id:()=>Vs,prepareBlock:()=>Ys,prepareMustache:()=>Ms,preparePartialBlock:()=>Ks,preparePath:()=>Us,prepareProgram:()=>Gs,prepareRawBlock:()=>zs,stripComment:()=>Fs,stripFlags:()=>Hs});function or(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new at(e.path.original+" doesn't match "+t,r)}}function lr(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function Vs(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Hs(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function Fs(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Us(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",s=[],i=0,a=0,o=t.length;a<o;a++){var c=t[a].part,h=t[a].original!==c;if(n+=(t[a].separator||"")+c,!h&&(c===".."||c==="."||c==="this")){if(s.length>0)throw new at("Invalid path: "+n,{loc:r});c===".."&&i++}else s.push(c)}return{type:"PathExpression",data:e,depth:i,parts:s,original:n,loc:r}}function Ms(e,t,r,n,s,i){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}}function zs(e,t,r,n){or(e,r),n=this.locInfo(n);var s={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function Ys(e,t,r,n,s,i){n&&n.path&&or(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new at("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,o=r.program}return s&&(s=o,o=t,t=s),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function Gs(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={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:e,strip:{},loc:t}}function Ks(e,t,r,n){return or(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var En={};for(Ce in re)Object.prototype.hasOwnProperty.call(re,Ce)&&(En[Ce]=re[Ce]);var Ce;function Ne(e,t){if(e.type==="Program")return e;Ee.yy=En,Ee.yy.locInfo=function(n){return new lr(t&&t.srcName,n)};var r=Ee.parse(e);return r}function cr(e,t){var r=Ne(e,t),n=new vn(t);return n.accept(r)}var Tn={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:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArro