(()=>{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=(b={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(b).forEach((([e,t])=>{b[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(b));var b;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}}[t.format]();return new c(null,null,t.grammarSource,o.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;t0?{type:"choice",alternatives:[e].concat(t),location:ju()}:e},Kt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:ju()}:e},eu=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:ju()}:e},tu=function(e,t,u){return u.type.startsWith("semantic_")&&Hu('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==t?t[0]:null,labelLocation:null!==t?t[1]:e,pick:!0,expression:u,location:ju()}},uu=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:ju()}},nu=function(){return ju()},ru=function(e){return wn.indexOf(e[0])>=0&&Hu(`Label can't be a reserved word "${e[0]}"`,e[1]),e},ou=function(e,u){return{type:t[e],expression:u,location:ju()}},au=function(e,t){return{type:u[t],expression:e,location:ju()}},su=function(e,t,u){let n=t[0],r=t[1];return"constant"===r.type&&0===r.value&&Hu("The maximum count of repetitions of the rule must be > 0",r.location),{type:"repeated",min:n,max:r,expression:e,delimiter:u,location:ju()}},iu=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},cu=function(e){return[null,e]},lu=function(e){return{type:"constant",value:e,location:ju()}},pu=function(e){return{type:"variable",value:e[0],location:ju()}},Au=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:ju()}},hu=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:ju()}:e},Eu=function(e){return{type:"rule_ref",name:e[0],location:ju()}},du=function(e,t){return{type:n[e],code:t[0],codeLocation:t[1],location:ju()}},fu=function(e,t){return[e+t.join(""),ju()]},Cu=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:ju()}},gu=function(e){return e.join("")},mu=function(e){return e.join("")},Fu=function(e,t,u){return{type:"class",parts:t.filter((e=>""!==e)),inverted:null!==e,ignoreCase:null!==u,location:ju()}},_u=function(t,u){return t.charCodeAt(0)>u.charCodeAt(0)&&Hu("Invalid character range: "+e.substring(Iu,ku)+"."),[t,u]},Du=function(){return""},Bu=function(){return"\0"},xu=function(){return"\b"},vu=function(){return"\f"},yu=function(){return"\n"},bu=function(){return"\r"},Su=function(){return"\t"},Pu=function(){return"\v"},Ou=function(e){return String.fromCharCode(parseInt(e,16))},wu=function(e){return String.fromCharCode(parseInt(e,16))},$u=function(){return{type:"any",location:ju()}},Ru=function(e){return[e,ju()]},Lu=function(e){return parseInt(e,10)},ku=0,Iu=0,Nu=[{line:1,column:1}],Tu=0,Mu=[],Uu=0;if("startRule"in o){if(!(o.startRule in c))throw new Error("Can't start parsing from rule \""+o.startRule+'".');l=c[o.startRule]}function ju(){return Yu(Iu,ku)}function Hu(e,t){throw function(e,t){return new r(e,null,null,t)}(e,t=void 0!==t?t:Yu(Iu,ku))}function qu(e,t){return{type:"literal",text:e,ignoreCase:t}}function Gu(e,t,u){return{type:"class",parts:e,inverted:t,ignoreCase:u}}function zu(e){return{type:"other",description:e}}function Wu(t){var u,n=Nu[t];if(n)return n;for(u=t-1;!Nu[u];)u--;for(n={line:(n=Nu[u]).line,column:n.column};uTu&&(Tu=ku,Mu=[]),Mu.push(e))}function Ju(){var t,u,n,r,o,a;if(t=ku,Pn(),u=ku,n=function(){var t,u,n,r;return t=ku,123===e.charCodeAt(ku)?(u=p,ku++):(u=s,0===Uu&&Vu(ve)),u!==s&&(n=bn())!==s?(125===e.charCodeAt(ku)?(r=A,ku++):(r=s,0===Uu&&Vu(ye)),r!==s&&On()!==s?(Iu=t,t=Jt(n)):(ku=t,t=s)):(ku=t,t=s),t}(),n!==s?(r=Pn(),u=n):(ku=u,u=s),u===s&&(u=null),n=ku,r=function(){var e,t;return e=ku,(t=bn())!==s&&On()!==s?(Iu=e,e=Xt(t)):(ku=e,e=s),e}(),r!==s?(o=Pn(),n=r):(ku=n,n=s),n===s&&(n=null),r=[],o=ku,(a=Xu())!==s?(Pn(),o=a):(ku=o,o=s),o!==s)for(;o!==s;)r.push(o),o=ku,(a=Xu())!==s?(Pn(),o=a):(ku=o,o=s);else r=s;return r!==s?(Iu=t,t=Vt(u,n,r)):(ku=t,t=s),t}function Xu(){var t,u,n,r,o;return t=ku,(u=hn())!==s?(Pn(),n=ku,(r=fn())!==s?(Pn(),n=r):(ku=n,n=s),n===s&&(n=null),61===e.charCodeAt(ku)?(r=h,ku++):(r=s,0===Uu&&Vu(be)),r!==s?(Pn(),(o=Zu())!==s&&On()!==s?(Iu=t,t=Zt(u,n,o)):(ku=t,t=s)):(ku=t,t=s)):(ku=t,t=s),t}function Zu(){var t,u,n,r,o,a;if(t=ku,(u=Qu())!==s){for(n=[],r=ku,Pn(),47===e.charCodeAt(ku)?(o=E,ku++):(o=s,0===Uu&&Vu(Se)),o!==s?(Pn(),(a=Qu())!==s?r=a:(ku=r,r=s)):(ku=r,r=s);r!==s;)n.push(r),r=ku,Pn(),47===e.charCodeAt(ku)?(o=E,ku++):(o=s,0===Uu&&Vu(Se)),o!==s?(Pn(),(a=Qu())!==s?r=a:(ku=r,r=s)):(ku=r,r=s);Iu=t,t=Qt(u,n)}else ku=t,t=s;return t}function Qu(){var e,t,u,n;return e=ku,t=function(){var e,t,u,n,r;if(e=ku,(t=Ku())!==s){for(u=[],n=ku,Pn(),(r=Ku())!==s?n=r:(ku=n,n=s);n!==s;)u.push(n),n=ku,Pn(),(r=Ku())!==s?n=r:(ku=n,n=s);Iu=e,e=eu(t,u)}else ku=e,e=s;return e}(),t!==s?(u=ku,Pn(),(n=bn())!==s?u=n:(ku=u,u=s),u===s&&(u=null),Iu=e,e=Kt(t,u)):(ku=e,e=s),e}function Ku(){var t,u,n,r;return t=ku,u=function(){var t,u;return t=ku,64===e.charCodeAt(ku)?(u=d,ku++):(u=s,0===Uu&&Vu(Pe)),u!==s&&(Iu=t,u=nu()),t=u}(),u!==s?((n=en())===s&&(n=null),(r=tn())!==s?(Iu=t,t=tu(u,n,r)):(ku=t,t=s)):(ku=t,t=s),t===s&&(t=ku,(u=en())!==s?(n=Pn(),(r=tn())!==s?(Iu=t,t=uu(u,r)):(ku=t,t=s)):(ku=t,t=s),t===s&&(t=tn())),t}function en(){var t,u,n;return t=ku,(u=hn())!==s?(Pn(),58===e.charCodeAt(ku)?(n=f,ku++):(n=s,0===Uu&&Vu(Oe)),n!==s?(Iu=t,t=ru(u)):(ku=t,t=s)):(ku=t,t=s),t}function tn(){var t,u,n;return t=ku,u=function(){var t;return 36===e.charCodeAt(ku)?(t=C,ku++):(t=s,0===Uu&&Vu(we)),t===s&&(38===e.charCodeAt(ku)?(t=g,ku++):(t=s,0===Uu&&Vu($e)),t===s&&(33===e.charCodeAt(ku)?(t=m,ku++):(t=s,0===Uu&&Vu(Re)))),t}(),u!==s?(Pn(),(n=un())!==s?(Iu=t,t=ou(u,n)):(ku=t,t=s)):(ku=t,t=s),t===s&&(t=un()),t}function un(){var t,u,n;return t=ku,(u=rn())!==s?(Pn(),n=function(){var t;return 63===e.charCodeAt(ku)?(t=F,ku++):(t=s,0===Uu&&Vu(Le)),t===s&&(42===e.charCodeAt(ku)?(t=_,ku++):(t=s,0===Uu&&Vu(ke)),t===s&&(43===e.charCodeAt(ku)?(t=D,ku++):(t=s,0===Uu&&Vu(Ie)))),t}(),n!==s?(Iu=t,t=au(u,n)):(ku=t,t=s)):(ku=t,t=s),t===s&&(t=function(){var t,u,n,r,o,a,i;return t=ku,(u=rn())!==s?(Pn(),124===e.charCodeAt(ku)?(n=B,ku++):(n=s,0===Uu&&Vu(Ne)),n!==s?(Pn(),r=function(){var t,u,n,r;return t=ku,(u=nn())===s&&(u=null),Pn(),e.substr(ku,2)===v?(n=v,ku+=2):(n=s,0===Uu&&Vu(Me)),n!==s?(Pn(),(r=nn())===s&&(r=null),Iu=t,t=iu(u,r)):(ku=t,t=s),t===s&&(t=ku,(u=nn())!==s&&(Iu=t,u=cu(u)),t=u),t}(),r!==s?(Pn(),o=ku,44===e.charCodeAt(ku)?(a=x,ku++):(a=s,0===Uu&&Vu(Te)),a!==s?(Pn(),(i=Zu())!==s?(Pn(),o=i):(ku=o,o=s)):(ku=o,o=s),o===s&&(o=null),124===e.charCodeAt(ku)?(a=B,ku++):(a=s,0===Uu&&Vu(Ne)),a!==s?(Iu=t,t=su(u,r,o)):(ku=t,t=s)):(ku=t,t=s)):(ku=t,t=s)):(ku=t,t=s),t}(),t===s&&(t=rn())),t}function nn(){var t,u;return t=ku,u=function(){var t,u,n,r;if(t=ku,u=ku,n=[],(r=vn())!==s)for(;r!==s;)n.push(r),r=vn();else n=s;return(u=n!==s?e.substring(u,ku):n)!==s&&(Iu=t,u=Lu(u)),t=u}(),u!==s&&(Iu=t,u=lu(u)),(t=u)===s&&(t=ku,(u=hn())!==s&&(Iu=t,u=pu(u)),(t=u)===s&&(t=ku,(u=bn())!==s&&(Iu=t,u=Au(u)),t=u)),t}function rn(){var t,u,n,r;return t=function(){var t,u,n;return Uu++,t=ku,(u=fn())!==s?(105===e.charCodeAt(ku)?(n=W,ku++):(n=s,0===Uu&&Vu(ht)),n===s&&(n=null),Iu=t,t=Cu(u,n)):(ku=t,t=s),Uu--,t===s&&(u=s,0===Uu&&Vu(At)),t}(),t===s&&(t=function(){var t,u,n,r,o,a;if(Uu++,t=ku,91===e.charCodeAt(ku)?(u=J,ku++):(u=s,0===Uu&&Vu(gt)),u!==s){for(94===e.charCodeAt(ku)?(n=X,ku++):(n=s,0===Uu&&Vu(mt)),n===s&&(n=null),r=[],(o=mn())===s&&(o=Fn());o!==s;)r.push(o),(o=mn())===s&&(o=Fn());93===e.charCodeAt(ku)?(o=Z,ku++):(o=s,0===Uu&&Vu(Ft)),o!==s?(105===e.charCodeAt(ku)?(a=W,ku++):(a=s,0===Uu&&Vu(ht)),a===s&&(a=null),Iu=t,t=Fu(n,r,a)):(ku=t,t=s)}else ku=t,t=s;return Uu--,t===s&&(u=s,0===Uu&&Vu(Ct)),t}(),t===s&&(t=function(){var t,u;return t=ku,46===e.charCodeAt(ku)?(u=ie,ku++):(u=s,0===Uu&&Vu(Rt)),u!==s&&(Iu=t,u=$u()),t=u}(),t===s&&(t=function(){var t,u,n,r,o,a,i;return t=ku,(u=hn())!==s?(n=ku,Uu++,r=ku,o=Pn(),a=ku,(i=fn())!==s?a=i=[i,Pn()]:(ku=a,a=s),a===s&&(a=null),61===e.charCodeAt(ku)?(i=h,ku++):(i=s,0===Uu&&Vu(be)),i!==s?r=o=[o,a,i]:(ku=r,r=s),Uu--,r===s?n=void 0:(ku=n,n=s),n!==s?(Iu=t,t=Eu(u)):(ku=t,t=s)):(ku=t,t=s),t}(),t===s&&(t=function(){var t,u,n;return t=ku,u=function(){var t;return 38===e.charCodeAt(ku)?(t=g,ku++):(t=s,0===Uu&&Vu($e)),t===s&&(33===e.charCodeAt(ku)?(t=m,ku++):(t=s,0===Uu&&Vu(Re))),t}(),u!==s?(Pn(),(n=bn())!==s?(Iu=t,t=du(u,n)):(ku=t,t=s)):(ku=t,t=s),t}(),t===s&&(t=ku,40===e.charCodeAt(ku)?(u=y,ku++):(u=s,0===Uu&&Vu(Ue)),u!==s?(Pn(),(n=Zu())!==s?(Pn(),41===e.charCodeAt(ku)?(r=b,ku++):(r=s,0===Uu&&Vu(je)),r!==s?(Iu=t,t=hu(n)):(ku=t,t=s)):(ku=t,t=s)):(ku=t,t=s)))))),t}function on(){var t;return e.length>ku?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(He)),t}function an(){var t;return Uu++,9===e.charCodeAt(ku)?(t=S,ku++):(t=s,0===Uu&&Vu(Ge)),t===s&&(11===e.charCodeAt(ku)?(t=P,ku++):(t=s,0===Uu&&Vu(ze)),t===s&&(12===e.charCodeAt(ku)?(t=O,ku++):(t=s,0===Uu&&Vu(We)),t===s&&(32===e.charCodeAt(ku)?(t=w,ku++):(t=s,0===Uu&&Vu(Ye)),t===s&&(160===e.charCodeAt(ku)?(t=$,ku++):(t=s,0===Uu&&Vu(Ve)),t===s&&(65279===e.charCodeAt(ku)?(t=R,ku++):(t=s,0===Uu&&Vu(Je)),t===s&&(t=function(){var t;return xe.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Wt)),t}())))))),Uu--,t===s&&0===Uu&&Vu(qe),t}function sn(){var t;return le.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Xe)),t}function cn(){var t;return Uu++,10===e.charCodeAt(ku)?(t=L,ku++):(t=s,0===Uu&&Vu(Qe)),t===s&&(e.substr(ku,2)===k?(t=k,ku+=2):(t=s,0===Uu&&Vu(Ke)),t===s&&(13===e.charCodeAt(ku)?(t=I,ku++):(t=s,0===Uu&&Vu(et)),t===s&&(8232===e.charCodeAt(ku)?(t=N,ku++):(t=s,0===Uu&&Vu(tt)),t===s&&(8233===e.charCodeAt(ku)?(t=T,ku++):(t=s,0===Uu&&Vu(ut)))))),Uu--,t===s&&0===Uu&&Vu(Ze),t}function ln(){var t;return Uu++,(t=function(){var t,u,n,r,o,a;if(t=ku,e.substr(ku,2)===M?(u=M,ku+=2):(u=s,0===Uu&&Vu(rt)),u!==s){for(n=[],r=ku,o=ku,Uu++,e.substr(ku,2)===U?(a=U,ku+=2):(a=s,0===Uu&&Vu(ot)),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);r!==s;)n.push(r),r=ku,o=ku,Uu++,e.substr(ku,2)===U?(a=U,ku+=2):(a=s,0===Uu&&Vu(ot)),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);e.substr(ku,2)===U?(r=U,ku+=2):(r=s,0===Uu&&Vu(ot)),r!==s?t=u=[u,n,r]:(ku=t,t=s)}else ku=t,t=s;return t}())===s&&(t=An()),Uu--,t===s&&0===Uu&&Vu(nt),t}function pn(){var t,u,n,r,o,a;if(t=ku,e.substr(ku,2)===M?(u=M,ku+=2):(u=s,0===Uu&&Vu(rt)),u!==s){for(n=[],r=ku,o=ku,Uu++,e.substr(ku,2)===U?(a=U,ku+=2):(a=s,0===Uu&&Vu(ot)),a===s&&(a=sn()),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);r!==s;)n.push(r),r=ku,o=ku,Uu++,e.substr(ku,2)===U?(a=U,ku+=2):(a=s,0===Uu&&Vu(ot)),a===s&&(a=sn()),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);e.substr(ku,2)===U?(r=U,ku+=2):(r=s,0===Uu&&Vu(ot)),r!==s?t=u=[u,n,r]:(ku=t,t=s)}else ku=t,t=s;return t}function An(){var t,u,n,r,o,a;if(t=ku,e.substr(ku,2)===j?(u=j,ku+=2):(u=s,0===Uu&&Vu(at)),u!==s){for(n=[],r=ku,o=ku,Uu++,a=sn(),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);r!==s;)n.push(r),r=ku,o=ku,Uu++,a=sn(),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);t=u=[u,n]}else ku=t,t=s;return t}function hn(){var e,t,u,n;if(Uu++,e=ku,(t=En())!==s){for(u=[],n=dn();n!==s;)u.push(n),n=dn();Iu=e,e=fu(t,u)}else ku=e,e=s;return Uu--,e===s&&(t=s,0===Uu&&Vu(st)),e}function En(){var t,u,n;return(t=function(){var t;return(t=function(){var t;return ge.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Ut)),t}())===s&&(t=function(){var t;return Ee.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(It)),t}())===s&&(t=function(){var t;return Ce.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Mt)),t}())===s&&(t=function(){var t;return de.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Nt)),t}())===s&&(t=function(){var t;return fe.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Tt)),t}())===s&&(t=function(){var t;return De.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Gt)),t}()),t}())===s&&(95===e.charCodeAt(ku)?(t=H,ku++):(t=s,0===Uu&&Vu(it)),t===s&&(t=ku,92===e.charCodeAt(ku)?(u=q,ku++):(u=s,0===Uu&&Vu(ct)),u!==s&&(n=xn())!==s?t=n:(ku=t,t=s))),t}function dn(){var t;return(t=En())===s&&(36===e.charCodeAt(ku)?(t=C,ku++):(t=s,0===Uu&&Vu(we)),t===s&&(t=function(){var t;return(t=function(){var t;return Fe.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(Ht)),t}())===s&&(t=function(){var t;return me.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(jt)),t}()),t}())===s&&(t=function(){var t;return _e.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(qt)),t}())===s&&(t=function(){var t;return Be.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(zt)),t}())===s&&(8204===e.charCodeAt(ku)?(t=G,ku++):(t=s,0===Uu&&Vu(lt)),t===s&&(8205===e.charCodeAt(ku)?(t=z,ku++):(t=s,0===Uu&&Vu(pt))))),t}function fn(){var t,u,n,r;if(Uu++,t=ku,34===e.charCodeAt(ku)?(u=Y,ku++):(u=s,0===Uu&&Vu(dt)),u!==s){for(n=[],r=Cn();r!==s;)n.push(r),r=Cn();34===e.charCodeAt(ku)?(r=Y,ku++):(r=s,0===Uu&&Vu(dt)),r!==s?(Iu=t,t=gu(n)):(ku=t,t=s)}else ku=t,t=s;if(t===s)if(t=ku,39===e.charCodeAt(ku)?(u=V,ku++):(u=s,0===Uu&&Vu(ft)),u!==s){for(n=[],r=gn();r!==s;)n.push(r),r=gn();39===e.charCodeAt(ku)?(r=V,ku++):(r=s,0===Uu&&Vu(ft)),r!==s?(Iu=t,t=mu(n)):(ku=t,t=s)}else ku=t,t=s;return Uu--,t===s&&(u=s,0===Uu&&Vu(Et)),t}function Cn(){var t,u,n,r;return t=ku,u=ku,n=ku,Uu++,34===e.charCodeAt(ku)?(r=Y,ku++):(r=s,0===Uu&&Vu(dt)),r===s&&(92===e.charCodeAt(ku)?(r=q,ku++):(r=s,0===Uu&&Vu(ct)),r===s&&(r=sn())),Uu--,r===s?n=void 0:(ku=n,n=s),n!==s&&(r=on())!==s?u=n=[n,r]:(ku=u,u=s),(t=u!==s?e.substring(t,ku):u)===s&&(t=ku,92===e.charCodeAt(ku)?(u=q,ku++):(u=s,0===Uu&&Vu(ct)),u!==s&&(n=Dn())!==s?t=n:(ku=t,t=s),t===s&&(t=_n())),t}function gn(){var t,u,n,r;return t=ku,u=ku,n=ku,Uu++,39===e.charCodeAt(ku)?(r=V,ku++):(r=s,0===Uu&&Vu(ft)),r===s&&(92===e.charCodeAt(ku)?(r=q,ku++):(r=s,0===Uu&&Vu(ct)),r===s&&(r=sn())),Uu--,r===s?n=void 0:(ku=n,n=s),n!==s&&(r=on())!==s?u=n=[n,r]:(ku=u,u=s),(t=u!==s?e.substring(t,ku):u)===s&&(t=ku,92===e.charCodeAt(ku)?(u=q,ku++):(u=s,0===Uu&&Vu(ct)),u!==s&&(n=Dn())!==s?t=n:(ku=t,t=s),t===s&&(t=_n())),t}function mn(){var t,u,n,r;return t=ku,(u=Fn())!==s?(45===e.charCodeAt(ku)?(n=Q,ku++):(n=s,0===Uu&&Vu(_t)),n!==s&&(r=Fn())!==s?(Iu=t,t=_u(u,r)):(ku=t,t=s)):(ku=t,t=s),t}function Fn(){var t,u,n,r;return t=ku,u=ku,n=ku,Uu++,93===e.charCodeAt(ku)?(r=Z,ku++):(r=s,0===Uu&&Vu(Ft)),r===s&&(92===e.charCodeAt(ku)?(r=q,ku++):(r=s,0===Uu&&Vu(ct)),r===s&&(r=sn())),Uu--,r===s?n=void 0:(ku=n,n=s),n!==s&&(r=on())!==s?u=n=[n,r]:(ku=u,u=s),(t=u!==s?e.substring(t,ku):u)===s&&(t=ku,92===e.charCodeAt(ku)?(u=q,ku++):(u=s,0===Uu&&Vu(ct)),u!==s&&(n=Dn())!==s?t=n:(ku=t,t=s),t===s&&(t=_n())),t}function _n(){var t,u;return t=ku,92===e.charCodeAt(ku)?(u=q,ku++):(u=s,0===Uu&&Vu(ct)),u!==s&&cn()!==s?(Iu=t,t=Du()):(ku=t,t=s),t}function Dn(){var t,u,n,r;return t=function(){var t;return(t=Bn())===s&&(t=function(){var t,u,n,r;return t=ku,u=ku,n=ku,Uu++,r=function(){var t;return(t=Bn())===s&&(t=vn())===s&&(120===e.charCodeAt(ku)?(t=ae,ku++):(t=s,0===Uu&&Vu(Pt)),t===s&&(117===e.charCodeAt(ku)?(t=se,ku++):(t=s,0===Uu&&Vu(Ot)))),t}(),r===s&&(r=sn()),Uu--,r===s?n=void 0:(ku=n,n=s),n!==s&&(r=on())!==s?u=n=[n,r]:(ku=u,u=s),t=u!==s?e.substring(t,ku):u}()),t}(),t===s&&(t=ku,48===e.charCodeAt(ku)?(u=K,ku++):(u=s,0===Uu&&Vu(Dt)),u!==s?(n=ku,Uu++,r=vn(),Uu--,r===s?n=void 0:(ku=n,n=s),n!==s?(Iu=t,t=Bu()):(ku=t,t=s)):(ku=t,t=s),t===s&&(t=function(){var t,u,n,r,o,a;return t=ku,120===e.charCodeAt(ku)?(u=ae,ku++):(u=s,0===Uu&&Vu(Pt)),u!==s?(n=ku,r=ku,(o=yn())!==s&&(a=yn())!==s?r=o=[o,a]:(ku=r,r=s),(n=r!==s?e.substring(n,ku):r)!==s?(Iu=t,t=Ou(n)):(ku=t,t=s)):(ku=t,t=s),t}(),t===s&&(t=xn()))),t}function Bn(){var t,u;return 39===e.charCodeAt(ku)?(t=V,ku++):(t=s,0===Uu&&Vu(ft)),t===s&&(34===e.charCodeAt(ku)?(t=Y,ku++):(t=s,0===Uu&&Vu(dt)),t===s&&(92===e.charCodeAt(ku)?(t=q,ku++):(t=s,0===Uu&&Vu(ct)),t===s&&(t=ku,98===e.charCodeAt(ku)?(u=ee,ku++):(u=s,0===Uu&&Vu(Bt)),u!==s&&(Iu=t,u=xu()),(t=u)===s&&(t=ku,102===e.charCodeAt(ku)?(u=te,ku++):(u=s,0===Uu&&Vu(xt)),u!==s&&(Iu=t,u=vu()),(t=u)===s&&(t=ku,110===e.charCodeAt(ku)?(u=ue,ku++):(u=s,0===Uu&&Vu(vt)),u!==s&&(Iu=t,u=yu()),(t=u)===s&&(t=ku,114===e.charCodeAt(ku)?(u=ne,ku++):(u=s,0===Uu&&Vu(yt)),u!==s&&(Iu=t,u=bu()),(t=u)===s&&(t=ku,116===e.charCodeAt(ku)?(u=re,ku++):(u=s,0===Uu&&Vu(bt)),u!==s&&(Iu=t,u=Su()),(t=u)===s&&(t=ku,118===e.charCodeAt(ku)?(u=oe,ku++):(u=s,0===Uu&&Vu(St)),u!==s&&(Iu=t,u=Pu()),t=u)))))))),t}function xn(){var t,u,n,r,o,a,i,c;return t=ku,117===e.charCodeAt(ku)?(u=se,ku++):(u=s,0===Uu&&Vu(Ot)),u!==s?(n=ku,r=ku,(o=yn())!==s&&(a=yn())!==s&&(i=yn())!==s&&(c=yn())!==s?r=o=[o,a,i,c]:(ku=r,r=s),(n=r!==s?e.substring(n,ku):r)!==s?(Iu=t,t=wu(n)):(ku=t,t=s)):(ku=t,t=s),t}function vn(){var t;return pe.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu(wt)),t}function yn(){var t;return Ae.test(e.charAt(ku))?(t=e.charAt(ku),ku++):(t=s,0===Uu&&Vu($t)),t}function bn(){var t,u,n,r;return Uu++,t=ku,123===e.charCodeAt(ku)?(u=p,ku++):(u=s,0===Uu&&Vu(ve)),u!==s?(n=function(){var e,t;return e=ku,t=Sn(),Iu=e,e=t=Ru(t)}(),125===e.charCodeAt(ku)?(r=A,ku++):(r=s,0===Uu&&Vu(ye)),r!==s?t=n:(ku=t,t=s)):(ku=t,t=s),Uu--,t===s&&(u=s,0===Uu&&Vu(Lt)),t}function Sn(){var t,u,n,r,o,a;if(t=ku,u=[],n=[],r=ku,o=ku,Uu++,he.test(e.charAt(ku))?(a=e.charAt(ku),ku++):(a=s,0===Uu&&Vu(kt)),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s),r!==s)for(;r!==s;)n.push(r),r=ku,o=ku,Uu++,he.test(e.charAt(ku))?(a=e.charAt(ku),ku++):(a=s,0===Uu&&Vu(kt)),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);else n=s;for(n===s&&(n=ku,123===e.charCodeAt(ku)?(r=p,ku++):(r=s,0===Uu&&Vu(ve)),r!==s?(o=Sn(),125===e.charCodeAt(ku)?(a=A,ku++):(a=s,0===Uu&&Vu(ye)),a!==s?n=r=[r,o,a]:(ku=n,n=s)):(ku=n,n=s));n!==s;){if(u.push(n),n=[],r=ku,o=ku,Uu++,he.test(e.charAt(ku))?(a=e.charAt(ku),ku++):(a=s,0===Uu&&Vu(kt)),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s),r!==s)for(;r!==s;)n.push(r),r=ku,o=ku,Uu++,he.test(e.charAt(ku))?(a=e.charAt(ku),ku++):(a=s,0===Uu&&Vu(kt)),Uu--,a===s?o=void 0:(ku=o,o=s),o!==s&&(a=on())!==s?r=o=[o,a]:(ku=r,r=s);else n=s;n===s&&(n=ku,123===e.charCodeAt(ku)?(r=p,ku++):(r=s,0===Uu&&Vu(ve)),r!==s?(o=Sn(),125===e.charCodeAt(ku)?(a=A,ku++):(a=s,0===Uu&&Vu(ye)),a!==s?n=r=[r,o,a]:(ku=n,n=s)):(ku=n,n=s))}return e.substring(t,ku)}function Pn(){var e,t;for(e=[],(t=an())===s&&(t=cn())===s&&(t=ln());t!==s;)e.push(t),(t=an())===s&&(t=cn())===s&&(t=ln());return e}function On(){var t,u,n,r;if(t=[],u=ku,n=Pn(),59===e.charCodeAt(ku)?(r=ce,ku++):(r=s,0===Uu&&Vu(Yt)),r!==s?u=n=[n,r]:(ku=u,u=s),u!==s)for(;u!==s;)t.push(u),u=ku,n=Pn(),59===e.charCodeAt(ku)?(r=ce,ku++):(r=s,0===Uu&&Vu(Yt)),r!==s?u=n=[n,r]:(ku=u,u=s);else t=s;return t===s&&(t=ku,u=function(){var e,t;for(e=[],(t=an())===s&&(t=pn());t!==s;)e.push(t),(t=an())===s&&(t=pn());return e}(),(n=An())===s&&(n=null),(r=cn())!==s?t=u=[u,n,r]:(ku=t,t=s),t===s&&(t=ku,u=Pn(),n=function(){var t,u;return t=ku,Uu++,e.length>ku?(u=e.charAt(ku),ku++):(u=s,0===Uu&&Vu(He)),Uu--,u===s?t=void 0:(ku=t,t=s),t}(),n!==s?t=u=[u,n]:(ku=t,t=s))),t}const wn=o.reservedWords||[];if((a=l())!==s&&ku===e.length)return a;throw a!==s&&ku{"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://host";function s(e){return t=>{const u=p(t),n=c(t),r=new URL(t,n);e(r);const o=r.toString();return"absolute"===u?o:"scheme-relative"===u?o.slice(5):"path-absolute"===u?o.slice(a.length):A(n,o)}}function i(e,t){return new URL(e,t).toString()}function c(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=`${a}/`;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 h=s((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),E=s((e=>{}));t.normalize=E,t.join=function(e,t){const u=p(t),n=p(e);if(e=h(e),"absolute"===u)return i(t,void 0);if("absolute"===n)return i(t,e);if("scheme-relative"===u)return E(t);if("scheme-relative"===n)return i(t,i(e,a)).slice(5);if("path-absolute"===u)return E(t);if("path-absolute"===n)return i(t,i(e,a)).slice(a.length);const r=c(t+e);return A(r,i(t,i(e,r)))},t.relative=function(e,t){const u=function(e,t){if(p(e)!==p(t))return null;const u=c(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:A(n,r)}(e,t);return"string"==typeof u?u:E(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:()=>p,useLayoutTemplate:()=>n,useWooBlockProps:()=>o});const e=window.wp.element,t=window.wp.coreData,u=window.wp.data,n=n=>{const[r,o]=(0,e.useState)(!1);(0,e.useEffect)((()=>{n&&((0,u.select)("core").getEntityConfig("root","wcLayoutTemplate")||(0,u.dispatch)("core").addEntities([{kind:"root",name:"wcLayoutTemplate",baseURL:"/wc/v3/layout-templates",label:"Layout Templates"}]),o(!0))}),[n]);const{record:a,isResolving:s}=(0,t.useEntityRecord)("root","wcLayoutTemplate",n||"__invalid-template-id",{enabled:r});return{layoutTemplate:a,isResolving:s}},r=window.wp.blockEditor,o=(e,t={})=>{const u={"data-template-block-id":e._templateBlockId,"data-template-block-order":e._templateBlockOrder,tabIndex:-1,...t};return(0,r.useBlockProps)(u)},a=window.wp.blocks,s=__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 i(e,t={}){return s.parse(e,{context:t})}function c(e){return{getEvaluationContext:()=>e}}function l(t,n){return r=>{const{context:o}=r,{_templateBlockHideConditions:a,_templateBlockDisableConditions:s}=r.attributes,{getEvaluationContext:c}=n(o),{shouldHide:l,shouldDisable:p}=(0,u.useSelect)((e=>{const t=c(e);return{shouldHide:a&&Array.isArray(a)&&a.some((e=>i(e.expression,t))),shouldDisable:s&&Array.isArray(s)&&s.some((e=>i(e.expression,t)))}}),[c,a,s]);return!t||l?null:(0,e.createElement)(t,{...r,attributes:{...r.attributes,disabled:r.attributes.disabled||p}})}}function p(e,t){if(!e)return;const{metadata:u,settings:n,name:r}=e,{edit:o}=n;if(!o)return;const s={...u,attributes:(i=u.attributes,{...i,_templateBlockId:{type:"string",__experimentalRole:"content"},_templateBlockOrder:{type:"integer",__experimentalRole:"content"},_templateBlockHideConditions:{type:"array",__experimentalRole:"content"},_templateBlockDisableConditions:{type:"array",__experimentalRole:"content"},disabled:i.disabled||{type:"boolean",__experimentalRole:"content"}})};var i;return(0,a.registerBlockType)({name:r,...s},{...n,edit:l(o,null!=t?t:c)})}})(),(window.wc=window.wc||{}).blockTemplates=__webpack_exports__})();