2 lines
182 KiB
JavaScript
2 lines
182 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.glimmer=t())}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={};!function(e){var t="\n",r=function(){function e(e){this.string=e;for(var r=[0],n=0;n<e.length;)switch(e[n]){case t:n+=t.length,r.push(n);break;case"\r":e[n+="\r".length]===t&&(n+=t.length),r.push(n);break;default:n++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,r=this.offsets;r[t+1]<=e;)t++;return{line:t,column:e-r[t]}},e.prototype.indexForLocation=function(e){var t=e.line,r=e.column;return t<0||t>=this.offsets.length||r<0||r>this.lengthOfLine(t)?null:this.offsets[t]+r},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.__esModule=!0,e.default=r}(t);var r=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var n={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}},o={},a={};var i=Object.freeze({__proto__:null,DEBUG:!1,CI:!1});const s=Object.freeze([]);function l(){return s}const c=l(),u=l();const h="%+b:0%";var p;const{keys:d}=Object;let f=null!==(p=Object.assign)&&void 0!==p?p:function(e){for(let t=1;t<arguments.length;t++){let r=arguments[t];if(null===r||"object"!=typeof r)continue;let n=d(r);for(let t=0;t<n.length;t++){let o=n[t];e[o]=r[o]}}return e};function m(e){let t={};t[e]=1;for(let r in t)if(r===e)return r;return e}const g="function"==typeof Proxy,b="function"==typeof Symbol&&"symbol"==typeof Symbol();function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unreachable";return new Error(e)}function v(e){return m("__".concat(e).concat(Math.floor(Math.random()*Date.now()),"__"))}const S=b?Symbol:v;function k(e){return-536870913&e}function w(e){return 536870912|e}function E(e){return~e}function P(e){return~e}function T(e){return(e|=0)<0?k(e):E(e)}function x(e){return(e|=0)>-536870913?P(e):w(e)}[1,-1].forEach((e=>x(T(e))));var N="function"==typeof WeakSet?WeakSet:class{constructor(){this._map=new WeakMap}add(e){return this._map.set(e,!0),this}delete(e){return this._map.delete(e)}has(e){return this._map.has(e)}};function O(e){return 9===e.nodeType}function A(e,t){let r=!1;if(null!==e)if("string"==typeof t)r=_(e,t);else{if(!Array.isArray(t))throw y();r=t.some((t=>_(e,t)))}if(r)return e;throw function(e,t){return new Error("cannot cast a ".concat(e," into ").concat(t))}("SimpleElement(".concat(e,")"),t)}function _(e,t){switch(t){case"NODE":return!0;case"HTML":return e instanceof HTMLElement;case"SVG":return e instanceof SVGElement;case"ELEMENT":return e instanceof Element;default:if(t.toUpperCase()===t)throw new Error("BUG: this code is missing handling for a generic node type");return e instanceof Element&&e.tagName.toLowerCase()===t}}function C(e){return e.length>0}const L=console,B=console;var D=Object.freeze({__proto__:null,LOCAL_LOGGER:L,LOGGER:B,assertNever:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected unreachable branch";throw B.log("unreachable",e),B.log("".concat(t," :: ").concat(JSON.stringify(e)," (").concat(e,")")),new Error("code reached unreachable")},assert:function(e,t){if(!e)throw new Error(t||"assertion failure")},deprecate:function(e){L.warn("DEPRECATION: ".concat(e))},dict:function(){return Object.create(null)},isDict:function(e){return null!=e},isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},Stack:class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.current=null,this.stack=e}get size(){return this.stack.length}push(e){this.current=e,this.stack.push(e)}pop(){let e=this.stack.pop(),t=this.stack.length;return this.current=0===t?null:this.stack[t-1],void 0===e?null:e}nth(e){let t=this.stack.length;return t<e?null:this.stack[t-e]}isEmpty(){return 0===this.stack.length}toArray(){return this.stack}},isSerializationFirstNode:function(e){return e.nodeValue===h},SERIALIZATION_FIRST_NODE_STRING:h,assign:f,fillNulls:function(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=null;return t},values:function(e){const t=[];for(const r in e)t.push(e[r]);return t},_WeakSet:N,castToSimple:function(e){return O(e)||function(e){e.nodeType}(e),e},castToBrowser:function(e,t){if(null==e)return null;if(void 0===typeof document)throw new Error("Attempted to cast to a browser node in a non-browser context");if(O(e))return e;if(e.ownerDocument!==document)throw new Error("Attempted to cast to a browser node with a node that was not created from this document");return A(e,t)},checkNode:A,intern:m,buildUntouchableThis:function(e){return null},debugToString:undefined,beginTestSteps:undefined,endTestSteps:undefined,logStep:undefined,verifySteps:undefined,EMPTY_ARRAY:s,emptyArray:l,EMPTY_STRING_ARRAY:c,EMPTY_NUMBER_ARRAY:u,isEmptyArray:function(e){return e===s},clearElement:function(e){let t=e.firstChild;for(;t;){let r=t.nextSibling;e.removeChild(t),t=r}},HAS_NATIVE_PROXY:g,HAS_NATIVE_SYMBOL:b,keys:function(e){return Object.keys(e)},unwrap:function(e){if(null==e)throw new Error("Expected value to be present");return e},expect:function(e,t){if(null==e)throw new Error(t);return e},unreachable:y,exhausted:function(e){throw new Error("Exhausted ".concat(e))},tuple:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t},enumerableSymbol:v,symbol:S,strip:function(e){let t="";for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(let r=0;r<e.length;r++){let o=e[r],a=void 0!==n[r]?String(n[r]):"";t+="".concat(o).concat(a)}let a=t.split("\n");for(;a.length&&a[0].match(/^\s*$/);)a.shift();for(;a.length&&a[a.length-1].match(/^\s*$/);)a.pop();let i=1/0;for(let e of a){let t=e.match(/^\s*/)[0].length;i=Math.min(i,t)}let s=[];for(let e of a)s.push(e.slice(i));return s.join("\n")},isHandle:function(e){return e>=0},isNonPrimitiveHandle:function(e){return e>3},constants:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[!1,!0,null,void 0,...t]},isSmallInt:function(e){return e%1==0&&e<=536870911&&e>=-536870912},encodeNegative:k,decodeNegative:w,encodePositive:E,decodePositive:P,encodeHandle:function(e){return e},decodeHandle:function(e){return e},encodeImmediate:T,decodeImmediate:x,unwrapHandle:function(e){if("number"==typeof e)return e;{let t=e.errors[0];throw new Error("Compile Error: ".concat(t.problem," @ ").concat(t.span.start,"..").concat(t.span.end))}},unwrapTemplate:function(e){if("error"===e.result)throw new Error("Compile Error: ".concat(e.problem," @ ").concat(e.span.start,"..").concat(e.span.end));return e},extractHandle:function(e){return"number"==typeof e?e:e.handle},isOkHandle:function(e){return"number"==typeof e},isErrHandle:function(e){return"number"==typeof e},isPresent:C,ifPresent:function(e,t,r){return C(e)?t(e):r()},toPresentOption:function(e){return C(e)?e:null},assertPresent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected empty list";if(!C(e))throw new Error(t)},mapPresent:function(e,t){if(null===e)return null;let r=[];for(let n of e)r.push(t(n));return r}}),I={},R={},q={};Object.defineProperty(q,"__esModule",{value:!0}),q.isLocatedWithPositionsArray=function(e){return(0,M.isPresent)(e)&&e.every(G)},q.isLocatedWithPositions=G,q.BROKEN_LOCATION=q.NON_EXISTENT_LOCATION=q.TEMPORARY_LOCATION=q.SYNTHETIC=q.SYNTHETIC_LOCATION=q.UNKNOWN_POSITION=void 0;var M=D;const j=Object.freeze({line:1,column:0});q.UNKNOWN_POSITION=j;const H=Object.freeze({source:"(synthetic)",start:j,end:j});q.SYNTHETIC_LOCATION=H;const V=H;q.SYNTHETIC=V;const U=Object.freeze({source:"(temporary)",start:j,end:j});q.TEMPORARY_LOCATION=U;const z=Object.freeze({source:"(nonexistent)",start:j,end:j});q.NON_EXISTENT_LOCATION=z;const F=Object.freeze({source:"(broken)",start:j,end:j});function G(e){return void 0!==e.loc}q.BROKEN_LOCATION=F;var $={};Object.defineProperty($,"__esModule",{value:!0}),$.SourceSlice=void 0;var K=I;class Y{constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let t=K.SourceSpan.synthetic(e);return new Y({loc:t,chars:e})}static load(e,t){return new Y({loc:K.SourceSpan.load(e,t[1]),chars:t[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}}$.SourceSlice=Y;var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.match=function(e){return e(new te).check()},W.IsInvisible=W.MatchAny=void 0;var Q=D;const J="MATCH_ANY";W.MatchAny=J;const X="IS_INVISIBLE";W.IsInvisible=X;class Z{constructor(e){this._whens=e}first(e){for(let t of this._whens){let r=t.match(e);if((0,Q.isPresent)(r))return r[0]}return null}}class ee{constructor(){this._map=new Map}get(e,t){let r=this._map.get(e);return r||(r=t(),this._map.set(e,r),r)}add(e,t){this._map.set(e,t)}match(e){let t=function(e){switch(e){case"Broken":case"InternalsSynthetic":case"NonExistent":return X;default:return e}}(e),r=[],n=this._map.get(t),o=this._map.get(J);return n&&r.push(n),o&&r.push(o),r}}class te{constructor(){this._whens=new ee}check(){return(e,t)=>this.matchFor(e.kind,t.kind)(e,t)}matchFor(e,t){let r=this._whens.match(e);return new Z(r).first(t)}when(e,t,r){return this._whens.get(e,(()=>new ee)).add(t,r),this}}var re={};Object.defineProperty(re,"__esModule",{value:!0}),re.InvisiblePosition=re.HbsPosition=re.CharPosition=re.SourceOffset=re.BROKEN=void 0;var ne=q,oe=W,ae=R;const ie="BROKEN";re.BROKEN=ie;class se{constructor(e){this.data=e}static forHbsPos(e,t){return new ce(e,t,null).wrap()}static broken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne.UNKNOWN_POSITION;return new ue("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return null===e?null:e.offset}eql(e){return he(this.data,e.data)}until(e){return(0,ae.span)(this.data,e.data)}move(e){let t=this.data.toCharPos();if(null===t)return se.broken();{let r=t.offset+e;return t.source.check(r)?new le(t.source,r).wrap():se.broken()}}collapsed(){return(0,ae.span)(this.data,this.data)}toJSON(){return this.data.toJSON()}}re.SourceOffset=se;class le{constructor(e,t){this.source=e,this.charPos=t,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return null===e?ne.UNKNOWN_POSITION:e.toJSON()}wrap(){return new se(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(null===e){let t=this.source.hbsPosFor(this.charPos);this._locPos=e=null===t?ie:new ce(this.source,t,this.charPos)}return e===ie?null:e}}re.CharPosition=le;class ce{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.source=e,this.hbsPos=t,this.kind="HbsPosition",this._charPos=null===r?null:new le(e,r)}toCharPos(){let e=this._charPos;if(null===e){let t=this.source.charPosFor(this.hbsPos);this._charPos=e=null===t?ie:new le(this.source,t)}return e===ie?null:e}toJSON(){return this.hbsPos}wrap(){return new se(this)}toHbsPos(){return this}}re.HbsPosition=ce;class ue{constructor(e,t){this.kind=e,this.pos=t}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new se(this)}get offset(){return null}}re.InvisiblePosition=ue;const he=(0,oe.match)((e=>e.when("HbsPosition","HbsPosition",((e,t)=>{let{hbsPos:r}=e,{hbsPos:n}=t;return r.column===n.column&&r.line===n.line})).when("CharPosition","CharPosition",((e,t)=>{let{charPos:r}=e,{charPos:n}=t;return r===n})).when("CharPosition","HbsPosition",((e,t)=>{let{offset:r}=e;var n;return r===(null===(n=t.toCharPos())||void 0===n?void 0:n.offset)})).when("HbsPosition","CharPosition",((e,t)=>{let{offset:r}=t;var n;return(null===(n=e.toCharPos())||void 0===n?void 0:n.offset)===r})).when(oe.MatchAny,oe.MatchAny,(()=>!1))));Object.defineProperty(R,"__esModule",{value:!0}),R.span=R.HbsSpan=R.SourceSpan=void 0;var pe=i,de=D,fe=q,me=$,ge=W,be=re;class ye{constructor(e){this.data=e,this.isInvisible="CharPosition"!==e.kind&&"HbsPosition"!==e.kind}static get NON_EXISTENT(){return new ke("NonExistent",fe.NON_EXISTENT_LOCATION).wrap()}static load(e,t){return"number"==typeof t?ye.forCharPositions(e,t,t):"string"==typeof t?ye.synthetic(t):Array.isArray(t)?ye.forCharPositions(e,t[0],t[1]):"NonExistent"===t?ye.NON_EXISTENT:"Broken"===t?ye.broken(fe.BROKEN_LOCATION):void(0,de.assertNever)(t)}static forHbsLoc(e,t){let r=new be.HbsPosition(e,t.start),n=new be.HbsPosition(e,t.end);return new Se(e,{start:r,end:n},t).wrap()}static forCharPositions(e,t,r){let n=new be.CharPosition(e,t),o=new be.CharPosition(e,r);return new ve(e,{start:n,end:o}).wrap()}static synthetic(e){return new ke("InternalsSynthetic",fe.NON_EXISTENT_LOCATION,e).wrap()}static broken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe.BROKEN_LOCATION;return new ke("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return null===e?fe.BROKEN_LOCATION:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return we(e.data,this.data.getEnd())}withEnd(e){return we(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let t=this.data.asString();return pe.DEBUG&&void 0!==e&&t!==e&&console.warn("unexpectedly found ".concat(JSON.stringify(t)," when slicing source, but expected ").concat(JSON.stringify(e))),new me.SourceSlice({loc:this,chars:e||t})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return we(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice(e){let{skipStart:t=0,skipEnd:r=0}=e;return we(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars(e){let{skipStart:t=0,chars:r}=e;return we(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars(e){let{skipEnd:t=0,chars:r}=e;return we(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}}R.SourceSpan=ye;class ve{constructor(e,t){this.source=e,this.charPositions=t,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new ye(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(null===e){let t=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();e=this._locPosSpan=null===t||null===r?be.BROKEN:new Se(this.source,{start:t,end:r})}return e===be.BROKEN?null:e}serialize(){let{start:{charPos:e},end:{charPos:t}}=this.charPositions;return e===t?e:[e,t]}toCharPosSpan(){return this}}class Se{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.source=e,this.hbsPositions=t,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=r}serialize(){let e=this.toCharPosSpan();return null===e?"Broken":e.wrap().serialize()}wrap(){return new ye(this)}updateProvided(e,t){this._providedHbsLoc&&(this._providedHbsLoc[t]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate(e){let{start:t,end:r}=e;void 0!==t&&(this.updateProvided(t,"start"),this.hbsPositions.start=new be.HbsPosition(this.source,t,null)),void 0!==r&&(this.updateProvided(r,"end"),this.hbsPositions.end=new be.HbsPosition(this.source,r,null))}asString(){let e=this.toCharPosSpan();return null===e?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(null===e){let t=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!t||!r)return e=this._charPosSpan=be.BROKEN,null;e=this._charPosSpan=new ve(this.source,{start:t,end:r})}return e===be.BROKEN?null:e}}R.HbsSpan=Se;class ke{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.kind=e,this.loc=t,this.string=r}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new ye(this)}asString(){return this.string||""}locDidUpdate(e){let{start:t,end:r}=e;void 0!==t&&(this.loc.start=t),void 0!==r&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new be.InvisiblePosition(this.kind,this.loc.start)}getEnd(){return new be.InvisiblePosition(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return fe.BROKEN_LOCATION}}const we=(0,ge.match)((e=>e.when("HbsPosition","HbsPosition",((e,t)=>new Se(e.source,{start:e,end:t}).wrap())).when("CharPosition","CharPosition",((e,t)=>new ve(e.source,{start:e,end:t}).wrap())).when("CharPosition","HbsPosition",((e,t)=>{let r=t.toCharPos();return null===r?new ke("Broken",fe.BROKEN_LOCATION).wrap():we(e,r)})).when("HbsPosition","CharPosition",((e,t)=>{let r=e.toCharPos();return null===r?new ke("Broken",fe.BROKEN_LOCATION).wrap():we(r,t)})).when(ge.IsInvisible,ge.MatchAny,(e=>new ke(e.kind,fe.BROKEN_LOCATION).wrap())).when(ge.MatchAny,ge.IsInvisible,((e,t)=>new ke(t.kind,fe.BROKEN_LOCATION).wrap()))));R.span=we,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SourceSpan",{enumerable:!0,get:function(){return t.SourceSpan}}),Object.defineProperty(e,"SourceOffset",{enumerable:!0,get:function(){return r.SourceOffset}});var t=R,r=re}(I),Object.defineProperty(a,"__esModule",{value:!0}),a.Source=void 0;var Ee=i,Pe=I;a.Source=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"an unknown module";this.source=e,this.module=t}check(e){return e>=0&&e<=this.source.length}slice(e,t){return this.source.slice(e,t)}offsetFor(e,t){return Pe.SourceOffset.forHbsPos(this,{line:e,column:t})}spanFor(e){let{start:t,end:r}=e;return Pe.SourceSpan.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let t=0,r=0;if(e>this.source.length)return null;for(;;){let n=this.source.indexOf("\n",r);if(e<=n||-1===n)return{line:t+1,column:e-r};t+=1,r=n+1}}charPosFor(e){let{line:t,column:r}=e,n=this.source.length,o=0,a=0;for(;;){if(a>=n)return n;let e=this.source.indexOf("\n",a);if(-1===e&&(e=this.source.length),o===t-1)return a+r>e?e:(Ee.DEBUG&&this.hbsPosFor(a+r),a+r);if(-1===e)return 0;o+=1,a=e+1}}};var Te={},xe={};Object.defineProperty(xe,"__esModule",{value:!0}),xe.PathExpressionImplV1=void 0;var Ne,Oe=(Ne=Te)&&Ne.__esModule?Ne:{default:Ne};xe.PathExpressionImplV1=class{constructor(e,t,r,n){this.original=e,this.loc=n,this.type="PathExpression",this.this=!1,this.data=!1,this._head=void 0;let o=r.slice();"ThisHead"===t.type?this.this=!0:"AtHead"===t.type?(this.data=!0,o.unshift(t.name.slice(1))):o.unshift(t.name),this.parts=o}get head(){if(this._head)return this._head;let e;e=this.this?"this":this.data?"@".concat(this.parts[0]):this.parts[0];let t=this.loc.collapse("start").sliceStartChars({chars:e.length}).loc;return this._head=Oe.default.head(e,t)}get tail(){return this.this?this.parts:this.parts.slice(1)}},Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=void 0;var Ae=D,_e=q,Ce=a,Le=I,Be=xe;let De;function Ie(){return De||(De=new Ce.Source("","(synthetic)")),De}function Re(e){switch(e.type){case"AtHead":case"VarHead":return{original:e.name,parts:[e.name]};case"ThisHead":return{original:"this",parts:[]}}}function qe(e,t){let r,[n,...o]=e.split(".");return r="this"===n?{type:"ThisHead",loc:Fe(t||null)}:"@"===n[0]?{type:"AtHead",name:n,loc:Fe(t||null)}:{type:"VarHead",name:n,loc:Fe(t||null)},{head:r,tail:o}}function Me(e){return{type:"ThisHead",loc:Fe(e||null)}}function je(e,t){return{type:"AtHead",name:e,loc:Fe(t||null)}}function He(e,t){return{type:"VarHead",name:e,loc:Fe(t||null)}}function Ve(e,t){if("string"!=typeof e){if("type"in e)return e;{let{head:r,tail:n}=qe(e.head,Le.SourceSpan.broken()),{original:o}=Re(r);return new Be.PathExpressionImplV1([o,...n].join("."),r,n,Fe(t||null))}}let{head:r,tail:n}=qe(e,Le.SourceSpan.broken());return new Be.PathExpressionImplV1(e,r,n,Fe(t||null))}function Ue(e,t,r){return{type:e,value:t,original:t,loc:Fe(r||null)}}function ze(e,t){return{type:"Hash",pairs:e||[],loc:Fe(t||null)}}function Fe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length){let e=t[0];return e&&"object"==typeof e?Le.SourceSpan.forHbsLoc(Ie(),e):Le.SourceSpan.forHbsLoc(Ie(),_e.SYNTHETIC_LOCATION)}{let[e,r,n,o,a]=t,i=a?new Ce.Source("",a):Ie();return Le.SourceSpan.forHbsLoc(i,{start:{line:e,column:r},end:{line:n,column:o}})}}var Ge={mustache:function(e,t,r,n,o,a){return"string"==typeof e&&(e=Ve(e)),{type:"MustacheStatement",path:e,params:t||[],hash:r||ze([]),escaped:!n,trusting:!!n,loc:Fe(o||null),strip:a||{open:!1,close:!1}}},block:function(e,t,r,n,o,a,i,s,l){let c,u;return c="Template"===n.type?(0,Ae.assign)({},n,{type:"Block"}):n,u=null!=o&&"Template"===o.type?(0,Ae.assign)({},o,{type:"Block"}):o,{type:"BlockStatement",path:Ve(e),params:t||[],hash:r||ze([]),program:c||null,inverse:u||null,loc:Fe(a||null),openStrip:i||{open:!1,close:!1},inverseStrip:s||{open:!1,close:!1},closeStrip:l||{open:!1,close:!1}}},partial:function(e,t,r,n,o){return{type:"PartialStatement",name:e,params:t||[],hash:r||ze([]),indent:n||"",strip:{open:!1,close:!1},loc:Fe(o||null)}},comment:function(e,t){return{type:"CommentStatement",value:e,loc:Fe(t||null)}},mustacheComment:function(e,t){return{type:"MustacheCommentStatement",value:e,loc:Fe(t||null)}},element:function(e,t){let r,{attrs:n,blockParams:o,modifiers:a,comments:i,children:s,loc:l}=t,c=!1;return"object"==typeof e?(c=e.selfClosing,r=e.name):"/"===e.slice(-1)?(r=e.slice(0,-1),c=!0):r=e,{type:"ElementNode",tag:r,selfClosing:c,attributes:n||[],blockParams:o||[],modifiers:a||[],comments:i||[],children:s||[],loc:Fe(l||null)}},elementModifier:function(e,t,r,n){return{type:"ElementModifierStatement",path:Ve(e),params:t||[],hash:r||ze([]),loc:Fe(n||null)}},attr:function(e,t,r){return{type:"AttrNode",name:e,value:t,loc:Fe(r||null)}},text:function(e,t){return{type:"TextNode",chars:e||"",loc:Fe(t||null)}},sexpr:function(e,t,r,n){return{type:"SubExpression",path:Ve(e),params:t||[],hash:r||ze([]),loc:Fe(n||null)}},concat:function(e,t){if(!(0,Ae.isPresent)(e))throw new Error("b.concat requires at least one part");return{type:"ConcatStatement",parts:e||[],loc:Fe(t||null)}},hash:ze,pair:function(e,t,r){return{type:"HashPair",key:e,value:t,loc:Fe(r||null)}},literal:Ue,program:function(e,t,r){return{type:"Template",body:e||[],blockParams:t||[],loc:Fe(r||null)}},blockItself:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;return{type:"Block",body:e||[],blockParams:t||[],chained:r,loc:Fe(n||null)}},template:function(e,t,r){return{type:"Template",body:e||[],blockParams:t||[],loc:Fe(r||null)}},loc:Fe,pos:function(e,t){return{line:e,column:t}},path:Ve,fullPath:function(e,t,r){let{original:n,parts:o}=Re(e),a=[...n,...[...o,...t]].join(".");return new Be.PathExpressionImplV1(a,e,t,Fe(r||null))},head:function(e,t){return"@"===e[0]?je(e,t):"this"===e?Me(t):He(e,t)},at:je,var:He,this:Me,blockName:function(e,t){return{type:"NamedBlockName",name:e,loc:Fe(t||null)}},string:$e("StringLiteral"),boolean:$e("BooleanLiteral"),number:$e("NumberLiteral"),undefined:()=>Ue("UndefinedLiteral",void 0),null:()=>Ue("NullLiteral",null)};function $e(e){return function(t,r){return Ue(e,t,r)}}Te.default=Ge;var Ke={},Ye={};Object.defineProperty(Ye,"__esModule",{value:!0}),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ye;Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}))}(Ke);var We={},Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.loadResolution=function(e){if("string"==typeof e)switch(e){case"Loose":return Ze.fallback();case"Strict":return Xe}switch(e[0]){case"ambiguous":switch(e[1]){case"Append":return Ze.append({invoke:!1});case"Attr":return Ze.attr();case"Invoke":return Ze.append({invoke:!0})}case"ns":return Ze.namespaced(e[1])}},Qe.ARGUMENT_RESOLUTION=Qe.LooseModeResolution=Qe.STRICT_RESOLUTION=Qe.StrictResolution=void 0;class Je{constructor(){this.isAngleBracket=!1}resolution(){return 31}serialize(){return"Strict"}}Qe.StrictResolution=Je;const Xe=new Je;Qe.STRICT_RESOLUTION=Xe;class Ze{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.ambiguity=e,this.isAngleBracket=t}static namespaced(e){return new Ze({namespaces:[e],fallback:!1},arguments.length>1&&void 0!==arguments[1]&&arguments[1])}static fallback(){return new Ze({namespaces:[],fallback:!0})}static append(e){let{invoke:t}=e;return new Ze({namespaces:["Component","Helper"],fallback:!t})}static trustingAppend(e){let{invoke:t}=e;return new Ze({namespaces:["Helper"],fallback:!t})}static attr(){return new Ze({namespaces:["Helper"],fallback:!0})}resolution(){if(0===this.ambiguity.namespaces.length)return 31;if(1!==this.ambiguity.namespaces.length)return this.ambiguity.fallback?34:35;if(this.ambiguity.fallback)return 36;switch(this.ambiguity.namespaces[0]){case"Helper":return 37;case"Modifier":return 38;case"Component":return 39}}serialize(){return 0===this.ambiguity.namespaces.length?"Loose":1===this.ambiguity.namespaces.length?this.ambiguity.fallback?["ambiguous","Attr"]:["ns",this.ambiguity.namespaces[0]]:this.ambiguity.fallback?["ambiguous","Append"]:["ambiguous","Invoke"]}}Qe.LooseModeResolution=Ze;const et=Ze.fallback();Qe.ARGUMENT_RESOLUTION=et;var tt={};Object.defineProperty(tt,"__esModule",{value:!0}),tt.node=function(e){if(void 0!==e){const t=e;return{fields:()=>class{constructor(e){this.type=t,(0,rt.assign)(this,e)}}}}return{fields:()=>class{constructor(e){(0,rt.assign)(this,e)}}}};var rt=D;var nt={};Object.defineProperty(nt,"__esModule",{value:!0}),nt.NamedArgument=nt.NamedArguments=nt.PositionalArguments=nt.Args=void 0;var ot=tt;class at extends((0,ot.node)().fields()){static empty(e){return new at({loc:e,positional:it.empty(e),named:st.empty(e)})}static named(e){return new at({loc:e.loc,positional:it.empty(e.loc.collapse("end")),named:e})}nth(e){return this.positional.nth(e)}get(e){return this.named.get(e)}isEmpty(){return this.positional.isEmpty()&&this.named.isEmpty()}}nt.Args=at;class it extends((0,ot.node)().fields()){static empty(e){return new it({loc:e,exprs:[]})}get size(){return this.exprs.length}nth(e){return this.exprs[e]||null}isEmpty(){return 0===this.exprs.length}}nt.PositionalArguments=it;class st extends((0,ot.node)().fields()){static empty(e){return new st({loc:e,entries:[]})}get size(){return this.entries.length}get(e){let t=this.entries.filter((t=>t.name.chars===e))[0];return t?t.value:null}isEmpty(){return 0===this.entries.length}}nt.NamedArguments=st;nt.NamedArgument=class{constructor(e){this.loc=e.name.loc.extend(e.value.loc),this.name=e.name,this.value=e.value}};var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.ElementModifier=lt.ComponentArg=lt.SplatAttr=lt.HtmlAttr=void 0;var ct=nt,ut=tt;class ht extends((0,ut.node)("HtmlAttr").fields()){}lt.HtmlAttr=ht;class pt extends((0,ut.node)("SplatAttr").fields()){}lt.SplatAttr=pt;class dt extends((0,ut.node)().fields()){toNamedArgument(){return new ct.NamedArgument({name:this.name,value:this.value})}}lt.ComponentArg=dt;class ft extends((0,ut.node)("ElementModifier").fields()){}lt.ElementModifier=ft;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});var gt={},bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.loc=St,bt.hasSpan=kt,bt.maybeLoc=function(e,t){return kt(e)?St(e):t},bt.SpanList=void 0;var yt=I;class vt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._span=e}static range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt.SourceSpan.NON_EXISTENT;return new vt(e.map(St)).getRangeOffset(t)}add(e){this._span.push(e)}getRangeOffset(e){if(0===this._span.length)return e;{let e=this._span[0],t=this._span[this._span.length-1];return e.extend(t)}}}function St(e){if(Array.isArray(e)){let t=e[0],r=e[e.length-1];return St(t).extend(St(r))}return e instanceof yt.SourceSpan?e:e.loc}function kt(e){return!Array.isArray(e)||0!==e.length}bt.SpanList=vt,Object.defineProperty(gt,"__esModule",{value:!0}),gt.SimpleElement=gt.InvokeComponent=gt.InvokeBlock=gt.AppendContent=gt.HtmlComment=gt.HtmlText=gt.GlimmerComment=void 0;var wt=bt,Et=nt,Pt=tt;class Tt extends((0,Pt.node)("GlimmerComment").fields()){}gt.GlimmerComment=Tt;class xt extends((0,Pt.node)("HtmlText").fields()){}gt.HtmlText=xt;class Nt extends((0,Pt.node)("HtmlComment").fields()){}gt.HtmlComment=Nt;class Ot extends((0,Pt.node)("AppendContent").fields()){get callee(){return"Call"===this.value.type?this.value.callee:this.value}get args(){return"Call"===this.value.type?this.value.args:Et.Args.empty(this.value.loc.collapse("end"))}}gt.AppendContent=Ot;class At extends((0,Pt.node)("InvokeBlock").fields()){}gt.InvokeBlock=At;class _t extends((0,Pt.node)("InvokeComponent").fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Et.Args.named(new Et.NamedArguments({loc:wt.SpanList.range(e,this.callee.loc.collapse("end")),entries:e}))}}gt.InvokeComponent=_t;class Ct extends((0,Pt.node)("SimpleElement").fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Et.Args.named(new Et.NamedArguments({loc:wt.SpanList.range(e,this.tag.loc.collapse("end")),entries:e}))}}gt.SimpleElement=Ct;var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.isLiteral=function(e,t){return"Literal"===e.type&&(void 0===t||("null"===t?null===e.value:typeof e.value===t))},Lt.InterpolateExpression=Lt.DeprecatedCallExpression=Lt.CallExpression=Lt.PathExpression=Lt.LiteralExpression=void 0;var Bt=$,Dt=tt;class It extends((0,Dt.node)("Literal").fields()){toSlice(){return new Bt.SourceSlice({loc:this.loc,chars:this.value})}}Lt.LiteralExpression=It;class Rt extends((0,Dt.node)("Path").fields()){}Lt.PathExpression=Rt;class qt extends((0,Dt.node)("Call").fields()){}Lt.CallExpression=qt;class Mt extends((0,Dt.node)("DeprecatedCall").fields()){}Lt.DeprecatedCallExpression=Mt;class jt extends((0,Dt.node)("Interpolate").fields()){}Lt.InterpolateExpression=jt;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.FreeVarReference=Ht.LocalVarReference=Ht.ArgReference=Ht.ThisReference=void 0;var Vt=tt;class Ut extends((0,Vt.node)("This").fields()){}Ht.ThisReference=Ut;class zt extends((0,Vt.node)("Arg").fields()){}Ht.ArgReference=zt;class Ft extends((0,Vt.node)("Local").fields()){}Ht.LocalVarReference=Ft;class Gt extends((0,Vt.node)("Free").fields()){}Ht.FreeVarReference=Gt;var $t={};Object.defineProperty($t,"__esModule",{value:!0}),$t.NamedBlock=$t.NamedBlocks=$t.Block=$t.Template=void 0;var Kt=bt,Yt=nt,Wt=tt;class Qt extends((0,Wt.node)().fields()){}$t.Template=Qt;class Jt extends((0,Wt.node)().fields()){}$t.Block=Jt;class Xt extends((0,Wt.node)().fields()){get(e){return this.blocks.filter((t=>t.name.chars===e))[0]||null}}$t.NamedBlocks=Xt;class Zt extends((0,Wt.node)().fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Yt.Args.named(new Yt.NamedArguments({loc:Kt.SpanList.range(e,this.name.loc.collapse("end")),entries:e}))}}$t.NamedBlock=Zt,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Qe;Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}));var r=tt;Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var n=nt;Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var o=lt;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}));var a=mt;Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}));var i=gt;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}));var s=Lt;Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var l=Ht;Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}));var c=$t;Object.keys(c).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})}))}(We);var er={},tr=function(e){return e&&e.Math==Math&&e},rr=tr("object"==typeof globalThis&&globalThis)||tr("object"==typeof window&&window)||tr("object"==typeof self&&self)||tr("object"==typeof e&&e)||function(){return this}()||Function("return this")(),nr={},or=function(e){try{return!!e()}catch(e){return!0}},ar=!or((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ir=Function.prototype.call,sr=ir.bind?ir.bind(ir):function(){return ir.apply(ir,arguments)},lr={},cr={}.propertyIsEnumerable,ur=Object.getOwnPropertyDescriptor,hr=ur&&!cr.call({1:2},1);lr.f=hr?function(e){var t=ur(this,e);return!!t&&t.enumerable}:cr;var pr,dr,fr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mr=Function.prototype,gr=mr.bind,br=mr.call,yr=gr&&gr.bind(br),vr=gr?function(e){return e&&yr(br,e)}:function(e){return e&&function(){return br.apply(e,arguments)}},Sr=vr,kr=Sr({}.toString),wr=Sr("".slice),Er=function(e){return wr(kr(e),8,-1)},Pr=vr,Tr=or,xr=Er,Nr=rr.Object,Or=Pr("".split),Ar=Tr((function(){return!Nr("z").propertyIsEnumerable(0)}))?function(e){return"String"==xr(e)?Or(e,""):Nr(e)}:Nr,_r=rr.TypeError,Cr=function(e){if(null==e)throw _r("Can't call method on "+e);return e},Lr=Ar,Br=Cr,Dr=function(e){return Lr(Br(e))},Ir=function(e){return"function"==typeof e},Rr=Ir,qr=function(e){return"object"==typeof e?null!==e:Rr(e)},Mr=rr,jr=Ir,Hr=function(e){return jr(e)?e:void 0},Vr=function(e,t){return arguments.length<2?Hr(Mr[e]):Mr[e]&&Mr[e][t]},Ur=vr({}.isPrototypeOf),zr=Vr("navigator","userAgent")||"",Fr=rr,Gr=zr,$r=Fr.process,Kr=Fr.Deno,Yr=$r&&$r.versions||Kr&&Kr.version,Wr=Yr&&Yr.v8;Wr&&(dr=(pr=Wr.split("."))[0]>0&&pr[0]<4?1:+(pr[0]+pr[1])),!dr&&Gr&&(!(pr=Gr.match(/Edge\/(\d+)/))||pr[1]>=74)&&(pr=Gr.match(/Chrome\/(\d+)/))&&(dr=+pr[1]);var Qr=dr,Jr=Qr,Xr=or,Zr=!!Object.getOwnPropertySymbols&&!Xr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Jr&&Jr<41})),en=Zr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tn=Vr,rn=Ir,nn=Ur,on=en,an=rr.Object,sn=on?function(e){return"symbol"==typeof e}:function(e){var t=tn("Symbol");return rn(t)&&nn(t.prototype,an(e))},ln=rr.String,cn=Ir,un=function(e){try{return ln(e)}catch(e){return"Object"}},hn=rr.TypeError,pn=function(e){if(cn(e))return e;throw hn(un(e)+" is not a function")},dn=pn,fn=sr,mn=Ir,gn=qr,bn=rr.TypeError,yn={exports:{}},vn=rr,Sn=Object.defineProperty,kn=function(e,t){try{Sn(vn,e,{value:t,configurable:!0,writable:!0})}catch(r){vn[e]=t}return t},wn=kn,En="__core-js_shared__",Pn=rr[En]||wn(En,{}),Tn=Pn;(yn.exports=function(e,t){return Tn[e]||(Tn[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var xn=Cr,Nn=rr.Object,On=function(e){return Nn(xn(e))},An=On,_n=vr({}.hasOwnProperty),Cn=Object.hasOwn||function(e,t){return _n(An(e),t)},Ln=vr,Bn=0,Dn=Math.random(),In=Ln(1..toString),Rn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+In(++Bn+Dn,36)},qn=rr,Mn=yn.exports,jn=Cn,Hn=Rn,Vn=Zr,Un=en,zn=Mn("wks"),Fn=qn.Symbol,Gn=Fn&&Fn.for,$n=Un?Fn:Fn&&Fn.withoutSetter||Hn,Kn=function(e){if(!jn(zn,e)||!Vn&&"string"!=typeof zn[e]){var t="Symbol."+e;Vn&&jn(Fn,e)?zn[e]=Fn[e]:zn[e]=Un&&Gn?Gn(t):$n(t)}return zn[e]},Yn=sr,Wn=qr,Qn=sn,Jn=function(e,t){var r=e[t];return null==r?void 0:dn(r)},Xn=function(e,t){var r,n;if("string"===t&&mn(r=e.toString)&&!gn(n=fn(r,e)))return n;if(mn(r=e.valueOf)&&!gn(n=fn(r,e)))return n;if("string"!==t&&mn(r=e.toString)&&!gn(n=fn(r,e)))return n;throw bn("Can't convert object to primitive value")},Zn=Kn,eo=rr.TypeError,to=Zn("toPrimitive"),ro=function(e,t){if(!Wn(e)||Qn(e))return e;var r,n=Jn(e,to);if(n){if(void 0===t&&(t="default"),r=Yn(n,e,t),!Wn(r)||Qn(r))return r;throw eo("Can't convert object to primitive value")}return void 0===t&&(t="number"),Xn(e,t)},no=sn,oo=function(e){var t=ro(e,"string");return no(t)?t:t+""},ao=qr,io=rr.document,so=ao(io)&&ao(io.createElement),lo=function(e){return so?io.createElement(e):{}},co=!ar&&!or((function(){return 7!=Object.defineProperty(lo("div"),"a",{get:function(){return 7}}).a})),uo=ar,ho=sr,po=lr,fo=fr,mo=Dr,go=oo,bo=Cn,yo=co,vo=Object.getOwnPropertyDescriptor;nr.f=uo?vo:function(e,t){if(e=mo(e),t=go(t),yo)try{return vo(e,t)}catch(e){}if(bo(e,t))return fo(!ho(po.f,e,t),e[t])};var So={},ko=rr,wo=qr,Eo=ko.String,Po=ko.TypeError,To=function(e){if(wo(e))return e;throw Po(Eo(e)+" is not an object")},xo=ar,No=co,Oo=To,Ao=oo,_o=rr.TypeError,Co=Object.defineProperty;So.f=xo?Co:function(e,t,r){if(Oo(e),t=Ao(t),Oo(r),No)try{return Co(e,t,r)}catch(e){}if("get"in r||"set"in r)throw _o("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Lo=So,Bo=fr,Do=ar?function(e,t,r){return Lo.f(e,t,Bo(1,r))}:function(e,t,r){return e[t]=r,e},Io={exports:{}},Ro=Ir,qo=Pn,Mo=vr(Function.toString);Ro(qo.inspectSource)||(qo.inspectSource=function(e){return Mo(e)});var jo,Ho,Vo,Uo=qo.inspectSource,zo=Ir,Fo=Uo,Go=rr.WeakMap,$o=zo(Go)&&/native code/.test(Fo(Go)),Ko=yn.exports,Yo=Rn,Wo=Ko("keys"),Qo={},Jo=$o,Xo=rr,Zo=vr,ea=qr,ta=Do,ra=Cn,na=Pn,oa=function(e){return Wo[e]||(Wo[e]=Yo(e))},aa=Qo,ia="Object already initialized",sa=Xo.TypeError,la=Xo.WeakMap;if(Jo||na.state){var ca=na.state||(na.state=new la),ua=Zo(ca.get),ha=Zo(ca.has),pa=Zo(ca.set);jo=function(e,t){if(ha(ca,e))throw new sa(ia);return t.facade=e,pa(ca,e,t),t},Ho=function(e){return ua(ca,e)||{}},Vo=function(e){return ha(ca,e)}}else{var da=oa("state");aa[da]=!0,jo=function(e,t){if(ra(e,da))throw new sa(ia);return t.facade=e,ta(e,da,t),t},Ho=function(e){return ra(e,da)?e[da]:{}},Vo=function(e){return ra(e,da)}}var fa={set:jo,get:Ho,has:Vo,enforce:function(e){return Vo(e)?Ho(e):jo(e,{})},getterFor:function(e){return function(t){var r;if(!ea(t)||(r=Ho(t)).type!==e)throw sa("Incompatible receiver, "+e+" required");return r}}},ma=ar,ga=Cn,ba=Function.prototype,ya=ma&&Object.getOwnPropertyDescriptor,va=ga(ba,"name"),Sa=va&&"something"===function(){}.name,ka=va&&(!ma||ma&&ya(ba,"name").configurable),wa=rr,Ea=Ir,Pa=Cn,Ta=Do,xa=kn,Na=Uo,Oa={EXISTS:va,PROPER:Sa,CONFIGURABLE:ka}.CONFIGURABLE,Aa=fa.get,_a=fa.enforce,Ca=String(String).split("String");(Io.exports=function(e,t,r,n){var o,a=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,l=n&&void 0!==n.name?n.name:t;Ea(r)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pa(r,"name")||Oa&&r.name!==l)&&Ta(r,"name",l),(o=_a(r)).source||(o.source=Ca.join("string"==typeof l?l:""))),e!==wa?(a?!s&&e[t]&&(i=!0):delete e[t],i?e[t]=r:Ta(e,t,r)):i?e[t]=r:xa(t,r)})(Function.prototype,"toString",(function(){return Ea(this)&&Aa(this).source||Na(this)}));var La={},Ba=Math.ceil,Da=Math.floor,Ia=function(e){var t=+e;return t!=t||0===t?0:(t>0?Da:Ba)(t)},Ra=Ia,qa=Math.max,Ma=Math.min,ja=Ia,Ha=Math.min,Va=function(e){return e>0?Ha(ja(e),9007199254740991):0},Ua=function(e){return Va(e.length)},za=Dr,Fa=function(e,t){var r=Ra(e);return r<0?qa(r+t,0):Ma(r,t)},Ga=Ua,$a=function(e){return function(t,r,n){var o,a=za(t),i=Ga(a),s=Fa(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},Ka={includes:$a(!0),indexOf:$a(!1)},Ya=Cn,Wa=Dr,Qa=Ka.indexOf,Ja=Qo,Xa=vr([].push),Za=function(e,t){var r,n=Wa(e),o=0,a=[];for(r in n)!Ya(Ja,r)&&Ya(n,r)&&Xa(a,r);for(;t.length>o;)Ya(n,r=t[o++])&&(~Qa(a,r)||Xa(a,r));return a},ei=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");La.f=Object.getOwnPropertyNames||function(e){return Za(e,ei)};var ti={};ti.f=Object.getOwnPropertySymbols;var ri=Vr,ni=La,oi=ti,ai=To,ii=vr([].concat),si=ri("Reflect","ownKeys")||function(e){var t=ni.f(ai(e)),r=oi.f;return r?ii(t,r(e)):t},li=Cn,ci=si,ui=nr,hi=So,pi=or,di=Ir,fi=/#|\.prototype\./,mi=function(e,t){var r=bi[gi(e)];return r==vi||r!=yi&&(di(t)?pi(t):!!t)},gi=mi.normalize=function(e){return String(e).replace(fi,".").toLowerCase()},bi=mi.data={},yi=mi.NATIVE="N",vi=mi.POLYFILL="P",Si=mi,ki=rr,wi=nr.f,Ei=Do,Pi=Io.exports,Ti=kn,xi=function(e,t){for(var r=ci(t),n=hi.f,o=ui.f,a=0;a<r.length;a++){var i=r[a];li(e,i)||n(e,i,o(t,i))}},Ni=Si,Oi={};Oi[Kn("toStringTag")]="z";var Ai=rr,_i="[object z]"===String(Oi),Ci=Ir,Li=Er,Bi=Kn("toStringTag"),Di=Ai.Object,Ii="Arguments"==Li(function(){return arguments}()),Ri=_i?Li:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Di(e),Bi))?r:Ii?Li(t):"Object"==(n=Li(t))&&Ci(t.callee)?"Arguments":n},qi=rr.String,Mi=vr([].slice),ji=Math.floor,Hi=function(e,t){var r=e.length,n=ji(r/2);return r<8?Vi(e,t):Ui(e,Hi(Mi(e,0,n),t),Hi(Mi(e,n),t),t)},Vi=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},Ui=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},zi=Hi,Fi=or,Gi=zr.match(/firefox\/(\d+)/i),$i=!!Gi&&+Gi[1],Ki=/MSIE|Trident/.test(zr),Yi=zr.match(/AppleWebKit\/(\d+)\./),Wi=!!Yi&&+Yi[1],Qi=function(e,t){var r,n,o,a,i,s=e.target,l=e.global,c=e.stat;if(r=l?ki:c?ki[s]||Ti(s,{}):(ki[s]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=wi(r,n))&&i.value:r[n],!Ni(l?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;xi(a,o)}(e.sham||o&&o.sham)&&Ei(a,"sham",!0),Pi(r,n,a,e)}},Ji=vr,Xi=pn,Zi=On,es=Ua,ts=function(e){if("Symbol"===Ri(e))throw TypeError("Cannot convert a Symbol value to a string");return qi(e)},rs=or,ns=zi,os=function(e,t){var r=[][e];return!!r&&Fi((function(){r.call(null,t||function(){throw 1},1)}))},as=$i,is=Ki,ss=Qr,ls=Wi,cs=[],us=Ji(cs.sort),hs=Ji(cs.push),ps=rs((function(){cs.sort(void 0)})),ds=rs((function(){cs.sort(null)})),fs=os("sort"),ms=!rs((function(){if(ss)return ss<70;if(!(as&&as>3)){if(is)return!0;if(ls)return ls<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)cs.push({k:t+n,v:r})}for(cs.sort((function(e,t){return t.v-e.v})),n=0;n<cs.length;n++)t=cs[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));Qi({target:"Array",proto:!0,forced:ps||!ds||!fs||!ms},{sort:function(e){void 0!==e&&Xi(e);var t=Zi(this);if(ms)return void 0===e?us(t):us(t,e);var r,n,o=[],a=es(t);for(n=0;n<a;n++)n in t&&hs(o,t[n]);for(ns(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:ts(t)>ts(r)?1:-1}}(e)),r=o.length,n=0;n<r;)t[n]=o[n++];for(;n<a;)delete t[n++];return t}});var gs={},bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.escapeAttrValue=function(e){if(ys.test(e))return e.replace(vs,ws);return e},bs.escapeText=function(e){if(Ss.test(e))return e.replace(ks,Es);return e},bs.sortByLoc=function(e,t){if(e.loc.isInvisible||t.loc.isInvisible)return 0;if(e.loc.startPosition.line<t.loc.startPosition.line)return-1;if(e.loc.startPosition.line===t.loc.startPosition.line&&e.loc.startPosition.column<t.loc.startPosition.column)return-1;if(e.loc.startPosition.line===t.loc.startPosition.line&&e.loc.startPosition.column===t.loc.startPosition.column)return 0;return 1};const ys=/[\xA0"&]/,vs=new RegExp(ys.source,"g"),Ss=/[\xA0&<>]/,ks=new RegExp(Ss.source,"g");function ws(e){switch(e.charCodeAt(0)){case 160:return" ";case 34:return""";case 38:return"&";default:return e}}function Es(e){switch(e.charCodeAt(0)){case 160:return" ";case 38:return"&";case 60:return"<";case 62:return">";default:return e}}Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=gs.voidMap=void 0;var Ps=bs;const Ts=Object.create(null);gs.voidMap=Ts;"area base br col command embed hr img input keygen link meta param source track wbr".split(" ").forEach((e=>{Ts[e]=!0}));const xs=/\S/;gs.default=class{constructor(e){this.buffer="",this.options=e}handledByOverride(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==this.options.override){let r=this.options.override(e,this.options);if("string"==typeof r)return t&&""!==r&&xs.test(r[0])&&(r=" ".concat(r)),this.buffer+=r,!0}return!1}Node(e){switch(e.type){case"MustacheStatement":case"BlockStatement":case"PartialStatement":case"MustacheCommentStatement":case"CommentStatement":case"TextNode":case"ElementNode":case"AttrNode":case"Block":case"Template":return this.TopLevelStatement(e);case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":case"PathExpression":case"SubExpression":return this.Expression(e);case"Program":return this.Block(e);case"ConcatStatement":return this.ConcatStatement(e);case"Hash":return this.Hash(e);case"HashPair":return this.HashPair(e);case"ElementModifierStatement":return this.ElementModifierStatement(e)}}Expression(e){switch(e.type){case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":return this.Literal(e);case"PathExpression":return this.PathExpression(e);case"SubExpression":return this.SubExpression(e)}}Literal(e){switch(e.type){case"StringLiteral":return this.StringLiteral(e);case"BooleanLiteral":return this.BooleanLiteral(e);case"NumberLiteral":return this.NumberLiteral(e);case"UndefinedLiteral":return this.UndefinedLiteral(e);case"NullLiteral":return this.NullLiteral(e)}}TopLevelStatement(e){switch(e.type){case"MustacheStatement":return this.MustacheStatement(e);case"BlockStatement":return this.BlockStatement(e);case"PartialStatement":return this.PartialStatement(e);case"MustacheCommentStatement":return this.MustacheCommentStatement(e);case"CommentStatement":return this.CommentStatement(e);case"TextNode":return this.TextNode(e);case"ElementNode":return this.ElementNode(e);case"Block":case"Template":return this.Block(e);case"AttrNode":return this.AttrNode(e)}}Block(e){if(e.chained){e.body[0].chained=!0}this.handledByOverride(e)||this.TopLevelStatements(e.body)}TopLevelStatements(e){e.forEach((e=>this.TopLevelStatement(e)))}ElementNode(e){this.handledByOverride(e)||(this.OpenElementNode(e),this.TopLevelStatements(e.children),this.CloseElementNode(e))}OpenElementNode(e){this.buffer+="<".concat(e.tag);const t=[...e.attributes,...e.modifiers,...e.comments].sort(Ps.sortByLoc);for(const e of t)switch(this.buffer+=" ",e.type){case"AttrNode":this.AttrNode(e);break;case"ElementModifierStatement":this.ElementModifierStatement(e);break;case"MustacheCommentStatement":this.MustacheCommentStatement(e)}e.blockParams.length&&this.BlockParams(e.blockParams),e.selfClosing&&(this.buffer+=" /"),this.buffer+=">"}CloseElementNode(e){e.selfClosing||Ts[e.tag.toLowerCase()]||(this.buffer+="</".concat(e.tag,">"))}AttrNode(e){if(this.handledByOverride(e))return;let{name:t,value:r}=e;this.buffer+=t,("TextNode"!==r.type||r.chars.length>0)&&(this.buffer+="=",this.AttrNodeValue(r))}AttrNodeValue(e){"TextNode"===e.type?(this.buffer+='"',this.TextNode(e,!0),this.buffer+='"'):this.Node(e)}TextNode(e,t){this.handledByOverride(e)||("raw"===this.options.entityEncoding?this.buffer+=e.chars:this.buffer+=t?(0,Ps.escapeAttrValue)(e.chars):(0,Ps.escapeText)(e.chars))}MustacheStatement(e){this.handledByOverride(e)||(this.buffer+=e.escaped?"{{":"{{{",e.strip.open&&(this.buffer+="~"),this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),e.strip.close&&(this.buffer+="~"),this.buffer+=e.escaped?"}}":"}}}")}BlockStatement(e){this.handledByOverride(e)||(e.chained?(this.buffer+=e.inverseStrip.open?"{{~":"{{",this.buffer+="else "):this.buffer+=e.openStrip.open?"{{~#":"{{#",this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),e.program.blockParams.length&&this.BlockParams(e.program.blockParams),e.chained?this.buffer+=e.inverseStrip.close?"~}}":"}}":this.buffer+=e.openStrip.close?"~}}":"}}",this.Block(e.program),e.inverse&&(e.inverse.chained||(this.buffer+=e.inverseStrip.open?"{{~":"{{",this.buffer+="else",this.buffer+=e.inverseStrip.close?"~}}":"}}"),this.Block(e.inverse)),e.chained||(this.buffer+=e.closeStrip.open?"{{~/":"{{/",this.Expression(e.path),this.buffer+=e.closeStrip.close?"~}}":"}}"))}BlockParams(e){this.buffer+=" as |".concat(e.join(" "),"|")}PartialStatement(e){this.handledByOverride(e)||(this.buffer+="{{>",this.Expression(e.name),this.Params(e.params),this.Hash(e.hash),this.buffer+="}}")}ConcatStatement(e){this.handledByOverride(e)||(this.buffer+='"',e.parts.forEach((e=>{"TextNode"===e.type?this.TextNode(e,!0):this.Node(e)})),this.buffer+='"')}MustacheCommentStatement(e){this.handledByOverride(e)||(this.buffer+="{{!--".concat(e.value,"--}}"))}ElementModifierStatement(e){this.handledByOverride(e)||(this.buffer+="{{",this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),this.buffer+="}}")}CommentStatement(e){this.handledByOverride(e)||(this.buffer+="\x3c!--".concat(e.value,"--\x3e"))}PathExpression(e){this.handledByOverride(e)||(this.buffer+=e.original)}SubExpression(e){this.handledByOverride(e)||(this.buffer+="(",this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),this.buffer+=")")}Params(e){e.length&&e.forEach((e=>{this.buffer+=" ",this.Expression(e)}))}Hash(e){this.handledByOverride(e,!0)||e.pairs.forEach((e=>{this.buffer+=" ",this.HashPair(e)}))}HashPair(e){this.handledByOverride(e)||(this.buffer+=e.key,this.buffer+="=",this.Node(e.value))}StringLiteral(e){this.handledByOverride(e)||(this.buffer+=JSON.stringify(e.value))}BooleanLiteral(e){this.handledByOverride(e)||(this.buffer+=e.value)}NumberLiteral(e){this.handledByOverride(e)||(this.buffer+=e.value)}UndefinedLiteral(e){this.handledByOverride(e)||(this.buffer+="undefined")}NullLiteral(e){this.handledByOverride(e)||(this.buffer+="null")}print(e){let{options:t}=this;if(t.override){let r=t.override(e,t);if(void 0!==r)return r}return this.buffer="",this.Node(e),this.buffer}};var Ns={},Os=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function As(e,t){var r,n,o,a,i=t&&t.loc;i&&(r=i.start.line,n=i.end.line,o=i.start.column,a=i.end.column,e+=" - "+r+":"+o);for(var s=Error.prototype.constructor.call(this,e),l=0;l<Os.length;l++)this[Os[l]]=s[Os[l]];Error.captureStackTrace&&Error.captureStackTrace(this,As);try{i&&(this.lineNumber=r,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch(e){}}function _s(){this.parents=[]}function Cs(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function Ls(e){Cs.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function Bs(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function Ds(e){void 0===e&&(e={}),this.options=e}function Is(e,t,r){void 0===t&&(t=e.length);var n=e[t-1],o=e[t-2];return n?"ContentStatement"===n.type?(o||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function Rs(e,t,r){void 0===t&&(t=-1);var n=e[t+1],o=e[t+2];return n?"ContentStatement"===n.type?(o||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function qs(e,t,r){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(r||!n.rightStripped)){var o=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==o}}function Ms(e,t,r){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(r||!n.leftStripped)){var o=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==o,n.leftStripped}}As.prototype=new Error,_s.prototype={constructor:_s,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!_s.prototype[r.type])throw new As('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 As(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 As("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:Cs,Decorator:Cs,BlockStatement:Ls,DecoratorBlock:Ls,PartialStatement:Bs,PartialBlockStatement:function(e){Bs.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:Cs,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")}},Ds.prototype=new _s,Ds.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,o=0,a=n.length;o<a;o++){var i=n[o],s=this.accept(i);if(s){var l=Is(n,o,r),c=Rs(n,o,r),u=s.openStandalone&&l,h=s.closeStandalone&&c,p=s.inlineStandalone&&l&&c;s.close&&qs(n,o,!0),s.open&&Ms(n,o,!0),t&&p&&(qs(n,o),Ms(n,o)&&"PartialStatement"===i.type&&(i.indent=/([ \t]+$)/.exec(n[o-1].original)[1])),t&&u&&(qs((i.program||i.inverse).body),Ms(n,o)),t&&h&&(qs(n,o),Ms((i.inverse||i.program).body))}}return e},Ds.prototype.BlockStatement=Ds.prototype.DecoratorBlock=Ds.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,o=r;if(r&&r.chained)for(n=r.body[0].program;o.chained;)o=o.body[o.body.length-1].program;var a={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Rs(t.body),closeStandalone:Is((n||t).body)};if(e.openStrip.close&&qs(t.body,null,!0),r){var i=e.inverseStrip;i.open&&Ms(t.body,null,!0),i.close&&qs(n.body,null,!0),e.closeStrip.open&&Ms(o.body,null,!0),!this.options.ignoreStandalone&&Is(t.body)&&Rs(n.body)&&(Ms(t.body),qs(n.body))}else e.closeStrip.open&&Ms(t.body,null,!0);return a},Ds.prototype.Decorator=Ds.prototype.MustacheStatement=function(e){return e.strip},Ds.prototype.PartialStatement=Ds.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};var js=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],o=[1,35],a=[1,38],i=[1,30],s=[1,31],l=[1,32],c=[1,33],u=[1,34],h=[1,37],p=[14,15,19,29,34,39,44,47,48,52,56,60],d=[14,15,19,29,34,44,47,48,52,56,60],f=[15,18],m=[14,15,19,29,34,47,48,52,56,60],g=[33,64,71,79,80,81,82,83,84],b=[23,33,55,64,67,71,74,79,80,81,82,83,84],y=[1,51],v=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],S=[2,43],k=[55,64,71,79,80,81,82,83,84],w=[1,58],E=[1,59],P=[1,66],T=[33,64,71,74,79,80,81,82,83,84],x=[23,64,71,79,80,81,82,83,84],N=[1,76],O=[64,67,71,79,80,81,82,83,84],A=[33,74],_=[23,33,55,67,71,74],C=[1,106],L=[1,118],B=[71,76],D={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(e,t,r,n,o,a,i){var s=a.length-1;switch(o){case 1:return a[s-1];case 2:this.$=n.prepareProgram(a[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=a[s];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(a[s]),strip:n.stripFlags(a[s],a[s]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[s],value:a[s],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(a[s-2],a[s-1],a[s],this._$);break;case 12:this.$={path:a[s-3],params:a[s-2],hash:a[s-1]};break;case 13:this.$=n.prepareBlock(a[s-3],a[s-2],a[s-1],a[s],!1,this._$);break;case 14:this.$=n.prepareBlock(a[s-3],a[s-2],a[s-1],a[s],!0,this._$);break;case 15:this.$={open:a[s-5],path:a[s-4],params:a[s-3],hash:a[s-2],blockParams:a[s-1],strip:n.stripFlags(a[s-5],a[s])};break;case 16:case 17:this.$={path:a[s-4],params:a[s-3],hash:a[s-2],blockParams:a[s-1],strip:n.stripFlags(a[s-5],a[s])};break;case 18:this.$={strip:n.stripFlags(a[s-1],a[s-1]),program:a[s]};break;case 19:var l=n.prepareBlock(a[s-2],a[s-1],a[s],a[s],!1,this._$),c=n.prepareProgram([l],a[s-1].loc);c.chained=!0,this.$={strip:a[s-2].strip,program:c,chain:!0};break;case 21:this.$={path:a[s-1],strip:n.stripFlags(a[s-2],a[s])};break;case 22:case 23:this.$=n.prepareMustache(a[s-3],a[s-2],a[s-1],a[s-4],n.stripFlags(a[s-4],a[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[s-3],params:a[s-2],hash:a[s-1],indent:"",strip:n.stripFlags(a[s-4],a[s]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(a[s-2],a[s-1],a[s],this._$);break;case 26:this.$={path:a[s-3],params:a[s-2],hash:a[s-1],strip:n.stripFlags(a[s-4],a[s])};break;case 29:this.$={type:"SubExpression",path:a[s-3],params:a[s-2],hash:a[s-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[s],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(a[s-2]),value:a[s],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(a[s-1]);break;case 35:this.$={type:"StringLiteral",value:a[s],original:a[s],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[s]),original:Number(a[s]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[s],original:"true"===a[s],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 40:this.$=n.preparePath(!0,a[s],this._$);break;case 41:this.$=n.preparePath(!1,a[s],this._$);break;case 42:a[s-2].push({part:n.id(a[s]),original:a[s],separator:a[s-1]}),this.$=a[s-2];break;case 43:this.$=[{part:n.id(a[s]),original:a[s]}];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:a[s-1].push(a[s]);break;case 96:case 98:this.$=[a[s]]}},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:o,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{20:26,49:39,63:27,64:o,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(p,t,{6:3,4:40}),e(d,t,{6:3,4:41}),e(f,[2,46],{17:42}),{20:26,49:43,63:27,64:o,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(m,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:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{20:46,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{20:47,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{20:26,49:48,63:27,64:o,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(g,[2,76],{50:49}),e(b,[2,27]),e(b,[2,28]),e(b,[2,33]),e(b,[2,34]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),e(b,[2,39]),{20:26,49:50,63:27,64:o,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(b,[2,41],{86:y}),{71:a,85:52},e(v,S),e(k,[2,80],{53:53}),{25:54,38:56,39:w,43:57,44:E,45:55,47:[2,52]},{28:60,43:61,44:E,47:[2,54]},{13:63,15:r,18:[1,62]},e(g,[2,84],{57:64}),{26:65,47:P},e(T,[2,56],{30:67}),e(T,[2,62],{35:68}),e(x,[2,48],{21:69}),e(g,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:o,68:73,69:74,70:75,71:N,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(O,[2,92],{65:77}),{71:[1,78]},e(b,[2,40],{86:y}),{20:26,49:80,54:79,55:[2,82],63:27,64:o,68:81,69:74,70:75,71:N,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{26:82,47:P},{47:[2,53]},e(p,t,{6:3,4:83}),{47:[2,20]},{20:84,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(m,t,{6:3,4:85}),{26:86,47:P},{47:[2,55]},e(n,[2,11]),e(f,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:o,68:89,69:74,70:75,71:N,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(n,[2,25]),{20:90,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:o,71:N,79:i,80:s,81:l,82:c,83:u,84:h}),e(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:o,71:N,79:i,80:s,81:l,82:c,83:u,84:h}),{20:26,22:97,23:[2,50],49:98,63:27,64:o,68:99,69:74,70:75,71:N,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:o,68:102,69:74,70:75,71:N,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{33:[1,103]},e(g,[2,77]),{33:[2,79]},e([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),e(_,[2,96]),e(v,S,{72:C}),{20:26,49:108,63:27,64:o,66:107,67:[2,94],68:109,69:74,70:75,71:N,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},e(v,[2,42]),{55:[1,110]},e(k,[2,81]),{55:[2,83]},e(n,[2,13]),{38:56,39:w,43:57,44:E,45:112,46:111,47:[2,74]},e(T,[2,68],{40:113}),{47:[2,18]},e(n,[2,14]),{33:[1,114]},e(g,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:L},e(T,[2,57]),e(A,[2,59]),{33:[2,66],37:119,73:120,74:L},e(T,[2,63]),e(A,[2,65]),{23:[1,121]},e(x,[2,49]),{23:[2,51]},{33:[1,122]},e(g,[2,89]),{33:[2,91]},e(n,[2,22]),e(_,[2,97]),{72:C},{20:26,49:123,63:27,64:o,71:a,77:28,78:29,79:i,80:s,81:l,82:c,83:u,84:h,85:36},{67:[1,124]},e(O,[2,93]),{67:[2,95]},e(n,[2,23]),{47:[2,19]},{47:[2,75]},e(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:o,71:N,79:i,80:s,81:l,82:c,83:u,84:h}),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(f,[2,12]),e(m,[2,26]),e(_,[2,31]),e(b,[2,29]),{33:[2,72],42:132,73:133,74:L},e(T,[2,69]),e(A,[2,71]),e(p,[2,15]),{71:[1,135],76:[1,134]},e(B,[2,98]),e(d,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},e(B,[2,99]),e(p,[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(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],o=[],a=this.table,i="",s=0,l=0,c=2,u=1,h=o.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(d.yy[f]=this.yy[f]);p.setInput(e,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;o.push(m);var g=p.options&&p.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,y,v,S,k,w,E,P,T=function(){var e;return"number"!=typeof(e=p.lex()||u)&&(e=t.symbols_[e]||e),e},x={};;){if(y=r[r.length-1],this.defaultActions[y]?v=this.defaultActions[y]:(null==b&&(b=T()),v=a[y]&&a[y][b]),void 0===v||!v.length||!v[0]){var N="";for(k in P=[],a[y])this.terminals_[k]&&k>c&&P.push("'"+this.terminals_[k]+"'");N=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==u?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:P})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+b);switch(v[0]){case 1:r.push(b),n.push(p.yytext),o.push(p.yylloc),r.push(v[1]),b=null,l=p.yyleng,i=p.yytext,s=p.yylineno,m=p.yylloc;break;case 2:if(w=this.productions_[v[1]][1],x.$=n[n.length-w],x._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},g&&(x._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(x,[i,l,s,d.yy,v[1],n,o].concat(h))))return S;w&&(r=r.slice(0,-1*w*2),n=n.slice(0,-1*w),o=o.slice(0,-1*w)),r.push(this.productions_[v[1]][0]),n.push(x.$),o.push(x._$),E=a[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},I=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,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 e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var o=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,o;if(this.options.backtrack_lexer&&(o={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&&(o.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in o)this[a]=o[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;a<o.length;a++)if((r=this._input.match(this.rules[o[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,o[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,o[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){function o(e,r){return t.yytext=t.yytext.substring(e,t.yyleng-r+e)}switch(r){case 0:if("\\\\"===t.yytext.slice(-2)?(o(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(o(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(o(5,9),18);case 6:case 22:return this.popState(),14;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 52;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 72;case 25:case 26:case 41:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;case 30:return this.popState(),33;case 31:return t.yytext=o(1,2).replace(/\\"/g,'"'),79;case 32:return t.yytext=o(1,2).replace(/\\'/g,"'"),79;case 33:return 84;case 34: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 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),71;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 e}();function R(){this.yy={}}return D.lexer=I,R.prototype=D,D.Parser=R,new R}();function Hs(){this.padding=0}function Vs(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new As(e.path.original+" doesn't match "+t,r)}}function Us(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}}Hs.prototype=new _s,Hs.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+"\n"},Hs.prototype.Program=function(e){var t,r,n="",o=e.body;if(e.blockParams){var a="BLOCK PARAMS: [";for(t=0,r=e.blockParams.length;t<r;t++)a+=" "+e.blockParams[t];a+=" ]",n+=this.pad(a)}for(t=0,r=o.length;t<r;t++)n+=this.accept(o[t]);return this.padding--,n},Hs.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")},Hs.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")},Hs.prototype.BlockStatement=Hs.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad(("DecoratorBlock"===e.type?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t},Hs.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")},Hs.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")},Hs.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")},Hs.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")},Hs.prototype.SubExpression=function(e){for(var t,r=e.params,n=[],o=0,a=r.length;o<a;o++)n.push(this.accept(r[o]));return r="["+n.join(", ")+"]",t=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+r+t},Hs.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t},Hs.prototype.StringLiteral=function(e){return'"'+e.value+'"'},Hs.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"},Hs.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"},Hs.prototype.UndefinedLiteral=function(){return"UNDEFINED"},Hs.prototype.NullLiteral=function(){return"NULL"},Hs.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,o=t.length;n<o;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"},Hs.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)};var zs=Object.freeze({__proto__:null,SourceLocation:Us,id:function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},stripFlags:function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},stripComment:function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},preparePath:function(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",o=[],a=0,i=0,s=t.length;i<s;i++){var l=t[i].part,c=t[i].original!==l;if(n+=(t[i].separator||"")+l,c||".."!==l&&"."!==l&&"this"!==l)o.push(l);else{if(o.length>0)throw new As("Invalid path: "+n,{loc:r});".."===l&&a++}}return{type:"PathExpression",data:e,depth:a,parts:o,original:n,loc:r}},prepareMustache:function(e,t,r,n,o,a){var i=n.charAt(3)||n.charAt(2),s="{"!==i&&"&"!==i;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:s,strip:o,loc:this.locInfo(a)}},prepareRawBlock:function(e,t,r,n){Vs(e,r);var o={type:"Program",body:t,strip:{},loc:n=this.locInfo(n)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},prepareBlock:function(e,t,r,n,o,a){n&&n.path&&Vs(e,n);var i,s,l=/\*/.test(e.open);if(t.blockParams=e.blockParams,r){if(l)throw new As("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),s=r.strip,i=r.program}return o&&(o=i,i=t,t=o),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:i,openStrip:e.strip,inverseStrip:s,closeStrip:n&&n.strip,loc:this.locInfo(a)}},prepareProgram:function(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}},preparePartialBlock:function(e,t,r,n){return Vs(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)}}}),Fs={};for(var Gs in zs)Object.prototype.hasOwnProperty.call(zs,Gs)&&(Fs[Gs]=zs[Gs]);function $s(e,t){return"Program"===e.type?e:(js.yy=Fs,js.yy.locInfo=function(e){return new Us(t&&t.srcName,e)},js.parse(e))}var Ks=Object.freeze({__proto__:null,Visitor:_s,WhitespaceControl:Ds,parser:js,Exception:As,print:function(e){return(new Hs).accept(e)},PrintVisitor:Hs,parse:function(e,t){var r=$s(e,t);return new Ds(t).accept(r)},parseWithoutProcessing:$s}),Ys={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:"\ud835\udd04",afr:"\ud835\udd1e",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:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",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:"\ud835\udd05",bfr:"\ud835\udd1f",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:"\ud835\udd39",bopf:"\ud835\udd53",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:"\ud835\udcb7",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:"\ud835\udd20",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:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",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:"\ud835\udd07",dfr:"\ud835\udd21",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:"\ud835\udd3b",dopf:"\ud835\udd55",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",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\xca",ecirc:"\xea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105",in:"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba",int:"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\xb7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",Ocirc:"\xd4",ocirc:"\xf4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\xb6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",prap:"\u2ab7",Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\xd7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\xff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"},Ws=/^#[xX]([A-Fa-f0-9]+)$/,Qs=/^#([0-9]+)$/,Js=/^([A-Za-z0-9]+)$/,Xs=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(Ws);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Qs))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Js))?this.named[t[1]]:void 0}},e}(),Zs=/[\t\n\f ]/,el=/[A-Za-z]/,tl=/\r\n?/g;function rl(e){return Zs.test(e)}function nl(e){return el.test(e)}var ol=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||nl(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){rl(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();rl(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();rl(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!rl(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();rl(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();rl(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();rl(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();rl(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();rl(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rl(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();rl(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();rl(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();rl(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();rl(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();rl(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();rl(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||nl(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(tl,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),r=this.entityParser.parse(t);if(r){for(var n=t.length;n;)this.consume(),n--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),al=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new ol(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var il=Object.freeze({__proto__:null,HTML5NamedCharRefs:Ys,EntityParser:Xs,EventedTokenizer:ol,Tokenizer:al,tokenize:function(e,t){return new al(new Xs(Ys),t).tokenize(e)}}),sl={};Object.defineProperty(sl,"__esModule",{value:!0}),sl.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{entityEncoding:"transformed"};if(!e)return"";let r=new ll.default(t);return r.print(e)};var ll=function(e){return e&&e.__esModule?e:{default:e}}(gs);var cl={};Object.defineProperty(cl,"__esModule",{value:!0}),cl.generateSyntaxError=function(e,t){let{module:r,loc:n}=t,{line:o,column:a}=n.start,i=t.asString(),s=i?"\n\n|\n| ".concat(i.split("\n").join("\n| "),"\n|\n\n"):"",l=new Error("".concat(e,": ").concat(s,"(error occurred in '").concat(r,"' @ line ").concat(o," : column ").concat(a,")"));return l.name="SyntaxError",l.location=t,l.code=i,l};var ul={},hl={};Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=void 0;var pl=D;var dl={Program:(0,pl.tuple)("body"),Template:(0,pl.tuple)("body"),Block:(0,pl.tuple)("body"),MustacheStatement:(0,pl.tuple)("path","params","hash"),BlockStatement:(0,pl.tuple)("path","params","hash","program","inverse"),ElementModifierStatement:(0,pl.tuple)("path","params","hash"),PartialStatement:(0,pl.tuple)("name","params","hash"),CommentStatement:(0,pl.tuple)(),MustacheCommentStatement:(0,pl.tuple)(),ElementNode:(0,pl.tuple)("attributes","modifiers","children","comments"),AttrNode:(0,pl.tuple)("value"),TextNode:(0,pl.tuple)(),ConcatStatement:(0,pl.tuple)("parts"),SubExpression:(0,pl.tuple)("path","params","hash"),PathExpression:(0,pl.tuple)(),PathHead:(0,pl.tuple)(),StringLiteral:(0,pl.tuple)(),BooleanLiteral:(0,pl.tuple)(),NumberLiteral:(0,pl.tuple)(),NullLiteral:(0,pl.tuple)(),UndefinedLiteral:(0,pl.tuple)(),Hash:(0,pl.tuple)("pairs"),HashPair:(0,pl.tuple)("value"),NamedBlock:(0,pl.tuple)("attributes","modifiers","children","comments"),SimpleElement:(0,pl.tuple)("attributes","modifiers","children","comments"),Component:(0,pl.tuple)("head","attributes","modifiers","children","comments")};hl.default=dl;var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.cannotRemoveNode=function(e,t,r){return new ml("Cannot remove a node unless it is part of an array",e,t,r)},fl.cannotReplaceNode=function(e,t,r){return new ml("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)},fl.cannotReplaceOrRemoveInKeyHandlerYet=function(e,t){return new ml("Replacing and removing in key handlers is not yet supported.",e,null,t)},fl.default=void 0;const ml=function(){function e(e,t,r,n){let o=Error.call(this,e);this.key=n,this.message=e,this.node=t,this.parent=r,this.stack=o.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();var gl=ml;fl.default=gl;var bl={};Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=void 0;bl.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.node=e,this.parent=t,this.parentKey=r}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new yl(this)}}};class yl{constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}}Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=function(e,t){let r=new kl.default(e);Tl(t,r)};var vl=wl(hl),Sl=fl,kl=wl(bl);function wl(e){return e&&e.__esModule?e:{default:e}}function El(e){return"function"==typeof e?e:e.enter}function Pl(e){return"function"==typeof e?void 0:e.exit}function Tl(e,t){let r,n,o,{node:a,parent:i,parentKey:s}=t,l=function(e,t){if(("Template"===t||"Block"===t)&&e.Program)return e.Program;let r=e[t];return void 0!==r?r:e.All}(e,a.type);if(void 0!==l&&(r=El(l),n=Pl(l)),void 0!==r&&(o=r(a,t)),null!=o){if(JSON.stringify(a)!==JSON.stringify(o)){if(Array.isArray(o))return Ol(e,o,i,s),o;return Tl(e,new kl.default(o,i,s))||o}o=void 0}if(void 0===o){let r=vl.default[a.type];for(let n=0;n<r.length;n++){Nl(e,l,t,r[n])}void 0!==n&&(o=n(a,t))}return o}function xl(e,t,r){e[t]=r}function Nl(e,t,r,n){let o,a,{node:i}=r,s=function(e,t){return e[t]}(i,n);if(s){if(void 0!==t){let e=function(e,t){let r="function"!=typeof e?e.keys:void 0;if(void 0===r)return;let n=r[t];return void 0!==n?n:r.All}(t,n);void 0!==e&&(o=El(e),a=Pl(e))}if(void 0!==o&&void 0!==o(i,n))throw(0,Sl.cannotReplaceOrRemoveInKeyHandlerYet)(i,n);if(Array.isArray(s))Ol(e,s,r,n);else{let t=Tl(e,new kl.default(s,r,n));void 0!==t&&function(e,t,r,n){if(null===n)throw(0,Sl.cannotRemoveNode)(r,e,t);if(Array.isArray(n)){if(1!==n.length)throw 0===n.length?(0,Sl.cannotRemoveNode)(r,e,t):(0,Sl.cannotReplaceNode)(r,e,t);xl(e,t,n[0])}else xl(e,t,n)}(i,n,s,t)}if(void 0!==a&&void 0!==a(i,n))throw(0,Sl.cannotReplaceOrRemoveInKeyHandlerYet)(i,n)}}function Ol(e,t,r,n){for(let o=0;o<t.length;o++){let a=t[o],i=Tl(e,new kl.default(a,r,n));void 0!==i&&(o+=Al(t,o,i)-1)}}function Al(e,t,r){return null===r?(e.splice(t,1),0):Array.isArray(r)?(e.splice(t,1,...r),r.length):(e.splice(t,1,r),1)}var _l={};Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=void 0;_l.default=class{constructor(e){this.order=e,this.stack=[]}visit(e,t){e&&(this.stack.push(e),"post"===this.order?(this.children(e,t),t(e,this)):(t(e,this),this.children(e,t)),this.stack.pop())}children(e,t){switch(e.type){case"Block":case"Template":return Cl.Program(this,e,t);case"ElementNode":return Cl.ElementNode(this,e,t);case"BlockStatement":return Cl.BlockStatement(this,e,t);default:return}}};const Cl={Program(e,t,r){for(let n=0;n<t.body.length;n++)e.visit(t.body[n],r)},Template(e,t,r){for(let n=0;n<t.body.length;n++)e.visit(t.body[n],r)},Block(e,t,r){for(let n=0;n<t.body.length;n++)e.visit(t.body[n],r)},ElementNode(e,t,r){for(let n=0;n<t.children.length;n++)e.visit(t.children[n],r)},BlockStatement(e,t,r){e.visit(t.program,r),e.visit(t.inverse||null,r)}};var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.parseElementBlockParams=function(e){let t=function(e){let t=e.attributes.length,r=[];for(let n=0;n<t;n++)r.push(e.attributes[n].name);let n=r.indexOf("as");if(-1===n&&r.length>0&&"|"===r[r.length-1].charAt(0))throw(0,Bl.generateSyntaxError)("Block parameters must be preceded by the `as` keyword, detected block parameters without `as`",e.loc);if(-1!==n&&t>n&&"|"===r[n+1].charAt(0)){let o=r.slice(n).join(" ");if("|"!==o.charAt(o.length-1)||2!==o.match(/\|/g).length)throw(0,Bl.generateSyntaxError)("Invalid block parameters syntax, '"+o+"'",e.loc);let a=[];for(let o=n+1;o<t;o++){let t=r[o].replace(/\|/g,"");if(""!==t){if(Dl.test(t))throw(0,Bl.generateSyntaxError)("Invalid identifier for block parameters, '"+t+"'",e.loc);a.push(t)}}if(0===a.length)throw(0,Bl.generateSyntaxError)("Cannot use zero block parameters",e.loc);return e.attributes=e.attributes.slice(0,n),a}return null}(e);t&&(e.blockParams=t)},Ll.childrenFor=Il,Ll.appendChild=function(e,t){Il(e).push(t)},Ll.isHBSLiteral=function(e){return"StringLiteral"===e.type||"BooleanLiteral"===e.type||"NumberLiteral"===e.type||"NullLiteral"===e.type||"UndefinedLiteral"===e.type},Ll.printLiteral=function(e){return"UndefinedLiteral"===e.type?"undefined":JSON.stringify(e.value)},Ll.isUpperCase=function(e){return e[0]===e[0].toUpperCase()&&e[0]!==e[0].toLowerCase()},Ll.isLowerCase=function(e){return e[0]===e[0].toLowerCase()&&e[0]!==e[0].toUpperCase()};var Bl=cl;let Dl=/[!"#%-,\.\/;->@\[-\^`\{-~]/;function Il(e){switch(e.type){case"Block":case"Template":return e.body;case"ElementNode":return e.children}}var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var ql=xe;const Ml={close:!1,open:!1};var jl=new class{pos(e,t){return{line:e,column:t}}blockItself(e){let{body:t,blockParams:r,chained:n=!1,loc:o}=e;return{type:"Block",body:t||[],blockParams:r||[],chained:n,loc:o}}template(e){let{body:t,blockParams:r,loc:n}=e;return{type:"Template",body:t||[],blockParams:r||[],loc:n}}mustache(e){let{path:t,params:r,hash:n,trusting:o,loc:a,strip:i=Ml}=e;return{type:"MustacheStatement",path:t,params:r,hash:n,escaped:!o,trusting:o,loc:a,strip:i||{open:!1,close:!1}}}block(e){let{path:t,params:r,hash:n,defaultBlock:o,elseBlock:a=null,loc:i,openStrip:s=Ml,inverseStrip:l=Ml,closeStrip:c=Ml}=e;return{type:"BlockStatement",path:t,params:r,hash:n,program:o,inverse:a,loc:i,openStrip:s,inverseStrip:l,closeStrip:c}}comment(e,t){return{type:"CommentStatement",value:e,loc:t}}mustacheComment(e,t){return{type:"MustacheCommentStatement",value:e,loc:t}}concat(e,t){return{type:"ConcatStatement",parts:e,loc:t}}element(e){let{tag:t,selfClosing:r,attrs:n,blockParams:o,modifiers:a,comments:i,children:s,loc:l}=e;return{type:"ElementNode",tag:t,selfClosing:r,attributes:n||[],blockParams:o||[],modifiers:a||[],comments:i||[],children:s||[],loc:l}}elementModifier(e){let{path:t,params:r,hash:n,loc:o}=e;return{type:"ElementModifierStatement",path:t,params:r,hash:n,loc:o}}attr(e){let{name:t,value:r,loc:n}=e;return{type:"AttrNode",name:t,value:r,loc:n}}text(e){let{chars:t,loc:r}=e;return{type:"TextNode",chars:t,loc:r}}sexpr(e){let{path:t,params:r,hash:n,loc:o}=e;return{type:"SubExpression",path:t,params:r,hash:n,loc:o}}path(e){let{head:t,tail:r,loc:n}=e,{original:o}=function(e){switch(e.type){case"AtHead":case"VarHead":return{original:e.name,parts:[e.name]};case"ThisHead":return{original:"this",parts:[]}}}(t),a=[...o,...r].join(".");return new ql.PathExpressionImplV1(a,t,r,n)}head(e,t){return"@"===e[0]?this.atName(e,t):"this"===e?this.this(t):this.var(e,t)}this(e){return{type:"ThisHead",loc:e}}atName(e,t){return{type:"AtHead",name:e,loc:t}}var(e,t){return{type:"VarHead",name:e,loc:t}}hash(e,t){return{type:"Hash",pairs:e||[],loc:t}}pair(e){let{key:t,value:r,loc:n}=e;return{type:"HashPair",key:t,value:r,loc:n}}literal(e){let{type:t,value:r,loc:n}=e;return{type:t,value:r,original:r,loc:n}}undefined(){return this.literal({type:"UndefinedLiteral",value:void 0})}null(){return this.literal({type:"NullLiteral",value:null})}string(e,t){return this.literal({type:"StringLiteral",value:e,loc:t})}boolean(e,t){return this.literal({type:"BooleanLiteral",value:e,loc:t})}number(e,t){return this.literal({type:"NumberLiteral",value:e,loc:t})}};Rl.default=jl;var Hl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.Parser=void 0;var Ul=D,zl=il;Vl.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zl.EntityParser(zl.HTML5NamedCharRefs),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"precompile";this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=e,this.lines=e.source.split(/(?:\r\n?|\n)/g),this.tokenizer=new zl.EventedTokenizer(this,t,r)}offset(){let{line:e,column:t}=this.tokenizer;return this.source.offsetFor(e,t)}pos(e){let{line:t,column:r}=e;return this.source.offsetFor(t,r)}finish(e){return(0,Ul.assign)({},e,{loc:e.loc.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){return this.currentNode}get currentStartTag(){return this.currentNode}get currentEndTag(){return this.currentNode}get currentComment(){return this.currentNode}get currentData(){return this.currentNode}acceptTemplate(e){return this[e.type](e)}acceptNode(e){return this[e.type](e)}currentElement(){return this.elementStack[this.elementStack.length-1]}sourceForNode(e,t){let r,n,o,a=e.loc.start.line-1,i=a-1,s=e.loc.start.column,l=[];for(t?(n=t.loc.end.line-1,o=t.loc.end.column):(n=e.loc.end.line-1,o=e.loc.end.column);i<n;)i++,r=this.lines[i],i===a?a===n?l.push(r.slice(s,o)):l.push(r.slice(s)):i===n?l.push(r.slice(0,o)):l.push(r);return l.join("\n")}},Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.HandlebarsNodeVisitors=void 0;var Fl=Vl,Gl=q,$l=cl,Kl=Ll,Yl=xe,Wl=function(e){return e&&e.__esModule?e:{default:e}}(Rl);class Ql extends Fl.Parser{get isTopLevel(){return 0===this.elementStack.length}Program(e){let t,r=[];t=this.isTopLevel?Wl.default.template({body:r,blockParams:e.blockParams,loc:this.source.spanFor(e.loc)}):Wl.default.blockItself({body:r,blockParams:e.blockParams,chained:e.chained,loc:this.source.spanFor(e.loc)});let n,o=e.body.length;if(this.elementStack.push(t),0===o)return this.elementStack.pop();for(n=0;n<o;n++)this.acceptNode(e.body[n]);let a=this.elementStack.pop();if(a!==t){let e=a;throw(0,$l.generateSyntaxError)("Unclosed element `".concat(e.tag,"`"),e.loc)}return t}BlockStatement(e){if("comment"===this.tokenizer.state)return void this.appendToCommentData(this.sourceForNode(e));if("data"!==this.tokenizer.state&&"beforeData"!==this.tokenizer.state)throw(0,$l.generateSyntaxError)("A block may only be used inside an HTML element or another block.",this.source.spanFor(e.loc));let{path:t,params:r,hash:n}=Jl(this,e);e.program.loc||(e.program.loc=Gl.NON_EXISTENT_LOCATION),e.inverse&&!e.inverse.loc&&(e.inverse.loc=Gl.NON_EXISTENT_LOCATION);let o=this.Program(e.program),a=e.inverse?this.Program(e.inverse):null,i=Wl.default.block({path:t,params:r,hash:n,defaultBlock:o,elseBlock:a,loc:this.source.spanFor(e.loc),openStrip:e.openStrip,inverseStrip:e.inverseStrip,closeStrip:e.closeStrip}),s=this.currentElement();(0,Kl.appendChild)(s,i)}MustacheStatement(e){let t,{tokenizer:r}=this;if("comment"===r.state)return void this.appendToCommentData(this.sourceForNode(e));let{escaped:n,loc:o,strip:a}=e;if((0,Kl.isHBSLiteral)(e.path))t=Wl.default.mustache({path:this.acceptNode(e.path),params:[],hash:Wl.default.hash([],this.source.spanFor(e.path.loc).collapse("end")),trusting:!n,loc:this.source.spanFor(o),strip:a});else{let{path:r,params:i,hash:s}=Jl(this,e);t=Wl.default.mustache({path:r,params:i,hash:s,trusting:!n,loc:this.source.spanFor(o),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw(0,$l.generateSyntaxError)("Cannot use mustaches in an elements tagname",t.loc);case"beforeAttributeName":Xl(this.currentStartTag,t);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),Xl(this.currentStartTag,t),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":Xl(this.currentStartTag,t),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(t),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(t);break;default:(0,Kl.appendChild)(this.currentElement(),t)}return t}appendDynamicAttributeValuePart(e){this.finalizeTextPart();let t=this.currentAttr;t.isDynamic=!0,t.parts.push(e)}finalizeTextPart(){let e=this.currentAttr.currentPart;null!==e&&(this.currentAttr.parts.push(e),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(e){!function(e,t){let r=t.loc.start.line,n=t.loc.start.column,o=function(e,t){if(""===t)return{lines:e.split("\n").length-1,columns:0};let r=e.split(t)[0].split(/\n/),n=r.length-1;return{lines:n,columns:r[n].length}}(t.original,t.value);r+=o.lines,o.lines?n=o.columns:n+=o.columns;e.line=r,e.column=n}(this.tokenizer,e),this.tokenizer.tokenizePart(e.value),this.tokenizer.flushData()}CommentStatement(e){let{tokenizer:t}=this;if("comment"===t.state)return this.appendToCommentData(this.sourceForNode(e)),null;let{value:r,loc:n}=e,o=Wl.default.mustacheComment(r,this.source.spanFor(n));switch(t.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(o);break;case"beforeData":case"data":(0,Kl.appendChild)(this.currentElement(),o);break;default:throw(0,$l.generateSyntaxError)("Using a Handlebars comment when in the `".concat(t.state,"` state is not supported"),this.source.spanFor(e.loc))}return o}PartialStatement(e){throw(0,$l.generateSyntaxError)("Handlebars partials are not supported",this.source.spanFor(e.loc))}PartialBlockStatement(e){throw(0,$l.generateSyntaxError)("Handlebars partial blocks are not supported",this.source.spanFor(e.loc))}Decorator(e){throw(0,$l.generateSyntaxError)("Handlebars decorators are not supported",this.source.spanFor(e.loc))}DecoratorBlock(e){throw(0,$l.generateSyntaxError)("Handlebars decorator blocks are not supported",this.source.spanFor(e.loc))}SubExpression(e){let{path:t,params:r,hash:n}=Jl(this,e);return Wl.default.sexpr({path:t,params:r,hash:n,loc:this.source.spanFor(e.loc)})}PathExpression(e){let t,{original:r}=e;if(-1!==r.indexOf("/")){if("./"===r.slice(0,2))throw(0,$l.generateSyntaxError)('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(e.loc));if("../"===r.slice(0,3))throw(0,$l.generateSyntaxError)('Changing context using "../" is not supported in Glimmer',this.source.spanFor(e.loc));if(-1!==r.indexOf("."))throw(0,$l.generateSyntaxError)("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(e.loc));t=[e.parts.join("/")]}else{if("."===r)throw(0,$l.generateSyntaxError)("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(e.loc));t=e.parts}let n,o=!1;if(r.match(/^this(\..+)?$/)&&(o=!0),o)n={type:"ThisHead",loc:{start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+4}}};else if(e.data){let r=t.shift();if(void 0===r)throw(0,$l.generateSyntaxError)("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(e.loc));n={type:"AtHead",name:"@".concat(r),loc:{start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+r.length+1}}}}else{let r=t.shift();if(void 0===r)throw(0,$l.generateSyntaxError)("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(e.loc));n={type:"VarHead",name:r,loc:{start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+r.length}}}}return new Yl.PathExpressionImplV1(e.original,n,t,this.source.spanFor(e.loc))}Hash(e){let t=[];for(let r=0;r<e.pairs.length;r++){let n=e.pairs[r];t.push(Wl.default.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}))}return Wl.default.hash(t,this.source.spanFor(e.loc))}StringLiteral(e){return Wl.default.literal({type:"StringLiteral",value:e.value,loc:e.loc})}BooleanLiteral(e){return Wl.default.literal({type:"BooleanLiteral",value:e.value,loc:e.loc})}NumberLiteral(e){return Wl.default.literal({type:"NumberLiteral",value:e.value,loc:e.loc})}UndefinedLiteral(e){return Wl.default.literal({type:"UndefinedLiteral",value:void 0,loc:e.loc})}NullLiteral(e){return Wl.default.literal({type:"NullLiteral",value:null,loc:e.loc})}}function Jl(e,t){let r="PathExpression"===t.path.type?e.PathExpression(t.path):e.SubExpression(t.path),n=t.params?t.params.map((t=>e.acceptNode(t))):[],o=n.length>0?n[n.length-1].loc:r.loc;return{path:r,params:n,hash:t.hash?e.Hash(t.hash):{type:"Hash",pairs:[],loc:e.source.spanFor(o).collapse("end")}}}function Xl(e,t){let{path:r,params:n,hash:o,loc:a}=t;if((0,Kl.isHBSLiteral)(r)){let n="{{".concat((0,Kl.printLiteral)(r),"}}"),o="<".concat(e.name," ... ").concat(n," ...");throw(0,$l.generateSyntaxError)("In ".concat(o,", ").concat(n," is not a valid modifier"),t.loc)}let i=Wl.default.elementModifier({path:r,params:n,hash:o,loc:a});e.modifiers.push(i)}Hl.HandlebarsNodeVisitors=Ql,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.preprocess=bc,Ns.TokenizerEventHandlers=void 0;var Zl=D,ec=Ks,tc=il,rc=dc(sl),nc=gs,oc=a,ac=I,ic=cl,sc=dc(ul),lc=dc(_l),cc=Ll,uc=dc(Rl),hc=dc(Te),pc=Hl;function dc(e){return e&&e.__esModule?e:{default:e}}class fc extends pc.HandlebarsNodeVisitors{constructor(){super(...arguments),this.tagOpenLine=0,this.tagOpenColumn=0}reset(){this.currentNode=null}beginComment(){this.currentNode=uc.default.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(e){this.currentComment.value+=e}finishComment(){(0,cc.appendChild)(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=uc.default.text({chars:"",loc:this.offset().collapsed()})}appendToData(e){this.currentData.chars+=e}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),(0,cc.appendChild)(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if("StartTag"===e.type){if(this.finishStartTag(),":"===e.name)throw(0,ic.generateSyntaxError)("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(nc.voidMap[e.name]||e.selfClosing)&&this.finishEndTag(!0)}else"EndTag"===e.type&&this.finishEndTag(!1)}finishStartTag(){let{name:e,attributes:t,modifiers:r,comments:n,selfClosing:o,loc:a}=this.finish(this.currentStartTag),i=uc.default.element({tag:e,selfClosing:o,attrs:t,modifiers:r,comments:n,children:[],blockParams:[],loc:a});this.elementStack.push(i)}finishEndTag(e){let t=this.finish(this.currentTag),r=this.elementStack.pop(),n=this.currentElement();this.validateEndTag(t,r,e),r.loc=r.loc.withEnd(this.offset()),(0,cc.parseElementBlockParams)(r),(0,cc.appendChild)(n,r)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(e){this.currentTag.name+=e}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let t=this.currentAttr.parts,r=t[t.length-1],n=this.currentAttr.currentPart;if(n)n.chars+=e,n.loc=n.loc.withEnd(this.offset());else{let t=this.offset();t="\n"===e?r?r.loc.getEnd():this.currentAttr.valueSpan.getStart():t.move(-1),this.currentAttr.currentPart=uc.default.text({chars:e,loc:t.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,t=this.offset();if("EndTag"===e.type)throw(0,ic.generateSyntaxError)("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.loc.toJSON(),end:t.toJSON()}));let{name:r,parts:n,start:o,isQuoted:a,isDynamic:i,valueSpan:s}=this.currentAttr,l=this.assembleAttributeValue(n,a,i,o.until(t));l.loc=s.withEnd(t);let c=uc.default.attr({name:r,value:l,loc:o.until(t)});this.currentStartTag.attributes.push(c)}reportSyntaxError(e){throw(0,ic.generateSyntaxError)(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let t=0;t<e.length;t++){let r=e[t];if("MustacheStatement"!==r.type&&"TextNode"!==r.type)throw(0,ic.generateSyntaxError)("Unsupported node in quoted attribute value: "+r.type,r.loc)}(0,Zl.assertPresent)(e,"the concatenation parts of an element should not be empty");let t=e[0],r=e[e.length-1];return uc.default.concat(e,this.source.spanFor(t.loc).extend(this.source.spanFor(r.loc)))}validateEndTag(e,t,r){let n;if(nc.voidMap[e.name]&&!r?n="<".concat(e.name,"> elements do not need end tags. You should remove it"):void 0===t.tag?n="Closing tag </".concat(e.name,"> without an open tag"):t.tag!==e.name&&(n="Closing tag </".concat(e.name,"> did not match last open tag <").concat(t.tag,"> (on line ").concat(t.loc.startPosition.line,")")),n)throw(0,ic.generateSyntaxError)(n,e.loc)}assembleAttributeValue(e,t,r,n){if(r){if(t)return this.assembleConcatenatedValue(e);if(1===e.length||2===e.length&&"TextNode"===e[1].type&&"/"===e[1].chars)return e[0];throw(0,ic.generateSyntaxError)("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}return e.length>0?e[0]:uc.default.text({chars:"",loc:n})}}Ns.TokenizerEventHandlers=fc;const mc={parse:bc,builders:hc.default,print:rc.default,traverse:sc.default,Walker:lc.default};class gc extends tc.EntityParser{constructor(){super({})}parse(){}}function bc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,o;let a,i,s,l=t.mode||"precompile";"string"==typeof e?(a=new oc.Source(e,null===(r=t.meta)||void 0===r?void 0:r.moduleName),i="codemod"===l?(0,ec.parseWithoutProcessing)(e,t.parseOptions):(0,ec.parse)(e,t.parseOptions)):e instanceof oc.Source?(a=e,i="codemod"===l?(0,ec.parseWithoutProcessing)(e.source,t.parseOptions):(0,ec.parse)(e.source,t.parseOptions)):(a=new oc.Source("",null===(n=t.meta)||void 0===n?void 0:n.moduleName),i=e),"codemod"===l&&(s=new gc);let c=ac.SourceSpan.forCharPositions(a,0,a.source.length);i.loc={source:"(program)",start:c.startPosition,end:c.endPosition};let u=new fc(a,s,l).acceptTemplate(i);if(t.strictMode&&(u.blockParams=null!==(o=t.locals)&&void 0!==o?o:[]),t&&t.plugins&&t.plugins.ast)for(let e=0,r=t.plugins.ast.length;e<r;e++){let r=(0,t.plugins.ast[e])((0,Zl.assign)({},t,{syntax:mc},{plugins:void 0}));(0,sc.default)(u,r.visitor)}return u}var yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.BlockSymbolTable=yc.ProgramSymbolTable=yc.SymbolTable=void 0;var vc=D,Sc=Ll;class kc{static top(e,t){return new wc(e,t)}child(e){let t=e.map((e=>this.allocate(e)));return new Ec(this,e,t)}}yc.SymbolTable=kc;class wc extends kc{constructor(e,t){super(),this.templateLocals=e,this.customizeComponentName=t,this.symbols=[],this.upvars=[],this.size=1,this.named=(0,vc.dict)(),this.blocks=(0,vc.dict)(),this.usedTemplateLocals=[],this._hasEval=!1}getUsedTemplateLocals(){return this.usedTemplateLocals}setHasEval(){this._hasEval=!0}get hasEval(){return this._hasEval}has(e){return-1!==this.templateLocals.indexOf(e)}get(e){let t=this.usedTemplateLocals.indexOf(e);return-1!==t||(t=this.usedTemplateLocals.length,this.usedTemplateLocals.push(e)),[t,!0]}getLocalsMap(){return(0,vc.dict)()}getEvalInfo(){let e=this.getLocalsMap();return Object.keys(e).map((t=>e[t]))}allocateFree(e,t){39===t.resolution()&&t.isAngleBracket&&(0,Sc.isUpperCase)(e)&&(e=this.customizeComponentName(e));let r=this.upvars.indexOf(e);return-1!==r||(r=this.upvars.length,this.upvars.push(e)),r}allocateNamed(e){let t=this.named[e];return t||(t=this.named[e]=this.allocate(e)),t}allocateBlock(e){"inverse"===e&&(e="else");let t=this.blocks[e];return t||(t=this.blocks[e]=this.allocate("&".concat(e))),t}allocate(e){return this.symbols.push(e),this.size++}}yc.ProgramSymbolTable=wc;class Ec extends kc{constructor(e,t,r){super(),this.parent=e,this.symbols=t,this.slots=r}get locals(){return this.symbols}has(e){return-1!==this.symbols.indexOf(e)||this.parent.has(e)}get(e){let t=this.symbols.indexOf(e);return-1===t?this.parent.get(e):[this.slots[t],!1]}getLocalsMap(){let e=this.parent.getLocalsMap();return this.symbols.forEach((t=>e[t]=this.get(t)[0])),e}getEvalInfo(){let e=this.getLocalsMap();return Object.keys(e).map((t=>e[t]))}setHasEval(){this.parent.setHasEval()}allocateFree(e,t){return this.parent.allocateFree(e,t)}allocateNamed(e){return this.parent.allocateNamed(e)}allocateBlock(e){return this.parent.allocateBlock(e)}allocate(e){return this.parent.allocate(e)}}yc.BlockSymbolTable=Ec;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.BuildElement=Pc.Builder=void 0;var Tc=D,xc=$,Nc=bt,Oc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=Ac();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(We);function Ac(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ac=function(){return e},e}class _c{template(e,t,r){return new Oc.Template({table:e,body:t,loc:r})}block(e,t,r){return new Oc.Block({scope:e,body:t,loc:r})}namedBlock(e,t,r){return new Oc.NamedBlock({name:e,block:t,attrs:[],componentArgs:[],modifiers:[],loc:r})}simpleNamedBlock(e,t,r){return new Cc({selfClosing:!1,attrs:[],componentArgs:[],modifiers:[],comments:[]}).named(e,t,r)}slice(e,t){return new xc.SourceSlice({loc:t,chars:e})}args(e,t,r){return new Oc.Args({loc:r,positional:e,named:t})}positional(e,t){return new Oc.PositionalArguments({loc:t,exprs:e})}namedArgument(e,t){return new Oc.NamedArgument({name:e,value:t})}named(e,t){return new Oc.NamedArguments({loc:t,entries:e})}attr(e,t){let{name:r,value:n,trusting:o}=e;return new Oc.HtmlAttr({loc:t,name:r,value:n,trusting:o})}splatAttr(e,t){return new Oc.SplatAttr({symbol:e,loc:t})}arg(e,t){let{name:r,value:n,trusting:o}=e;return new Oc.ComponentArg({name:r,value:n,trusting:o,loc:t})}path(e,t,r){return new Oc.PathExpression({loc:r,ref:e,tail:t})}self(e){return new Oc.ThisReference({loc:e})}at(e,t,r){return new Oc.ArgReference({loc:r,name:new xc.SourceSlice({loc:r,chars:e}),symbol:t})}freeVar(e){let{name:t,context:r,symbol:n,loc:o}=e;return new Oc.FreeVarReference({name:t,resolution:r,symbol:n,loc:o})}localVar(e,t,r,n){return new Oc.LocalVarReference({loc:n,name:e,isTemplateLocal:r,symbol:t})}sexp(e,t){return new Oc.CallExpression({loc:t,callee:e.callee,args:e.args})}deprecatedCall(e,t,r){return new Oc.DeprecatedCallExpression({loc:r,arg:e,callee:t})}interpolate(e,t){return(0,Tc.assertPresent)(e),new Oc.InterpolateExpression({loc:t,parts:e})}literal(e,t){return new Oc.LiteralExpression({loc:t,value:e})}append(e,t){let{table:r,trusting:n,value:o}=e;return new Oc.AppendContent({table:r,trusting:n,value:o,loc:t})}modifier(e,t){let{callee:r,args:n}=e;return new Oc.ElementModifier({loc:t,callee:r,args:n})}namedBlocks(e,t){return new Oc.NamedBlocks({loc:t,blocks:e})}blockStatement(e,t){var{symbols:r,program:n,inverse:o=null}=e,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["symbols","program","inverse"]);let i=n.loc,s=[this.namedBlock(xc.SourceSlice.synthetic("default"),n,n.loc)];return o&&(i=i.extend(o.loc),s.push(this.namedBlock(xc.SourceSlice.synthetic("else"),o,o.loc))),new Oc.InvokeBlock({loc:t,blocks:this.namedBlocks(s,i),callee:a.callee,args:a.args})}element(e){return new Cc(e)}}Pc.Builder=_c;class Cc{constructor(e){this.base=e,this.builder=new _c}simple(e,t,r){return new Oc.SimpleElement((0,Tc.assign)({tag:e,body:t,componentArgs:[],loc:r},this.base))}named(e,t,r){return new Oc.NamedBlock((0,Tc.assign)({name:e,block:t,componentArgs:[],loc:r},this.base))}selfClosingComponent(e,t){return new Oc.InvokeComponent((0,Tc.assign)({loc:t,callee:e,blocks:new Oc.NamedBlocks({blocks:[],loc:t.sliceEndChars({skipEnd:1,chars:1})})},this.base))}componentWithDefaultBlock(e,t,r,n){let o=this.builder.block(r,t,n),a=this.builder.namedBlock(xc.SourceSlice.synthetic("default"),o,n);return new Oc.InvokeComponent((0,Tc.assign)({loc:n,callee:e,blocks:this.builder.namedBlocks([a],a.loc)},this.base))}componentWithNamedBlocks(e,t,r){return new Oc.InvokeComponent((0,Tc.assign)({loc:r,callee:e,blocks:this.builder.namedBlocks(t,Nc.SpanList.range(t))},this.base))}}Pc.BuildElement=Cc;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.SexpSyntaxContext=function(e){return Ic(e)?Bc.LooseModeResolution.namespaced("Helper"):null},Lc.ModifierSyntaxContext=function(e){return Ic(e)?Bc.LooseModeResolution.namespaced("Modifier"):null},Lc.BlockSyntaxContext=function(e){return Ic(e)?Bc.LooseModeResolution.namespaced("Component"):Bc.LooseModeResolution.fallback()},Lc.ComponentSyntaxContext=function(e){return Rc(e)?Bc.LooseModeResolution.namespaced("Component",!0):null},Lc.AttrValueSyntaxContext=function(e){let t=Ic(e),r=qc(e);return t?r?Bc.LooseModeResolution.namespaced("Helper"):Bc.LooseModeResolution.attr():r?Bc.STRICT_RESOLUTION:Bc.LooseModeResolution.fallback()},Lc.AppendSyntaxContext=function(e){let t=Ic(e),r=qc(e),n=e.trusting;return t?n?Bc.LooseModeResolution.trustingAppend({invoke:r}):Bc.LooseModeResolution.append({invoke:r}):Bc.LooseModeResolution.fallback()};var Bc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=Dc();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(We);function Dc(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Dc=function(){return e},e}function Ic(e){return Rc(e.path)}function Rc(e){return"PathExpression"===e.type&&"VarHead"===e.head.type&&0===e.tail.length}function qc(e){return e.params.length>0||e.hash.pairs.length>0}Object.defineProperty(er,"__esModule",{value:!0}),er.normalize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;let n=(0,Hc.preprocess)(e,t),o=(0,Mc.assign)({strictMode:!1,locals:[]},t),a=zc.SymbolTable.top(o.locals,null!==(r=t.customizeComponentName)&&void 0!==r?r:e=>e),i=new Xc(e,o,a),s=new eu(i),l=new nu(i.loc(n.loc),n.body.map((e=>s.normalize(e))),i).assertTemplate(a),c=a.getUsedTemplateLocals();return[l,c]},er.BlockContext=void 0;var Mc=D,jc=Jc(gs),Hc=Ns,Vc=$,Uc=bt,zc=yc,Fc=cl,Gc=Ll,$c=Jc(Rl),Kc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=Qc();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(We),Yc=Pc,Wc=Lc;function Qc(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Qc=function(){return e},e}function Jc(e){return e&&e.__esModule?e:{default:e}}class Xc{constructor(e,t,r){this.source=e,this.options=t,this.table=r,this.builder=new Yc.Builder}get strict(){return this.options.strictMode||!1}loc(e){return this.source.spanFor(e)}resolutionFor(e,t){if(this.strict)return{resolution:Kc.STRICT_RESOLUTION};if(this.isFreeVar(e)){let r=t(e);return null===r?{resolution:"error",path:iu(e),head:su(e)}:{resolution:r}}return{resolution:Kc.STRICT_RESOLUTION}}isFreeVar(e){return"PathExpression"===e.type?"VarHead"===e.head.type&&!this.table.has(e.head.name):"PathExpression"===e.path.type&&this.isFreeVar(e.path)}hasBinding(e){return this.table.has(e)}child(e){return new Xc(this.source,this.options,this.table.child(e))}customizeComponentName(e){return this.options.customizeComponentName?this.options.customizeComponentName(e):e}}er.BlockContext=Xc;class Zc{constructor(e){this.block=e}normalize(e,t){switch(e.type){case"NullLiteral":case"BooleanLiteral":case"NumberLiteral":case"StringLiteral":case"UndefinedLiteral":return this.block.builder.literal(e.value,this.block.loc(e.loc));case"PathExpression":return this.path(e,t);case"SubExpression":{let t=this.block.resolutionFor(e,Wc.SexpSyntaxContext);if("error"===t.resolution)throw(0,Fc.generateSyntaxError)("You attempted to invoke a path (`".concat(t.path,"`) but ").concat(t.head," was not in scope"),e.loc);return this.block.builder.sexp(this.callParts(e,t.resolution),this.block.loc(e.loc))}}}path(e,t){let r=[],n=this.block.loc(e.head.loc);for(let t of e.tail)n=n.sliceStartChars({chars:t.length,skipStart:1}),r.push(new Vc.SourceSlice({loc:n,chars:t}));return this.block.builder.path(this.ref(e.head,t),r,this.block.loc(e.loc))}callParts(e,t){let{path:r,params:n,hash:o}=e,a=this.normalize(r,t),i=n.map((e=>this.normalize(e,Kc.ARGUMENT_RESOLUTION))),s=Uc.SpanList.range(i,a.loc.collapse("end")),l=this.block.loc(o.loc),c=Uc.SpanList.range([s,l]),u=this.block.builder.positional(n.map((e=>this.normalize(e,Kc.ARGUMENT_RESOLUTION))),s),h=this.block.builder.named(o.pairs.map((e=>this.namedArgument(e))),this.block.loc(o.loc));return{callee:a,args:this.block.builder.args(u,h,c)}}namedArgument(e){let t=this.block.loc(e.loc).sliceStartChars({chars:e.key.length});return this.block.builder.namedArgument(new Vc.SourceSlice({chars:e.key,loc:t}),this.normalize(e.value,Kc.ARGUMENT_RESOLUTION))}ref(e,t){let{block:r}=this,{builder:n,table:o}=r,a=r.loc(e.loc);switch(e.type){case"ThisHead":return n.self(a);case"AtHead":{let t=o.allocateNamed(e.name);return n.at(e.name,t,a)}case"VarHead":if(r.hasBinding(e.name)){let[t,n]=o.get(e.name);return r.builder.localVar(e.name,t,n,a)}{let n=r.strict?Kc.STRICT_RESOLUTION:t,o=r.table.allocateFree(e.name,n);return r.builder.freeVar({name:e.name,context:n,symbol:o,loc:a})}}}}class eu{constructor(e){this.block=e}normalize(e){switch(e.type){case"PartialStatement":throw new Error("Handlebars partial syntax ({{> ...}}) is not allowed in Glimmer");case"BlockStatement":return this.BlockStatement(e);case"ElementNode":return new tu(this.block).ElementNode(e);case"MustacheStatement":return this.MustacheStatement(e);case"MustacheCommentStatement":return this.MustacheCommentStatement(e);case"CommentStatement":{let t=this.block.loc(e.loc);return new Kc.HtmlComment({loc:t,text:t.slice({skipStart:4,skipEnd:3}).toSlice(e.value)})}case"TextNode":return new Kc.HtmlText({loc:this.block.loc(e.loc),chars:e.chars})}}MustacheCommentStatement(e){let t,r=this.block.loc(e.loc);return t="{{!--"===r.asString().slice(0,5)?r.slice({skipStart:5,skipEnd:4}):r.slice({skipStart:3,skipEnd:2}),new Kc.GlimmerComment({loc:r,text:t.toSlice(e.value)})}MustacheStatement(e){let{escaped:t}=e,r=this.block.loc(e.loc),n=this.expr.callParts({path:e.path,params:e.params,hash:e.hash},(0,Wc.AppendSyntaxContext)(e)),o=n.args.isEmpty()?n.callee:this.block.builder.sexp(n,r);return this.block.builder.append({table:this.block.table,trusting:!t,value:o},r)}BlockStatement(e){let{program:t,inverse:r}=e,n=this.block.loc(e.loc),o=this.block.resolutionFor(e,Wc.BlockSyntaxContext);if("error"===o.resolution)throw(0,Fc.generateSyntaxError)("You attempted to invoke a path (`{{#".concat(o.path,"}}`) but ").concat(o.head," was not in scope"),n);let a=this.expr.callParts(e,o.resolution);return this.block.builder.blockStatement((0,Mc.assign)({symbols:this.block.table,program:this.Block(t),inverse:r?this.Block(r):null},a),n)}Block(e){let{body:t,loc:r,blockParams:n}=e,o=this.block.child(n),a=new eu(o);return new ou(this.block.loc(r),t.map((e=>a.normalize(e))),this.block).assertBlock(o.table)}get expr(){return new Zc(this.block)}}class tu{constructor(e){this.ctx=e}ElementNode(e){let{tag:t,selfClosing:r,comments:n}=e,o=this.ctx.loc(e.loc),[a,...i]=t.split("."),s=this.classifyTag(a,i,e.loc),l=e.attributes.filter((e=>"@"!==e.name[0])).map((e=>this.attr(e))),c=e.attributes.filter((e=>"@"===e.name[0])).map((e=>this.arg(e))),u=e.modifiers.map((e=>this.modifier(e))),h=this.ctx.child(e.blockParams),p=new eu(h),d=e.children.map((e=>p.normalize(e))),f=this.ctx.builder.element({selfClosing:r,attrs:l,componentArgs:c,modifiers:u,comments:n.map((e=>new eu(this.ctx).MustacheCommentStatement(e)))}),m=new au(f,o,d,this.ctx),g=this.ctx.loc(e.loc).sliceStartChars({chars:t.length,skipStart:1});if("ElementHead"===s)return":"===t[0]?m.assertNamedBlock(g.slice({skipStart:1}).toSlice(t.slice(1)),h.table):m.assertElement(g.toSlice(t),e.blockParams.length>0);if(e.selfClosing)return f.selfClosingComponent(s,o);{let r=m.assertComponent(t,h.table,e.blockParams.length>0);return f.componentWithNamedBlocks(s,r,o)}}modifier(e){let t=this.ctx.resolutionFor(e,Wc.ModifierSyntaxContext);if("error"===t.resolution)throw(0,Fc.generateSyntaxError)("You attempted to invoke a path (`{{#".concat(t.path,"}}`) as a modifier, but ").concat(t.head," was not in scope. Try adding `this` to the beginning of the path"),e.loc);let r=this.expr.callParts(e,t.resolution);return this.ctx.builder.modifier(r,this.ctx.loc(e.loc))}mustacheAttr(e){let t=this.ctx.builder.sexp(this.expr.callParts(e,(0,Wc.AttrValueSyntaxContext)(e)),this.ctx.loc(e.loc));return t.args.isEmpty()?t.callee:t}attrPart(e){switch(e.type){case"MustacheStatement":return{expr:this.mustacheAttr(e),trusting:!e.escaped};case"TextNode":return{expr:this.ctx.builder.literal(e.chars,this.ctx.loc(e.loc)),trusting:!0}}}attrValue(e){if("ConcatStatement"===e.type){let t=e.parts.map((e=>this.attrPart(e).expr));return{expr:this.ctx.builder.interpolate(t,this.ctx.loc(e.loc)),trusting:!1}}return this.attrPart(e)}attr(e){if("...attributes"===e.name)return this.ctx.builder.splatAttr(this.ctx.table.allocateBlock("attrs"),this.ctx.loc(e.loc));let t=this.ctx.loc(e.loc),r=t.sliceStartChars({chars:e.name.length}).toSlice(e.name),n=this.attrValue(e.value);return this.ctx.builder.attr({name:r,value:n.expr,trusting:n.trusting},t)}maybeDeprecatedCall(e,t){if(this.ctx.strict)return null;if("MustacheStatement"!==t.type)return null;let{path:r}=t;if("PathExpression"!==r.type)return null;if("VarHead"!==r.head.type)return null;let{name:n}=r.head;if("has-block"===n||"has-block-params"===n)return null;if(this.ctx.hasBinding(n))return null;if(0!==r.tail.length)return null;if(0!==t.params.length||0!==t.hash.pairs.length)return null;let o=Kc.LooseModeResolution.attr(),a=this.ctx.builder.freeVar({name:n,context:o,symbol:this.ctx.table.allocateFree(n,o),loc:r.loc});return{expr:this.ctx.builder.deprecatedCall(e,a,t.loc),trusting:!1}}arg(e){let t=this.ctx.loc(e.loc),r=t.sliceStartChars({chars:e.name.length}).toSlice(e.name),n=this.maybeDeprecatedCall(r,e.value)||this.attrValue(e.value);return this.ctx.builder.arg({name:r,value:n.expr,trusting:n.trusting},t)}classifyTag(e,t,r){let n=(0,Gc.isUpperCase)(e),o="@"===e[0]||"this"===e||this.ctx.hasBinding(e);if(this.ctx.strict&&!o){if(n)throw(0,Fc.generateSyntaxError)("Attempted to invoke a component that was not in scope in a strict mode template, `<".concat(e,">`. If you wanted to create an element with that name, convert it to lowercase - `<").concat(e.toLowerCase(),">`"),r);return"ElementHead"}let a=o||n,i=r.sliceStartChars({skipStart:1,chars:e.length}),s=t.reduce(((e,t)=>e+1+t.length),0),l=i.getEnd().move(s),c=i.withEnd(l);if(a){let n=$c.default.path({head:$c.default.head(e,i),tail:t,loc:c}),o=this.ctx.resolutionFor(n,Wc.ComponentSyntaxContext);if("error"===o.resolution)throw(0,Fc.generateSyntaxError)("You attempted to invoke a path (`<".concat(o.path,">`) but ").concat(o.head," was not in scope"),r);return new Zc(this.ctx).normalize(n,o.resolution)}if(t.length>0)throw(0,Fc.generateSyntaxError)("You used ".concat(e,".").concat(t.join(".")," as a tag name, but ").concat(e," is not in scope"),r);return"ElementHead"}get expr(){return new Zc(this.ctx)}}class ru{constructor(e,t,r){this.loc=e,this.children=t,this.block=r,this.namedBlocks=t.filter((e=>e instanceof Kc.NamedBlock)),this.hasSemanticContent=Boolean(t.filter((e=>{if(e instanceof Kc.NamedBlock)return!1;switch(e.type){case"GlimmerComment":case"HtmlComment":return!1;case"HtmlText":return!/^\s*$/.exec(e.chars);default:return!0}})).length),this.nonBlockChildren=t.filter((e=>!(e instanceof Kc.NamedBlock)))}}class nu extends ru{assertTemplate(e){if((0,Mc.isPresent)(this.namedBlocks))throw(0,Fc.generateSyntaxError)("Unexpected named block at the top-level of a template",this.loc);return this.block.builder.template(e,this.nonBlockChildren,this.block.loc(this.loc))}}class ou extends ru{assertBlock(e){if((0,Mc.isPresent)(this.namedBlocks))throw(0,Fc.generateSyntaxError)("Unexpected named block nested in a normal block",this.loc);return this.block.builder.block(e,this.nonBlockChildren,this.loc)}}class au extends ru{constructor(e,t,r,n){super(t,r,n),this.el=e}assertNamedBlock(e,t){if(this.el.base.selfClosing)throw(0,Fc.generateSyntaxError)("<:".concat(e.chars,"/> is not a valid named block: named blocks cannot be self-closing"),this.loc);if((0,Mc.isPresent)(this.namedBlocks))throw(0,Fc.generateSyntaxError)("Unexpected named block inside <:".concat(e.chars,"> named block: named blocks cannot contain nested named blocks"),this.loc);if(!(0,Gc.isLowerCase)(e.chars))throw(0,Fc.generateSyntaxError)("<:".concat(e.chars,"> is not a valid named block, and named blocks must begin with a lowercase letter"),this.loc);if(this.el.base.attrs.length>0||this.el.base.componentArgs.length>0||this.el.base.modifiers.length>0)throw(0,Fc.generateSyntaxError)("named block <:".concat(e.chars,"> cannot have attributes, arguments, or modifiers"),this.loc);let r=Uc.SpanList.range(this.nonBlockChildren,this.loc);return this.block.builder.namedBlock(e,this.block.builder.block(t,this.nonBlockChildren,r),this.loc)}assertElement(e,t){if(t)throw(0,Fc.generateSyntaxError)("Unexpected block params in <".concat(e,">: simple elements cannot have block params"),this.loc);if((0,Mc.isPresent)(this.namedBlocks)){let t=this.namedBlocks.map((e=>e.name));if(1===t.length)throw(0,Fc.generateSyntaxError)("Unexpected named block <:foo> inside <".concat(e.chars,"> HTML element"),this.loc);{let r=t.map((e=>"<:".concat(e.chars,">"))).join(", ");throw(0,Fc.generateSyntaxError)("Unexpected named blocks inside <".concat(e.chars,"> HTML element (").concat(r,")"),this.loc)}}return this.el.simple(e,this.nonBlockChildren,this.loc)}assertComponent(e,t,r){if((0,Mc.isPresent)(this.namedBlocks)&&this.hasSemanticContent)throw(0,Fc.generateSyntaxError)("Unexpected content inside <".concat(e,"> component invocation: when using named blocks, the tag cannot contain other content"),this.loc);if((0,Mc.isPresent)(this.namedBlocks)){if(r)throw(0,Fc.generateSyntaxError)("Unexpected block params list on <".concat(e,"> component invocation: when passing named blocks, the invocation tag cannot take block params"),this.loc);let t=new Set;for(let e of this.namedBlocks){let r=e.name.chars;if(t.has(r))throw(0,Fc.generateSyntaxError)("Component had two named blocks with the same name, `<:".concat(r,">`. Only one block with a given name may be passed"),this.loc);if("inverse"===r&&t.has("else")||"else"===r&&t.has("inverse"))throw(0,Fc.generateSyntaxError)("Component has both <:else> and <:inverse> block. <:inverse> is an alias for <:else>",this.loc);t.add(r)}return this.namedBlocks}return[this.block.builder.namedBlock(Vc.SourceSlice.synthetic("default"),this.block.builder.block(t,this.nonBlockChildren,this.loc),this.loc)]}}function iu(e){return"PathExpression"!==e.type&&"PathExpression"===e.path.type?iu(e.path):new jc.default({entityEncoding:"raw"}).print(e)}function su(e){if("PathExpression"!==e.type)return"PathExpression"===e.path.type?su(e.path):new jc.default({entityEncoding:"raw"}).print(e);switch(e.head.type){case"AtHead":case"VarHead":return e.head.name;case"ThisHead":return"this"}}var lu={};Object.defineProperty(lu,"__esModule",{value:!0}),lu.isKeyword=function(e){return e in cu},lu.KEYWORDS_TYPES=void 0;const cu={component:["Call","Append","Block"],debugger:["Append"],"each-in":["Block"],each:["Block"],"has-block-params":["Call","Append"],"has-block":["Call","Append"],helper:["Call","Append"],if:["Call","Append","Block"],"in-element":["Block"],let:["Block"],"link-to":["Append","Block"],log:["Call","Append"],modifier:["Call"],mount:["Append"],mut:["Call","Append"],outlet:["Append"],"query-params":["Call"],readonly:["Call","Append"],unbound:["Call","Append"],unless:["Call","Append","Block"],with:["Block"],yield:["Append"]};lu.KEYWORDS_TYPES=cu;var uu={};Object.defineProperty(uu,"__esModule",{value:!0}),uu.getTemplateLocals=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeHtmlElements:!1,includeKeywords:!1};const r=(0,pu.preprocess)(e),n=new Set,o=[];(0,du.default)(r,{Block:{enter(e){let{blockParams:t}=e;t.forEach((e=>{o.push(e)}))},exit(e){let{blockParams:t}=e;t.forEach((()=>{o.pop()}))}},ElementNode:{enter(e){e.blockParams.forEach((e=>{o.push(e)})),fu(n,e,o,t)},exit(e){let{blockParams:t}=e;t.forEach((()=>{o.pop()}))}},PathExpression(e){fu(n,e,o,t)}});let a=[];n.forEach((e=>a.push(e))),(null==t?void 0:t.includeKeywords)||(a=a.filter((e=>!(0,hu.isKeyword)(e))));return a};var hu=lu,pu=Ns,du=function(e){return e&&e.__esModule?e:{default:e}}(ul);function fu(e,t,r,n){const o=function(e,t,r){if("PathExpression"===e.type){if("AtHead"===e.head.type||"ThisHead"===e.head.type)return;const r=e.head.name;if(-1===t.indexOf(r))return r}else if("ElementNode"===e.type){const{tag:n}=e,o=n.charAt(0);if(":"===o||"@"===o)return;if(!r.includeHtmlElements&&-1===n.indexOf(".")&&n.toLowerCase()===n)return;if("this."===n.substr(0,5))return;if(-1!==t.indexOf(n))return;return n}}(t,r,n);(Array.isArray(o)?o:[o]).forEach((t=>{void 0!==t&&"@"!==t[0]&&e.add(t.split(".")[0])}))}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return t.Source}}),Object.defineProperty(e,"builders",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return i.normalize}}),Object.defineProperty(e,"SymbolTable",{enumerable:!0,get:function(){return s.SymbolTable}}),Object.defineProperty(e,"BlockSymbolTable",{enumerable:!0,get:function(){return s.BlockSymbolTable}}),Object.defineProperty(e,"ProgramSymbolTable",{enumerable:!0,get:function(){return s.ProgramSymbolTable}}),Object.defineProperty(e,"generateSyntaxError",{enumerable:!0,get:function(){return l.generateSyntaxError}}),Object.defineProperty(e,"preprocess",{enumerable:!0,get:function(){return c.preprocess}}),Object.defineProperty(e,"print",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"sortByLoc",{enumerable:!0,get:function(){return h.sortByLoc}}),Object.defineProperty(e,"Walker",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"cannotRemoveNode",{enumerable:!0,get:function(){return f.cannotRemoveNode}}),Object.defineProperty(e,"cannotReplaceNode",{enumerable:!0,get:function(){return f.cannotReplaceNode}}),Object.defineProperty(e,"WalkerPath",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return g.isKeyword}}),Object.defineProperty(e,"KEYWORDS_TYPES",{enumerable:!0,get:function(){return g.KEYWORDS_TYPES}}),Object.defineProperty(e,"getTemplateLocals",{enumerable:!0,get:function(){return b.getTemplateLocals}}),Object.defineProperty(e,"SourceSlice",{enumerable:!0,get:function(){return y.SourceSlice}}),Object.defineProperty(e,"SourceSpan",{enumerable:!0,get:function(){return v.SourceSpan}}),Object.defineProperty(e,"SpanList",{enumerable:!0,get:function(){return S.SpanList}}),Object.defineProperty(e,"maybeLoc",{enumerable:!0,get:function(){return S.maybeLoc}}),Object.defineProperty(e,"loc",{enumerable:!0,get:function(){return S.loc}}),Object.defineProperty(e,"hasSpan",{enumerable:!0,get:function(){return S.hasSpan}}),Object.defineProperty(e,"node",{enumerable:!0,get:function(){return k.node}}),e.ASTv2=e.AST=e.ASTv1=void 0;var t=a,r=P(Te),n=E(Ke);e.ASTv1=n,e.AST=n;var o=E(We);e.ASTv2=o;var i=er,s=yc,l=cl,c=Ns,u=P(sl),h=bs,p=P(_l),d=P(ul),f=fl,m=P(bl),g=lu,b=uu,y=$,v=I,S=bt,k=tt;function w(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return w=function(){return e},e}function E(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=w();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function P(e){return e&&e.__esModule?e:{default:e}}}(o);const mu=t.default,gu=r,{locStart:bu,locEnd:yu}=n;function vu(){return{name:"addBackslash",visitor:{TextNode(e){e.chars=e.chars.replace(/\\/,"\\\\")}}}}function Su(e){const t=new mu(e),r=e=>{let{line:r,column:n}=e;return t.indexForLocation({line:r-1,column:n})};return()=>({name:"addOffset",visitor:{All(e){const{start:t,end:n}=e.loc;t.offset=r(t),n.offset=r(n)}}})}var ku={parsers:{glimmer:{parse:function(e){const{preprocess:t}=o;let r;try{r=t(e,{mode:"codemod",plugins:{ast:[vu,Su(e)]}})}catch(e){const t=function(e){const{location:t,hash:r}=e;if(t){const{start:e,end:r}=t;return"number"!=typeof r.line?{start:e}:t}if(r){const{loc:{last_line:e,last_column:t}}=r;return{start:{line:e,column:t+1}}}}(e);if(t)throw gu(e.message,t);throw e}return r},astFormat:"glimmer",locStart:bu,locEnd:yu}}};return ku}));
|