parser-glimmer.js 178 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946
  1. "use strict";
  2. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  4. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  5. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  7. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  8. function _interopDefault(t) {
  9. return t && "object" == (typeof t === "undefined" ? "undefined" : _typeof(t)) && "default" in t ? t.default : t;
  10. }var fs = _interopDefault(require("fs"));function createError(t, e) {
  11. var r = new SyntaxError(t + " (" + e.start.line + ":" + e.start.column + ")");return r.loc = e, r;
  12. }var parserCreateError = createError;function isCall(t) {
  13. return "SubExpression" === t.type || "MustacheStatement" === t.type && "PathExpression" === t.path.type;
  14. }function isLiteral(t) {
  15. return !("object" != (typeof t === "undefined" ? "undefined" : _typeof(t)) || !t.type.match(/Literal$/));
  16. }var nodes = Object.freeze({ isCall: isCall, isLiteral: isLiteral });function buildMustache(t, e, r, a, i) {
  17. return isLiteral(t) || (t = buildPath(t)), { type: "MustacheStatement", path: t, params: e || [], hash: r || buildHash([]), escaped: !a, loc: buildLoc(i || null) };
  18. }function buildBlock(t, e, r, a, i, n) {
  19. return { type: "BlockStatement", path: buildPath(t), params: e || [], hash: r || buildHash([]), program: a || null, inverse: i || null, loc: buildLoc(n || null) };
  20. }function buildElementModifier(t, e, r, a) {
  21. return { type: "ElementModifierStatement", path: buildPath(t), params: e || [], hash: r || buildHash([]), loc: buildLoc(a || null) };
  22. }function buildPartial(t, e, r, a, i) {
  23. return { type: "PartialStatement", name: t, params: e || [], hash: r || buildHash([]), indent: a || "", strip: { open: !1, close: !1 }, loc: buildLoc(i || null) };
  24. }function buildComment(t, e) {
  25. return { type: "CommentStatement", value: t, loc: buildLoc(e || null) };
  26. }function buildMustacheComment(t, e) {
  27. return { type: "MustacheCommentStatement", value: t, loc: buildLoc(e || null) };
  28. }function buildConcat(t, e) {
  29. return { type: "ConcatStatement", parts: t || [], loc: buildLoc(e || null) };
  30. }function buildElement(t, e, r, a, i, n) {
  31. return Array.isArray(i) || (n = i, i = []), { type: "ElementNode", tag: t || "", attributes: e || [], blockParams: [], modifiers: r || [], comments: i || [], children: a || [], loc: buildLoc(n || null) };
  32. }function buildAttr(t, e, r) {
  33. return { type: "AttrNode", name: t, value: e, loc: buildLoc(r || null) };
  34. }function buildText(t, e) {
  35. return { type: "TextNode", chars: t || "", loc: buildLoc(e || null) };
  36. }function buildSexpr(t, e, r, a) {
  37. return { type: "SubExpression", path: buildPath(t), params: e || [], hash: r || buildHash([]), loc: buildLoc(a || null) };
  38. }function buildPath(t, e) {
  39. if ("string" != typeof t) return t;var r = t.split("."),
  40. a = !1;return "this" === r[0] && (a = !0, r = r.slice(1)), { type: "PathExpression", original: t, this: a, parts: r, data: !1, loc: buildLoc(e || null) };
  41. }function buildLiteral(t, e, r) {
  42. return { type: t, value: e, original: e, loc: buildLoc(r || null) };
  43. }function buildHash(t, e) {
  44. return { type: "Hash", pairs: t || [], loc: buildLoc(e || null) };
  45. }function buildPair(t, e, r) {
  46. return { type: "HashPair", key: t, value: e, loc: buildLoc(r || null) };
  47. }function buildProgram(t, e, r) {
  48. return { type: "Program", body: t || [], blockParams: e || [], loc: buildLoc(r || null) };
  49. }function buildSource(t) {
  50. return t || null;
  51. }function buildPosition(t, e) {
  52. return { line: t, column: e };
  53. }var SYNTHETIC = { source: "(synthetic)", start: { line: 1, column: 0 }, end: { line: 1, column: 0 } };function buildLoc() {
  54. for (var _len = arguments.length, t = Array(_len), _key = 0; _key < _len; _key++) {
  55. t[_key] = arguments[_key];
  56. }
  57. if (1 === t.length) {
  58. var e = t[0];return e && "object" == (typeof e === "undefined" ? "undefined" : _typeof(e)) ? { source: buildSource(e.source), start: buildPosition(e.start.line, e.start.column), end: buildPosition(e.end.line, e.end.column) } : SYNTHETIC;
  59. }{
  60. var _e = t[0],
  61. r = t[1],
  62. a = t[2],
  63. i = t[3],
  64. n = t[4];
  65. return { source: buildSource(n), start: buildPosition(_e, r), end: buildPosition(a, i) };
  66. }
  67. }var b = { mustache: buildMustache, block: buildBlock, partial: buildPartial, comment: buildComment, mustacheComment: buildMustacheComment, element: buildElement, elementModifier: buildElementModifier, attr: buildAttr, text: buildText, sexpr: buildSexpr, path: buildPath, concat: buildConcat, hash: buildHash, pair: buildPair, literal: buildLiteral, program: buildProgram, loc: buildLoc, pos: buildPosition, string: literal("StringLiteral"), boolean: literal("BooleanLiteral"), number: literal("NumberLiteral"), undefined: function undefined() {
  68. return buildLiteral("UndefinedLiteral", void 0);
  69. }, null: function _null() {
  70. return buildLiteral("NullLiteral", null);
  71. } };function literal(t) {
  72. return function (e) {
  73. return buildLiteral(t, e);
  74. };
  75. }var SyntaxError$1 = function () {
  76. function t(t, e) {
  77. var r = Error.call(this, t);this.message = t, this.stack = r.stack, this.location = e;
  78. }return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
  79. }();var ID_INVERSE_PATTERN = /[!"#%-,\.\/;->@\[-\^`\{-~]/;function parseElementBlockParams(t) {
  80. var e = parseBlockParams(t);e && (t.blockParams = e);
  81. }function parseBlockParams(t) {
  82. var e = t.attributes.length,
  83. r = [];for (var _a = 0; _a < e; _a++) {
  84. r.push(t.attributes[_a].name);
  85. }var a = r.indexOf("as");if (-1 !== a && e > a && "|" === r[a + 1].charAt(0)) {
  86. var i = r.slice(a).join(" ");if ("|" !== i.charAt(i.length - 1) || 2 !== i.match(/\|/g).length) throw new SyntaxError$1("Invalid block parameters syntax: '" + i + "'", t.loc);var n = [];for (var s = a + 1; s < e; s++) {
  87. var _e2 = r[s].replace(/\|/g, "");if ("" !== _e2) {
  88. if (ID_INVERSE_PATTERN.test(_e2)) throw new SyntaxError$1("Invalid identifier for block parameters: '" + _e2 + "' in '" + i + "'", t.loc);n.push(_e2);
  89. }
  90. }if (0 === n.length) throw new SyntaxError$1("Cannot use zero block parameters: '" + i + "'", t.loc);return t.attributes = t.attributes.slice(0, a), n;
  91. }return null;
  92. }function childrenFor(t) {
  93. switch (t.type) {case "Program":
  94. return t.body;case "ElementNode":
  95. return t.children;}
  96. }function appendChild(t, e) {
  97. childrenFor(t).push(e);
  98. }function isLiteral$1(t) {
  99. return "StringLiteral" === t.type || "BooleanLiteral" === t.type || "NumberLiteral" === t.type || "NullLiteral" === t.type || "UndefinedLiteral" === t.type;
  100. }function printLiteral(t) {
  101. return "UndefinedLiteral" === t.type ? "undefined" : JSON.stringify(t.value);
  102. }var namedCharRefs = { Aacute: "Á", aacute: "á", Abreve: "Ă", abreve: "ă", ac: "∾", acd: "∿", acE: "∾̳", Acirc: "Â", acirc: "â", acute: "´", Acy: "А", acy: "а", AElig: "Æ", aelig: "æ", af: "⁡", Afr: "𝔄", afr: "𝔞", Agrave: "À", agrave: "à", alefsym: "ℵ", aleph: "ℵ", Alpha: "Α", alpha: "α", Amacr: "Ā", amacr: "ā", amalg: "⨿", AMP: "&", amp: "&", And: "⩓", and: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsd: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", Aogon: "Ą", aogon: "ą", Aopf: "𝔸", aopf: "𝕒", ap: "≈", apacir: "⩯", apE: "⩰", ape: "≊", apid: "≋", apos: "'", ApplyFunction: "⁡", approx: "≈", approxeq: "≊", Aring: "Å", aring: "å", Ascr: "𝒜", ascr: "𝒶", Assign: "≔", ast: "*", asymp: "≈", asympeq: "≍", Atilde: "Ã", atilde: "ã", Auml: "Ä", auml: "ä", awconint: "∳", awint: "⨑", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", Backslash: "∖", Barv: "⫧", barvee: "⊽", Barwed: "⌆", barwed: "⌅", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", Bcy: "Б", bcy: "б", bdquo: "„", becaus: "∵", Because: "∵", because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", Bernoullis: "ℬ", Beta: "Β", beta: "β", beth: "ℶ", between: "≬", Bfr: "𝔅", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bNot: "⫭", bnot: "⌐", Bopf: "𝔹", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxbox: "⧉", boxDL: "╗", boxDl: "╖", boxdL: "╕", boxdl: "┐", boxDR: "╔", boxDr: "╓", boxdR: "╒", boxdr: "┌", boxH: "═", boxh: "─", boxHD: "╦", boxHd: "╤", boxhD: "╥", boxhd: "┬", boxHU: "╩", boxHu: "╧", boxhU: "╨", boxhu: "┴", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxUL: "╝", boxUl: "╜", boxuL: "╛", boxul: "┘", boxUR: "╚", boxUr: "╙", boxuR: "╘", boxur: "└", boxV: "║", boxv: "│", boxVH: "╬", boxVh: "╫", boxvH: "╪", boxvh: "┼", boxVL: "╣", boxVl: "╢", boxvL: "╡", boxvl: "┤", boxVR: "╠", boxVr: "╟", boxvR: "╞", boxvr: "├", bprime: "‵", Breve: "˘", breve: "˘", brvbar: "¦", Bscr: "ℬ", bscr: "𝒷", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", Bumpeq: "≎", bumpeq: "≏", Cacute: "Ć", cacute: "ć", Cap: "⋒", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", CapitalDifferentialD: "ⅅ", caps: "∩︀", caret: "⁁", caron: "ˇ", Cayleys: "ℭ", ccaps: "⩍", Ccaron: "Č", ccaron: "č", Ccedil: "Ç", ccedil: "ç", Ccirc: "Ĉ", ccirc: "ĉ", Cconint: "∰", ccups: "⩌", ccupssm: "⩐", Cdot: "Ċ", cdot: "ċ", cedil: "¸", Cedilla: "¸", cemptyv: "⦲", cent: "¢", CenterDot: "·", centerdot: "·", Cfr: "ℭ", cfr: "𝔠", CHcy: "Ч", chcy: "ч", check: "✓", checkmark: "✓", Chi: "Χ", chi: "χ", cir: "○", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", CircleDot: "⊙", circledR: "®", circledS: "Ⓢ", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", cirE: "⧃", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", clubs: "♣", clubsuit: "♣", Colon: "∷", colon: ":", Colone: "⩴", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", Congruent: "≡", Conint: "∯", conint: "∮", ContourIntegral: "∮", Copf: "ℂ", copf: "𝕔", coprod: "∐", Coproduct: "∐", COPY: "©", copy: "©", copysr: "℗", CounterClockwiseContourIntegral: "∳", crarr: "↵", Cross: "⨯", cross: "✗", Cscr: "𝒞", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", Cup: "⋓", cup: "∪", cupbrcap: "⩈", CupCap: "≍", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", Dagger: "‡", dagger: "†", daleth: "ℸ", Darr: "↡", dArr: "⇓", darr: "↓", dash: "‐", Dashv: "⫤", dashv: "⊣", dbkarow: "⤏", dblac: "˝", Dcaron: "Ď", dcaron: "ď", Dcy: "Д", dcy: "д", DD: "ⅅ", dd: "ⅆ", ddagger: "‡", ddarr: "⇊", DDotrahd: "⤑", ddotseq: "⩷", deg: "°", Del: "∇", Delta: "Δ", delta: "δ", demptyv: "⦱", dfisht: "⥿", Dfr: "𝔇", dfr: "𝔡", dHar: "⥥", dharl: "⇃", dharr: "⇂", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", diam: "⋄", Diamond: "⋄", diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", DifferentialD: "ⅆ", digamma: "ϝ", disin: "⋲", div: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", DJcy: "Ђ", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", Dopf: "𝔻", dopf: "𝕕", Dot: "¨", dot: "˙", DotDot: "⃜", doteq: "≐", doteqdot: "≑", DotEqual: "≐", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrow: "↓", Downarrow: "⇓", downarrow: "↓", DownArrowBar: "⤓", DownArrowUpArrow: "⇵", DownBreve: "̑", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVector: "↽", DownLeftVectorBar: "⥖", DownRightTeeVector: "⥟", DownRightVector: "⇁", DownRightVectorBar: "⥗", DownTee: "⊤", DownTeeArrow: "↧", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", Dscr: "𝒟", dscr: "𝒹", DScy: "Ѕ", dscy: "ѕ", dsol: "⧶", Dstrok: "Đ", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", DZcy: "Џ", dzcy: "џ", dzigrarr: "⟿", Eacute: "É", eacute: "é", easter: "⩮", Ecaron: "Ě", ecaron: "ě", ecir: "≖", Ecirc: "Ê", ecirc: "ê", ecolon: "≕", Ecy: "Э", ecy: "э", eDDot: "⩷", Edot: "Ė", eDot: "≑", edot: "ė", ee: "ⅇ", efDot: "≒", Efr: "𝔈", efr: "𝔢", eg: "⪚", Egrave: "È", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", Element: "∈", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", Emacr: "Ē", emacr: "ē", empty: "∅", emptyset: "∅", EmptySmallSquare: "◻", emptyv: "∅", EmptyVerySmallSquare: "▫", emsp: " ", emsp13: " ", emsp14: " ", ENG: "Ŋ", eng: "ŋ", ensp: " ", Eogon: "Ę", eogon: "ę", Eopf: "𝔼", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", Epsilon: "Ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", Equal: "⩵", equals: "=", EqualTilde: "≂", equest: "≟", Equilibrium: "⇌", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erarr: "⥱", erDot: "≓", Escr: "ℰ", escr: "ℯ", esdot: "≐", Esim: "⩳", esim: "≂", Eta: "Η", eta: "η", ETH: "Ð", eth: "ð", Euml: "Ë", euml: "ë", euro: "€", excl: "!", exist: "∃", Exists: "∃", expectation: "ℰ", ExponentialE: "ⅇ", exponentiale: "ⅇ", fallingdotseq: "≒", Fcy: "Ф", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", Ffr: "𝔉", ffr: "𝔣", filig: "fi", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", Fopf: "𝔽", fopf: "𝕗", ForAll: "∀", forall: "∀", fork: "⋔", forkv: "⫙", Fouriertrf: "ℱ", fpartint: "⨍", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", Fscr: "ℱ", fscr: "𝒻", gacute: "ǵ", Gamma: "Γ", gamma: "γ", Gammad: "Ϝ", gammad: "ϝ", gap: "⪆", Gbreve: "Ğ", gbreve: "ğ", Gcedil: "Ģ", Gcirc: "Ĝ", gcirc: "ĝ", Gcy: "Г", gcy: "г", Gdot: "Ġ", gdot: "ġ", gE: "≧", ge: "≥", gEl: "⪌", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", ges: "⩾", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", Gfr: "𝔊", gfr: "𝔤", Gg: "⋙", gg: "≫", ggg: "⋙", gimel: "ℷ", GJcy: "Ѓ", gjcy: "ѓ", gl: "≷", gla: "⪥", glE: "⪒", glj: "⪤", gnap: "⪊", gnapprox: "⪊", gnE: "≩", gne: "⪈", gneq: "⪈", gneqq: "≩", gnsim: "⋧", Gopf: "𝔾", gopf: "𝕘", grave: "`", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", GT: ">", Gt: "≫", gt: ">", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", Hacek: "ˇ", hairsp: " ", half: "½", hamilt: "ℋ", HARDcy: "Ъ", hardcy: "ъ", hArr: "⇔", harr: "↔", harrcir: "⥈", harrw: "↭", Hat: "^", hbar: "ℏ", Hcirc: "Ĥ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", Hfr: "ℌ", hfr: "𝔥", HilbertSpace: "ℋ", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", Hopf: "ℍ", hopf: "𝕙", horbar: "―", HorizontalLine: "─", Hscr: "ℋ", hscr: "𝒽", hslash: "ℏ", Hstrok: "Ħ", hstrok: "ħ", HumpDownHump: "≎", HumpEqual: "≏", hybull: "⁃", hyphen: "‐", Iacute: "Í", iacute: "í", ic: "⁣", Icirc: "Î", icirc: "î", Icy: "И", icy: "и", Idot: "İ", IEcy: "Е", iecy: "е", iexcl: "¡", iff: "⇔", Ifr: "ℑ", ifr: "𝔦", Igrave: "Ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", IJlig: "IJ", ijlig: "ij", Im: "ℑ", Imacr: "Ī", imacr: "ī", image: "ℑ", ImaginaryI: "ⅈ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", imof: "⊷", imped: "Ƶ", Implies: "⇒", in: "∈", incare: "℅", infin: "∞", infintie: "⧝", inodot: "ı", Int: "∬", int: "∫", intcal: "⊺", integers: "ℤ", Integral: "∫", intercal: "⊺", Intersection: "⋂", intlarhk: "⨗", intprod: "⨼", InvisibleComma: "⁣", InvisibleTimes: "⁢", IOcy: "Ё", iocy: "ё", Iogon: "Į", iogon: "į", Iopf: "𝕀", iopf: "𝕚", Iota: "Ι", iota: "ι", iprod: "⨼", iquest: "¿", Iscr: "ℐ", iscr: "𝒾", isin: "∈", isindot: "⋵", isinE: "⋹", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "⁢", Itilde: "Ĩ", itilde: "ĩ", Iukcy: "І", iukcy: "і", Iuml: "Ï", iuml: "ï", Jcirc: "Ĵ", jcirc: "ĵ", Jcy: "Й", jcy: "й", Jfr: "𝔍", jfr: "𝔧", jmath: "ȷ", Jopf: "𝕁", jopf: "𝕛", Jscr: "𝒥", jscr: "𝒿", Jsercy: "Ј", jsercy: "ј", Jukcy: "Є", jukcy: "є", Kappa: "Κ", kappa: "κ", kappav: "ϰ", Kcedil: "Ķ", kcedil: "ķ", Kcy: "К", kcy: "к", Kfr: "𝔎", kfr: "𝔨", kgreen: "ĸ", KHcy: "Х", khcy: "х", KJcy: "Ќ", kjcy: "ќ", Kopf: "𝕂", kopf: "𝕜", Kscr: "𝒦", kscr: "𝓀", lAarr: "⇚", Lacute: "Ĺ", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", Lambda: "Λ", lambda: "λ", Lang: "⟪", lang: "⟨", langd: "⦑", langle: "⟨", lap: "⪅", Laplacetrf: "ℒ", laquo: "«", Larr: "↞", lArr: "⇐", larr: "←", larrb: "⇤", larrbfs: "⤟", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", lat: "⪫", lAtail: "⤛", latail: "⤙", late: "⪭", lates: "⪭︀", lBarr: "⤎", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", Lcaron: "Ľ", lcaron: "ľ", Lcedil: "Ļ", lcedil: "ļ", lceil: "⌈", lcub: "{", Lcy: "Л", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", lE: "≦", le: "≤", LeftAngleBracket: "⟨", LeftArrow: "←", Leftarrow: "⇐", leftarrow: "←", LeftArrowBar: "⇤", LeftArrowRightArrow: "⇆", leftarrowtail: "↢", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVector: "⇃", LeftDownVectorBar: "⥙", LeftFloor: "⌊", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", LeftRightArrow: "↔", Leftrightarrow: "⇔", leftrightarrow: "↔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", LeftRightVector: "⥎", LeftTee: "⊣", LeftTeeArrow: "↤", LeftTeeVector: "⥚", leftthreetimes: "⋋", LeftTriangle: "⊲", LeftTriangleBar: "⧏", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVector: "↿", LeftUpVectorBar: "⥘", LeftVector: "↼", LeftVectorBar: "⥒", lEg: "⪋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", les: "⩽", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", lessgtr: "≶", LessLess: "⪡", lesssim: "≲", LessSlantEqual: "⩽", LessTilde: "≲", lfisht: "⥼", lfloor: "⌊", Lfr: "𝔏", lfr: "𝔩", lg: "≶", lgE: "⪑", lHar: "⥢", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", LJcy: "Љ", ljcy: "љ", Ll: "⋘", ll: "≪", llarr: "⇇", llcorner: "⌞", Lleftarrow: "⇚", llhard: "⥫", lltri: "◺", Lmidot: "Ŀ", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnap: "⪉", lnapprox: "⪉", lnE: "≨", lne: "⪇", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", LongLeftArrow: "⟵", Longleftarrow: "⟸", longleftarrow: "⟵", LongLeftRightArrow: "⟷", Longleftrightarrow: "⟺", longleftrightarrow: "⟷", longmapsto: "⟼", LongRightArrow: "⟶", Longrightarrow: "⟹", longrightarrow: "⟶", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", Lopf: "𝕃", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", LowerLeftArrow: "↙", LowerRightArrow: "↘", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "‎", lrtri: "⊿", lsaquo: "‹", Lscr: "ℒ", lscr: "𝓁", Lsh: "↰", lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", Lstrok: "Ł", lstrok: "ł", LT: "<", Lt: "≪", lt: "<", ltcc: "⪦", ltcir: "⩹", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltri: "◃", ltrie: "⊴", ltrif: "◂", ltrPar: "⦖", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", macr: "¯", male: "♂", malt: "✠", maltese: "✠", Map: "⤅", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", Mcy: "М", mcy: "м", mdash: "—", mDDot: "∺", measuredangle: "∡", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", mfr: "𝔪", mho: "℧", micro: "µ", mid: "∣", midast: "*", midcir: "⫰", middot: "·", minus: "−", minusb: "⊟", minusd: "∸", minusdu: "⨪", MinusPlus: "∓", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", Mopf: "𝕄", mopf: "𝕞", mp: "∓", Mscr: "ℳ", mscr: "𝓂", mstpos: "∾", Mu: "Μ", mu: "μ", multimap: "⊸", mumap: "⊸", nabla: "∇", Nacute: "Ń", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natur: "♮", natural: "♮", naturals: "ℕ", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", Ncaron: "Ň", ncaron: "ň", Ncedil: "Ņ", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", Ncy: "Н", ncy: "н", ndash: "–", ne: "≠", nearhk: "⤤", neArr: "⇗", nearr: "↗", nearrow: "↗", nedot: "≐̸", NegativeMediumSpace: "​", NegativeThickSpace: "​", NegativeThinSpace: "​", NegativeVeryThinSpace: "​", nequiv: "≢", nesear: "⤨", nesim: "≂̸", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: "\n", nexist: "∄", nexists: "∄", Nfr: "𝔑", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", nGg: "⋙̸", ngsim: "≵", nGt: "≫⃒", ngt: "≯", ngtr: "≯", nGtv: "≫̸", nhArr: "⇎", nharr: "↮", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", NJcy: "Њ", njcy: "њ", nlArr: "⇍", nlarr: "↚", nldr: "‥", nlE: "≦̸", nle: "≰", nLeftarrow: "⇍", nleftarrow: "↚", nLeftrightarrow: "⇎", nleftrightarrow: "↮", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nLl: "⋘̸", nlsim: "≴", nLt: "≪⃒", nlt: "≮", nltri: "⋪", nltrie: "⋬", nLtv: "≪̸", nmid: "∤", NoBreak: "⁠", NonBreakingSpace: " ", Nopf: "ℕ", nopf: "𝕟", Not: "⫬", not: "¬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", notin: "∉", notindot: "⋵̸", notinE: "⋹̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", NotLeftTriangle: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangle: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", npar: "∦", nparallel: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", npre: "⪯̸", nprec: "⊀", npreceq: "⪯̸", nrArr: "⇏", nrarr: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nRightarrow: "⇏", nrightarrow: "↛", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", Nscr: "𝒩", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", Ntilde: "Ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", Nu: "Ν", nu: "ν", num: "#", numero: "№", numsp: " ", nvap: "≍⃒", nVDash: "⊯", nVdash: "⊮", nvDash: "⊭", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvHarr: "⤄", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwarhk: "⤣", nwArr: "⇖", nwarr: "↖", nwarrow: "↖", nwnear: "⤧", Oacute: "Ó", oacute: "ó", oast: "⊛", ocir: "⊚", Ocirc: "Ô", ocirc: "ô", Ocy: "О", ocy: "о", odash: "⊝", Odblac: "Ő", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", OElig: "Œ", oelig: "œ", ofcir: "⦿", Ofr: "𝔒", ofr: "𝔬", ogon: "˛", Ograve: "Ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", Omacr: "Ō", omacr: "ō", Omega: "Ω", omega: "ω", Omicron: "Ο", omicron: "ο", omid: "⦶", ominus: "⊖", Oopf: "𝕆", oopf: "𝕠", opar: "⦷", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", operp: "⦹", oplus: "⊕", Or: "⩔", or: "∨", orarr: "↻", ord: "⩝", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oS: "Ⓢ", Oscr: "𝒪", oscr: "ℴ", Oslash: "Ø", oslash: "ø", osol: "⊘", Otilde: "Õ", otilde: "õ", Otimes: "⨷", otimes: "⊗", otimesas: "⨶", Ouml: "Ö", ouml: "ö", ovbar: "⌽", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", par: "∥", para: "¶", parallel: "∥", parsim: "⫳", parsl: "⫽", part: "∂", PartialD: "∂", Pcy: "П", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", Pfr: "𝔓", pfr: "𝔭", Phi: "Φ", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", Pi: "Π", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plus: "+", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plusdo: "∔", plusdu: "⨥", pluse: "⩲", PlusMinus: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", Poincareplane: "ℌ", pointint: "⨕", Popf: "ℙ", popf: "𝕡", pound: "£", Pr: "⪻", pr: "≺", prap: "⪷", prcue: "≼", prE: "⪳", pre: "⪯", prec: "≺", precapprox: "⪷", preccurlyeq: "≼", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", precsim: "≾", Prime: "″", prime: "′", primes: "ℙ", prnap: "⪹", prnE: "⪵", prnsim: "⋨", prod: "∏", Product: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", Proportion: "∷", Proportional: "∝", propto: "∝", prsim: "≾", prurel: "⊰", Pscr: "𝒫", pscr: "𝓅", Psi: "Ψ", psi: "ψ", puncsp: " ", Qfr: "𝔔", qfr: "𝔮", qint: "⨌", Qopf: "ℚ", qopf: "𝕢", qprime: "⁗", Qscr: "𝒬", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", QUOT: '"', quot: '"', rAarr: "⇛", race: "∽̱", Racute: "Ŕ", racute: "ŕ", radic: "√", raemptyv: "⦳", Rang: "⟫", rang: "⟩", rangd: "⦒", range: "⦥", rangle: "⟩", raquo: "»", Rarr: "↠", rArr: "⇒", rarr: "→", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", Rarrtl: "⤖", rarrtl: "↣", rarrw: "↝", rAtail: "⤜", ratail: "⤚", ratio: "∶", rationals: "ℚ", RBarr: "⤐", rBarr: "⤏", rbarr: "⤍", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", Rcaron: "Ř", rcaron: "ř", Rcedil: "Ŗ", rcedil: "ŗ", rceil: "⌉", rcub: "}", Rcy: "Р", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", Re: "ℜ", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", rect: "▭", REG: "®", reg: "®", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", rfisht: "⥽", rfloor: "⌋", Rfr: "ℜ", rfr: "𝔯", rHar: "⥤", rhard: "⇁", rharu: "⇀", rharul: "⥬", Rho: "Ρ", rho: "ρ", rhov: "ϱ", RightAngleBracket: "⟩", RightArrow: "→", Rightarrow: "⇒", rightarrow: "→", RightArrowBar: "⇥", RightArrowLeftArrow: "⇄", rightarrowtail: "↣", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", RightTee: "⊢", RightTeeArrow: "↦", RightTeeVector: "⥛", rightthreetimes: "⋌", RightTriangle: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", RightVectorBar: "⥓", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "‏", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", Ropf: "ℝ", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", RoundImplies: "⥰", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", Rrightarrow: "⇛", rsaquo: "›", Rscr: "ℛ", rscr: "𝓇", Rsh: "↱", rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", RuleDelayed: "⧴", ruluhar: "⥨", rx: "℞", Sacute: "Ś", sacute: "ś", sbquo: "‚", Sc: "⪼", sc: "≻", scap: "⪸", Scaron: "Š", scaron: "š", sccue: "≽", scE: "⪴", sce: "⪰", Scedil: "Ş", scedil: "ş", Scirc: "Ŝ", scirc: "ŝ", scnap: "⪺", scnE: "⪶", scnsim: "⋩", scpolint: "⨓", scsim: "≿", Scy: "С", scy: "с", sdot: "⋅", sdotb: "⊡", sdote: "⩦", searhk: "⤥", seArr: "⇘", searr: "↘", searrow: "↘", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", Sfr: "𝔖", sfr: "𝔰", sfrown: "⌢", sharp: "♯", SHCHcy: "Щ", shchcy: "щ", SHcy: "Ш", shcy: "ш", ShortDownArrow: "↓", ShortLeftArrow: "←", shortmid: "∣", shortparallel: "∥", ShortRightArrow: "→", ShortUpArrow: "↑", shy: "­", Sigma: "Σ", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", SmallCircle: "∘", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", SOFTcy: "Ь", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", Sopf: "𝕊", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", Sqrt: "√", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", squ: "□", Square: "□", square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", squarf: "▪", squf: "▪", srarr: "→", Sscr: "𝒮", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", Star: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", Sub: "⋐", sub: "⊂", subdot: "⪽", subE: "⫅", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", Subset: "⋐", subset: "⊂", subseteq: "⊆", subseteqq: "⫅", SubsetEqual: "⊆", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succ: "≻", succapprox: "⪸", succcurlyeq: "≽", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", SuchThat: "∋", Sum: "∑", sum: "∑", sung: "♪", Sup: "⋑", sup: "⊃", sup1: "¹", sup2: "²", sup3: "³", supdot: "⪾", supdsub: "⫘", supE: "⫆", supe: "⊇", supedot: "⫄", Superset: "⊃", SupersetEqual: "⊇", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", Supset: "⋑", supset: "⊃", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swarhk: "⤦", swArr: "⇙", swarr: "↙", swarrow: "↙", swnwar: "⤪", szlig: "ß", Tab: "\t", target: "⌖", Tau: "Τ", tau: "τ", tbrk: "⎴", Tcaron: "Ť", tcaron: "ť", Tcedil: "Ţ", tcedil: "ţ", Tcy: "Т", tcy: "т", tdot: "⃛", telrec: "⌕", Tfr: "𝔗", tfr: "𝔱", there4: "∴", Therefore: "∴", therefore: "∴", Theta: "Θ", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", ThickSpace: "  ", thinsp: " ", ThinSpace: " ", thkap: "≈", thksim: "∼", THORN: "Þ", thorn: "þ", Tilde: "∼", tilde: "˜", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", times: "×", timesb: "⊠", timesbar: "⨱", timesd: "⨰", tint: "∭", toea: "⤨", top: "⊤", topbot: "⌶", topcir: "⫱", Topf: "𝕋", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", TRADE: "™", trade: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", TripleDot: "⃛", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", Tscr: "𝒯", tscr: "𝓉", TScy: "Ц", tscy: "ц", TSHcy: "Ћ", tshcy: "ћ", Tstrok: "Ŧ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", Uacute: "Ú", uacute: "ú", Uarr: "↟", uArr: "⇑", uarr: "↑", Uarrocir: "⥉", Ubrcy: "Ў", ubrcy: "ў", Ubreve: "Ŭ", ubreve: "ŭ", Ucirc: "Û", ucirc: "û", Ucy: "У", ucy: "у", udarr: "⇅", Udblac: "Ű", udblac: "ű", udhar: "⥮", ufisht: "⥾", Ufr: "𝔘", ufr: "𝔲", Ugrave: "Ù", ugrave: "ù", uHar: "⥣", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", Umacr: "Ū", umacr: "ū", uml: "¨", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", uogon: "ų", Uopf: "𝕌", uopf: "𝕦", UpArrow: "↑", Uparrow: "⇑", uparrow: "↑", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", UpDownArrow: "↕", Updownarrow: "⇕", updownarrow: "↕", UpEquilibrium: "⥮", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", UpperLeftArrow: "↖", UpperRightArrow: "↗", Upsi: "ϒ", upsi: "υ", upsih: "ϒ", Upsilon: "Υ", upsilon: "υ", UpTee: "⊥", UpTeeArrow: "↥", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", Uring: "Ů", uring: "ů", urtri: "◹", Uscr: "𝒰", uscr: "𝓊", utdot: "⋰", Utilde: "Ũ", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", Uuml: "Ü", uuml: "ü", uwangle: "⦧", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", vArr: "⇕", varr: "↕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", Vbar: "⫫", vBar: "⫨", vBarv: "⫩", Vcy: "В", vcy: "в", VDash: "⊫", Vdash: "⊩", vDash: "⊨", vdash: "⊢", Vdashl: "⫦", Vee: "⋁", vee: "∨", veebar: "⊻", veeeq: "≚", vellip: "⋮", Verbar: "‖", verbar: "|", Vert: "‖", vert: "|", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", Vopf: "𝕍", vopf: "𝕧", vprop: "∝", vrtri: "⊳", Vscr: "𝒱", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", Vvdash: "⊪", vzigzag: "⦚", Wcirc: "Ŵ", wcirc: "ŵ", wedbar: "⩟", Wedge: "⋀", wedge: "∧", wedgeq: "≙", weierp: "℘", Wfr: "𝔚", wfr: "𝔴", Wopf: "𝕎", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", Wscr: "𝒲", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", Xfr: "𝔛", xfr: "𝔵", xhArr: "⟺", xharr: "⟷", Xi: "Ξ", xi: "ξ", xlArr: "⟸", xlarr: "⟵", xmap: "⟼", xnis: "⋻", xodot: "⨀", Xopf: "𝕏", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrArr: "⟹", xrarr: "⟶", Xscr: "𝒳", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", Yacute: "Ý", yacute: "ý", YAcy: "Я", yacy: "я", Ycirc: "Ŷ", ycirc: "ŷ", Ycy: "Ы", ycy: "ы", yen: "¥", Yfr: "𝔜", yfr: "𝔶", YIcy: "Ї", yicy: "ї", Yopf: "𝕐", yopf: "𝕪", Yscr: "𝒴", yscr: "𝓎", YUcy: "Ю", yucy: "ю", Yuml: "Ÿ", yuml: "ÿ", Zacute: "Ź", zacute: "ź", Zcaron: "Ž", zcaron: "ž", Zcy: "З", zcy: "з", Zdot: "Ż", zdot: "ż", zeetrf: "ℨ", ZeroWidthSpace: "​", Zeta: "Ζ", zeta: "ζ", Zfr: "ℨ", zfr: "𝔷", ZHcy: "Ж", zhcy: "ж", zigrarr: "⇝", Zopf: "ℤ", zopf: "𝕫", Zscr: "𝒵", zscr: "𝓏", zwj: "‍", zwnj: "‌" },
  103. HEXCHARCODE = /^#[xX]([A-Fa-f0-9]+)$/,
  104. CHARCODE = /^#([0-9]+)$/,
  105. NAMED = /^([A-Za-z0-9]+)$/,
  106. EntityParser = function () {
  107. function t(t) {
  108. this.named = t;
  109. }return t.prototype.parse = function (t) {
  110. if (t) {
  111. var e = t.match(HEXCHARCODE);return e ? String.fromCharCode(parseInt(e[1], 16)) : (e = t.match(CHARCODE)) ? String.fromCharCode(parseInt(e[1], 10)) : (e = t.match(NAMED)) ? this.named[e[1]] : void 0;
  112. }
  113. }, t;
  114. }(),
  115. WSP = /[\t\n\f ]/,
  116. ALPHA = /[A-Za-z]/,
  117. CRLF = /\r\n?/g;function isSpace(t) {
  118. return WSP.test(t);
  119. }function isAlpha(t) {
  120. return ALPHA.test(t);
  121. }function preprocessInput(t) {
  122. return t.replace(CRLF, "\n");
  123. }function unwrap(t, e) {
  124. if (!t) throw new Error((e || "value") + " was null");return t;
  125. }var EventedTokenizer = function () {
  126. function t(t, e) {
  127. this.delegate = t, this.entityParser = e, this.state = null, this.input = null, this.index = -1, this.tagLine = -1, this.tagColumn = -1, this.line = -1, this.column = -1, this.states = { beforeData: function beforeData() {
  128. "<" === this.peek() ? (this.state = "tagOpen", this.markTagStart(), this.consume()) : (this.state = "data", this.delegate.beginData());
  129. }, data: function data() {
  130. var t = this.peek();"<" === t ? (this.delegate.finishData(), this.state = "tagOpen", this.markTagStart(), this.consume()) : "&" === t ? (this.consume(), this.delegate.appendToData(this.consumeCharRef() || "&")) : (this.consume(), this.delegate.appendToData(t));
  131. }, tagOpen: function tagOpen() {
  132. var t = this.consume();"!" === t ? this.state = "markupDeclaration" : "/" === t ? this.state = "endTagOpen" : isAlpha(t) && (this.state = "tagName", this.delegate.beginStartTag(), this.delegate.appendToTagName(t.toLowerCase()));
  133. }, markupDeclaration: function markupDeclaration() {
  134. "-" === this.consume() && "-" === this.input.charAt(this.index) && (this.consume(), this.state = "commentStart", this.delegate.beginComment());
  135. }, commentStart: function commentStart() {
  136. var t = this.consume();"-" === t ? this.state = "commentStartDash" : ">" === t ? (this.delegate.finishComment(), this.state = "beforeData") : (this.delegate.appendToCommentData(t), this.state = "comment");
  137. }, commentStartDash: function commentStartDash() {
  138. var t = this.consume();"-" === t ? this.state = "commentEnd" : ">" === t ? (this.delegate.finishComment(), this.state = "beforeData") : (this.delegate.appendToCommentData("-"), this.state = "comment");
  139. }, comment: function comment() {
  140. var t = this.consume();"-" === t ? this.state = "commentEndDash" : this.delegate.appendToCommentData(t);
  141. }, commentEndDash: function commentEndDash() {
  142. var t = this.consume();"-" === t ? this.state = "commentEnd" : (this.delegate.appendToCommentData("-" + t), this.state = "comment");
  143. }, commentEnd: function commentEnd() {
  144. var t = this.consume();">" === t ? (this.delegate.finishComment(), this.state = "beforeData") : (this.delegate.appendToCommentData("--" + t), this.state = "comment");
  145. }, tagName: function tagName() {
  146. var t = this.consume();isSpace(t) ? this.state = "beforeAttributeName" : "/" === t ? this.state = "selfClosingStartTag" : ">" === t ? (this.delegate.finishTag(), this.state = "beforeData") : this.delegate.appendToTagName(t);
  147. }, beforeAttributeName: function beforeAttributeName() {
  148. var t = this.peek();isSpace(t) ? this.consume() : "/" === t ? (this.state = "selfClosingStartTag", this.consume()) : ">" === t ? (this.consume(), this.delegate.finishTag(), this.state = "beforeData") : "=" === t ? (this.delegate.reportSyntaxError("attribute name cannot start with equals sign"), this.state = "attributeName", this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(t)) : (this.state = "attributeName", this.delegate.beginAttribute());
  149. }, attributeName: function attributeName() {
  150. var t = this.peek();isSpace(t) ? (this.state = "afterAttributeName", this.consume()) : "/" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.state = "selfClosingStartTag") : "=" === t ? (this.state = "beforeAttributeValue", this.consume()) : ">" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : '"' === t || "'" === t || "<" === t ? (this.delegate.reportSyntaxError(t + " is not a valid character within attribute names"), this.consume(), this.delegate.appendToAttributeName(t)) : (this.consume(), this.delegate.appendToAttributeName(t));
  151. }, afterAttributeName: function afterAttributeName() {
  152. var t = this.peek();isSpace(t) ? this.consume() : "/" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.state = "selfClosingStartTag") : "=" === t ? (this.consume(), this.state = "beforeAttributeValue") : ">" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.state = "attributeName", this.delegate.beginAttribute(), this.delegate.appendToAttributeName(t));
  153. }, beforeAttributeValue: function beforeAttributeValue() {
  154. var t = this.peek();isSpace(t) ? this.consume() : '"' === t ? (this.state = "attributeValueDoubleQuoted", this.delegate.beginAttributeValue(!0), this.consume()) : "'" === t ? (this.state = "attributeValueSingleQuoted", this.delegate.beginAttributeValue(!0), this.consume()) : ">" === t ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : (this.state = "attributeValueUnquoted", this.delegate.beginAttributeValue(!1), this.consume(), this.delegate.appendToAttributeValue(t));
  155. }, attributeValueDoubleQuoted: function attributeValueDoubleQuoted() {
  156. var t = this.consume();'"' === t ? (this.delegate.finishAttributeValue(), this.state = "afterAttributeValueQuoted") : "&" === t ? this.delegate.appendToAttributeValue(this.consumeCharRef('"') || "&") : this.delegate.appendToAttributeValue(t);
  157. }, attributeValueSingleQuoted: function attributeValueSingleQuoted() {
  158. var t = this.consume();"'" === t ? (this.delegate.finishAttributeValue(), this.state = "afterAttributeValueQuoted") : "&" === t ? this.delegate.appendToAttributeValue(this.consumeCharRef("'") || "&") : this.delegate.appendToAttributeValue(t);
  159. }, attributeValueUnquoted: function attributeValueUnquoted() {
  160. var t = this.peek();isSpace(t) ? (this.delegate.finishAttributeValue(), this.consume(), this.state = "beforeAttributeName") : "&" === t ? (this.consume(), this.delegate.appendToAttributeValue(this.consumeCharRef(">") || "&")) : ">" === t ? (this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.state = "beforeData") : (this.consume(), this.delegate.appendToAttributeValue(t));
  161. }, afterAttributeValueQuoted: function afterAttributeValueQuoted() {
  162. var t = this.peek();isSpace(t) ? (this.consume(), this.state = "beforeAttributeName") : "/" === t ? (this.consume(), this.state = "selfClosingStartTag") : ">" === t ? (this.consume(), this.delegate.finishTag(), this.state = "beforeData") : this.state = "beforeAttributeName";
  163. }, selfClosingStartTag: function selfClosingStartTag() {
  164. ">" === this.peek() ? (this.consume(), this.delegate.markTagAsSelfClosing(), this.delegate.finishTag(), this.state = "beforeData") : this.state = "beforeAttributeName";
  165. }, endTagOpen: function endTagOpen() {
  166. var t = this.consume();isAlpha(t) && (this.state = "tagName", this.delegate.beginEndTag(), this.delegate.appendToTagName(t.toLowerCase()));
  167. } }, this.reset();
  168. }return t.prototype.reset = function () {
  169. this.state = "beforeData", this.input = "", this.index = 0, this.line = 1, this.column = 0, this.tagLine = -1, this.tagColumn = -1, this.delegate.reset();
  170. }, t.prototype.tokenize = function (t) {
  171. this.reset(), this.tokenizePart(t), this.tokenizeEOF();
  172. }, t.prototype.tokenizePart = function (t) {
  173. for (this.input += preprocessInput(t); this.index < this.input.length;) {
  174. this.states[this.state].call(this);
  175. }
  176. }, t.prototype.tokenizeEOF = function () {
  177. this.flushData();
  178. }, t.prototype.flushData = function () {
  179. "data" === this.state && (this.delegate.finishData(), this.state = "beforeData");
  180. }, t.prototype.peek = function () {
  181. return this.input.charAt(this.index);
  182. }, t.prototype.consume = function () {
  183. var t = this.peek();return this.index++, "\n" === t ? (this.line++, this.column = 0) : this.column++, t;
  184. }, t.prototype.consumeCharRef = function () {
  185. var t = this.input.indexOf(";", this.index);if (-1 !== t) {
  186. var e = this.input.slice(this.index, t),
  187. r = this.entityParser.parse(e);if (r) {
  188. for (var a = e.length; a;) {
  189. this.consume(), a--;
  190. }return this.consume(), r;
  191. }
  192. }
  193. }, t.prototype.markTagStart = function () {
  194. this.tagLine = this.line, this.tagColumn = this.column, this.delegate.tagOpen && this.delegate.tagOpen();
  195. }, t;
  196. }(),
  197. Tokenizer = function () {
  198. function t(t, e) {
  199. void 0 === e && (e = {}), this.options = e, this._token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.currentAttribute = null, this.tokenizer = new EventedTokenizer(this, t);
  200. }return Object.defineProperty(t.prototype, "token", { get: function get() {
  201. return unwrap(this._token);
  202. }, set: function set(t) {
  203. this._token = t;
  204. }, enumerable: !0, configurable: !0 }), t.prototype.tokenize = function (t) {
  205. return this.tokens = [], this.tokenizer.tokenize(t), this.tokens;
  206. }, t.prototype.tokenizePart = function (t) {
  207. return this.tokens = [], this.tokenizer.tokenizePart(t), this.tokens;
  208. }, t.prototype.tokenizeEOF = function () {
  209. return this.tokens = [], this.tokenizer.tokenizeEOF(), this.tokens[0];
  210. }, t.prototype.reset = function () {
  211. this._token = null, this.startLine = 1, this.startColumn = 0;
  212. }, t.prototype.addLocInfo = function () {
  213. this.options.loc && (this.token.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;
  214. }, t.prototype.beginData = function () {
  215. this.token = { type: "Chars", chars: "" }, this.tokens.push(this.token);
  216. }, t.prototype.appendToData = function (t) {
  217. this.token.chars += t;
  218. }, t.prototype.finishData = function () {
  219. this.addLocInfo();
  220. }, t.prototype.beginComment = function () {
  221. this.token = { type: "Comment", chars: "" }, this.tokens.push(this.token);
  222. }, t.prototype.appendToCommentData = function (t) {
  223. this.token.chars += t;
  224. }, t.prototype.finishComment = function () {
  225. this.addLocInfo();
  226. }, t.prototype.beginStartTag = function () {
  227. this.token = { type: "StartTag", tagName: "", attributes: [], selfClosing: !1 }, this.tokens.push(this.token);
  228. }, t.prototype.beginEndTag = function () {
  229. this.token = { type: "EndTag", tagName: "" }, this.tokens.push(this.token);
  230. }, t.prototype.finishTag = function () {
  231. this.addLocInfo();
  232. }, t.prototype.markTagAsSelfClosing = function () {
  233. this.token.selfClosing = !0;
  234. }, t.prototype.appendToTagName = function (t) {
  235. this.token.tagName += t;
  236. }, t.prototype.beginAttribute = function () {
  237. var t = unwrap(this.token.attributes, "current token's attributs");this.currentAttribute = ["", "", !1], t.push(this.currentAttribute);
  238. }, t.prototype.appendToAttributeName = function (t) {
  239. unwrap(this.currentAttribute)[0] += t;
  240. }, t.prototype.beginAttributeValue = function (t) {
  241. unwrap(this.currentAttribute)[2] = t;
  242. }, t.prototype.appendToAttributeValue = function (t) {
  243. var e = unwrap(this.currentAttribute);e[1] = e[1] || "", e[1] += t;
  244. }, t.prototype.finishAttributeValue = function () {}, t.prototype.reportSyntaxError = function (t) {
  245. this.token.syntaxError = t;
  246. }, t;
  247. }();function debugAssert(t, e) {
  248. if (!t) throw new Error(e || "assertion failure");
  249. }var objKeys = Object.keys;
  250. function assign(t) {
  251. for (var e = 1; e < arguments.length; e++) {
  252. var r = arguments[e];if (null === r || "object" != (typeof r === "undefined" ? "undefined" : _typeof(r))) continue;var a = objKeys(r);for (var _e3 = 0; _e3 < a.length; _e3++) {
  253. var i = a[_e3];t[i] = r[i];
  254. }
  255. }return t;
  256. }
  257. var ListSlice = function () {
  258. function ListSlice(t, e) {
  259. _classCallCheck(this, ListSlice);
  260. this._head = t, this._tail = e;
  261. }
  262. _createClass(ListSlice, [{
  263. key: "forEachNode",
  264. value: function forEachNode(t) {
  265. var e = this._head;for (; null !== e;) {
  266. t(e), e = this.nextNode(e);
  267. }
  268. }
  269. }, {
  270. key: "head",
  271. value: function head() {
  272. return this._head;
  273. }
  274. }, {
  275. key: "tail",
  276. value: function tail() {
  277. return this._tail;
  278. }
  279. }, {
  280. key: "toArray",
  281. value: function toArray() {
  282. var t = [];return this.forEachNode(function (e) {
  283. return t.push(e);
  284. }), t;
  285. }
  286. }, {
  287. key: "nextNode",
  288. value: function nextNode(t) {
  289. return t === this._tail ? null : t.next;
  290. }
  291. }]);
  292. return ListSlice;
  293. }();
  294. var EMPTY_SLICE = new ListSlice(null, null),
  295. EMPTY_ARRAY = Object.freeze([]),
  296. entityParser = new EntityParser(namedCharRefs);
  297. var Parser = function () {
  298. function Parser(t) {
  299. var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  300. _classCallCheck(this, Parser);
  301. this.elementStack = [], this.currentAttribute = null, this.currentNode = null, this.tokenizer = new EventedTokenizer(this, entityParser), this.options = e, this.tokenizer.states.tagOpen = function () {
  302. var t = this.consume();"!" === t ? this.state = "markupDeclaration" : "/" === t ? this.state = "endTagOpen" : /[A-Za-z]/.test(t) && (this.state = "tagName", this.delegate.beginStartTag(), this.delegate.appendToTagName(t));
  303. }, this.tokenizer.states.endTagOpen = function () {
  304. var t = this.consume();/[A-Za-z]/.test(t) && (this.state = "tagName", this.delegate.beginEndTag(), this.delegate.appendToTagName(t));
  305. }, this.source = t.split(/(?:\r\n?|\n)/g);
  306. }
  307. _createClass(Parser, [{
  308. key: "acceptNode",
  309. value: function acceptNode(t) {
  310. return this[t.type](t);
  311. }
  312. }, {
  313. key: "currentElement",
  314. value: function currentElement() {
  315. return this.elementStack[this.elementStack.length - 1];
  316. }
  317. }, {
  318. key: "sourceForNode",
  319. value: function sourceForNode(t, e) {
  320. var r = void 0,
  321. a = void 0,
  322. i = void 0,
  323. n = t.loc.start.line - 1,
  324. s = n - 1,
  325. o = t.loc.start.column,
  326. l = [];for (e ? (a = e.loc.end.line - 1, i = e.loc.end.column) : (a = t.loc.end.line - 1, i = t.loc.end.column); s < a;) {
  327. s++, r = this.source[s], s === n ? n === a ? l.push(r.slice(o, i)) : l.push(r.slice(o)) : s === a ? l.push(r.slice(0, i)) : l.push(r);
  328. }return l.join("\n");
  329. }
  330. }, {
  331. key: "currentAttr",
  332. get: function get() {
  333. return this.currentAttribute;
  334. }
  335. }, {
  336. key: "currentTag",
  337. get: function get() {
  338. var t = this.currentNode;return t;
  339. }
  340. }, {
  341. key: "currentStartTag",
  342. get: function get() {
  343. var t = this.currentNode;return t;
  344. }
  345. }, {
  346. key: "currentEndTag",
  347. get: function get() {
  348. var t = this.currentNode;return t;
  349. }
  350. }, {
  351. key: "currentComment",
  352. get: function get() {
  353. var t = this.currentNode;return t;
  354. }
  355. }, {
  356. key: "currentData",
  357. get: function get() {
  358. var t = this.currentNode;return t;
  359. }
  360. }]);
  361. return Parser;
  362. }();
  363. var HandlebarsNodeVisitors = function (_Parser) {
  364. _inherits(HandlebarsNodeVisitors, _Parser);
  365. function HandlebarsNodeVisitors() {
  366. var _this;
  367. _classCallCheck(this, HandlebarsNodeVisitors);
  368. (_this = _possibleConstructorReturn(this, (HandlebarsNodeVisitors.__proto__ || Object.getPrototypeOf(HandlebarsNodeVisitors)).apply(this, arguments)), _this), _this.cursorCount = 0;return _this;
  369. }
  370. _createClass(HandlebarsNodeVisitors, [{
  371. key: "cursor",
  372. value: function cursor() {
  373. return "%cursor:" + this.cursorCount++ + "%";
  374. }
  375. }, {
  376. key: "Program",
  377. value: function Program(t) {
  378. this.cursorCount = 0;var e = void 0,
  379. r = b.program([], t.blockParams, t.loc),
  380. a = t.body.length;if (this.elementStack.push(r), 0 === a) return this.elementStack.pop();for (e = 0; e < a; e++) {
  381. this.acceptNode(t.body[e]);
  382. }var i = this.elementStack.pop();if (i !== r) {
  383. var _t = i;throw new SyntaxError$1("Unclosed element `" + _t.tag + "` (on line " + _t.loc.start.line + ").", _t.loc);
  384. }return r;
  385. }
  386. }, {
  387. key: "BlockStatement",
  388. value: function BlockStatement(t) {
  389. if ("comment" === this.tokenizer.state) return void this.appendToCommentData(this.sourceForNode(t));if ("comment" !== this.tokenizer.state && "data" !== this.tokenizer.state && "beforeData" !== this.tokenizer.state) throw new SyntaxError$1("A block may only be used inside an HTML element or another block.", t.loc);
  390. var _acceptCallNodes = acceptCallNodes(this, t),
  391. e = _acceptCallNodes.path,
  392. r = _acceptCallNodes.params,
  393. a = _acceptCallNodes.hash,
  394. i = this.Program(t.program),
  395. n = t.inverse ? this.Program(t.inverse) : null;
  396. "in-element" === e.original && (a = addInElementHash(this.cursor(), a, t.loc));var s = b.block(e, r, a, i, n, t.loc);appendChild(this.currentElement(), s);
  397. }
  398. }, {
  399. key: "MustacheStatement",
  400. value: function MustacheStatement(t) {
  401. var e = void 0,
  402. r = this.tokenizer;if ("comment" === r.state) return void this.appendToCommentData(this.sourceForNode(t));var a = t.escaped,
  403. i = t.loc;
  404. if (t.path.type.match(/Literal$/)) e = { type: "MustacheStatement", path: this.acceptNode(t.path), params: [], hash: b.hash(), escaped: a, loc: i };else {
  405. var _acceptCallNodes2 = acceptCallNodes(this, t),
  406. _r = _acceptCallNodes2.path,
  407. n = _acceptCallNodes2.params,
  408. s = _acceptCallNodes2.hash;
  409. e = b.mustache(_r, n, s, !a, i);
  410. }switch (r.state) {case "tagName":
  411. addElementModifier(this.currentStartTag, e), r.state = "beforeAttributeName";break;case "beforeAttributeName":
  412. addElementModifier(this.currentStartTag, e);break;case "attributeName":case "afterAttributeName":
  413. this.beginAttributeValue(!1), this.finishAttributeValue(), addElementModifier(this.currentStartTag, e), r.state = "beforeAttributeName";break;case "afterAttributeValueQuoted":
  414. addElementModifier(this.currentStartTag, e), r.state = "beforeAttributeName";break;case "beforeAttributeValue":
  415. this.beginAttributeValue(!1), appendDynamicAttributeValuePart(this.currentAttribute, e), r.state = "attributeValueUnquoted";break;case "attributeValueDoubleQuoted":case "attributeValueSingleQuoted":case "attributeValueUnquoted":
  416. appendDynamicAttributeValuePart(this.currentAttribute, e);break;default:
  417. appendChild(this.currentElement(), e);}return e;
  418. }
  419. }, {
  420. key: "ContentStatement",
  421. value: function ContentStatement(t) {
  422. updateTokenizerLocation(this.tokenizer, t), this.tokenizer.tokenizePart(t.value), this.tokenizer.flushData();
  423. }
  424. }, {
  425. key: "CommentStatement",
  426. value: function CommentStatement(t) {
  427. var e = this.tokenizer;
  428. if ("comment" === e.state) return this.appendToCommentData(this.sourceForNode(t)), null;var r = t.value,
  429. a = t.loc,
  430. i = b.mustacheComment(r, a);
  431. switch (e.state) {case "beforeAttributeName":
  432. this.currentStartTag.comments.push(i);break;case "beforeData":case "data":
  433. appendChild(this.currentElement(), i);break;default:
  434. throw new SyntaxError$1("Using a Handlebars comment when in the `" + e.state + "` state is not supported: \"" + i.value + "\" on line " + a.start.line + ":" + a.start.column, t.loc);}return i;
  435. }
  436. }, {
  437. key: "PartialStatement",
  438. value: function PartialStatement(t) {
  439. var e = t.loc;
  440. throw new SyntaxError$1("Handlebars partials are not supported: \"" + this.sourceForNode(t, t.name) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
  441. }
  442. }, {
  443. key: "PartialBlockStatement",
  444. value: function PartialBlockStatement(t) {
  445. var e = t.loc;
  446. throw new SyntaxError$1("Handlebars partial blocks are not supported: \"" + this.sourceForNode(t, t.name) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
  447. }
  448. }, {
  449. key: "Decorator",
  450. value: function Decorator(t) {
  451. var e = t.loc;
  452. throw new SyntaxError$1("Handlebars decorators are not supported: \"" + this.sourceForNode(t, t.path) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
  453. }
  454. }, {
  455. key: "DecoratorBlock",
  456. value: function DecoratorBlock(t) {
  457. var e = t.loc;
  458. throw new SyntaxError$1("Handlebars decorator blocks are not supported: \"" + this.sourceForNode(t, t.path) + "\" at L" + e.start.line + ":C" + e.start.column, t.loc);
  459. }
  460. }, {
  461. key: "SubExpression",
  462. value: function SubExpression(t) {
  463. var _acceptCallNodes3 = acceptCallNodes(this, t),
  464. e = _acceptCallNodes3.path,
  465. r = _acceptCallNodes3.params,
  466. a = _acceptCallNodes3.hash;
  467. return b.sexpr(e, r, a, t.loc);
  468. }
  469. }, {
  470. key: "PathExpression",
  471. value: function PathExpression(t) {
  472. var e = void 0,
  473. r = t.original,
  474. a = t.loc;if (-1 !== r.indexOf("/")) {
  475. if ("./" === r.slice(0, 2)) throw new SyntaxError$1("Using \"./\" is not supported in Glimmer and unnecessary: \"" + t.original + "\" on line " + a.start.line + ".", t.loc);if ("../" === r.slice(0, 3)) throw new SyntaxError$1("Changing context using \"../\" is not supported in Glimmer: \"" + t.original + "\" on line " + a.start.line + ".", t.loc);if (-1 !== r.indexOf(".")) throw new SyntaxError$1("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths: \"" + t.original + "\" on line " + a.start.line + ".", t.loc);e = [t.parts.join("/")];
  476. } else e = t.parts;var i = !1;return r.match(/^this(\..+)?$/) && (i = !0), { type: "PathExpression", original: t.original, this: i, parts: e, data: t.data, loc: t.loc };
  477. }
  478. }, {
  479. key: "Hash",
  480. value: function Hash(t) {
  481. var e = [];for (var r = 0; r < t.pairs.length; r++) {
  482. var a = t.pairs[r];e.push(b.pair(a.key, this.acceptNode(a.value), a.loc));
  483. }return b.hash(e, t.loc);
  484. }
  485. }, {
  486. key: "StringLiteral",
  487. value: function StringLiteral(t) {
  488. return b.literal("StringLiteral", t.value, t.loc);
  489. }
  490. }, {
  491. key: "BooleanLiteral",
  492. value: function BooleanLiteral(t) {
  493. return b.literal("BooleanLiteral", t.value, t.loc);
  494. }
  495. }, {
  496. key: "NumberLiteral",
  497. value: function NumberLiteral(t) {
  498. return b.literal("NumberLiteral", t.value, t.loc);
  499. }
  500. }, {
  501. key: "UndefinedLiteral",
  502. value: function UndefinedLiteral(t) {
  503. return b.literal("UndefinedLiteral", void 0, t.loc);
  504. }
  505. }, {
  506. key: "NullLiteral",
  507. value: function NullLiteral(t) {
  508. return b.literal("NullLiteral", null, t.loc);
  509. }
  510. }]);
  511. return HandlebarsNodeVisitors;
  512. }(Parser);
  513. function calculateRightStrippedOffsets(t, e) {
  514. if ("" === e) return { lines: t.split("\n").length - 1, columns: 0 };var r = t.split(e)[0].split(/\n/),
  515. a = r.length - 1;return { lines: a, columns: r[a].length };
  516. }function updateTokenizerLocation(t, e) {
  517. var r = e.loc.start.line,
  518. a = e.loc.start.column,
  519. i = calculateRightStrippedOffsets(e.original, e.value);r += i.lines, i.lines ? a = i.columns : a += i.columns, t.line = r, t.column = a;
  520. }function acceptCallNodes(t, e) {
  521. return { path: t.PathExpression(e.path), params: e.params ? e.params.map(function (e) {
  522. return t.acceptNode(e);
  523. }) : [], hash: e.hash ? t.Hash(e.hash) : b.hash() };
  524. }function addElementModifier(t, e) {
  525. var r = e.path,
  526. a = e.params,
  527. i = e.hash,
  528. n = e.loc;
  529. if (isLiteral$1(r)) {
  530. var _a2 = "{{" + printLiteral(r) + "}}",
  531. _i = "<" + t.name + " ... " + _a2 + " ...";throw new SyntaxError$1("In " + _i + ", " + _a2 + " is not a valid modifier: \"" + r.original + "\" on line " + (n && n.start.line) + ".", e.loc);
  532. }var s = b.elementModifier(r, a, i, n);t.modifiers.push(s);
  533. }function addInElementHash(t, e, r) {
  534. var a = !1;e.pairs.forEach(function (t) {
  535. if ("guid" === t.key) throw new SyntaxError$1("Cannot pass `guid` from user space", r);"nextSibling" === t.key && (a = !0);
  536. });var i = b.literal("StringLiteral", t),
  537. n = b.pair("guid", i);if (e.pairs.unshift(n), !a) {
  538. var _t2 = b.literal("NullLiteral", null),
  539. _r2 = b.pair("nextSibling", _t2);e.pairs.push(_r2);
  540. }return e;
  541. }function appendDynamicAttributeValuePart(t, e) {
  542. t.isDynamic = !0, t.parts.push(e);
  543. }var visitorKeys = { Program: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], PartialStatement: ["name", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };var TraversalError = function () {
  544. function t(t, e, r, a) {
  545. var i = Error.call(this, t);this.key = a, this.message = t, this.node = e, this.parent = r, this.stack = i.stack;
  546. }return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
  547. }();function cannotRemoveNode(t, e, r) {
  548. return new TraversalError("Cannot remove a node unless it is part of an array", t, e, r);
  549. }function cannotReplaceNode(t, e, r) {
  550. return new TraversalError("Cannot replace a node with multiple nodes unless it is part of an array", t, e, r);
  551. }function cannotReplaceOrRemoveInKeyHandlerYet(t, e) {
  552. return new TraversalError("Replacing and removing in key handlers is not yet supported.", t, null, e);
  553. }function visitNode(t, e) {
  554. var r = void 0,
  555. a = t[e.type] || t.All || null;if (a && a.enter && (r = a.enter.call(null, e)), void 0 !== r && null !== r) {
  556. if (JSON.stringify(e) !== JSON.stringify(r)) return Array.isArray(r) ? visitArray(t, r) || r : visitNode(t, r) || r;r = void 0;
  557. }if (void 0 === r) {
  558. var i = visitorKeys[e.type];for (var _r3 = 0; _r3 < i.length; _r3++) {
  559. visitKey(t, a, e, i[_r3]);
  560. }a && a.exit && (r = a.exit.call(null, e));
  561. }return r;
  562. }function visitKey(t, e, r, a) {
  563. var i = r[a];if (!i) return;var n = void 0,
  564. s = e && (e.keys[a] || e.keys.All);if (s && s.enter && void 0 !== (n = s.enter.call(null, r, a))) throw cannotReplaceOrRemoveInKeyHandlerYet(r, a);if (Array.isArray(i)) visitArray(t, i);else {
  565. var _e4 = visitNode(t, i);void 0 !== _e4 && assignKey(r, a, _e4);
  566. }if (s && s.exit && void 0 !== (n = s.exit.call(null, r, a))) throw cannotReplaceOrRemoveInKeyHandlerYet(r, a);
  567. }function visitArray(t, e) {
  568. for (var r = 0; r < e.length; r++) {
  569. var a = visitNode(t, e[r]);void 0 !== a && (r += spliceArray(e, r, a) - 1);
  570. }
  571. }function assignKey(t, e, r) {
  572. if (null === r) throw cannotRemoveNode(t[e], t, e);if (Array.isArray(r)) {
  573. if (1 !== r.length) throw 0 === r.length ? cannotRemoveNode(t[e], t, e) : cannotReplaceNode(t[e], t, e);t[e] = r[0];
  574. } else t[e] = r;
  575. }function spliceArray(t, e, r) {
  576. return null === r ? (t.splice(e, 1), 0) : Array.isArray(r) ? (t.splice.apply(t, [e, 1].concat(_toConsumableArray(r))), r.length) : (t.splice(e, 1, r), 1);
  577. }function traverse(t, e) {
  578. visitNode(normalizeVisitor(e), t);
  579. }function normalizeVisitor(t) {
  580. var e = {};for (var r in t) {
  581. var a = t[r] || t.All,
  582. i = {};if ("object" == (typeof a === "undefined" ? "undefined" : _typeof(a))) {
  583. var _t3 = a.keys;if (_t3) for (var _e5 in _t3) {
  584. var _r4 = _t3[_e5];"object" == (typeof _r4 === "undefined" ? "undefined" : _typeof(_r4)) ? i[_e5] = { enter: "function" == typeof _r4.enter ? _r4.enter : null, exit: "function" == typeof _r4.exit ? _r4.exit : null } : "function" == typeof _r4 && (i[_e5] = { enter: _r4, exit: null });
  585. }e[r] = { enter: "function" == typeof a.enter ? a.enter : null, exit: "function" == typeof a.exit ? a.exit : null, keys: i };
  586. } else "function" == typeof a && (e[r] = { enter: a, exit: null, keys: i });
  587. }return e;
  588. }function unreachable$1() {
  589. throw new Error("unreachable");
  590. }function build(t) {
  591. if (!t) return "";var e = [];switch (t.type) {case "Program":
  592. {
  593. var _r5 = t.chained && t.body[0];_r5 && (_r5.chained = !0);var a = buildEach(t.body).join("");e.push(a);
  594. }break;case "ElementNode":
  595. e.push("<", t.tag), t.attributes.length && e.push(" ", buildEach(t.attributes).join(" ")), t.modifiers.length && e.push(" ", buildEach(t.modifiers).join(" ")), t.comments.length && e.push(" ", buildEach(t.comments).join(" ")), e.push(">"), e.push.apply(e, buildEach(t.children)), e.push("</", t.tag, ">");break;case "AttrNode":
  596. e.push(t.name, "=");var r = build(t.value);"TextNode" === t.value.type ? e.push('"', r, '"') : e.push(r);break;case "ConcatStatement":
  597. e.push('"'), t.parts.forEach(function (t) {
  598. "StringLiteral" === t.type ? e.push(t.original) : e.push(build(t));
  599. }), e.push('"');break;case "TextNode":
  600. e.push(t.chars);break;case "MustacheStatement":
  601. e.push(compactJoin(["{{", pathParams(t), "}}"]));break;case "MustacheCommentStatement":
  602. e.push(compactJoin(["{{!--", t.value, "--}}"]));break;case "ElementModifierStatement":
  603. e.push(compactJoin(["{{", pathParams(t), "}}"]));break;case "PathExpression":
  604. e.push(t.original);break;case "SubExpression":
  605. e.push("(", pathParams(t), ")");break;case "BooleanLiteral":
  606. e.push(t.value ? "true" : "false");break;case "BlockStatement":
  607. {
  608. var _r6 = [];t.chained ? _r6.push(["{{else ", pathParams(t), "}}"].join("")) : _r6.push(openBlock(t)), _r6.push(build(t.program)), t.inverse && (t.inverse.chained || _r6.push("{{else}}"), _r6.push(build(t.inverse))), t.chained || _r6.push(closeBlock(t)), e.push(_r6.join(""));
  609. }break;case "PartialStatement":
  610. e.push(compactJoin(["{{>", pathParams(t), "}}"]));break;case "CommentStatement":
  611. e.push(compactJoin(["\x3c!--", t.value, "--\x3e"]));break;case "StringLiteral":
  612. e.push("\"" + t.value + "\"");break;case "NumberLiteral":
  613. e.push(String(t.value));break;case "UndefinedLiteral":
  614. e.push("undefined");break;case "NullLiteral":
  615. e.push("null");break;case "Hash":
  616. e.push(t.pairs.map(function (t) {
  617. return build(t);
  618. }).join(" "));break;case "HashPair":
  619. e.push(t.key + "=" + build(t.value));}return e.join("");
  620. }function compact(t) {
  621. var e = [];return t.forEach(function (t) {
  622. void 0 !== t && null !== t && "" !== t && e.push(t);
  623. }), e;
  624. }function buildEach(t) {
  625. return t.map(build);
  626. }function pathParams(t) {
  627. var e = void 0;switch (t.type) {case "MustacheStatement":case "SubExpression":case "ElementModifierStatement":case "BlockStatement":
  628. if (isLiteral(t.path)) return String(t.path.value);e = build(t.path);break;case "PartialStatement":
  629. e = build(t.name);break;default:
  630. return unreachable$1();}return compactJoin([e, buildEach(t.params).join(" "), build(t.hash)], " ");
  631. }function compactJoin(t, e) {
  632. return compact(t).join(e || "");
  633. }function blockParams(t) {
  634. var e = t.program.blockParams;return e.length ? " as |" + e.join(" ") + "|" : null;
  635. }function openBlock(t) {
  636. return ["{{#", pathParams(t), blockParams(t), "}}"].join("");
  637. }function closeBlock(t) {
  638. return ["{{/", build(t.path), "}}"].join("");
  639. }
  640. var Walker = function () {
  641. function Walker(t) {
  642. _classCallCheck(this, Walker);
  643. this.order = t, this.stack = [];
  644. }
  645. _createClass(Walker, [{
  646. key: "visit",
  647. value: function visit(t, e) {
  648. t && (this.stack.push(t), "post" === this.order ? (this.children(t, e), e(t, this)) : (e(t, this), this.children(t, e)), this.stack.pop());
  649. }
  650. }, {
  651. key: "children",
  652. value: function children(t, e) {
  653. var r = visitors[t.type];r && r(this, t, e);
  654. }
  655. }]);
  656. return Walker;
  657. }();
  658. var visitors = {
  659. Program: function Program(t, e, r) {
  660. for (var a = 0; a < e.body.length; a++) {
  661. t.visit(e.body[a], r);
  662. }
  663. },
  664. ElementNode: function ElementNode(t, e, r) {
  665. for (var a = 0; a < e.children.length; a++) {
  666. t.visit(e.children[a], r);
  667. }
  668. },
  669. BlockStatement: function BlockStatement(t, e, r) {
  670. t.visit(e.program, r), t.visit(e.inverse || null, r);
  671. }
  672. };var commonjsGlobal = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};function unwrapExports(t) {
  673. return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
  674. }function createCommonjsModule(t, e) {
  675. return t(e = { exports: {} }, e.exports), e.exports;
  676. }var utils = createCommonjsModule(function (t, e) {
  677. e.__esModule = !0, e.extend = s, e.indexOf = function (t, e) {
  678. for (var r = 0, a = t.length; r < a; r++) {
  679. if (t[r] === e) return r;
  680. }return -1;
  681. }, e.escapeExpression = function (t) {
  682. if ("string" != typeof t) {
  683. if (t && t.toHTML) return t.toHTML();if (null == t) return "";if (!t) return t + "";t = "" + t;
  684. }if (!i.test(t)) return t;return t.replace(a, n);
  685. }, e.isEmpty = function (t) {
  686. return !t && 0 !== t || !(!c(t) || 0 !== t.length);
  687. }, e.createFrame = function (t) {
  688. var e = s({}, t);return e._parent = t, e;
  689. }, e.blockParams = function (t, e) {
  690. return t.path = e, t;
  691. }, e.appendContextPath = function (t, e) {
  692. return (t ? t + "." : "") + e;
  693. };var r = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#x27;", "`": "&#x60;", "=": "&#x3D;" },
  694. a = /[&<>"'`=]/g,
  695. i = /[&<>"'`=]/;function n(t) {
  696. return r[t];
  697. }function s(t) {
  698. for (var e = 1; e < arguments.length; e++) {
  699. for (var r in arguments[e]) {
  700. Object.prototype.hasOwnProperty.call(arguments[e], r) && (t[r] = arguments[e][r]);
  701. }
  702. }return t;
  703. }var o = Object.prototype.toString;e.toString = o;var l = function l(t) {
  704. return "function" == typeof t;
  705. };l(/x/) && (e.isFunction = l = function l(t) {
  706. return "function" == typeof t && "[object Function]" === o.call(t);
  707. }), e.isFunction = l;var c = Array.isArray || function (t) {
  708. return !(!t || "object" != (typeof t === "undefined" ? "undefined" : _typeof(t))) && "[object Array]" === o.call(t);
  709. };e.isArray = c;
  710. });unwrapExports(utils);var exception = createCommonjsModule(function (t, e) {
  711. e.__esModule = !0;var r = ["description", "fileName", "lineNumber", "message", "name", "number", "stack"];function a(t, e) {
  712. var i = e && e.loc,
  713. n = void 0,
  714. s = void 0;i && (t += " - " + (n = i.start.line) + ":" + (s = i.start.column));for (var o = Error.prototype.constructor.call(this, t), l = 0; l < r.length; l++) {
  715. this[r[l]] = o[r[l]];
  716. }Error.captureStackTrace && Error.captureStackTrace(this, a);try {
  717. i && (this.lineNumber = n, Object.defineProperty ? Object.defineProperty(this, "column", { value: s, enumerable: !0 }) : this.column = s);
  718. } catch (t) {}
  719. }a.prototype = new Error(), e.default = a, t.exports = e.default;
  720. });unwrapExports(exception);var blockHelperMissing = createCommonjsModule(function (t, e) {
  721. e.__esModule = !0, e.default = function (t) {
  722. t.registerHelper("blockHelperMissing", function (e, r) {
  723. var a = r.inverse,
  724. i = r.fn;if (!0 === e) return i(this);if (!1 === e || null == e) return a(this);if (utils.isArray(e)) return e.length > 0 ? (r.ids && (r.ids = [r.name]), t.helpers.each(e, r)) : a(this);if (r.data && r.ids) {
  725. var n = utils.createFrame(r.data);n.contextPath = utils.appendContextPath(r.data.contextPath, r.name), r = { data: n };
  726. }return i(e, r);
  727. });
  728. }, t.exports = e.default;
  729. });unwrapExports(blockHelperMissing);var each = createCommonjsModule(function (t, e) {
  730. e.__esModule = !0;var r,
  731. a = (r = exception) && r.__esModule ? r : { default: r };e.default = function (t) {
  732. t.registerHelper("each", function (t, e) {
  733. if (!e) throw new a.default("Must pass iterator to #each");var r = e.fn,
  734. i = e.inverse,
  735. n = 0,
  736. s = "",
  737. o = void 0,
  738. l = void 0;function c(e, a, i) {
  739. o && (o.key = e, o.index = a, o.first = 0 === a, o.last = !!i, l && (o.contextPath = l + e)), s += r(t[e], { data: o, blockParams: utils.blockParams([t[e], e], [l + e, null]) });
  740. }if (e.data && e.ids && (l = utils.appendContextPath(e.data.contextPath, e.ids[0]) + "."), utils.isFunction(t) && (t = t.call(this)), e.data && (o = utils.createFrame(e.data)), t && "object" == (typeof t === "undefined" ? "undefined" : _typeof(t))) if (utils.isArray(t)) for (var u = t.length; n < u; n++) {
  741. n in t && c(n, n, n === t.length - 1);
  742. } else {
  743. var p = void 0;for (var h in t) {
  744. t.hasOwnProperty(h) && (void 0 !== p && c(p, n - 1), p = h, n++);
  745. }void 0 !== p && c(p, n - 1, !0);
  746. }return 0 === n && (s = i(this)), s;
  747. });
  748. }, t.exports = e.default;
  749. });unwrapExports(each);var helperMissing = createCommonjsModule(function (t, e) {
  750. e.__esModule = !0;var r,
  751. a = (r = exception) && r.__esModule ? r : { default: r };e.default = function (t) {
  752. t.registerHelper("helperMissing", function () {
  753. if (1 !== arguments.length) throw new a.default('Missing helper: "' + arguments[arguments.length - 1].name + '"');
  754. });
  755. }, t.exports = e.default;
  756. });unwrapExports(helperMissing);var _if = createCommonjsModule(function (t, e) {
  757. e.__esModule = !0, e.default = function (t) {
  758. t.registerHelper("if", function (t, e) {
  759. return utils.isFunction(t) && (t = t.call(this)), !e.hash.includeZero && !t || utils.isEmpty(t) ? e.inverse(this) : e.fn(this);
  760. }), t.registerHelper("unless", function (e, r) {
  761. return t.helpers.if.call(this, e, { fn: r.inverse, inverse: r.fn, hash: r.hash });
  762. });
  763. }, t.exports = e.default;
  764. });unwrapExports(_if);var log = createCommonjsModule(function (t, e) {
  765. e.__esModule = !0, e.default = function (t) {
  766. t.registerHelper("log", function () {
  767. for (var e = [void 0], r = arguments[arguments.length - 1], a = 0; a < arguments.length - 1; a++) {
  768. e.push(arguments[a]);
  769. }var i = 1;null != r.hash.level ? i = r.hash.level : r.data && null != r.data.level && (i = r.data.level), e[0] = i, t.log.apply(t, e);
  770. });
  771. }, t.exports = e.default;
  772. });unwrapExports(log);var lookup = createCommonjsModule(function (t, e) {
  773. e.__esModule = !0, e.default = function (t) {
  774. t.registerHelper("lookup", function (t, e) {
  775. return t && t[e];
  776. });
  777. }, t.exports = e.default;
  778. });unwrapExports(lookup);var _with = createCommonjsModule(function (t, e) {
  779. e.__esModule = !0, e.default = function (t) {
  780. t.registerHelper("with", function (t, e) {
  781. utils.isFunction(t) && (t = t.call(this));var r = e.fn;if (utils.isEmpty(t)) return e.inverse(this);var a = e.data;return e.data && e.ids && ((a = utils.createFrame(e.data)).contextPath = utils.appendContextPath(e.data.contextPath, e.ids[0])), r(t, { data: a, blockParams: utils.blockParams([t], [a && a.contextPath]) });
  782. });
  783. }, t.exports = e.default;
  784. });unwrapExports(_with);var helpers = createCommonjsModule(function (t, e) {
  785. function r(t) {
  786. return t && t.__esModule ? t : { default: t };
  787. }e.__esModule = !0, e.registerDefaultHelpers = function (t) {
  788. a.default(t), i.default(t), n.default(t), s.default(t), o.default(t), l.default(t), c.default(t);
  789. };var a = r(blockHelperMissing),
  790. i = r(each),
  791. n = r(helperMissing),
  792. s = r(_if),
  793. o = r(log),
  794. l = r(lookup),
  795. c = r(_with);
  796. });unwrapExports(helpers);var inline = createCommonjsModule(function (t, e) {
  797. e.__esModule = !0, e.default = function (t) {
  798. t.registerDecorator("inline", function (t, e, r, a) {
  799. var i = t;return e.partials || (e.partials = {}, i = function i(a, _i2) {
  800. var n = r.partials;r.partials = utils.extend({}, n, e.partials);var s = t(a, _i2);return r.partials = n, s;
  801. }), e.partials[a.args[0]] = a.fn, i;
  802. });
  803. }, t.exports = e.default;
  804. });unwrapExports(inline);var decorators = createCommonjsModule(function (t, e) {
  805. e.__esModule = !0, e.registerDefaultDecorators = function (t) {
  806. a.default(t);
  807. };var r,
  808. a = (r = inline) && r.__esModule ? r : { default: r };
  809. });unwrapExports(decorators);var logger_1 = createCommonjsModule(function (t, e) {
  810. e.__esModule = !0;var r = { methodMap: ["debug", "info", "warn", "error"], level: "info", lookupLevel: function lookupLevel(t) {
  811. if ("string" == typeof t) {
  812. var e = utils.indexOf(r.methodMap, t.toLowerCase());t = e >= 0 ? e : parseInt(t, 10);
  813. }return t;
  814. }, log: function log(t) {
  815. if (t = r.lookupLevel(t), "undefined" != typeof console && r.lookupLevel(r.level) <= t) {
  816. var e = r.methodMap[t];console[e] || (e = "log");for (var a = arguments.length, i = Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++) {
  817. i[n - 1] = arguments[n];
  818. }console[e].apply(console, i);
  819. }
  820. } };e.default = r, t.exports = e.default;
  821. });unwrapExports(logger_1);var base = createCommonjsModule(function (t, e) {
  822. function r(t) {
  823. return t && t.__esModule ? t : { default: t };
  824. }e.__esModule = !0, e.HandlebarsEnvironment = n;var a = r(exception),
  825. i = r(logger_1);e.VERSION = "4.0.10";e.COMPILER_REVISION = 7;e.REVISION_CHANGES = { 1: "<= 1.0.rc.2", 2: "== 1.0.0-rc.3", 3: "== 1.0.0-rc.4", 4: "== 1.x.x", 5: "== 2.0.0-alpha.x", 6: ">= 2.0.0-beta.1", 7: ">= 4.0.0" };function n(t, e, r) {
  826. this.helpers = t || {}, this.partials = e || {}, this.decorators = r || {}, helpers.registerDefaultHelpers(this), decorators.registerDefaultDecorators(this);
  827. }n.prototype = { constructor: n, logger: i.default, log: i.default.log, registerHelper: function registerHelper(t, e) {
  828. if ("[object Object]" === utils.toString.call(t)) {
  829. if (e) throw new a.default("Arg not supported with multiple helpers");utils.extend(this.helpers, t);
  830. } else this.helpers[t] = e;
  831. }, unregisterHelper: function unregisterHelper(t) {
  832. delete this.helpers[t];
  833. }, registerPartial: function registerPartial(t, e) {
  834. if ("[object Object]" === utils.toString.call(t)) utils.extend(this.partials, t);else {
  835. if (void 0 === e) throw new a.default('Attempting to register a partial called "' + t + '" as undefined');this.partials[t] = e;
  836. }
  837. }, unregisterPartial: function unregisterPartial(t) {
  838. delete this.partials[t];
  839. }, registerDecorator: function registerDecorator(t, e) {
  840. if ("[object Object]" === utils.toString.call(t)) {
  841. if (e) throw new a.default("Arg not supported with multiple decorators");utils.extend(this.decorators, t);
  842. } else this.decorators[t] = e;
  843. }, unregisterDecorator: function unregisterDecorator(t) {
  844. delete this.decorators[t];
  845. } };var s = i.default.log;e.log = s, e.createFrame = utils.createFrame, e.logger = i.default;
  846. });unwrapExports(base);var safeString = createCommonjsModule(function (t, e) {
  847. function r(t) {
  848. this.string = t;
  849. }e.__esModule = !0, r.prototype.toString = r.prototype.toHTML = function () {
  850. return "" + this.string;
  851. }, e.default = r, t.exports = e.default;
  852. });unwrapExports(safeString);var runtime = createCommonjsModule(function (t, e) {
  853. e.__esModule = !0, e.checkRevision = function (t) {
  854. var e = t && t[0] || 1,
  855. r = base.COMPILER_REVISION;if (e !== r) {
  856. if (e < r) {
  857. var a = base.REVISION_CHANGES[r],
  858. n = base.REVISION_CHANGES[e];throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + a + ") or downgrade your runtime to an older version (" + n + ").");
  859. }throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + t[1] + ").");
  860. }
  861. }, e.template = function (t, e) {
  862. if (!e) throw new i.default("No environment passed to template");if (!t || !t.main) throw new i.default("Unknown template object: " + (typeof t === "undefined" ? "undefined" : _typeof(t)));t.main.decorator = t.main_d, e.VM.checkRevision(t.compiler);var r = { strict: function strict(t, e) {
  863. if (!(e in t)) throw new i.default('"' + e + '" not defined in ' + t);return t[e];
  864. }, lookup: function lookup(t, e) {
  865. for (var r = t.length, a = 0; a < r; a++) {
  866. if (t[a] && null != t[a][e]) return t[a][e];
  867. }
  868. }, lambda: function lambda(t, e) {
  869. return "function" == typeof t ? t.call(e) : t;
  870. }, escapeExpression: a.escapeExpression, invokePartial: function invokePartial(r, n, s) {
  871. s.hash && (n = a.extend({}, n, s.hash), s.ids && (s.ids[0] = !0));r = e.VM.resolvePartial.call(this, r, n, s);var o = e.VM.invokePartial.call(this, r, n, s);null == o && e.compile && (s.partials[s.name] = e.compile(r, t.compilerOptions, e), o = s.partials[s.name](n, s));if (null != o) {
  872. if (s.indent) {
  873. for (var l = o.split("\n"), c = 0, u = l.length; c < u && (l[c] || c + 1 !== u); c++) {
  874. l[c] = s.indent + l[c];
  875. }o = l.join("\n");
  876. }return o;
  877. }throw new i.default("The partial " + s.name + " could not be compiled when running in runtime-only mode");
  878. }, fn: function fn(e) {
  879. var r = t[e];return r.decorator = t[e + "_d"], r;
  880. }, programs: [], program: function program(t, e, r, a, i) {
  881. var s = this.programs[t],
  882. o = this.fn(t);return e || i || a || r ? s = n(this, t, o, e, r, a, i) : s || (s = this.programs[t] = n(this, t, o)), s;
  883. }, data: function data(t, e) {
  884. for (; t && e--;) {
  885. t = t._parent;
  886. }return t;
  887. }, merge: function merge(t, e) {
  888. var r = t || e;return t && e && t !== e && (r = a.extend({}, e, t)), r;
  889. }, nullContext: Object.seal({}), noop: e.VM.noop, compilerInfo: t.compiler };function s(e) {
  890. var a = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1],
  891. i = a.data;s._setup(a), !a.partial && t.useData && (i = function (t, e) {
  892. e && "root" in e || ((e = e ? base.createFrame(e) : {}).root = t);return e;
  893. }(e, i));var n = void 0,
  894. l = t.useBlockParams ? [] : void 0;function c(e) {
  895. return "" + t.main(r, e, r.helpers, r.partials, i, l, n);
  896. }return t.useDepths && (n = a.depths ? e != a.depths[0] ? [e].concat(a.depths) : a.depths : [e]), (c = o(t.main, c, r, a.depths || [], i, l))(e, a);
  897. }return s.isTop = !0, s._setup = function (a) {
  898. a.partial ? (r.helpers = a.helpers, r.partials = a.partials, r.decorators = a.decorators) : (r.helpers = r.merge(a.helpers, e.helpers), t.usePartial && (r.partials = r.merge(a.partials, e.partials)), (t.usePartial || t.useDecorators) && (r.decorators = r.merge(a.decorators, e.decorators)));
  899. }, s._child = function (e, a, s, o) {
  900. if (t.useBlockParams && !s) throw new i.default("must pass block params");if (t.useDepths && !o) throw new i.default("must pass parent depths");return n(r, e, t[e], a, 0, s, o);
  901. }, s;
  902. }, e.wrapProgram = n, e.resolvePartial = function (t, e, r) {
  903. t ? t.call || r.name || (r.name = t, t = r.partials[t]) : t = "@partial-block" === r.name ? r.data["partial-block"] : r.partials[r.name];return t;
  904. }, e.invokePartial = function (t, e, r) {
  905. var n = r.data && r.data["partial-block"];r.partial = !0, r.ids && (r.data.contextPath = r.ids[0] || r.data.contextPath);var o = void 0;r.fn && r.fn !== s && function () {
  906. r.data = base.createFrame(r.data);var t = r.fn;o = r.data["partial-block"] = function (e) {
  907. var r = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1];return r.data = base.createFrame(r.data), r.data["partial-block"] = n, t(e, r);
  908. }, t.partials && (r.partials = a.extend({}, r.partials, t.partials));
  909. }();void 0 === t && o && (t = o);if (void 0 === t) throw new i.default("The partial " + r.name + " could not be found");if (t instanceof Function) return t(e, r);
  910. }, e.noop = s;var r,
  911. a = function (t) {
  912. if (t && t.__esModule) return t;var e = {};if (null != t) for (var r in t) {
  913. Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
  914. }return e.default = t, e;
  915. }(utils),
  916. i = (r = exception) && r.__esModule ? r : { default: r };function n(t, e, r, a, i, n, s) {
  917. function l(e) {
  918. var i = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1],
  919. o = s;return !s || e == s[0] || e === t.nullContext && null === s[0] || (o = [e].concat(s)), r(t, e, t.helpers, t.partials, i.data || a, n && [i.blockParams].concat(n), o);
  920. }return (l = o(r, l, t, s, a, n)).program = e, l.depth = s ? s.length : 0, l.blockParams = i || 0, l;
  921. }function s() {
  922. return "";
  923. }function o(t, e, r, i, n, s) {
  924. if (t.decorator) {
  925. var o = {};e = t.decorator(e, o, r, i && i[0], n, s, i), a.extend(e, o);
  926. }return e;
  927. }
  928. });unwrapExports(runtime);var noConflict = createCommonjsModule(function (t, e) {
  929. e.__esModule = !0, e.default = function (t) {
  930. var e = void 0 !== commonjsGlobal ? commonjsGlobal : window,
  931. r = e.Handlebars;t.noConflict = function () {
  932. return e.Handlebars === t && (e.Handlebars = r), t;
  933. };
  934. }, t.exports = e.default;
  935. });unwrapExports(noConflict);var handlebars_runtime = createCommonjsModule(function (t, e) {
  936. function r(t) {
  937. return t && t.__esModule ? t : { default: t };
  938. }function a(t) {
  939. if (t && t.__esModule) return t;var e = {};if (null != t) for (var r in t) {
  940. Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
  941. }return e.default = t, e;
  942. }e.__esModule = !0;var i = a(base),
  943. n = r(safeString),
  944. s = r(exception),
  945. o = a(utils),
  946. l = a(runtime),
  947. c = r(noConflict);function u() {
  948. var t = new i.HandlebarsEnvironment();return o.extend(t, i), t.SafeString = n.default, t.Exception = s.default, t.Utils = o, t.escapeExpression = o.escapeExpression, t.VM = l, t.template = function (e) {
  949. return l.template(e, t);
  950. }, t;
  951. }var p = u();p.create = u, c.default(p), p.default = p, e.default = p, t.exports = e.default;
  952. });unwrapExports(handlebars_runtime);var ast = createCommonjsModule(function (t, e) {
  953. e.__esModule = !0;var r = { helpers: { helperExpression: function helperExpression(t) {
  954. return "SubExpression" === t.type || ("MustacheStatement" === t.type || "BlockStatement" === t.type) && !!(t.params && t.params.length || t.hash);
  955. }, scopedId: function scopedId(t) {
  956. return (/^\.|this\b/.test(t.original)
  957. );
  958. }, simpleId: function simpleId(t) {
  959. return 1 === t.parts.length && !r.helpers.scopedId(t) && !t.depth;
  960. } } };e.default = r, t.exports = e.default;
  961. });unwrapExports(ast);var parser = createCommonjsModule(function (t, e) {
  962. e.__esModule = !0;var r = function () {
  963. var t = { trace: function trace() {}, yy: {}, symbols_: { error: 2, root: 3, program: 4, EOF: 5, program_repetition0: 6, statement: 7, mustache: 8, block: 9, rawBlock: 10, partial: 11, partialBlock: 12, content: 13, COMMENT: 14, CONTENT: 15, openRawBlock: 16, rawBlock_repetition_plus0: 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, mustache_repetition0: 49, mustache_option0: 50, OPEN_UNESCAPED: 51, mustache_repetition1: 52, mustache_option1: 53, CLOSE_UNESCAPED: 54, OPEN_PARTIAL: 55, partialName: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, param: 63, sexpr: 64, OPEN_SEXPR: 65, sexpr_repetition0: 66, sexpr_option0: 67, CLOSE_SEXPR: 68, hash: 69, hash_repetition_plus0: 70, hashSegment: 71, ID: 72, EQUALS: 73, blockParams: 74, OPEN_BLOCK_PARAMS: 75, blockParams_repetition_plus0: 76, CLOSE_BLOCK_PARAMS: 77, path: 78, dataName: 79, STRING: 80, NUMBER: 81, BOOLEAN: 82, UNDEFINED: 83, NULL: 84, DATA: 85, pathSegments: 86, SEP: 87, $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", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "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], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 1], [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], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]], performAction: function performAction(t, e, r, a, i, n, s) {
  964. var o = n.length - 1;switch (i) {case 1:
  965. return n[o - 1];case 2:
  966. this.$ = a.prepareProgram(n[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:
  967. this.$ = n[o];break;case 9:
  968. this.$ = { type: "CommentStatement", value: a.stripComment(n[o]), strip: a.stripFlags(n[o], n[o]), loc: a.locInfo(this._$) };break;case 10:
  969. this.$ = { type: "ContentStatement", original: n[o], value: n[o], loc: a.locInfo(this._$) };break;case 11:
  970. this.$ = a.prepareRawBlock(n[o - 2], n[o - 1], n[o], this._$);break;case 12:
  971. this.$ = { path: n[o - 3], params: n[o - 2], hash: n[o - 1] };break;case 13:
  972. this.$ = a.prepareBlock(n[o - 3], n[o - 2], n[o - 1], n[o], !1, this._$);break;case 14:
  973. this.$ = a.prepareBlock(n[o - 3], n[o - 2], n[o - 1], n[o], !0, this._$);break;case 15:
  974. this.$ = { open: n[o - 5], path: n[o - 4], params: n[o - 3], hash: n[o - 2], blockParams: n[o - 1], strip: a.stripFlags(n[o - 5], n[o]) };break;case 16:case 17:
  975. this.$ = { path: n[o - 4], params: n[o - 3], hash: n[o - 2], blockParams: n[o - 1], strip: a.stripFlags(n[o - 5], n[o]) };break;case 18:
  976. this.$ = { strip: a.stripFlags(n[o - 1], n[o - 1]), program: n[o] };break;case 19:
  977. var l = a.prepareBlock(n[o - 2], n[o - 1], n[o], n[o], !1, this._$),
  978. c = a.prepareProgram([l], n[o - 1].loc);c.chained = !0, this.$ = { strip: n[o - 2].strip, program: c, chain: !0 };break;case 20:
  979. this.$ = n[o];break;case 21:
  980. this.$ = { path: n[o - 1], strip: a.stripFlags(n[o - 2], n[o]) };break;case 22:case 23:
  981. this.$ = a.prepareMustache(n[o - 3], n[o - 2], n[o - 1], n[o - 4], a.stripFlags(n[o - 4], n[o]), this._$);break;case 24:
  982. this.$ = { type: "PartialStatement", name: n[o - 3], params: n[o - 2], hash: n[o - 1], indent: "", strip: a.stripFlags(n[o - 4], n[o]), loc: a.locInfo(this._$) };break;case 25:
  983. this.$ = a.preparePartialBlock(n[o - 2], n[o - 1], n[o], this._$);break;case 26:
  984. this.$ = { path: n[o - 3], params: n[o - 2], hash: n[o - 1], strip: a.stripFlags(n[o - 4], n[o]) };break;case 27:case 28:
  985. this.$ = n[o];break;case 29:
  986. this.$ = { type: "SubExpression", path: n[o - 3], params: n[o - 2], hash: n[o - 1], loc: a.locInfo(this._$) };break;case 30:
  987. this.$ = { type: "Hash", pairs: n[o], loc: a.locInfo(this._$) };break;case 31:
  988. this.$ = { type: "HashPair", key: a.id(n[o - 2]), value: n[o], loc: a.locInfo(this._$) };break;case 32:
  989. this.$ = a.id(n[o - 1]);break;case 33:case 34:
  990. this.$ = n[o];break;case 35:
  991. this.$ = { type: "StringLiteral", value: n[o], original: n[o], loc: a.locInfo(this._$) };break;case 36:
  992. this.$ = { type: "NumberLiteral", value: Number(n[o]), original: Number(n[o]), loc: a.locInfo(this._$) };break;case 37:
  993. this.$ = { type: "BooleanLiteral", value: "true" === n[o], original: "true" === n[o], loc: a.locInfo(this._$) };break;case 38:
  994. this.$ = { type: "UndefinedLiteral", original: void 0, value: void 0, loc: a.locInfo(this._$) };break;case 39:
  995. this.$ = { type: "NullLiteral", original: null, value: null, loc: a.locInfo(this._$) };break;case 40:case 41:
  996. this.$ = n[o];break;case 42:
  997. this.$ = a.preparePath(!0, n[o], this._$);break;case 43:
  998. this.$ = a.preparePath(!1, n[o], this._$);break;case 44:
  999. n[o - 2].push({ part: a.id(n[o]), original: n[o], separator: n[o - 1] }), this.$ = n[o - 2];break;case 45:
  1000. this.$ = [{ part: a.id(n[o]), original: n[o] }];break;case 46:
  1001. this.$ = [];break;case 47:
  1002. n[o - 1].push(n[o]);break;case 48:
  1003. this.$ = [n[o]];break;case 49:
  1004. n[o - 1].push(n[o]);break;case 50:
  1005. this.$ = [];break;case 51:
  1006. n[o - 1].push(n[o]);break;case 58:
  1007. this.$ = [];break;case 59:
  1008. n[o - 1].push(n[o]);break;case 64:
  1009. this.$ = [];break;case 65:
  1010. n[o - 1].push(n[o]);break;case 70:
  1011. this.$ = [];break;case 71:
  1012. n[o - 1].push(n[o]);break;case 78:
  1013. this.$ = [];break;case 79:
  1014. n[o - 1].push(n[o]);break;case 82:
  1015. this.$ = [];break;case 83:
  1016. n[o - 1].push(n[o]);break;case 86:
  1017. this.$ = [];break;case 87:
  1018. n[o - 1].push(n[o]);break;case 90:
  1019. this.$ = [];break;case 91:
  1020. n[o - 1].push(n[o]);break;case 94:
  1021. this.$ = [];break;case 95:
  1022. n[o - 1].push(n[o]);break;case 98:
  1023. this.$ = [n[o]];break;case 99:
  1024. n[o - 1].push(n[o]);break;case 100:
  1025. this.$ = [n[o]];break;case 101:
  1026. n[o - 1].push(n[o]);}
  1027. }, table: [{ 3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 1: [3] }, { 5: [1, 4] }, { 5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24] }, { 1: [2, 1] }, { 5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47] }, { 5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3] }, { 5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4] }, { 5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5] }, { 5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6] }, { 5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7] }, { 5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8] }, { 5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9] }, { 20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 13: 40, 15: [1, 20], 17: 39 }, { 20: 42, 56: 41, 64: 43, 65: [1, 44], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 45, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10] }, { 20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 48, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 42, 56: 49, 64: 43, 65: [1, 44], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [2, 78], 49: 50, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78] }, { 23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33] }, { 23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34] }, { 23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35] }, { 23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36] }, { 23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37] }, { 23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38] }, { 23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39] }, { 23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 51] }, { 72: [1, 35], 86: 52 }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 52: 53, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82] }, { 25: 54, 38: 56, 39: [1, 58], 43: 57, 44: [1, 59], 45: 55, 47: [2, 54] }, { 28: 60, 43: 61, 44: [1, 59], 47: [2, 56] }, { 13: 63, 15: [1, 20], 18: [1, 62] }, { 15: [2, 48], 18: [2, 48] }, { 33: [2, 86], 57: 64, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86] }, { 33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40] }, { 33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41] }, { 20: 65, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 66, 47: [1, 67] }, { 30: 68, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58] }, { 33: [2, 64], 35: 69, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64] }, { 21: 70, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50] }, { 33: [2, 90], 61: 71, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90] }, { 20: 75, 33: [2, 80], 50: 72, 63: 73, 64: 76, 65: [1, 44], 69: 74, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 72: [1, 80] }, { 23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 51] }, { 20: 75, 53: 81, 54: [2, 84], 63: 82, 64: 76, 65: [1, 44], 69: 83, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 84, 47: [1, 67] }, { 47: [2, 55] }, { 4: 85, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 47: [2, 20] }, { 20: 86, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 87, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 26: 88, 47: [1, 67] }, { 47: [2, 57] }, { 5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11] }, { 15: [2, 49], 18: [2, 49] }, { 20: 75, 33: [2, 88], 58: 89, 63: 90, 64: 76, 65: [1, 44], 69: 91, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 65: [2, 94], 66: 92, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94] }, { 5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25] }, { 20: 93, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 31: 94, 33: [2, 60], 63: 95, 64: 76, 65: [1, 44], 69: 96, 70: 77, 71: 78, 72: [1, 79], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 33: [2, 66], 36: 97, 63: 98, 64: 76, 65: [1, 44], 69: 99, 70: 77, 71: 78, 72: [1, 79], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 22: 100, 23: [2, 52], 63: 101, 64: 76, 65: [1, 44], 69: 102, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 33: [2, 92], 62: 103, 63: 104, 64: 76, 65: [1, 44], 69: 105, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 106] }, { 33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79] }, { 33: [2, 81] }, { 23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27] }, { 23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28] }, { 23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 107, 72: [1, 108], 75: [2, 30] }, { 23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98] }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 109], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44] }, { 54: [1, 110] }, { 54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83] }, { 54: [2, 85] }, { 5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13] }, { 38: 56, 39: [1, 58], 43: 57, 44: [1, 59], 45: 112, 46: 111, 47: [2, 76] }, { 33: [2, 70], 40: 113, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70] }, { 47: [2, 18] }, { 5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14] }, { 33: [1, 114] }, { 33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87] }, { 33: [2, 89] }, { 20: 75, 63: 116, 64: 76, 65: [1, 44], 67: 115, 68: [2, 96], 69: 117, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 118] }, { 32: 119, 33: [2, 62], 74: 120, 75: [1, 121] }, { 33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59] }, { 33: [2, 61], 75: [2, 61] }, { 33: [2, 68], 37: 122, 74: 123, 75: [1, 121] }, { 33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65] }, { 33: [2, 67], 75: [2, 67] }, { 23: [1, 124] }, { 23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51] }, { 23: [2, 53] }, { 33: [1, 125] }, { 33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91] }, { 33: [2, 93] }, { 5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22] }, { 23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99] }, { 73: [1, 109] }, { 20: 75, 63: 126, 64: 76, 65: [1, 44], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23] }, { 47: [2, 19] }, { 47: [2, 77] }, { 20: 75, 33: [2, 72], 41: 127, 63: 128, 64: 76, 65: [1, 44], 69: 129, 70: 77, 71: 78, 72: [1, 79], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24] }, { 68: [1, 130] }, { 65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95] }, { 68: [2, 97] }, { 5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21] }, { 33: [1, 131] }, { 33: [2, 63] }, { 72: [1, 133], 76: 132 }, { 33: [1, 134] }, { 33: [2, 69] }, { 15: [2, 12] }, { 14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26] }, { 23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31] }, { 33: [2, 74], 42: 135, 74: 136, 75: [1, 121] }, { 33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71] }, { 33: [2, 73], 75: [2, 73] }, { 23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29] }, { 14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15] }, { 72: [1, 138], 77: [1, 137] }, { 72: [2, 100], 77: [2, 100] }, { 14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16] }, { 33: [1, 139] }, { 33: [2, 75] }, { 33: [2, 32] }, { 72: [2, 101], 77: [2, 101] }, { 14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17] }], defaultActions: { 4: [2, 1], 55: [2, 55], 57: [2, 20], 61: [2, 57], 74: [2, 81], 83: [2, 85], 87: [2, 18], 91: [2, 89], 102: [2, 53], 105: [2, 93], 111: [2, 19], 112: [2, 77], 117: [2, 97], 120: [2, 63], 123: [2, 69], 124: [2, 12], 136: [2, 75], 137: [2, 32] }, parseError: function parseError(t, e) {
  1028. throw new Error(t);
  1029. }, parse: function parse(t) {
  1030. var e = this,
  1031. r = [0],
  1032. a = [null],
  1033. i = [],
  1034. n = this.table,
  1035. s = "",
  1036. o = 0,
  1037. l = 0,
  1038. c = 0;this.lexer.setInput(t), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, void 0 === this.lexer.yylloc && (this.lexer.yylloc = {});var u = this.lexer.yylloc;i.push(u);var p = this.lexer.options && this.lexer.options.ranges;"function" == typeof this.yy.parseError && (this.parseError = this.yy.parseError);for (var h, d, m, f, g, b, v, y, k, S, w = {};;) {
  1039. if (m = r[r.length - 1], this.defaultActions[m] ? f = this.defaultActions[m] : (null !== h && void 0 !== h || (S = void 0, "number" != typeof (S = e.lexer.lex() || 1) && (S = e.symbols_[S] || S), h = S), f = n[m] && n[m][h]), void 0 === f || !f.length || !f[0]) {
  1040. var E = "";if (!c) {
  1041. for (b in k = [], n[m]) {
  1042. this.terminals_[b] && b > 2 && k.push("'" + this.terminals_[b] + "'");
  1043. }E = this.lexer.showPosition ? "Parse error on line " + (o + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + k.join(", ") + ", got '" + (this.terminals_[h] || h) + "'" : "Parse error on line " + (o + 1) + ": Unexpected " + (1 == h ? "end of input" : "'" + (this.terminals_[h] || h) + "'"), this.parseError(E, { text: this.lexer.match, token: this.terminals_[h] || h, line: this.lexer.yylineno, loc: u, expected: k });
  1044. }
  1045. }if (f[0] instanceof Array && f.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + m + ", token: " + h);switch (f[0]) {case 1:
  1046. r.push(h), a.push(this.lexer.yytext), i.push(this.lexer.yylloc), r.push(f[1]), h = null, d ? (h = d, d = null) : (l = this.lexer.yyleng, s = this.lexer.yytext, o = this.lexer.yylineno, u = this.lexer.yylloc, c > 0 && c--);break;case 2:
  1047. if (v = this.productions_[f[1]][1], w.$ = a[a.length - v], w._$ = { first_line: i[i.length - (v || 1)].first_line, last_line: i[i.length - 1].last_line, first_column: i[i.length - (v || 1)].first_column, last_column: i[i.length - 1].last_column }, p && (w._$.range = [i[i.length - (v || 1)].range[0], i[i.length - 1].range[1]]), void 0 !== (g = this.performAction.call(w, s, l, o, this.yy, f[1], a, i))) return g;v && (r = r.slice(0, -1 * v * 2), a = a.slice(0, -1 * v), i = i.slice(0, -1 * v)), r.push(this.productions_[f[1]][0]), a.push(w.$), i.push(w._$), y = n[r[r.length - 2]][r[r.length - 1]], r.push(y);break;case 3:
  1048. return !0;}
  1049. }return !0;
  1050. } },
  1051. e = function () {
  1052. var t = { EOF: 1, parseError: function parseError(t, e) {
  1053. if (!this.yy.parser) throw new Error(t);this.yy.parser.parseError(t, e);
  1054. }, setInput: function setInput(t) {
  1055. return this._input = t, this._more = this._less = 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;
  1056. }, input: function input() {
  1057. var t = this._input[0];return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.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), t;
  1058. }, unput: function unput(t) {
  1059. var e = t.length,
  1060. r = t.split(/(?:\r\n?|\n)/g);this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e - 1), this.offset -= e;var a = 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 i = 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 === a.length ? this.yylloc.first_column : 0) + a[a.length - r.length].length - r[0].length : this.yylloc.first_column - e }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - e]), this;
  1061. }, more: function more() {
  1062. return this._more = !0, this;
  1063. }, less: function less(t) {
  1064. this.unput(this.match.slice(t));
  1065. }, pastInput: function pastInput() {
  1066. var t = this.matched.substr(0, this.matched.length - this.match.length);return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
  1067. }, upcomingInput: function upcomingInput() {
  1068. var t = this.match;return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
  1069. }, showPosition: function showPosition() {
  1070. var t = this.pastInput(),
  1071. e = new Array(t.length + 1).join("-");return t + this.upcomingInput() + "\n" + e + "^";
  1072. }, next: function next() {
  1073. if (this.done) return this.EOF;var t, e, r, a, i;this._input || (this.done = !0), this._more || (this.yytext = "", this.match = "");for (var n = this._currentRules(), s = 0; s < n.length && (!(r = this._input.match(this.rules[n[s]])) || e && !(r[0].length > e[0].length) || (e = r, a = s, this.options.flex)); s++) {}return e ? ((i = e[0].match(/(?:\r\n?|\n).*/g)) && (this.yylineno += i.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: i ? i[i.length - 1].length - i[i.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._input = this._input.slice(e[0].length), this.matched += e[0], t = this.performAction.call(this, this.yy, this, n[a], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), t || void 0) : "" === this._input ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { text: "", token: null, line: this.yylineno });
  1074. }, lex: function lex() {
  1075. var t = this.next();return void 0 !== t ? t : this.lex();
  1076. }, begin: function begin(t) {
  1077. this.conditionStack.push(t);
  1078. }, popState: function popState() {
  1079. return this.conditionStack.pop();
  1080. }, _currentRules: function _currentRules() {
  1081. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  1082. }, topState: function topState() {
  1083. return this.conditionStack[this.conditionStack.length - 2];
  1084. }, pushState: function pushState(t) {
  1085. this.begin(t);
  1086. }, options: {}, performAction: function performAction(t, e, r, a) {
  1087. function i(t, r) {
  1088. return e.yytext = e.yytext.substr(t, e.yyleng - r);
  1089. }switch (r) {case 0:
  1090. if ("\\\\" === e.yytext.slice(-2) ? (i(0, 1), this.begin("mu")) : "\\" === e.yytext.slice(-1) ? (i(0, 1), this.begin("emu")) : this.begin("mu"), e.yytext) return 15;break;case 1:
  1091. return 15;case 2:
  1092. return this.popState(), 15;case 3:
  1093. return this.begin("raw"), 15;case 4:
  1094. return this.popState(), "raw" === this.conditionStack[this.conditionStack.length - 1] ? 15 : (e.yytext = e.yytext.substr(5, e.yyleng - 9), "END_RAW_BLOCK");case 5:
  1095. return 15;case 6:
  1096. return this.popState(), 14;case 7:
  1097. return 65;case 8:
  1098. return 68;case 9:
  1099. return 19;case 10:
  1100. return this.popState(), this.begin("raw"), 23;case 11:
  1101. return 55;case 12:
  1102. return 60;case 13:
  1103. return 29;case 14:
  1104. return 47;case 15:case 16:
  1105. return this.popState(), 44;case 17:
  1106. return 34;case 18:
  1107. return 39;case 19:
  1108. return 51;case 20:
  1109. return 48;case 21:
  1110. this.unput(e.yytext), this.popState(), this.begin("com");break;case 22:
  1111. return this.popState(), 14;case 23:
  1112. return 48;case 24:
  1113. return 73;case 25:case 26:
  1114. return 72;case 27:
  1115. return 87;case 28:
  1116. break;case 29:
  1117. return this.popState(), 54;case 30:
  1118. return this.popState(), 33;case 31:
  1119. return e.yytext = i(1, 2).replace(/\\"/g, '"'), 80;case 32:
  1120. return e.yytext = i(1, 2).replace(/\\'/g, "'"), 80;case 33:
  1121. return 85;case 34:case 35:
  1122. return 82;case 36:
  1123. return 83;case 37:
  1124. return 84;case 38:
  1125. return 81;case 39:
  1126. return 75;case 40:
  1127. return 77;case 41:
  1128. return 72;case 42:
  1129. return e.yytext = e.yytext.replace(/\\([\\\]])/g, "$1"), 72;case 43:
  1130. return "INVALID";case 44:
  1131. return 5;}
  1132. }, 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 t;
  1133. }();function r() {
  1134. this.yy = {};
  1135. }return t.lexer = e, r.prototype = t, t.Parser = r, new r();
  1136. }();e.default = r, t.exports = e.default;
  1137. });unwrapExports(parser);var visitor = createCommonjsModule(function (t, e) {
  1138. e.__esModule = !0;var r,
  1139. a = (r = exception) && r.__esModule ? r : { default: r };function i() {
  1140. this.parents = [];
  1141. }function n(t) {
  1142. this.acceptRequired(t, "path"), this.acceptArray(t.params), this.acceptKey(t, "hash");
  1143. }function s(t) {
  1144. n.call(this, t), this.acceptKey(t, "program"), this.acceptKey(t, "inverse");
  1145. }function o(t) {
  1146. this.acceptRequired(t, "name"), this.acceptArray(t.params), this.acceptKey(t, "hash");
  1147. }i.prototype = { constructor: i, mutating: !1, acceptKey: function acceptKey(t, e) {
  1148. var r = this.accept(t[e]);if (this.mutating) {
  1149. if (r && !i.prototype[r.type]) throw new a.default('Unexpected node type "' + r.type + '" found when accepting ' + e + " on " + t.type);t[e] = r;
  1150. }
  1151. }, acceptRequired: function acceptRequired(t, e) {
  1152. if (this.acceptKey(t, e), !t[e]) throw new a.default(t.type + " requires " + e);
  1153. }, acceptArray: function acceptArray(t) {
  1154. for (var e = 0, r = t.length; e < r; e++) {
  1155. this.acceptKey(t, e), t[e] || (t.splice(e, 1), e--, r--);
  1156. }
  1157. }, accept: function accept(t) {
  1158. if (t) {
  1159. if (!this[t.type]) throw new a.default("Unknown type: " + t.type, t);this.current && this.parents.unshift(this.current), this.current = t;var e = this[t.type](t);return this.current = this.parents.shift(), !this.mutating || e ? e : !1 !== e ? t : void 0;
  1160. }
  1161. }, Program: function Program(t) {
  1162. this.acceptArray(t.body);
  1163. }, MustacheStatement: n, Decorator: n, BlockStatement: s, DecoratorBlock: s, PartialStatement: o, PartialBlockStatement: function PartialBlockStatement(t) {
  1164. o.call(this, t), this.acceptKey(t, "program");
  1165. }, ContentStatement: function ContentStatement() {}, CommentStatement: function CommentStatement() {}, SubExpression: n, PathExpression: function PathExpression() {}, StringLiteral: function StringLiteral() {}, NumberLiteral: function NumberLiteral() {}, BooleanLiteral: function BooleanLiteral() {}, UndefinedLiteral: function UndefinedLiteral() {}, NullLiteral: function NullLiteral() {}, Hash: function Hash(t) {
  1166. this.acceptArray(t.pairs);
  1167. }, HashPair: function HashPair(t) {
  1168. this.acceptRequired(t, "value");
  1169. } }, e.default = i, t.exports = e.default;
  1170. });unwrapExports(visitor);var whitespaceControl = createCommonjsModule(function (t, e) {
  1171. e.__esModule = !0;var r,
  1172. a = (r = visitor) && r.__esModule ? r : { default: r };function i() {
  1173. var t = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0];this.options = t;
  1174. }function n(t, e, r) {
  1175. void 0 === e && (e = t.length);var a = t[e - 1],
  1176. i = t[e - 2];return a ? "ContentStatement" === a.type ? (i || !r ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(a.original) : void 0 : r;
  1177. }function s(t, e, r) {
  1178. void 0 === e && (e = -1);var a = t[e + 1],
  1179. i = t[e + 2];return a ? "ContentStatement" === a.type ? (i || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(a.original) : void 0 : r;
  1180. }function o(t, e, r) {
  1181. var a = t[null == e ? 0 : e + 1];if (a && "ContentStatement" === a.type && (r || !a.rightStripped)) {
  1182. var i = a.value;a.value = a.value.replace(r ? /^\s+/ : /^[ \t]*\r?\n?/, ""), a.rightStripped = a.value !== i;
  1183. }
  1184. }function l(t, e, r) {
  1185. var a = t[null == e ? t.length - 1 : e - 1];if (a && "ContentStatement" === a.type && (r || !a.leftStripped)) {
  1186. var i = a.value;return a.value = a.value.replace(r ? /\s+$/ : /[ \t]+$/, ""), a.leftStripped = a.value !== i, a.leftStripped;
  1187. }
  1188. }i.prototype = new a.default(), i.prototype.Program = function (t) {
  1189. var e = !this.options.ignoreStandalone,
  1190. r = !this.isRootSeen;this.isRootSeen = !0;for (var a = t.body, i = 0, c = a.length; i < c; i++) {
  1191. var u = a[i],
  1192. p = this.accept(u);if (p) {
  1193. var h = n(a, i, r),
  1194. d = s(a, i, r),
  1195. m = p.openStandalone && h,
  1196. f = p.closeStandalone && d,
  1197. g = p.inlineStandalone && h && d;p.close && o(a, i, !0), p.open && l(a, i, !0), e && g && (o(a, i), l(a, i) && "PartialStatement" === u.type && (u.indent = /([ \t]+$)/.exec(a[i - 1].original)[1])), e && m && (o((u.program || u.inverse).body), l(a, i)), e && f && (o(a, i), l((u.inverse || u.program).body));
  1198. }
  1199. }return t;
  1200. }, i.prototype.BlockStatement = i.prototype.DecoratorBlock = i.prototype.PartialBlockStatement = function (t) {
  1201. this.accept(t.program), this.accept(t.inverse);var e = t.program || t.inverse,
  1202. r = t.program && t.inverse,
  1203. a = r,
  1204. i = r;if (r && r.chained) for (a = r.body[0].program; i.chained;) {
  1205. i = i.body[i.body.length - 1].program;
  1206. }var c = { open: t.openStrip.open, close: t.closeStrip.close, openStandalone: s(e.body), closeStandalone: n((a || e).body) };if (t.openStrip.close && o(e.body, null, !0), r) {
  1207. var u = t.inverseStrip;u.open && l(e.body, null, !0), u.close && o(a.body, null, !0), t.closeStrip.open && l(i.body, null, !0), !this.options.ignoreStandalone && n(e.body) && s(a.body) && (l(e.body), o(a.body));
  1208. } else t.closeStrip.open && l(e.body, null, !0);return c;
  1209. }, i.prototype.Decorator = i.prototype.MustacheStatement = function (t) {
  1210. return t.strip;
  1211. }, i.prototype.PartialStatement = i.prototype.CommentStatement = function (t) {
  1212. var e = t.strip || {};return { inlineStandalone: !0, open: e.open, close: e.close };
  1213. }, e.default = i, t.exports = e.default;
  1214. });unwrapExports(whitespaceControl);var helpers$2 = createCommonjsModule(function (t, e) {
  1215. e.__esModule = !0, e.SourceLocation = function (t, e) {
  1216. this.source = t, this.start = { line: e.first_line, column: e.first_column }, this.end = { line: e.last_line, column: e.last_column };
  1217. }, e.id = function (t) {
  1218. return (/^\[.*\]$/.test(t) ? t.substr(1, t.length - 2) : t
  1219. );
  1220. }, e.stripFlags = function (t, e) {
  1221. return { open: "~" === t.charAt(2), close: "~" === e.charAt(e.length - 3) };
  1222. }, e.stripComment = function (t) {
  1223. return t.replace(/^\{\{~?\!-?-?/, "").replace(/-?-?~?\}\}$/, "");
  1224. }, e.preparePath = function (t, e, r) {
  1225. r = this.locInfo(r);for (var i = t ? "@" : "", n = [], s = 0, o = 0, l = e.length; o < l; o++) {
  1226. var c = e[o].part,
  1227. u = e[o].original !== c;if (i += (e[o].separator || "") + c, u || ".." !== c && "." !== c && "this" !== c) n.push(c);else {
  1228. if (n.length > 0) throw new a.default("Invalid path: " + i, { loc: r });".." === c && (s++, "../");
  1229. }
  1230. }return { type: "PathExpression", data: t, depth: s, parts: n, original: i, loc: r };
  1231. }, e.prepareMustache = function (t, e, r, a, i, n) {
  1232. var s = a.charAt(3) || a.charAt(2),
  1233. o = "{" !== s && "&" !== s;return { type: /\*/.test(a) ? "Decorator" : "MustacheStatement", path: t, params: e, hash: r, escaped: o, strip: i, loc: this.locInfo(n) };
  1234. }, e.prepareRawBlock = function (t, e, r, a) {
  1235. i(t, r), a = this.locInfo(a);var n = { type: "Program", body: e, strip: {}, loc: a };return { type: "BlockStatement", path: t.path, params: t.params, hash: t.hash, program: n, openStrip: {}, inverseStrip: {}, closeStrip: {}, loc: a };
  1236. }, e.prepareBlock = function (t, e, r, n, s, o) {
  1237. n && n.path && i(t, n);var l = /\*/.test(t.open);e.blockParams = t.blockParams;var c = void 0,
  1238. u = void 0;if (r) {
  1239. if (l) throw new a.default("Unexpected inverse block on decorator", r);r.chain && (r.program.body[0].closeStrip = n.strip), u = r.strip, c = r.program;
  1240. }s && (s = c, c = e, e = s);return { type: l ? "DecoratorBlock" : "BlockStatement", path: t.path, params: t.params, hash: t.hash, program: e, inverse: c, openStrip: t.strip, inverseStrip: u, closeStrip: n && n.strip, loc: this.locInfo(o) };
  1241. }, e.prepareProgram = function (t, e) {
  1242. if (!e && t.length) {
  1243. var r = t[0].loc,
  1244. a = t[t.length - 1].loc;r && a && (e = { source: r.source, start: { line: r.start.line, column: r.start.column }, end: { line: a.end.line, column: a.end.column } });
  1245. }return { type: "Program", body: t, strip: {}, loc: e };
  1246. }, e.preparePartialBlock = function (t, e, r, a) {
  1247. return i(t, r), { type: "PartialBlockStatement", name: t.path, params: t.params, hash: t.hash, program: e, openStrip: t.strip, closeStrip: r && r.strip, loc: this.locInfo(a) };
  1248. };var r,
  1249. a = (r = exception) && r.__esModule ? r : { default: r };function i(t, e) {
  1250. if (e = e.path ? e.path.original : e, t.path.original !== e) {
  1251. var r = { loc: t.path.loc };throw new a.default(t.path.original + " doesn't match " + e, r);
  1252. }
  1253. }
  1254. });unwrapExports(helpers$2);var base$2 = createCommonjsModule(function (t, e) {
  1255. function r(t) {
  1256. return t && t.__esModule ? t : { default: t };
  1257. }e.__esModule = !0, e.parse = function (t, e) {
  1258. if ("Program" === t.type) return t;return a.default.yy = s, s.locInfo = function (t) {
  1259. return new s.SourceLocation(e && e.srcName, t);
  1260. }, new i.default(e).accept(a.default.parse(t));
  1261. };var a = r(parser),
  1262. i = r(whitespaceControl),
  1263. n = function (t) {
  1264. if (t && t.__esModule) return t;var e = {};if (null != t) for (var r in t) {
  1265. Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
  1266. }return e.default = t, e;
  1267. }(helpers$2);e.parser = a.default;var s = {};utils.extend(s, n);
  1268. });unwrapExports(base$2);var compiler = createCommonjsModule(function (t, e) {
  1269. function r(t) {
  1270. return t && t.__esModule ? t : { default: t };
  1271. }e.__esModule = !0, e.Compiler = s, e.precompile = function (t, e, r) {
  1272. if (null == t || "string" != typeof t && "Program" !== t.type) throw new a.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + t);"data" in (e = e || {}) || (e.data = !0);e.compat && (e.useDepths = !0);var i = r.parse(t, e),
  1273. n = new r.Compiler().compile(i, e);return new r.JavaScriptCompiler().compile(n, e);
  1274. }, e.compile = function (t, e, r) {
  1275. void 0 === e && (e = {});if (null == t || "string" != typeof t && "Program" !== t.type) throw new a.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + t);"data" in (e = utils.extend({}, e)) || (e.data = !0);e.compat && (e.useDepths = !0);var i = void 0;function n() {
  1276. var a = r.parse(t, e),
  1277. i = new r.Compiler().compile(a, e),
  1278. n = new r.JavaScriptCompiler().compile(i, e, void 0, !0);return r.template(n);
  1279. }function s(t, e) {
  1280. return i || (i = n()), i.call(this, t, e);
  1281. }return s._setup = function (t) {
  1282. return i || (i = n()), i._setup(t);
  1283. }, s._child = function (t, e, r, a) {
  1284. return i || (i = n()), i._child(t, e, r, a);
  1285. }, s;
  1286. };var a = r(exception),
  1287. i = r(ast),
  1288. n = [].slice;function s() {}function o(t, e) {
  1289. if (t === e) return !0;if (utils.isArray(t) && utils.isArray(e) && t.length === e.length) {
  1290. for (var r = 0; r < t.length; r++) {
  1291. if (!o(t[r], e[r])) return !1;
  1292. }return !0;
  1293. }
  1294. }function l(t) {
  1295. if (!t.path.parts) {
  1296. var e = t.path;t.path = { type: "PathExpression", data: !1, depth: 0, parts: [e.original + ""], original: e.original + "", loc: e.loc };
  1297. }
  1298. }s.prototype = { compiler: s, equals: function equals(t) {
  1299. var e = this.opcodes.length;if (t.opcodes.length !== e) return !1;for (var r = 0; r < e; r++) {
  1300. var a = this.opcodes[r],
  1301. i = t.opcodes[r];if (a.opcode !== i.opcode || !o(a.args, i.args)) return !1;
  1302. }e = this.children.length;for (r = 0; r < e; r++) {
  1303. if (!this.children[r].equals(t.children[r])) return !1;
  1304. }return !0;
  1305. }, guid: 0, compile: function compile(t, e) {
  1306. this.sourceNode = [], this.opcodes = [], this.children = [], this.options = e, this.stringParams = e.stringParams, this.trackIds = e.trackIds, e.blockParams = e.blockParams || [];var r = e.knownHelpers;if (e.knownHelpers = { helperMissing: !0, blockHelperMissing: !0, each: !0, if: !0, unless: !0, with: !0, log: !0, lookup: !0 }, r) for (var a in r) {
  1307. a in r && (this.options.knownHelpers[a] = r[a]);
  1308. }return this.accept(t);
  1309. }, compileProgram: function compileProgram(t) {
  1310. var e = new this.compiler().compile(t, this.options),
  1311. r = this.guid++;return this.usePartial = this.usePartial || e.usePartial, this.children[r] = e, this.useDepths = this.useDepths || e.useDepths, r;
  1312. }, accept: function accept(t) {
  1313. if (!this[t.type]) throw new a.default("Unknown type: " + t.type, t);this.sourceNode.unshift(t);var e = this[t.type](t);return this.sourceNode.shift(), e;
  1314. }, Program: function Program(t) {
  1315. this.options.blockParams.unshift(t.blockParams);for (var e = t.body, r = e.length, a = 0; a < r; a++) {
  1316. this.accept(e[a]);
  1317. }return this.options.blockParams.shift(), this.isSimple = 1 === r, this.blockParams = t.blockParams ? t.blockParams.length : 0, this;
  1318. }, BlockStatement: function BlockStatement(t) {
  1319. l(t);var e = t.program,
  1320. r = t.inverse;e = e && this.compileProgram(e), r = r && this.compileProgram(r);var a = this.classifySexpr(t);"helper" === a ? this.helperSexpr(t, e, r) : "simple" === a ? (this.simpleSexpr(t), this.opcode("pushProgram", e), this.opcode("pushProgram", r), this.opcode("emptyHash"), this.opcode("blockValue", t.path.original)) : (this.ambiguousSexpr(t, e, r), this.opcode("pushProgram", e), this.opcode("pushProgram", r), this.opcode("emptyHash"), this.opcode("ambiguousBlockValue")), this.opcode("append");
  1321. }, DecoratorBlock: function DecoratorBlock(t) {
  1322. var e = t.program && this.compileProgram(t.program),
  1323. r = this.setupFullMustacheParams(t, e, void 0),
  1324. a = t.path;this.useDecorators = !0, this.opcode("registerDecorator", r.length, a.original);
  1325. }, PartialStatement: function PartialStatement(t) {
  1326. this.usePartial = !0;var e = t.program;e && (e = this.compileProgram(t.program));var r = t.params;if (r.length > 1) throw new a.default("Unsupported number of partial arguments: " + r.length, t);r.length || (this.options.explicitPartialContext ? this.opcode("pushLiteral", "undefined") : r.push({ type: "PathExpression", parts: [], depth: 0 }));var i = t.name.original,
  1327. n = "SubExpression" === t.name.type;n && this.accept(t.name), this.setupFullMustacheParams(t, e, void 0, !0);var s = t.indent || "";this.options.preventIndent && s && (this.opcode("appendContent", s), s = ""), this.opcode("invokePartial", n, i, s), this.opcode("append");
  1328. }, PartialBlockStatement: function PartialBlockStatement(t) {
  1329. this.PartialStatement(t);
  1330. }, MustacheStatement: function MustacheStatement(t) {
  1331. this.SubExpression(t), t.escaped && !this.options.noEscape ? this.opcode("appendEscaped") : this.opcode("append");
  1332. }, Decorator: function Decorator(t) {
  1333. this.DecoratorBlock(t);
  1334. }, ContentStatement: function ContentStatement(t) {
  1335. t.value && this.opcode("appendContent", t.value);
  1336. }, CommentStatement: function CommentStatement() {}, SubExpression: function SubExpression(t) {
  1337. l(t);var e = this.classifySexpr(t);"simple" === e ? this.simpleSexpr(t) : "helper" === e ? this.helperSexpr(t) : this.ambiguousSexpr(t);
  1338. }, ambiguousSexpr: function ambiguousSexpr(t, e, r) {
  1339. var a = t.path,
  1340. i = a.parts[0],
  1341. n = null != e || null != r;this.opcode("getContext", a.depth), this.opcode("pushProgram", e), this.opcode("pushProgram", r), a.strict = !0, this.accept(a), this.opcode("invokeAmbiguous", i, n);
  1342. }, simpleSexpr: function simpleSexpr(t) {
  1343. var e = t.path;e.strict = !0, this.accept(e), this.opcode("resolvePossibleLambda");
  1344. }, helperSexpr: function helperSexpr(t, e, r) {
  1345. var n = this.setupFullMustacheParams(t, e, r),
  1346. s = t.path,
  1347. o = s.parts[0];if (this.options.knownHelpers[o]) this.opcode("invokeKnownHelper", n.length, o);else {
  1348. if (this.options.knownHelpersOnly) throw new a.default("You specified knownHelpersOnly, but used the unknown helper " + o, t);s.strict = !0, s.falsy = !0, this.accept(s), this.opcode("invokeHelper", n.length, s.original, i.default.helpers.simpleId(s));
  1349. }
  1350. }, PathExpression: function PathExpression(t) {
  1351. this.addDepth(t.depth), this.opcode("getContext", t.depth);var e = t.parts[0],
  1352. r = i.default.helpers.scopedId(t),
  1353. a = !t.depth && !r && this.blockParamIndex(e);a ? this.opcode("lookupBlockParam", a, t.parts) : e ? t.data ? (this.options.data = !0, this.opcode("lookupData", t.depth, t.parts, t.strict)) : this.opcode("lookupOnContext", t.parts, t.falsy, t.strict, r) : this.opcode("pushContext");
  1354. }, StringLiteral: function StringLiteral(t) {
  1355. this.opcode("pushString", t.value);
  1356. }, NumberLiteral: function NumberLiteral(t) {
  1357. this.opcode("pushLiteral", t.value);
  1358. }, BooleanLiteral: function BooleanLiteral(t) {
  1359. this.opcode("pushLiteral", t.value);
  1360. }, UndefinedLiteral: function UndefinedLiteral() {
  1361. this.opcode("pushLiteral", "undefined");
  1362. }, NullLiteral: function NullLiteral() {
  1363. this.opcode("pushLiteral", "null");
  1364. }, Hash: function Hash(t) {
  1365. var e = t.pairs,
  1366. r = 0,
  1367. a = e.length;for (this.opcode("pushHash"); r < a; r++) {
  1368. this.pushParam(e[r].value);
  1369. }for (; r--;) {
  1370. this.opcode("assignToHash", e[r].key);
  1371. }this.opcode("popHash");
  1372. }, opcode: function opcode(t) {
  1373. this.opcodes.push({ opcode: t, args: n.call(arguments, 1), loc: this.sourceNode[0].loc });
  1374. }, addDepth: function addDepth(t) {
  1375. t && (this.useDepths = !0);
  1376. }, classifySexpr: function classifySexpr(t) {
  1377. var e = i.default.helpers.simpleId(t.path),
  1378. r = e && !!this.blockParamIndex(t.path.parts[0]),
  1379. a = !r && i.default.helpers.helperExpression(t),
  1380. n = !r && (a || e);if (n && !a) {
  1381. var s = t.path.parts[0],
  1382. o = this.options;o.knownHelpers[s] ? a = !0 : o.knownHelpersOnly && (n = !1);
  1383. }return a ? "helper" : n ? "ambiguous" : "simple";
  1384. }, pushParams: function pushParams(t) {
  1385. for (var e = 0, r = t.length; e < r; e++) {
  1386. this.pushParam(t[e]);
  1387. }
  1388. }, pushParam: function pushParam(t) {
  1389. var e = null != t.value ? t.value : t.original || "";if (this.stringParams) e.replace && (e = e.replace(/^(\.?\.\/)*/g, "").replace(/\//g, ".")), t.depth && this.addDepth(t.depth), this.opcode("getContext", t.depth || 0), this.opcode("pushStringParam", e, t.type), "SubExpression" === t.type && this.accept(t);else {
  1390. if (this.trackIds) {
  1391. var r = void 0;if (!t.parts || i.default.helpers.scopedId(t) || t.depth || (r = this.blockParamIndex(t.parts[0])), r) {
  1392. var a = t.parts.slice(1).join(".");this.opcode("pushId", "BlockParam", r, a);
  1393. } else (e = t.original || e).replace && (e = e.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, "")), this.opcode("pushId", t.type, e);
  1394. }this.accept(t);
  1395. }
  1396. }, setupFullMustacheParams: function setupFullMustacheParams(t, e, r, a) {
  1397. var i = t.params;return this.pushParams(i), this.opcode("pushProgram", e), this.opcode("pushProgram", r), t.hash ? this.accept(t.hash) : this.opcode("emptyHash", a), i;
  1398. }, blockParamIndex: function blockParamIndex(t) {
  1399. for (var e = 0, r = this.options.blockParams.length; e < r; e++) {
  1400. var a = this.options.blockParams[e],
  1401. i = a && utils.indexOf(a, t);if (a && i >= 0) return [e, i];
  1402. }
  1403. } };
  1404. });unwrapExports(compiler);var codeGen = createCommonjsModule(function (t, e) {
  1405. e.__esModule = !0;var r = void 0;try {
  1406. var a = require("source-map");r = a.SourceNode;
  1407. } catch (t) {}function i(t, e, r) {
  1408. if (utils.isArray(t)) {
  1409. for (var a = [], i = 0, n = t.length; i < n; i++) {
  1410. a.push(e.wrap(t[i], r));
  1411. }return a;
  1412. }return "boolean" == typeof t || "number" == typeof t ? t + "" : t;
  1413. }function n(t) {
  1414. this.srcFile = t, this.source = [];
  1415. }r || ((r = function r(t, e, _r7, a) {
  1416. this.src = "", a && this.add(a);
  1417. }).prototype = { add: function add(t) {
  1418. utils.isArray(t) && (t = t.join("")), this.src += t;
  1419. }, prepend: function prepend(t) {
  1420. utils.isArray(t) && (t = t.join("")), this.src = t + this.src;
  1421. }, toStringWithSourceMap: function toStringWithSourceMap() {
  1422. return { code: this.toString() };
  1423. }, toString: function toString() {
  1424. return this.src;
  1425. } }), n.prototype = { isEmpty: function isEmpty() {
  1426. return !this.source.length;
  1427. }, prepend: function prepend(t, e) {
  1428. this.source.unshift(this.wrap(t, e));
  1429. }, push: function push(t, e) {
  1430. this.source.push(this.wrap(t, e));
  1431. }, merge: function merge() {
  1432. var t = this.empty();return this.each(function (e) {
  1433. t.add([" ", e, "\n"]);
  1434. }), t;
  1435. }, each: function each(t) {
  1436. for (var e = 0, r = this.source.length; e < r; e++) {
  1437. t(this.source[e]);
  1438. }
  1439. }, empty: function empty() {
  1440. var t = this.currentLocation || { start: {} };return new r(t.start.line, t.start.column, this.srcFile);
  1441. }, wrap: function wrap(t) {
  1442. var e = arguments.length <= 1 || void 0 === arguments[1] ? this.currentLocation || { start: {} } : arguments[1];return t instanceof r ? t : (t = i(t, this, e), new r(e.start.line, e.start.column, this.srcFile, t));
  1443. }, functionCall: function functionCall(t, e, r) {
  1444. return r = this.generateList(r), this.wrap([t, e ? "." + e + "(" : "(", r, ")"]);
  1445. }, quotedString: function quotedString(t) {
  1446. return '"' + (t + "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '"';
  1447. }, objectLiteral: function objectLiteral(t) {
  1448. var e = [];for (var r in t) {
  1449. if (t.hasOwnProperty(r)) {
  1450. var a = i(t[r], this);"undefined" !== a && e.push([this.quotedString(r), ":", a]);
  1451. }
  1452. }var n = this.generateList(e);return n.prepend("{"), n.add("}"), n;
  1453. }, generateList: function generateList(t) {
  1454. for (var e = this.empty(), r = 0, a = t.length; r < a; r++) {
  1455. r && e.add(","), e.add(i(t[r], this));
  1456. }return e;
  1457. }, generateArray: function generateArray(t) {
  1458. var e = this.generateList(t);return e.prepend("["), e.add("]"), e;
  1459. } }, e.default = n, t.exports = e.default;
  1460. });unwrapExports(codeGen);var javascriptCompiler = createCommonjsModule(function (t, e) {
  1461. function r(t) {
  1462. return t && t.__esModule ? t : { default: t };
  1463. }e.__esModule = !0;var a = r(exception),
  1464. i = r(codeGen);function n(t) {
  1465. this.value = t;
  1466. }function s() {}s.prototype = { nameLookup: function nameLookup(t, e) {
  1467. return s.isValidJavaScriptVariableName(e) ? [t, ".", e] : [t, "[", JSON.stringify(e), "]"];
  1468. }, depthedLookup: function depthedLookup(t) {
  1469. return [this.aliasable("container.lookup"), '(depths, "', t, '")'];
  1470. }, compilerInfo: function compilerInfo() {
  1471. var t = base.COMPILER_REVISION;return [t, base.REVISION_CHANGES[t]];
  1472. }, appendToBuffer: function appendToBuffer(t, e, r) {
  1473. return utils.isArray(t) || (t = [t]), t = this.source.wrap(t, e), this.environment.isSimple ? ["return ", t, ";"] : r ? ["buffer += ", t, ";"] : (t.appendToBuffer = !0, t);
  1474. }, initializeBuffer: function initializeBuffer() {
  1475. return this.quotedString("");
  1476. }, compile: function compile(t, e, r, i) {
  1477. this.environment = t, this.options = e, this.stringParams = this.options.stringParams, this.trackIds = this.options.trackIds, this.precompile = !i, this.name = this.environment.name, this.isChild = !!r, this.context = r || { decorators: [], programs: [], environments: [] }, this.preamble(), this.stackSlot = 0, this.stackVars = [], this.aliases = {}, this.registers = { list: [] }, this.hashes = [], this.compileStack = [], this.inlineStack = [], this.blockParams = [], this.compileChildren(t, e), this.useDepths = this.useDepths || t.useDepths || t.useDecorators || this.options.compat, this.useBlockParams = this.useBlockParams || t.useBlockParams;var n = t.opcodes,
  1478. s = void 0,
  1479. o = void 0,
  1480. l = void 0,
  1481. c = void 0;for (l = 0, c = n.length; l < c; l++) {
  1482. s = n[l], this.source.currentLocation = s.loc, o = o || s.loc, this[s.opcode].apply(this, s.args);
  1483. }if (this.source.currentLocation = o, this.pushSource(""), this.stackSlot || this.inlineStack.length || this.compileStack.length) throw new a.default("Compile completed with content left on stack");this.decorators.isEmpty() ? this.decorators = void 0 : (this.useDecorators = !0, this.decorators.prepend("var decorators = container.decorators;\n"), this.decorators.push("return fn;"), i ? this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]) : (this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"), this.decorators.push("}\n"), this.decorators = this.decorators.merge()));var u = this.createFunctionContext(i);if (this.isChild) return u;var p = { compiler: this.compilerInfo(), main: u };this.decorators && (p.main_d = this.decorators, p.useDecorators = !0);var h = this.context,
  1484. d = h.programs,
  1485. m = h.decorators;for (l = 0, c = d.length; l < c; l++) {
  1486. d[l] && (p[l] = d[l], m[l] && (p[l + "_d"] = m[l], p.useDecorators = !0));
  1487. }return this.environment.usePartial && (p.usePartial = !0), this.options.data && (p.useData = !0), this.useDepths && (p.useDepths = !0), this.useBlockParams && (p.useBlockParams = !0), this.options.compat && (p.compat = !0), i ? p.compilerOptions = this.options : (p.compiler = JSON.stringify(p.compiler), this.source.currentLocation = { start: { line: 1, column: 0 } }, p = this.objectLiteral(p), e.srcName ? (p = p.toStringWithSourceMap({ file: e.destName })).map = p.map && p.map.toString() : p = p.toString()), p;
  1488. }, preamble: function preamble() {
  1489. this.lastContext = 0, this.source = new i.default(this.options.srcName), this.decorators = new i.default(this.options.srcName);
  1490. }, createFunctionContext: function createFunctionContext(t) {
  1491. var e = "",
  1492. r = this.stackVars.concat(this.registers.list);r.length > 0 && (e += ", " + r.join(", "));var a = 0;for (var i in this.aliases) {
  1493. var n = this.aliases[i];this.aliases.hasOwnProperty(i) && n.children && n.referenceCount > 1 && (e += ", alias" + ++a + "=" + i, n.children[0] = "alias" + a);
  1494. }var s = ["container", "depth0", "helpers", "partials", "data"];(this.useBlockParams || this.useDepths) && s.push("blockParams"), this.useDepths && s.push("depths");var o = this.mergeSource(e);return t ? (s.push(o), Function.apply(this, s)) : this.source.wrap(["function(", s.join(","), ") {\n ", o, "}"]);
  1495. }, mergeSource: function mergeSource(t) {
  1496. var e = this.environment.isSimple,
  1497. r = !this.forceBuffer,
  1498. a = void 0,
  1499. i = void 0,
  1500. n = void 0,
  1501. s = void 0;return this.source.each(function (t) {
  1502. t.appendToBuffer ? (n ? t.prepend(" + ") : n = t, s = t) : (n && (i ? n.prepend("buffer += ") : a = !0, s.add(";"), n = s = void 0), i = !0, e || (r = !1));
  1503. }), r ? n ? (n.prepend("return "), s.add(";")) : i || this.source.push('return "";') : (t += ", buffer = " + (a ? "" : this.initializeBuffer()), n ? (n.prepend("return buffer + "), s.add(";")) : this.source.push("return buffer;")), t && this.source.prepend("var " + t.substring(2) + (a ? "" : ";\n")), this.source.merge();
  1504. }, blockValue: function blockValue(t) {
  1505. var e = this.aliasable("helpers.blockHelperMissing"),
  1506. r = [this.contextName(0)];this.setupHelperArgs(t, 0, r);var a = this.popStack();r.splice(1, 0, a), this.push(this.source.functionCall(e, "call", r));
  1507. }, ambiguousBlockValue: function ambiguousBlockValue() {
  1508. var t = this.aliasable("helpers.blockHelperMissing"),
  1509. e = [this.contextName(0)];this.setupHelperArgs("", 0, e, !0), this.flushInline();var r = this.topStack();e.splice(1, 0, r), this.pushSource(["if (!", this.lastHelper, ") { ", r, " = ", this.source.functionCall(t, "call", e), "}"]);
  1510. }, appendContent: function appendContent(t) {
  1511. this.pendingContent ? t = this.pendingContent + t : this.pendingLocation = this.source.currentLocation, this.pendingContent = t;
  1512. }, append: function append() {
  1513. if (this.isInline()) this.replaceStack(function (t) {
  1514. return [" != null ? ", t, ' : ""'];
  1515. }), this.pushSource(this.appendToBuffer(this.popStack()));else {
  1516. var t = this.popStack();this.pushSource(["if (", t, " != null) { ", this.appendToBuffer(t, void 0, !0), " }"]), this.environment.isSimple && this.pushSource(["else { ", this.appendToBuffer("''", void 0, !0), " }"]);
  1517. }
  1518. }, appendEscaped: function appendEscaped() {
  1519. this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(", this.popStack(), ")"]));
  1520. }, getContext: function getContext(t) {
  1521. this.lastContext = t;
  1522. }, pushContext: function pushContext() {
  1523. this.pushStackLiteral(this.contextName(this.lastContext));
  1524. }, lookupOnContext: function lookupOnContext(t, e, r, a) {
  1525. var i = 0;a || !this.options.compat || this.lastContext ? this.pushContext() : this.push(this.depthedLookup(t[i++])), this.resolvePath("context", t, i, e, r);
  1526. }, lookupBlockParam: function lookupBlockParam(t, e) {
  1527. this.useBlockParams = !0, this.push(["blockParams[", t[0], "][", t[1], "]"]), this.resolvePath("context", e, 1);
  1528. }, lookupData: function lookupData(t, e, r) {
  1529. t ? this.pushStackLiteral("container.data(data, " + t + ")") : this.pushStackLiteral("data"), this.resolvePath("data", e, 0, !0, r);
  1530. }, resolvePath: function resolvePath(t, e, r, a, i) {
  1531. var n = this;if (this.options.strict || this.options.assumeObjects) this.push(function (t, e, r, a) {
  1532. var i = e.popStack(),
  1533. n = 0,
  1534. s = r.length;t && s--;for (; n < s; n++) {
  1535. i = e.nameLookup(i, r[n], a);
  1536. }return t ? [e.aliasable("container.strict"), "(", i, ", ", e.quotedString(r[n]), ")"] : i;
  1537. }(this.options.strict && i, this, e, t));else for (var s = e.length; r < s; r++) {
  1538. this.replaceStack(function (i) {
  1539. var s = n.nameLookup(i, e[r], t);return a ? [" && ", s] : [" != null ? ", s, " : ", i];
  1540. });
  1541. }
  1542. }, resolvePossibleLambda: function resolvePossibleLambda() {
  1543. this.push([this.aliasable("container.lambda"), "(", this.popStack(), ", ", this.contextName(0), ")"]);
  1544. }, pushStringParam: function pushStringParam(t, e) {
  1545. this.pushContext(), this.pushString(e), "SubExpression" !== e && ("string" == typeof t ? this.pushString(t) : this.pushStackLiteral(t));
  1546. }, emptyHash: function emptyHash(t) {
  1547. this.trackIds && this.push("{}"), this.stringParams && (this.push("{}"), this.push("{}")), this.pushStackLiteral(t ? "undefined" : "{}");
  1548. }, pushHash: function pushHash() {
  1549. this.hash && this.hashes.push(this.hash), this.hash = { values: [], types: [], contexts: [], ids: [] };
  1550. }, popHash: function popHash() {
  1551. var t = this.hash;this.hash = this.hashes.pop(), this.trackIds && this.push(this.objectLiteral(t.ids)), this.stringParams && (this.push(this.objectLiteral(t.contexts)), this.push(this.objectLiteral(t.types))), this.push(this.objectLiteral(t.values));
  1552. }, pushString: function pushString(t) {
  1553. this.pushStackLiteral(this.quotedString(t));
  1554. }, pushLiteral: function pushLiteral(t) {
  1555. this.pushStackLiteral(t);
  1556. }, pushProgram: function pushProgram(t) {
  1557. null != t ? this.pushStackLiteral(this.programExpression(t)) : this.pushStackLiteral(null);
  1558. }, registerDecorator: function registerDecorator(t, e) {
  1559. var r = this.nameLookup("decorators", e, "decorator"),
  1560. a = this.setupHelperArgs(e, t);this.decorators.push(["fn = ", this.decorators.functionCall(r, "", ["fn", "props", "container", a]), " || fn;"]);
  1561. }, invokeHelper: function invokeHelper(t, e, r) {
  1562. var a = this.popStack(),
  1563. i = this.setupHelper(t, e),
  1564. n = r ? [i.name, " || "] : "",
  1565. s = ["("].concat(n, a);this.options.strict || s.push(" || ", this.aliasable("helpers.helperMissing")), s.push(")"), this.push(this.source.functionCall(s, "call", i.callParams));
  1566. }, invokeKnownHelper: function invokeKnownHelper(t, e) {
  1567. var r = this.setupHelper(t, e);this.push(this.source.functionCall(r.name, "call", r.callParams));
  1568. }, invokeAmbiguous: function invokeAmbiguous(t, e) {
  1569. this.useRegister("helper");var r = this.popStack();this.emptyHash();var a = this.setupHelper(0, t, e),
  1570. i = ["(", "(helper = ", this.lastHelper = this.nameLookup("helpers", t, "helper"), " || ", r, ")"];this.options.strict || (i[0] = "(helper = ", i.push(" != null ? helper : ", this.aliasable("helpers.helperMissing"))), this.push(["(", i, a.paramsInit ? ["),(", a.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", a.callParams), " : helper))"]);
  1571. }, invokePartial: function invokePartial(t, e, r) {
  1572. var a = [],
  1573. i = this.setupParams(e, 1, a);t && (e = this.popStack(), delete i.name), r && (i.indent = JSON.stringify(r)), i.helpers = "helpers", i.partials = "partials", i.decorators = "container.decorators", t ? a.unshift(e) : a.unshift(this.nameLookup("partials", e, "partial")), this.options.compat && (i.depths = "depths"), i = this.objectLiteral(i), a.push(i), this.push(this.source.functionCall("container.invokePartial", "", a));
  1574. }, assignToHash: function assignToHash(t) {
  1575. var e = this.popStack(),
  1576. r = void 0,
  1577. a = void 0,
  1578. i = void 0;this.trackIds && (i = this.popStack()), this.stringParams && (a = this.popStack(), r = this.popStack());var n = this.hash;r && (n.contexts[t] = r), a && (n.types[t] = a), i && (n.ids[t] = i), n.values[t] = e;
  1579. }, pushId: function pushId(t, e, r) {
  1580. "BlockParam" === t ? this.pushStackLiteral("blockParams[" + e[0] + "].path[" + e[1] + "]" + (r ? " + " + JSON.stringify("." + r) : "")) : "PathExpression" === t ? this.pushString(e) : "SubExpression" === t ? this.pushStackLiteral("true") : this.pushStackLiteral("null");
  1581. }, compiler: s, compileChildren: function compileChildren(t, e) {
  1582. for (var r = t.children, a = void 0, i = void 0, n = 0, s = r.length; n < s; n++) {
  1583. a = r[n], i = new this.compiler();var o = this.matchExistingProgram(a);if (null == o) {
  1584. this.context.programs.push("");var l = this.context.programs.length;a.index = l, a.name = "program" + l, this.context.programs[l] = i.compile(a, e, this.context, !this.precompile), this.context.decorators[l] = i.decorators, this.context.environments[l] = a, this.useDepths = this.useDepths || i.useDepths, this.useBlockParams = this.useBlockParams || i.useBlockParams, a.useDepths = this.useDepths, a.useBlockParams = this.useBlockParams;
  1585. } else a.index = o.index, a.name = "program" + o.index, this.useDepths = this.useDepths || o.useDepths, this.useBlockParams = this.useBlockParams || o.useBlockParams;
  1586. }
  1587. }, matchExistingProgram: function matchExistingProgram(t) {
  1588. for (var e = 0, r = this.context.environments.length; e < r; e++) {
  1589. var a = this.context.environments[e];if (a && a.equals(t)) return a;
  1590. }
  1591. }, programExpression: function programExpression(t) {
  1592. var e = this.environment.children[t],
  1593. r = [e.index, "data", e.blockParams];return (this.useBlockParams || this.useDepths) && r.push("blockParams"), this.useDepths && r.push("depths"), "container.program(" + r.join(", ") + ")";
  1594. }, useRegister: function useRegister(t) {
  1595. this.registers[t] || (this.registers[t] = !0, this.registers.list.push(t));
  1596. }, push: function push(t) {
  1597. return t instanceof n || (t = this.source.wrap(t)), this.inlineStack.push(t), t;
  1598. }, pushStackLiteral: function pushStackLiteral(t) {
  1599. this.push(new n(t));
  1600. }, pushSource: function pushSource(t) {
  1601. this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), this.pendingContent = void 0), t && this.source.push(t);
  1602. }, replaceStack: function replaceStack(t) {
  1603. var e = ["("],
  1604. r = void 0,
  1605. i = void 0,
  1606. s = void 0;if (!this.isInline()) throw new a.default("replaceStack on non-inline");var o = this.popStack(!0);if (o instanceof n) e = ["(", r = [o.value]], s = !0;else {
  1607. i = !0;var l = this.incrStack();e = ["((", this.push(l), " = ", o, ")"], r = this.topStack();
  1608. }var c = t.call(this, r);s || this.popStack(), i && this.stackSlot--, this.push(e.concat(c, ")"));
  1609. }, incrStack: function incrStack() {
  1610. return this.stackSlot++, this.stackSlot > this.stackVars.length && this.stackVars.push("stack" + this.stackSlot), this.topStackName();
  1611. }, topStackName: function topStackName() {
  1612. return "stack" + this.stackSlot;
  1613. }, flushInline: function flushInline() {
  1614. var t = this.inlineStack;this.inlineStack = [];for (var e = 0, r = t.length; e < r; e++) {
  1615. var a = t[e];if (a instanceof n) this.compileStack.push(a);else {
  1616. var i = this.incrStack();this.pushSource([i, " = ", a, ";"]), this.compileStack.push(i);
  1617. }
  1618. }
  1619. }, isInline: function isInline() {
  1620. return this.inlineStack.length;
  1621. }, popStack: function popStack(t) {
  1622. var e = this.isInline(),
  1623. r = (e ? this.inlineStack : this.compileStack).pop();if (!t && r instanceof n) return r.value;if (!e) {
  1624. if (!this.stackSlot) throw new a.default("Invalid stack pop");this.stackSlot--;
  1625. }return r;
  1626. }, topStack: function topStack() {
  1627. var t = this.isInline() ? this.inlineStack : this.compileStack,
  1628. e = t[t.length - 1];return e instanceof n ? e.value : e;
  1629. }, contextName: function contextName(t) {
  1630. return this.useDepths && t ? "depths[" + t + "]" : "depth" + t;
  1631. }, quotedString: function quotedString(t) {
  1632. return this.source.quotedString(t);
  1633. }, objectLiteral: function objectLiteral(t) {
  1634. return this.source.objectLiteral(t);
  1635. }, aliasable: function aliasable(t) {
  1636. var e = this.aliases[t];return e ? (e.referenceCount++, e) : ((e = this.aliases[t] = this.source.wrap(t)).aliasable = !0, e.referenceCount = 1, e);
  1637. }, setupHelper: function setupHelper(t, e, r) {
  1638. var a = [];return { params: a, paramsInit: this.setupHelperArgs(e, t, a, r), name: this.nameLookup("helpers", e, "helper"), callParams: [this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})")].concat(a) };
  1639. }, setupParams: function setupParams(t, e, r) {
  1640. var a = {},
  1641. i = [],
  1642. n = [],
  1643. s = [],
  1644. o = !r,
  1645. l = void 0;o && (r = []), a.name = this.quotedString(t), a.hash = this.popStack(), this.trackIds && (a.hashIds = this.popStack()), this.stringParams && (a.hashTypes = this.popStack(), a.hashContexts = this.popStack());var c = this.popStack(),
  1646. u = this.popStack();(u || c) && (a.fn = u || "container.noop", a.inverse = c || "container.noop");for (var p = e; p--;) {
  1647. l = this.popStack(), r[p] = l, this.trackIds && (s[p] = this.popStack()), this.stringParams && (n[p] = this.popStack(), i[p] = this.popStack());
  1648. }return o && (a.args = this.source.generateArray(r)), this.trackIds && (a.ids = this.source.generateArray(s)), this.stringParams && (a.types = this.source.generateArray(n), a.contexts = this.source.generateArray(i)), this.options.data && (a.data = "data"), this.useBlockParams && (a.blockParams = "blockParams"), a;
  1649. }, setupHelperArgs: function setupHelperArgs(t, e, r, a) {
  1650. var i = this.setupParams(t, e, r);return i = this.objectLiteral(i), a ? (this.useRegister("options"), r.push("options"), ["options=", i]) : r ? (r.push(i), "") : i;
  1651. } }, function () {
  1652. for (var t = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), e = s.RESERVED_WORDS = {}, r = 0, a = t.length; r < a; r++) {
  1653. e[t[r]] = !0;
  1654. }
  1655. }(), s.isValidJavaScriptVariableName = function (t) {
  1656. return !s.RESERVED_WORDS[t] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t);
  1657. }, e.default = s, t.exports = e.default;
  1658. });unwrapExports(javascriptCompiler);var handlebars$1 = createCommonjsModule(function (t, e) {
  1659. function r(t) {
  1660. return t && t.__esModule ? t : { default: t };
  1661. }e.__esModule = !0;var a = r(handlebars_runtime),
  1662. i = r(ast),
  1663. n = r(javascriptCompiler),
  1664. s = r(visitor),
  1665. o = r(noConflict),
  1666. l = a.default.create;function c() {
  1667. var t = l();return t.compile = function (e, r) {
  1668. return compiler.compile(e, r, t);
  1669. }, t.precompile = function (e, r) {
  1670. return compiler.precompile(e, r, t);
  1671. }, t.AST = i.default, t.Compiler = compiler.Compiler, t.JavaScriptCompiler = n.default, t.Parser = base$2.parser, t.parse = base$2.parse, t;
  1672. }var u = c();u.create = c, o.default(u), u.Visitor = s.default, u.default = u, e.default = u, t.exports = e.default;
  1673. });unwrapExports(handlebars$1);var printer = createCommonjsModule(function (t, e) {
  1674. e.__esModule = !0, e.print = function (t) {
  1675. return new i().accept(t);
  1676. }, e.PrintVisitor = i;var r,
  1677. a = (r = visitor) && r.__esModule ? r : { default: r };function i() {
  1678. this.padding = 0;
  1679. }i.prototype = new a.default(), i.prototype.pad = function (t) {
  1680. for (var e = "", r = 0, a = this.padding; r < a; r++) {
  1681. e += " ";
  1682. }return e += t + "\n";
  1683. }, i.prototype.Program = function (t) {
  1684. var e = "",
  1685. r = t.body,
  1686. a = void 0,
  1687. i = void 0;if (t.blockParams) {
  1688. var n = "BLOCK PARAMS: [";for (a = 0, i = t.blockParams.length; a < i; a++) {
  1689. n += " " + t.blockParams[a];
  1690. }n += " ]", e += this.pad(n);
  1691. }for (a = 0, i = r.length; a < i; a++) {
  1692. e += this.accept(r[a]);
  1693. }return this.padding--, e;
  1694. }, i.prototype.MustacheStatement = function (t) {
  1695. return this.pad("{{ " + this.SubExpression(t) + " }}");
  1696. }, i.prototype.Decorator = function (t) {
  1697. return this.pad("{{ DIRECTIVE " + this.SubExpression(t) + " }}");
  1698. }, i.prototype.BlockStatement = i.prototype.DecoratorBlock = function (t) {
  1699. var e = "";return e += this.pad(("DecoratorBlock" === t.type ? "DIRECTIVE " : "") + "BLOCK:"), this.padding++, e += this.pad(this.SubExpression(t)), t.program && (e += this.pad("PROGRAM:"), this.padding++, e += this.accept(t.program), this.padding--), t.inverse && (t.program && this.padding++, e += this.pad("{{^}}"), this.padding++, e += this.accept(t.inverse), this.padding--, t.program && this.padding--), this.padding--, e;
  1700. }, i.prototype.PartialStatement = function (t) {
  1701. var e = "PARTIAL:" + t.name.original;return t.params[0] && (e += " " + this.accept(t.params[0])), t.hash && (e += " " + this.accept(t.hash)), this.pad("{{> " + e + " }}");
  1702. }, i.prototype.PartialBlockStatement = function (t) {
  1703. var e = "PARTIAL BLOCK:" + t.name.original;return t.params[0] && (e += " " + this.accept(t.params[0])), t.hash && (e += " " + this.accept(t.hash)), e += " " + this.pad("PROGRAM:"), this.padding++, e += this.accept(t.program), this.padding--, this.pad("{{> " + e + " }}");
  1704. }, i.prototype.ContentStatement = function (t) {
  1705. return this.pad("CONTENT[ '" + t.value + "' ]");
  1706. }, i.prototype.CommentStatement = function (t) {
  1707. return this.pad("{{! '" + t.value + "' }}");
  1708. }, i.prototype.SubExpression = function (t) {
  1709. for (var e, r = t.params, a = [], i = 0, n = r.length; i < n; i++) {
  1710. a.push(this.accept(r[i]));
  1711. }return r = "[" + a.join(", ") + "]", e = t.hash ? " " + this.accept(t.hash) : "", this.accept(t.path) + " " + r + e;
  1712. }, i.prototype.PathExpression = function (t) {
  1713. var e = t.parts.join("/");return (t.data ? "@" : "") + "PATH:" + e;
  1714. }, i.prototype.StringLiteral = function (t) {
  1715. return '"' + t.value + '"';
  1716. }, i.prototype.NumberLiteral = function (t) {
  1717. return "NUMBER{" + t.value + "}";
  1718. }, i.prototype.BooleanLiteral = function (t) {
  1719. return "BOOLEAN{" + t.value + "}";
  1720. }, i.prototype.UndefinedLiteral = function () {
  1721. return "UNDEFINED";
  1722. }, i.prototype.NullLiteral = function () {
  1723. return "NULL";
  1724. }, i.prototype.Hash = function (t) {
  1725. for (var e = t.pairs, r = [], a = 0, i = e.length; a < i; a++) {
  1726. r.push(this.accept(e[a]));
  1727. }return "HASH{" + r.join(", ") + "}";
  1728. }, i.prototype.HashPair = function (t) {
  1729. return t.key + "=" + this.accept(t.value);
  1730. };
  1731. });unwrapExports(printer);var handlebars = handlebars$1.default;handlebars.PrintVisitor = printer.PrintVisitor, handlebars.print = printer.print;var lib = handlebars;function extension(t, e) {
  1732. var r = fs.readFileSync(e, "utf8");t.exports = handlebars.compile(r);
  1733. }"undefined" != typeof require && require.extensions && (require.extensions[".handlebars"] = extension, require.extensions[".hbs"] = extension);var lib_1 = lib.parse;var voidMap = Object.create(null);var voidTagNames = "area base br col command embed hr img input keygen link meta param source track wbr";voidTagNames.split(" ").forEach(function (t) {
  1734. voidMap[t] = !0;
  1735. });
  1736. var TokenizerEventHandlers = function (_HandlebarsNodeVisito) {
  1737. _inherits(TokenizerEventHandlers, _HandlebarsNodeVisito);
  1738. function TokenizerEventHandlers() {
  1739. var _this2;
  1740. _classCallCheck(this, TokenizerEventHandlers);
  1741. (_this2 = _possibleConstructorReturn(this, (TokenizerEventHandlers.__proto__ || Object.getPrototypeOf(TokenizerEventHandlers)).apply(this, arguments)), _this2), _this2.tagOpenLine = 0, _this2.tagOpenColumn = 0;return _this2;
  1742. }
  1743. _createClass(TokenizerEventHandlers, [{
  1744. key: "reset",
  1745. value: function reset() {
  1746. this.currentNode = null;
  1747. }
  1748. }, {
  1749. key: "beginComment",
  1750. value: function beginComment() {
  1751. this.currentNode = b.comment(""), this.currentNode.loc = { source: null, start: b.pos(this.tagOpenLine, this.tagOpenColumn), end: null };
  1752. }
  1753. }, {
  1754. key: "appendToCommentData",
  1755. value: function appendToCommentData(t) {
  1756. this.currentComment.value += t;
  1757. }
  1758. }, {
  1759. key: "finishComment",
  1760. value: function finishComment() {
  1761. this.currentComment.loc.end = b.pos(this.tokenizer.line, this.tokenizer.column), appendChild(this.currentElement(), this.currentComment);
  1762. }
  1763. }, {
  1764. key: "beginData",
  1765. value: function beginData() {
  1766. this.currentNode = b.text(), this.currentNode.loc = { source: null, start: b.pos(this.tokenizer.line, this.tokenizer.column), end: null };
  1767. }
  1768. }, {
  1769. key: "appendToData",
  1770. value: function appendToData(t) {
  1771. this.currentData.chars += t;
  1772. }
  1773. }, {
  1774. key: "finishData",
  1775. value: function finishData() {
  1776. this.currentData.loc.end = b.pos(this.tokenizer.line, this.tokenizer.column), appendChild(this.currentElement(), this.currentData);
  1777. }
  1778. }, {
  1779. key: "tagOpen",
  1780. value: function tagOpen() {
  1781. this.tagOpenLine = this.tokenizer.line, this.tagOpenColumn = this.tokenizer.column;
  1782. }
  1783. }, {
  1784. key: "beginStartTag",
  1785. value: function beginStartTag() {
  1786. this.currentNode = { type: "StartTag", name: "", attributes: [], modifiers: [], comments: [], selfClosing: !1, loc: SYNTHETIC };
  1787. }
  1788. }, {
  1789. key: "beginEndTag",
  1790. value: function beginEndTag() {
  1791. this.currentNode = { type: "EndTag", name: "", attributes: [], modifiers: [], comments: [], selfClosing: !1, loc: SYNTHETIC };
  1792. }
  1793. }, {
  1794. key: "finishTag",
  1795. value: function finishTag() {
  1796. var _tokenizer = this.tokenizer,
  1797. t = _tokenizer.line,
  1798. e = _tokenizer.column,
  1799. r = this.currentTag;
  1800. r.loc = b.loc(this.tagOpenLine, this.tagOpenColumn, t, e), "StartTag" === r.type ? (this.finishStartTag(), (voidMap[r.name] || r.selfClosing) && this.finishEndTag(!0)) : "EndTag" === r.type && this.finishEndTag(!1);
  1801. }
  1802. }, {
  1803. key: "finishStartTag",
  1804. value: function finishStartTag() {
  1805. var _currentStartTag = this.currentStartTag,
  1806. t = _currentStartTag.name,
  1807. e = _currentStartTag.attributes,
  1808. r = _currentStartTag.modifiers,
  1809. a = _currentStartTag.comments,
  1810. i = b.loc(this.tagOpenLine, this.tagOpenColumn),
  1811. n = b.element(t, e, r, [], a, i);
  1812. this.elementStack.push(n);
  1813. }
  1814. }, {
  1815. key: "finishEndTag",
  1816. value: function finishEndTag(t) {
  1817. var e = this.currentTag,
  1818. r = this.elementStack.pop(),
  1819. a = this.currentElement();validateEndTag(e, r, t), r.loc.end.line = this.tokenizer.line, r.loc.end.column = this.tokenizer.column, parseElementBlockParams(r), appendChild(a, r);
  1820. }
  1821. }, {
  1822. key: "markTagAsSelfClosing",
  1823. value: function markTagAsSelfClosing() {
  1824. this.currentTag.selfClosing = !0;
  1825. }
  1826. }, {
  1827. key: "appendToTagName",
  1828. value: function appendToTagName(t) {
  1829. this.currentTag.name += t;
  1830. }
  1831. }, {
  1832. key: "beginAttribute",
  1833. value: function beginAttribute() {
  1834. var t = this.currentTag;if ("EndTag" === t.type) throw new SyntaxError$1("Invalid end tag: closing tag must not have attributes, " + ("in `" + t.name + "` (on line " + this.tokenizer.line + ")."), t.loc);this.currentAttribute = { name: "", parts: [], isQuoted: !1, isDynamic: !1, start: b.pos(this.tokenizer.line, this.tokenizer.column), valueStartLine: 0, valueStartColumn: 0 };
  1835. }
  1836. }, {
  1837. key: "appendToAttributeName",
  1838. value: function appendToAttributeName(t) {
  1839. this.currentAttr.name += t;
  1840. }
  1841. }, {
  1842. key: "beginAttributeValue",
  1843. value: function beginAttributeValue(t) {
  1844. this.currentAttr.isQuoted = t, this.currentAttr.valueStartLine = this.tokenizer.line, this.currentAttr.valueStartColumn = this.tokenizer.column;
  1845. }
  1846. }, {
  1847. key: "appendToAttributeValue",
  1848. value: function appendToAttributeValue(t) {
  1849. var e = this.currentAttr.parts,
  1850. r = e[e.length - 1];if (r && "TextNode" === r.type) r.chars += t, r.loc.end.line = this.tokenizer.line, r.loc.end.column = this.tokenizer.column;else {
  1851. var a = b.loc(this.tokenizer.line, this.tokenizer.column, this.tokenizer.line, this.tokenizer.column);"\n" === t && (a.start.line -= 1, a.start.column = r ? r.loc.end.column : this.currentAttr.valueStartColumn);var i = b.text(t, a);e.push(i);
  1852. }
  1853. }
  1854. }, {
  1855. key: "finishAttributeValue",
  1856. value: function finishAttributeValue() {
  1857. var _currentAttr = this.currentAttr,
  1858. t = _currentAttr.name,
  1859. e = _currentAttr.parts,
  1860. r = _currentAttr.isQuoted,
  1861. a = _currentAttr.isDynamic,
  1862. i = _currentAttr.valueStartLine,
  1863. n = _currentAttr.valueStartColumn,
  1864. s = assembleAttributeValue(e, r, a, this.tokenizer.line);
  1865. s.loc = b.loc(i, n, this.tokenizer.line, this.tokenizer.column);var o = b.loc(this.currentAttr.start.line, this.currentAttr.start.column, this.tokenizer.line, this.tokenizer.column),
  1866. l = b.attr(t, s, o);this.currentStartTag.attributes.push(l);
  1867. }
  1868. }, {
  1869. key: "reportSyntaxError",
  1870. value: function reportSyntaxError(t) {
  1871. throw new SyntaxError$1("Syntax error at line " + this.tokenizer.line + " col " + this.tokenizer.column + ": " + t, b.loc(this.tokenizer.line, this.tokenizer.column));
  1872. }
  1873. }]);
  1874. return TokenizerEventHandlers;
  1875. }(HandlebarsNodeVisitors);
  1876. function assembleAttributeValue(t, e, r, a) {
  1877. if (r) {
  1878. if (e) return assembleConcatenatedValue(t);if (1 === t.length || 2 === t.length && "TextNode" === t[1].type && "/" === t[1].chars) return t[0];throw new SyntaxError$1("An unquoted attribute value must be a string or a mustache, preceeded by whitespace or a '=' character, and " + ("followed by whitespace, a '>' character, or '/>' (on line " + a + ")"), b.loc(a, 0));
  1879. }return t.length > 0 ? t[0] : b.text("");
  1880. }function assembleConcatenatedValue(t) {
  1881. for (var e = 0; e < t.length; e++) {
  1882. var r = t[e];if ("MustacheStatement" !== r.type && "TextNode" !== r.type) throw new SyntaxError$1("Unsupported node in quoted attribute value: " + r.type, r.loc);
  1883. }return b.concat(t);
  1884. }function validateEndTag(t, e, r) {
  1885. var a = void 0;if (voidMap[t.name] && !r ? a = "Invalid end tag " + formatEndTagInfo(t) + " (void elements cannot have end tags)." : void 0 === e.tag ? a = "Closing tag " + formatEndTagInfo(t) + " without an open tag." : e.tag !== t.name && (a = "Closing tag " + formatEndTagInfo(t) + " did not match last open tag `" + e.tag + "` (on line " + e.loc.start.line + ")."), a) throw new SyntaxError$1(a, e.loc);
  1886. }function formatEndTagInfo(t) {
  1887. return "`" + t.name + "` (on line " + t.loc.end.line + ")";
  1888. }var syntax = { parse: preprocess, builders: b, print: build, traverse: traverse, Walker: Walker };function preprocess(t, e) {
  1889. var r = "object" == (typeof t === "undefined" ? "undefined" : _typeof(t)) ? t : lib_1(t),
  1890. a = new TokenizerEventHandlers(t, e).acceptNode(r);if (e && e.plugins && e.plugins.ast) for (var _t4 = 0, _r8 = e.plugins.ast.length; _t4 < _r8; _t4++) {
  1891. traverse(a, (0, e.plugins.ast[_t4])(assign({}, e, { syntax: syntax }, { plugins: void 0 })).visitor);
  1892. }return a;
  1893. }var es2017 = Object.freeze({ AST: nodes, preprocess: preprocess, builders: b, TraversalError: TraversalError, cannotRemoveNode: cannotRemoveNode, cannotReplaceNode: cannotReplaceNode, cannotReplaceOrRemoveInKeyHandlerYet: cannotReplaceOrRemoveInKeyHandlerYet, traverse: traverse, Walker: Walker, print: build, SyntaxError: SyntaxError$1, isLiteral: isLiteral$1, printLiteral: printLiteral });function removeEmptyNodes(t) {
  1894. return "TextNode" !== t.type || "TextNode" === t.type && "" !== t.chars.replace(/^\s+/, "").replace(/\s+$/, "");
  1895. }function removeWhiteSpace() {
  1896. return { visitor: {
  1897. Program: function Program(t) {
  1898. t.body = t.body.filter(removeEmptyNodes);
  1899. },
  1900. ElementNode: function ElementNode(t) {
  1901. t.children = t.children.filter(removeEmptyNodes);
  1902. }
  1903. } };
  1904. }function parse(t) {
  1905. try {
  1906. return (0, es2017.preprocess)(t, { plugins: { ast: [removeWhiteSpace] } });
  1907. } catch (t) {
  1908. var e = t.message.match(/on line (\d+)/);throw e ? parserCreateError(t.message, { start: { line: +e[1], column: 0 }, end: { line: +e[1], column: 80 } }) : t;
  1909. }
  1910. }var parserGlimmer = parse;module.exports = parserGlimmer;