(()=>{var __webpack_modules__={86657:(e,t,u)=>{"use strict";const n=u(87602),r={findRule(e,t){for(let u=0;ue.alternatives.every(a),sequence:e=>e.elements.some(a),simple_and:o,simple_not:o,optional:o,zero_or_more:o,repeated(e){const t=e.min?e.min:e.max;return!("constant"!==t.type||0===t.value||!a(e.expression)&&!(t.value>1&&e.delimiter&&a(e.delimiter)))},semantic_and:o,semantic_not:o,rule_ref(t){const u=r.findRule(e,t.name);return u?a(u):void 0},literal:e=>""!==e.value,class:u,any:u});return a(t)}};e.exports=r},73629:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const generateBytecode=__webpack_require__(27713),generateJS=__webpack_require__(72365),inferenceMatchResult=__webpack_require__(51358),removeProxyRules=__webpack_require__(47349),reportDuplicateLabels=__webpack_require__(13747),reportDuplicateRules=__webpack_require__(7937),reportInfiniteRecursion=__webpack_require__(47771),reportInfiniteRepetition=__webpack_require__(74414),reportUndefinedRules=__webpack_require__(78277),reportIncorrectPlucking=__webpack_require__(43046),Session=__webpack_require__(52399),visitor=__webpack_require__(87602),{base64}=__webpack_require__(93758);function processOptions(e,t){const u={};return Object.keys(e).forEach((t=>{u[t]=e[t]})),Object.keys(t).forEach((e=>{Object.prototype.hasOwnProperty.call(u,e)||(u[e]=t[e])})),u}function isSourceMapCapable(e){return"string"==typeof e?e.length>0:e&&"function"==typeof e.offset}const compiler={visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");const allRules=ast.rules.map((e=>e.name));if(options.allowedStartRules.some((e=>"*"===e)))options.allowedStartRules=allRules;else for(const e of options.allowedStartRules)if(-1===allRules.indexOf(e))throw new Error(`Unknown start rule "${e}"`);if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");const session=new Session(options);switch(Object.keys(passes).forEach((e=>{session.stage=e,session.info(`Process stage ${e}`),passes[e].forEach((t=>{session.info(`Process pass ${e}.${t.name}`),t(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":{if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");const e=ast.code.toStringWithSourceMap(),t=new TextEncoder,u=base64(t.encode(JSON.stringify(e.map.toJSON())));return e.code+`//# sourceMappingURL=data:application/json;charset=utf-8;base64,${u}\n`}case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}};module.exports=compiler},10818:e=>{"use strict";e.exports={PUSH:0,PUSH_EMPTY_STRING:35,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:36,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,IF_LT:30,IF_GE:31,IF_LT_DYNAMIC:32,IF_GE_DYNAMIC:33,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CHAR_CLASS:20,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,SOURCE_MAP_PUSH:37,SOURCE_MAP_POP:38,SOURCE_MAP_LABEL_PUSH:39,SOURCE_MAP_LABEL_POP:40}},27713:(e,t,u)=>{"use strict";const n=u(86657),r=u(10818),o=u(87602),{ALWAYS_MATCH:a,SOMETIMES_MATCH:s,NEVER_MATCH:i}=u(51358);e.exports=function(e,t){const u=[],c=[],l=[],p=[],A=[];function h(e){const t=u.indexOf(e);return-1===t?u.push(e)-1:t}function E(e){const t=JSON.stringify(e),u=l.findIndex((e=>JSON.stringify(e)===t));return-1===u?l.push(e)-1:u}function d(e,t,u){const n={predicate:e,params:t,body:u.code,location:u.codeLocation},r=JSON.stringify(n),o=p.findIndex((e=>JSON.stringify(e)===r));return-1===o?p.push(n)-1:o}function f(e){return A.push(e)-1}function C(e){const t={};return Object.keys(e).forEach((u=>{t[u]=e[u]})),t}function g(e,...t){return e.concat(...t)}function m(e,t,u,n){return e===a?u:e===i?n:t.concat([u.length,n.length],u,n)}function F(e,t,u,n){const o=Object.keys(u).map((e=>n-u[e]));return[r.CALL,e,t,o.length].concat(o)}function _(e,t,u){const n=0|e.match;return g([r.PUSH_CURR_POS],[r.SILENT_FAILS_ON],y(e,{sp:u.sp+1,env:C(u.env),action:null}),[r.SILENT_FAILS_OFF],m(t?-n:n,[t?r.IF_ERROR:r.IF_NOT_ERROR],g([r.POP],[t?r.POP:r.POP_CURR_POS],[r.PUSH_UNDEFINED]),g([r.POP],[t?r.POP_CURR_POS:r.POP],[r.PUSH_FAILED])))}function D(e,t,u){const n=d(!0,Object.keys(u.env),e);return g([r.UPDATE_SAVED_POS],F(n,0,u.env,u.sp),m(0|e.match,[r.IF],g([r.POP],t?[r.PUSH_FAILED]:[r.PUSH_UNDEFINED]),g([r.POP],t?[r.PUSH_UNDEFINED]:[r.PUSH_FAILED])))}function B(e){return t=[r.WHILE_NOT_ERROR],u=g([r.APPEND],e),t.concat([u.length],u);var t,u}function x(e,t,u,n){switch(e.type){case"constant":return{pre:[],post:[],sp:u};case"variable":return e.sp=n+u-t[e.value],{pre:[],post:[],sp:u};case"function":return e.sp=n,{pre:F(d(!0,Object.keys(t),{code:e.value,codeLocation:e.codeLocation}),0,t,u),post:[r.NIP],sp:u+1};default:throw new Error(`Unknown boundary type "${e.type}" for the "repeated" node`)}}function v(e,t){if(null!==t.value){const u="constant"===t.type?[r.IF_GE,t.value]:[r.IF_GE_DYNAMIC,t.sp];return m(s,u,[r.PUSH_FAILED],e)}return e}const y=(S={grammar(e){e.rules.forEach(y),e.literals=u,e.classes=c,e.expectations=l,e.functions=p,e.locations=A},rule(e){e.bytecode=y(e.expression,{sp:-1,env:{},pluck:[],action:null})},named(e,t){const u=0|e.match,n=u===i?null:E({type:"rule",value:e.name});return g([r.SILENT_FAILS_ON],y(e.expression,t),[r.SILENT_FAILS_OFF],m(u,[r.IF_ERROR],[r.FAIL,n],[]))},choice:(e,t)=>function e(t,u){const n=0|t[0].match,o=y(t[0],{sp:u.sp,env:C(u.env),action:null});return n===a?o:g(o,t.length>1?m(s,[r.IF_ERROR],g([r.POP],e(t.slice(1),u)),[]):[])}(e.alternatives,t),action(e,t){const u=C(t.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,o=y(e.expression,{sp:t.sp+(n?1:0),env:u,action:e}),a=0|e.expression.match,s=n&&a!==i?d(!1,Object.keys(u),e):null;return n?g([r.PUSH_CURR_POS],o,m(a,[r.IF_NOT_ERROR],g([r.LOAD_SAVED_POS,1],F(s,1,u,t.sp+2)),[]),[r.NIP]):o},sequence:(e,t)=>g([r.PUSH_CURR_POS],function t(u,n){if(u.length>0){const o=e.elements.length-u.length+1;return g(y(u[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),m(0|u[0].match,[r.IF_NOT_ERROR],t(u.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),g(o>1?[r.POP_N,o]:[r.POP],[r.POP_CURR_POS],[r.PUSH_FAILED])))}if(n.pluck.length>0)return g([r.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((e=>n.sp-e)));if(n.action){const t=d(!1,Object.keys(n.env),n.action);return g([r.LOAD_SAVED_POS,e.elements.length],F(t,e.elements.length+1,n.env,n.sp))}return g([r.WRAP,e.elements.length],[r.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action})),labeled(e,u){let n=u.env;const o=e.label,a=u.sp+1;o&&(n=C(u.env),u.env[e.label]=a),e.pick&&u.pluck.push(a);const s=y(e.expression,{sp:u.sp,env:n,action:null});return o&&e.labelLocation&&t&&"source-and-map"===t.output?g([r.SOURCE_MAP_LABEL_PUSH,a,h(o),f(e.labelLocation)],s,[r.SOURCE_MAP_LABEL_POP,a]):s},text:(e,t)=>g([r.PUSH_CURR_POS],y(e.expression,{sp:t.sp+1,env:C(t.env),action:null}),m(0|e.match,[r.IF_NOT_ERROR],g([r.POP],[r.TEXT]),[r.NIP])),simple_and:(e,t)=>_(e.expression,!1,t),simple_not:(e,t)=>_(e.expression,!0,t),optional:(e,t)=>g(y(e.expression,{sp:t.sp,env:C(t.env),action:null}),m(-(0|e.expression.match),[r.IF_ERROR],g([r.POP],[r.PUSH_NULL]),[])),zero_or_more(e,t){const u=y(e.expression,{sp:t.sp+1,env:C(t.env),action:null});return g([r.PUSH_EMPTY_ARRAY],u,B(u),[r.POP])},one_or_more(e,t){const u=y(e.expression,{sp:t.sp+1,env:C(t.env),action:null});return g([r.PUSH_EMPTY_ARRAY],u,m(0|e.expression.match,[r.IF_NOT_ERROR],g(B(u),[r.POP]),g([r.POP],[r.POP],[r.PUSH_FAILED])))},repeated(e,t){const u=e.min?e.min:e.max,n="constant"!==u.type||u.value>0,o="constant"!==e.max.type&&null!==e.max.value,a=n?2:1,i=e.min?x(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},c=x(e.max,t.env,i.sp,a),l=y(e.expression,{sp:c.sp+a,env:C(t.env),action:null}),p=null!==e.delimiter?y(e.expression,{sp:c.sp+a+1,env:C(t.env),action:null}):l,A=function(e,t,u,n,o){return e?g([r.PUSH_CURR_POS],y(e,{sp:n.sp+o+1,env:C(n.env),action:null}),m(0|e.match,[r.IF_NOT_ERROR],g([r.POP],u,m(-t,[r.IF_ERROR],[r.POP,r.POP_CURR_POS,r.PUSH_FAILED],[r.NIP])),[r.NIP])):u}(e.delimiter,0|e.expression.match,p,t,a),h=v(A,e.max),E=o?v(l,e.max):l,d=g(n?[r.PUSH_CURR_POS]:[],[r.PUSH_EMPTY_ARRAY],E,B(h),[r.POP]);return g(i.pre,c.pre,n?function(e,t){const u="constant"===t.type?[r.IF_LT,t.value]:[r.IF_LT_DYNAMIC,t.sp];return g(e,m(s,u,[r.POP,r.POP_CURR_POS,r.PUSH_FAILED],[r.NIP]))}(d,u):d,c.post,i.post)},group:(e,t)=>y(e.expression,{sp:t.sp,env:C(t.env),action:null}),semantic_and:(e,t)=>D(e,!1,t),semantic_not:(e,t)=>D(e,!0,t),rule_ref:t=>[r.RULE,n.indexOfRule(e,t.name)],literal(e){if(e.value.length>0){const t=0|e.match,u=t===s||t===a&&!e.ignoreCase?h(e.ignoreCase?e.value.toLowerCase():e.value):null,n=t!==a?E({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return m(t,e.ignoreCase?[r.MATCH_STRING_IC,u]:[r.MATCH_STRING,u],e.ignoreCase?[r.ACCEPT_N,e.value.length]:[r.ACCEPT_STRING,u],[r.FAIL,n])}return[r.PUSH_EMPTY_STRING]},class(e){const t=0|e.match,u=t===s?function(e){const t={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},u=JSON.stringify(t),n=c.findIndex((e=>JSON.stringify(e)===u));return-1===n?c.push(t)-1:n}(e):null,n=t!==a?E({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return m(t,[r.MATCH_CHAR_CLASS,u],[r.ACCEPT_N,1],[r.FAIL,n])},any(e){const t=0|e.match,u=t!==a?E({type:"any"}):null;return m(t,[r.MATCH_ANY],[r.ACCEPT_N,1],[r.FAIL,u])}},t&&"source-and-map"===t.output&&Object.entries(S).forEach((([e,t])=>{S[e]=function(e,...u){const n=t(e,...u);return void 0!==n&&e.location?g([r.SOURCE_MAP_PUSH,f(e.location)],n,[r.SOURCE_MAP_POP]):n}})),o.build(S));var S;y(e)}},72365:(e,t,u)=>{"use strict";const n=u(86657),r=u(10818),o=u(82169),a=u(62415),{stringEscape:s,regexpClassEscape:i}=u(93758),{SourceNode:c}=u(10782),l=u(49002);function p(e,t,u){const n=l.offsetStart(t),r=n.line,o=n.column-1,a=e.split("\n");return 1===a.length?new c(r,o,String(t.source),e,u):new c(null,null,String(t.source),a.map(((e,n)=>new c(r+n,0===n?o:0,String(t.source),n===a.length-1?e:[e,"\n"],u))))}function A(e,t,u,n,r){if(u){const o=l.offsetEnd(u);return new c(null,null,String(u.source),[e,p(t,u,r),new c(o.line,o.column-1,String(u.source),n)])}return new c(null,null,null,[e,t,n])}e.exports=function(e,t){function u(e){let t=!0,u=0;return function e(n){return Array.isArray(n)?n.map(e):n instanceof c?(u++,n.children=e(n.children),u--,n):(n=t?n.replace(/^(.+)$/gm," $1"):n.replace(/\n(\s*\S)/g,"\n $1"),t=!u||n.endsWith("\n"),n)}(e)}function l(e){return"peg$c"+e}function h(e){return"peg$r"+e}function E(e){return"peg$e"+e}function d(e){return"peg$f"+e}function f(e){return"peg$parse"+e}function C(e){return e.codeLocation?p(e.code,e.codeLocation,"$"+e.type):e.code}e.code=function(e){function n(){return[`// Generated by Peggy ${a}.`,"//","// https://peggyjs.org/"]}function r(){return t.trace?["{"," SyntaxError: peg$SyntaxError,"," DefaultTracer: peg$DefaultTracer,"," parse: peg$parse","}"].join("\n"):["{"," SyntaxError: peg$SyntaxError,"," parse: peg$parse","}"].join("\n")}const o={bare:()=>[...n(),"(function() {",' "use strict";',"",e,"",u("return "+r()+";"),"})()"],commonjs(){const u=Object.keys(t.dependencies),o=n();return o.push("",'"use strict";',""),u.length>0&&(u.forEach((e=>{o.push("var "+e+' = require("'+s(t.dependencies[e])+'");')})),o.push("")),o.push(e,"","module.exports = "+r()+";"),o},es(){const u=Object.keys(t.dependencies),r=n();return r.push(""),u.length>0&&(u.forEach((e=>{r.push("import "+e+' from "'+s(t.dependencies[e])+'";')})),r.push("")),r.push(e,"","export {"," peg$SyntaxError as SyntaxError,",t.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),r},amd(){const o=Object.keys(t.dependencies),a="["+o.map((e=>t.dependencies[e])).map((e=>'"'+s(e)+'"')).join(", ")+"]",i=o.join(", ");return[...n(),"define("+a+", function("+i+") {",' "use strict";',"",e,"",u("return "+r()+";"),"});"]},globals:()=>[...n(),"(function(root) {",' "use strict";',"",e,"",u("root."+t.exportVar+" = "+r()+";"),"})(this);"],umd(){const o=Object.keys(t.dependencies),a=o.map((e=>t.dependencies[e])),i="["+a.map((e=>'"'+s(e)+'"')).join(", ")+"]",c=a.map((e=>'require("'+s(e)+'")')).join(", "),l=o.join(", "),p=n();return p.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+c+");"),null!==t.exportVar&&p.push(" } else {"," root."+t.exportVar+" = factory();"),p.push(" }","})(this, function("+l+") {",' "use strict";',"",e,"",u("return "+r()+";"),"});"),p}},i=o[t.format]();return new c(null,null,t.grammarSource,i.map((e=>e instanceof c?e:e+"\n")))}(function(){const a=[];e.topLevelInitializer&&(a.push(C(e.topLevelInitializer)),a.push("")),a.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),t.trace&&a.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");const p="{ "+t.allowedStartRules.map((e=>e+": "+f(e))).join(", ")+" }",g=f(t.allowedStartRules[0]);return a.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+p+";"," var peg$startRuleFunction = "+g+";","",new c(null,null,t.grammarSource,[e.literals.map(((e,t)=>" var "+l(t)+' = "'+s(e)+'";')).concat("",e.classes.map(((e,t)=>{return" var "+h(t)+" = /^["+((u=e).inverted?"^":"")+u.value.map((e=>Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e))).join("")+"]/"+(u.ignoreCase?"i":"")+";";var u}))).concat("",e.expectations.map(((e,t)=>" var "+E(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+s(e.value)+'")';case"literal":return'peg$literalExpectation("'+s(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((e=>Array.isArray(e)?'["'+s(e[0])+'", "'+s(e[1])+'"]':'"'+s(e)+'"')).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"))).concat("").join("\n"),e.functions.map((function(e,t){return A(`\n var ${d(t)} = function(${e.params.join(", ")}) {`,e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),t.cache&&a.push(" var peg$resultsCache = {};",""),t.trace&&a.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),a.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((i=>{a.push(...u(function(a){const i=[],c=new o(a.name,"s","var",a.bytecode),p=function t(n){let o=0;const s=n.length,i=[];let p;function A(e,r){const a=r+3,s=n[o+a-2],l=n[o+a-1];let p,A;c.checkedIf(o,(()=>{o+=a,p=t(n.slice(o,o+s)),o+=s}),l>0?()=>{A=t(n.slice(o,o+l)),o+=l}:null),i.push("if ("+e+") {"),i.push(...u(p)),l>0&&(i.push("} else {"),i.push(...u(A))),i.push("}")}function C(e){const r=n[o+2-1];let a;c.checkedLoop(o,(()=>{o+=2,a=t(n.slice(o,o+r)),o+=r})),i.push("while ("+e+") {"),i.push(...u(a)),i.push("}")}function g(e){const t=n[o+e-1];return d(n[o+1])+"("+n.slice(o+e,o+e+t).map((e=>c.index(e))).join(", ")+")"}for(;oc.index(e))).join(", ")} ]`,c.pop(n[o+1]),i.push(c.push(p)),o+=u;break}case r.IF:A(c.top(),0);break;case r.IF_ERROR:A(c.top()+" === peg$FAILED",0);break;case r.IF_NOT_ERROR:A(c.top()+" !== peg$FAILED",0);break;case r.IF_LT:A(c.top()+".length < "+n[o+1],1);break;case r.IF_GE:A(c.top()+".length >= "+n[o+1],1);break;case r.IF_LT_DYNAMIC:A(c.top()+".length < ("+c.index(n[o+1])+"|0)",1);break;case r.IF_GE_DYNAMIC:A(c.top()+".length >= ("+c.index(n[o+1])+"|0)",1);break;case r.WHILE_NOT_ERROR:C(c.top()+" !== peg$FAILED");break;case r.MATCH_ANY:A("input.length > peg$currPos",0);break;case r.MATCH_STRING:A(e.literals[n[o+1]].length>1?"input.substr(peg$currPos, "+e.literals[n[o+1]].length+") === "+l(n[o+1]):"input.charCodeAt(peg$currPos) === "+e.literals[n[o+1]].charCodeAt(0),1);break;case r.MATCH_STRING_IC:A("input.substr(peg$currPos, "+e.literals[n[o+1]].length+").toLowerCase() === "+l(n[o+1]),1);break;case r.MATCH_CHAR_CLASS:A(h(n[o+1])+".test(input.charAt(peg$currPos))",1);break;case r.ACCEPT_N:i.push(c.push(n[o+1]>1?"input.substr(peg$currPos, "+n[o+1]+")":"input.charAt(peg$currPos)")),i.push(n[o+1]>1?"peg$currPos += "+n[o+1]+";":"peg$currPos++;"),o+=2;break;case r.ACCEPT_STRING:i.push(c.push(l(n[o+1]))),i.push(e.literals[n[o+1]].length>1?"peg$currPos += "+e.literals[n[o+1]].length+";":"peg$currPos++;"),o+=2;break;case r.FAIL:i.push(c.push("peg$FAILED")),i.push("if (peg$silentFails === 0) { peg$fail("+E(n[o+1])+"); }"),o+=2;break;case r.LOAD_SAVED_POS:i.push("peg$savedPos = "+c.index(n[o+1])+";"),o+=2;break;case r.UPDATE_SAVED_POS:i.push("peg$savedPos = peg$currPos;"),o++;break;case r.CALL:p=g(4),c.pop(n[o+2]),i.push(c.push(p)),o+=4+n[o+3];break;case r.RULE:i.push(c.push(f(e.rules[n[o+1]].name)+"()")),o+=2;break;case r.SILENT_FAILS_ON:i.push("peg$silentFails++;"),o++;break;case r.SILENT_FAILS_OFF:i.push("peg$silentFails--;"),o++;break;case r.SOURCE_MAP_PUSH:c.sourceMapPush(i,e.locations[n[o+1]]),o+=2;break;case r.SOURCE_MAP_POP:c.sourceMapPop(),o++;break;case r.SOURCE_MAP_LABEL_PUSH:c.labels[n[o+1]]={label:e.literals[n[o+2]],location:e.locations[n[o+3]]},o+=4;break;case r.SOURCE_MAP_LABEL_POP:delete c.labels[n[o+1]],o+=2;break;default:throw new Error("Invalid opcode: "+n[o]+".",{rule:a.name,bytecode:n})}return i}(a.bytecode);return i.push(A("function ",f(a.name),a.nameLocation,"() {\n",a.name)),t.trace&&i.push(" var startPos = peg$currPos;"),i.push(u(c.defines())),i.push(...u(function(u,n){const r=[];return r.push(""),t.trace&&r.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+u+","," location: peg$computeLocation(startPos, startPos, true)","});",""),t.cache&&(r.push("var key = peg$currPos * "+e.rules.length+" + "+n+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),t.trace&&r.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+u+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+u+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),r.push(" return cached.result;","}","")),r}('"'+s(a.name)+'"',n.indexOfRule(e,a.name)))),i.push(...u(p)),i.push(...u(function(e,u){const n=[];return t.cache&&n.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+u+" };"),t.trace&&n.push("","if ("+u+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+u+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),n.push("","return "+u+";"),n}('"'+s(a.name)+'"',c.result()))),i.push("}"),i}(i))),a.push("")})),e.initializer&&(a.push(C(e.initializer)),a.push("")),a.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new c(null,null,t.grammarSource,a.map((e=>e instanceof c?e:e+"\n")))}())}},51358:(e,t,u)=>{"use strict";const n=u(87602),r=u(86657),o=u(48256),a=-1;function s(e){function t(e){return e.match=0}function u(e){return c(e.expression),e.match=1}function s(e){return e.match=c(e.expression)}function i(e,t){const u=e.length;let n=0,r=0;for(let t=0;t0?a:0}const c=n.build({rule(e){let t,u=0;if(void 0===e.match){e.match=0;do{if(t=e.match,e.match=c(e.expression),++u>6)throw new o("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:s,choice:e=>e.match=i(e.alternatives,!0),action:s,sequence:e=>e.match=i(e.elements,!1),labeled:s,text:s,simple_and:s,simple_not:e=>e.match=-c(e.expression),optional:u,zero_or_more:u,one_or_more:s,repeated(e){const t=c(e.expression),u=e.delimiter?c(e.delimiter):a,n=e.min?e.min:e.max;return"constant"!==n.type||"constant"!==e.max.type?e.match=0:0===e.max.value||null!==e.max.value&&n.value>e.max.value?e.match=a:t===a?e.match=0===n.value?1:a:1===t?e.delimiter&&n.value>=2?e.match=u:e.match=1:e.delimiter&&n.value>=2?e.match=u===a?a:0:e.match=0===n.value?1:0},group:s,semantic_and:t,semantic_not:t,rule_ref(t){const u=r.findRule(e,t.name);return t.match=c(u)},literal(e){const t=0===e.value.length?1:0;return e.match=t},class(e){const t=0===e.parts.length?a:0;return e.match=t},any:t});c(e)}s.ALWAYS_MATCH=1,s.SOMETIMES_MATCH=0,s.NEVER_MATCH=a,e.exports=s},47349:(e,t,u)=>{"use strict";const n=u(86657),r=u(87602);e.exports=function(e,t,u){const o=[];e.rules.forEach(((a,s)=>{var i;"rule"===(i=a).type&&"rule_ref"===i.expression.type&&(function(e,t,o){r.build({rule_ref(r){r.name===t&&(r.name=o,u.info(`Proxy rule "${t}" replaced by the rule "${o}"`,r.location,[{message:"This rule will be used",location:n.findRule(e,o).nameLocation}]))}})(e)}(e,a.name,a.expression.name),-1===t.allowedStartRules.indexOf(a.name)&&o.push(s))})),o.reverse(),o.forEach((t=>{e.rules.splice(t,1)}))}},13747:(e,t,u)=>{"use strict";const n=u(87602);e.exports=function(e,t,u){function r(e){const t={};return Object.keys(e).forEach((u=>{t[u]=e[u]})),t}function o(e,t){a(e.expression,r(t))}const a=n.build({rule(e){a(e.expression,{})},choice(e,t){e.alternatives.forEach((e=>{a(e,r(t))}))},action:o,labeled(e,t){const n=e.label;n&&Object.prototype.hasOwnProperty.call(t,n)&&u.error(`Label "${e.label}" is already defined`,e.labelLocation,[{message:"Original label location",location:t[n]}]),a(e.expression,t),t[e.label]=e.labelLocation},text:o,simple_and:o,simple_not:o,optional:o,zero_or_more:o,one_or_more:o,repeated(e,t){e.delimiter&&a(e.delimiter,r(t)),a(e.expression,r(t))},group:o});a(e)}},7937:(e,t,u)=>{"use strict";const n=u(87602);e.exports=function(e,t,u){const r={};n.build({rule(e){Object.prototype.hasOwnProperty.call(r,e.name)?u.error(`Rule "${e.name}" is already defined`,e.nameLocation,[{message:"Original rule location",location:r[e.name]}]):r[e.name]=e.nameLocation}})(e)}},43046:(e,t,u)=>{"use strict";const n=u(87602);e.exports=function(e,t,u){const r=n.build({action(e){r(e.expression,e)},labeled(e,t){e.pick&&t&&u.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),r(e.expression)}});r(e)}},47771:(e,t,u)=>{"use strict";const n=u(86657),r=u(87602);e.exports=function(e,t,u){const o=[],a=[],s=r.build({rule(e){o.push(e.name),s(e.expression),o.pop()},sequence(t){t.elements.every((t=>(s(t),!n.alwaysConsumesOnSuccess(e,t))))},repeated(t){s(t.expression),t.delimiter&&!n.alwaysConsumesOnSuccess(e,t.expression)&&s(t.delimiter)},rule_ref(t){a.push(t);const r=n.findRule(e,t.name);if(-1!==o.indexOf(t.name))return o.push(t.name),void u.error("Possible infinite loop when parsing (left recursion: "+o.join(" -> ")+")",r.nameLocation,a.map(((e,t,u)=>({message:t+1!==u.length?`Step ${t+1}: call of the rule "${e.name}" without input consumption`:`Step ${t+1}: call itself without input consumption - left recursion`,location:e.location}))));r&&s(r),a.pop()}});s(e)}},74414:(e,t,u)=>{"use strict";const n=u(86657),r=u(87602);e.exports=function(e,t,u){const o=r.build({zero_or_more(t){n.alwaysConsumesOnSuccess(e,t.expression)||u.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more(t){n.alwaysConsumesOnSuccess(e,t.expression)||u.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated(t){if(t.delimiter&&o(t.delimiter),!(n.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&n.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)u.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{const e=t.min?t.min:t.max;u.warning("constant"===e.type&&"constant"===t.max.type?`An expression may not consume any input and may always match ${t.max.value} times`:"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});o(e)}},78277:(e,t,u)=>{"use strict";const n=u(86657),r=u(87602);e.exports=function(e,t,u){r.build({rule_ref(t){n.findRule(e,t.name)||u.error(`Rule "${t.name}" is not defined`,t.location)}})(e)}},52399:(e,t,u)=>{"use strict";const n=u(48256);class r{constructor(e){"function"==typeof(e=void 0!==e?e:{}).error&&(this.error=e.error),"function"==typeof e.warning&&(this.warning=e.warning),"function"==typeof e.info&&(this.info=e.info)}error(){}warning(){}info(){}}e.exports=class{constructor(e){this._callbacks=new r(e),this._firstError=null,this.errors=0,this.problems=[],this.stage=null}error(...e){++this.errors,null===this._firstError&&(this._firstError=new n(...e),this._firstError.stage=this.stage,this._firstError.problems=this.problems),this.problems.push(["error",...e]),this._callbacks.error(this.stage,...e)}warning(...e){this.problems.push(["warning",...e]),this._callbacks.warning(this.stage,...e)}info(...e){this.problems.push(["info",...e]),this._callbacks.info(this.stage,...e)}checkErrors(){if(0!==this.errors)throw this._firstError}}},82169:(e,t,u)=>{"use strict";const{SourceNode:n}=u(10782),r=u(49002);class o{constructor(e,t,u,n){this.sp=-1,this.maxSp=-1,this.varName=t,this.ruleName=e,this.type=u,this.bytecode=n,this.labels={},this.sourceMapStack=[]}name(e){if(e<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack underflow: attempt to use a variable '${this.varName}' at an index ${e}.\nBytecode: ${this.bytecode}`);return this.varName+e}static sourceNode(e,t,u){const o=r.offsetStart(e);return new n(o.line,o.column?o.column-1:null,String(e.source),t,u)}push(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);const t=this.labels[this.sp],u=[this.name(this.sp)," = ",e,";"];if(t){if(this.sourceMapStack.length){const e=o.sourceNode(t.location,u.splice(0,2),t.label),{parts:r,location:a}=this.sourceMapPopInternal(),s=a.start.offsetthis.name(this.sp+1+t)))):this.name(this.sp--)}top(){return this.name(this.sp)}index(e){if(e<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack overflow: attempt to get a variable at a negative index ${e}.\nBytecode: ${this.bytecode}`);return this.name(this.sp-e)}result(){if(this.maxSp<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack is empty, can't get the result.\nBytecode: ${this.bytecode}`);return this.name(0)}defines(){return this.maxSp<0?"":this.type+" "+Array.from({length:this.maxSp+1},((e,t)=>this.name(t))).join(", ")+";"}checkedIf(e,t,u){const n=this.sp;if(t(),u){const t=this.sp;if(this.sp=n,u(),t!==this.sp)throw new Error("Rule '"+this.ruleName+"', position "+e+": Branches of a condition can't move the stack pointer differently (before: "+n+", after then: "+t+", after else: "+this.sp+"). Bytecode: "+this.bytecode)}}checkedLoop(e,t){const u=this.sp;if(t(),u!==this.sp)throw new Error("Rule '"+this.ruleName+"', position "+e+": Body of a loop can't move the stack pointer (before: "+u+", after: "+this.sp+"). Bytecode: "+this.bytecode)}sourceMapPush(e,t){if(this.sourceMapStack.length){const e=this.sourceMapStack[this.sourceMapStack.length-1];e[2].start.offset===t.start.offset&&e[2].end.offset>t.end.offset&&(e[2]={start:t.end,end:e[2].end,source:e[2].source})}this.sourceMapStack.push([e,e.length,t])}sourceMapPopInternal(){const[e,t,u]=this.sourceMapStack.pop(),o=e.splice(t).map((e=>e instanceof n?e:e+"\n"));if(o.length){const t=r.offsetStart(u);e.push(new n(t.line,t.column-1,String(u.source),o))}return{parts:e,location:u}}sourceMapPop(e){const{location:t}=this.sourceMapPopInternal();if(this.sourceMapStack.length&&t.end.offset{"use strict";function u(e){return e.charCodeAt(0).toString(16).toUpperCase()}t.hex=u,t.stringEscape=function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+u(e))).replace(/[\x10-\x1F\x7F-\xFF]/g,(e=>"\\x"+u(e))).replace(/[\u0100-\u0FFF]/g,(e=>"\\u0"+u(e))).replace(/[\u1000-\uFFFF]/g,(e=>"\\u"+u(e)))},t.regexpClassEscape=function(e){return e.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+u(e))).replace(/[\x10-\x1F\x7F-\xFF]/g,(e=>"\\x"+u(e))).replace(/[\u0100-\u0FFF]/g,(e=>"\\u0"+u(e))).replace(/[\u1000-\uFFFF]/g,(e=>"\\u"+u(e)))},t.base64=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=e.length%3,n=e.length-u;let r="";for(let u=0;u>2],r+=t[(3&e[u])<<4|e[u+1]>>4],r+=t[(15&e[u+1])<<2|e[u+2]>>6],r+=t[63&e[u+2]];return 1===u?(r+=t[e[n]>>2],r+=t[(3&e[n])<<4],r+="=="):2===u&&(r+=t[e[n]>>2],r+=t[(3&e[n])<<4|e[n+1]>>4],r+=t[(15&e[n+1])<<2],r+="="),r}},87602:e=>{"use strict";const t={build(e){function t(t,...u){return e[t.type](t,...u)}function u(){}function n(e,...u){return t(e.expression,...u)}function r(e){return function(u,...n){u[e].forEach((e=>t(e,...n)))}}const o={grammar(e,...u){e.topLevelInitializer&&t(e.topLevelInitializer,...u),e.initializer&&t(e.initializer,...u),e.rules.forEach((e=>t(e,...u)))},top_level_initializer:u,initializer:u,rule:n,named:n,choice:r("alternatives"),action:n,sequence:r("elements"),labeled:n,text:n,simple_and:n,simple_not:n,optional:n,zero_or_more:n,one_or_more:n,repeated:(e,...u)=>(e.delimiter&&t(e.delimiter,...u),t(e.expression,...u)),group:n,semantic_and:u,semantic_not:u,rule_ref:u,literal:u,class:u,any:u};return Object.keys(o).forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)||(e[t]=o[t])})),t}};e.exports=t},48256:(e,t,u)=>{"use strict";const n=u(49002),r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u])};class o extends Error{constructor(e,t,u){super(e),r(this,o.prototype),this.name="GrammarError",this.location=t,void 0===u&&(u=[]),this.diagnostics=u,this.stage=null,this.problems=[["error",e,t,u]]}toString(){let e=super.toString();this.location&&(e+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(e+=`${this.location.source}:`),e+=`${this.location.start.line}:${this.location.start.column}`);for(const t of this.diagnostics)e+="\n from ",void 0!==t.location.source&&null!==t.location.source&&(e+=`${t.location.source}:`),e+=`${t.location.start.line}:${t.location.start.column}: ${t.message}`;return e}format(e){const t=e.map((({source:e,text:t})=>({source:e,text:null!=t?String(t).split(/\r\n|\n|\r/g):[]})));function u(e,u,r=""){let o="";const a=t.find((({source:t})=>t===e.source)),s=e.start,i=n.offsetStart(e);if(a){const t=e.end,n=a.text[s.line-1],c=(s.line===t.line?t.column:n.length+1)-s.column||1;r&&(o+=`\nnote: ${r}`),o+=`\n --\x3e ${e.source}:${i.line}:${i.column}\n${"".padEnd(u)} |\n${i.line.toString().padStart(u)} | ${n}\n${"".padEnd(u)} | ${"".padEnd(s.column-1)}${"".padEnd(c,"^")}`}else o+=`\n at ${e.source}:${i.line}:${i.column}`,r&&(o+=`: ${r}`);return o}return this.problems.filter((e=>"info"!==e[0])).map((e=>function(e,t,r,o=[]){let a=-1/0;a=r?o.reduce(((e,{location:t})=>Math.max(e,n.offsetStart(t).line)),r.start.line):Math.max.apply(null,o.map((e=>e.location.start.line))),a=a.toString().length;let s=`${e}: ${t}`;r&&(s+=u(r,a));for(const e of o)s+=u(e.location,a,e.message);return s}(...e))).join("\n\n")}}e.exports=o},49002:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.start=t}toString(){return String(this.source)}offset(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}}static offsetStart(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start}static offsetEnd(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end}}},68189:e=>{"use strict";const t={$:"text","&":"simple_and","!":"simple_not"},u={"?":"optional","*":"zero_or_more","+":"one_or_more"},n={"&":"semantic_and","!":"semantic_not"};function r(e,t,u,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,r.prototype),o.expected=t,o.found=u,o.location=n,o.name="SyntaxError",o}function o(e,t,u){return u=u||" ",e.length>t?e:(t-=e.length,e+(u+=u.repeat(t)).slice(0,t))}!function(e,t){function u(){this.constructor=e}u.prototype=t.prototype,e.prototype=new u}(r,Error),r.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var u,n=null;for(u=0;u0){for(t=1,u=1;tot&&(ot=ut,at=[]),at.push(e))}function ft(){var t,u,n,r,o,a;if(t=ut,Jt(),u=ut,n=function(){var t,u,n,r,o;return t=ut,123===e.charCodeAt(ut)?(u=p,ut++):(u=s,0===st&&dt(R)),u!==s&&(n=Yt())!==s?(125===e.charCodeAt(ut)?(r=A,ut++):(r=s,0===st&&dt(L)),r!==s&&Xt()!==s?(nt=t,t={type:"top_level_initializer",code:(o=n)[0],codeLocation:o[1],location:it()}):(ut=t,t=s)):(ut=t,t=s),t}(),n!==s?(r=Jt(),u=n):(ut=u,u=s),u===s&&(u=null),n=ut,r=function(){var e,t,u;return e=ut,(t=Yt())!==s&&Xt()!==s?(nt=e,e={type:"initializer",code:(u=t)[0],codeLocation:u[1],location:it()}):(ut=e,e=s),e}(),r!==s?(o=Jt(),n=r):(ut=n,n=s),n===s&&(n=null),r=[],o=ut,(a=Ct())!==s?(Jt(),o=a):(ut=o,o=s),o!==s)for(;o!==s;)r.push(o),o=ut,(a=Ct())!==s?(Jt(),o=a):(ut=o,o=s);else r=s;return r!==s?(nt=t,t={type:"grammar",topLevelInitializer:u,initializer:n,rules:r,location:it()}):(ut=t,t=s),t}function Ct(){var t,u,n,r,o,a,i,c;return t=ut,(u=Rt())!==s?(Jt(),n=ut,(r=It())!==s?(Jt(),n=r):(ut=n,n=s),n===s&&(n=null),61===e.charCodeAt(ut)?(r="=",ut++):(r=s,0===st&&dt(k)),r!==s?(Jt(),(o=gt())!==s&&Xt()!==s?(nt=t,i=n,c=o,t={type:"rule",name:(a=u)[0],nameLocation:a[1],expression:null!==i?{type:"named",name:i,expression:c,location:it()}:c,location:it()}):(ut=t,t=s)):(ut=t,t=s)):(ut=t,t=s),t}function gt(){var t,u,n,r,o,a,i,c;if(t=ut,(u=mt())!==s){for(n=[],r=ut,Jt(),47===e.charCodeAt(ut)?(o="/",ut++):(o=s,0===st&&dt(I)),o!==s?(Jt(),(a=mt())!==s?r=a:(ut=r,r=s)):(ut=r,r=s);r!==s;)n.push(r),r=ut,Jt(),47===e.charCodeAt(ut)?(o="/",ut++):(o=s,0===st&&dt(I)),o!==s?(Jt(),(a=mt())!==s?r=a:(ut=r,r=s)):(ut=r,r=s);nt=t,i=u,t=(c=n).length>0?{type:"choice",alternatives:[i].concat(c),location:it()}:i}else ut=t,t=s;return t}function mt(){var e,t,u,n,r,o;return e=ut,t=function(){var e,t,u,n,r,o,a;if(e=ut,(t=Ft())!==s){for(u=[],n=ut,Jt(),(r=Ft())!==s?n=r:(ut=n,n=s);n!==s;)u.push(n),n=ut,Jt(),(r=Ft())!==s?n=r:(ut=n,n=s);nt=e,o=t,e=(a=u).length>0||"labeled"===o.type&&o.pick?{type:"sequence",elements:[o].concat(a),location:it()}:o}else ut=e,e=s;return e}(),t!==s?(u=ut,Jt(),(n=Yt())!==s?u=n:(ut=u,u=s),u===s&&(u=null),nt=e,r=t,e=null!==(o=u)?{type:"action",expression:r,code:o[0],codeLocation:o[1],location:it()}:r):(ut=e,e=s),e}function Ft(){var t,u,n,r,o,a,i;return t=ut,u=function(){var t,u;return t=ut,64===e.charCodeAt(ut)?(u="@",ut++):(u=s,0===st&&dt(N)),u!==s&&(nt=t,u=it()),u}(),u!==s?((n=_t())===s&&(n=null),(r=Dt())!==s?(nt=t,o=u,a=n,(i=r).type.startsWith("semantic_")&&ct('"@" cannot be used on a semantic predicate',o),t={type:"labeled",label:null!==a?a[0]:null,labelLocation:null!==a?a[1]:o,pick:!0,expression:i,location:it()}):(ut=t,t=s)):(ut=t,t=s),t===s&&(t=ut,(u=_t())!==s?(n=Jt(),(r=Dt())!==s?(nt=t,t=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:it()}}(u,r)):(ut=t,t=s)):(ut=t,t=s),t===s&&(t=Dt())),t}function _t(){var t,u,n,r;return t=ut,(u=Rt())!==s?(Jt(),58===e.charCodeAt(ut)?(n=":",ut++):(n=s,0===st&&dt(T)),n!==s?(nt=t,r=u,Zt.indexOf(r[0])>=0&&ct(`Label can't be a reserved word "${r[0]}"`,r[1]),t=r):(ut=t,t=s)):(ut=t,t=s),t}function Dt(){var u,n,r;return u=ut,n=function(){var t;return 36===e.charCodeAt(ut)?(t="$",ut++):(t=s,0===st&&dt(M)),t===s&&(38===e.charCodeAt(ut)?(t="&",ut++):(t=s,0===st&&dt(U)),t===s&&(33===e.charCodeAt(ut)?(t="!",ut++):(t=s,0===st&&dt(j)))),t}(),n!==s?(Jt(),(r=Bt())!==s?(nt=u,u={type:t[n],expression:r,location:it()}):(ut=u,u=s)):(ut=u,u=s),u===s&&(u=Bt()),u}function Bt(){var t,n,r;return t=ut,(n=vt())!==s?(Jt(),r=function(){var t;return 63===e.charCodeAt(ut)?(t="?",ut++):(t=s,0===st&&dt(H)),t===s&&(42===e.charCodeAt(ut)?(t="*",ut++):(t=s,0===st&&dt(q)),t===s&&(43===e.charCodeAt(ut)?(t="+",ut++):(t=s,0===st&&dt(G)))),t}(),r!==s?(nt=t,t={type:u[r],expression:n,location:it()}):(ut=t,t=s)):(ut=t,t=s),t===s&&(t=function(){var t,u,n,r,o,a,i;return t=ut,(u=vt())!==s?(Jt(),124===e.charCodeAt(ut)?(n="|",ut++):(n=s,0===st&&dt(z)),n!==s?(Jt(),r=function(){var t,u,n,r,o,a;return t=ut,(u=xt())===s&&(u=null),Jt(),".."===e.substr(ut,2)?(n="..",ut+=2):(n=s,0===st&&dt(Y)),n!==s?(Jt(),(r=xt())===s&&(r=null),nt=t,t=[null!==(o=u)?o:{type:"constant",value:0},null!==(a=r)?a:{type:"constant",value:null}]):(ut=t,t=s),t===s&&(t=ut,(u=xt())!==s&&(nt=t,u=[null,u]),t=u),t}(),r!==s?(Jt(),o=ut,44===e.charCodeAt(ut)?(a=",",ut++):(a=s,0===st&&dt(W)),a!==s?(Jt(),(i=gt())!==s?(Jt(),o=i):(ut=o,o=s)):(ut=o,o=s),o===s&&(o=null),124===e.charCodeAt(ut)?(a="|",ut++):(a=s,0===st&&dt(z)),a!==s?(nt=t,t=function(e,t,u){let n=t[0],r=t[1];return"constant"===r.type&&0===r.value&&ct("The maximum count of repetitions of the rule must be > 0",r.location),{type:"repeated",min:n,max:r,expression:e,delimiter:u,location:it()}}(u,r,o)):(ut=t,t=s)):(ut=t,t=s)):(ut=t,t=s)):(ut=t,t=s),t}(),t===s&&(t=vt())),t}function xt(){var t,u;return t=ut,u=function(){var t,u,n,r;if(t=ut,u=ut,n=[],(r=zt())!==s)for(;r!==s;)n.push(r),r=zt();else n=s;return(u=n!==s?e.substring(u,ut):n)!==s&&(nt=t,u=parseInt(u,10)),u}(),u!==s&&(nt=t,u={type:"constant",value:u,location:it()}),(t=u)===s&&(t=ut,(u=Rt())!==s&&(nt=t,u={type:"variable",value:u[0],location:it()}),(t=u)===s&&(t=ut,(u=Yt())!==s&&(nt=t,u=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:it()}}(u)),t=u)),t}function vt(){var t,u,r,o,a;return t=function(){var t,u,n;return st++,t=ut,(u=It())!==s?(105===e.charCodeAt(ut)?(n="i",ut++):(n=s,0===st&&dt(_e)),n===s&&(n=null),nt=t,t={type:"literal",value:u,ignoreCase:null!==n,location:it()}):(ut=t,t=s),st--,t===s&&(u=s,0===st&&dt(Fe)),t}(),t===s&&(t=function(){var t,u,n,r,o,a,i,c;if(st++,t=ut,91===e.charCodeAt(ut)?(u="[",ut++):(u=s,0===st&&dt(ye)),u!==s){for(94===e.charCodeAt(ut)?(n="^",ut++):(n=s,0===st&&dt(Se)),n===s&&(n=null),r=[],(o=Mt())===s&&(o=Ut());o!==s;)r.push(o),(o=Mt())===s&&(o=Ut());93===e.charCodeAt(ut)?(o="]",ut++):(o=s,0===st&&dt(be)),o!==s?(105===e.charCodeAt(ut)?(a="i",ut++):(a=s,0===st&&dt(_e)),a===s&&(a=null),nt=t,i=n,c=a,t={type:"class",parts:r.filter((e=>""!==e)),inverted:null!==i,ignoreCase:null!==c,location:it()}):(ut=t,t=s)}else ut=t,t=s;return st--,t===s&&(u=s,0===st&&dt(ve)),t}(),t===s&&(t=function(){var t,u;return t=ut,46===e.charCodeAt(ut)?(u=".",ut++):(u=s,0===st&&dt(je)),u!==s&&(nt=t,u={type:"any",location:it()}),u}(),t===s&&(t=function(){var t,u,n,r,o,a,i;return t=ut,(u=Rt())!==s?(n=ut,st++,r=ut,o=Jt(),a=ut,(i=It())!==s?a=i=[i,Jt()]:(ut=a,a=s),a===s&&(a=null),61===e.charCodeAt(ut)?(i="=",ut++):(i=s,0===st&&dt(k)),i!==s?r=o=[o,a,i]:(ut=r,r=s),st--,r===s?n=void 0:(ut=n,n=s),n!==s?(nt=t,t={type:"rule_ref",name:u[0],location:it()}):(ut=t,t=s)):(ut=t,t=s),t}(),t===s&&(t=function(){var t,u,r,o;return t=ut,u=function(){var t;return 38===e.charCodeAt(ut)?(t="&",ut++):(t=s,0===st&&dt(U)),t===s&&(33===e.charCodeAt(ut)?(t="!",ut++):(t=s,0===st&&dt(j))),t}(),u!==s?(Jt(),(r=Yt())!==s?(nt=t,t={type:n[u],code:(o=r)[0],codeLocation:o[1],location:it()}):(ut=t,t=s)):(ut=t,t=s),t}(),t===s&&(t=ut,40===e.charCodeAt(ut)?(u="(",ut++):(u=s,0===st&&dt(V)),u!==s?(Jt(),(r=gt())!==s?(Jt(),41===e.charCodeAt(ut)?(o=")",ut++):(o=s,0===st&&dt(J)),o!==s?(nt=t,t="labeled"===(a=r).type||"sequence"===a.type?{type:"group",expression:a,location:it()}:a):(ut=t,t=s)):(ut=t,t=s)):(ut=t,t=s)))))),t}function yt(){var t;return e.length>ut?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(X)),t}function St(){var t;return st++,9===e.charCodeAt(ut)?(t="\t",ut++):(t=s,0===st&&dt(Q)),t===s&&(11===e.charCodeAt(ut)?(t="\v",ut++):(t=s,0===st&&dt(K)),t===s&&(12===e.charCodeAt(ut)?(t="\f",ut++):(t=s,0===st&&dt(ee)),t===s&&(32===e.charCodeAt(ut)?(t=" ",ut++):(t=s,0===st&&dt(te)),t===s&&(160===e.charCodeAt(ut)?(t=" ",ut++):(t=s,0===st&&dt(ue)),t===s&&(65279===e.charCodeAt(ut)?(t="\ufeff",ut++):(t=s,0===st&&dt(ne)),t===s&&(t=function(){var t;return $.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(et)),t}())))))),st--,t===s&&0===st&&dt(Z),t}function bt(){var t;return g.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(re)),t}function Pt(){var t;return st++,10===e.charCodeAt(ut)?(t="\n",ut++):(t=s,0===st&&dt(ae)),t===s&&("\r\n"===e.substr(ut,2)?(t="\r\n",ut+=2):(t=s,0===st&&dt(se)),t===s&&(13===e.charCodeAt(ut)?(t="\r",ut++):(t=s,0===st&&dt(ie)),t===s&&(8232===e.charCodeAt(ut)?(t="\u2028",ut++):(t=s,0===st&&dt(ce)),t===s&&(8233===e.charCodeAt(ut)?(t="\u2029",ut++):(t=s,0===st&&dt(le)))))),st--,t===s&&0===st&&dt(oe),t}function Ot(){var t;return st++,(t=function(){var t,u,n,r,o,a;if(t=ut,e.substr(ut,2)===h?(u=h,ut+=2):(u=s,0===st&&dt(Ae)),u!==s){for(n=[],r=ut,o=ut,st++,e.substr(ut,2)===E?(a=E,ut+=2):(a=s,0===st&&dt(he)),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);r!==s;)n.push(r),r=ut,o=ut,st++,e.substr(ut,2)===E?(a=E,ut+=2):(a=s,0===st&&dt(he)),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);e.substr(ut,2)===E?(r=E,ut+=2):(r=s,0===st&&dt(he)),r!==s?t=u=[u,n,r]:(ut=t,t=s)}else ut=t,t=s;return t}())===s&&(t=$t()),st--,t===s&&0===st&&dt(pe),t}function wt(){var t,u,n,r,o,a;if(t=ut,e.substr(ut,2)===h?(u=h,ut+=2):(u=s,0===st&&dt(Ae)),u!==s){for(n=[],r=ut,o=ut,st++,e.substr(ut,2)===E?(a=E,ut+=2):(a=s,0===st&&dt(he)),a===s&&(a=bt()),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);r!==s;)n.push(r),r=ut,o=ut,st++,e.substr(ut,2)===E?(a=E,ut+=2):(a=s,0===st&&dt(he)),a===s&&(a=bt()),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);e.substr(ut,2)===E?(r=E,ut+=2):(r=s,0===st&&dt(he)),r!==s?t=u=[u,n,r]:(ut=t,t=s)}else ut=t,t=s;return t}function $t(){var t,u,n,r,o,a;if(t=ut,"//"===e.substr(ut,2)?(u="//",ut+=2):(u=s,0===st&&dt(Ee)),u!==s){for(n=[],r=ut,o=ut,st++,a=bt(),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);r!==s;)n.push(r),r=ut,o=ut,st++,a=bt(),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);t=u=[u,n]}else ut=t,t=s;return t}function Rt(){var e,t,u,n;if(st++,e=ut,(t=Lt())!==s){for(u=[],n=kt();n!==s;)u.push(n),n=kt();nt=e,e=[t+u.join(""),it()]}else ut=e,e=s;return st--,e===s&&(t=s,0===st&&dt(de)),e}function Lt(){var t,u,n;return(t=function(){var t;return(t=function(){var t;return y.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Ve)),t}())===s&&(t=function(){var t;return D.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Ge)),t}())===s&&(t=function(){var t;return v.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Ye)),t}())===s&&(t=function(){var t;return B.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(ze)),t}())===s&&(t=function(){var t;return x.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(We)),t}())===s&&(t=function(){var t;return O.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Qe)),t}()),t}())===s&&(95===e.charCodeAt(ut)?(t="_",ut++):(t=s,0===st&&dt(fe)),t===s&&(t=ut,92===e.charCodeAt(ut)?(u=d,ut++):(u=s,0===st&&dt(Ce)),u!==s&&(n=Gt())!==s?t=n:(ut=t,t=s))),t}function kt(){var t;return(t=Lt())===s&&(36===e.charCodeAt(ut)?(t="$",ut++):(t=s,0===st&&dt(M)),t===s&&(t=function(){var t;return(t=function(){var t;return b.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Xe)),t}())===s&&(t=function(){var t;return S.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Je)),t}()),t}())===s&&(t=function(){var t;return P.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Ze)),t}())===s&&(t=function(){var t;return w.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Ke)),t}())===s&&(8204===e.charCodeAt(ut)?(t="‌",ut++):(t=s,0===st&&dt(ge)),t===s&&(8205===e.charCodeAt(ut)?(t="‍",ut++):(t=s,0===st&&dt(me))))),t}function It(){var t,u,n,r;if(st++,t=ut,34===e.charCodeAt(ut)?(u=f,ut++):(u=s,0===st&&dt(Be)),u!==s){for(n=[],r=Nt();r!==s;)n.push(r),r=Nt();34===e.charCodeAt(ut)?(r=f,ut++):(r=s,0===st&&dt(Be)),r!==s?(nt=t,t=n.join("")):(ut=t,t=s)}else ut=t,t=s;if(t===s)if(t=ut,39===e.charCodeAt(ut)?(u=C,ut++):(u=s,0===st&&dt(xe)),u!==s){for(n=[],r=Tt();r!==s;)n.push(r),r=Tt();39===e.charCodeAt(ut)?(r=C,ut++):(r=s,0===st&&dt(xe)),r!==s?(nt=t,t=n.join("")):(ut=t,t=s)}else ut=t,t=s;return st--,t===s&&(u=s,0===st&&dt(De)),t}function Nt(){var t,u,n,r;return t=ut,u=ut,n=ut,st++,34===e.charCodeAt(ut)?(r=f,ut++):(r=s,0===st&&dt(Be)),r===s&&(92===e.charCodeAt(ut)?(r=d,ut++):(r=s,0===st&&dt(Ce)),r===s&&(r=bt())),st--,r===s?n=void 0:(ut=n,n=s),n!==s&&(r=yt())!==s?u=n=[n,r]:(ut=u,u=s),(t=u!==s?e.substring(t,ut):u)===s&&(t=ut,92===e.charCodeAt(ut)?(u=d,ut++):(u=s,0===st&&dt(Ce)),u!==s&&(n=Ht())!==s?t=n:(ut=t,t=s),t===s&&(t=jt())),t}function Tt(){var t,u,n,r;return t=ut,u=ut,n=ut,st++,39===e.charCodeAt(ut)?(r=C,ut++):(r=s,0===st&&dt(xe)),r===s&&(92===e.charCodeAt(ut)?(r=d,ut++):(r=s,0===st&&dt(Ce)),r===s&&(r=bt())),st--,r===s?n=void 0:(ut=n,n=s),n!==s&&(r=yt())!==s?u=n=[n,r]:(ut=u,u=s),(t=u!==s?e.substring(t,ut):u)===s&&(t=ut,92===e.charCodeAt(ut)?(u=d,ut++):(u=s,0===st&&dt(Ce)),u!==s&&(n=Ht())!==s?t=n:(ut=t,t=s),t===s&&(t=jt())),t}function Mt(){var t,u,n,r,o,a;return t=ut,(u=Ut())!==s?(45===e.charCodeAt(ut)?(n="-",ut++):(n=s,0===st&&dt(Pe)),n!==s&&(r=Ut())!==s?(nt=t,a=r,(o=u).charCodeAt(0)>a.charCodeAt(0)&&ct("Invalid character range: "+e.substring(nt,ut)+"."),t=[o,a]):(ut=t,t=s)):(ut=t,t=s),t}function Ut(){var t,u,n,r;return t=ut,u=ut,n=ut,st++,93===e.charCodeAt(ut)?(r="]",ut++):(r=s,0===st&&dt(be)),r===s&&(92===e.charCodeAt(ut)?(r=d,ut++):(r=s,0===st&&dt(Ce)),r===s&&(r=bt())),st--,r===s?n=void 0:(ut=n,n=s),n!==s&&(r=yt())!==s?u=n=[n,r]:(ut=u,u=s),(t=u!==s?e.substring(t,ut):u)===s&&(t=ut,92===e.charCodeAt(ut)?(u=d,ut++):(u=s,0===st&&dt(Ce)),u!==s&&(n=Ht())!==s?t=n:(ut=t,t=s),t===s&&(t=jt())),t}function jt(){var t,u;return t=ut,92===e.charCodeAt(ut)?(u=d,ut++):(u=s,0===st&&dt(Ce)),u!==s&&Pt()!==s?(nt=t,t=""):(ut=t,t=s),t}function Ht(){var t,u,n,r;return t=function(){var t;return(t=qt())===s&&(t=function(){var t,u,n,r;return t=ut,u=ut,n=ut,st++,r=function(){var t;return(t=qt())===s&&(t=zt())===s&&(120===e.charCodeAt(ut)?(t="x",ut++):(t=s,0===st&&dt(Ne)),t===s&&(117===e.charCodeAt(ut)?(t="u",ut++):(t=s,0===st&&dt(Te)))),t}(),r===s&&(r=bt()),st--,r===s?n=void 0:(ut=n,n=s),n!==s&&(r=yt())!==s?u=n=[n,r]:(ut=u,u=s),t=u!==s?e.substring(t,ut):u}()),t}(),t===s&&(t=ut,48===e.charCodeAt(ut)?(u="0",ut++):(u=s,0===st&&dt(Oe)),u!==s?(n=ut,st++,r=zt(),st--,r===s?n=void 0:(ut=n,n=s),n!==s?(nt=t,t="\0"):(ut=t,t=s)):(ut=t,t=s),t===s&&(t=function(){var t,u,n,r,o,a,i;return t=ut,120===e.charCodeAt(ut)?(u="x",ut++):(u=s,0===st&&dt(Ne)),u!==s?(n=ut,r=ut,(o=Wt())!==s&&(a=Wt())!==s?r=o=[o,a]:(ut=r,r=s),(n=r!==s?e.substring(n,ut):r)!==s?(nt=t,i=n,t=String.fromCharCode(parseInt(i,16))):(ut=t,t=s)):(ut=t,t=s),t}(),t===s&&(t=Gt()))),t}function qt(){var t,u;return 39===e.charCodeAt(ut)?(t=C,ut++):(t=s,0===st&&dt(xe)),t===s&&(34===e.charCodeAt(ut)?(t=f,ut++):(t=s,0===st&&dt(Be)),t===s&&(92===e.charCodeAt(ut)?(t=d,ut++):(t=s,0===st&&dt(Ce)),t===s&&(t=ut,98===e.charCodeAt(ut)?(u="b",ut++):(u=s,0===st&&dt(we)),u!==s&&(nt=t,u="\b"),(t=u)===s&&(t=ut,102===e.charCodeAt(ut)?(u="f",ut++):(u=s,0===st&&dt($e)),u!==s&&(nt=t,u="\f"),(t=u)===s&&(t=ut,110===e.charCodeAt(ut)?(u="n",ut++):(u=s,0===st&&dt(Re)),u!==s&&(nt=t,u="\n"),(t=u)===s&&(t=ut,114===e.charCodeAt(ut)?(u="r",ut++):(u=s,0===st&&dt(Le)),u!==s&&(nt=t,u="\r"),(t=u)===s&&(t=ut,116===e.charCodeAt(ut)?(u="t",ut++):(u=s,0===st&&dt(ke)),u!==s&&(nt=t,u="\t"),(t=u)===s&&(t=ut,118===e.charCodeAt(ut)?(u="v",ut++):(u=s,0===st&&dt(Ie)),u!==s&&(nt=t,u="\v"),t=u)))))))),t}function Gt(){var t,u,n,r,o,a,i,c,l;return t=ut,117===e.charCodeAt(ut)?(u="u",ut++):(u=s,0===st&&dt(Te)),u!==s?(n=ut,r=ut,(o=Wt())!==s&&(a=Wt())!==s&&(i=Wt())!==s&&(c=Wt())!==s?r=o=[o,a,i,c]:(ut=r,r=s),(n=r!==s?e.substring(n,ut):r)!==s?(nt=t,l=n,t=String.fromCharCode(parseInt(l,16))):(ut=t,t=s)):(ut=t,t=s),t}function zt(){var t;return m.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Me)),t}function Wt(){var t;return F.test(e.charAt(ut))?(t=e.charAt(ut),ut++):(t=s,0===st&&dt(Ue)),t}function Yt(){var t,u,n,r;return st++,t=ut,123===e.charCodeAt(ut)?(u=p,ut++):(u=s,0===st&&dt(R)),u!==s?(n=function(){var e,t;return e=ut,t=Vt(),nt=e,t=[t,it()]}(),125===e.charCodeAt(ut)?(r=A,ut++):(r=s,0===st&&dt(L)),r!==s?t=n:(ut=t,t=s)):(ut=t,t=s),st--,t===s&&(u=s,0===st&&dt(He)),t}function Vt(){var t,u,n,r,o,a;if(t=ut,u=[],n=[],r=ut,o=ut,st++,_.test(e.charAt(ut))?(a=e.charAt(ut),ut++):(a=s,0===st&&dt(qe)),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s),r!==s)for(;r!==s;)n.push(r),r=ut,o=ut,st++,_.test(e.charAt(ut))?(a=e.charAt(ut),ut++):(a=s,0===st&&dt(qe)),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);else n=s;for(n===s&&(n=ut,123===e.charCodeAt(ut)?(r=p,ut++):(r=s,0===st&&dt(R)),r!==s?(o=Vt(),125===e.charCodeAt(ut)?(a=A,ut++):(a=s,0===st&&dt(L)),a!==s?n=r=[r,o,a]:(ut=n,n=s)):(ut=n,n=s));n!==s;){if(u.push(n),n=[],r=ut,o=ut,st++,_.test(e.charAt(ut))?(a=e.charAt(ut),ut++):(a=s,0===st&&dt(qe)),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s),r!==s)for(;r!==s;)n.push(r),r=ut,o=ut,st++,_.test(e.charAt(ut))?(a=e.charAt(ut),ut++):(a=s,0===st&&dt(qe)),st--,a===s?o=void 0:(ut=o,o=s),o!==s&&(a=yt())!==s?r=o=[o,a]:(ut=r,r=s);else n=s;n===s&&(n=ut,123===e.charCodeAt(ut)?(r=p,ut++):(r=s,0===st&&dt(R)),r!==s?(o=Vt(),125===e.charCodeAt(ut)?(a=A,ut++):(a=s,0===st&&dt(L)),a!==s?n=r=[r,o,a]:(ut=n,n=s)):(ut=n,n=s))}return e.substring(t,ut)}function Jt(){var e,t;for(e=[],(t=St())===s&&(t=Pt())===s&&(t=Ot());t!==s;)e.push(t),(t=St())===s&&(t=Pt())===s&&(t=Ot());return e}function Xt(){var t,u,n,r;if(t=[],u=ut,n=Jt(),59===e.charCodeAt(ut)?(r=";",ut++):(r=s,0===st&&dt(tt)),r!==s?u=n=[n,r]:(ut=u,u=s),u!==s)for(;u!==s;)t.push(u),u=ut,n=Jt(),59===e.charCodeAt(ut)?(r=";",ut++):(r=s,0===st&&dt(tt)),r!==s?u=n=[n,r]:(ut=u,u=s);else t=s;return t===s&&(t=ut,u=function(){var e,t;for(e=[],(t=St())===s&&(t=wt());t!==s;)e.push(t),(t=St())===s&&(t=wt());return e}(),(n=$t())===s&&(n=null),(r=Pt())!==s?t=u=[u,n,r]:(ut=t,t=s),t===s&&(t=ut,u=Jt(),n=function(){var t,u;return t=ut,st++,e.length>ut?(u=e.charAt(ut),ut++):(u=s,0===st&&dt(X)),st--,u===s?t=void 0:(ut=t,t=s),t}(),n!==s?t=u=[u,n]:(ut=t,t=s))),t}const Zt=o.reservedWords||[];if((a=l())!==s&&ut===e.length)return a;throw a!==s&&ut{"use strict";const n=u(48256),r=u(49002),o=u(73629),a=u(68189),s={VERSION:u(62415),RESERVED_WORDS:["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","null","true","false","enum","implements","interface","let","package","private","protected","public","static","yield","await","arguments","eval"],GrammarError:n,GrammarLocation:r,parser:a,compiler:o,generate(e,t){const u="plugins"in(t=void 0!==t?t:{})?t.plugins:[],n={parser:s.parser,passes:function(e){const t={};return Object.keys(e).forEach((u=>{t[u]=e[u].slice()})),t}(s.compiler.passes),reservedWords:s.RESERVED_WORDS.slice()};return u.forEach((e=>{e.use(n,t)})),s.compiler.compile(n.parser.parse(e,{grammarSource:t.grammarSource,reservedWords:n.reservedWords}),n.passes,t)}};e.exports=s},62415:e=>{"use strict";e.exports="3.0.2"},12443:(e,t)=>{class u{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const n=new u;for(let u=0,r=e.length;u=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e{const n=u(39286);t.encode=function(e){let t,u="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,r>>>=5,r>0&&(t|=32),u+=n.encode(t)}while(r>0);return u}},39286:(e,t)=>{const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{const n=u(8023);t.H=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){!function(e,t){const u=e.generatedLine,r=t.generatedLine,o=e.generatedColumn,a=t.generatedColumn;return r>u||r==u&&a>=o||n.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},41393:(e,t,u)=>{const n=u(61944),r=u(8023),o=u(12443).I,a=u(85460).H;class s{constructor(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,u=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){const n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=r.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),u.addMapping(n)})),e.sources.forEach((function(n){let o=n;null!=t&&(o=r.relative(t,n)),u._sources.has(o)||u._sources.add(o);const a=e.sourceContentFor(n);null!=a&&u.setSourceContent(n,a)})),u}addMapping(e){const t=r.getArg(e,"generated"),u=r.getArg(e,"original",null);let n=r.getArg(e,"source",null),o=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,u,n,o),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:u&&u.line,originalColumn:u&&u.column,source:n,name:o})}setSourceContent(e,t){let u=e;null!=this._sourceRoot&&(u=r.relative(this._sourceRoot,u)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(u)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(u)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,u){let n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}const a=this._sourceRoot;null!=a&&(n=r.relative(a,n));const s=this._mappings.toArray().length>0?new o:this._sources,i=new o;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){const n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=u&&(t.source=r.join(u,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const o=t.source;null==o||s.has(o)||s.add(o);const c=t.name;null==c||i.has(c)||i.add(c)}),this),this._sources=s,this._names=i,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=u&&(t=r.join(u,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,u,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!u&&!n);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&u))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:u,original:t,name:n}))}_serializeMappings(){let e,t,u,o,a=0,s=1,i=0,c=0,l=0,p=0,A="";const h=this._mappings.toArray();for(let E=0,d=h.length;E0){if(!r.compareByGeneratedPositionsInflated(t,h[E-1]))continue;e+=","}e+=n.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=n.encode(o-p),p=o,e+=n.encode(t.originalLine-1-c),c=t.originalLine-1,e+=n.encode(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(u=this._names.indexOf(t.name),e+=n.encode(u-l),l=u)),A+=e}return A}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));const u=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}s.prototype._version=3,t.SourceMapGenerator=s},5440:(e,t,u)=>{const n=u(41393).SourceMapGenerator,r=u(8023),o=/(\r?\n)/,a="$$$isSourceNode$$$";class s{constructor(e,t,u,n,r){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==u?null:u,this.name=null==r?null:r,this[a]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(e,t,u){const n=new s,a=e.split(o);let i=0;const c=function(){return e()+(e()||"");function e(){return i=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let u=0,n=this.children.length;u0){for(t=[],u=0;u{t.getArg=function(e,t,u){if(t in e)return e[t];if(3===arguments.length)return u;throw new Error('"'+t+'" is a required argument.')};const u=!("__proto__"in Object.create(null));function n(e){return e}function r(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let u=t-10;u>=0;u--)if(36!==e.charCodeAt(u))return!1;return!0}function o(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?n:function(e){return r(e)?"$"+e:e},t.fromSetString=u?n:function(e){return r(e)?e.slice(1):e},t.compareByGeneratedPositionsInflated=function(e,t){let u=e.generatedLine-t.generatedLine;return 0!==u?u:(u=e.generatedColumn-t.generatedColumn,0!==u?u:(u=o(e.source,t.source),0!==u?u:(u=e.originalLine-t.originalLine,0!==u?u:(u=e.originalColumn-t.originalColumn,0!==u?u:o(e.name,t.name)))))};const a="http:",s="http://host";function i(e){return t=>{const u=A(t),n=l(t),r=new URL(t,n);e(r);const o=r.toString();return"absolute"===u?o:"scheme-relative"===u?o.slice(a.length):"path-absolute"===u?o.slice(s.length):h(n,o)}}function c(e,t){return new URL(e,t).toString()}function l(e){const t=e.split("..").length-1,u=function(e,t){let u=0;for(;;){const e="p"+u++;if(-1===t.indexOf(e))return e}}(0,e);let n="http://host/";for(let e=0;e0&&!n[n.length-1]&&n.pop();u.length>0&&n.length>0&&u[0]===n[0];)u.shift(),n.shift();return n.map((()=>"..")).concat(u).join("/")+t.search+t.hash}const E=i((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),d=i((e=>{}));t.normalize=d,t.join=function(e,t){const u=A(t),n=A(e);if(e=E(e),"absolute"===u)return c(t,void 0);if("absolute"===n)return c(t,e);if("scheme-relative"===u)return d(t);if("scheme-relative"===n)return c(t,c(e,s)).slice(a.length);if("path-absolute"===u)return d(t);if("path-absolute"===n)return c(t,c(e,s)).slice(s.length);const r=l(t+e);return h(r,c(t,c(e,r)))},t.relative=function(e,t){const u=function(e,t){if(A(e)!==A(t))return null;const u=l(e+t),n=new URL(e,u),r=new URL(t,u);try{new URL("",r.toString())}catch(e){return null}return r.protocol!==n.protocol||r.user!==n.user||r.password!==n.password||r.hostname!==n.hostname||r.port!==n.port?null:h(n,r)}(e,t);return"string"==typeof u?u:d(t)}},10782:(e,t,u)=>{t.SourceMapGenerator=u(41393).SourceMapGenerator,t.SourceNode=u(5440).SourceNode}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var u=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](u,u.exports,__webpack_require__),u.exports}__webpack_require__.d=(e,t)=>{for(var u in t)__webpack_require__.o(t,u)&&!__webpack_require__.o(e,u)&&Object.defineProperty(e,u,{enumerable:!0,get:t[u]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{registerWooBlockType:()=>c,useWooBlockProps:()=>t});const e=window.wp.blockEditor,t=function(t){let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={"data-template-block-id":t._templateBlockId,"data-template-block-order":t._templateBlockOrder,tabIndex:-1,...u};return(0,e.useBlockProps)(n)},u=window.wp.blocks,n=window.wp.element,r=__webpack_require__(80154).generate('\n{{\n\tfunction evaluateUnaryExpression( operator, operand ) {\n\t\tswitch ( operator ) {\n\t\t\tcase \'!\':\n\t\t\t\treturn !operand;\n\t\t\t\tbreak;\n\t\t\tcase \'-\':\n\t\t\t\treturn -operand;\n\t\t\t\tbreak;\n\t\t\tcase \'+\':\n\t\t\t\treturn +operand;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction evaluateBinaryExpression( head, tail ) {\n\t\treturn tail.reduce( ( leftOperand, tailElement ) => {\n\t\t\tconst operator = tailElement[ 1 ];\n\t\t\tconst rightOperand = tailElement[ 3 ];\n\n\t\t\tswitch ( operator ) {\n\t\t\t\tcase \'&&\':\n\t\t\t\t\treturn leftOperand && rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'||\':\n\t\t\t\t\treturn leftOperand || rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'===\':\n\t\t\t\t\treturn leftOperand === rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'!==\':\n\t\t\t\t\treturn leftOperand !== rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'==\':\n\t\t\t\t\treturn leftOperand == rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'!=\':\n\t\t\t\t\treturn leftOperand != rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'<=\':\n\t\t\t\t\treturn leftOperand <= rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'<\':\n\t\t\t\t\treturn leftOperand < rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'>=\':\n\t\t\t\t\treturn leftOperand >= rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'>\':\n\t\t\t\t\treturn leftOperand > rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'+\':\n\t\t\t\t\treturn leftOperand + rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'-\':\n\t\t\t\t\treturn leftOperand - rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'*\':\n\t\t\t\t\treturn leftOperand * rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'/\':\n\t\t\t\t\treturn leftOperand / rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'%\':\n\t\t\t\t\treturn leftOperand % rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\treturn undefined;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}, head );\n\t}\n\n\tfunction getPropertyValue( obj, propertyName ) {\n\t\tif ( Object.hasOwn( obj, propertyName ) ) {\n\t\t\treturn obj[ propertyName ];\n\t\t} else if (\n\t\t\tArray.isArray( obj ) &&\n\t\t\tobj.length > 0 &&\n\t\t\tObject.hasOwn( obj[ 0 ], \'key\' ) &&\n\t\t\tObject.hasOwn( obj[ 0 ], \'value\' )\n\t\t) {\n\t\t\t// We likely dealing with an array of objects with key/value pairs (like post meta data)\n\t\t\tconst item = obj.find( ( item ) => item.key === propertyName );\n\t\t\treturn item?.value;\n\t\t}\n\n\t\treturn undefined;\n\t}\n}}\n\nStart\n\t= Expression\n\nSourceCharacter\n\t= .\n\nWhiteSpace\n\t= " "\n\t/ "\\t"\n\nLineTerminator\n\t= "\\n"\n\t/ "\\r"\n\t/ "\\u2028"\n\t/ "\\u2029"\n\nLineTerminatorSequence\n\t= "\\n"\n\t/ "\\r\\n"\n\t/ "\\r"\n\t/ "\\u2028"\n\t/ "\\u2029"\n\nComment "comment"\n\t= MultiLineComment\n\nMultiLineComment\n\t= "/*" (!"*/" SourceCharacter)* "*/"\n\n__ "skipped"\n\t= (WhiteSpace / LineTerminatorSequence / Comment)*\n\nIdentifierPath\n\t= variable:Identifier accessor:(__ "." __ Identifier)* {\n\t\tconst path = variable.split( \'.\' );\n\t\tlet result = path.reduce( getPropertyValue, options.context );\n\n\t\tfor ( let i = 0; i < accessor.length; i++ ) {\n\t\t\tresult = getPropertyValue( result, accessor[ i ][ 3 ] );\n\t\t}\n\n\t\treturn result;\n\t}\n\nIdentifier\n\t= !ReservedWord name:IdentifierName {\n\t\treturn name;\n\t}\n\nIdentifierName\n\t= first:IdentifierStart rest:IdentifierPart* {\n\t\treturn text();\n\t}\n\nIdentifierStart\n\t= [a-zA-Z]\n\t/ "_"\n\t/ "$"\n\nIdentifierPart\n\t= IdentifierStart\n\nReservedWord\n\t= NullLiteral\n\t/ BooleanLiteral\n\n// Literals\n\nLiteral\n\t= NullLiteral\n\t/ BooleanLiteral\n\t/ NumericLiteral\n\t/ StringLiteral\n\nNullLiteral\n\t= NullToken { return null; }\n\nBooleanLiteral\n\t= "true" { return true; }\n\t/ "false" { return false; }\n\nNumericLiteral\n\t= literal:HexIntegerLiteral !(IdentifierStart / DecimalDigit) {\n\t\treturn literal;\n\t}\n\t/ literal:DecimalLiteral !(IdentifierStart / DecimalDigit) {\n\t\treturn literal;\n\t}\n\nHexIntegerLiteral\n\t= "0x"i digits:$HexDigit+ {\n\t\treturn parseInt( digits, 16 );\n\t}\n\nHexDigit\n\t= [0-9a-f]i\n\nDecimalLiteral\n\t= DecimalIntegerLiteral "." DecimalDigit* ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\t/ "." DecimalDigit+ ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\t/ DecimalIntegerLiteral ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\nDecimalIntegerLiteral\n\t= "0"\n\t/ NonZeroDigit DecimalDigit*\n\nDecimalDigit\n\t= [0-9]\n\nNonZeroDigit\n\t= [1-9]\n\nExponentPart\n\t= ExponentIndicator SignedInteger\n\nExponentIndicator\n\t= "e"i\n\nSignedInteger\n\t= [+-]? DecimalDigit+\n\nStringLiteral\n\t= \'"\' chars:DoubleQuotedStringCharacter* \'"\' {\n\t\treturn chars.join( \'\' );\n\t}\n\t/ "\'" chars:SingleQuotedStringCharacter* "\'" {\n\t\treturn chars.join( \'\' );\n\t}\n\nDoubleQuotedStringCharacter\n\t= !(\'"\' / "\\\\" / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\t/ "\\\\" escapeSequence:EscapeSequence {\n\t\treturn escapeSequence;\n\t}\n\t/ LineContinuation\n\nSingleQuotedStringCharacter\n\t= !("\'" / "\\\\" / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\t/ "\\\\" escapeSequence:EscapeSequence {\n\t\treturn escapeSequence;\n\t}\n\t/ LineContinuation\n\nLineContinuation\n\t= "\\\\" LineTerminatorSequence {\n\t\treturn \'\';\n\t}\n\nEscapeSequence\n\t= CharacterEscapeSequence\n\t/ "0" !DecimalDigit {\n\t\treturn "\\0";\n\t}\n\t/ HexEscapeSequence\n\t/ UnicodeEscapeSequence\n\nCharacterEscapeSequence\n\t= SingleEscapeCharacter\n\t/ NonEscapeCharacter\n\nSingleEscapeCharacter\n\t= "\'"\n\t/ \'"\'\n\t/ "\\\\"\n\t/ "b" {\n\t\treturn "\\b";\n\t}\n\t/ "f" {\n\t\treturn "\\f";\n\t}\n\t/ "n" {\n\t\treturn "\\n";\n\t}\n\t/ "r" {\n\t\treturn "\\r";\n\t}\n\t/ "t" {\n\t\treturn "\\t";\n\t}\n\t/ "v" {\n\t\treturn "\\v";\n\t}\n\nNonEscapeCharacter\n\t= (!EscapeCharacter / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\nEscapeCharacter\n\t= SingleEscapeCharacter\n\t/ DecimalDigit\n\t/ "x"\n\t/ "u"\n\nHexEscapeSequence\n\t= "x" digits:$(HexDigit HexDigit) {\n\t\treturn String.fromCharCode( parseInt( digits, 16 ) );\n\t}\n\nUnicodeEscapeSequence\n\t= "u" digits:$(HexDigit HexDigit HexDigit HexDigit) {\n\t\treturn String.fromCharCode( parseInt( digits, 16 ) );\n\t}\n\n// Tokens\n\nNullToken\n\t= "null" !IdentifierPart\n\nTrueToken\n\t= "true" !IdentifierPart\n\nFalseToken\n\t= "false" !IdentifierPart\n\n// Expressions\n\nPrimaryExpression\n\t= IdentifierPath\n\t/ Literal\n\t/ "(" __ expression:Expression __ ")" {\n\t\treturn expression;\n\t}\n\nUnaryExpression\n\t= PrimaryExpression\n\t/ operator:UnaryOperator __ operand:UnaryExpression {\n\t\treturn evaluateUnaryExpression( operator, operand );\n\t}\n\nUnaryOperator\n\t= "!"\n\t/ "-"\n\t/ "+"\n\nMultiplicativeExpression\n\t= head:UnaryExpression tail:(__ MultiplicativeOperator __ UnaryExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nMultiplicativeOperator\n\t= "*"\n\t/ "/"\n\t/ "%"\n\nAdditiveExpression\n\t= head:MultiplicativeExpression tail:(__ AdditiveOperator __ MultiplicativeExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nAdditiveOperator\n\t= "+"\n\t/ "-"\n\nRelationalExpression\n\t= head:AdditiveExpression tail:(__ RelationalOperator __ AdditiveExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nRelationalOperator\n\t= "<="\n\t/ "<"\n\t/ ">="\n\t/ ">"\n\nEqualityExpression\n\t= head:RelationalExpression tail:(__ EqualityOperator __ RelationalExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nEqualityOperator\n\t= "==="\n\t/ "!=="\n\t/ "=="\n\t/ "!="\n\nLogicalAndExpression\n\t= head:EqualityExpression tail:(__ LogicalAndOperator __ EqualityExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nLogicalAndOperator\n\t= "&&"\n\nLogicalOrExpression\n\t= head:LogicalAndExpression tail:(__ LogicalOrOperator __ LogicalAndExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nLogicalOrOperator\n\t= "||"\n\nConditionalExpression\n\t= condition:LogicalOrExpression __ ConditionalTrueOperator __ expressionIfTrue:ConditionalExpression __ ConditionalFalseOperator __ expressionIfFalse:ConditionalExpression {\n\t\treturn condition ? expressionIfTrue : expressionIfFalse;\n\t}\n\t/ LogicalOrExpression\n\nConditionalTrueOperator\n\t= "?"\n\nConditionalFalseOperator\n\t= ":"\n\nExpression\n\t= __ expression:ConditionalExpression __ {\n\t\treturn expression;\n\t}\n');function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.parse(e,{context:t})}const a=window.wp.data;function s(e){return{getEvaluationContext:()=>e}}function i(e,t){return u=>{const{context:r}=u,{_templateBlockHideConditions:s,_templateBlockDisableConditions:i}=u.attributes,{getEvaluationContext:c}=t(r),{shouldHide:l,shouldDisable:p}=(0,a.useSelect)((e=>{const t=c(e);return{shouldHide:s&&Array.isArray(s)&&s.some((e=>o(e.expression,t))),shouldDisable:i&&Array.isArray(i)&&i.some((e=>o(e.expression,t)))}}),[c,s,i]);return!e||l?null:(0,n.createElement)(e,{...u,attributes:{...u.attributes,disabled:u.attributes.disabled||p}})}}function c(e,t){if(!e)return;const{metadata:n,settings:r,name:o}=e,{edit:a}=r;if(!a)return;const c={...n,attributes:(l=n.attributes,{...l,_templateBlockId:{type:"string",__experimentalRole:"content"},_templateBlockOrder:{type:"integer",__experimentalRole:"content"},_templateBlockHideConditions:{type:"array",__experimentalRole:"content"},_templateBlockDisableConditions:{type:"array",__experimentalRole:"content"},disabled:l.disabled||{type:"boolean",__experimentalRole:"content"}})};var l;return(0,u.registerBlockType)({name:o,...c},{...r,edit:i(a,null!=t?t:s)})}})(),(window.wc=window.wc||{}).blockTemplates=__webpack_exports__})();