From 6a5338951c109ffd62d27d1ad130c0d0067ff782 Mon Sep 17 00:00:00 2001 From: Joe Hildebrand Date: Tue, 16 Jul 2024 10:40:58 -0600 Subject: [PATCH] Update dependencies. Fix weird pnpm reinstall issue. --- .npmignore | 1 + bin/peggy-cli.js | 34 +- bin/watcher.js | 1 - docs/js/benchmark-bundle.min.js | 2 +- docs/js/test-bundle.min.js | 2 +- docs/pnpm-lock.yaml | 1659 ------------- docs/vendor/peggy/peggy.min.js | 2 +- eslint.config.js | 1 + lib/compiler/passes/generate-bytecode.js | 1 - lib/compiler/passes/generate-js.js | 1 + lib/compiler/passes/inference-match-result.js | 3 +- lib/grammar-error.js | 1 + package.json | 27 +- pnpm-lock.yaml | 2043 ++++++++++++----- pnpm-workspace.yaml | 5 + .../generated-parser-behavior.spec.js | 3 +- test/cli/fixtures/frags/.npmrc | 1 + test/cli/fixtures/frags/pnpm-lock.yaml | 9 - test/cli/fixtures/useFrags/.npmrc | 1 + test/cli/fixtures/useFrags/package-lock.json | 24 - test/cli/fixtures/useFrags/pnpm-lock.yaml | 22 - test/cli/run.spec.ts | 5 +- test/types/peg.test-d.ts | 2 +- test/unit/compiler/passes/helpers.js | 3 +- test/unit/parser.spec.js | 3 +- web-test/package.json | 2 +- web-test/pnpm-lock.yaml | 67 - 27 files changed, 1552 insertions(+), 2373 deletions(-) delete mode 100644 docs/pnpm-lock.yaml create mode 100644 pnpm-workspace.yaml create mode 100644 test/cli/fixtures/frags/.npmrc delete mode 100644 test/cli/fixtures/frags/pnpm-lock.yaml create mode 100644 test/cli/fixtures/useFrags/.npmrc delete mode 100644 test/cli/fixtures/useFrags/package-lock.json delete mode 100644 test/cli/fixtures/useFrags/pnpm-lock.yaml delete mode 100644 web-test/pnpm-lock.yaml diff --git a/.npmignore b/.npmignore index ed8241d4..5ce03fd2 100644 --- a/.npmignore +++ b/.npmignore @@ -28,3 +28,4 @@ tools tsconfig*.json web-test/ yarn.lock +pnpm-workspace.yaml diff --git a/bin/peggy-cli.js b/bin/peggy-cli.js index 86f03ce4..78de666f 100644 --- a/bin/peggy-cli.js +++ b/bin/peggy-cli.js @@ -47,13 +47,11 @@ function readStream(inputStream) { } function readFile(name) { - let f = null; try { - f = fs.readFileSync(name, "utf8"); + return fs.readFileSync(name, "utf8"); } catch (e) { throw new InvalidArgumentError(`Can't read from file "${name}".`, e); } - return f; } async function ensureDirectoryExists(filename) { @@ -161,13 +159,12 @@ class PeggyCLI extends Command { "-D, --dependencies ", "Dependencies, in JSON object format with variable:module pairs. (Can be specified multiple times).", (val, prev = {}) => { - let v = null; try { - v = JSON.parse(val); + const v = JSON.parse(val); + return Object.assign(prev, v); } catch (e) { throw new InvalidArgumentError(`Error parsing JSON: ${e.message}`); } - return Object.assign(prev, v); } ) .option( @@ -477,15 +474,12 @@ class PeggyCLI extends Command { * @returns {peggy.BuildOptionsBase} */ addExtraOptionsJSON(json, source) { - let extraOptions = undefined; - try { - extraOptions = JSON.parse(json); + const extraOptions = JSON.parse(json); + return this.addExtraOptions(extraOptions, source); } catch (e) { throw new InvalidArgumentError(`Error parsing JSON: ${e.message}`); } - - return this.addExtraOptions(extraOptions, source); } /** @@ -667,7 +661,8 @@ class PeggyCLI extends Command { try { for (const source of this.inputFiles) { const input = { source, text: null }; - this.verbose("CLI", errorText = `reading input "${source}"`); + errorText = `reading input "${source}"`; + this.verbose("CLI", errorText); if (source === "-") { input.source = "stdin"; this.std.in.resume(); @@ -687,10 +682,12 @@ class PeggyCLI extends Command { // This is wrong. It's a hack in place until source generation is fixed. this.argv.grammarSource = sources[0].source; - this.verbose("CLI", errorText = "parsing grammar"); + errorText = "parsing grammar"; + this.verbose("CLI", errorText); const source = peggy.generate(sources, this.argv); // All of the real work. - this.verbose("CLI", errorText = "opening output stream"); + errorText = "opening output stream"; + this.verbose("CLI", errorText); const outputStream = await this.openOutputStream(); // If option `--ast` is specified, `generate()` returns an AST object @@ -698,14 +695,17 @@ class PeggyCLI extends Command { this.verbose("CLI", errorText = "writing AST"); await this.writeOutput(outputStream, JSON.stringify(source, null, 2)); } else { - this.verbose("CLI", errorText = "writing sourceMap"); + errorText = "writing sourceMap"; + this.verbose("CLI", errorText); const mappedSource = await this.writeSourceMap(source); - this.verbose("CLI", errorText = "writing parser"); + errorText = "writing parser"; + this.verbose("CLI", errorText); await this.writeOutput(outputStream, mappedSource); exitCode = 2; - this.verbose("CLI", errorText = "running test"); + errorText = "running test"; + this.verbose("CLI", errorText); await this.test(mappedSource); } } catch (error) { diff --git a/bin/watcher.js b/bin/watcher.js index 01398a84..ec123b50 100644 --- a/bin/watcher.js +++ b/bin/watcher.js @@ -37,7 +37,6 @@ class Watcher extends EventEmitter { this.watchers = []; for (const dir of dirs) { - // eslint-disable-next-line func-style -- Needs "this" const changed = (_typ, fn) => { if (typeof this.timeout === "symbol") { return; diff --git a/docs/js/benchmark-bundle.min.js b/docs/js/benchmark-bundle.min.js index 6c03c5d7..01237f03 100644 --- a/docs/js/benchmark-bundle.min.js +++ b/docs/js/benchmark-bundle.min.js @@ -5,4 +5,4 @@ // Copyright (c) 2024- the Peggy authors // Licensed under the MIT License. -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).browser=t()}(this,(function(){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},browser_stub={},GrammarLocation$4=function(){function e(e,t){this.source=e,this.start=t}return e.prototype.toString=function(){return String(this.source)},e.prototype.offset=function(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}},e.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},e.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},e}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},GrammarError$3=function(e){function t(r,n,o){var u=e.call(this,r)||this;return setProtoOf(u,t.prototype),u.name="GrammarError",u.location=n,void 0===o&&(o=[]),u.diagnostics=o,u.stage=null,u.problems=[["error",r,n,o]],u}return __extends(t,e),t.prototype.toString=function(){var t=e.prototype.toString.call(this);this.location&&(t+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(t+="".concat(this.location.source,":")),t+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var r=0,n=this.diagnostics;r1&&e.delimiter&&o(e.delimiter)))},semantic_and:n,semantic_not:n,rule_ref:function(t){var r=asts$8.findRule(e,t.name);return r?o(r):void 0},library_ref:function(){return!1},literal:function(e){return""!==e.value},class:r,any:r});return o(t)},combine:function(e){return e.reduce((function(e,t){return e.topLevelInitializer=combinePossibleArrays(e.topLevelInitializer,t.topLevelInitializer),e.initializer=combinePossibleArrays(e.initializer,t.initializer),e.rules=e.rules.concat(t.rules),e}))}},asts_1=asts$8;function addImportedRules$1(e){for(var t=0,r=0,n=e.imports;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var u=visitor$a.build({rule:function(e){var t=void 0,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=u(e.expression),++r>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:n,choice:function(e){return e.match=o(e.alternatives,!0)},action:n,sequence:function(e){return e.match=o(e.elements,!1)},labeled:n,text:n,simple_and:n,simple_not:function(e){return e.match=-u(e.expression)},optional:r,zero_or_more:r,one_or_more:n,repeated:function(e){var t=u(e.expression),r=e.delimiter?u(e.delimiter):NEVER_MATCH$1,n=e.min?e.min:e.max;return"constant"!==n.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&n.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===n.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&n.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&n.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===n.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:n,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?t.match=u(r):SOMETIMES_MATCH$1},library_ref:function(){return 0},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});u(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],p([op$1.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=l(t.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,o=E(e.expression,{sp:t.sp+(n?1:0),env:r,action:e}),u=e.expression.match||0,a=n&&u!==NEVER_MATCH?s(!1,Object.keys(r),e):-1;return n?p([op$1.PUSH_CURR_POS],o,f(u,[op$1.IF_NOT_ERROR],p([op$1.LOAD_SAVED_POS,1],h(a,1,r,t.sp+2)),[]),[op$1.NIP]):o},sequence:function(e,t){return p([op$1.PUSH_CURR_POS],function t(r,n){if(r.length>0){var o=e.elements.length-r.length+1;return p(E(r[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),f(r[0].match||0,[op$1.IF_NOT_ERROR],t(r.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),p(o>1?[op$1.POP_N,o]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(n.pluck&&n.pluck.length>0)return p([op$1.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((function(e){return n.sp-e})));if(n.action){var u=s(!1,Object.keys(n.env),n.action);return p([op$1.LOAD_SAVED_POS,e.elements.length],h(u,e.elements.length+1,n.env,n.sp))}return p([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,n){var o=n.env,u=e.label,a=n.sp+1;u&&(o=l(n.env),n.env[u]=a),e.pick&&n.pluck.push(a);var i=E(e.expression,{sp:n.sp,env:o,action:null});return u&&e.labelLocation&&t&&"source-and-map"===t.output?p([op$1.SOURCE_MAP_LABEL_PUSH,a,r.add(u),c(e.labelLocation)],i,[op$1.SOURCE_MAP_LABEL_POP,a]):i},text:function(e,t){return p([op$1.PUSH_CURR_POS],E(e.expression,{sp:t.sp+1,env:l(t.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,t){return d(e.expression,!1,t)},simple_not:function(e,t){return d(e.expression,!0,t)},optional:function(e,t){return p(E(e.expression,{sp:t.sp,env:l(t.env),action:null}),f(-(e.expression.match||0),[op$1.IF_ERROR],p([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=E(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,m(r),[op$1.POP])},one_or_more:function(e,t){var r=E(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,f(e.expression.match||0,[op$1.IF_NOT_ERROR],p(m(r),[op$1.POP]),p([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,n="constant"!==r.type||r.value>0,o="constant"!==e.max.type&&null!==e.max.value,u=n?2:1,a=e.min?A(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},i=A(e.max,t.env,a.sp,u),s=E(e.expression,{sp:i.sp+u,env:l(t.env),action:null}),c=null!==e.delimiter?E(e.expression,{sp:i.sp+u+1,env:l(t.env),action:null}):s,h=function(e,t,r,n,o){return e?p([op$1.PUSH_CURR_POS],E(e,{sp:n.sp+o+1,env:l(n.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],r,f(-t,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):r}(e.delimiter,e.expression.match||0,c,t,u),d=_(h,e.max),g=o?_(s,e.max):s,v=p(n?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],g,m(d),[op$1.POP]);return p(a.pre,i.pre,n?function(e,t){var r="constant"===t.type?[op$1.IF_LT,t.value]:[op$1.IF_LT_DYNAMIC,t.sp||0];return p(e,f(SOMETIMES_MATCH,r,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(v,r):v,i.post,a.post)},group:function(e,t){return E(e.expression,{sp:t.sp,env:l(t.env),action:null})},semantic_and:function(e,t){return g(e,!1,t)},semantic_not:function(e,t){return g(e,!0,t)},rule_ref:function(t){return[op$1.RULE,asts$6.indexOfRule(e,t.name)]},library_ref:function(e){return[op$1.LIBRARY_RULE,e.libraryNumber,u.add(e.name)]},literal:function(e){if(e.value.length>0){var t=e.match||0,n=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?r.add(e.ignoreCase?e.value.toLowerCase():e.value):-1,u=t!==ALWAYS_MATCH?o.add({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):-1;return f(t,e.ignoreCase?[op$1.MATCH_STRING_IC,n]:[op$1.MATCH_STRING,n],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,n],[op$1.FAIL,u])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var t=e.match||0,r=t===SOMETIMES_MATCH?n.add(e):-1,u=t!==ALWAYS_MATCH?o.add({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):-1;return f(t,[op$1.MATCH_CHAR_CLASS,r],[op$1.ACCEPT_N,1],[op$1.FAIL,u])},any:function(e){var t=e.match||0,r=t!==ALWAYS_MATCH?o.add({type:"any"}):-1;return f(t,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,r])}},t&&"source-and-map"===t.output&&Object.keys(v).forEach((function(e){var t=v[e];v[e]=function(e){for(var r=[],n=1;n>>=VLQ_BASE_SHIFT,n>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$2.encode(t)}while(n>0);return r};var util$3={};function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),n=buildSafeBase(t),o=new URL(t,n);e(o);const u=o.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(PROTOCOL.length):"path-absolute"===r?u.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(n,u)}}function withBase(e,t){return new URL(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const n=e+r++;if(-1===t.indexOf(n))return n}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let n=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();r.length>0&&n.length>0&&r[0]===n[0];)r.shift(),n.shift();return n.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),n=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===n)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const o=buildSafeBase(t+e);return computeRelativeURL(o,withBase(t,withBase(e,o)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),n=new URL(e,r),o=new URL(t,r);try{new URL("",o.toString())}catch(e){return null}return o.protocol!==n.protocol||o.user!==n.user||o.password!==n.password||o.hostname!==n.hostname||o.port!==n.port?null:computeRelativeURL(n,o)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const n=new e;for(let e=0,o=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||n==r&&u>=o||util$2.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,n=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$1.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)})),t.sources.forEach((function(e){let o=e;null!=r&&(o=util$1.relative(r,e)),n._sources.has(o)||n._sources.add(o);const u=t.sourceContentFor(e);null!=u&&n.setSourceContent(e,u)})),n}addMapping(e){const t=util$1.getArg(e,"generated"),r=util$1.getArg(e,"original",null);let n=util$1.getArg(e,"source",null),o=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,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:r&&r.line,originalColumn:r&&r.column,source:n,name:o})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$1.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){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 o=this._sourceRoot;null!=o&&(n=util$1.relative(o,n));const u=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;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!=r&&(t.source=util$1.join(r,t.source)),null!=o&&(t.source=util$1.relative(o,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const i=t.source;null==i||u.has(i)||u.add(i);const s=t.name;null==s||a.has(s)||a.add(s)}),this),this._sources=u,this._names=a,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=util$1.join(r,t)),null!=o&&(t=util$1.relative(o,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,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&&!r&&!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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,n,o=0,u=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let f=0,h=p.length;f0){if(!util$1.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=base64VLQ.encode(n-c),c=n,e+=base64VLQ.encode(t.originalLine-1-i),i=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-s),s=r)),l+=e}return l}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$1.relative(t,e));const r=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==o?null:o,this[isSourceNode]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(t,r,n){const o=new e,u=t.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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 r=0,n=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.sourceNode=function(e,t,r){var n=GrammarLocation$2.offsetStart(e);return new SourceNode$1(n.line,n.column?n.column-1:null,String(e.source),t,r)},e.prototype.push=function(t){++this.sp>this.maxSp&&(this.maxSp=this.sp);var r=this.labels[this.sp],n=[this.name(this.sp)," = ",t,";"];if(r){if(this.sourceMapStack.length){var o=e.sourceNode(r.location,n.splice(0,2),r.label),u=this.sourceMapPopInternal(),a=u.parts,i=u.location,s=i.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop();if(!e)throw new RangeError("Rule '".concat(this.ruleName,"': Attempting to pop an empty source map stack.\nBytecode: ").concat(this.bytecode));var t=e[0],r=e[1],n=e[2],o=t.splice(r).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(o.length){var u=GrammarLocation$2.offsetStart(n);t.push(new SourceNode$1(u.line,u.column-1,String(n.source),o))}return{parts:t,location:n}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],o+=t[(3&e[u])<<4|e[u+1]>>4],o+=t[(15&e[u+1])<<2|e[u+2]>>6],o+=t[63&e[u+2]];return 1===r?(o+=t[e[n]>>2],o+=t[(3&e[n])<<4],o+="=="):2===r&&(o+=t[e[n]>>2],o+=t[(3&e[n])<<4|e[n+1]>>4],o+=t[(15&e[n+1])<<2],o+="="),o}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,peg$SyntaxError.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,n={},o=(t=void 0!==t?t:{}).grammarSource,u={Grammar:Ir,ImportsAndSource:function(){var t,r,o;return t=Cr,r=function(){var t,r;return t=Cr,r=Cr,Tr(),r=e.substring(r,Cr),$r=t,Ct(r)}(),o=function(){var t,r,o,u;for(t=Cr,r=Cr,o=[],e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));u!==n;)o.push(u),e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));return r=e.substring(r,Cr),$r=t,Et(r)}(),$r=t,vt(r,o)}},a=Ir,i="import",s=";",c=",",l="*",p="as",f="{",h="}",d="from",g="=",m="/",A="@",_=":",v="|",E="..",C="(",$=")",y=".",S="\n",F="\r\n",b="/*",x="*/",P="//",D="\\",R="i",B='"',O="'",L="[",w="^",I="]",T="-",M="0",N="b",k="f",H="n",j="r",U="t",G="v",V="x",z="u",Y=/^[!$&]/,W=/^[*-+?]/,J=/^[!&]/,q=/^[\t\v-\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/,Q=/^[\n\r\u2028\u2029]/,X=/^[\r\u2028-\u2029]/,K=/^[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Z=/^[$0-9_\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u09E6-\u09EF\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B62-\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18-\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F3F\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19D9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u203F-\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099-\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F1\uA900-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5-\uAAF6\uABE3-\uABEA\uABEC-\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33-\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/,ee=/^[\n\r"\\\u2028-\u2029]/,te=/^[\n\r'\\\u2028-\u2029]/,re=/^[\n\r\\-\]\u2028-\u2029]/,ne=/^["'\\]/,oe=/^[0-9ux]/,ue=/^[0-9]/,ae=/^[0-9a-f]/i,ie=/^[{}]/,se={type:"any"},ce=Dr("import",!1),le=Dr(";",!1),pe=Dr(",",!1),fe=Dr("*",!1),he=Dr("as",!1),de=Dr("{",!1),ge=Dr("}",!1),me=Dr("from",!1),Ae=Dr("=",!1),_e=Dr("/",!1),ve=Dr("@",!1),Ee=Dr(":",!1),Ce=Rr(["!","$","&"],!1,!1),$e=Rr([["*","+"],"?"],!1,!1),ye=Dr("|",!1),Se=Dr("..",!1),Fe=Dr("(",!1),be=Dr(")",!1),xe=Dr(".",!1),Pe=Rr(["!","&"],!1,!1),De=Br("whitespace"),Re=Rr(["\t",["\v","\f"]," "," "," ",[" "," "]," "," "," ","\ufeff"],!1,!1),Be=Rr(["\n","\r","\u2028","\u2029"],!1,!1),Oe=Br("end of line"),Le=Dr("\n",!1),we=Dr("\r\n",!1),Ie=Rr(["\r",["\u2028","\u2029"]],!1,!1),Te=Br("comment"),Me=Dr("/*",!1),Ne=Dr("*/",!1),ke=Dr("//",!1),He=Br("identifier"),je=Rr([["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԯ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏽ"],["ᏸ","ᏽ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚝ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","Ɬ"],["Ʞ","ꞷ"],["ꟷ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꧠ","ꧤ"],["ꧦ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꬰ","ꭚ"],["ꭜ","ꭥ"],["ꭰ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Ue=Dr("\\",!1),Ge=Rr(["$",["0","9"],"_",["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","٩"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],["۰","۹"],"ܑ",["ܰ","݊"],["ަ","ް"],["߀","߉"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ः"],["ऺ","़"],["ा","ॏ"],["॑","ॗ"],["ॢ","ॣ"],["०","९"],["ঁ","ঃ"],"়",["া","ৄ"],["ে","ৈ"],["ো","্"],"ৗ",["ৢ","ৣ"],["০","৯"],["ਁ","ਃ"],"਼",["ਾ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["੦","ੱ"],"ੵ",["ઁ","ઃ"],"઼",["ા","ૅ"],["ે","ૉ"],["ો","્"],["ૢ","ૣ"],["૦","૯"],["ଁ","ଃ"],"଼",["ା","ୄ"],["େ","ୈ"],["ୋ","୍"],["ୖ","ୗ"],["ୢ","ୣ"],["୦","୯"],"ஂ",["ா","ூ"],["ெ","ை"],["ொ","்"],"ௗ",["௦","௯"],["ఀ","ః"],["ా","ౄ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],["౦","౯"],["ಁ","ಃ"],"಼",["ಾ","ೄ"],["ೆ","ೈ"],["ೊ","್"],["ೕ","ೖ"],["ೢ","ೣ"],["೦","೯"],["ഁ","ഃ"],["ാ","ൄ"],["െ","ൈ"],["ൊ","്"],"ൗ",["ൢ","ൣ"],["൦","൯"],["ං","ඃ"],"්",["ා","ු"],"ූ",["ෘ","ෟ"],["෦","෯"],["ෲ","ෳ"],"ั",["ิ","ฺ"],["็","๎"],["๐","๙"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["໐","໙"],["༘","༙"],["༠","༩"],"༵","༷","༹",["༾","༿"],["ཱ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ါ","ှ"],["၀","၉"],["ၖ","ၙ"],["ၞ","ၠ"],["ၢ","ၤ"],["ၧ","ၭ"],["ၱ","ၴ"],["ႂ","ႍ"],["ႏ","ႝ"],["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","៓"],"៝",["០","៩"],["᠋","᠍"],["᠐","᠙"],"ᢩ",["ᤠ","ᤫ"],["ᤰ","᤻"],["᥆","᥏"],["᧐","᧙"],["ᨗ","ᨛ"],["ᩕ","ᩞ"],["᩠","᩼"],["᩿","᪉"],["᪐","᪙"],["᪰","᪽"],["ᬀ","ᬄ"],["᬴","᭄"],["᭐","᭙"],["᭫","᭳"],["ᮀ","ᮂ"],["ᮡ","ᮭ"],["᮰","᮹"],["᯦","᯳"],["ᰤ","᰷"],["᱀","᱉"],["᱐","᱙"],["᳐","᳒"],["᳔","᳨"],"᳭",["ᳲ","᳴"],["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["‌","‍"],["‿","⁀"],"⁔",["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〯"],["゙","゚"],["꘠","꘩"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠣ","ꠧ"],["ꢀ","ꢁ"],["ꢴ","꣄"],["꣐","꣙"],["꣠","꣱"],["꤀","꤉"],["ꤦ","꤭"],["ꥇ","꥓"],["ꦀ","ꦃ"],["꦳","꧀"],["꧐","꧙"],"ꧥ",["꧰","꧹"],["ꨩ","ꨶ"],"ꩃ",["ꩌ","ꩍ"],["꩐","꩙"],["ꩻ","ꩽ"],"ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫫ","ꫯ"],["ꫵ","꫶"],["ꯣ","ꯪ"],["꯬","꯭"],["꯰","꯹"],"ﬞ",["︀","️"],["︠","︯"],["︳","︴"],["﹍","﹏"],["0","9"],"_"],!1,!1),Ve=Br("literal"),ze=Dr("i",!1),Ye=Br("string"),We=Dr('"',!1),Je=Dr("'",!1),qe=Rr(["\n","\r",'"',"\\",["\u2028","\u2029"]],!1,!1),Qe=Rr(["\n","\r","'","\\",["\u2028","\u2029"]],!1,!1),Xe=Br("character class"),Ke=Dr("[",!1),Ze=Dr("^",!1),et=Dr("]",!1),tt=Dr("-",!1),rt=Rr(["\n","\r",["\\","]"],["\u2028","\u2029"]],!1,!1),nt=Dr("0",!1),ot=Rr(['"',"'","\\"],!1,!1),ut=Dr("b",!1),at=Dr("f",!1),it=Dr("n",!1),st=Dr("r",!1),ct=Dr("t",!1),lt=Dr("v",!1),pt=Rr([["0","9"],"u","x"],!1,!1),ft=Dr("x",!1),ht=Dr("u",!1),dt=Rr([["0","9"]],!1,!1),gt=Rr([["0","9"],["a","f"]],!1,!0),mt=Br("code block"),At=Rr(["{","}"],!1,!1),_t=function(e,t,r,n){return{type:"grammar",imports:e,topLevelInitializer:t,initializer:r,rules:n,location:xr()}},vt=function(e,t){return[e,t]},Et=function(e){return{type:"top_level_initializer",code:e,codeLocation:xr()}},Ct=function(e){return{type:"top_level_initializer",code:e,codeLocation:xr()}},$t=function(e,t){return{type:"grammar_import",what:e,from:t,location:xr()}},yt=function(e){return{type:"grammar_import",what:[],from:e,location:xr()}},St=function(e,t){return t?Array.isArray(t)?(t.unshift(e),t):[e,t]:[e]},Ft=function(e){return{type:"import_binding_default",binding:e[0],location:e[1]}},bt=function(e){return[{type:"import_binding_all",binding:e[0],location:e[1]}]},xt=function(){return[]},Pt=function(e,t){return{type:"import_binding_rename",rename:e[0],renameLocation:e[1],binding:t[0],location:t[1]}},Dt=function(e){return{type:"import_binding",binding:e[0],location:e[1]}},Rt=function(e){return{type:"import_module_specifier",module:e,location:xr()}},Bt=function(e){return[e,xr()]},Ot=function(e){return[e,xr()]},Lt=function(e){return Sn.indexOf(e[0])>=0&&Pr("Binding identifier can't be a reserved word \"".concat(e[0],'"'),e[1]),e[0]},wt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:xr()}},It=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:xr()}},Tt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:xr()}:r,location:xr()}},Mt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:xr()}:e},Nt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:xr()}:e},kt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:xr()}:e},Ht=function(e,t,r){return r.type.startsWith("semantic_")&&Pr('"@" 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:r,location:xr()}},jt=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:xr()}},Ut=function(){return xr()},Gt=function(e){return Sn.indexOf(e[0])>=0&&Pr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Vt=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:xr()}},zt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:xr()}},Yt=function(e,t,r){var n=t[0],o=t[1];return"constant"===o.type&&0===o.value&&Pr("The maximum count of repetitions of the rule must be > 0",o.location),{type:"repeated",min:n,max:o,expression:e,delimiter:r,location:xr()}},Wt=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},Jt=function(e){return[null,e]},qt=function(e){return{type:"constant",value:e,location:xr()}},Qt=function(e){return{type:"variable",value:e[0],location:xr()}},Xt=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:xr()}},Kt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:xr()}:e},Zt=function(e,t){return{type:"library_ref",name:t[0],library:e[0],libraryNumber:-1,location:xr()}},er=function(e){return{type:"rule_ref",name:e[0],location:xr()}},tr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:xr()}},rr=function(e,t){return[e+t.join(""),xr()]},nr=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:xr()}},or=function(e){return e.join("")},ur=function(e){return e.join("")},ar=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:xr()}},ir=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&Pr("Invalid character range: "+e.substring($r,Cr)+"."),[t,r]},sr=function(){return""},cr=function(){return"\0"},lr=function(){return"\b"},pr=function(){return"\f"},fr=function(){return"\n"},hr=function(){return"\r"},dr=function(){return"\t"},gr=function(){return"\v"},mr=function(e){return String.fromCharCode(parseInt(e,16))},Ar=function(e){return String.fromCharCode(parseInt(e,16))},_r=function(){return{type:"any",location:xr()}},vr=function(e){return[e,xr()]},Er=function(e){return parseInt(e,10)},Cr=0|t.peg$currPos,$r=Cr,yr=[{line:1,column:1}],Sr=Cr,Fr=t.peg$maxFailExpected||[],br=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=u[t.startRule]}function xr(){return Lr($r,Cr)}function Pr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Lr($r,Cr))}function Dr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Rr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Br(e){return{type:"other",description:e}}function Or(t){var r,n=yr[t];if(n)return n;if(t>=yr.length)r=yr.length-1;else for(r=t;!yr[--r];);for(n={line:(n=yr[r]).line,column:n.column};rSr&&(Sr=Cr,Fr=[]),Fr.push(e))}function Ir(){var t,r,o,u,a,i,s,c;if(t=Cr,r=Tr(),o=Cr,u=$n(),a=function(){var t,r,o,u;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n&&(o=En())!==n?(125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n&&yn()!==n?($r=t,t=wt(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?o=a:(Cr=o,o=n),o===n&&(o=null),u=Cr,a=$n(),i=function(){var e,t;return e=Cr,(t=En())!==n&&yn()!==n?($r=e,e=It(t)):(Cr=e,e=n),e}(),i!==n?u=i:(Cr=u,u=n),u===n&&(u=null),a=$n(),i=[],s=Cr,(c=Gr())!==n?($n(),s=c):(Cr=s,s=n),s!==n)for(;s!==n;)i.push(s),s=Cr,(c=Gr())!==n?($n(),s=c):(Cr=s,s=n);else i=n;return i!==n?($r=t,t=_t(r,o,u,i)):(Cr=t,t=n),t}function Tr(){var e,t;for(e=[],t=Mr();t!==n;)e.push(t),t=Mr();return e}function Mr(){var t,r,o,u,a,l,p,f;return t=Cr,$n(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?($n(),o=function(){var t,r,o,u,a;return(t=Nr())===n&&(t=kr())===n&&(t=Cr,r=function(){var e,t;return e=Cr,(t=Ur())!==n&&($r=e,t=Ft(t)),e=t}(),r!==n?(o=Cr,$n(),44===e.charCodeAt(Cr)?(u=c,Cr++):(u=n,0===br&&wr(pe)),u!==n?($n(),(a=Nr())===n&&(a=kr()),a!==n?o=a:(Cr=o,o=n)):(Cr=o,o=n),o===n&&(o=null),$r=t,t=St(r,o)):(Cr=t,t=n)),t}(),o!==n?(u=$n(),a=function(){var t,r,o;return t=Cr,e.substr(Cr,4)===d?(r=d,Cr+=4):(r=n,0===br&&wr(me)),r!==n?($n(),(o=jr())!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?(l=Cr,p=$n(),59===e.charCodeAt(Cr)?(f=s,Cr++):(f=n,0===br&&wr(le)),f!==n?l=p=[p,f]:(Cr=l,l=n),l===n&&(l=null),$r=t,t=$t(o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,$n(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?($n(),(o=jr())!==n?(u=Cr,a=$n(),59===e.charCodeAt(Cr)?(l=s,Cr++):(l=n,0===br&&wr(le)),l!==n?u=a=[a,l]:(Cr=u,u=n),u===n&&(u=null),$r=t,t=yt(o)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Nr(){var t,r,o,u;return t=Cr,42===e.charCodeAt(Cr)?(r=l,Cr++):(r=n,0===br&&wr(fe)),r!==n?($n(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?($n(),(u=Ur())!==n?($r=t,t=bt(u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function kr(){var t,r,o,u,a;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?($n(),125===e.charCodeAt(Cr)?(o=h,Cr++):(o=n,0===br&&wr(ge)),o!==n?($r=t,t=xt()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?($n(),o=function(){var t,r,o,u,a,i;for(t=Cr,r=[],o=Hr();o!==n;)r.push(o),o=Cr,u=Cr,a=$n(),44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?u=a=[a,i,$n()]:(Cr=u,u=n),u!==n&&(u=Hr())===n?(Cr=o,o=n):o=u;return r.length<1?(Cr=t,t=n):t=r,t}(),o!==n?($n(),u=Cr,44===e.charCodeAt(Cr)?(a=c,Cr++):(a=n,0===br&&wr(pe)),a!==n?u=a=[a,$n()]:(Cr=u,u=n),u===n&&(u=null),125===e.charCodeAt(Cr)?(a=h,Cr++):(a=n,0===br&&wr(ge)),a!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Hr(){var t,r,o,u;return t=Cr,r=function(){var e,t;return(e=un())===n&&(e=Cr,(t=cn())!==n&&($r=e,t=Ot(t)),e=t),e}(),r!==n?($n(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?($n(),(u=Ur())!==n?($r=t,t=Pt(r,u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=Ur())!==n&&($r=t,r=Dt(r)),t=r),t}function jr(){var e,t;return e=Cr,(t=cn())!==n&&($r=e,t=Rt(t)),t}function Ur(){var e,t;return e=Cr,t=function(){var e,t;return e=Cr,(t=un())!==n&&($r=e,t=Lt(t)),e=t}(),t!==n&&($r=e,t=Bt(t)),t}function Gr(){var t,r,o,u,a;return t=Cr,(r=un())!==n?($n(),o=Cr,(u=cn())!==n?($n(),o=u):(Cr=o,o=n),o===n&&(o=null),61===e.charCodeAt(Cr)?(u=g,Cr++):(u=n,0===br&&wr(Ae)),u!==n?($n(),(a=Vr())!==n&&yn()!==n?($r=t,t=Tt(r,o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function Vr(){var t,r,o,u,a,i;if(t=Cr,(r=zr())!==n){for(o=[],u=Cr,$n(),47===e.charCodeAt(Cr)?(a=m,Cr++):(a=n,0===br&&wr(_e)),a!==n?($n(),(i=zr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);u!==n;)o.push(u),u=Cr,$n(),47===e.charCodeAt(Cr)?(a=m,Cr++):(a=n,0===br&&wr(_e)),a!==n?($n(),(i=zr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);$r=t,t=Mt(r,o)}else Cr=t,t=n;return t}function zr(){var e,t,r,o;return e=Cr,t=function(){var e,t,r,o,u;if(e=Cr,(t=Yr())!==n){for(r=[],o=Cr,$n(),(u=Yr())!==n?o=u:(Cr=o,o=n);o!==n;)r.push(o),o=Cr,$n(),(u=Yr())!==n?o=u:(Cr=o,o=n);$r=e,e=kt(t,r)}else Cr=e,e=n;return e}(),t!==n?(r=Cr,$n(),(o=En())!==n?r=o:(Cr=r,r=n),r===n&&(r=null),$r=e,e=Nt(t,r)):(Cr=e,e=n),e}function Yr(){var t,r,o,u;return t=Cr,r=function(){var t,r;return t=Cr,64===e.charCodeAt(Cr)?(r=A,Cr++):(r=n,0===br&&wr(ve)),r!==n&&($r=t,r=Ut()),t=r}(),r!==n?((o=Wr())===n&&(o=null),(u=Jr())!==n?($r=t,t=Ht(r,o,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=Wr())!==n&&(o=Jr())!==n?($r=t,t=jt(r,o)):(Cr=t,t=n),t===n&&(t=Jr())),t}function Wr(){var t,r,o;return t=Cr,(r=un())!==n?($n(),58===e.charCodeAt(Cr)?(o=_,Cr++):(o=n,0===br&&wr(Ee)),o!==n?($n(),$r=t,t=Gt(r)):(Cr=t,t=n)):(Cr=t,t=n),t}function Jr(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),Y.test(t)?Cr++:(t=n,0===br&&wr(Ce)),t}(),r!==n?($n(),(o=qr())!==n?($r=t,t=Vt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=qr()),t}function qr(){var t,r,o;return t=Cr,(r=Xr())!==n?($n(),o=function(){var t;return t=e.charAt(Cr),W.test(t)?Cr++:(t=n,0===br&&wr($e)),t}(),o!==n?($r=t,t=zt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=Xr())!==n?($n(),124===e.charCodeAt(Cr)?(o=v,Cr++):(o=n,0===br&&wr(ye)),o!==n?($n(),u=function(){var t,r,o,u;return t=Cr,(r=Qr())===n&&(r=null),$n(),e.substr(Cr,2)===E?(o=E,Cr+=2):(o=n,0===br&&wr(Se)),o!==n?($n(),(u=Qr())===n&&(u=null),$r=t,t=Wt(r,u)):(Cr=t,t=n),t===n&&(t=Cr,(r=Qr())!==n&&($r=t,r=Jt(r)),t=r),t}(),u!==n?($n(),a=Cr,44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?($n(),(s=Vr())!==n?($n(),a=s):(Cr=a,a=n)):(Cr=a,a=n),a===n&&(a=null),124===e.charCodeAt(Cr)?(i=v,Cr++):(i=n,0===br&&wr(ye)),i!==n?($r=t,t=Yt(r,u,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Xr())),t}function Qr(){var t,r;return t=Cr,r=function(){var t,r,o,u;if(t=Cr,r=Cr,o=[],(u=_n())!==n)for(;u!==n;)o.push(u),u=_n();else o=n;return(r=o!==n?e.substring(r,Cr):o)!==n&&($r=t,r=Er(r)),t=r}(),r!==n&&($r=t,r=qt(r)),(t=r)===n&&(t=Cr,(r=un())!==n&&($r=t,r=Qt(r)),(t=r)===n&&(t=Cr,(r=En())!==n&&($r=t,r=Xt(r)),t=r)),t}function Xr(){var t,r,o,u;return t=function(){var t,r,o;return br++,t=Cr,(r=cn())!==n?(105===e.charCodeAt(Cr)?(o=R,Cr++):(o=n,0===br&&wr(ze)),o===n&&(o=null),$r=t,t=nr(r,o)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(Ve)),t}(),t===n&&(t=function(){var t,r,o,u,a,i;if(br++,t=Cr,91===e.charCodeAt(Cr)?(r=L,Cr++):(r=n,0===br&&wr(Ke)),r!==n){for(94===e.charCodeAt(Cr)?(o=w,Cr++):(o=n,0===br&&wr(Ze)),o===n&&(o=null),u=[],(a=fn())===n&&(a=hn());a!==n;)u.push(a),(a=fn())===n&&(a=hn());93===e.charCodeAt(Cr)?(a=I,Cr++):(a=n,0===br&&wr(et)),a!==n?(105===e.charCodeAt(Cr)?(i=R,Cr++):(i=n,0===br&&wr(ze)),i===n&&(i=null),$r=t,t=ar(o,u,i)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(Xe)),t}(),t===n&&(t=function(){var t,r;return t=Cr,46===e.charCodeAt(Cr)?(r=y,Cr++):(r=n,0===br&&wr(xe)),r!==n&&($r=t,r=_r()),t=r}(),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=un())!==n?(46===e.charCodeAt(Cr)?(o=y,Cr++):(o=n,0===br&&wr(xe)),o!==n&&(u=un())!==n?($r=t,t=Zt(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=un())!==n?(o=Cr,br++,u=Cr,a=$n(),i=Cr,(s=cn())!==n?i=s=[s,$n()]:(Cr=i,i=n),i===n&&(i=null),61===e.charCodeAt(Cr)?(s=g,Cr++):(s=n,0===br&&wr(Ae)),s!==n?u=a=[a,i,s]:(Cr=u,u=n),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?($r=t,t=er(r)):(Cr=t,t=n)):(Cr=t,t=n)),t}(),t===n&&(t=function(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),J.test(t)?Cr++:(t=n,0===br&&wr(Pe)),t}(),r!==n?($n(),(o=En())!==n?($r=t,t=tr(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Cr,40===e.charCodeAt(Cr)?(r=C,Cr++):(r=n,0===br&&wr(Fe)),r!==n?($n(),(o=Vr())!==n?($n(),41===e.charCodeAt(Cr)?(u=$,Cr++):(u=n,0===br&&wr(be)),u!==n?($r=t,t=Kt(o)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)))))),t}function Kr(){var t;return e.length>Cr?(t=e.charAt(Cr),Cr++):(t=n,0===br&&wr(se)),t}function Zr(){var t;return br++,t=e.charAt(Cr),q.test(t)?Cr++:(t=n,0===br&&wr(Re)),br--,t===n&&0===br&&wr(De),t}function en(){var t;return t=e.charAt(Cr),Q.test(t)?Cr++:(t=n,0===br&&wr(Be)),t}function tn(){var t;return br++,10===e.charCodeAt(Cr)?(t=S,Cr++):(t=n,0===br&&wr(Le)),t===n&&(e.substr(Cr,2)===F?(t=F,Cr+=2):(t=n,0===br&&wr(we)),t===n&&(t=e.charAt(Cr),X.test(t)?Cr++:(t=n,0===br&&wr(Ie)))),br--,t===n&&0===br&&wr(Oe),t}function rn(){var t;return br++,(t=function(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Me)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===x?(u=x,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}())===n&&(t=on()),br--,t===n&&0===br&&wr(Te),t}function nn(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Me)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===x?(u=x,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}function on(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===P?(r=P,Cr+=2):(r=n,0===br&&wr(ke)),r!==n){for(o=[],u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);t=r=[r,o]}else Cr=t,t=n;return t}function un(){var e,t,r,o;if(br++,e=Cr,(t=an())!==n){for(r=[],o=sn();o!==n;)r.push(o),o=sn();$r=e,e=rr(t,r)}else Cr=e,e=n;return br--,e===n&&(t=n,0===br&&wr(He)),e}function an(){var t,r,o;return t=e.charAt(Cr),K.test(t)?Cr++:(t=n,0===br&&wr(je)),t===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=An())!==n?t=o:(Cr=t,t=n)),t}function sn(){var t;return(t=an())===n&&(t=e.charAt(Cr),Z.test(t)?Cr++:(t=n,0===br&&wr(Ge))),t}function cn(){var t,r,o,u;if(br++,t=Cr,34===e.charCodeAt(Cr)?(r=B,Cr++):(r=n,0===br&&wr(We)),r!==n){for(o=[],u=ln();u!==n;)o.push(u),u=ln();34===e.charCodeAt(Cr)?(u=B,Cr++):(u=n,0===br&&wr(We)),u!==n?($r=t,t=or(o)):(Cr=t,t=n)}else Cr=t,t=n;if(t===n)if(t=Cr,39===e.charCodeAt(Cr)?(r=O,Cr++):(r=n,0===br&&wr(Je)),r!==n){for(o=[],u=pn();u!==n;)o.push(u),u=pn();39===e.charCodeAt(Cr)?(u=O,Cr++):(u=n,0===br&&wr(Je)),u!==n?($r=t,t=ur(o)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(Ye)),t}function ln(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),ee.test(u)?Cr++:(u=n,0===br&&wr(qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function pn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),te.test(u)?Cr++:(u=n,0===br&&wr(Qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function fn(){var t,r,o,u;return t=Cr,(r=hn())!==n?(45===e.charCodeAt(Cr)?(o=T,Cr++):(o=n,0===br&&wr(tt)),o!==n&&(u=hn())!==n?($r=t,t=ir(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t}function hn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),re.test(u)?Cr++:(u=n,0===br&&wr(rt)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function dn(){var t,r;return t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&tn()!==n?($r=t,t=sr()):(Cr=t,t=n),t}function gn(){var t,r,o,u;return t=function(){var t;return(t=mn())===n&&(t=function(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=function(){var t;return(t=mn())===n&&(t=e.charAt(Cr),oe.test(t)?Cr++:(t=n,0===br&&wr(pt))),t}(),u===n&&(u=en()),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),t=r!==n?e.substring(t,Cr):r}()),t}(),t===n&&(t=Cr,48===e.charCodeAt(Cr)?(r=M,Cr++):(r=n,0===br&&wr(nt)),r!==n?(o=Cr,br++,u=_n(),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?($r=t,t=cr()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i;return t=Cr,120===e.charCodeAt(Cr)?(r=V,Cr++):(r=n,0===br&&wr(ft)),r!==n?(o=Cr,u=Cr,(a=vn())!==n&&(i=vn())!==n?u=a=[a,i]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?($r=t,t=mr(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=An()))),t}function mn(){var t,r;return t=e.charAt(Cr),ne.test(t)?Cr++:(t=n,0===br&&wr(ot)),t===n&&(t=Cr,98===e.charCodeAt(Cr)?(r=N,Cr++):(r=n,0===br&&wr(ut)),r!==n&&($r=t,r=lr()),(t=r)===n&&(t=Cr,102===e.charCodeAt(Cr)?(r=k,Cr++):(r=n,0===br&&wr(at)),r!==n&&($r=t,r=pr()),(t=r)===n&&(t=Cr,110===e.charCodeAt(Cr)?(r=H,Cr++):(r=n,0===br&&wr(it)),r!==n&&($r=t,r=fr()),(t=r)===n&&(t=Cr,114===e.charCodeAt(Cr)?(r=j,Cr++):(r=n,0===br&&wr(st)),r!==n&&($r=t,r=hr()),(t=r)===n&&(t=Cr,116===e.charCodeAt(Cr)?(r=U,Cr++):(r=n,0===br&&wr(ct)),r!==n&&($r=t,r=dr()),(t=r)===n&&(t=Cr,118===e.charCodeAt(Cr)?(r=G,Cr++):(r=n,0===br&&wr(lt)),r!==n&&($r=t,r=gr()),t=r)))))),t}function An(){var t,r,o,u,a,i,s,c;return t=Cr,117===e.charCodeAt(Cr)?(r=z,Cr++):(r=n,0===br&&wr(ht)),r!==n?(o=Cr,u=Cr,(a=vn())!==n&&(i=vn())!==n&&(s=vn())!==n&&(c=vn())!==n?u=a=[a,i,s,c]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?($r=t,t=Ar(o)):(Cr=t,t=n)):(Cr=t,t=n),t}function _n(){var t;return t=e.charAt(Cr),ue.test(t)?Cr++:(t=n,0===br&&wr(dt)),t}function vn(){var t;return t=e.charAt(Cr),ae.test(t)?Cr++:(t=n,0===br&&wr(gt)),t}function En(){var t,r,o,u;return br++,t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(o=function(){var e,t;return e=Cr,t=Cn(),$r=e,e=t=vr(t)}(),125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(mt)),t}function Cn(){var t,r,o,u,a,i;if(t=Cr,r=[],o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;for(o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n));o!==n;){if(r.push(o),o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n))}return e.substring(t,Cr)}function $n(){var e,t;for(e=[],(t=Zr())===n&&(t=tn())===n&&(t=rn());t!==n;)e.push(t),(t=Zr())===n&&(t=tn())===n&&(t=rn());return e}function yn(){var t,r,o,u;if(t=[],r=Cr,o=$n(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n),r!==n)for(;r!==n;)t.push(r),r=Cr,o=$n(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n);else t=n;return t===n&&(t=Cr,r=function(){var e,t;for(e=[],(t=Zr())===n&&(t=nn());t!==n;)e.push(t),(t=Zr())===n&&(t=nn());return e}(),(o=on())===n&&(o=null),(u=tn())!==n?t=r=[r,o,u]:(Cr=t,t=n),t===n&&(t=Cr,r=$n(),o=function(){var t,r;return t=Cr,br++,e.length>Cr?(r=e.charAt(Cr),Cr++):(r=n,0===br&&wr(se)),br--,r===n?t=void 0:(Cr=t,t=n),t}(),o!==n?t=r=[r,o]:(Cr=t,t=n))),t}var Sn=t.reservedWords||[];if(r=a(),t.peg$library)return{peg$result:r,peg$currPos:Cr,peg$FAILED:n,peg$maxFailExpected:Fr,peg$maxFailPos:Sr};if(r!==n&&Cr===e.length)return r;throw r!==n&&Cr0){for(t=1,r=1;t0||e.imports.length>0)throw new Error("Dependencies not supported in format 'bare'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function() {",' "use strict";',"",r,"",l("return "+o()+";"),"})()"],!1)},commonjs:function(){var t=Object.keys(c),u=n();u.push("",'"use strict";',""),t.length>0&&(t.forEach((function(e){u.push("var "+e+' = require("'+stringEscape(c[e])+'");')})),u.push(""));for(var a=e.imports.length,i=0;i0&&(o.forEach((function(e){u.push("import "+e+' from "'+stringEscape(c[e])+'";')})),u.push(""));for(var a=0;a0)throw new Error("Imports are not supported in format 'amd'.");var t=Object.keys(c),u="["+t.map((function(e){return c[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",a=t.join(", ");return __spreadArray$2(__spreadArray$2([],n(),!0),["define("+u+", function("+a+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"],!1)},globals:function(){if(Object.keys(c).length>0||e.imports.length>0)throw new Error("Dependencies not supported in format 'globals'.");if(!t.exportVar)throw new Error("No export variable defined for format 'globals'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function(root) {",' "use strict";',"",r,"",l("root."+t.exportVar+" = "+o()+";"),"})(this);"],!1)},umd:function(){if(e.imports.length>0)throw new Error("Imports are not supported in format 'umd'.");var u=Object.keys(c),a=u.map((function(e){return c[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),p=u.join(", "),f=n();return f.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),t.exportVar&&f.push(" } else {"," root."+t.exportVar+" = factory();"),f.push(" }","})(this, function("+p+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"),f}},a=u[t.format||"bare"]();return new SourceNode(null,null,t.grammarSource,a.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[],_=e.topLevelInitializer;if(_)if(Array.isArray(_)){if("es"===t.format){for(var v=[],E=[],C=0,$=_;C<$.length;C++){var y=$[C],S=parse(y.code,{startRule:"ImportsAndSource",grammarSource:new GrammarLocation$1(y.codeLocation.source,y.codeLocation.start)}),F=S[0],b=S[1];F.code?(v.push(F),E.push(b)):E.push(y)}_=E.concat(v)}for(var x=0,P=_.slice(0).reverse();x 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&&c.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 + ".");'," }","};","");var D="{ "+s.map((function(e){return e+": "+m(e)})).join(", ")+" }",R=m(s[0]);if(c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+D+";"," var peg$startRuleFunction = "+R+";","",new SourceNode(null,null,t.grammarSource,__spreadArray$2([r.map((function(e,t){return" var "+p(t)+' = "'+stringEscape(e)+'";'})).concat("",o.map((function(e,t){return" var "+f(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",u.map((function(e,t){return" var "+h(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(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")],a.map((function(e,t){return wrapInSourceNode("\n var ".concat(d(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")})),!0)),""," var peg$currPos = options.peg$currPos | 0;"," var peg$savedPos = peg$currPos;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = peg$currPos;"," var peg$maxFailExpected = options.peg$maxFailExpected || [];"," var peg$silentFails = options.peg$silentFails | 0;",""),t.cache&&c.push(" var peg$resultsCache = {};",""),t.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;",""," if (options.startRule) {"," 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 {"," if (pos >= peg$posDetailsCache.length) {"," p = peg$posDetailsCache.length - 1;"," } else {"," p = pos;"," while (!peg$posDetailsCache[--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.imports.length>0&&c.push(" var peg$assign = Object.assign || function(t) {"," var i, s;"," for (i = 1; i < arguments.length; i++) {"," s = arguments[i];"," for (var p in s) {"," if (Object.prototype.hasOwnProperty.call(s, p)) {"," t[p] = s[p];"," }"," }"," }"," return t;"," };",""," function peg$callLibrary(lib, startRule) {"," const opts = peg$assign({}, options, {"," startRule: startRule,"," peg$currPos: peg$currPos,"," peg$silentFails: peg$silentFails,"," peg$library: true,"," peg$maxFailExpected: peg$maxFailExpected"," });"," const res = lib.parse(input, opts);"," peg$currPos = res.peg$currPos;"," peg$maxFailPos = res.peg$maxFailPos;"," peg$maxFailExpected = res.peg$maxFailExpected;"," return (res.peg$result === res.peg$FAILED) ? peg$FAILED : res.peg$result;"," }",""),e.rules.forEach((function(o){c.push.apply(c,l(function(o){var u=[],a=o.bytecode,s=new Stack(o.name,"s","var",a),c=function t(o){var u=0,a=o.length,c=[],A=void 0;function _(e,r,n){var a=r+3,i=o[u+a-2],p=o[u+a-1],f=s.checkedIf(u,(function(){return u+=a+i,(n||t)(o.slice(u-i,u))}),p>0?function(){return u+=p,t(o.slice(u-p,u))}:null),h=f[0],d=f[1];c.push("if ("+e+") {"),c.push.apply(c,l(h)),p>0&&(c.push("} else {"),c.push.apply(c,l(d))),c.push("}")}function v(e,r,n){var a=r+3,i=1===n?"input.charAt(peg$currPos)":"input.substr(peg$currPos, "+n+")",l=null;o[u+a]===op.ACCEPT_N&&o[u+a+1]===n&&(c.push(s.push(i)),i=s.pop(),l=function(e){s.sp++;var r=t(e.slice(2));return r.unshift(1===n?"peg$currPos++;":"peg$currPos += "+n+";"),r}),_(e(i,null!==l),r,l)}for(var E=function(){switch(o[u]){case op.PUSH_EMPTY_STRING:c.push(s.push("''")),u++;break;case op.PUSH_CURR_POS:c.push(s.push("peg$currPos")),u++;break;case op.PUSH_UNDEFINED:c.push(s.push("undefined")),u++;break;case op.PUSH_NULL:c.push(s.push("null")),u++;break;case op.PUSH_FAILED:c.push(s.push("peg$FAILED")),u++;break;case op.PUSH_EMPTY_ARRAY:c.push(s.push("[]")),u++;break;case op.POP:s.pop(),u++;break;case op.POP_CURR_POS:c.push("peg$currPos = "+s.pop()+";"),u++;break;case op.POP_N:s.pop(o[u+1]),u+=2;break;case op.NIP:A=s.pop(),s.pop(),c.push(s.push(A)),u++;break;case op.APPEND:A=s.pop(),c.push(s.top()+".push("+A+");"),u++;break;case op.WRAP:c.push(s.push("["+s.pop(o[u+1]).join(", ")+"]")),u+=2;break;case op.TEXT:c.push(s.push("input.substring("+s.pop()+", peg$currPos)")),u++;break;case op.PLUCK:var a=o[u+3-1],E=3+a;A=o.slice(u+3,u+E),A=1===a?s.index(A[0]):"[ ".concat(A.map((function(e){return s.index(e)})).join(", ")," ]"),s.pop(o[u+1]),c.push(s.push(A)),u+=E;break;case op.IF:_(s.top(),0);break;case op.IF_ERROR:_(s.top()+" === peg$FAILED",0);break;case op.IF_NOT_ERROR:_(s.top()+" !== peg$FAILED",0);break;case op.IF_LT:_(s.top()+".length < "+o[u+1],1);break;case op.IF_GE:_(s.top()+".length >= "+o[u+1],1);break;case op.IF_LT_DYNAMIC:_(s.top()+".length < ("+s.index(o[u+1])+"|0)",1);break;case op.IF_GE_DYNAMIC:_(s.top()+".length >= ("+s.index(o[u+1])+"|0)",1);break;case op.WHILE_NOT_ERROR:x=s.top()+" !== peg$FAILED",P=o[u+2-1],D=s.checkedLoop(u,(function(){return u+=2+P,t(o.slice(u-P,u))})),c.push("while ("+x+") {"),c.push.apply(c,l(D)),c.push("}");break;case op.MATCH_ANY:_("input.length > peg$currPos",0);break;case op.MATCH_STRING:var C=o[u+1],$=r[C];v((function(e,t){return $.length>1?"".concat(e," === ").concat(p(C)):(e=t?"".concat(e,".charCodeAt(0)"):"input.charCodeAt(peg$currPos)","".concat(e," === ").concat($.charCodeAt(0)))}),1,$.length);break;case op.MATCH_STRING_IC:var y=o[u+1];v((function(e){return"".concat(e,".toLowerCase() === ").concat(p(y))}),1,r[y].length);break;case op.MATCH_CHAR_CLASS:var S=o[u+1];v((function(e){return"".concat(f(S),".test(").concat(e,")")}),1,1);break;case op.ACCEPT_N:c.push(s.push(o[u+1]>1?"input.substr(peg$currPos, "+o[u+1]+")":"input.charAt(peg$currPos)")),c.push(o[u+1]>1?"peg$currPos += "+o[u+1]+";":"peg$currPos++;"),u+=2;break;case op.ACCEPT_STRING:c.push(s.push(p(o[u+1]))),c.push(r[o[u+1]].length>1?"peg$currPos += "+r[o[u+1]].length+";":"peg$currPos++;"),u+=2;break;case op.FAIL:c.push(s.push("peg$FAILED")),c.push("if (peg$silentFails === 0) { peg$fail("+h(o[u+1])+"); }"),u+=2;break;case op.LOAD_SAVED_POS:c.push("peg$savedPos = "+s.index(o[u+1])+";"),u+=2;break;case op.UPDATE_SAVED_POS:c.push("peg$savedPos = peg$currPos;"),u++;break;case op.CALL:A=function(e){var t=o[u+4-1];return d(o[u+1])+"("+o.slice(u+4,u+4+t).map((function(e){return s.index(e)})).join(", ")+")"}(),s.pop(o[u+2]),c.push(s.push(A)),u+=4+o[u+3];break;case op.RULE:c.push(s.push(m(e.rules[o[u+1]].name)+"()")),u+=2;break;case op.LIBRARY_RULE:var F=o[u+2],b=-1===F?"":', "'+i[F]+'"';c.push(s.push("peg$callLibrary("+g(o[u+1])+b+")")),u+=3;break;case op.SILENT_FAILS_ON:c.push("peg$silentFails++;"),u++;break;case op.SILENT_FAILS_OFF:c.push("peg$silentFails--;"),u++;break;case op.SOURCE_MAP_PUSH:s.sourceMapPush(c,n[o[u+1]]),u+=2;break;case op.SOURCE_MAP_POP:s.sourceMapPop(),u++;break;case op.SOURCE_MAP_LABEL_PUSH:s.labels[o[u+1]]={label:r[o[u+2]],location:n[o[u+3]]},u+=4;break;case op.SOURCE_MAP_LABEL_POP:delete s.labels[o[u+1]],u+=2;break;default:throw new Error("Invalid opcode: "+o[u]+".")}var x,P,D};ui?-1:1:0}));for(var t="",r="",n=0;n=a.charCodeAt(0)?(e.splice(n--,1),e[n]=[t,r=i]):(t=a,r=i)}return e}function mergeCharacterClasses$1(e){var t=Object.create(null);e.rules.forEach((function(e){return t[e.name]=e.expression}));var r=Object.create(null),n=[function(e,n){if("class"===e.type&&!e.inverted)return n&&((e=__assign({},e)).parts=__spreadArray$1([],e.parts,!0)),e;if("literal"===e.type&&1===e.value.length)return{type:"class",parts:[e.value],inverted:!1,ignoreCase:e.ignoreCase,location:e.location};if("rule_ref"===e.type){var a=t[e.name];if(a){r[e.name]||(r[e.name]=!0,u(a));var i=o(a,!0);return i&&(i.location=e.location),i}}return null},visitor$7.build({choice:function(e){var t=null,r=!1;e.alternatives.forEach((function(n,a){var i;u(n);var s=o(n);s?t&&t.ignoreCase===s.ignoreCase?((i=t.parts).push.apply(i,s.parts),e.alternatives[a-1]=t,e.alternatives[a]=t,t.location={source:t.location.source,start:t.location.start,end:s.location.end},r=!0):t=s:t=null})),r&&(e.alternatives=e.alternatives.filter((function(e,t,r){return!t||e!==r[t-1]})),e.alternatives.forEach((function(t,r){"class"===t.type&&(t.parts=cleanParts(t.parts),1!==t.parts.length||Array.isArray(t.parts[0])||t.inverted||(e.alternatives[r]={type:"literal",value:t.parts[0],ignoreCase:t.ignoreCase,location:t.location}))})),1===e.alternatives.length&&cloneOver(e,e.alternatives[0]))},text:function(e){if(u(e.expression),"class"===e.expression.type||"literal"===e.expression.type){var t=e.location;cloneOver(e,e.expression),e.location=t}}})],o=n[0],u=n[1];e.rules.forEach((function(e){r[e.name]=!0,u(e.expression)}))}var mergeCharacterClasses_1=mergeCharacterClasses$1;function reportDuplicateImports$1(e,t,r){for(var n={},o=0,u=e.imports;o0||(n.push(e.name),u(e.expression),n.pop())},sequence:function(t){r.errors>0||t.elements.every((function(t){return u(t),!(r.errors>0||asts$3.alwaysConsumesOnSuccess(e,t))}))},repeated:function(t){r.errors>0||(u(t.expression),t.delimiter&&!asts$3.alwaysConsumesOnSuccess(e,t.expression)&&u(t.delimiter))},rule_ref:function(t){if(!(r.errors>0)){o.push(t);var a=asts$3.findRule(e,t.name);if(-1!==n.indexOf(t.name))return n.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+n.join(" -> ")+")",a.nameLocation,o.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&u(a),o.pop()}}});u(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$2=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){var n=visitor$3.build({zero_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(t.delimiter&&n(t.delimiter),!(asts$2.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$2.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var o=t.min?t.min:t.max;r.warning("constant"===o.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});n(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts$1=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts$1.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var n=visitor$1.build({action:function(e){n(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{prepare:[addImportedRules,reportInfiniteRecursion],check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRepetition,reportIncorrectPlucking,reportDuplicateImports],transform:[fixLibraryNumbers,removeProxyRules,mergeCharacterClasses,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){options=void 0!==options?options:{};var defaultStartRules=[ast.rules[0].name];if(options=processOptions(options,{allowedStartRules:defaultStartRules,cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),null!==options.allowedStartRules&&void 0!==options.allowedStartRules||(options.allowedStartRules=defaultStartRules),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");0===options.allowedStartRules.length&&(options.allowedStartRules=defaultStartRules);var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}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");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(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");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,GrammarError=grammarError,GrammarLocation=grammarLocation,asts=asts_1,compiler=compiler_1,parser=parser$1,VERSION=version,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"],peg$1={VERSION:VERSION,RESERVED_WORDS:RESERVED_WORDS,GrammarError:GrammarError,GrammarLocation:GrammarLocation,parser:parser,compiler:compiler,generate:function(e,t){var r,n,o="plugins"in(t=void 0!==t?t:{})?t.plugins:[],u={parser:peg$1.parser,passes:(r=peg$1.compiler.passes,n={},Object.keys(r).forEach((function(e){n[e]=r[e].slice()})),n),reservedWords:peg$1.RESERVED_WORDS.slice()};o.forEach((function(e){e.use(u,t)})),Array.isArray(e)||(e=[{source:t.grammarSource,text:e}]);var a=asts.combine(e.map((function(e){var t=e.source,r=e.text;return u.parser.parse(r,{grammarSource:t,reservedWords:u.reservedWords})})));return peg$1.compiler.compile(a,u.passes,t)}},peg_1=peg$1,peg=peg_1,Runner$1={run:function(e,t,r,n){var o={functions:[],add:function(e){this.functions.push(e)},run:function(){this.functions.length>0&&(this.functions.shift()(),setTimeout((function(){o.run()}),0))}},u={};o.add((function(){n.start(),u.totalInputSize=0,u.totalParseTime=0})),e.forEach((function(e){o.add(function(e){return function(){n.benchmarkStart(e),u.parser=peg.generate(n.readFile("../examples/"+e.id+".pegjs"),r),u.benchmarkInputSize=0,u.benchmarkParseTime=0}}(e)),e.tests.forEach((function(r){o.add(function(e,r){return function(){n.testStart(e,r);for(var o=n.readFile(e.id+"/"+r.file),a=0,i=0;i\n \n ").concat(null!==n?"":"","\n ").concat(r,"\n ").concat(null!==n?"":"","\n \n \n \n ").concat((o/1024).toFixed(2),"\n \n  kB\n \n \n \n ").concat(u.toFixed(2),"\n \n  ms\n \n \n \n ").concat((o/1024/(u/1e3)).toFixed(2),"\n \n  kB/s\n \n \n "))}var r=parseInt($("#run-count").val(),10),n={cache:$("#cache").is(":checked")};isNaN(r)||r<=0?alert("Number of runs must be a positive integer."):Runner.run(benchmarks,r,n,{readFile:function(e){return $.ajax({type:"GET",url:"https://raw.githubusercontent.com/peggyjs/peggy/".concat(BRANCH,"/benchmark/").concat(e),dataType:"text",async:!1}).responseText},testStart:function(){},testFinish:function(e,r,n,o){t("individual",r.title,"https://github.com/peggyjs/peggy/blob/".concat(BRANCH,"/benchmark/").concat(e.id,"/").concat(r.file),n,o)},benchmarkStart:function(t){e.append("\n \n \n ").concat(t.title,' \n \n "\n '))},benchmarkFinish:function(e,r,n){t("benchmark-total",e.title+" total",null,r,n)},start:function(){$("#run-count, #cache, #run").attr("disabled","disabled"),e.show(),$("#results-table tr").slice(1).remove()},finish:function(e,r){t("total","Total",null,e,r),$.scrollTo("max",{axis:"y",duration:500}),$("#run-count, #cache, #run").removeAttr("disabled")}})})),$(document).ready((function(){return $("#run").focus()})),browser_stub})); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).browser=t()}(this,(function(){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},browser_stub={},GrammarLocation$4=function(){function e(e,t){this.source=e,this.start=t}return e.prototype.toString=function(){return String(this.source)},e.prototype.offset=function(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}},e.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},e.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},e}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},GrammarError$3=function(e){function t(r,n,o){var u=e.call(this,r)||this;return setProtoOf(u,t.prototype),u.name="GrammarError",u.location=n,void 0===o&&(o=[]),u.diagnostics=o,u.stage=null,u.problems=[["error",r,n,o]],u}return __extends(t,e),t.prototype.toString=function(){var t=e.prototype.toString.call(this);this.location&&(t+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(t+="".concat(this.location.source,":")),t+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var r=0,n=this.diagnostics;r1&&e.delimiter&&o(e.delimiter)))},semantic_and:n,semantic_not:n,rule_ref:function(t){var r=asts$8.findRule(e,t.name);return r?o(r):void 0},library_ref:function(){return!1},literal:function(e){return""!==e.value},class:r,any:r});return o(t)},combine:function(e){return e.reduce((function(e,t){return e.topLevelInitializer=combinePossibleArrays(e.topLevelInitializer,t.topLevelInitializer),e.initializer=combinePossibleArrays(e.initializer,t.initializer),e.rules=e.rules.concat(t.rules),e}))}},asts_1=asts$8;function addImportedRules$1(e){for(var t=0,r=0,n=e.imports;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var u=visitor$a.build({rule:function(e){var t,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=u(e.expression),++r>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:n,choice:function(e){return e.match=o(e.alternatives,!0)},action:n,sequence:function(e){return e.match=o(e.elements,!1)},labeled:n,text:n,simple_and:n,simple_not:function(e){return e.match=-u(e.expression)},optional:r,zero_or_more:r,one_or_more:n,repeated:function(e){var t=u(e.expression),r=e.delimiter?u(e.delimiter):NEVER_MATCH$1,n=e.min?e.min:e.max;return"constant"!==n.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&n.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===n.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&n.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&n.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===n.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:n,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?t.match=u(r):SOMETIMES_MATCH$1},library_ref:function(){return 0},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});u(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],p([op$1.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=l(t.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,o=E(e.expression,{sp:t.sp+(n?1:0),env:r,action:e}),u=e.expression.match||0,a=n&&u!==NEVER_MATCH?s(!1,Object.keys(r),e):-1;return n?p([op$1.PUSH_CURR_POS],o,f(u,[op$1.IF_NOT_ERROR],p([op$1.LOAD_SAVED_POS,1],h(a,1,r,t.sp+2)),[]),[op$1.NIP]):o},sequence:function(e,t){return p([op$1.PUSH_CURR_POS],function t(r,n){if(r.length>0){var o=e.elements.length-r.length+1;return p(E(r[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),f(r[0].match||0,[op$1.IF_NOT_ERROR],t(r.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),p(o>1?[op$1.POP_N,o]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(n.pluck&&n.pluck.length>0)return p([op$1.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((function(e){return n.sp-e})));if(n.action){var u=s(!1,Object.keys(n.env),n.action);return p([op$1.LOAD_SAVED_POS,e.elements.length],h(u,e.elements.length+1,n.env,n.sp))}return p([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,n){var o=n.env,u=e.label,a=n.sp+1;u&&(o=l(n.env),n.env[u]=a),e.pick&&n.pluck.push(a);var i=E(e.expression,{sp:n.sp,env:o,action:null});return u&&e.labelLocation&&t&&"source-and-map"===t.output?p([op$1.SOURCE_MAP_LABEL_PUSH,a,r.add(u),c(e.labelLocation)],i,[op$1.SOURCE_MAP_LABEL_POP,a]):i},text:function(e,t){return p([op$1.PUSH_CURR_POS],E(e.expression,{sp:t.sp+1,env:l(t.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,t){return d(e.expression,!1,t)},simple_not:function(e,t){return d(e.expression,!0,t)},optional:function(e,t){return p(E(e.expression,{sp:t.sp,env:l(t.env),action:null}),f(-(e.expression.match||0),[op$1.IF_ERROR],p([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=E(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,m(r),[op$1.POP])},one_or_more:function(e,t){var r=E(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,f(e.expression.match||0,[op$1.IF_NOT_ERROR],p(m(r),[op$1.POP]),p([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,n="constant"!==r.type||r.value>0,o="constant"!==e.max.type&&null!==e.max.value,u=n?2:1,a=e.min?A(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},i=A(e.max,t.env,a.sp,u),s=E(e.expression,{sp:i.sp+u,env:l(t.env),action:null}),c=null!==e.delimiter?E(e.expression,{sp:i.sp+u+1,env:l(t.env),action:null}):s,h=function(e,t,r,n,o){return e?p([op$1.PUSH_CURR_POS],E(e,{sp:n.sp+o+1,env:l(n.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],r,f(-t,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):r}(e.delimiter,e.expression.match||0,c,t,u),d=_(h,e.max),g=o?_(s,e.max):s,v=p(n?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],g,m(d),[op$1.POP]);return p(a.pre,i.pre,n?function(e,t){var r="constant"===t.type?[op$1.IF_LT,t.value]:[op$1.IF_LT_DYNAMIC,t.sp||0];return p(e,f(SOMETIMES_MATCH,r,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(v,r):v,i.post,a.post)},group:function(e,t){return E(e.expression,{sp:t.sp,env:l(t.env),action:null})},semantic_and:function(e,t){return g(e,!1,t)},semantic_not:function(e,t){return g(e,!0,t)},rule_ref:function(t){return[op$1.RULE,asts$6.indexOfRule(e,t.name)]},library_ref:function(e){return[op$1.LIBRARY_RULE,e.libraryNumber,u.add(e.name)]},literal:function(e){if(e.value.length>0){var t=e.match||0,n=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?r.add(e.ignoreCase?e.value.toLowerCase():e.value):-1,u=t!==ALWAYS_MATCH?o.add({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):-1;return f(t,e.ignoreCase?[op$1.MATCH_STRING_IC,n]:[op$1.MATCH_STRING,n],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,n],[op$1.FAIL,u])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var t=e.match||0,r=t===SOMETIMES_MATCH?n.add(e):-1,u=t!==ALWAYS_MATCH?o.add({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):-1;return f(t,[op$1.MATCH_CHAR_CLASS,r],[op$1.ACCEPT_N,1],[op$1.FAIL,u])},any:function(e){var t=e.match||0,r=t!==ALWAYS_MATCH?o.add({type:"any"}):-1;return f(t,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,r])}},t&&"source-and-map"===t.output&&Object.keys(v).forEach((function(e){var t=v[e];v[e]=function(e){for(var r=[],n=1;n>>=VLQ_BASE_SHIFT,n>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$2.encode(t)}while(n>0);return r};var util$3={};function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),n=buildSafeBase(t),o=new URL(t,n);e(o);const u=o.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(PROTOCOL.length):"path-absolute"===r?u.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(n,u)}}function withBase(e,t){return new URL(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const n=e+r++;if(-1===t.indexOf(n))return n}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let n=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();r.length>0&&n.length>0&&r[0]===n[0];)r.shift(),n.shift();return n.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),n=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===n)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const o=buildSafeBase(t+e);return computeRelativeURL(o,withBase(t,withBase(e,o)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),n=new URL(e,r),o=new URL(t,r);try{new URL("",o.toString())}catch(e){return null}return o.protocol!==n.protocol||o.user!==n.user||o.password!==n.password||o.hostname!==n.hostname||o.port!==n.port?null:computeRelativeURL(n,o)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const n=new e;for(let e=0,o=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||n==r&&u>=o||util$2.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,n=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$1.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)})),t.sources.forEach((function(e){let o=e;null!=r&&(o=util$1.relative(r,e)),n._sources.has(o)||n._sources.add(o);const u=t.sourceContentFor(e);null!=u&&n.setSourceContent(e,u)})),n}addMapping(e){const t=util$1.getArg(e,"generated"),r=util$1.getArg(e,"original",null);let n=util$1.getArg(e,"source",null),o=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,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:r&&r.line,originalColumn:r&&r.column,source:n,name:o})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$1.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){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 o=this._sourceRoot;null!=o&&(n=util$1.relative(o,n));const u=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;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!=r&&(t.source=util$1.join(r,t.source)),null!=o&&(t.source=util$1.relative(o,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const i=t.source;null==i||u.has(i)||u.add(i);const s=t.name;null==s||a.has(s)||a.add(s)}),this),this._sources=u,this._names=a,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=util$1.join(r,t)),null!=o&&(t=util$1.relative(o,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,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&&!r&&!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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,n,o=0,u=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let f=0,h=p.length;f0){if(!util$1.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=base64VLQ.encode(n-c),c=n,e+=base64VLQ.encode(t.originalLine-1-i),i=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-s),s=r)),l+=e}return l}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$1.relative(t,e));const r=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==o?null:o,this[isSourceNode]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(t,r,n){const o=new e,u=t.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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 r=0,n=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.sourceNode=function(e,t,r){var n=GrammarLocation$2.offsetStart(e);return new SourceNode$1(n.line,n.column?n.column-1:null,String(e.source),t,r)},e.prototype.push=function(t){++this.sp>this.maxSp&&(this.maxSp=this.sp);var r=this.labels[this.sp],n=[this.name(this.sp)," = ",t,";"];if(r){if(this.sourceMapStack.length){var o=e.sourceNode(r.location,n.splice(0,2),r.label),u=this.sourceMapPopInternal(),a=u.parts,i=u.location,s=i.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop();if(!e)throw new RangeError("Rule '".concat(this.ruleName,"': Attempting to pop an empty source map stack.\nBytecode: ").concat(this.bytecode));var t=e[0],r=e[1],n=e[2],o=t.splice(r).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(o.length){var u=GrammarLocation$2.offsetStart(n);t.push(new SourceNode$1(u.line,u.column-1,String(n.source),o))}return{parts:t,location:n}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],o+=t[(3&e[u])<<4|e[u+1]>>4],o+=t[(15&e[u+1])<<2|e[u+2]>>6],o+=t[63&e[u+2]];return 1===r?(o+=t[e[n]>>2],o+=t[(3&e[n])<<4],o+="=="):2===r&&(o+=t[e[n]>>2],o+=t[(3&e[n])<<4|e[n+1]>>4],o+=t[(15&e[n+1])<<2],o+="="),o}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,peg$SyntaxError.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,n={},o=(t=void 0!==t?t:{}).grammarSource,u={Grammar:Ir,ImportsAndSource:function(){var t,r,o;return t=Cr,r=function(){var t,r;return t=Cr,r=Cr,Tr(),r=e.substring(r,Cr),$r=t,Ct(r)}(),o=function(){var t,r,o,u;for(t=Cr,r=Cr,o=[],e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));u!==n;)o.push(u),e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));return r=e.substring(r,Cr),$r=t,Et(r)}(),$r=t,vt(r,o)}},a=Ir,i="import",s=";",c=",",l="*",p="as",f="{",h="}",d="from",g="=",m="/",A="@",_=":",v="|",E="..",C="(",$=")",y=".",S="\n",F="\r\n",b="/*",x="*/",P="//",D="\\",R="i",B='"',O="'",L="[",w="^",I="]",T="-",M="0",N="b",k="f",H="n",j="r",U="t",G="v",V="x",z="u",Y=/^[!$&]/,W=/^[*-+?]/,J=/^[!&]/,q=/^[\t\v-\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/,Q=/^[\n\r\u2028\u2029]/,X=/^[\r\u2028-\u2029]/,K=/^[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Z=/^[$0-9_\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u09E6-\u09EF\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B62-\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18-\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F3F\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19D9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u203F-\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099-\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F1\uA900-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5-\uAAF6\uABE3-\uABEA\uABEC-\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33-\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/,ee=/^[\n\r"\\\u2028-\u2029]/,te=/^[\n\r'\\\u2028-\u2029]/,re=/^[\n\r\\-\]\u2028-\u2029]/,ne=/^["'\\]/,oe=/^[0-9ux]/,ue=/^[0-9]/,ae=/^[0-9a-f]/i,ie=/^[{}]/,se={type:"any"},ce=Dr("import",!1),le=Dr(";",!1),pe=Dr(",",!1),fe=Dr("*",!1),he=Dr("as",!1),de=Dr("{",!1),ge=Dr("}",!1),me=Dr("from",!1),Ae=Dr("=",!1),_e=Dr("/",!1),ve=Dr("@",!1),Ee=Dr(":",!1),Ce=Rr(["!","$","&"],!1,!1),$e=Rr([["*","+"],"?"],!1,!1),ye=Dr("|",!1),Se=Dr("..",!1),Fe=Dr("(",!1),be=Dr(")",!1),xe=Dr(".",!1),Pe=Rr(["!","&"],!1,!1),De=Br("whitespace"),Re=Rr(["\t",["\v","\f"]," "," "," ",[" "," "]," "," "," ","\ufeff"],!1,!1),Be=Rr(["\n","\r","\u2028","\u2029"],!1,!1),Oe=Br("end of line"),Le=Dr("\n",!1),we=Dr("\r\n",!1),Ie=Rr(["\r",["\u2028","\u2029"]],!1,!1),Te=Br("comment"),Me=Dr("/*",!1),Ne=Dr("*/",!1),ke=Dr("//",!1),He=Br("identifier"),je=Rr([["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԯ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏽ"],["ᏸ","ᏽ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚝ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","Ɬ"],["Ʞ","ꞷ"],["ꟷ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꧠ","ꧤ"],["ꧦ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꬰ","ꭚ"],["ꭜ","ꭥ"],["ꭰ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Ue=Dr("\\",!1),Ge=Rr(["$",["0","9"],"_",["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","٩"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],["۰","۹"],"ܑ",["ܰ","݊"],["ަ","ް"],["߀","߉"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ः"],["ऺ","़"],["ा","ॏ"],["॑","ॗ"],["ॢ","ॣ"],["०","९"],["ঁ","ঃ"],"়",["া","ৄ"],["ে","ৈ"],["ো","্"],"ৗ",["ৢ","ৣ"],["০","৯"],["ਁ","ਃ"],"਼",["ਾ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["੦","ੱ"],"ੵ",["ઁ","ઃ"],"઼",["ા","ૅ"],["ે","ૉ"],["ો","્"],["ૢ","ૣ"],["૦","૯"],["ଁ","ଃ"],"଼",["ା","ୄ"],["େ","ୈ"],["ୋ","୍"],["ୖ","ୗ"],["ୢ","ୣ"],["୦","୯"],"ஂ",["ா","ூ"],["ெ","ை"],["ொ","்"],"ௗ",["௦","௯"],["ఀ","ః"],["ా","ౄ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],["౦","౯"],["ಁ","ಃ"],"಼",["ಾ","ೄ"],["ೆ","ೈ"],["ೊ","್"],["ೕ","ೖ"],["ೢ","ೣ"],["೦","೯"],["ഁ","ഃ"],["ാ","ൄ"],["െ","ൈ"],["ൊ","്"],"ൗ",["ൢ","ൣ"],["൦","൯"],["ං","ඃ"],"්",["ා","ු"],"ූ",["ෘ","ෟ"],["෦","෯"],["ෲ","ෳ"],"ั",["ิ","ฺ"],["็","๎"],["๐","๙"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["໐","໙"],["༘","༙"],["༠","༩"],"༵","༷","༹",["༾","༿"],["ཱ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ါ","ှ"],["၀","၉"],["ၖ","ၙ"],["ၞ","ၠ"],["ၢ","ၤ"],["ၧ","ၭ"],["ၱ","ၴ"],["ႂ","ႍ"],["ႏ","ႝ"],["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","៓"],"៝",["០","៩"],["᠋","᠍"],["᠐","᠙"],"ᢩ",["ᤠ","ᤫ"],["ᤰ","᤻"],["᥆","᥏"],["᧐","᧙"],["ᨗ","ᨛ"],["ᩕ","ᩞ"],["᩠","᩼"],["᩿","᪉"],["᪐","᪙"],["᪰","᪽"],["ᬀ","ᬄ"],["᬴","᭄"],["᭐","᭙"],["᭫","᭳"],["ᮀ","ᮂ"],["ᮡ","ᮭ"],["᮰","᮹"],["᯦","᯳"],["ᰤ","᰷"],["᱀","᱉"],["᱐","᱙"],["᳐","᳒"],["᳔","᳨"],"᳭",["ᳲ","᳴"],["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["‌","‍"],["‿","⁀"],"⁔",["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〯"],["゙","゚"],["꘠","꘩"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠣ","ꠧ"],["ꢀ","ꢁ"],["ꢴ","꣄"],["꣐","꣙"],["꣠","꣱"],["꤀","꤉"],["ꤦ","꤭"],["ꥇ","꥓"],["ꦀ","ꦃ"],["꦳","꧀"],["꧐","꧙"],"ꧥ",["꧰","꧹"],["ꨩ","ꨶ"],"ꩃ",["ꩌ","ꩍ"],["꩐","꩙"],["ꩻ","ꩽ"],"ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫫ","ꫯ"],["ꫵ","꫶"],["ꯣ","ꯪ"],["꯬","꯭"],["꯰","꯹"],"ﬞ",["︀","️"],["︠","︯"],["︳","︴"],["﹍","﹏"],["0","9"],"_"],!1,!1),Ve=Br("literal"),ze=Dr("i",!1),Ye=Br("string"),We=Dr('"',!1),Je=Dr("'",!1),qe=Rr(["\n","\r",'"',"\\",["\u2028","\u2029"]],!1,!1),Qe=Rr(["\n","\r","'","\\",["\u2028","\u2029"]],!1,!1),Xe=Br("character class"),Ke=Dr("[",!1),Ze=Dr("^",!1),et=Dr("]",!1),tt=Dr("-",!1),rt=Rr(["\n","\r",["\\","]"],["\u2028","\u2029"]],!1,!1),nt=Dr("0",!1),ot=Rr(['"',"'","\\"],!1,!1),ut=Dr("b",!1),at=Dr("f",!1),it=Dr("n",!1),st=Dr("r",!1),ct=Dr("t",!1),lt=Dr("v",!1),pt=Rr([["0","9"],"u","x"],!1,!1),ft=Dr("x",!1),ht=Dr("u",!1),dt=Rr([["0","9"]],!1,!1),gt=Rr([["0","9"],["a","f"]],!1,!0),mt=Br("code block"),At=Rr(["{","}"],!1,!1),_t=function(e,t,r,n){return{type:"grammar",imports:e,topLevelInitializer:t,initializer:r,rules:n,location:xr()}},vt=function(e,t){return[e,t]},Et=function(e){return{type:"top_level_initializer",code:e,codeLocation:xr()}},Ct=function(e){return{type:"top_level_initializer",code:e,codeLocation:xr()}},$t=function(e,t){return{type:"grammar_import",what:e,from:t,location:xr()}},yt=function(e){return{type:"grammar_import",what:[],from:e,location:xr()}},St=function(e,t){return t?Array.isArray(t)?(t.unshift(e),t):[e,t]:[e]},Ft=function(e){return{type:"import_binding_default",binding:e[0],location:e[1]}},bt=function(e){return[{type:"import_binding_all",binding:e[0],location:e[1]}]},xt=function(){return[]},Pt=function(e,t){return{type:"import_binding_rename",rename:e[0],renameLocation:e[1],binding:t[0],location:t[1]}},Dt=function(e){return{type:"import_binding",binding:e[0],location:e[1]}},Rt=function(e){return{type:"import_module_specifier",module:e,location:xr()}},Bt=function(e){return[e,xr()]},Ot=function(e){return[e,xr()]},Lt=function(e){return Sn.indexOf(e[0])>=0&&Pr("Binding identifier can't be a reserved word \"".concat(e[0],'"'),e[1]),e[0]},wt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:xr()}},It=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:xr()}},Tt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:xr()}:r,location:xr()}},Mt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:xr()}:e},Nt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:xr()}:e},kt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:xr()}:e},Ht=function(e,t,r){return r.type.startsWith("semantic_")&&Pr('"@" 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:r,location:xr()}},jt=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:xr()}},Ut=function(){return xr()},Gt=function(e){return Sn.indexOf(e[0])>=0&&Pr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Vt=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:xr()}},zt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:xr()}},Yt=function(e,t,r){var n=t[0],o=t[1];return"constant"===o.type&&0===o.value&&Pr("The maximum count of repetitions of the rule must be > 0",o.location),{type:"repeated",min:n,max:o,expression:e,delimiter:r,location:xr()}},Wt=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},Jt=function(e){return[null,e]},qt=function(e){return{type:"constant",value:e,location:xr()}},Qt=function(e){return{type:"variable",value:e[0],location:xr()}},Xt=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:xr()}},Kt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:xr()}:e},Zt=function(e,t){return{type:"library_ref",name:t[0],library:e[0],libraryNumber:-1,location:xr()}},er=function(e){return{type:"rule_ref",name:e[0],location:xr()}},tr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:xr()}},rr=function(e,t){return[e+t.join(""),xr()]},nr=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:xr()}},or=function(e){return e.join("")},ur=function(e){return e.join("")},ar=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:xr()}},ir=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&Pr("Invalid character range: "+e.substring($r,Cr)+"."),[t,r]},sr=function(){return""},cr=function(){return"\0"},lr=function(){return"\b"},pr=function(){return"\f"},fr=function(){return"\n"},hr=function(){return"\r"},dr=function(){return"\t"},gr=function(){return"\v"},mr=function(e){return String.fromCharCode(parseInt(e,16))},Ar=function(e){return String.fromCharCode(parseInt(e,16))},_r=function(){return{type:"any",location:xr()}},vr=function(e){return[e,xr()]},Er=function(e){return parseInt(e,10)},Cr=0|t.peg$currPos,$r=Cr,yr=[{line:1,column:1}],Sr=Cr,Fr=t.peg$maxFailExpected||[],br=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=u[t.startRule]}function xr(){return Lr($r,Cr)}function Pr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Lr($r,Cr))}function Dr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Rr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Br(e){return{type:"other",description:e}}function Or(t){var r,n=yr[t];if(n)return n;if(t>=yr.length)r=yr.length-1;else for(r=t;!yr[--r];);for(n={line:(n=yr[r]).line,column:n.column};rSr&&(Sr=Cr,Fr=[]),Fr.push(e))}function Ir(){var t,r,o,u,a,i,s,c;if(t=Cr,r=Tr(),o=Cr,u=$n(),a=function(){var t,r,o,u;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n&&(o=En())!==n?(125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n&&yn()!==n?($r=t,t=wt(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?o=a:(Cr=o,o=n),o===n&&(o=null),u=Cr,a=$n(),i=function(){var e,t;return e=Cr,(t=En())!==n&&yn()!==n?($r=e,e=It(t)):(Cr=e,e=n),e}(),i!==n?u=i:(Cr=u,u=n),u===n&&(u=null),a=$n(),i=[],s=Cr,(c=Gr())!==n?($n(),s=c):(Cr=s,s=n),s!==n)for(;s!==n;)i.push(s),s=Cr,(c=Gr())!==n?($n(),s=c):(Cr=s,s=n);else i=n;return i!==n?($r=t,t=_t(r,o,u,i)):(Cr=t,t=n),t}function Tr(){var e,t;for(e=[],t=Mr();t!==n;)e.push(t),t=Mr();return e}function Mr(){var t,r,o,u,a,l,p,f;return t=Cr,$n(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?($n(),o=function(){var t,r,o,u,a;return(t=Nr())===n&&(t=kr())===n&&(t=Cr,r=function(){var e,t;return e=Cr,(t=Ur())!==n&&($r=e,t=Ft(t)),e=t}(),r!==n?(o=Cr,$n(),44===e.charCodeAt(Cr)?(u=c,Cr++):(u=n,0===br&&wr(pe)),u!==n?($n(),(a=Nr())===n&&(a=kr()),a!==n?o=a:(Cr=o,o=n)):(Cr=o,o=n),o===n&&(o=null),$r=t,t=St(r,o)):(Cr=t,t=n)),t}(),o!==n?(u=$n(),a=function(){var t,r,o;return t=Cr,e.substr(Cr,4)===d?(r=d,Cr+=4):(r=n,0===br&&wr(me)),r!==n?($n(),(o=jr())!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?(l=Cr,p=$n(),59===e.charCodeAt(Cr)?(f=s,Cr++):(f=n,0===br&&wr(le)),f!==n?l=p=[p,f]:(Cr=l,l=n),l===n&&(l=null),$r=t,t=$t(o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,$n(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?($n(),(o=jr())!==n?(u=Cr,a=$n(),59===e.charCodeAt(Cr)?(l=s,Cr++):(l=n,0===br&&wr(le)),l!==n?u=a=[a,l]:(Cr=u,u=n),u===n&&(u=null),$r=t,t=yt(o)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Nr(){var t,r,o,u;return t=Cr,42===e.charCodeAt(Cr)?(r=l,Cr++):(r=n,0===br&&wr(fe)),r!==n?($n(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?($n(),(u=Ur())!==n?($r=t,t=bt(u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function kr(){var t,r,o,u,a;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?($n(),125===e.charCodeAt(Cr)?(o=h,Cr++):(o=n,0===br&&wr(ge)),o!==n?($r=t,t=xt()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?($n(),o=function(){var t,r,o,u,a,i;for(t=Cr,r=[],o=Hr();o!==n;)r.push(o),o=Cr,u=Cr,a=$n(),44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?u=a=[a,i,$n()]:(Cr=u,u=n),u!==n&&(u=Hr())===n?(Cr=o,o=n):o=u;return r.length<1?(Cr=t,t=n):t=r,t}(),o!==n?($n(),u=Cr,44===e.charCodeAt(Cr)?(a=c,Cr++):(a=n,0===br&&wr(pe)),a!==n?u=a=[a,$n()]:(Cr=u,u=n),u===n&&(u=null),125===e.charCodeAt(Cr)?(a=h,Cr++):(a=n,0===br&&wr(ge)),a!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Hr(){var t,r,o,u;return t=Cr,r=function(){var e,t;return(e=un())===n&&(e=Cr,(t=cn())!==n&&($r=e,t=Ot(t)),e=t),e}(),r!==n?($n(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?($n(),(u=Ur())!==n?($r=t,t=Pt(r,u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=Ur())!==n&&($r=t,r=Dt(r)),t=r),t}function jr(){var e,t;return e=Cr,(t=cn())!==n&&($r=e,t=Rt(t)),t}function Ur(){var e,t;return e=Cr,t=function(){var e,t;return e=Cr,(t=un())!==n&&($r=e,t=Lt(t)),e=t}(),t!==n&&($r=e,t=Bt(t)),t}function Gr(){var t,r,o,u,a;return t=Cr,(r=un())!==n?($n(),o=Cr,(u=cn())!==n?($n(),o=u):(Cr=o,o=n),o===n&&(o=null),61===e.charCodeAt(Cr)?(u=g,Cr++):(u=n,0===br&&wr(Ae)),u!==n?($n(),(a=Vr())!==n&&yn()!==n?($r=t,t=Tt(r,o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function Vr(){var t,r,o,u,a,i;if(t=Cr,(r=zr())!==n){for(o=[],u=Cr,$n(),47===e.charCodeAt(Cr)?(a=m,Cr++):(a=n,0===br&&wr(_e)),a!==n?($n(),(i=zr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);u!==n;)o.push(u),u=Cr,$n(),47===e.charCodeAt(Cr)?(a=m,Cr++):(a=n,0===br&&wr(_e)),a!==n?($n(),(i=zr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);$r=t,t=Mt(r,o)}else Cr=t,t=n;return t}function zr(){var e,t,r,o;return e=Cr,t=function(){var e,t,r,o,u;if(e=Cr,(t=Yr())!==n){for(r=[],o=Cr,$n(),(u=Yr())!==n?o=u:(Cr=o,o=n);o!==n;)r.push(o),o=Cr,$n(),(u=Yr())!==n?o=u:(Cr=o,o=n);$r=e,e=kt(t,r)}else Cr=e,e=n;return e}(),t!==n?(r=Cr,$n(),(o=En())!==n?r=o:(Cr=r,r=n),r===n&&(r=null),$r=e,e=Nt(t,r)):(Cr=e,e=n),e}function Yr(){var t,r,o,u;return t=Cr,r=function(){var t,r;return t=Cr,64===e.charCodeAt(Cr)?(r=A,Cr++):(r=n,0===br&&wr(ve)),r!==n&&($r=t,r=Ut()),t=r}(),r!==n?((o=Wr())===n&&(o=null),(u=Jr())!==n?($r=t,t=Ht(r,o,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=Wr())!==n&&(o=Jr())!==n?($r=t,t=jt(r,o)):(Cr=t,t=n),t===n&&(t=Jr())),t}function Wr(){var t,r,o;return t=Cr,(r=un())!==n?($n(),58===e.charCodeAt(Cr)?(o=_,Cr++):(o=n,0===br&&wr(Ee)),o!==n?($n(),$r=t,t=Gt(r)):(Cr=t,t=n)):(Cr=t,t=n),t}function Jr(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),Y.test(t)?Cr++:(t=n,0===br&&wr(Ce)),t}(),r!==n?($n(),(o=qr())!==n?($r=t,t=Vt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=qr()),t}function qr(){var t,r,o;return t=Cr,(r=Xr())!==n?($n(),o=function(){var t;return t=e.charAt(Cr),W.test(t)?Cr++:(t=n,0===br&&wr($e)),t}(),o!==n?($r=t,t=zt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=Xr())!==n?($n(),124===e.charCodeAt(Cr)?(o=v,Cr++):(o=n,0===br&&wr(ye)),o!==n?($n(),u=function(){var t,r,o,u;return t=Cr,(r=Qr())===n&&(r=null),$n(),e.substr(Cr,2)===E?(o=E,Cr+=2):(o=n,0===br&&wr(Se)),o!==n?($n(),(u=Qr())===n&&(u=null),$r=t,t=Wt(r,u)):(Cr=t,t=n),t===n&&(t=Cr,(r=Qr())!==n&&($r=t,r=Jt(r)),t=r),t}(),u!==n?($n(),a=Cr,44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?($n(),(s=Vr())!==n?($n(),a=s):(Cr=a,a=n)):(Cr=a,a=n),a===n&&(a=null),124===e.charCodeAt(Cr)?(i=v,Cr++):(i=n,0===br&&wr(ye)),i!==n?($r=t,t=Yt(r,u,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Xr())),t}function Qr(){var t,r;return t=Cr,r=function(){var t,r,o,u;if(t=Cr,r=Cr,o=[],(u=_n())!==n)for(;u!==n;)o.push(u),u=_n();else o=n;return(r=o!==n?e.substring(r,Cr):o)!==n&&($r=t,r=Er(r)),t=r}(),r!==n&&($r=t,r=qt(r)),(t=r)===n&&(t=Cr,(r=un())!==n&&($r=t,r=Qt(r)),(t=r)===n&&(t=Cr,(r=En())!==n&&($r=t,r=Xt(r)),t=r)),t}function Xr(){var t,r,o,u;return t=function(){var t,r,o;return br++,t=Cr,(r=cn())!==n?(105===e.charCodeAt(Cr)?(o=R,Cr++):(o=n,0===br&&wr(ze)),o===n&&(o=null),$r=t,t=nr(r,o)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(Ve)),t}(),t===n&&(t=function(){var t,r,o,u,a,i;if(br++,t=Cr,91===e.charCodeAt(Cr)?(r=L,Cr++):(r=n,0===br&&wr(Ke)),r!==n){for(94===e.charCodeAt(Cr)?(o=w,Cr++):(o=n,0===br&&wr(Ze)),o===n&&(o=null),u=[],(a=fn())===n&&(a=hn());a!==n;)u.push(a),(a=fn())===n&&(a=hn());93===e.charCodeAt(Cr)?(a=I,Cr++):(a=n,0===br&&wr(et)),a!==n?(105===e.charCodeAt(Cr)?(i=R,Cr++):(i=n,0===br&&wr(ze)),i===n&&(i=null),$r=t,t=ar(o,u,i)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(Xe)),t}(),t===n&&(t=function(){var t,r;return t=Cr,46===e.charCodeAt(Cr)?(r=y,Cr++):(r=n,0===br&&wr(xe)),r!==n&&($r=t,r=_r()),t=r}(),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=un())!==n?(46===e.charCodeAt(Cr)?(o=y,Cr++):(o=n,0===br&&wr(xe)),o!==n&&(u=un())!==n?($r=t,t=Zt(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=un())!==n?(o=Cr,br++,u=Cr,a=$n(),i=Cr,(s=cn())!==n?i=s=[s,$n()]:(Cr=i,i=n),i===n&&(i=null),61===e.charCodeAt(Cr)?(s=g,Cr++):(s=n,0===br&&wr(Ae)),s!==n?u=a=[a,i,s]:(Cr=u,u=n),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?($r=t,t=er(r)):(Cr=t,t=n)):(Cr=t,t=n)),t}(),t===n&&(t=function(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),J.test(t)?Cr++:(t=n,0===br&&wr(Pe)),t}(),r!==n?($n(),(o=En())!==n?($r=t,t=tr(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Cr,40===e.charCodeAt(Cr)?(r=C,Cr++):(r=n,0===br&&wr(Fe)),r!==n?($n(),(o=Vr())!==n?($n(),41===e.charCodeAt(Cr)?(u=$,Cr++):(u=n,0===br&&wr(be)),u!==n?($r=t,t=Kt(o)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)))))),t}function Kr(){var t;return e.length>Cr?(t=e.charAt(Cr),Cr++):(t=n,0===br&&wr(se)),t}function Zr(){var t;return br++,t=e.charAt(Cr),q.test(t)?Cr++:(t=n,0===br&&wr(Re)),br--,t===n&&0===br&&wr(De),t}function en(){var t;return t=e.charAt(Cr),Q.test(t)?Cr++:(t=n,0===br&&wr(Be)),t}function tn(){var t;return br++,10===e.charCodeAt(Cr)?(t=S,Cr++):(t=n,0===br&&wr(Le)),t===n&&(e.substr(Cr,2)===F?(t=F,Cr+=2):(t=n,0===br&&wr(we)),t===n&&(t=e.charAt(Cr),X.test(t)?Cr++:(t=n,0===br&&wr(Ie)))),br--,t===n&&0===br&&wr(Oe),t}function rn(){var t;return br++,(t=function(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Me)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===x?(u=x,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}())===n&&(t=on()),br--,t===n&&0===br&&wr(Te),t}function nn(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Me)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===x?(i=x,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===x?(u=x,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}function on(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===P?(r=P,Cr+=2):(r=n,0===br&&wr(ke)),r!==n){for(o=[],u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);t=r=[r,o]}else Cr=t,t=n;return t}function un(){var e,t,r,o;if(br++,e=Cr,(t=an())!==n){for(r=[],o=sn();o!==n;)r.push(o),o=sn();$r=e,e=rr(t,r)}else Cr=e,e=n;return br--,e===n&&(t=n,0===br&&wr(He)),e}function an(){var t,r,o;return t=e.charAt(Cr),K.test(t)?Cr++:(t=n,0===br&&wr(je)),t===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=An())!==n?t=o:(Cr=t,t=n)),t}function sn(){var t;return(t=an())===n&&(t=e.charAt(Cr),Z.test(t)?Cr++:(t=n,0===br&&wr(Ge))),t}function cn(){var t,r,o,u;if(br++,t=Cr,34===e.charCodeAt(Cr)?(r=B,Cr++):(r=n,0===br&&wr(We)),r!==n){for(o=[],u=ln();u!==n;)o.push(u),u=ln();34===e.charCodeAt(Cr)?(u=B,Cr++):(u=n,0===br&&wr(We)),u!==n?($r=t,t=or(o)):(Cr=t,t=n)}else Cr=t,t=n;if(t===n)if(t=Cr,39===e.charCodeAt(Cr)?(r=O,Cr++):(r=n,0===br&&wr(Je)),r!==n){for(o=[],u=pn();u!==n;)o.push(u),u=pn();39===e.charCodeAt(Cr)?(u=O,Cr++):(u=n,0===br&&wr(Je)),u!==n?($r=t,t=ur(o)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(Ye)),t}function ln(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),ee.test(u)?Cr++:(u=n,0===br&&wr(qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function pn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),te.test(u)?Cr++:(u=n,0===br&&wr(Qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function fn(){var t,r,o,u;return t=Cr,(r=hn())!==n?(45===e.charCodeAt(Cr)?(o=T,Cr++):(o=n,0===br&&wr(tt)),o!==n&&(u=hn())!==n?($r=t,t=ir(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t}function hn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),re.test(u)?Cr++:(u=n,0===br&&wr(rt)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function dn(){var t,r;return t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(Ue)),r!==n&&tn()!==n?($r=t,t=sr()):(Cr=t,t=n),t}function gn(){var t,r,o,u;return t=function(){var t;return(t=mn())===n&&(t=function(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=function(){var t;return(t=mn())===n&&(t=e.charAt(Cr),oe.test(t)?Cr++:(t=n,0===br&&wr(pt))),t}(),u===n&&(u=en()),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),t=r!==n?e.substring(t,Cr):r}()),t}(),t===n&&(t=Cr,48===e.charCodeAt(Cr)?(r=M,Cr++):(r=n,0===br&&wr(nt)),r!==n?(o=Cr,br++,u=_n(),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?($r=t,t=cr()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i;return t=Cr,120===e.charCodeAt(Cr)?(r=V,Cr++):(r=n,0===br&&wr(ft)),r!==n?(o=Cr,u=Cr,(a=vn())!==n&&(i=vn())!==n?u=a=[a,i]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?($r=t,t=mr(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=An()))),t}function mn(){var t,r;return t=e.charAt(Cr),ne.test(t)?Cr++:(t=n,0===br&&wr(ot)),t===n&&(t=Cr,98===e.charCodeAt(Cr)?(r=N,Cr++):(r=n,0===br&&wr(ut)),r!==n&&($r=t,r=lr()),(t=r)===n&&(t=Cr,102===e.charCodeAt(Cr)?(r=k,Cr++):(r=n,0===br&&wr(at)),r!==n&&($r=t,r=pr()),(t=r)===n&&(t=Cr,110===e.charCodeAt(Cr)?(r=H,Cr++):(r=n,0===br&&wr(it)),r!==n&&($r=t,r=fr()),(t=r)===n&&(t=Cr,114===e.charCodeAt(Cr)?(r=j,Cr++):(r=n,0===br&&wr(st)),r!==n&&($r=t,r=hr()),(t=r)===n&&(t=Cr,116===e.charCodeAt(Cr)?(r=U,Cr++):(r=n,0===br&&wr(ct)),r!==n&&($r=t,r=dr()),(t=r)===n&&(t=Cr,118===e.charCodeAt(Cr)?(r=G,Cr++):(r=n,0===br&&wr(lt)),r!==n&&($r=t,r=gr()),t=r)))))),t}function An(){var t,r,o,u,a,i,s,c;return t=Cr,117===e.charCodeAt(Cr)?(r=z,Cr++):(r=n,0===br&&wr(ht)),r!==n?(o=Cr,u=Cr,(a=vn())!==n&&(i=vn())!==n&&(s=vn())!==n&&(c=vn())!==n?u=a=[a,i,s,c]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?($r=t,t=Ar(o)):(Cr=t,t=n)):(Cr=t,t=n),t}function _n(){var t;return t=e.charAt(Cr),ue.test(t)?Cr++:(t=n,0===br&&wr(dt)),t}function vn(){var t;return t=e.charAt(Cr),ae.test(t)?Cr++:(t=n,0===br&&wr(gt)),t}function En(){var t,r,o,u;return br++,t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(o=function(){var e,t;return e=Cr,t=Cn(),$r=e,e=t=vr(t)}(),125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(mt)),t}function Cn(){var t,r,o,u,a,i;if(t=Cr,r=[],o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;for(o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n));o!==n;){if(r.push(o),o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(At)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n))}return e.substring(t,Cr)}function $n(){var e,t;for(e=[],(t=Zr())===n&&(t=tn())===n&&(t=rn());t!==n;)e.push(t),(t=Zr())===n&&(t=tn())===n&&(t=rn());return e}function yn(){var t,r,o,u;if(t=[],r=Cr,o=$n(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n),r!==n)for(;r!==n;)t.push(r),r=Cr,o=$n(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n);else t=n;return t===n&&(t=Cr,r=function(){var e,t;for(e=[],(t=Zr())===n&&(t=nn());t!==n;)e.push(t),(t=Zr())===n&&(t=nn());return e}(),(o=on())===n&&(o=null),(u=tn())!==n?t=r=[r,o,u]:(Cr=t,t=n),t===n&&(t=Cr,r=$n(),o=function(){var t,r;return t=Cr,br++,e.length>Cr?(r=e.charAt(Cr),Cr++):(r=n,0===br&&wr(se)),br--,r===n?t=void 0:(Cr=t,t=n),t}(),o!==n?t=r=[r,o]:(Cr=t,t=n))),t}var Sn=t.reservedWords||[];if(r=a(),t.peg$library)return{peg$result:r,peg$currPos:Cr,peg$FAILED:n,peg$maxFailExpected:Fr,peg$maxFailPos:Sr};if(r!==n&&Cr===e.length)return r;throw r!==n&&Cr0){for(t=1,r=1;t0||e.imports.length>0)throw new Error("Dependencies not supported in format 'bare'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function() {",' "use strict";',"",r,"",l("return "+o()+";"),"})()"],!1)},commonjs:function(){var t=Object.keys(c),u=n();u.push("",'"use strict";',""),t.length>0&&(t.forEach((function(e){u.push("var "+e+' = require("'+stringEscape(c[e])+'");')})),u.push(""));for(var a=e.imports.length,i=0;i0&&(o.forEach((function(e){u.push("import "+e+' from "'+stringEscape(c[e])+'";')})),u.push(""));for(var a=0;a0)throw new Error("Imports are not supported in format 'amd'.");var t=Object.keys(c),u="["+t.map((function(e){return c[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",a=t.join(", ");return __spreadArray$2(__spreadArray$2([],n(),!0),["define("+u+", function("+a+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"],!1)},globals:function(){if(Object.keys(c).length>0||e.imports.length>0)throw new Error("Dependencies not supported in format 'globals'.");if(!t.exportVar)throw new Error("No export variable defined for format 'globals'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function(root) {",' "use strict";',"",r,"",l("root."+t.exportVar+" = "+o()+";"),"})(this);"],!1)},umd:function(){if(e.imports.length>0)throw new Error("Imports are not supported in format 'umd'.");var u=Object.keys(c),a=u.map((function(e){return c[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),p=u.join(", "),f=n();return f.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),t.exportVar&&f.push(" } else {"," root."+t.exportVar+" = factory();"),f.push(" }","})(this, function("+p+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"),f}},a=u[t.format||"bare"]();return new SourceNode(null,null,t.grammarSource,a.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[],_=e.topLevelInitializer;if(_)if(Array.isArray(_)){if("es"===t.format){for(var v=[],E=[],C=0,$=_;C<$.length;C++){var y=$[C],S=parse(y.code,{startRule:"ImportsAndSource",grammarSource:new GrammarLocation$1(y.codeLocation.source,y.codeLocation.start)}),F=S[0],b=S[1];F.code?(v.push(F),E.push(b)):E.push(y)}_=E.concat(v)}for(var x=0,P=_.slice(0).reverse();x 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&&c.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 + ".");'," }","};","");var D="{ "+s.map((function(e){return e+": "+m(e)})).join(", ")+" }",R=m(s[0]);if(c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+D+";"," var peg$startRuleFunction = "+R+";","",new SourceNode(null,null,t.grammarSource,__spreadArray$2([r.map((function(e,t){return" var "+p(t)+' = "'+stringEscape(e)+'";'})).concat("",o.map((function(e,t){return" var "+f(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",u.map((function(e,t){return" var "+h(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(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")],a.map((function(e,t){return wrapInSourceNode("\n var ".concat(d(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")})),!0)),""," var peg$currPos = options.peg$currPos | 0;"," var peg$savedPos = peg$currPos;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = peg$currPos;"," var peg$maxFailExpected = options.peg$maxFailExpected || [];"," var peg$silentFails = options.peg$silentFails | 0;",""),t.cache&&c.push(" var peg$resultsCache = {};",""),t.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;",""," if (options.startRule) {"," 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 {"," if (pos >= peg$posDetailsCache.length) {"," p = peg$posDetailsCache.length - 1;"," } else {"," p = pos;"," while (!peg$posDetailsCache[--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.imports.length>0&&c.push(" var peg$assign = Object.assign || function(t) {"," var i, s;"," for (i = 1; i < arguments.length; i++) {"," s = arguments[i];"," for (var p in s) {"," if (Object.prototype.hasOwnProperty.call(s, p)) {"," t[p] = s[p];"," }"," }"," }"," return t;"," };",""," function peg$callLibrary(lib, startRule) {"," const opts = peg$assign({}, options, {"," startRule: startRule,"," peg$currPos: peg$currPos,"," peg$silentFails: peg$silentFails,"," peg$library: true,"," peg$maxFailExpected: peg$maxFailExpected"," });"," const res = lib.parse(input, opts);"," peg$currPos = res.peg$currPos;"," peg$maxFailPos = res.peg$maxFailPos;"," peg$maxFailExpected = res.peg$maxFailExpected;"," return (res.peg$result === res.peg$FAILED) ? peg$FAILED : res.peg$result;"," }",""),e.rules.forEach((function(o){c.push.apply(c,l(function(o){var u=[],a=o.bytecode,s=new Stack(o.name,"s","var",a),c=function t(o){var u=0,a=o.length,c=[],A=void 0;function _(e,r,n){var a=r+3,i=o[u+a-2],p=o[u+a-1],f=s.checkedIf(u,(function(){return u+=a+i,(n||t)(o.slice(u-i,u))}),p>0?function(){return u+=p,t(o.slice(u-p,u))}:null),h=f[0],d=f[1];c.push("if ("+e+") {"),c.push.apply(c,l(h)),p>0&&(c.push("} else {"),c.push.apply(c,l(d))),c.push("}")}function v(e,r,n){var a=r+3,i=1===n?"input.charAt(peg$currPos)":"input.substr(peg$currPos, "+n+")",l=null;o[u+a]===op.ACCEPT_N&&o[u+a+1]===n&&(c.push(s.push(i)),i=s.pop(),l=function(e){s.sp++;var r=t(e.slice(2));return r.unshift(1===n?"peg$currPos++;":"peg$currPos += "+n+";"),r}),_(e(i,null!==l),r,l)}for(var E=function(){switch(o[u]){case op.PUSH_EMPTY_STRING:c.push(s.push("''")),u++;break;case op.PUSH_CURR_POS:c.push(s.push("peg$currPos")),u++;break;case op.PUSH_UNDEFINED:c.push(s.push("undefined")),u++;break;case op.PUSH_NULL:c.push(s.push("null")),u++;break;case op.PUSH_FAILED:c.push(s.push("peg$FAILED")),u++;break;case op.PUSH_EMPTY_ARRAY:c.push(s.push("[]")),u++;break;case op.POP:s.pop(),u++;break;case op.POP_CURR_POS:c.push("peg$currPos = "+s.pop()+";"),u++;break;case op.POP_N:s.pop(o[u+1]),u+=2;break;case op.NIP:A=s.pop(),s.pop(),c.push(s.push(A)),u++;break;case op.APPEND:A=s.pop(),c.push(s.top()+".push("+A+");"),u++;break;case op.WRAP:c.push(s.push("["+s.pop(o[u+1]).join(", ")+"]")),u+=2;break;case op.TEXT:c.push(s.push("input.substring("+s.pop()+", peg$currPos)")),u++;break;case op.PLUCK:var a=o[u+3-1],E=3+a;A=o.slice(u+3,u+E),A=1===a?s.index(A[0]):"[ ".concat(A.map((function(e){return s.index(e)})).join(", ")," ]"),s.pop(o[u+1]),c.push(s.push(A)),u+=E;break;case op.IF:_(s.top(),0);break;case op.IF_ERROR:_(s.top()+" === peg$FAILED",0);break;case op.IF_NOT_ERROR:_(s.top()+" !== peg$FAILED",0);break;case op.IF_LT:_(s.top()+".length < "+o[u+1],1);break;case op.IF_GE:_(s.top()+".length >= "+o[u+1],1);break;case op.IF_LT_DYNAMIC:_(s.top()+".length < ("+s.index(o[u+1])+"|0)",1);break;case op.IF_GE_DYNAMIC:_(s.top()+".length >= ("+s.index(o[u+1])+"|0)",1);break;case op.WHILE_NOT_ERROR:x=s.top()+" !== peg$FAILED",P=o[u+2-1],D=s.checkedLoop(u,(function(){return u+=2+P,t(o.slice(u-P,u))})),c.push("while ("+x+") {"),c.push.apply(c,l(D)),c.push("}");break;case op.MATCH_ANY:_("input.length > peg$currPos",0);break;case op.MATCH_STRING:var C=o[u+1],$=r[C];v((function(e,t){return $.length>1?"".concat(e," === ").concat(p(C)):(e=t?"".concat(e,".charCodeAt(0)"):"input.charCodeAt(peg$currPos)","".concat(e," === ").concat($.charCodeAt(0)))}),1,$.length);break;case op.MATCH_STRING_IC:var y=o[u+1];v((function(e){return"".concat(e,".toLowerCase() === ").concat(p(y))}),1,r[y].length);break;case op.MATCH_CHAR_CLASS:var S=o[u+1];v((function(e){return"".concat(f(S),".test(").concat(e,")")}),1,1);break;case op.ACCEPT_N:c.push(s.push(o[u+1]>1?"input.substr(peg$currPos, "+o[u+1]+")":"input.charAt(peg$currPos)")),c.push(o[u+1]>1?"peg$currPos += "+o[u+1]+";":"peg$currPos++;"),u+=2;break;case op.ACCEPT_STRING:c.push(s.push(p(o[u+1]))),c.push(r[o[u+1]].length>1?"peg$currPos += "+r[o[u+1]].length+";":"peg$currPos++;"),u+=2;break;case op.FAIL:c.push(s.push("peg$FAILED")),c.push("if (peg$silentFails === 0) { peg$fail("+h(o[u+1])+"); }"),u+=2;break;case op.LOAD_SAVED_POS:c.push("peg$savedPos = "+s.index(o[u+1])+";"),u+=2;break;case op.UPDATE_SAVED_POS:c.push("peg$savedPos = peg$currPos;"),u++;break;case op.CALL:A=function(){var e=o[u+4-1];return d(o[u+1])+"("+o.slice(u+4,u+4+e).map((function(e){return s.index(e)})).join(", ")+")"}(),s.pop(o[u+2]),c.push(s.push(A)),u+=4+o[u+3];break;case op.RULE:c.push(s.push(m(e.rules[o[u+1]].name)+"()")),u+=2;break;case op.LIBRARY_RULE:var F=o[u+2],b=-1===F?"":', "'+i[F]+'"';c.push(s.push("peg$callLibrary("+g(o[u+1])+b+")")),u+=3;break;case op.SILENT_FAILS_ON:c.push("peg$silentFails++;"),u++;break;case op.SILENT_FAILS_OFF:c.push("peg$silentFails--;"),u++;break;case op.SOURCE_MAP_PUSH:s.sourceMapPush(c,n[o[u+1]]),u+=2;break;case op.SOURCE_MAP_POP:s.sourceMapPop(),u++;break;case op.SOURCE_MAP_LABEL_PUSH:s.labels[o[u+1]]={label:r[o[u+2]],location:n[o[u+3]]},u+=4;break;case op.SOURCE_MAP_LABEL_POP:delete s.labels[o[u+1]],u+=2;break;default:throw new Error("Invalid opcode: "+o[u]+".")}var x,P,D};ui?-1:1:0}));for(var t="",r="",n=0;n=a.charCodeAt(0)?(e.splice(n--,1),e[n]=[t,r=i]):(t=a,r=i)}return e}function mergeCharacterClasses$1(e){var t=Object.create(null);e.rules.forEach((function(e){return t[e.name]=e.expression}));var r=Object.create(null),n=[function(e,n){if("class"===e.type&&!e.inverted)return n&&((e=__assign({},e)).parts=__spreadArray$1([],e.parts,!0)),e;if("literal"===e.type&&1===e.value.length)return{type:"class",parts:[e.value],inverted:!1,ignoreCase:e.ignoreCase,location:e.location};if("rule_ref"===e.type){var a=t[e.name];if(a){r[e.name]||(r[e.name]=!0,u(a));var i=o(a,!0);return i&&(i.location=e.location),i}}return null},visitor$7.build({choice:function(e){var t=null,r=!1;e.alternatives.forEach((function(n,a){var i;u(n);var s=o(n);s?t&&t.ignoreCase===s.ignoreCase?((i=t.parts).push.apply(i,s.parts),e.alternatives[a-1]=t,e.alternatives[a]=t,t.location={source:t.location.source,start:t.location.start,end:s.location.end},r=!0):t=s:t=null})),r&&(e.alternatives=e.alternatives.filter((function(e,t,r){return!t||e!==r[t-1]})),e.alternatives.forEach((function(t,r){"class"===t.type&&(t.parts=cleanParts(t.parts),1!==t.parts.length||Array.isArray(t.parts[0])||t.inverted||(e.alternatives[r]={type:"literal",value:t.parts[0],ignoreCase:t.ignoreCase,location:t.location}))})),1===e.alternatives.length&&cloneOver(e,e.alternatives[0]))},text:function(e){if(u(e.expression),"class"===e.expression.type||"literal"===e.expression.type){var t=e.location;cloneOver(e,e.expression),e.location=t}}})],o=n[0],u=n[1];e.rules.forEach((function(e){r[e.name]=!0,u(e.expression)}))}var mergeCharacterClasses_1=mergeCharacterClasses$1;function reportDuplicateImports$1(e,t,r){for(var n={},o=0,u=e.imports;o0||(n.push(e.name),u(e.expression),n.pop())},sequence:function(t){r.errors>0||t.elements.every((function(t){return u(t),!(r.errors>0||asts$3.alwaysConsumesOnSuccess(e,t))}))},repeated:function(t){r.errors>0||(u(t.expression),t.delimiter&&!asts$3.alwaysConsumesOnSuccess(e,t.expression)&&u(t.delimiter))},rule_ref:function(t){if(!(r.errors>0)){o.push(t);var a=asts$3.findRule(e,t.name);if(-1!==n.indexOf(t.name))return n.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+n.join(" -> ")+")",a.nameLocation,o.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&u(a),o.pop()}}});u(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$2=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){var n=visitor$3.build({zero_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(t.delimiter&&n(t.delimiter),!(asts$2.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$2.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var o=t.min?t.min:t.max;r.warning("constant"===o.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});n(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts$1=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts$1.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var n=visitor$1.build({action:function(e){n(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{prepare:[addImportedRules,reportInfiniteRecursion],check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRepetition,reportIncorrectPlucking,reportDuplicateImports],transform:[fixLibraryNumbers,removeProxyRules,mergeCharacterClasses,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){options=void 0!==options?options:{};var defaultStartRules=[ast.rules[0].name];if(options=processOptions(options,{allowedStartRules:defaultStartRules,cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),null!==options.allowedStartRules&&void 0!==options.allowedStartRules||(options.allowedStartRules=defaultStartRules),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");0===options.allowedStartRules.length&&(options.allowedStartRules=defaultStartRules);var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}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");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(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");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,GrammarError=grammarError,GrammarLocation=grammarLocation,asts=asts_1,compiler=compiler_1,parser=parser$1,VERSION=version,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"],peg$1={VERSION:VERSION,RESERVED_WORDS:RESERVED_WORDS,GrammarError:GrammarError,GrammarLocation:GrammarLocation,parser:parser,compiler:compiler,generate:function(e,t){var r,n,o="plugins"in(t=void 0!==t?t:{})?t.plugins:[],u={parser:peg$1.parser,passes:(r=peg$1.compiler.passes,n={},Object.keys(r).forEach((function(e){n[e]=r[e].slice()})),n),reservedWords:peg$1.RESERVED_WORDS.slice()};o.forEach((function(e){e.use(u,t)})),Array.isArray(e)||(e=[{source:t.grammarSource,text:e}]);var a=asts.combine(e.map((function(e){var t=e.source,r=e.text;return u.parser.parse(r,{grammarSource:t,reservedWords:u.reservedWords})})));return peg$1.compiler.compile(a,u.passes,t)}},peg_1=peg$1,peg=peg_1,Runner$1={run:function(e,t,r,n){var o={functions:[],add:function(e){this.functions.push(e)},run:function(){this.functions.length>0&&(this.functions.shift()(),setTimeout((function(){o.run()}),0))}},u={};o.add((function(){n.start(),u.totalInputSize=0,u.totalParseTime=0})),e.forEach((function(e){o.add(function(e){return function(){n.benchmarkStart(e),u.parser=peg.generate(n.readFile("../examples/"+e.id+".pegjs"),r),u.benchmarkInputSize=0,u.benchmarkParseTime=0}}(e)),e.tests.forEach((function(r){o.add(function(e,r){return function(){n.testStart(e,r);for(var o=n.readFile(e.id+"/"+r.file),a=0,i=0;i\n \n ").concat(null!==n?"":"","\n ").concat(r,"\n ").concat(null!==n?"":"","\n \n \n \n ").concat((o/1024).toFixed(2),"\n \n  kB\n \n \n \n ").concat(u.toFixed(2),"\n \n  ms\n \n \n \n ").concat((o/1024/(u/1e3)).toFixed(2),"\n \n  kB/s\n \n \n "))}var r=parseInt($("#run-count").val(),10),n={cache:$("#cache").is(":checked")};isNaN(r)||r<=0?alert("Number of runs must be a positive integer."):Runner.run(benchmarks,r,n,{readFile:function(e){return $.ajax({type:"GET",url:"https://raw.githubusercontent.com/peggyjs/peggy/".concat(BRANCH,"/benchmark/").concat(e),dataType:"text",async:!1}).responseText},testStart:function(){},testFinish:function(e,r,n,o){t("individual",r.title,"https://github.com/peggyjs/peggy/blob/".concat(BRANCH,"/benchmark/").concat(e.id,"/").concat(r.file),n,o)},benchmarkStart:function(t){e.append("\n \n \n ").concat(t.title,' \n \n "\n '))},benchmarkFinish:function(e,r,n){t("benchmark-total",e.title+" total",null,r,n)},start:function(){$("#run-count, #cache, #run").attr("disabled","disabled"),e.show(),$("#results-table tr").slice(1).remove()},finish:function(e,r){t("total","Total",null,e,r),$.scrollTo("max",{axis:"y",duration:500}),$("#run-count, #cache, #run").removeAttr("disabled")}})})),$(document).ready((function(){return $("#run").focus()})),browser_stub})); \ No newline at end of file diff --git a/docs/js/test-bundle.min.js b/docs/js/test-bundle.min.js index e9f2f3ed..1d1731a7 100644 --- a/docs/js/test-bundle.min.js +++ b/docs/js/test-bundle.min.js @@ -5,4 +5,4 @@ // Copyright (c) 2024- the Peggy authors // Licensed under the MIT License. -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("chai"),require("whatwg-url")):"function"==typeof define&&define.amd?define(["chai","whatwg-url"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).chai,e.whatwgURL)}(this,(function(require$$0,require$$0$1){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},GrammarLocation$5=function(){function e(e,t){this.source=e,this.start=t}return e.prototype.toString=function(){return String(this.source)},e.prototype.offset=function(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}},e.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},e.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},e}(),grammarLocation=GrammarLocation$5,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,GrammarLocation$4=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},GrammarError$5=function(e){function t(r,a,n){var o=e.call(this,r)||this;return setProtoOf(o,t.prototype),o.name="GrammarError",o.location=a,void 0===n&&(n=[]),o.diagnostics=n,o.stage=null,o.problems=[["error",r,a,n]],o}return __extends(t,e),t.prototype.toString=function(){var t=e.prototype.toString.call(this);this.location&&(t+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(t+="".concat(this.location.source,":")),t+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var r=0,a=this.diagnostics;r1&&e.delimiter&&n(e.delimiter)))},semantic_and:a,semantic_not:a,rule_ref:function(t){var r=asts$8.findRule(e,t.name);return r?n(r):void 0},library_ref:function(){return!1},literal:function(e){return""!==e.value},class:r,any:r});return n(t)},combine:function(e){return e.reduce((function(e,t){return e.topLevelInitializer=combinePossibleArrays(e.topLevelInitializer,t.topLevelInitializer),e.initializer=combinePossibleArrays(e.initializer,t.initializer),e.rules=e.rules.concat(t.rules),e}))}},asts_1=asts$8;function addImportedRules$1(e){for(var t=0,r=0,a=e.imports;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$a.build({rule:function(e){var t=void 0,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=o(e.expression),++r>6)throw new GrammarError$4("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:a,choice:function(e){return e.match=n(e.alternatives,!0)},action:a,sequence:function(e){return e.match=n(e.elements,!1)},labeled:a,text:a,simple_and:a,simple_not:function(e){return e.match=-o(e.expression)},optional:r,zero_or_more:r,one_or_more:a,repeated:function(e){var t=o(e.expression),r=e.delimiter?o(e.delimiter):NEVER_MATCH$1,a=e.min?e.min:e.max;return"constant"!==a.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&a.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===a.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&a.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&a.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===a.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:a,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?t.match=o(r):SOMETIMES_MATCH$1},library_ref:function(){return 0},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$5=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n1?f(SOMETIMES_MATCH,[op$2.IF_ERROR],l([op$2.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=u(t.env),a="sequence"!==e.expression.type||0===e.expression.elements.length,n=v(e.expression,{sp:t.sp+(a?1:0),env:r,action:e}),o=e.expression.match||0,s=a&&o!==NEVER_MATCH?i(!1,Object.keys(r),e):-1;return a?l([op$2.PUSH_CURR_POS],n,f(o,[op$2.IF_NOT_ERROR],l([op$2.LOAD_SAVED_POS,1],d(s,1,r,t.sp+2)),[]),[op$2.NIP]):n},sequence:function(e,t){return l([op$2.PUSH_CURR_POS],function t(r,a){if(r.length>0){var n=e.elements.length-r.length+1;return l(v(r[0],{sp:a.sp,env:a.env,pluck:a.pluck,action:null}),f(r[0].match||0,[op$2.IF_NOT_ERROR],t(r.slice(1),{sp:a.sp+1,env:a.env,pluck:a.pluck,action:a.action}),l(n>1?[op$2.POP_N,n]:[op$2.POP],[op$2.POP_CURR_POS],[op$2.PUSH_FAILED])))}if(a.pluck&&a.pluck.length>0)return l([op$2.PLUCK,e.elements.length+1,a.pluck.length],a.pluck.map((function(e){return a.sp-e})));if(a.action){var o=i(!1,Object.keys(a.env),a.action);return l([op$2.LOAD_SAVED_POS,e.elements.length],d(o,e.elements.length+1,a.env,a.sp))}return l([op$2.WRAP,e.elements.length],[op$2.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,a){var n=a.env,o=e.label,s=a.sp+1;o&&(n=u(a.env),a.env[o]=s),e.pick&&a.pluck.push(s);var c=v(e.expression,{sp:a.sp,env:n,action:null});return o&&e.labelLocation&&t&&"source-and-map"===t.output?l([op$2.SOURCE_MAP_LABEL_PUSH,s,r.add(o),p(e.labelLocation)],c,[op$2.SOURCE_MAP_LABEL_POP,s]):c},text:function(e,t){return l([op$2.PUSH_CURR_POS],v(e.expression,{sp:t.sp+1,env:u(t.env),action:null}),f(e.match||0,[op$2.IF_NOT_ERROR],l([op$2.POP],[op$2.TEXT]),[op$2.NIP]))},simple_and:function(e,t){return m(e.expression,!1,t)},simple_not:function(e,t){return m(e.expression,!0,t)},optional:function(e,t){return l(v(e.expression,{sp:t.sp,env:u(t.env),action:null}),f(-(e.expression.match||0),[op$2.IF_ERROR],l([op$2.POP],[op$2.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:u(t.env),action:null});return l([op$2.PUSH_EMPTY_ARRAY],r,$(r),[op$2.POP])},one_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:u(t.env),action:null});return l([op$2.PUSH_EMPTY_ARRAY],r,f(e.expression.match||0,[op$2.IF_NOT_ERROR],l($(r),[op$2.POP]),l([op$2.POP],[op$2.POP],[op$2.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,a="constant"!==r.type||r.value>0,n="constant"!==e.max.type&&null!==e.max.value,o=a?2:1,s=e.min?h(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},c=h(e.max,t.env,s.sp,o),i=v(e.expression,{sp:c.sp+o,env:u(t.env),action:null}),p=null!==e.delimiter?v(e.expression,{sp:c.sp+o+1,env:u(t.env),action:null}):i,d=function(e,t,r,a,n){return e?l([op$2.PUSH_CURR_POS],v(e,{sp:a.sp+n+1,env:u(a.env),action:null}),f(e.match||0,[op$2.IF_NOT_ERROR],l([op$2.POP],r,f(-t,[op$2.IF_ERROR],[op$2.POP,op$2.POP_CURR_POS,op$2.PUSH_FAILED],[op$2.NIP])),[op$2.NIP])):r}(e.delimiter,e.expression.match||0,p,t,o),m=x(d,e.max),g=n?x(i,e.max):i,b=l(a?[op$2.PUSH_CURR_POS]:[],[op$2.PUSH_EMPTY_ARRAY],g,$(m),[op$2.POP]);return l(s.pre,c.pre,a?function(e,t){var r="constant"===t.type?[op$2.IF_LT,t.value]:[op$2.IF_LT_DYNAMIC,t.sp||0];return l(e,f(SOMETIMES_MATCH,r,[op$2.POP,op$2.POP_CURR_POS,op$2.PUSH_FAILED],[op$2.NIP]))}(b,r):b,c.post,s.post)},group:function(e,t){return v(e.expression,{sp:t.sp,env:u(t.env),action:null})},semantic_and:function(e,t){return g(e,!1,t)},semantic_not:function(e,t){return g(e,!0,t)},rule_ref:function(t){return[op$2.RULE,asts$6.indexOfRule(e,t.name)]},library_ref:function(e){return[op$2.LIBRARY_RULE,e.libraryNumber,o.add(e.name)]},literal:function(e){if(e.value.length>0){var t=e.match||0,a=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?r.add(e.ignoreCase?e.value.toLowerCase():e.value):-1,o=t!==ALWAYS_MATCH?n.add({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):-1;return f(t,e.ignoreCase?[op$2.MATCH_STRING_IC,a]:[op$2.MATCH_STRING,a],e.ignoreCase?[op$2.ACCEPT_N,e.value.length]:[op$2.ACCEPT_STRING,a],[op$2.FAIL,o])}return[op$2.PUSH_EMPTY_STRING]},class:function(e){var t=e.match||0,r=t===SOMETIMES_MATCH?a.add(e):-1,o=t!==ALWAYS_MATCH?n.add({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):-1;return f(t,[op$2.MATCH_CHAR_CLASS,r],[op$2.ACCEPT_N,1],[op$2.FAIL,o])},any:function(e){var t=e.match||0,r=t!==ALWAYS_MATCH?n.add({type:"any"}):-1;return f(t,[op$2.MATCH_ANY],[op$2.ACCEPT_N,1],[op$2.FAIL,r])}},t&&"source-and-map"===t.output&&Object.keys(b).forEach((function(e){var t=b[e];b[e]=function(e){for(var r=[],a=1;a>>=VLQ_BASE_SHIFT$1,a>0&&(t|=VLQ_CONTINUATION_BIT$1),r+=base64$5.encode(t)}while(a>0);return r};var util$8={};function getArg$1(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$8.getArg=getArg$1;const supportsNullProto$1=!("__proto__"in Object.create(null));function identity$1(e){return e}function toSetString$1(e){return isProtoString$1(e)?"$"+e:e}function fromSetString$1(e){return isProtoString$1(e)?e.slice(1):e}function isProtoString$1(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp$1(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated$1(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp$1(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp$1(e.name,t.name)))))}util$8.toSetString=supportsNullProto$1?identity$1:toSetString$1,util$8.fromSetString=supportsNullProto$1?identity$1:fromSetString$1,util$8.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated$1;const PROTOCOL$1="http:",PROTOCOL_AND_HOST$1=`${PROTOCOL$1}//host`;function createSafeHandler$1(e){return t=>{const r=getURLType$1(t),a=buildSafeBase$1(t),n=new URL(t,a);e(n);const o=n.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL$1.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST$1.length):computeRelativeURL$1(a,o)}}function withBase$1(e,t){return new URL(e,t).toString()}function buildUniqueSegment$1(e,t){let r=0;for(;;){const a=e+r++;if(-1===t.indexOf(a))return a}}function buildSafeBase$1(e){const t=e.split("..").length-1,r=buildUniqueSegment$1("p",e);let a=`${PROTOCOL_AND_HOST$1}/`;for(let e=0;e0&&!a[a.length-1]&&a.pop();r.length>0&&a.length>0&&r[0]===a[0];)r.shift(),a.shift();return a.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory$1=createSafeHandler$1((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize$1=createSafeHandler$1((e=>{}));function join$1(e,t){const r=getURLType$1(t),a=getURLType$1(e);if(e=ensureDirectory$1(e),"absolute"===r)return withBase$1(t,void 0);if("absolute"===a)return withBase$1(t,e);if("scheme-relative"===r)return normalize$1(t);if("scheme-relative"===a)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL$1.length);if("path-absolute"===r)return normalize$1(t);if("path-absolute"===a)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL_AND_HOST$1.length);const n=buildSafeBase$1(t+e);return computeRelativeURL$1(n,withBase$1(t,withBase$1(e,n)))}function relative$1(e,t){const r=relativeIfPossible$1(e,t);return"string"==typeof r?r:normalize$1(t)}function relativeIfPossible$1(e,t){if(getURLType$1(e)!==getURLType$1(t))return null;const r=buildSafeBase$1(e+t),a=new URL(e,r),n=new URL(t,r);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==a.protocol||n.user!==a.user||n.password!==a.password||n.hostname!==a.hostname||n.port!==a.port?null:computeRelativeURL$1(a,n)}util$8.normalize=normalize$1,util$8.join=join$1,util$8.relative=relative$1;var arraySet$1={};let ArraySet$4=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const a=new e;for(let e=0,n=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||a==r&&o>=n||util$7.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$3=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter$1(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$7.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList$1.MappingList=MappingList$3;const base64VLQ$1=base64Vlq$1,util$6=util$8,ArraySet$3=arraySet$1.ArraySet,MappingList$2=mappingList$1.MappingList;let SourceMapGenerator$3=class e{constructor(e){e||(e={}),this._file=util$6.getArg(e,"file",null),this._sourceRoot=util$6.getArg(e,"sourceRoot",null),this._skipValidation=util$6.getArg(e,"skipValidation",!1),this._sources=new ArraySet$3,this._names=new ArraySet$3,this._mappings=new MappingList$2,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,a=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$6.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)})),t.sources.forEach((function(e){let n=e;null!=r&&(n=util$6.relative(r,e)),a._sources.has(n)||a._sources.add(n);const o=t.sourceContentFor(e);null!=o&&a.setSourceContent(e,o)})),a}addMapping(e){const t=util$6.getArg(e,"generated"),r=util$6.getArg(e,"original",null);let a=util$6.getArg(e,"source",null),n=util$6.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,n),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r&&r.line,originalColumn:r&&r.column,source:a,name:n})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$6.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$6.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$6.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let a=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.');a=e.file}const n=this._sourceRoot;null!=n&&(a=util$6.relative(n,a));const o=this._mappings.toArray().length>0?new ArraySet$3:this._sources,s=new ArraySet$3;this._mappings.unsortedForEach((function(t){if(t.source===a&&null!=t.originalLine){const a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=util$6.join(r,t.source)),null!=n&&(t.source=util$6.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}const c=t.source;null==c||o.has(c)||o.add(c);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=util$6.join(r,t)),null!=n&&(t=util$6.relative(n,t)),this.setSourceContent(t,a))}),this)}_validateMapping(e,t,r,a){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&&!r&&!a);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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:a}))}_serializeMappings(){let e,t,r,a,n=0,o=1,s=0,c=0,i=0,p=0,u="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$6.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ$1.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=base64VLQ$1.encode(a-p),p=a,e+=base64VLQ$1.encode(t.originalLine-1-c),c=t.originalLine-1,e+=base64VLQ$1.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ$1.encode(r-i),i=r)),u+=e}return u}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$6.relative(t,e));const r=util$6.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$3.prototype._version=3,sourceMapGenerator$1.SourceMapGenerator=SourceMapGenerator$3;var sourceNode$1={};const SourceMapGenerator$2=sourceMapGenerator$1.SourceMapGenerator,util$5=util$8,REGEX_NEWLINE$1=/(\r?\n)/,NEWLINE_CODE$1=10,isSourceNode$1="$$$isSourceNode$$$";let SourceNode$4=class e{constructor(e,t,r,a,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==n?null:n,this[isSourceNode$1]=!0,null!=a&&this.add(a)}static fromStringWithSourceMap(t,r,a){const n=new e,o=t.split(REGEX_NEWLINE$1);let s=0;const c=function(){return e()+(e()||"");function e(){return s=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode$1]&&"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 r=0,a=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.sourceNode=function(e,t,r){var a=GrammarLocation$3.offsetStart(e);return new SourceNode$3(a.line,a.column?a.column-1:null,String(e.source),t,r)},e.prototype.push=function(t){++this.sp>this.maxSp&&(this.maxSp=this.sp);var r=this.labels[this.sp],a=[this.name(this.sp)," = ",t,";"];if(r){if(this.sourceMapStack.length){var n=e.sourceNode(r.location,a.splice(0,2),r.label),o=this.sourceMapPopInternal(),s=o.parts,c=o.location,i=c.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop();if(!e)throw new RangeError("Rule '".concat(this.ruleName,"': Attempting to pop an empty source map stack.\nBytecode: ").concat(this.bytecode));var t=e[0],r=e[1],a=e[2],n=t.splice(r).map((function(e){return e instanceof SourceNode$3?e:e+"\n"}));if(n.length){var o=GrammarLocation$3.offsetStart(a);t.push(new SourceNode$3(o.line,o.column-1,String(a.source),n))}return{parts:t,location:a}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],n+=t[(3&e[o])<<4|e[o+1]>>4],n+=t[(15&e[o+1])<<2|e[o+2]>>6],n+=t[63&e[o+2]];return 1===r?(n+=t[e[a]>>2],n+=t[(3&e[a])<<4],n+="=="):2===r&&(n+=t[e[a]>>2],n+=t[(3&e[a])<<4|e[a+1]>>4],n+=t[(15&e[a+1])<<2],n+="="),n}utils$1.hex=hex$1,utils$1.stringEscape=stringEscape$2,utils$1.regexpClassEscape=regexpClassEscape$2,utils$1.base64=base64$4;var OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,a){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=t,n.found=r,n.location=a,n.name="SyntaxError",n}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,a={},n=(t=void 0!==t?t:{}).grammarSource,o={Grammar:Br,ImportsAndSource:function(){var t,r,n;return t=Ar,r=function(){var t,r;return t=Ar,r=Ar,Mr(),r=e.substring(r,Ar),yr=t,At(r)}(),n=function(){var t,r,n,o;for(t=Ar,r=Ar,n=[],e.length>Ar?(o=e.charAt(Ar),Ar++):(o=a,0===kr&&Or(ie));o!==a;)n.push(o),e.length>Ar?(o=e.charAt(Ar),Ar++):(o=a,0===kr&&Or(ie));return r=e.substring(r,Ar),yr=t,vt(r)}(),yr=t,bt(r,n)}},s=Br,c="import",i=";",p=",",u="*",l="as",f="{",d="}",m="from",g="=",$="/",h="@",x=":",b="|",v="..",A="(",y=")",S=".",_="\n",E="\r\n",k="/*",T="*/",C="//",w="\\",P="i",R='"',L="'",F="[",O="^",B="]",M="-",D="0",I="b",j="f",N="n",U="r",q="t",G="v",H="x",z="u",W=/^[!$&]/,V=/^[*-+?]/,Y=/^[!&]/,Q=/^[\t\v-\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/,J=/^[\n\r\u2028\u2029]/,X=/^[\r\u2028-\u2029]/,K=/^[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Z=/^[$0-9_\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u09E6-\u09EF\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B62-\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18-\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F3F\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19D9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u203F-\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099-\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F1\uA900-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5-\uAAF6\uABE3-\uABEA\uABEC-\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33-\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/,ee=/^[\n\r"\\\u2028-\u2029]/,te=/^[\n\r'\\\u2028-\u2029]/,re=/^[\n\r\\-\]\u2028-\u2029]/,ae=/^["'\\]/,ne=/^[0-9ux]/,oe=/^[0-9]/,se=/^[0-9a-f]/i,ce=/^[{}]/,ie={type:"any"},pe=wr("import",!1),ue=wr(";",!1),le=wr(",",!1),fe=wr("*",!1),de=wr("as",!1),me=wr("{",!1),ge=wr("}",!1),$e=wr("from",!1),he=wr("=",!1),xe=wr("/",!1),be=wr("@",!1),ve=wr(":",!1),Ae=Pr(["!","$","&"],!1,!1),ye=Pr([["*","+"],"?"],!1,!1),Se=wr("|",!1),_e=wr("..",!1),Ee=wr("(",!1),ke=wr(")",!1),Te=wr(".",!1),Ce=Pr(["!","&"],!1,!1),we=Rr("whitespace"),Pe=Pr(["\t",["\v","\f"]," "," "," ",[" "," "]," "," "," ","\ufeff"],!1,!1),Re=Pr(["\n","\r","\u2028","\u2029"],!1,!1),Le=Rr("end of line"),Fe=wr("\n",!1),Oe=wr("\r\n",!1),Be=Pr(["\r",["\u2028","\u2029"]],!1,!1),Me=Rr("comment"),De=wr("/*",!1),Ie=wr("*/",!1),je=wr("//",!1),Ne=Rr("identifier"),Ue=Pr([["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԯ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏽ"],["ᏸ","ᏽ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚝ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","Ɬ"],["Ʞ","ꞷ"],["ꟷ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꧠ","ꧤ"],["ꧦ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꬰ","ꭚ"],["ꭜ","ꭥ"],["ꭰ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),qe=wr("\\",!1),Ge=Pr(["$",["0","9"],"_",["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","٩"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],["۰","۹"],"ܑ",["ܰ","݊"],["ަ","ް"],["߀","߉"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ः"],["ऺ","़"],["ा","ॏ"],["॑","ॗ"],["ॢ","ॣ"],["०","९"],["ঁ","ঃ"],"়",["া","ৄ"],["ে","ৈ"],["ো","্"],"ৗ",["ৢ","ৣ"],["০","৯"],["ਁ","ਃ"],"਼",["ਾ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["੦","ੱ"],"ੵ",["ઁ","ઃ"],"઼",["ા","ૅ"],["ે","ૉ"],["ો","્"],["ૢ","ૣ"],["૦","૯"],["ଁ","ଃ"],"଼",["ା","ୄ"],["େ","ୈ"],["ୋ","୍"],["ୖ","ୗ"],["ୢ","ୣ"],["୦","୯"],"ஂ",["ா","ூ"],["ெ","ை"],["ொ","்"],"ௗ",["௦","௯"],["ఀ","ః"],["ా","ౄ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],["౦","౯"],["ಁ","ಃ"],"಼",["ಾ","ೄ"],["ೆ","ೈ"],["ೊ","್"],["ೕ","ೖ"],["ೢ","ೣ"],["೦","೯"],["ഁ","ഃ"],["ാ","ൄ"],["െ","ൈ"],["ൊ","്"],"ൗ",["ൢ","ൣ"],["൦","൯"],["ං","ඃ"],"්",["ා","ු"],"ූ",["ෘ","ෟ"],["෦","෯"],["ෲ","ෳ"],"ั",["ิ","ฺ"],["็","๎"],["๐","๙"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["໐","໙"],["༘","༙"],["༠","༩"],"༵","༷","༹",["༾","༿"],["ཱ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ါ","ှ"],["၀","၉"],["ၖ","ၙ"],["ၞ","ၠ"],["ၢ","ၤ"],["ၧ","ၭ"],["ၱ","ၴ"],["ႂ","ႍ"],["ႏ","ႝ"],["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","៓"],"៝",["០","៩"],["᠋","᠍"],["᠐","᠙"],"ᢩ",["ᤠ","ᤫ"],["ᤰ","᤻"],["᥆","᥏"],["᧐","᧙"],["ᨗ","ᨛ"],["ᩕ","ᩞ"],["᩠","᩼"],["᩿","᪉"],["᪐","᪙"],["᪰","᪽"],["ᬀ","ᬄ"],["᬴","᭄"],["᭐","᭙"],["᭫","᭳"],["ᮀ","ᮂ"],["ᮡ","ᮭ"],["᮰","᮹"],["᯦","᯳"],["ᰤ","᰷"],["᱀","᱉"],["᱐","᱙"],["᳐","᳒"],["᳔","᳨"],"᳭",["ᳲ","᳴"],["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["‌","‍"],["‿","⁀"],"⁔",["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〯"],["゙","゚"],["꘠","꘩"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠣ","ꠧ"],["ꢀ","ꢁ"],["ꢴ","꣄"],["꣐","꣙"],["꣠","꣱"],["꤀","꤉"],["ꤦ","꤭"],["ꥇ","꥓"],["ꦀ","ꦃ"],["꦳","꧀"],["꧐","꧙"],"ꧥ",["꧰","꧹"],["ꨩ","ꨶ"],"ꩃ",["ꩌ","ꩍ"],["꩐","꩙"],["ꩻ","ꩽ"],"ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫫ","ꫯ"],["ꫵ","꫶"],["ꯣ","ꯪ"],["꯬","꯭"],["꯰","꯹"],"ﬞ",["︀","️"],["︠","︯"],["︳","︴"],["﹍","﹏"],["0","9"],"_"],!1,!1),He=Rr("literal"),ze=wr("i",!1),We=Rr("string"),Ve=wr('"',!1),Ye=wr("'",!1),Qe=Pr(["\n","\r",'"',"\\",["\u2028","\u2029"]],!1,!1),Je=Pr(["\n","\r","'","\\",["\u2028","\u2029"]],!1,!1),Xe=Rr("character class"),Ke=wr("[",!1),Ze=wr("^",!1),et=wr("]",!1),tt=wr("-",!1),rt=Pr(["\n","\r",["\\","]"],["\u2028","\u2029"]],!1,!1),at=wr("0",!1),nt=Pr(['"',"'","\\"],!1,!1),ot=wr("b",!1),st=wr("f",!1),ct=wr("n",!1),it=wr("r",!1),pt=wr("t",!1),ut=wr("v",!1),lt=Pr([["0","9"],"u","x"],!1,!1),ft=wr("x",!1),dt=wr("u",!1),mt=Pr([["0","9"]],!1,!1),gt=Pr([["0","9"],["a","f"]],!1,!0),$t=Rr("code block"),ht=Pr(["{","}"],!1,!1),xt=function(e,t,r,a){return{type:"grammar",imports:e,topLevelInitializer:t,initializer:r,rules:a,location:Tr()}},bt=function(e,t){return[e,t]},vt=function(e){return{type:"top_level_initializer",code:e,codeLocation:Tr()}},At=function(e){return{type:"top_level_initializer",code:e,codeLocation:Tr()}},yt=function(e,t){return{type:"grammar_import",what:e,from:t,location:Tr()}},St=function(e){return{type:"grammar_import",what:[],from:e,location:Tr()}},_t=function(e,t){return t?Array.isArray(t)?(t.unshift(e),t):[e,t]:[e]},Et=function(e){return{type:"import_binding_default",binding:e[0],location:e[1]}},kt=function(e){return[{type:"import_binding_all",binding:e[0],location:e[1]}]},Tt=function(){return[]},Ct=function(e,t){return{type:"import_binding_rename",rename:e[0],renameLocation:e[1],binding:t[0],location:t[1]}},wt=function(e){return{type:"import_binding",binding:e[0],location:e[1]}},Pt=function(e){return{type:"import_module_specifier",module:e,location:Tr()}},Rt=function(e){return[e,Tr()]},Lt=function(e){return[e,Tr()]},Ft=function(e){return Sa.indexOf(e[0])>=0&&Cr("Binding identifier can't be a reserved word \"".concat(e[0],'"'),e[1]),e[0]},Ot=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Tr()}},Bt=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Tr()}},Mt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:Tr()}:r,location:Tr()}},Dt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:Tr()}:e},It=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:Tr()}:e},jt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:Tr()}:e},Nt=function(e,t,r){return r.type.startsWith("semantic_")&&Cr('"@" 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:r,location:Tr()}},Ut=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:Tr()}},qt=function(){return Tr()},Gt=function(e){return Sa.indexOf(e[0])>=0&&Cr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Ht=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:Tr()}},zt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:Tr()}},Wt=function(e,t,r){var a=t[0],n=t[1];return"constant"===n.type&&0===n.value&&Cr("The maximum count of repetitions of the rule must be > 0",n.location),{type:"repeated",min:a,max:n,expression:e,delimiter:r,location:Tr()}},Vt=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},Yt=function(e){return[null,e]},Qt=function(e){return{type:"constant",value:e,location:Tr()}},Jt=function(e){return{type:"variable",value:e[0],location:Tr()}},Xt=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:Tr()}},Kt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Tr()}:e},Zt=function(e,t){return{type:"library_ref",name:t[0],library:e[0],libraryNumber:-1,location:Tr()}},er=function(e){return{type:"rule_ref",name:e[0],location:Tr()}},tr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:Tr()}},rr=function(e,t){return[e+t.join(""),Tr()]},ar=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:Tr()}},nr=function(e){return e.join("")},or=function(e){return e.join("")},sr=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:Tr()}},cr=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&Cr("Invalid character range: "+e.substring(yr,Ar)+"."),[t,r]},ir=function(){return""},pr=function(){return"\0"},ur=function(){return"\b"},lr=function(){return"\f"},fr=function(){return"\n"},dr=function(){return"\r"},mr=function(){return"\t"},gr=function(){return"\v"},$r=function(e){return String.fromCharCode(parseInt(e,16))},hr=function(e){return String.fromCharCode(parseInt(e,16))},xr=function(){return{type:"any",location:Tr()}},br=function(e){return[e,Tr()]},vr=function(e){return parseInt(e,10)},Ar=0|t.peg$currPos,yr=Ar,Sr=[{line:1,column:1}],_r=Ar,Er=t.peg$maxFailExpected||[],kr=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=o[t.startRule]}function Tr(){return Fr(yr,Ar)}function Cr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Fr(yr,Ar))}function wr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Pr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Rr(e){return{type:"other",description:e}}function Lr(t){var r,a=Sr[t];if(a)return a;if(t>=Sr.length)r=Sr.length-1;else for(r=t;!Sr[--r];);for(a={line:(a=Sr[r]).line,column:a.column};r_r&&(_r=Ar,Er=[]),Er.push(e))}function Br(){var t,r,n,o,s,c,i,p;if(t=Ar,r=Mr(),n=Ar,o=Aa(),s=function(){var t,r,n,o;return t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a&&(n=ba())!==a?(125===e.charCodeAt(Ar)?(o=d,Ar++):(o=a,0===kr&&Or(ge)),o!==a&&ya()!==a?(yr=t,t=Ot(n)):(Ar=t,t=a)):(Ar=t,t=a),t}(),s!==a?n=s:(Ar=n,n=a),n===a&&(n=null),o=Ar,s=Aa(),c=function(){var e,t;return e=Ar,(t=ba())!==a&&ya()!==a?(yr=e,e=Bt(t)):(Ar=e,e=a),e}(),c!==a?o=c:(Ar=o,o=a),o===a&&(o=null),s=Aa(),c=[],i=Ar,(p=Gr())!==a?(Aa(),i=p):(Ar=i,i=a),i!==a)for(;i!==a;)c.push(i),i=Ar,(p=Gr())!==a?(Aa(),i=p):(Ar=i,i=a);else c=a;return c!==a?(yr=t,t=xt(r,n,o,c)):(Ar=t,t=a),t}function Mr(){var e,t;for(e=[],t=Dr();t!==a;)e.push(t),t=Dr();return e}function Dr(){var t,r,n,o,s,u,l,f;return t=Ar,Aa(),e.substr(Ar,6)===c?(r=c,Ar+=6):(r=a,0===kr&&Or(pe)),r!==a?(Aa(),n=function(){var t,r,n,o,s;return(t=Ir())===a&&(t=jr())===a&&(t=Ar,r=function(){var e,t;return e=Ar,(t=qr())!==a&&(yr=e,t=Et(t)),e=t}(),r!==a?(n=Ar,Aa(),44===e.charCodeAt(Ar)?(o=p,Ar++):(o=a,0===kr&&Or(le)),o!==a?(Aa(),(s=Ir())===a&&(s=jr()),s!==a?n=s:(Ar=n,n=a)):(Ar=n,n=a),n===a&&(n=null),yr=t,t=_t(r,n)):(Ar=t,t=a)),t}(),n!==a?(o=Aa(),s=function(){var t,r,n;return t=Ar,e.substr(Ar,4)===m?(r=m,Ar+=4):(r=a,0===kr&&Or($e)),r!==a?(Aa(),(n=Ur())!==a?t=n:(Ar=t,t=a)):(Ar=t,t=a),t}(),s!==a?(u=Ar,l=Aa(),59===e.charCodeAt(Ar)?(f=i,Ar++):(f=a,0===kr&&Or(ue)),f!==a?u=l=[l,f]:(Ar=u,u=a),u===a&&(u=null),yr=t,t=yt(n,s)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,Aa(),e.substr(Ar,6)===c?(r=c,Ar+=6):(r=a,0===kr&&Or(pe)),r!==a?(Aa(),(n=Ur())!==a?(o=Ar,s=Aa(),59===e.charCodeAt(Ar)?(u=i,Ar++):(u=a,0===kr&&Or(ue)),u!==a?o=s=[s,u]:(Ar=o,o=a),o===a&&(o=null),yr=t,t=St(n)):(Ar=t,t=a)):(Ar=t,t=a)),t}function Ir(){var t,r,n,o;return t=Ar,42===e.charCodeAt(Ar)?(r=u,Ar++):(r=a,0===kr&&Or(fe)),r!==a?(Aa(),e.substr(Ar,2)===l?(n=l,Ar+=2):(n=a,0===kr&&Or(de)),n!==a?(Aa(),(o=qr())!==a?(yr=t,t=kt(o)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t}function jr(){var t,r,n,o,s;return t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a?(Aa(),125===e.charCodeAt(Ar)?(n=d,Ar++):(n=a,0===kr&&Or(ge)),n!==a?(yr=t,t=Tt()):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a?(Aa(),n=function(){var t,r,n,o,s,c;for(t=Ar,r=[],n=Nr();n!==a;)r.push(n),n=Ar,o=Ar,s=Aa(),44===e.charCodeAt(Ar)?(c=p,Ar++):(c=a,0===kr&&Or(le)),c!==a?o=s=[s,c,Aa()]:(Ar=o,o=a),o!==a&&(o=Nr())===a?(Ar=n,n=a):n=o;return r.length<1?(Ar=t,t=a):t=r,t}(),n!==a?(Aa(),o=Ar,44===e.charCodeAt(Ar)?(s=p,Ar++):(s=a,0===kr&&Or(le)),s!==a?o=s=[s,Aa()]:(Ar=o,o=a),o===a&&(o=null),125===e.charCodeAt(Ar)?(s=d,Ar++):(s=a,0===kr&&Or(ge)),s!==a?t=n:(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a)),t}function Nr(){var t,r,n,o;return t=Ar,r=function(){var e,t;return(e=oa())===a&&(e=Ar,(t=ia())!==a&&(yr=e,t=Lt(t)),e=t),e}(),r!==a?(Aa(),e.substr(Ar,2)===l?(n=l,Ar+=2):(n=a,0===kr&&Or(de)),n!==a?(Aa(),(o=qr())!==a?(yr=t,t=Ct(r,o)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,(r=qr())!==a&&(yr=t,r=wt(r)),t=r),t}function Ur(){var e,t;return e=Ar,(t=ia())!==a&&(yr=e,t=Pt(t)),t}function qr(){var e,t;return e=Ar,t=function(){var e,t;return e=Ar,(t=oa())!==a&&(yr=e,t=Ft(t)),e=t}(),t!==a&&(yr=e,t=Rt(t)),t}function Gr(){var t,r,n,o,s;return t=Ar,(r=oa())!==a?(Aa(),n=Ar,(o=ia())!==a?(Aa(),n=o):(Ar=n,n=a),n===a&&(n=null),61===e.charCodeAt(Ar)?(o=g,Ar++):(o=a,0===kr&&Or(he)),o!==a?(Aa(),(s=Hr())!==a&&ya()!==a?(yr=t,t=Mt(r,n,s)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t}function Hr(){var t,r,n,o,s,c;if(t=Ar,(r=zr())!==a){for(n=[],o=Ar,Aa(),47===e.charCodeAt(Ar)?(s=$,Ar++):(s=a,0===kr&&Or(xe)),s!==a?(Aa(),(c=zr())!==a?o=c:(Ar=o,o=a)):(Ar=o,o=a);o!==a;)n.push(o),o=Ar,Aa(),47===e.charCodeAt(Ar)?(s=$,Ar++):(s=a,0===kr&&Or(xe)),s!==a?(Aa(),(c=zr())!==a?o=c:(Ar=o,o=a)):(Ar=o,o=a);yr=t,t=Dt(r,n)}else Ar=t,t=a;return t}function zr(){var e,t,r,n;return e=Ar,t=function(){var e,t,r,n,o;if(e=Ar,(t=Wr())!==a){for(r=[],n=Ar,Aa(),(o=Wr())!==a?n=o:(Ar=n,n=a);n!==a;)r.push(n),n=Ar,Aa(),(o=Wr())!==a?n=o:(Ar=n,n=a);yr=e,e=jt(t,r)}else Ar=e,e=a;return e}(),t!==a?(r=Ar,Aa(),(n=ba())!==a?r=n:(Ar=r,r=a),r===a&&(r=null),yr=e,e=It(t,r)):(Ar=e,e=a),e}function Wr(){var t,r,n,o;return t=Ar,r=function(){var t,r;return t=Ar,64===e.charCodeAt(Ar)?(r=h,Ar++):(r=a,0===kr&&Or(be)),r!==a&&(yr=t,r=qt()),t=r}(),r!==a?((n=Vr())===a&&(n=null),(o=Yr())!==a?(yr=t,t=Nt(r,n,o)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,(r=Vr())!==a&&(n=Yr())!==a?(yr=t,t=Ut(r,n)):(Ar=t,t=a),t===a&&(t=Yr())),t}function Vr(){var t,r,n;return t=Ar,(r=oa())!==a?(Aa(),58===e.charCodeAt(Ar)?(n=x,Ar++):(n=a,0===kr&&Or(ve)),n!==a?(Aa(),yr=t,t=Gt(r)):(Ar=t,t=a)):(Ar=t,t=a),t}function Yr(){var t,r,n;return t=Ar,r=function(){var t;return t=e.charAt(Ar),W.test(t)?Ar++:(t=a,0===kr&&Or(Ae)),t}(),r!==a?(Aa(),(n=Qr())!==a?(yr=t,t=Ht(r,n)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Qr()),t}function Qr(){var t,r,n;return t=Ar,(r=Xr())!==a?(Aa(),n=function(){var t;return t=e.charAt(Ar),V.test(t)?Ar++:(t=a,0===kr&&Or(ye)),t}(),n!==a?(yr=t,t=zt(r,n)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=function(){var t,r,n,o,s,c,i;return t=Ar,(r=Xr())!==a?(Aa(),124===e.charCodeAt(Ar)?(n=b,Ar++):(n=a,0===kr&&Or(Se)),n!==a?(Aa(),o=function(){var t,r,n,o;return t=Ar,(r=Jr())===a&&(r=null),Aa(),e.substr(Ar,2)===v?(n=v,Ar+=2):(n=a,0===kr&&Or(_e)),n!==a?(Aa(),(o=Jr())===a&&(o=null),yr=t,t=Vt(r,o)):(Ar=t,t=a),t===a&&(t=Ar,(r=Jr())!==a&&(yr=t,r=Yt(r)),t=r),t}(),o!==a?(Aa(),s=Ar,44===e.charCodeAt(Ar)?(c=p,Ar++):(c=a,0===kr&&Or(le)),c!==a?(Aa(),(i=Hr())!==a?(Aa(),s=i):(Ar=s,s=a)):(Ar=s,s=a),s===a&&(s=null),124===e.charCodeAt(Ar)?(c=b,Ar++):(c=a,0===kr&&Or(Se)),c!==a?(yr=t,t=Wt(r,o,s)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t}(),t===a&&(t=Xr())),t}function Jr(){var t,r;return t=Ar,r=function(){var t,r,n,o;if(t=Ar,r=Ar,n=[],(o=ha())!==a)for(;o!==a;)n.push(o),o=ha();else n=a;return(r=n!==a?e.substring(r,Ar):n)!==a&&(yr=t,r=vr(r)),t=r}(),r!==a&&(yr=t,r=Qt(r)),(t=r)===a&&(t=Ar,(r=oa())!==a&&(yr=t,r=Jt(r)),(t=r)===a&&(t=Ar,(r=ba())!==a&&(yr=t,r=Xt(r)),t=r)),t}function Xr(){var t,r,n,o;return t=function(){var t,r,n;return kr++,t=Ar,(r=ia())!==a?(105===e.charCodeAt(Ar)?(n=P,Ar++):(n=a,0===kr&&Or(ze)),n===a&&(n=null),yr=t,t=ar(r,n)):(Ar=t,t=a),kr--,t===a&&(r=a,0===kr&&Or(He)),t}(),t===a&&(t=function(){var t,r,n,o,s,c;if(kr++,t=Ar,91===e.charCodeAt(Ar)?(r=F,Ar++):(r=a,0===kr&&Or(Ke)),r!==a){for(94===e.charCodeAt(Ar)?(n=O,Ar++):(n=a,0===kr&&Or(Ze)),n===a&&(n=null),o=[],(s=la())===a&&(s=fa());s!==a;)o.push(s),(s=la())===a&&(s=fa());93===e.charCodeAt(Ar)?(s=B,Ar++):(s=a,0===kr&&Or(et)),s!==a?(105===e.charCodeAt(Ar)?(c=P,Ar++):(c=a,0===kr&&Or(ze)),c===a&&(c=null),yr=t,t=sr(n,o,c)):(Ar=t,t=a)}else Ar=t,t=a;return kr--,t===a&&(r=a,0===kr&&Or(Xe)),t}(),t===a&&(t=function(){var t,r;return t=Ar,46===e.charCodeAt(Ar)?(r=S,Ar++):(r=a,0===kr&&Or(Te)),r!==a&&(yr=t,r=xr()),t=r}(),t===a&&(t=function(){var t,r,n,o,s,c,i;return t=Ar,(r=oa())!==a?(46===e.charCodeAt(Ar)?(n=S,Ar++):(n=a,0===kr&&Or(Te)),n!==a&&(o=oa())!==a?(yr=t,t=Zt(r,o)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,(r=oa())!==a?(n=Ar,kr++,o=Ar,s=Aa(),c=Ar,(i=ia())!==a?c=i=[i,Aa()]:(Ar=c,c=a),c===a&&(c=null),61===e.charCodeAt(Ar)?(i=g,Ar++):(i=a,0===kr&&Or(he)),i!==a?o=s=[s,c,i]:(Ar=o,o=a),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a?(yr=t,t=er(r)):(Ar=t,t=a)):(Ar=t,t=a)),t}(),t===a&&(t=function(){var t,r,n;return t=Ar,r=function(){var t;return t=e.charAt(Ar),Y.test(t)?Ar++:(t=a,0===kr&&Or(Ce)),t}(),r!==a?(Aa(),(n=ba())!==a?(yr=t,t=tr(r,n)):(Ar=t,t=a)):(Ar=t,t=a),t}(),t===a&&(t=Ar,40===e.charCodeAt(Ar)?(r=A,Ar++):(r=a,0===kr&&Or(Ee)),r!==a?(Aa(),(n=Hr())!==a?(Aa(),41===e.charCodeAt(Ar)?(o=y,Ar++):(o=a,0===kr&&Or(ke)),o!==a?(yr=t,t=Kt(n)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a)))))),t}function Kr(){var t;return e.length>Ar?(t=e.charAt(Ar),Ar++):(t=a,0===kr&&Or(ie)),t}function Zr(){var t;return kr++,t=e.charAt(Ar),Q.test(t)?Ar++:(t=a,0===kr&&Or(Pe)),kr--,t===a&&0===kr&&Or(we),t}function ea(){var t;return t=e.charAt(Ar),J.test(t)?Ar++:(t=a,0===kr&&Or(Re)),t}function ta(){var t;return kr++,10===e.charCodeAt(Ar)?(t=_,Ar++):(t=a,0===kr&&Or(Fe)),t===a&&(e.substr(Ar,2)===E?(t=E,Ar+=2):(t=a,0===kr&&Or(Oe)),t===a&&(t=e.charAt(Ar),X.test(t)?Ar++:(t=a,0===kr&&Or(Be)))),kr--,t===a&&0===kr&&Or(Le),t}function ra(){var t;return kr++,(t=function(){var t,r,n,o,s,c;if(t=Ar,e.substr(Ar,2)===k?(r=k,Ar+=2):(r=a,0===kr&&Or(De)),r!==a){for(n=[],o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);o!==a;)n.push(o),o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);e.substr(Ar,2)===T?(o=T,Ar+=2):(o=a,0===kr&&Or(Ie)),o!==a?t=r=[r,n,o]:(Ar=t,t=a)}else Ar=t,t=a;return t}())===a&&(t=na()),kr--,t===a&&0===kr&&Or(Me),t}function aa(){var t,r,n,o,s,c;if(t=Ar,e.substr(Ar,2)===k?(r=k,Ar+=2):(r=a,0===kr&&Or(De)),r!==a){for(n=[],o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),c===a&&(c=ea()),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);o!==a;)n.push(o),o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),c===a&&(c=ea()),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);e.substr(Ar,2)===T?(o=T,Ar+=2):(o=a,0===kr&&Or(Ie)),o!==a?t=r=[r,n,o]:(Ar=t,t=a)}else Ar=t,t=a;return t}function na(){var t,r,n,o,s,c;if(t=Ar,e.substr(Ar,2)===C?(r=C,Ar+=2):(r=a,0===kr&&Or(je)),r!==a){for(n=[],o=Ar,s=Ar,kr++,c=ea(),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);o!==a;)n.push(o),o=Ar,s=Ar,kr++,c=ea(),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);t=r=[r,n]}else Ar=t,t=a;return t}function oa(){var e,t,r,n;if(kr++,e=Ar,(t=sa())!==a){for(r=[],n=ca();n!==a;)r.push(n),n=ca();yr=e,e=rr(t,r)}else Ar=e,e=a;return kr--,e===a&&(t=a,0===kr&&Or(Ne)),e}function sa(){var t,r,n;return t=e.charAt(Ar),K.test(t)?Ar++:(t=a,0===kr&&Or(Ue)),t===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=$a())!==a?t=n:(Ar=t,t=a)),t}function ca(){var t;return(t=sa())===a&&(t=e.charAt(Ar),Z.test(t)?Ar++:(t=a,0===kr&&Or(Ge))),t}function ia(){var t,r,n,o;if(kr++,t=Ar,34===e.charCodeAt(Ar)?(r=R,Ar++):(r=a,0===kr&&Or(Ve)),r!==a){for(n=[],o=pa();o!==a;)n.push(o),o=pa();34===e.charCodeAt(Ar)?(o=R,Ar++):(o=a,0===kr&&Or(Ve)),o!==a?(yr=t,t=nr(n)):(Ar=t,t=a)}else Ar=t,t=a;if(t===a)if(t=Ar,39===e.charCodeAt(Ar)?(r=L,Ar++):(r=a,0===kr&&Or(Ye)),r!==a){for(n=[],o=ua();o!==a;)n.push(o),o=ua();39===e.charCodeAt(Ar)?(o=L,Ar++):(o=a,0===kr&&Or(Ye)),o!==a?(yr=t,t=or(n)):(Ar=t,t=a)}else Ar=t,t=a;return kr--,t===a&&(r=a,0===kr&&Or(We)),t}function pa(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=e.charAt(Ar),ee.test(o)?Ar++:(o=a,0===kr&&Or(Qe)),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),(t=r!==a?e.substring(t,Ar):r)===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=ma())!==a?t=n:(Ar=t,t=a),t===a&&(t=da())),t}function ua(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=e.charAt(Ar),te.test(o)?Ar++:(o=a,0===kr&&Or(Je)),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),(t=r!==a?e.substring(t,Ar):r)===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=ma())!==a?t=n:(Ar=t,t=a),t===a&&(t=da())),t}function la(){var t,r,n,o;return t=Ar,(r=fa())!==a?(45===e.charCodeAt(Ar)?(n=M,Ar++):(n=a,0===kr&&Or(tt)),n!==a&&(o=fa())!==a?(yr=t,t=cr(r,o)):(Ar=t,t=a)):(Ar=t,t=a),t}function fa(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=e.charAt(Ar),re.test(o)?Ar++:(o=a,0===kr&&Or(rt)),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),(t=r!==a?e.substring(t,Ar):r)===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=ma())!==a?t=n:(Ar=t,t=a),t===a&&(t=da())),t}function da(){var t,r;return t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&ta()!==a?(yr=t,t=ir()):(Ar=t,t=a),t}function ma(){var t,r,n,o;return t=function(){var t;return(t=ga())===a&&(t=function(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=function(){var t;return(t=ga())===a&&(t=e.charAt(Ar),ne.test(t)?Ar++:(t=a,0===kr&&Or(lt))),t}(),o===a&&(o=ea()),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),t=r!==a?e.substring(t,Ar):r}()),t}(),t===a&&(t=Ar,48===e.charCodeAt(Ar)?(r=D,Ar++):(r=a,0===kr&&Or(at)),r!==a?(n=Ar,kr++,o=ha(),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a?(yr=t,t=pr()):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=function(){var t,r,n,o,s,c;return t=Ar,120===e.charCodeAt(Ar)?(r=H,Ar++):(r=a,0===kr&&Or(ft)),r!==a?(n=Ar,o=Ar,(s=xa())!==a&&(c=xa())!==a?o=s=[s,c]:(Ar=o,o=a),(n=o!==a?e.substring(n,Ar):o)!==a?(yr=t,t=$r(n)):(Ar=t,t=a)):(Ar=t,t=a),t}(),t===a&&(t=$a()))),t}function ga(){var t,r;return t=e.charAt(Ar),ae.test(t)?Ar++:(t=a,0===kr&&Or(nt)),t===a&&(t=Ar,98===e.charCodeAt(Ar)?(r=I,Ar++):(r=a,0===kr&&Or(ot)),r!==a&&(yr=t,r=ur()),(t=r)===a&&(t=Ar,102===e.charCodeAt(Ar)?(r=j,Ar++):(r=a,0===kr&&Or(st)),r!==a&&(yr=t,r=lr()),(t=r)===a&&(t=Ar,110===e.charCodeAt(Ar)?(r=N,Ar++):(r=a,0===kr&&Or(ct)),r!==a&&(yr=t,r=fr()),(t=r)===a&&(t=Ar,114===e.charCodeAt(Ar)?(r=U,Ar++):(r=a,0===kr&&Or(it)),r!==a&&(yr=t,r=dr()),(t=r)===a&&(t=Ar,116===e.charCodeAt(Ar)?(r=q,Ar++):(r=a,0===kr&&Or(pt)),r!==a&&(yr=t,r=mr()),(t=r)===a&&(t=Ar,118===e.charCodeAt(Ar)?(r=G,Ar++):(r=a,0===kr&&Or(ut)),r!==a&&(yr=t,r=gr()),t=r)))))),t}function $a(){var t,r,n,o,s,c,i,p;return t=Ar,117===e.charCodeAt(Ar)?(r=z,Ar++):(r=a,0===kr&&Or(dt)),r!==a?(n=Ar,o=Ar,(s=xa())!==a&&(c=xa())!==a&&(i=xa())!==a&&(p=xa())!==a?o=s=[s,c,i,p]:(Ar=o,o=a),(n=o!==a?e.substring(n,Ar):o)!==a?(yr=t,t=hr(n)):(Ar=t,t=a)):(Ar=t,t=a),t}function ha(){var t;return t=e.charAt(Ar),oe.test(t)?Ar++:(t=a,0===kr&&Or(mt)),t}function xa(){var t;return t=e.charAt(Ar),se.test(t)?Ar++:(t=a,0===kr&&Or(gt)),t}function ba(){var t,r,n,o;return kr++,t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a?(n=function(){var e,t;return e=Ar,t=va(),yr=e,e=t=br(t)}(),125===e.charCodeAt(Ar)?(o=d,Ar++):(o=a,0===kr&&Or(ge)),o!==a?t=n:(Ar=t,t=a)):(Ar=t,t=a),kr--,t===a&&(r=a,0===kr&&Or($t)),t}function va(){var t,r,n,o,s,c;if(t=Ar,r=[],n=[],o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a),o!==a)for(;o!==a;)n.push(o),o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);else n=a;for(n===a&&(n=Ar,123===e.charCodeAt(Ar)?(o=f,Ar++):(o=a,0===kr&&Or(me)),o!==a?(s=va(),125===e.charCodeAt(Ar)?(c=d,Ar++):(c=a,0===kr&&Or(ge)),c!==a?n=o=[o,s,c]:(Ar=n,n=a)):(Ar=n,n=a));n!==a;){if(r.push(n),n=[],o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a),o!==a)for(;o!==a;)n.push(o),o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);else n=a;n===a&&(n=Ar,123===e.charCodeAt(Ar)?(o=f,Ar++):(o=a,0===kr&&Or(me)),o!==a?(s=va(),125===e.charCodeAt(Ar)?(c=d,Ar++):(c=a,0===kr&&Or(ge)),c!==a?n=o=[o,s,c]:(Ar=n,n=a)):(Ar=n,n=a))}return e.substring(t,Ar)}function Aa(){var e,t;for(e=[],(t=Zr())===a&&(t=ta())===a&&(t=ra());t!==a;)e.push(t),(t=Zr())===a&&(t=ta())===a&&(t=ra());return e}function ya(){var t,r,n,o;if(t=[],r=Ar,n=Aa(),59===e.charCodeAt(Ar)?(o=i,Ar++):(o=a,0===kr&&Or(ue)),o!==a?r=n=[n,o]:(Ar=r,r=a),r!==a)for(;r!==a;)t.push(r),r=Ar,n=Aa(),59===e.charCodeAt(Ar)?(o=i,Ar++):(o=a,0===kr&&Or(ue)),o!==a?r=n=[n,o]:(Ar=r,r=a);else t=a;return t===a&&(t=Ar,r=function(){var e,t;for(e=[],(t=Zr())===a&&(t=aa());t!==a;)e.push(t),(t=Zr())===a&&(t=aa());return e}(),(n=na())===a&&(n=null),(o=ta())!==a?t=r=[r,n,o]:(Ar=t,t=a),t===a&&(t=Ar,r=Aa(),n=function(){var t,r;return t=Ar,kr++,e.length>Ar?(r=e.charAt(Ar),Ar++):(r=a,0===kr&&Or(ie)),kr--,r===a?t=void 0:(Ar=t,t=a),t}(),n!==a?t=r=[r,n]:(Ar=t,t=a))),t}var Sa=t.reservedWords||[];if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:Ar,peg$FAILED:a,peg$maxFailExpected:Er,peg$maxFailPos:_r};if(r!==a&&Ar===e.length)return r;throw r!==a&&Ar0){for(t=1,r=1;t0||e.imports.length>0)throw new Error("Dependencies not supported in format 'bare'.");return __spreadArray$4(__spreadArray$4([],a(),!0),["(function() {",' "use strict";',"",r,"",u("return "+n()+";"),"})()"],!1)},commonjs:function(){var t=Object.keys(p),o=a();o.push("",'"use strict";',""),t.length>0&&(t.forEach((function(e){o.push("var "+e+' = require("'+stringEscape$1(p[e])+'");')})),o.push(""));for(var s=e.imports.length,c=0;c0&&(n.forEach((function(e){o.push("import "+e+' from "'+stringEscape$1(p[e])+'";')})),o.push(""));for(var s=0;s0)throw new Error("Imports are not supported in format 'amd'.");var t=Object.keys(p),o="["+t.map((function(e){return p[e]})).map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",s=t.join(", ");return __spreadArray$4(__spreadArray$4([],a(),!0),["define("+o+", function("+s+") {",' "use strict";',"",r,"",u("return "+n()+";"),"});"],!1)},globals:function(){if(Object.keys(p).length>0||e.imports.length>0)throw new Error("Dependencies not supported in format 'globals'.");if(!t.exportVar)throw new Error("No export variable defined for format 'globals'.");return __spreadArray$4(__spreadArray$4([],a(),!0),["(function(root) {",' "use strict";',"",r,"",u("root."+t.exportVar+" = "+n()+";"),"})(this);"],!1)},umd:function(){if(e.imports.length>0)throw new Error("Imports are not supported in format 'umd'.");var o=Object.keys(p),s=o.map((function(e){return p[e]})),c="["+s.map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",i=s.map((function(e){return'require("'+stringEscape$1(e)+'")'})).join(", "),l=o.join(", "),f=a();return f.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+c+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+i+");"),t.exportVar&&f.push(" } else {"," root."+t.exportVar+" = factory();"),f.push(" }","})(this, function("+l+") {",' "use strict";',"",r,"",u("return "+n()+";"),"});"),f}},s=o[t.format||"bare"]();return new SourceNode$2(null,null,t.grammarSource,s.map((function(e){return e instanceof SourceNode$2?e:e+"\n"})))}(function(){var p=[],x=e.topLevelInitializer;if(x)if(Array.isArray(x)){if("es"===t.format){for(var b=[],v=[],A=0,y=x;A 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&&p.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 + ".");'," }","};","");var w="{ "+i.map((function(e){return e+": "+$(e)})).join(", ")+" }",P=$(i[0]);if(p.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+w+";"," var peg$startRuleFunction = "+P+";","",new SourceNode$2(null,null,t.grammarSource,__spreadArray$4([r.map((function(e,t){return" var "+l(t)+' = "'+stringEscape$1(e)+'";'})).concat("",n.map((function(e,t){return" var "+f(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape$1(e[0])+"-"+regexpClassEscape$1(e[1]):regexpClassEscape$1(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",o.map((function(e,t){return" var "+d(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape$1(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape$1(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape$1(e[0])+'", "'+stringEscape$1(e[1])+'"]':'"'+stringEscape$1(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")],s.map((function(e,t){return wrapInSourceNode("\n var ".concat(m(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")})),!0)),""," var peg$currPos = options.peg$currPos | 0;"," var peg$savedPos = peg$currPos;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = peg$currPos;"," var peg$maxFailExpected = options.peg$maxFailExpected || [];"," var peg$silentFails = options.peg$silentFails | 0;",""),t.cache&&p.push(" var peg$resultsCache = {};",""),t.trace&&p.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),p.push(" var peg$result;",""," if (options.startRule) {"," 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 {"," if (pos >= peg$posDetailsCache.length) {"," p = peg$posDetailsCache.length - 1;"," } else {"," p = pos;"," while (!peg$posDetailsCache[--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.imports.length>0&&p.push(" var peg$assign = Object.assign || function(t) {"," var i, s;"," for (i = 1; i < arguments.length; i++) {"," s = arguments[i];"," for (var p in s) {"," if (Object.prototype.hasOwnProperty.call(s, p)) {"," t[p] = s[p];"," }"," }"," }"," return t;"," };",""," function peg$callLibrary(lib, startRule) {"," const opts = peg$assign({}, options, {"," startRule: startRule,"," peg$currPos: peg$currPos,"," peg$silentFails: peg$silentFails,"," peg$library: true,"," peg$maxFailExpected: peg$maxFailExpected"," });"," const res = lib.parse(input, opts);"," peg$currPos = res.peg$currPos;"," peg$maxFailPos = res.peg$maxFailPos;"," peg$maxFailExpected = res.peg$maxFailExpected;"," return (res.peg$result === res.peg$FAILED) ? peg$FAILED : res.peg$result;"," }",""),e.rules.forEach((function(n){p.push.apply(p,u(function(n){var o=[],s=n.bytecode,i=new Stack$1(n.name,"s","var",s),p=function t(n){var o=0,s=n.length,p=[],h=void 0;function x(e,r,a){var s=r+3,c=n[o+s-2],l=n[o+s-1],f=i.checkedIf(o,(function(){return o+=s+c,(a||t)(n.slice(o-c,o))}),l>0?function(){return o+=l,t(n.slice(o-l,o))}:null),d=f[0],m=f[1];p.push("if ("+e+") {"),p.push.apply(p,u(d)),l>0&&(p.push("} else {"),p.push.apply(p,u(m))),p.push("}")}function b(e,r,a){var s=r+3,c=1===a?"input.charAt(peg$currPos)":"input.substr(peg$currPos, "+a+")",u=null;n[o+s]===op$1.ACCEPT_N&&n[o+s+1]===a&&(p.push(i.push(c)),c=i.pop(),u=function(e){i.sp++;var r=t(e.slice(2));return r.unshift(1===a?"peg$currPos++;":"peg$currPos += "+a+";"),r}),x(e(c,null!==u),r,u)}for(var v=function(){switch(n[o]){case op$1.PUSH_EMPTY_STRING:p.push(i.push("''")),o++;break;case op$1.PUSH_CURR_POS:p.push(i.push("peg$currPos")),o++;break;case op$1.PUSH_UNDEFINED:p.push(i.push("undefined")),o++;break;case op$1.PUSH_NULL:p.push(i.push("null")),o++;break;case op$1.PUSH_FAILED:p.push(i.push("peg$FAILED")),o++;break;case op$1.PUSH_EMPTY_ARRAY:p.push(i.push("[]")),o++;break;case op$1.POP:i.pop(),o++;break;case op$1.POP_CURR_POS:p.push("peg$currPos = "+i.pop()+";"),o++;break;case op$1.POP_N:i.pop(n[o+1]),o+=2;break;case op$1.NIP:h=i.pop(),i.pop(),p.push(i.push(h)),o++;break;case op$1.APPEND:h=i.pop(),p.push(i.top()+".push("+h+");"),o++;break;case op$1.WRAP:p.push(i.push("["+i.pop(n[o+1]).join(", ")+"]")),o+=2;break;case op$1.TEXT:p.push(i.push("input.substring("+i.pop()+", peg$currPos)")),o++;break;case op$1.PLUCK:var s=n[o+3-1],v=3+s;h=n.slice(o+3,o+v),h=1===s?i.index(h[0]):"[ ".concat(h.map((function(e){return i.index(e)})).join(", ")," ]"),i.pop(n[o+1]),p.push(i.push(h)),o+=v;break;case op$1.IF:x(i.top(),0);break;case op$1.IF_ERROR:x(i.top()+" === peg$FAILED",0);break;case op$1.IF_NOT_ERROR:x(i.top()+" !== peg$FAILED",0);break;case op$1.IF_LT:x(i.top()+".length < "+n[o+1],1);break;case op$1.IF_GE:x(i.top()+".length >= "+n[o+1],1);break;case op$1.IF_LT_DYNAMIC:x(i.top()+".length < ("+i.index(n[o+1])+"|0)",1);break;case op$1.IF_GE_DYNAMIC:x(i.top()+".length >= ("+i.index(n[o+1])+"|0)",1);break;case op$1.WHILE_NOT_ERROR:T=i.top()+" !== peg$FAILED",C=n[o+2-1],w=i.checkedLoop(o,(function(){return o+=2+C,t(n.slice(o-C,o))})),p.push("while ("+T+") {"),p.push.apply(p,u(w)),p.push("}");break;case op$1.MATCH_ANY:x("input.length > peg$currPos",0);break;case op$1.MATCH_STRING:var A=n[o+1],y=r[A];b((function(e,t){return y.length>1?"".concat(e," === ").concat(l(A)):(e=t?"".concat(e,".charCodeAt(0)"):"input.charCodeAt(peg$currPos)","".concat(e," === ").concat(y.charCodeAt(0)))}),1,y.length);break;case op$1.MATCH_STRING_IC:var S=n[o+1];b((function(e){return"".concat(e,".toLowerCase() === ").concat(l(S))}),1,r[S].length);break;case op$1.MATCH_CHAR_CLASS:var _=n[o+1];b((function(e){return"".concat(f(_),".test(").concat(e,")")}),1,1);break;case op$1.ACCEPT_N:p.push(i.push(n[o+1]>1?"input.substr(peg$currPos, "+n[o+1]+")":"input.charAt(peg$currPos)")),p.push(n[o+1]>1?"peg$currPos += "+n[o+1]+";":"peg$currPos++;"),o+=2;break;case op$1.ACCEPT_STRING:p.push(i.push(l(n[o+1]))),p.push(r[n[o+1]].length>1?"peg$currPos += "+r[n[o+1]].length+";":"peg$currPos++;"),o+=2;break;case op$1.FAIL:p.push(i.push("peg$FAILED")),p.push("if (peg$silentFails === 0) { peg$fail("+d(n[o+1])+"); }"),o+=2;break;case op$1.LOAD_SAVED_POS:p.push("peg$savedPos = "+i.index(n[o+1])+";"),o+=2;break;case op$1.UPDATE_SAVED_POS:p.push("peg$savedPos = peg$currPos;"),o++;break;case op$1.CALL:h=function(e){var t=n[o+4-1];return m(n[o+1])+"("+n.slice(o+4,o+4+t).map((function(e){return i.index(e)})).join(", ")+")"}(),i.pop(n[o+2]),p.push(i.push(h)),o+=4+n[o+3];break;case op$1.RULE:p.push(i.push($(e.rules[n[o+1]].name)+"()")),o+=2;break;case op$1.LIBRARY_RULE:var E=n[o+2],k=-1===E?"":', "'+c[E]+'"';p.push(i.push("peg$callLibrary("+g(n[o+1])+k+")")),o+=3;break;case op$1.SILENT_FAILS_ON:p.push("peg$silentFails++;"),o++;break;case op$1.SILENT_FAILS_OFF:p.push("peg$silentFails--;"),o++;break;case op$1.SOURCE_MAP_PUSH:i.sourceMapPush(p,a[n[o+1]]),o+=2;break;case op$1.SOURCE_MAP_POP:i.sourceMapPop(),o++;break;case op$1.SOURCE_MAP_LABEL_PUSH:i.labels[n[o+1]]={label:r[n[o+2]],location:a[n[o+3]]},o+=4;break;case op$1.SOURCE_MAP_LABEL_POP:delete i.labels[n[o+1]],o+=2;break;default:throw new Error("Invalid opcode: "+n[o]+".")}var T,C,w};oc?-1:1:0}));for(var t="",r="",a=0;a=s.charCodeAt(0)?(e.splice(a--,1),e[a]=[t,r=c]):(t=s,r=c)}return e}function mergeCharacterClasses$1(e){var t=Object.create(null);e.rules.forEach((function(e){return t[e.name]=e.expression}));var r=Object.create(null),a=[function(e,a){if("class"===e.type&&!e.inverted)return a&&((e=__assign$1({},e)).parts=__spreadArray$3([],e.parts,!0)),e;if("literal"===e.type&&1===e.value.length)return{type:"class",parts:[e.value],inverted:!1,ignoreCase:e.ignoreCase,location:e.location};if("rule_ref"===e.type){var s=t[e.name];if(s){r[e.name]||(r[e.name]=!0,o(s));var c=n(s,!0);return c&&(c.location=e.location),c}}return null},visitor$7.build({choice:function(e){var t=null,r=!1;e.alternatives.forEach((function(a,s){var c;o(a);var i=n(a);i?t&&t.ignoreCase===i.ignoreCase?((c=t.parts).push.apply(c,i.parts),e.alternatives[s-1]=t,e.alternatives[s]=t,t.location={source:t.location.source,start:t.location.start,end:i.location.end},r=!0):t=i:t=null})),r&&(e.alternatives=e.alternatives.filter((function(e,t,r){return!t||e!==r[t-1]})),e.alternatives.forEach((function(t,r){"class"===t.type&&(t.parts=cleanParts(t.parts),1!==t.parts.length||Array.isArray(t.parts[0])||t.inverted||(e.alternatives[r]={type:"literal",value:t.parts[0],ignoreCase:t.ignoreCase,location:t.location}))})),1===e.alternatives.length&&cloneOver(e,e.alternatives[0]))},text:function(e){if(o(e.expression),"class"===e.expression.type||"literal"===e.expression.type){var t=e.location;cloneOver(e,e.expression),e.location=t}}})],n=a[0],o=a[1];e.rules.forEach((function(e){r[e.name]=!0,o(e.expression)}))}var mergeCharacterClasses_1=mergeCharacterClasses$1;function reportDuplicateImports$1(e,t,r){for(var a={},n=0,o=e.imports;n0||(a.push(e.name),o(e.expression),a.pop())},sequence:function(t){r.errors>0||t.elements.every((function(t){return o(t),!(r.errors>0||asts$3.alwaysConsumesOnSuccess(e,t))}))},repeated:function(t){r.errors>0||(o(t.expression),t.delimiter&&!asts$3.alwaysConsumesOnSuccess(e,t.expression)&&o(t.delimiter))},rule_ref:function(t){if(!(r.errors>0)){n.push(t);var s=asts$3.findRule(e,t.name);if(-1!==a.indexOf(t.name))return a.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+a.join(" -> ")+")",s.nameLocation,n.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));s&&o(s),n.pop()}}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$2=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){var a=visitor$3.build({zero_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(t.delimiter&&a(t.delimiter),!(asts$2.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$2.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var n=t.min?t.min:t.max;r.warning("constant"===n.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});a(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts$1=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts$1.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var a=visitor$1.build({action:function(e){a(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),a(e.expression)}});a(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n0:e&&"function"==typeof e.offset}var compiler$2={visitor:visitor,passes:{prepare:[addImportedRules,reportInfiniteRecursion],check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRepetition,reportIncorrectPlucking,reportDuplicateImports],transform:[fixLibraryNumbers,removeProxyRules,mergeCharacterClasses,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){options=void 0!==options?options:{};var defaultStartRules=[ast.rules[0].name];if(options=processOptions(options,{allowedStartRules:defaultStartRules,cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),null!==options.allowedStartRules&&void 0!==options.allowedStartRules||(options.allowedStartRules=defaultStartRules),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");0===options.allowedStartRules.length&&(options.allowedStartRules=defaultStartRules);var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}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");var session=new Session$1(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(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");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64$3(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$2,GrammarError$2=grammarError,GrammarLocation$1=grammarLocation,asts=asts_1,compiler$1=compiler_1,parser$3=parser$4,VERSION=version$1,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"],peg$4={VERSION:VERSION,RESERVED_WORDS:RESERVED_WORDS,GrammarError:GrammarError$2,GrammarLocation:GrammarLocation$1,parser:parser$3,compiler:compiler$1,generate:function(e,t){var r,a,n="plugins"in(t=void 0!==t?t:{})?t.plugins:[],o={parser:peg$4.parser,passes:(r=peg$4.compiler.passes,a={},Object.keys(r).forEach((function(e){a[e]=r[e].slice()})),a),reservedWords:peg$4.RESERVED_WORDS.slice()};n.forEach((function(e){e.use(o,t)})),Array.isArray(e)||(e=[{source:t.grammarSource,text:e}]);var s=asts.combine(e.map((function(e){var t=e.source,r=e.text;return o.parser.parse(r,{grammarSource:t,reservedWords:o.reservedWords})})));return peg$4.compiler.compile(s,o.passes,t)}},peg_1=peg$4,utils={},chai$o=require$$0,Call=function(){function e(e){this.args=e}return e.prototype.calledWithExactly=function(){for(var e=[],t=0;t=18"},require$$2={name:name,version:version,description:description,keywords:keywords,homepage:homepage,repository:repository,bugs:bugs,license:license,author:author,main:main,browser:browser,unpkg:unpkg,jsdelivr:jsdelivr,types:types,bin:bin,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies,browserslist:browserslist,packageManager:packageManager,engines:engines},sourceMap={},sourceMapGenerator={},base64Vlq={},base64$2={};const intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");base64$2.encode=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT,a>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$1.encode(t)}while(a>0);return r};var util$4={},urlBrowser=require$$0$1.URL;const URL$1=urlBrowser;function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$4.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}util$4.toSetString=supportsNullProto?identity:toSetString,util$4.fromSetString=supportsNullProto?identity:fromSetString,util$4.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated,util$4.parseSourceMapInput=parseSourceMapInput;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),a=buildSafeBase(t),n=new URL$1(t,a);e(n);const o=n.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(a,o)}}function withBase(e,t){return new URL$1(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const a=e+r++;if(-1===t.indexOf(a))return a}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let a=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!a[a.length-1]&&a.pop();r.length>0&&a.length>0&&r[0]===a[0];)r.shift(),a.shift();return a.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),trimFilename=createSafeHandler((e=>{e.href=new URL$1(".",e.toString()).toString()})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),a=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===a)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===a)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===a)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const n=buildSafeBase(t+e);return computeRelativeURL(n,withBase(t,withBase(e,n)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),a=new URL$1(e,r),n=new URL$1(t,r);try{new URL$1("",n.toString())}catch(e){return null}return n.protocol!==a.protocol||n.user!==a.user||n.password!==a.password||n.hostname!==a.hostname||n.port!==a.port?null:computeRelativeURL(a,n)}function computeSourceURL(e,t,r){e&&"path-absolute"===getURLType(t)&&(t=t.replace(/^\//,""));let a=normalize(t||"");return e&&(a=join(e,a)),r&&(a=join(trimFilename(r),a)),a}util$4.normalize=normalize,util$4.join=join,util$4.relative=relative,util$4.computeSourceURL=computeSourceURL;var arraySet={};let ArraySet$2=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const a=new e;for(let e=0,n=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||a==r&&o>=n||util$3.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$3.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$2=util$4,ArraySet$1=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$2.getArg(e,"file",null),this._sourceRoot=util$2.getArg(e,"sourceRoot",null),this._skipValidation=util$2.getArg(e,"skipValidation",!1),this._sources=new ArraySet$1,this._names=new ArraySet$1,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,a=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$2.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)})),t.sources.forEach((function(e){let n=e;null!==r&&(n=util$2.relative(r,e)),a._sources.has(n)||a._sources.add(n);const o=t.sourceContentFor(e);null!=o&&a.setSourceContent(e,o)})),a}addMapping(e){const t=util$2.getArg(e,"generated"),r=util$2.getArg(e,"original",null);let a=util$2.getArg(e,"source",null),n=util$2.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,n),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:a,name:n})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$2.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$2.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$2.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let a=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.');a=e.file}const n=this._sourceRoot;null!=n&&(a=util$2.relative(n,a));const o=this._mappings.toArray().length>0?new ArraySet$1:this._sources,s=new ArraySet$1;this._mappings.unsortedForEach((function(t){if(t.source===a&&null!=t.originalLine){const a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=util$2.join(r,t.source)),null!=n&&(t.source=util$2.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}const c=t.source;null==c||o.has(c)||o.add(c);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=util$2.join(r,t)),null!=n&&(t=util$2.relative(n,t)),this.setSourceContent(t,a))}),this)}_validateMapping(e,t,r,a){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&&!r&&!a);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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:a}))}_serializeMappings(){let e,t,r,a,n=0,o=1,s=0,c=0,i=0,p=0,u="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$2.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=base64VLQ.encode(a-p),p=a,e+=base64VLQ.encode(t.originalLine-1-c),c=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-i),i=r)),u+=e}return u}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$2.relative(t,e));const r=util$2.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceMapConsumer={},binarySearch$1={};!function(e){function t(r,a,n,o,s,c){const i=Math.floor((a-r)/2)+r,p=s(n,o[i],!0);return 0===p?i:p>0?a-i>1?t(i,a,n,o,s,c):c==e.LEAST_UPPER_BOUND?a1?t(r,i,n,o,s,c):c==e.LEAST_UPPER_BOUND?i:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,a,n,o){if(0===a.length)return-1;let s=t(-1,a.length,r,a,n,o||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===n(a[s],a[s-1],!0);)--s;return s}}(binarySearch$1);var readWasmBrowser={exports:{}};let mappingsWasm=null;readWasmBrowser.exports=function(){if("string"==typeof mappingsWasm)return fetch(mappingsWasm).then((e=>e.arrayBuffer()));if(mappingsWasm instanceof ArrayBuffer)return Promise.resolve(mappingsWasm);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},readWasmBrowser.exports.initialize=e=>{mappingsWasm=e};var readWasmBrowserExports=readWasmBrowser.exports;const readWasm$1=readWasmBrowserExports;function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let cachedWasm=null;var wasm$1=function(){if(cachedWasm)return cachedWasm;const e=[];return cachedWasm=readWasm$1().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,r,a,n,o,s,c,i,p,u){const l=new Mapping;l.generatedLine=t+1,l.generatedColumn=r,a&&(l.lastGeneratedColumn=n-1),o&&(l.source=s,l.originalLine=c+1,l.originalColumn=i,p&&(l.name=u)),e[e.length-1](l)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}}))).then(null,(e=>{throw cachedWasm=null,e})),cachedWasm};const util$1=util$4,binarySearch=binarySearch$1,ArraySet=arraySet.ArraySet,readWasm=readWasmBrowserExports,wasm=wasm$1,INTERNAL=Symbol("smcInternal");let SourceMapConsumer$1=class e{constructor(e,t){return e==INTERNAL?Promise.resolve(this):_factory(e,t)}static initialize(e){readWasm.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return _factoryBSM(e,t)}static async with(t,r,a){const n=await new e(t,r);try{return await a(n)}finally{n.destroy()}}eachMapping(e,t,r){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};SourceMapConsumer$1.prototype._version=3,SourceMapConsumer$1.GENERATED_ORDER=1,SourceMapConsumer$1.ORIGINAL_ORDER=2,SourceMapConsumer$1.GREATEST_LOWER_BOUND=1,SourceMapConsumer$1.LEAST_UPPER_BOUND=2,sourceMapConsumer.SourceMapConsumer=SourceMapConsumer$1;class BasicSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let a=e;"string"==typeof e&&(a=util$1.parseSourceMapInput(e));const n=util$1.getArg(a,"version"),o=util$1.getArg(a,"sources").map(String),s=util$1.getArg(a,"names",[]),c=util$1.getArg(a,"sourceRoot",null),i=util$1.getArg(a,"sourcesContent",null),p=util$1.getArg(a,"mappings"),u=util$1.getArg(a,"file",null);if(n!=r._version)throw new Error("Unsupported version: "+n);return r._sourceLookupCache=new Map,r._names=ArraySet.fromArray(s.map(String),!0),r._sources=ArraySet.fromArray(o,!0),r._absoluteSources=ArraySet.fromArray(r._sources.toArray().map((function(e){return util$1.computeSourceURL(c,e,t)})),!0),r.sourceRoot=c,r.sourcesContent=i,r._mappings=p,r._sourceMapURL=t,r.file=u,r._computedColumnSpans=!1,r._mappingsPtr=0,r._wasm=null,wasm().then((e=>(r._wasm=e,r)))}))}_findSourceIndex(e){const t=this._sourceLookupCache.get(e);if("number"==typeof t)return t;const r=util$1.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(r)){const t=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,t),t}const a=util$1.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(a)){const t=this._absoluteSources.indexOf(a);return this._sourceLookupCache.set(e,t),t}return-1}static fromSourceMap(e,t){return new BasicSourceMapConsumer(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,r=this._wasm.exports.allocate_mappings(t),a=new Uint8Array(this._wasm.exports.memory.buffer,r,t);for(let r=0;r{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(a,t)}),(()=>{switch(n){case SourceMapConsumer$1.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case SourceMapConsumer$1.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=util$1.getArg(e,"source");const r=util$1.getArg(e,"line"),a=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(r<1)throw new Error("Line numbers must be >= 1");if(a<0)throw new Error("Column numbers must be >= 0");const n=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),n.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,r-1,"column"in e,a)})),n}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:util$1.getArg(e,"line"),generatedColumn:util$1.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let r,a=util$1.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==a&&(a=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>r=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,a)})),r&&r.generatedLine===t.generatedLine){let e=util$1.getArg(r,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=util$1.getArg(r,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:util$1.getArg(r,"originalLine",null),column:util$1.getArg(r,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let t=util$1.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const r={source:t,originalLine:util$1.getArg(e,"line"),originalColumn:util$1.getArg(e,"column")};if(r.originalLine<1)throw new Error("Line numbers must be >= 1");if(r.originalColumn<0)throw new Error("Column numbers must be >= 0");let a,n=util$1.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==n&&(n=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>a=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),r.source,r.originalLine-1,r.originalColumn,n)})),a&&a.source===r.source){let e=a.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:util$1.getArg(a,"generatedLine",null),column:util$1.getArg(a,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$1,sourceMapConsumer.BasicSourceMapConsumer=BasicSourceMapConsumer;class IndexedSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let a=e;"string"==typeof e&&(a=util$1.parseSourceMapInput(e));const n=util$1.getArg(a,"version"),o=util$1.getArg(a,"sections");if(n!=r._version)throw new Error("Unsupported version: "+n);let s={line:-1,column:0};return Promise.all(o.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const r=util$1.getArg(e,"offset"),a=util$1.getArg(r,"line"),n=util$1.getArg(r,"column");if(a({generatedOffset:{generatedLine:a+1,generatedColumn:n+1},consumer:e})))}))).then((e=>(r._sections=e,r)))}))}get sources(){const e=[];for(let t=0;t=0?this._sections[t]:null,a=t>=0&&t+1=0?this._sections[t]:null,a=t>=0&&t+1{const t=r.generatedOffset.generatedLine-1,n=r.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=n,"number"==typeof e.lastColumn&&(e.lastColumn+=n)),e.lastColumn===1/0&&a&&e.line===a.generatedOffset.generatedLine&&(e.lastColumn=a.generatedOffset.generatedColumn-2),e.line+=t,e})):[]}eachMapping(e,t,r){this._sections.forEach(((a,n)=>{const o=n+1=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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 r=0,a=this.children.length;r0){for(t=[],r=0;r start)"])}})),it("reports multiple errors in each compilation stage",(function(){try{peg.generate('\n start = leftRecursion\n leftRecursion = duplicatedLabel:duplicatedRule duplicatedLabel:missingRule\n duplicatedRule = missingRule\n duplicatedRule = "nothing"\n ')}catch(t){expect$k(t).with.property("stage","check"),expect$k(t).with.property("problems").to.be.an("array"),t.problems.forEach((function(e){expect$k(e).to.be.an("array").lengthOf.gte(2),expect$k(e[0]).to.be.oneOf(["error","warning","info"])}));var e=t.problems.filter((function(e){return"error"===e[0]})).map((function(e){return e[1]}));expect$k(e).to.include.members(['Rule "missingRule" is not defined','Rule "duplicatedRule" is already defined','Label "duplicatedLabel" is already defined'])}}))}))}));var chai$j=require$$0,parser$2=parser$4,compiler=compiler_1,expect$j=chai$j.expect;describe("Peggy compiler",(function(){it("checks start rules",(function(){var e=parser$2.parse("foo='1'");expect$j(compiler.compile(e,compiler.passes)).to.be.an("object"),expect$j(compiler.compile(e,compiler.passes,{allowedStartRules:null})).to.be.an("object"),expect$j(compiler.compile(e,compiler.passes,{allowedStartRules:void 0})).to.be.an("object"),expect$j(compiler.compile(e,compiler.passes,{allowedStartRules:[]})).to.be.an("object"),expect$j((function(){return compiler.compile(e,compiler.passes,{allowedStartRules:{}})})).to.throw("allowedStartRules must be an array"),expect$j((function(){return compiler.compile(e,compiler.passes,{allowedStartRules:["bar"]})})).to.throw('Unknown start rule "bar"')})),it("checks output type",(function(){var e=parser$2.parse("foo='1'");expect$j(compiler.compile(e,compiler.passes,{output:"source"})).to.be.a("string"),expect$j((function(){return compiler.compile(e,compiler.passes,{output:"INVALID OUTPUT TYPE"})})).to.throw("Invalid output format: INVALID OUTPUT TYPE.")})),it("generates inline sourceMappingURL",(function(){var e=parser$2.parse("foo='1'");if(expect$j(e).to.be.an("object"),"function"==typeof TextEncoder&&(expect$j(compiler.compile(e,compiler.passes,{output:"source-with-inline-map",grammarSource:"src.peggy"})).to.match(/^\/\/# sourceMappingURL=data:application\/json;charset=utf-8;base64,/m),"object"==typeof globalThis)){var t=globalThis.TextEncoder;delete globalThis.TextEncoder,expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-with-inline-map",grammarSource:"src.peggy"})})).to.throw("TextEncoder is not supported by this platform"),globalThis.TextEncoder=t}})),it("requires grammarSource with source-map",(function(){var e=parser$2.parse("foo='1'");expect$j(e).to.be.an("object"),expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-and-map"})})).to.throw("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps"),expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-and-map",grammarSource:""})})).to.throw("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps"),"function"==typeof TextEncoder&&expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-with-inline-map",grammarSource:{toString:function(){return""}}})})).to.throw("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps")}))}));var chai$i=require$$0,Intern=intern,expect$i=chai$i.expect;describe("utility class Intern",(function(){it("handles strings",(function(){var e=new Intern;expect$i(e.add("one")).to.equal(0),expect$i(e.add("one")).to.equal(0),expect$i(e.add("two")).to.equal(1),expect$i(e.add("one")).to.equal(0),expect$i(e.add("two")).to.equal(1),expect$i(e.add(void 0)).to.equal(-1),expect$i(e.add(null)).to.equal(-1),expect$i(e.items.length).to.equal(2),expect$i(e.items).to.deep.equal(["one","two"]),expect$i(e.get(0)).to.equal("one"),expect$i(e.get(1)).to.equal("two"),expect$i(e.get(-1)).to.equal(void 0),expect$i(e.get(10)).to.equal(void 0);var t=e.map((function(e,t){return[e,t]}));expect$i(t).to.deep.equal([["one",0],["two",1]])})),it("does conversions",(function(){var e=new Intern({convert:function(e){return Array.from(e).map((function(e){return e.codePointAt(0)}))}});expect$i(e.add("abc")).to.equal(0),expect$i(e.add("abc")).to.equal(0),expect$i(e.add("abd")).to.equal(1),expect$i(e.get(0)).to.deep.equal([97,98,99]),expect$i(e.get(1)).to.deep.equal([97,98,100])})),it("stringifies",(function(){var e=new Intern({stringify:function(){return"same"}});expect$i(e.add("abc")).to.equal(0),expect$i(e.add("def")).to.equal(0)}))}));var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),it("reports indirect left recursion",(function(){expect$6(pass$2).to.reportError(["start = stop","stop = start"].join("\n"),{message:"Possible infinite loop when parsing (left recursion: start -> stop -> start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),describe("in sequences",(function(){it("reports left recursion if all preceding elements match empty string",(function(){expect$6(pass$2).to.reportError("start = '' '' '' start")})),it("doesn't report left recursion if some preceding element doesn't match empty string",(function(){expect$6(pass$2).to.not.reportError("start = 'a' '' '' start"),expect$6(pass$2).to.not.reportError("start = '' 'a' '' start"),expect$6(pass$2).to.not.reportError("start = '' '' 'a' start")})),it("reports left recursion when rule reference is wrapped in an expression",(function(){expect$6(pass$2).to.reportError("start = '' start?")})),it("computes expressions that always consume input on success correctly",(function(){expect$6(pass$2).to.reportError(["start = a start","a 'a' = ''"].join("\n")),expect$6(pass$2).to.not.reportError(["start = a start","a 'a' = 'a'"].join("\n")),expect$6(pass$2).to.reportError("start = ('' / 'a' / 'b') start"),expect$6(pass$2).to.reportError("start = ('a' / '' / 'b') start"),expect$6(pass$2).to.reportError("start = ('a' / 'b' / '') start"),expect$6(pass$2).to.not.reportError("start = ('a' / 'b' / 'c') start"),expect$6(pass$2).to.reportError("start = ('' { }) start"),expect$6(pass$2).to.not.reportError("start = ('a' { }) start"),expect$6(pass$2).to.reportError("start = ('' '' '') start"),expect$6(pass$2).to.not.reportError("start = ('a' '' '') start"),expect$6(pass$2).to.not.reportError("start = ('' 'a' '') start"),expect$6(pass$2).to.not.reportError("start = ('' '' 'a') start"),expect$6(pass$2).to.reportError("start = a:'' start"),expect$6(pass$2).to.not.reportError("start = a:'a' start"),expect$6(pass$2).to.reportError("start = $'' start"),expect$6(pass$2).to.not.reportError("start = $'a' start"),expect$6(pass$2).to.reportError("start = &'' start"),expect$6(pass$2).to.reportError("start = &'a' start"),expect$6(pass$2).to.reportError("start = !'' start"),expect$6(pass$2).to.reportError("start = !'a' start"),expect$6(pass$2).to.reportError("start = ''? start"),expect$6(pass$2).to.reportError("start = 'a'? start"),expect$6(pass$2).to.reportError("start = ''* start"),expect$6(pass$2).to.reportError("start = 'a'* start"),expect$6(pass$2).to.reportError("start = ''+ start"),expect$6(pass$2).to.not.reportError("start = 'a'+ start"),expect$6(pass$2).to.reportError("start = ''| .. | start"),expect$6(pass$2).to.reportError("start = ''|0.. | start"),expect$6(pass$2).to.reportError("start = ''|1.. | start"),expect$6(pass$2).to.reportError("start = ''|2.. | start"),expect$6(pass$2).to.reportError("start = ''| ..1| start"),expect$6(pass$2).to.reportError("start = ''| ..3| start"),expect$6(pass$2).to.reportError("start = ''|2..3| start"),expect$6(pass$2).to.reportError("start = ''| 42 | start"),expect$6(pass$2).to.reportError("start = 'a'| .. | start"),expect$6(pass$2).to.reportError("start = 'a'|0.. | start"),expect$6(pass$2).to.not.reportError("start = 'a'|1.. | start"),expect$6(pass$2).to.not.reportError("start = 'a'|2.. | start"),expect$6(pass$2).to.reportError("start = 'a'| ..1| start"),expect$6(pass$2).to.reportError("start = 'a'| ..3| start"),expect$6(pass$2).to.not.reportError("start = 'a'|2..3| start"),expect$6(pass$2).to.not.reportError("start = 'a'| 42 | start"),expect$6(pass$2).to.reportError("start = ('') start"),expect$6(pass$2).to.not.reportError("start = ('a') start"),expect$6(pass$2).to.reportError("start = &{ } start"),expect$6(pass$2).to.reportError("start = !{ } start"),expect$6(pass$2).to.reportError(["start = a start","a = ''"].join("\n")),expect$6(pass$2).to.not.reportError(["start = a start","a = 'a'"].join("\n")),expect$6(pass$2).to.reportError("start = '' start"),expect$6(pass$2).to.not.reportError("start = 'a' start"),expect$6(pass$2).to.not.reportError("start = [a-d] start"),expect$6(pass$2).to.not.reportError("start = . start")}))})),describe("in repeated with delimiter",(function(){it("doesn't report left recursion for delimiter if expression not match empty string",(function(){expect$6(pass$2).to.not.reportError("start = 'a'| .. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'|0.. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'|1.. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'|2.. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'| ..3, start|"),expect$6(pass$2).to.not.reportError("start = 'a'|2..3, start|"),expect$6(pass$2).to.not.reportError("start = 'a'| 42 , start|")})),it("reports left recursion for delimiter if expression match empty string",(function(){expect$6(pass$2).to.reportError("start = ''| .. , start|"),expect$6(pass$2).to.reportError("start = ''|0.. , start|"),expect$6(pass$2).to.reportError("start = ''|1.. , start|"),expect$6(pass$2).to.reportError("start = ''|2.. , start|"),expect$6(pass$2).to.reportError("start = ''| ..3, start|"),expect$6(pass$2).to.reportError("start = ''|2..3, start|"),expect$6(pass$2).to.reportError("start = ''| 42 , start|")})),it("does not inifinite loop",(function(){expect$6(pass$2).to.reportError('\n start = expr*\n\n expr\n = expr "++"\n ',{message:"Possible infinite loop when parsing (left recursion: start -> expr -> expr)"})}))}))}));var chai$5=require$$0,helpers$1=helpers$d,pass$1=reportInfiniteRepetition_1;chai$5.use(helpers$1);var expect$5=chai$5.expect;describe("compiler pass |reportInfiniteRepetition|",(function(){it("reports infinite loops for zero_or_more",(function(){expect$5(pass$1).to.reportError("start = ('')*",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),it("reports infinite loops for one_or_more",(function(){expect$5(pass$1).to.reportError("start = ('')+",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),describe("reports infinite loops for repeated",(function(){describe("without delimiter",(function(){it("with constant boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:16,line:1,column:17}}}),expect$5(pass$1).to.reportError("start = ('')|0..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$5(pass$1).to.reportError("start = ('')|1..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$5(pass$1).to.reportError("start = ('')|2..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$5(pass$1).to.not.reportError("start = ('')| ..1|"),expect$5(pass$1).to.not.reportError("start = ('')| ..3|"),expect$5(pass$1).to.not.reportError("start = ('')|2..3|"),expect$5(pass$1).to.not.reportError("start = ('')| 42 |")})),it("with variable boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|len..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:19,line:1,column:20}}}),expect$5(pass$1).to.not.reportError("start = ('')|..len|"),expect$5(pass$1).to.not.reportError("start = ('')|len1..len2|"),expect$5(pass$1).to.not.reportError("start = ('')|len|")})),it("with function boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|{}..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:18,line:1,column:19}}}),expect$5(pass$1).to.not.reportError("start = ('')|..{}|"),expect$5(pass$1).to.not.reportError("start = ('')|{}..{}|"),expect$5(pass$1).to.not.reportError("start = ('')|{}|")}))})),describe("with empty delimiter",(function(){it("with constant boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')| .., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.reportError("start = ('')|0.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.reportError("start = ('')|1.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.reportError("start = ('')|2.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.not.reportError("start = ('')| ..1, ''|"),expect$5(pass$1).to.not.reportError("start = ('')| ..3, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|2..3, ''|"),expect$5(pass$1).to.not.reportError("start = ('')| 42 , ''|")})),it("with variable boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|len.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:23,line:1,column:24}}}),expect$5(pass$1).to.not.reportError("start = ('')|..len, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|len1..len2, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|len, ''|")})),it("with function boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|{}.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:22,line:1,column:23}}}),expect$5(pass$1).to.not.reportError("start = ('')|..{}, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|{}..{}, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|{}, ''|")}))})),describe("with non-empty delimiter",(function(){it("with constant boundaries",(function(){expect$5(pass$1).to.not.reportError("start = ('')| .., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|0.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|1.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|2.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')| ..1, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')| ..3, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|2..3, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')| 42 , 'a'|")})),it("with variable boundaries",(function(){expect$5(pass$1).to.not.reportError("start = ('')|len.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|..len, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|len1..len2, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|len, 'a'|")})),it("with function boundaries",(function(){expect$5(pass$1).to.not.reportError("start = ('')|{}.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|..{}, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|{}..{}, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|{}, 'a'|")}))}))})),it("computes expressions that always consume input on success correctly",(function(){expect$5(pass$1).to.reportError(["start = a*","a 'a' = ''"].join("\n")),expect$5(pass$1).to.not.reportError(["start = a*","a 'a' = 'a'"].join("\n")),expect$5(pass$1).to.reportError("start = ('' / 'a' / 'b')*"),expect$5(pass$1).to.reportError("start = ('a' / '' / 'b')*"),expect$5(pass$1).to.reportError("start = ('a' / 'b' / '')*"),expect$5(pass$1).to.not.reportError("start = ('a' / 'b' / 'c')*"),expect$5(pass$1).to.reportError("start = ('' { })*"),expect$5(pass$1).to.not.reportError("start = ('a' { })*"),expect$5(pass$1).to.reportError("start = ('' '' '')*"),expect$5(pass$1).to.not.reportError("start = ('a' '' '')*"),expect$5(pass$1).to.not.reportError("start = ('' 'a' '')*"),expect$5(pass$1).to.not.reportError("start = ('' '' 'a')*"),expect$5(pass$1).to.reportError("start = (a:'')*"),expect$5(pass$1).to.not.reportError("start = (a:'a')*"),expect$5(pass$1).to.reportError("start = ($'')*"),expect$5(pass$1).to.not.reportError("start = ($'a')*"),expect$5(pass$1).to.reportError("start = (&'')*"),expect$5(pass$1).to.reportError("start = (&'a')*"),expect$5(pass$1).to.reportError("start = (!'')*"),expect$5(pass$1).to.reportError("start = (!'a')*"),expect$5(pass$1).to.reportError("start = (''?)*"),expect$5(pass$1).to.reportError("start = ('a'?)*"),expect$5(pass$1).to.reportError("start = (''*)*"),expect$5(pass$1).to.reportError("start = ('a'*)*"),expect$5(pass$1).to.reportError("start = (''+)*"),expect$5(pass$1).to.not.reportError("start = ('a'+)*"),expect$5(pass$1).to.reportError("start = ('')*"),expect$5(pass$1).to.not.reportError("start = ('a')*"),expect$5(pass$1).to.reportError("start = (&{ })*"),expect$5(pass$1).to.reportError("start = (!{ })*"),expect$5(pass$1).to.reportError("start = 'a'|.., ('')*|"),expect$5(pass$1).to.not.reportError("start = 'a'|.., ('b')*|"),expect$5(pass$1).to.reportError(["start = a*","a = ''"].join("\n")),expect$5(pass$1).to.not.reportError(["start = a*","a = 'a'"].join("\n")),expect$5(pass$1).to.reportError("start = ''*"),expect$5(pass$1).to.not.reportError("start = 'a'*"),expect$5(pass$1).to.not.reportError("start = [a-d]*"),expect$5(pass$1).to.not.reportError("start = .*")}))}));var chai$4=require$$0,helpers=helpers$d,pass=reportUndefinedRules_1;chai$4.use(helpers);var expect$4=chai$4.expect;describe("compiler pass |reportUndefinedRules|",(function(){it("reports undefined rules",(function(){expect$4(pass).to.reportError("start = undefined",{message:'Rule "undefined" is not defined',location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}})}))}));var chai$3=require$$0,Stack=stack,expect$3=chai$3.expect;describe("utility class Stack",(function(){describe("for an empty stack",(function(){var e=void 0;beforeEach((function(){e=new Stack("rule","v","let",[42])})),describe("throws an error when attempting",(function(){it("`pop`",(function(){expect$3((function(){return e.pop()})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42")})),it("`top`",(function(){expect$3((function(){return e.top()})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42")})),it("`result`",(function(){expect$3((function(){return e.result()})).to.throw(RangeError,"Rule 'rule': The variable stack is empty, can't get the result")})),it("`index`",(function(){expect$3((function(){return e.index(-2)})).to.throw(RangeError,"Rule 'rule': The variable stack overflow: attempt to get a variable at a negative index -2.\nBytecode: 42"),expect$3((function(){return e.index(0)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42"),expect$3((function(){return e.index(2)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -3.\nBytecode: 42")})),it("`sourceMapPop`",(function(){expect$3((function(){return e.sourceMapPop()})).to.throw(RangeError,"Rule 'rule': Attempting to pop an empty source map stack.\nBytecode: 42")}))})),it("`defines` returns an empty string",(function(){expect$3(e.defines()).to.equal("")}))})),it("throws an error when attempting `pop` more than `push`",(function(){var e=new Stack("rule","v","let",[42]);e.push("1"),expect$3((function(){return e.pop(3)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -2.\nBytecode: 42")})),it("returns a variable with an index 0 for `result`",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),expect$3(e.result()).to.equal("v0")})),it("`defines` returns a define expression for all used variables",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),e.push("2"),e.pop(),e.push("3"),expect$3(e.defines()).to.equal("let v0, v1;")})),describe("`checkedIf` method",(function(){var e=void 0;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),describe("does not throws an error",(function(){it("without the else brach",(function(){expect$3((function(){return e.checkedIf(0,(function(){}))})).to.not.throw(),expect$3((function(){return e.checkedIf(0,(function(){return e.pop()}))})).to.not.throw(),expect$3((function(){return e.checkedIf(0,(function(){return e.push("2")}))})).to.not.throw()})),describe("when the stack pointer",(function(){it("was not moving in both the arms",(function(){function t(){}function r(){e.push("1"),e.pop()}function a(){e.push("1"),e.push("2"),e.pop(2)}function n(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$3((function(){return e.checkedIf(0,t,t)})).to.not.throw(),expect$3((function(){return e.checkedIf(0,r,r)})).to.not.throw(),expect$3((function(){return e.checkedIf(0,a,a)})).to.not.throw(),expect$3((function(){return e.checkedIf(0,n,n)})).to.not.throw()})),it("increases on the same value in both the arms",(function(){expect$3((function(){return e.checkedIf(0,(function(){return e.push("1")}),(function(){return e.push("2")}))})).to.not.throw()})),it("decreases on the same value in both the arms",(function(){e.push("2"),expect$3((function(){return e.checkedIf(0,(function(){return e.pop(2)}),(function(){e.pop(),e.pop()}))})).to.not.throw()}))}))})),describe("throws an error when the stack pointer",(function(){it("was not moving in `if` and decreases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: -1). Bytecode: 42")})),it("decreases in `if` and was not moving in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 0). Bytecode: 42")})),it("was not moving in `if` and increases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: 1). Bytecode: 42")})),it("increases in `if` and was not moving in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: 0). Bytecode: 42")})),it("decreases in `if` and increases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 1). Bytecode: 42")})),it("increases in `if` and decreases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: -1). Bytecode: 42")}))}))})),describe("`checkedLoop` method",(function(){var e=void 0;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),it("does not throws an error when the stack pointer was not moving",(function(){function t(){}function r(){e.push("1"),e.pop()}function a(){e.push("1"),e.push("2"),e.pop(2)}function n(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$3((function(){return e.checkedLoop(0,t)})).to.not.throw(),expect$3((function(){return e.checkedLoop(0,r)})).to.not.throw(),expect$3((function(){return e.checkedLoop(0,a)})).to.not.throw(),expect$3((function(){return e.checkedLoop(0,n)})).to.not.throw()})),it("throws an error when the stack pointer increases",(function(){expect$3((function(){return e.checkedLoop(0,(function(){return e.push("1")}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: 1). Bytecode: 42")})),it("throws an error when the stack pointer decreases",(function(){expect$3((function(){return e.checkedLoop(0,(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: -1). Bytecode: 42")}))})),describe("SourceNode handling",(function(){it("sourceNode handles unknown column",(function(){expect$3(Stack.sourceNode({source:"",start:{line:1,column:0,offset:0},end:{line:1,column:0,offset:0}},["foo"],"test").column).to.equal(null)}))}))}));var chai$2=require$$0,_a$1=utils$1,hex=_a$1.hex,stringEscape=_a$1.stringEscape,regexpClassEscape=_a$1.regexpClassEscape,base64=_a$1.base64,expect$2=chai$2.expect;describe("utility functions",(function(){it("hex",(function(){expect$2(hex("0")).to.equal("30"),expect$2(hex("\0")).to.equal("0"),expect$2(hex("\n")).to.equal("A"),expect$2(hex("\ufeff")).to.equal("FEFF")})),it("stringEscape",(function(){expect$2(stringEscape("abc")).to.equal("abc"),expect$2(stringEscape('\\"\0\b\t\n\v\f\r')).to.equal('\\\\\\"\\0\\b\\t\\n\\v\\f\\r'),expect$2(stringEscape("")).to.equal("\\x01\\x0F"),expect$2(stringEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$2(stringEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$2(stringEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("regexpClassEscape",(function(){expect$2(regexpClassEscape("\\\0\b\t\n\v\f\r")).to.equal("\\\\\\0\\b\\t\\n\\v\\f\\r"),expect$2(regexpClassEscape("/]^-")).to.equal("\\/\\]\\^\\-"),expect$2(regexpClassEscape("")).to.equal("\\x01\\x0F"),expect$2(regexpClassEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$2(regexpClassEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$2(regexpClassEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("base64",(function(){expect$2(base64(new Uint8Array([]))).to.equal(""),expect$2(base64(new Uint8Array([97]))).to.equal("YQ=="),expect$2(base64(new Uint8Array([97,98]))).to.equal("YWI="),expect$2(base64(new Uint8Array([97,98,99]))).to.equal("YWJj"),expect$2(base64(new Uint8Array([97,98,99,100]))).to.equal("YWJjZA=="),expect$2(base64(new Uint8Array([97,98,99,100,101]))).to.equal("YWJjZGU="),expect$2(base64(new Uint8Array([97,98,99,100,101,102]))).to.equal("YWJjZGVm")}))}));var chai$1=require$$0,_a=peg_1,GrammarError=_a.GrammarError,GrammarLocation=_a.GrammarLocation,expect$1=chai$1.expect,location={source:void 0,start:{offset:0,line:1,column:1},end:{offset:4,line:1,column:5}};describe("Grammar Errors",(function(){it("might not have a location",(function(){var e=new GrammarError("message");expect$1(e.location).to.equal(void 0),expect$1(e.toString()).to.equal("GrammarError: message")})),it("might have locations",(function(){location.source=void 0;var e=new GrammarError("message",location);expect$1(e.location).to.eql(location),expect$1(e.toString()).to.equal("GrammarError: message\n at 1:1"),e=new GrammarError("message",null,[{message:"Subinfo",location:location}]),expect$1(e.location).to.equal(null),expect$1(e.toString()).to.equal("GrammarError: message\n from 1:1: Subinfo"),location.source="foo.peggy",e=new GrammarError("message",location,[{message:"Subinfo",location:location}]),expect$1(e.toString()).to.equal("GrammarError: message\n at foo.peggy:1:1\n from foo.peggy:1:1: Subinfo")})),describe("formats",(function(){var e={source:"foo.peggy",text:"some error\nthat"},t={source:"foo.peggy",start:{offset:5,line:1,column:6},end:{offset:11,line:2,column:1}},r=[{message:"Subinfo",location:t}];describe("single problem",(function(){describe("with main location",(function(){location.source="foo.peggy";var t=new GrammarError("message",location,r);it("with zero-length error at the end",(function(){var t=new GrammarError("message",{source:"foo.peggy",start:{offset:4,line:1,column:5},end:{offset:4,line:1,column:5}});expect$1(t.format([e])).to.equal("error: message\n --\x3e foo.peggy:1:5\n |\n1 | some error\n | ^")})),it("with source",(function(){expect$1(t.format([e])).to.equal("error: message\n --\x3e foo.peggy:1:1\n |\n1 | some error\n | ^^^^\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("without source",(function(){expect$1(t.format([])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo")}))})),describe("without main location",(function(){var t=new GrammarError("message",null,r);it("with source",(function(){expect$1(t.format([e])).to.equal("error: message\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("without source",(function(){expect$1(t.format([])).to.equal("error: message\n at foo.peggy:1:6: Subinfo")}))}))})),describe("several problems",(function(){describe("with main location",(function(){location.source="foo.peggy";var a=new GrammarError("message",location,r);a.problems.push(["warning","Warning message",t,[{message:"Warning Subinfo",location:t}]]),a.problems.push(["info","Info message",null,[]]),it("null source text",(function(){expect$1(a.format([{source:null,text:null}])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6\n at foo.peggy:1:6: Warning Subinfo"),expect$1(a.format([{source:null,text:void 0}])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6\n at foo.peggy:1:6: Warning Subinfo")})),it("with source",(function(){expect$1(a.format([e])).to.equal("error: message\n --\x3e foo.peggy:1:1\n |\n1 | some error\n | ^^^^\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^\n\nwarning: Warning message\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^\nnote: Warning Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("with GrammarLocation",(function(){var r=new GrammarLocation("foo.peggy",{offset:12,line:15,column:8});expect$1(String(r)).to.equal("foo.peggy"),location.source=r,t.source=r,a.diagnostics.push({message:"Column not offset",location:{source:r,start:{offset:11,line:2,column:1},end:{offset:15,line:2,column:5}}}),expect$1(a.format([{source:r,text:e.text}])).to.equal("error: message\n --\x3e foo.peggy:15:8\n |\n15 | some error\n | ^^^^\nnote: Subinfo\n --\x3e foo.peggy:15:13\n |\n15 | some error\n | ^^^^^\nnote: Column not offset\n --\x3e foo.peggy:16:1\n |\n16 | that\n | ^^^^\n\nwarning: Warning message\n --\x3e foo.peggy:15:13\n |\n15 | some error\n | ^^^^^\nnote: Warning Subinfo\n --\x3e foo.peggy:15:13\n |\n15 | some error\n | ^^^^^"),location.source="foo.peggy",t.source="foo.peggy",a.diagnostics.pop()})),it("without source",(function(){expect$1(a.format([])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6\n at foo.peggy:1:6: Warning Subinfo")}))})),describe("without main location",(function(){var a=new GrammarError("message",null,r);a.problems.push(["warning","Warning message",null,[{message:"Warning Subinfo",location:t}]]),a.problems.push(["info","Info message",null,[]]),it("with source",(function(){expect$1(a.format([e])).to.equal("error: message\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^\n\nwarning: Warning message\nnote: Warning Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("without source",(function(){expect$1(a.format([])).to.equal("error: message\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6: Warning Subinfo")}))}))}))}))}));var __spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n1&&e.delimiter&&n(e.delimiter)))},semantic_and:a,semantic_not:a,rule_ref:function(t){var r=asts$8.findRule(e,t.name);return r?n(r):void 0},library_ref:function(){return!1},literal:function(e){return""!==e.value},class:r,any:r});return n(t)},combine:function(e){return e.reduce((function(e,t){return e.topLevelInitializer=combinePossibleArrays(e.topLevelInitializer,t.topLevelInitializer),e.initializer=combinePossibleArrays(e.initializer,t.initializer),e.rules=e.rules.concat(t.rules),e}))}},asts_1=asts$8;function addImportedRules$1(e){for(var t=0,r=0,a=e.imports;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$a.build({rule:function(e){var t,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=o(e.expression),++r>6)throw new GrammarError$4("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:a,choice:function(e){return e.match=n(e.alternatives,!0)},action:a,sequence:function(e){return e.match=n(e.elements,!1)},labeled:a,text:a,simple_and:a,simple_not:function(e){return e.match=-o(e.expression)},optional:r,zero_or_more:r,one_or_more:a,repeated:function(e){var t=o(e.expression),r=e.delimiter?o(e.delimiter):NEVER_MATCH$1,a=e.min?e.min:e.max;return"constant"!==a.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&a.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===a.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&a.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&a.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===a.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:a,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?t.match=o(r):SOMETIMES_MATCH$1},library_ref:function(){return 0},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$5=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n1?f(SOMETIMES_MATCH,[op$2.IF_ERROR],l([op$2.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=u(t.env),a="sequence"!==e.expression.type||0===e.expression.elements.length,n=v(e.expression,{sp:t.sp+(a?1:0),env:r,action:e}),o=e.expression.match||0,s=a&&o!==NEVER_MATCH?i(!1,Object.keys(r),e):-1;return a?l([op$2.PUSH_CURR_POS],n,f(o,[op$2.IF_NOT_ERROR],l([op$2.LOAD_SAVED_POS,1],d(s,1,r,t.sp+2)),[]),[op$2.NIP]):n},sequence:function(e,t){return l([op$2.PUSH_CURR_POS],function t(r,a){if(r.length>0){var n=e.elements.length-r.length+1;return l(v(r[0],{sp:a.sp,env:a.env,pluck:a.pluck,action:null}),f(r[0].match||0,[op$2.IF_NOT_ERROR],t(r.slice(1),{sp:a.sp+1,env:a.env,pluck:a.pluck,action:a.action}),l(n>1?[op$2.POP_N,n]:[op$2.POP],[op$2.POP_CURR_POS],[op$2.PUSH_FAILED])))}if(a.pluck&&a.pluck.length>0)return l([op$2.PLUCK,e.elements.length+1,a.pluck.length],a.pluck.map((function(e){return a.sp-e})));if(a.action){var o=i(!1,Object.keys(a.env),a.action);return l([op$2.LOAD_SAVED_POS,e.elements.length],d(o,e.elements.length+1,a.env,a.sp))}return l([op$2.WRAP,e.elements.length],[op$2.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,a){var n=a.env,o=e.label,s=a.sp+1;o&&(n=u(a.env),a.env[o]=s),e.pick&&a.pluck.push(s);var c=v(e.expression,{sp:a.sp,env:n,action:null});return o&&e.labelLocation&&t&&"source-and-map"===t.output?l([op$2.SOURCE_MAP_LABEL_PUSH,s,r.add(o),p(e.labelLocation)],c,[op$2.SOURCE_MAP_LABEL_POP,s]):c},text:function(e,t){return l([op$2.PUSH_CURR_POS],v(e.expression,{sp:t.sp+1,env:u(t.env),action:null}),f(e.match||0,[op$2.IF_NOT_ERROR],l([op$2.POP],[op$2.TEXT]),[op$2.NIP]))},simple_and:function(e,t){return m(e.expression,!1,t)},simple_not:function(e,t){return m(e.expression,!0,t)},optional:function(e,t){return l(v(e.expression,{sp:t.sp,env:u(t.env),action:null}),f(-(e.expression.match||0),[op$2.IF_ERROR],l([op$2.POP],[op$2.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:u(t.env),action:null});return l([op$2.PUSH_EMPTY_ARRAY],r,$(r),[op$2.POP])},one_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:u(t.env),action:null});return l([op$2.PUSH_EMPTY_ARRAY],r,f(e.expression.match||0,[op$2.IF_NOT_ERROR],l($(r),[op$2.POP]),l([op$2.POP],[op$2.POP],[op$2.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,a="constant"!==r.type||r.value>0,n="constant"!==e.max.type&&null!==e.max.value,o=a?2:1,s=e.min?h(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},c=h(e.max,t.env,s.sp,o),i=v(e.expression,{sp:c.sp+o,env:u(t.env),action:null}),p=null!==e.delimiter?v(e.expression,{sp:c.sp+o+1,env:u(t.env),action:null}):i,d=function(e,t,r,a,n){return e?l([op$2.PUSH_CURR_POS],v(e,{sp:a.sp+n+1,env:u(a.env),action:null}),f(e.match||0,[op$2.IF_NOT_ERROR],l([op$2.POP],r,f(-t,[op$2.IF_ERROR],[op$2.POP,op$2.POP_CURR_POS,op$2.PUSH_FAILED],[op$2.NIP])),[op$2.NIP])):r}(e.delimiter,e.expression.match||0,p,t,o),m=x(d,e.max),g=n?x(i,e.max):i,b=l(a?[op$2.PUSH_CURR_POS]:[],[op$2.PUSH_EMPTY_ARRAY],g,$(m),[op$2.POP]);return l(s.pre,c.pre,a?function(e,t){var r="constant"===t.type?[op$2.IF_LT,t.value]:[op$2.IF_LT_DYNAMIC,t.sp||0];return l(e,f(SOMETIMES_MATCH,r,[op$2.POP,op$2.POP_CURR_POS,op$2.PUSH_FAILED],[op$2.NIP]))}(b,r):b,c.post,s.post)},group:function(e,t){return v(e.expression,{sp:t.sp,env:u(t.env),action:null})},semantic_and:function(e,t){return g(e,!1,t)},semantic_not:function(e,t){return g(e,!0,t)},rule_ref:function(t){return[op$2.RULE,asts$6.indexOfRule(e,t.name)]},library_ref:function(e){return[op$2.LIBRARY_RULE,e.libraryNumber,o.add(e.name)]},literal:function(e){if(e.value.length>0){var t=e.match||0,a=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?r.add(e.ignoreCase?e.value.toLowerCase():e.value):-1,o=t!==ALWAYS_MATCH?n.add({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):-1;return f(t,e.ignoreCase?[op$2.MATCH_STRING_IC,a]:[op$2.MATCH_STRING,a],e.ignoreCase?[op$2.ACCEPT_N,e.value.length]:[op$2.ACCEPT_STRING,a],[op$2.FAIL,o])}return[op$2.PUSH_EMPTY_STRING]},class:function(e){var t=e.match||0,r=t===SOMETIMES_MATCH?a.add(e):-1,o=t!==ALWAYS_MATCH?n.add({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):-1;return f(t,[op$2.MATCH_CHAR_CLASS,r],[op$2.ACCEPT_N,1],[op$2.FAIL,o])},any:function(e){var t=e.match||0,r=t!==ALWAYS_MATCH?n.add({type:"any"}):-1;return f(t,[op$2.MATCH_ANY],[op$2.ACCEPT_N,1],[op$2.FAIL,r])}},t&&"source-and-map"===t.output&&Object.keys(b).forEach((function(e){var t=b[e];b[e]=function(e){for(var r=[],a=1;a>>=VLQ_BASE_SHIFT$1,a>0&&(t|=VLQ_CONTINUATION_BIT$1),r+=base64$5.encode(t)}while(a>0);return r};var util$8={};function getArg$1(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$8.getArg=getArg$1;const supportsNullProto$1=!("__proto__"in Object.create(null));function identity$1(e){return e}function toSetString$1(e){return isProtoString$1(e)?"$"+e:e}function fromSetString$1(e){return isProtoString$1(e)?e.slice(1):e}function isProtoString$1(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp$1(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated$1(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp$1(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp$1(e.name,t.name)))))}util$8.toSetString=supportsNullProto$1?identity$1:toSetString$1,util$8.fromSetString=supportsNullProto$1?identity$1:fromSetString$1,util$8.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated$1;const PROTOCOL$1="http:",PROTOCOL_AND_HOST$1=`${PROTOCOL$1}//host`;function createSafeHandler$1(e){return t=>{const r=getURLType$1(t),a=buildSafeBase$1(t),n=new URL(t,a);e(n);const o=n.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL$1.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST$1.length):computeRelativeURL$1(a,o)}}function withBase$1(e,t){return new URL(e,t).toString()}function buildUniqueSegment$1(e,t){let r=0;for(;;){const a=e+r++;if(-1===t.indexOf(a))return a}}function buildSafeBase$1(e){const t=e.split("..").length-1,r=buildUniqueSegment$1("p",e);let a=`${PROTOCOL_AND_HOST$1}/`;for(let e=0;e0&&!a[a.length-1]&&a.pop();r.length>0&&a.length>0&&r[0]===a[0];)r.shift(),a.shift();return a.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory$1=createSafeHandler$1((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize$1=createSafeHandler$1((e=>{}));function join$1(e,t){const r=getURLType$1(t),a=getURLType$1(e);if(e=ensureDirectory$1(e),"absolute"===r)return withBase$1(t,void 0);if("absolute"===a)return withBase$1(t,e);if("scheme-relative"===r)return normalize$1(t);if("scheme-relative"===a)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL$1.length);if("path-absolute"===r)return normalize$1(t);if("path-absolute"===a)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL_AND_HOST$1.length);const n=buildSafeBase$1(t+e);return computeRelativeURL$1(n,withBase$1(t,withBase$1(e,n)))}function relative$1(e,t){const r=relativeIfPossible$1(e,t);return"string"==typeof r?r:normalize$1(t)}function relativeIfPossible$1(e,t){if(getURLType$1(e)!==getURLType$1(t))return null;const r=buildSafeBase$1(e+t),a=new URL(e,r),n=new URL(t,r);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==a.protocol||n.user!==a.user||n.password!==a.password||n.hostname!==a.hostname||n.port!==a.port?null:computeRelativeURL$1(a,n)}util$8.normalize=normalize$1,util$8.join=join$1,util$8.relative=relative$1;var arraySet$1={};let ArraySet$4=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const a=new e;for(let e=0,n=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||a==r&&o>=n||util$7.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$3=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter$1(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$7.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList$1.MappingList=MappingList$3;const base64VLQ$1=base64Vlq$1,util$6=util$8,ArraySet$3=arraySet$1.ArraySet,MappingList$2=mappingList$1.MappingList;let SourceMapGenerator$3=class e{constructor(e){e||(e={}),this._file=util$6.getArg(e,"file",null),this._sourceRoot=util$6.getArg(e,"sourceRoot",null),this._skipValidation=util$6.getArg(e,"skipValidation",!1),this._sources=new ArraySet$3,this._names=new ArraySet$3,this._mappings=new MappingList$2,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,a=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$6.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)})),t.sources.forEach((function(e){let n=e;null!=r&&(n=util$6.relative(r,e)),a._sources.has(n)||a._sources.add(n);const o=t.sourceContentFor(e);null!=o&&a.setSourceContent(e,o)})),a}addMapping(e){const t=util$6.getArg(e,"generated"),r=util$6.getArg(e,"original",null);let a=util$6.getArg(e,"source",null),n=util$6.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,n),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r&&r.line,originalColumn:r&&r.column,source:a,name:n})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$6.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$6.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$6.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let a=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.');a=e.file}const n=this._sourceRoot;null!=n&&(a=util$6.relative(n,a));const o=this._mappings.toArray().length>0?new ArraySet$3:this._sources,s=new ArraySet$3;this._mappings.unsortedForEach((function(t){if(t.source===a&&null!=t.originalLine){const a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=util$6.join(r,t.source)),null!=n&&(t.source=util$6.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}const c=t.source;null==c||o.has(c)||o.add(c);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=util$6.join(r,t)),null!=n&&(t=util$6.relative(n,t)),this.setSourceContent(t,a))}),this)}_validateMapping(e,t,r,a){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&&!r&&!a);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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:a}))}_serializeMappings(){let e,t,r,a,n=0,o=1,s=0,c=0,i=0,p=0,u="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$6.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ$1.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=base64VLQ$1.encode(a-p),p=a,e+=base64VLQ$1.encode(t.originalLine-1-c),c=t.originalLine-1,e+=base64VLQ$1.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ$1.encode(r-i),i=r)),u+=e}return u}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$6.relative(t,e));const r=util$6.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$3.prototype._version=3,sourceMapGenerator$1.SourceMapGenerator=SourceMapGenerator$3;var sourceNode$1={};const SourceMapGenerator$2=sourceMapGenerator$1.SourceMapGenerator,util$5=util$8,REGEX_NEWLINE$1=/(\r?\n)/,NEWLINE_CODE$1=10,isSourceNode$1="$$$isSourceNode$$$";let SourceNode$4=class e{constructor(e,t,r,a,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==n?null:n,this[isSourceNode$1]=!0,null!=a&&this.add(a)}static fromStringWithSourceMap(t,r,a){const n=new e,o=t.split(REGEX_NEWLINE$1);let s=0;const c=function(){return e()+(e()||"");function e(){return s=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode$1]&&"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 r=0,a=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.sourceNode=function(e,t,r){var a=GrammarLocation$3.offsetStart(e);return new SourceNode$3(a.line,a.column?a.column-1:null,String(e.source),t,r)},e.prototype.push=function(t){++this.sp>this.maxSp&&(this.maxSp=this.sp);var r=this.labels[this.sp],a=[this.name(this.sp)," = ",t,";"];if(r){if(this.sourceMapStack.length){var n=e.sourceNode(r.location,a.splice(0,2),r.label),o=this.sourceMapPopInternal(),s=o.parts,c=o.location,i=c.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop();if(!e)throw new RangeError("Rule '".concat(this.ruleName,"': Attempting to pop an empty source map stack.\nBytecode: ").concat(this.bytecode));var t=e[0],r=e[1],a=e[2],n=t.splice(r).map((function(e){return e instanceof SourceNode$3?e:e+"\n"}));if(n.length){var o=GrammarLocation$3.offsetStart(a);t.push(new SourceNode$3(o.line,o.column-1,String(a.source),n))}return{parts:t,location:a}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],n+=t[(3&e[o])<<4|e[o+1]>>4],n+=t[(15&e[o+1])<<2|e[o+2]>>6],n+=t[63&e[o+2]];return 1===r?(n+=t[e[a]>>2],n+=t[(3&e[a])<<4],n+="=="):2===r&&(n+=t[e[a]>>2],n+=t[(3&e[a])<<4|e[a+1]>>4],n+=t[(15&e[a+1])<<2],n+="="),n}utils$1.hex=hex$1,utils$1.stringEscape=stringEscape$2,utils$1.regexpClassEscape=regexpClassEscape$2,utils$1.base64=base64$4;var OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,a){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=t,n.found=r,n.location=a,n.name="SyntaxError",n}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,a={},n=(t=void 0!==t?t:{}).grammarSource,o={Grammar:Br,ImportsAndSource:function(){var t,r,n;return t=Ar,r=function(){var t,r;return t=Ar,r=Ar,Mr(),r=e.substring(r,Ar),yr=t,At(r)}(),n=function(){var t,r,n,o;for(t=Ar,r=Ar,n=[],e.length>Ar?(o=e.charAt(Ar),Ar++):(o=a,0===kr&&Or(ie));o!==a;)n.push(o),e.length>Ar?(o=e.charAt(Ar),Ar++):(o=a,0===kr&&Or(ie));return r=e.substring(r,Ar),yr=t,vt(r)}(),yr=t,bt(r,n)}},s=Br,c="import",i=";",p=",",u="*",l="as",f="{",d="}",m="from",g="=",$="/",h="@",x=":",b="|",v="..",A="(",y=")",S=".",_="\n",E="\r\n",k="/*",T="*/",C="//",w="\\",P="i",R='"',L="'",F="[",O="^",B="]",M="-",D="0",I="b",j="f",N="n",U="r",q="t",G="v",H="x",z="u",W=/^[!$&]/,V=/^[*-+?]/,Y=/^[!&]/,Q=/^[\t\v-\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/,J=/^[\n\r\u2028\u2029]/,X=/^[\r\u2028-\u2029]/,K=/^[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Z=/^[$0-9_\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u09E6-\u09EF\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B62-\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18-\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F3F\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19D9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u203F-\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099-\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F1\uA900-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5-\uAAF6\uABE3-\uABEA\uABEC-\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33-\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/,ee=/^[\n\r"\\\u2028-\u2029]/,te=/^[\n\r'\\\u2028-\u2029]/,re=/^[\n\r\\-\]\u2028-\u2029]/,ae=/^["'\\]/,ne=/^[0-9ux]/,oe=/^[0-9]/,se=/^[0-9a-f]/i,ce=/^[{}]/,ie={type:"any"},pe=wr("import",!1),ue=wr(";",!1),le=wr(",",!1),fe=wr("*",!1),de=wr("as",!1),me=wr("{",!1),ge=wr("}",!1),$e=wr("from",!1),he=wr("=",!1),xe=wr("/",!1),be=wr("@",!1),ve=wr(":",!1),Ae=Pr(["!","$","&"],!1,!1),ye=Pr([["*","+"],"?"],!1,!1),Se=wr("|",!1),_e=wr("..",!1),Ee=wr("(",!1),ke=wr(")",!1),Te=wr(".",!1),Ce=Pr(["!","&"],!1,!1),we=Rr("whitespace"),Pe=Pr(["\t",["\v","\f"]," "," "," ",[" "," "]," "," "," ","\ufeff"],!1,!1),Re=Pr(["\n","\r","\u2028","\u2029"],!1,!1),Le=Rr("end of line"),Fe=wr("\n",!1),Oe=wr("\r\n",!1),Be=Pr(["\r",["\u2028","\u2029"]],!1,!1),Me=Rr("comment"),De=wr("/*",!1),Ie=wr("*/",!1),je=wr("//",!1),Ne=Rr("identifier"),Ue=Pr([["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԯ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏽ"],["ᏸ","ᏽ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚝ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","Ɬ"],["Ʞ","ꞷ"],["ꟷ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꧠ","ꧤ"],["ꧦ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꬰ","ꭚ"],["ꭜ","ꭥ"],["ꭰ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),qe=wr("\\",!1),Ge=Pr(["$",["0","9"],"_",["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","٩"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],["۰","۹"],"ܑ",["ܰ","݊"],["ަ","ް"],["߀","߉"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ः"],["ऺ","़"],["ा","ॏ"],["॑","ॗ"],["ॢ","ॣ"],["०","९"],["ঁ","ঃ"],"়",["া","ৄ"],["ে","ৈ"],["ো","্"],"ৗ",["ৢ","ৣ"],["০","৯"],["ਁ","ਃ"],"਼",["ਾ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["੦","ੱ"],"ੵ",["ઁ","ઃ"],"઼",["ા","ૅ"],["ે","ૉ"],["ો","્"],["ૢ","ૣ"],["૦","૯"],["ଁ","ଃ"],"଼",["ା","ୄ"],["େ","ୈ"],["ୋ","୍"],["ୖ","ୗ"],["ୢ","ୣ"],["୦","୯"],"ஂ",["ா","ூ"],["ெ","ை"],["ொ","்"],"ௗ",["௦","௯"],["ఀ","ః"],["ా","ౄ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],["౦","౯"],["ಁ","ಃ"],"಼",["ಾ","ೄ"],["ೆ","ೈ"],["ೊ","್"],["ೕ","ೖ"],["ೢ","ೣ"],["೦","೯"],["ഁ","ഃ"],["ാ","ൄ"],["െ","ൈ"],["ൊ","്"],"ൗ",["ൢ","ൣ"],["൦","൯"],["ං","ඃ"],"්",["ා","ු"],"ූ",["ෘ","ෟ"],["෦","෯"],["ෲ","ෳ"],"ั",["ิ","ฺ"],["็","๎"],["๐","๙"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["໐","໙"],["༘","༙"],["༠","༩"],"༵","༷","༹",["༾","༿"],["ཱ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ါ","ှ"],["၀","၉"],["ၖ","ၙ"],["ၞ","ၠ"],["ၢ","ၤ"],["ၧ","ၭ"],["ၱ","ၴ"],["ႂ","ႍ"],["ႏ","ႝ"],["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","៓"],"៝",["០","៩"],["᠋","᠍"],["᠐","᠙"],"ᢩ",["ᤠ","ᤫ"],["ᤰ","᤻"],["᥆","᥏"],["᧐","᧙"],["ᨗ","ᨛ"],["ᩕ","ᩞ"],["᩠","᩼"],["᩿","᪉"],["᪐","᪙"],["᪰","᪽"],["ᬀ","ᬄ"],["᬴","᭄"],["᭐","᭙"],["᭫","᭳"],["ᮀ","ᮂ"],["ᮡ","ᮭ"],["᮰","᮹"],["᯦","᯳"],["ᰤ","᰷"],["᱀","᱉"],["᱐","᱙"],["᳐","᳒"],["᳔","᳨"],"᳭",["ᳲ","᳴"],["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["‌","‍"],["‿","⁀"],"⁔",["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〯"],["゙","゚"],["꘠","꘩"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠣ","ꠧ"],["ꢀ","ꢁ"],["ꢴ","꣄"],["꣐","꣙"],["꣠","꣱"],["꤀","꤉"],["ꤦ","꤭"],["ꥇ","꥓"],["ꦀ","ꦃ"],["꦳","꧀"],["꧐","꧙"],"ꧥ",["꧰","꧹"],["ꨩ","ꨶ"],"ꩃ",["ꩌ","ꩍ"],["꩐","꩙"],["ꩻ","ꩽ"],"ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫫ","ꫯ"],["ꫵ","꫶"],["ꯣ","ꯪ"],["꯬","꯭"],["꯰","꯹"],"ﬞ",["︀","️"],["︠","︯"],["︳","︴"],["﹍","﹏"],["0","9"],"_"],!1,!1),He=Rr("literal"),ze=wr("i",!1),We=Rr("string"),Ve=wr('"',!1),Ye=wr("'",!1),Qe=Pr(["\n","\r",'"',"\\",["\u2028","\u2029"]],!1,!1),Je=Pr(["\n","\r","'","\\",["\u2028","\u2029"]],!1,!1),Xe=Rr("character class"),Ke=wr("[",!1),Ze=wr("^",!1),et=wr("]",!1),tt=wr("-",!1),rt=Pr(["\n","\r",["\\","]"],["\u2028","\u2029"]],!1,!1),at=wr("0",!1),nt=Pr(['"',"'","\\"],!1,!1),ot=wr("b",!1),st=wr("f",!1),ct=wr("n",!1),it=wr("r",!1),pt=wr("t",!1),ut=wr("v",!1),lt=Pr([["0","9"],"u","x"],!1,!1),ft=wr("x",!1),dt=wr("u",!1),mt=Pr([["0","9"]],!1,!1),gt=Pr([["0","9"],["a","f"]],!1,!0),$t=Rr("code block"),ht=Pr(["{","}"],!1,!1),xt=function(e,t,r,a){return{type:"grammar",imports:e,topLevelInitializer:t,initializer:r,rules:a,location:Tr()}},bt=function(e,t){return[e,t]},vt=function(e){return{type:"top_level_initializer",code:e,codeLocation:Tr()}},At=function(e){return{type:"top_level_initializer",code:e,codeLocation:Tr()}},yt=function(e,t){return{type:"grammar_import",what:e,from:t,location:Tr()}},St=function(e){return{type:"grammar_import",what:[],from:e,location:Tr()}},_t=function(e,t){return t?Array.isArray(t)?(t.unshift(e),t):[e,t]:[e]},Et=function(e){return{type:"import_binding_default",binding:e[0],location:e[1]}},kt=function(e){return[{type:"import_binding_all",binding:e[0],location:e[1]}]},Tt=function(){return[]},Ct=function(e,t){return{type:"import_binding_rename",rename:e[0],renameLocation:e[1],binding:t[0],location:t[1]}},wt=function(e){return{type:"import_binding",binding:e[0],location:e[1]}},Pt=function(e){return{type:"import_module_specifier",module:e,location:Tr()}},Rt=function(e){return[e,Tr()]},Lt=function(e){return[e,Tr()]},Ft=function(e){return Sa.indexOf(e[0])>=0&&Cr("Binding identifier can't be a reserved word \"".concat(e[0],'"'),e[1]),e[0]},Ot=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Tr()}},Bt=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Tr()}},Mt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:Tr()}:r,location:Tr()}},Dt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:Tr()}:e},It=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:Tr()}:e},jt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:Tr()}:e},Nt=function(e,t,r){return r.type.startsWith("semantic_")&&Cr('"@" 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:r,location:Tr()}},Ut=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:Tr()}},qt=function(){return Tr()},Gt=function(e){return Sa.indexOf(e[0])>=0&&Cr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Ht=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:Tr()}},zt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:Tr()}},Wt=function(e,t,r){var a=t[0],n=t[1];return"constant"===n.type&&0===n.value&&Cr("The maximum count of repetitions of the rule must be > 0",n.location),{type:"repeated",min:a,max:n,expression:e,delimiter:r,location:Tr()}},Vt=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},Yt=function(e){return[null,e]},Qt=function(e){return{type:"constant",value:e,location:Tr()}},Jt=function(e){return{type:"variable",value:e[0],location:Tr()}},Xt=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:Tr()}},Kt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Tr()}:e},Zt=function(e,t){return{type:"library_ref",name:t[0],library:e[0],libraryNumber:-1,location:Tr()}},er=function(e){return{type:"rule_ref",name:e[0],location:Tr()}},tr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:Tr()}},rr=function(e,t){return[e+t.join(""),Tr()]},ar=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:Tr()}},nr=function(e){return e.join("")},or=function(e){return e.join("")},sr=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:Tr()}},cr=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&Cr("Invalid character range: "+e.substring(yr,Ar)+"."),[t,r]},ir=function(){return""},pr=function(){return"\0"},ur=function(){return"\b"},lr=function(){return"\f"},fr=function(){return"\n"},dr=function(){return"\r"},mr=function(){return"\t"},gr=function(){return"\v"},$r=function(e){return String.fromCharCode(parseInt(e,16))},hr=function(e){return String.fromCharCode(parseInt(e,16))},xr=function(){return{type:"any",location:Tr()}},br=function(e){return[e,Tr()]},vr=function(e){return parseInt(e,10)},Ar=0|t.peg$currPos,yr=Ar,Sr=[{line:1,column:1}],_r=Ar,Er=t.peg$maxFailExpected||[],kr=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=o[t.startRule]}function Tr(){return Fr(yr,Ar)}function Cr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Fr(yr,Ar))}function wr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Pr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Rr(e){return{type:"other",description:e}}function Lr(t){var r,a=Sr[t];if(a)return a;if(t>=Sr.length)r=Sr.length-1;else for(r=t;!Sr[--r];);for(a={line:(a=Sr[r]).line,column:a.column};r_r&&(_r=Ar,Er=[]),Er.push(e))}function Br(){var t,r,n,o,s,c,i,p;if(t=Ar,r=Mr(),n=Ar,o=Aa(),s=function(){var t,r,n,o;return t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a&&(n=ba())!==a?(125===e.charCodeAt(Ar)?(o=d,Ar++):(o=a,0===kr&&Or(ge)),o!==a&&ya()!==a?(yr=t,t=Ot(n)):(Ar=t,t=a)):(Ar=t,t=a),t}(),s!==a?n=s:(Ar=n,n=a),n===a&&(n=null),o=Ar,s=Aa(),c=function(){var e,t;return e=Ar,(t=ba())!==a&&ya()!==a?(yr=e,e=Bt(t)):(Ar=e,e=a),e}(),c!==a?o=c:(Ar=o,o=a),o===a&&(o=null),s=Aa(),c=[],i=Ar,(p=Gr())!==a?(Aa(),i=p):(Ar=i,i=a),i!==a)for(;i!==a;)c.push(i),i=Ar,(p=Gr())!==a?(Aa(),i=p):(Ar=i,i=a);else c=a;return c!==a?(yr=t,t=xt(r,n,o,c)):(Ar=t,t=a),t}function Mr(){var e,t;for(e=[],t=Dr();t!==a;)e.push(t),t=Dr();return e}function Dr(){var t,r,n,o,s,u,l,f;return t=Ar,Aa(),e.substr(Ar,6)===c?(r=c,Ar+=6):(r=a,0===kr&&Or(pe)),r!==a?(Aa(),n=function(){var t,r,n,o,s;return(t=Ir())===a&&(t=jr())===a&&(t=Ar,r=function(){var e,t;return e=Ar,(t=qr())!==a&&(yr=e,t=Et(t)),e=t}(),r!==a?(n=Ar,Aa(),44===e.charCodeAt(Ar)?(o=p,Ar++):(o=a,0===kr&&Or(le)),o!==a?(Aa(),(s=Ir())===a&&(s=jr()),s!==a?n=s:(Ar=n,n=a)):(Ar=n,n=a),n===a&&(n=null),yr=t,t=_t(r,n)):(Ar=t,t=a)),t}(),n!==a?(o=Aa(),s=function(){var t,r,n;return t=Ar,e.substr(Ar,4)===m?(r=m,Ar+=4):(r=a,0===kr&&Or($e)),r!==a?(Aa(),(n=Ur())!==a?t=n:(Ar=t,t=a)):(Ar=t,t=a),t}(),s!==a?(u=Ar,l=Aa(),59===e.charCodeAt(Ar)?(f=i,Ar++):(f=a,0===kr&&Or(ue)),f!==a?u=l=[l,f]:(Ar=u,u=a),u===a&&(u=null),yr=t,t=yt(n,s)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,Aa(),e.substr(Ar,6)===c?(r=c,Ar+=6):(r=a,0===kr&&Or(pe)),r!==a?(Aa(),(n=Ur())!==a?(o=Ar,s=Aa(),59===e.charCodeAt(Ar)?(u=i,Ar++):(u=a,0===kr&&Or(ue)),u!==a?o=s=[s,u]:(Ar=o,o=a),o===a&&(o=null),yr=t,t=St(n)):(Ar=t,t=a)):(Ar=t,t=a)),t}function Ir(){var t,r,n,o;return t=Ar,42===e.charCodeAt(Ar)?(r=u,Ar++):(r=a,0===kr&&Or(fe)),r!==a?(Aa(),e.substr(Ar,2)===l?(n=l,Ar+=2):(n=a,0===kr&&Or(de)),n!==a?(Aa(),(o=qr())!==a?(yr=t,t=kt(o)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t}function jr(){var t,r,n,o,s;return t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a?(Aa(),125===e.charCodeAt(Ar)?(n=d,Ar++):(n=a,0===kr&&Or(ge)),n!==a?(yr=t,t=Tt()):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a?(Aa(),n=function(){var t,r,n,o,s,c;for(t=Ar,r=[],n=Nr();n!==a;)r.push(n),n=Ar,o=Ar,s=Aa(),44===e.charCodeAt(Ar)?(c=p,Ar++):(c=a,0===kr&&Or(le)),c!==a?o=s=[s,c,Aa()]:(Ar=o,o=a),o!==a&&(o=Nr())===a?(Ar=n,n=a):n=o;return r.length<1?(Ar=t,t=a):t=r,t}(),n!==a?(Aa(),o=Ar,44===e.charCodeAt(Ar)?(s=p,Ar++):(s=a,0===kr&&Or(le)),s!==a?o=s=[s,Aa()]:(Ar=o,o=a),o===a&&(o=null),125===e.charCodeAt(Ar)?(s=d,Ar++):(s=a,0===kr&&Or(ge)),s!==a?t=n:(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a)),t}function Nr(){var t,r,n,o;return t=Ar,r=function(){var e,t;return(e=oa())===a&&(e=Ar,(t=ia())!==a&&(yr=e,t=Lt(t)),e=t),e}(),r!==a?(Aa(),e.substr(Ar,2)===l?(n=l,Ar+=2):(n=a,0===kr&&Or(de)),n!==a?(Aa(),(o=qr())!==a?(yr=t,t=Ct(r,o)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,(r=qr())!==a&&(yr=t,r=wt(r)),t=r),t}function Ur(){var e,t;return e=Ar,(t=ia())!==a&&(yr=e,t=Pt(t)),t}function qr(){var e,t;return e=Ar,t=function(){var e,t;return e=Ar,(t=oa())!==a&&(yr=e,t=Ft(t)),e=t}(),t!==a&&(yr=e,t=Rt(t)),t}function Gr(){var t,r,n,o,s;return t=Ar,(r=oa())!==a?(Aa(),n=Ar,(o=ia())!==a?(Aa(),n=o):(Ar=n,n=a),n===a&&(n=null),61===e.charCodeAt(Ar)?(o=g,Ar++):(o=a,0===kr&&Or(he)),o!==a?(Aa(),(s=Hr())!==a&&ya()!==a?(yr=t,t=Mt(r,n,s)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t}function Hr(){var t,r,n,o,s,c;if(t=Ar,(r=zr())!==a){for(n=[],o=Ar,Aa(),47===e.charCodeAt(Ar)?(s=$,Ar++):(s=a,0===kr&&Or(xe)),s!==a?(Aa(),(c=zr())!==a?o=c:(Ar=o,o=a)):(Ar=o,o=a);o!==a;)n.push(o),o=Ar,Aa(),47===e.charCodeAt(Ar)?(s=$,Ar++):(s=a,0===kr&&Or(xe)),s!==a?(Aa(),(c=zr())!==a?o=c:(Ar=o,o=a)):(Ar=o,o=a);yr=t,t=Dt(r,n)}else Ar=t,t=a;return t}function zr(){var e,t,r,n;return e=Ar,t=function(){var e,t,r,n,o;if(e=Ar,(t=Wr())!==a){for(r=[],n=Ar,Aa(),(o=Wr())!==a?n=o:(Ar=n,n=a);n!==a;)r.push(n),n=Ar,Aa(),(o=Wr())!==a?n=o:(Ar=n,n=a);yr=e,e=jt(t,r)}else Ar=e,e=a;return e}(),t!==a?(r=Ar,Aa(),(n=ba())!==a?r=n:(Ar=r,r=a),r===a&&(r=null),yr=e,e=It(t,r)):(Ar=e,e=a),e}function Wr(){var t,r,n,o;return t=Ar,r=function(){var t,r;return t=Ar,64===e.charCodeAt(Ar)?(r=h,Ar++):(r=a,0===kr&&Or(be)),r!==a&&(yr=t,r=qt()),t=r}(),r!==a?((n=Vr())===a&&(n=null),(o=Yr())!==a?(yr=t,t=Nt(r,n,o)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,(r=Vr())!==a&&(n=Yr())!==a?(yr=t,t=Ut(r,n)):(Ar=t,t=a),t===a&&(t=Yr())),t}function Vr(){var t,r,n;return t=Ar,(r=oa())!==a?(Aa(),58===e.charCodeAt(Ar)?(n=x,Ar++):(n=a,0===kr&&Or(ve)),n!==a?(Aa(),yr=t,t=Gt(r)):(Ar=t,t=a)):(Ar=t,t=a),t}function Yr(){var t,r,n;return t=Ar,r=function(){var t;return t=e.charAt(Ar),W.test(t)?Ar++:(t=a,0===kr&&Or(Ae)),t}(),r!==a?(Aa(),(n=Qr())!==a?(yr=t,t=Ht(r,n)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Qr()),t}function Qr(){var t,r,n;return t=Ar,(r=Xr())!==a?(Aa(),n=function(){var t;return t=e.charAt(Ar),V.test(t)?Ar++:(t=a,0===kr&&Or(ye)),t}(),n!==a?(yr=t,t=zt(r,n)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=function(){var t,r,n,o,s,c,i;return t=Ar,(r=Xr())!==a?(Aa(),124===e.charCodeAt(Ar)?(n=b,Ar++):(n=a,0===kr&&Or(Se)),n!==a?(Aa(),o=function(){var t,r,n,o;return t=Ar,(r=Jr())===a&&(r=null),Aa(),e.substr(Ar,2)===v?(n=v,Ar+=2):(n=a,0===kr&&Or(_e)),n!==a?(Aa(),(o=Jr())===a&&(o=null),yr=t,t=Vt(r,o)):(Ar=t,t=a),t===a&&(t=Ar,(r=Jr())!==a&&(yr=t,r=Yt(r)),t=r),t}(),o!==a?(Aa(),s=Ar,44===e.charCodeAt(Ar)?(c=p,Ar++):(c=a,0===kr&&Or(le)),c!==a?(Aa(),(i=Hr())!==a?(Aa(),s=i):(Ar=s,s=a)):(Ar=s,s=a),s===a&&(s=null),124===e.charCodeAt(Ar)?(c=b,Ar++):(c=a,0===kr&&Or(Se)),c!==a?(yr=t,t=Wt(r,o,s)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a),t}(),t===a&&(t=Xr())),t}function Jr(){var t,r;return t=Ar,r=function(){var t,r,n,o;if(t=Ar,r=Ar,n=[],(o=ha())!==a)for(;o!==a;)n.push(o),o=ha();else n=a;return(r=n!==a?e.substring(r,Ar):n)!==a&&(yr=t,r=vr(r)),t=r}(),r!==a&&(yr=t,r=Qt(r)),(t=r)===a&&(t=Ar,(r=oa())!==a&&(yr=t,r=Jt(r)),(t=r)===a&&(t=Ar,(r=ba())!==a&&(yr=t,r=Xt(r)),t=r)),t}function Xr(){var t,r,n,o;return t=function(){var t,r,n;return kr++,t=Ar,(r=ia())!==a?(105===e.charCodeAt(Ar)?(n=P,Ar++):(n=a,0===kr&&Or(ze)),n===a&&(n=null),yr=t,t=ar(r,n)):(Ar=t,t=a),kr--,t===a&&(r=a,0===kr&&Or(He)),t}(),t===a&&(t=function(){var t,r,n,o,s,c;if(kr++,t=Ar,91===e.charCodeAt(Ar)?(r=F,Ar++):(r=a,0===kr&&Or(Ke)),r!==a){for(94===e.charCodeAt(Ar)?(n=O,Ar++):(n=a,0===kr&&Or(Ze)),n===a&&(n=null),o=[],(s=la())===a&&(s=fa());s!==a;)o.push(s),(s=la())===a&&(s=fa());93===e.charCodeAt(Ar)?(s=B,Ar++):(s=a,0===kr&&Or(et)),s!==a?(105===e.charCodeAt(Ar)?(c=P,Ar++):(c=a,0===kr&&Or(ze)),c===a&&(c=null),yr=t,t=sr(n,o,c)):(Ar=t,t=a)}else Ar=t,t=a;return kr--,t===a&&(r=a,0===kr&&Or(Xe)),t}(),t===a&&(t=function(){var t,r;return t=Ar,46===e.charCodeAt(Ar)?(r=S,Ar++):(r=a,0===kr&&Or(Te)),r!==a&&(yr=t,r=xr()),t=r}(),t===a&&(t=function(){var t,r,n,o,s,c,i;return t=Ar,(r=oa())!==a?(46===e.charCodeAt(Ar)?(n=S,Ar++):(n=a,0===kr&&Or(Te)),n!==a&&(o=oa())!==a?(yr=t,t=Zt(r,o)):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=Ar,(r=oa())!==a?(n=Ar,kr++,o=Ar,s=Aa(),c=Ar,(i=ia())!==a?c=i=[i,Aa()]:(Ar=c,c=a),c===a&&(c=null),61===e.charCodeAt(Ar)?(i=g,Ar++):(i=a,0===kr&&Or(he)),i!==a?o=s=[s,c,i]:(Ar=o,o=a),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a?(yr=t,t=er(r)):(Ar=t,t=a)):(Ar=t,t=a)),t}(),t===a&&(t=function(){var t,r,n;return t=Ar,r=function(){var t;return t=e.charAt(Ar),Y.test(t)?Ar++:(t=a,0===kr&&Or(Ce)),t}(),r!==a?(Aa(),(n=ba())!==a?(yr=t,t=tr(r,n)):(Ar=t,t=a)):(Ar=t,t=a),t}(),t===a&&(t=Ar,40===e.charCodeAt(Ar)?(r=A,Ar++):(r=a,0===kr&&Or(Ee)),r!==a?(Aa(),(n=Hr())!==a?(Aa(),41===e.charCodeAt(Ar)?(o=y,Ar++):(o=a,0===kr&&Or(ke)),o!==a?(yr=t,t=Kt(n)):(Ar=t,t=a)):(Ar=t,t=a)):(Ar=t,t=a)))))),t}function Kr(){var t;return e.length>Ar?(t=e.charAt(Ar),Ar++):(t=a,0===kr&&Or(ie)),t}function Zr(){var t;return kr++,t=e.charAt(Ar),Q.test(t)?Ar++:(t=a,0===kr&&Or(Pe)),kr--,t===a&&0===kr&&Or(we),t}function ea(){var t;return t=e.charAt(Ar),J.test(t)?Ar++:(t=a,0===kr&&Or(Re)),t}function ta(){var t;return kr++,10===e.charCodeAt(Ar)?(t=_,Ar++):(t=a,0===kr&&Or(Fe)),t===a&&(e.substr(Ar,2)===E?(t=E,Ar+=2):(t=a,0===kr&&Or(Oe)),t===a&&(t=e.charAt(Ar),X.test(t)?Ar++:(t=a,0===kr&&Or(Be)))),kr--,t===a&&0===kr&&Or(Le),t}function ra(){var t;return kr++,(t=function(){var t,r,n,o,s,c;if(t=Ar,e.substr(Ar,2)===k?(r=k,Ar+=2):(r=a,0===kr&&Or(De)),r!==a){for(n=[],o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);o!==a;)n.push(o),o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);e.substr(Ar,2)===T?(o=T,Ar+=2):(o=a,0===kr&&Or(Ie)),o!==a?t=r=[r,n,o]:(Ar=t,t=a)}else Ar=t,t=a;return t}())===a&&(t=na()),kr--,t===a&&0===kr&&Or(Me),t}function aa(){var t,r,n,o,s,c;if(t=Ar,e.substr(Ar,2)===k?(r=k,Ar+=2):(r=a,0===kr&&Or(De)),r!==a){for(n=[],o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),c===a&&(c=ea()),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);o!==a;)n.push(o),o=Ar,s=Ar,kr++,e.substr(Ar,2)===T?(c=T,Ar+=2):(c=a,0===kr&&Or(Ie)),c===a&&(c=ea()),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);e.substr(Ar,2)===T?(o=T,Ar+=2):(o=a,0===kr&&Or(Ie)),o!==a?t=r=[r,n,o]:(Ar=t,t=a)}else Ar=t,t=a;return t}function na(){var t,r,n,o,s,c;if(t=Ar,e.substr(Ar,2)===C?(r=C,Ar+=2):(r=a,0===kr&&Or(je)),r!==a){for(n=[],o=Ar,s=Ar,kr++,c=ea(),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);o!==a;)n.push(o),o=Ar,s=Ar,kr++,c=ea(),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);t=r=[r,n]}else Ar=t,t=a;return t}function oa(){var e,t,r,n;if(kr++,e=Ar,(t=sa())!==a){for(r=[],n=ca();n!==a;)r.push(n),n=ca();yr=e,e=rr(t,r)}else Ar=e,e=a;return kr--,e===a&&(t=a,0===kr&&Or(Ne)),e}function sa(){var t,r,n;return t=e.charAt(Ar),K.test(t)?Ar++:(t=a,0===kr&&Or(Ue)),t===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=$a())!==a?t=n:(Ar=t,t=a)),t}function ca(){var t;return(t=sa())===a&&(t=e.charAt(Ar),Z.test(t)?Ar++:(t=a,0===kr&&Or(Ge))),t}function ia(){var t,r,n,o;if(kr++,t=Ar,34===e.charCodeAt(Ar)?(r=R,Ar++):(r=a,0===kr&&Or(Ve)),r!==a){for(n=[],o=pa();o!==a;)n.push(o),o=pa();34===e.charCodeAt(Ar)?(o=R,Ar++):(o=a,0===kr&&Or(Ve)),o!==a?(yr=t,t=nr(n)):(Ar=t,t=a)}else Ar=t,t=a;if(t===a)if(t=Ar,39===e.charCodeAt(Ar)?(r=L,Ar++):(r=a,0===kr&&Or(Ye)),r!==a){for(n=[],o=ua();o!==a;)n.push(o),o=ua();39===e.charCodeAt(Ar)?(o=L,Ar++):(o=a,0===kr&&Or(Ye)),o!==a?(yr=t,t=or(n)):(Ar=t,t=a)}else Ar=t,t=a;return kr--,t===a&&(r=a,0===kr&&Or(We)),t}function pa(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=e.charAt(Ar),ee.test(o)?Ar++:(o=a,0===kr&&Or(Qe)),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),(t=r!==a?e.substring(t,Ar):r)===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=ma())!==a?t=n:(Ar=t,t=a),t===a&&(t=da())),t}function ua(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=e.charAt(Ar),te.test(o)?Ar++:(o=a,0===kr&&Or(Je)),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),(t=r!==a?e.substring(t,Ar):r)===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=ma())!==a?t=n:(Ar=t,t=a),t===a&&(t=da())),t}function la(){var t,r,n,o;return t=Ar,(r=fa())!==a?(45===e.charCodeAt(Ar)?(n=M,Ar++):(n=a,0===kr&&Or(tt)),n!==a&&(o=fa())!==a?(yr=t,t=cr(r,o)):(Ar=t,t=a)):(Ar=t,t=a),t}function fa(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=e.charAt(Ar),re.test(o)?Ar++:(o=a,0===kr&&Or(rt)),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),(t=r!==a?e.substring(t,Ar):r)===a&&(t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&(n=ma())!==a?t=n:(Ar=t,t=a),t===a&&(t=da())),t}function da(){var t,r;return t=Ar,92===e.charCodeAt(Ar)?(r=w,Ar++):(r=a,0===kr&&Or(qe)),r!==a&&ta()!==a?(yr=t,t=ir()):(Ar=t,t=a),t}function ma(){var t,r,n,o;return t=function(){var t;return(t=ga())===a&&(t=function(){var t,r,n,o;return t=Ar,r=Ar,n=Ar,kr++,o=function(){var t;return(t=ga())===a&&(t=e.charAt(Ar),ne.test(t)?Ar++:(t=a,0===kr&&Or(lt))),t}(),o===a&&(o=ea()),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a&&(o=Kr())!==a?r=n=[n,o]:(Ar=r,r=a),t=r!==a?e.substring(t,Ar):r}()),t}(),t===a&&(t=Ar,48===e.charCodeAt(Ar)?(r=D,Ar++):(r=a,0===kr&&Or(at)),r!==a?(n=Ar,kr++,o=ha(),kr--,o===a?n=void 0:(Ar=n,n=a),n!==a?(yr=t,t=pr()):(Ar=t,t=a)):(Ar=t,t=a),t===a&&(t=function(){var t,r,n,o,s,c;return t=Ar,120===e.charCodeAt(Ar)?(r=H,Ar++):(r=a,0===kr&&Or(ft)),r!==a?(n=Ar,o=Ar,(s=xa())!==a&&(c=xa())!==a?o=s=[s,c]:(Ar=o,o=a),(n=o!==a?e.substring(n,Ar):o)!==a?(yr=t,t=$r(n)):(Ar=t,t=a)):(Ar=t,t=a),t}(),t===a&&(t=$a()))),t}function ga(){var t,r;return t=e.charAt(Ar),ae.test(t)?Ar++:(t=a,0===kr&&Or(nt)),t===a&&(t=Ar,98===e.charCodeAt(Ar)?(r=I,Ar++):(r=a,0===kr&&Or(ot)),r!==a&&(yr=t,r=ur()),(t=r)===a&&(t=Ar,102===e.charCodeAt(Ar)?(r=j,Ar++):(r=a,0===kr&&Or(st)),r!==a&&(yr=t,r=lr()),(t=r)===a&&(t=Ar,110===e.charCodeAt(Ar)?(r=N,Ar++):(r=a,0===kr&&Or(ct)),r!==a&&(yr=t,r=fr()),(t=r)===a&&(t=Ar,114===e.charCodeAt(Ar)?(r=U,Ar++):(r=a,0===kr&&Or(it)),r!==a&&(yr=t,r=dr()),(t=r)===a&&(t=Ar,116===e.charCodeAt(Ar)?(r=q,Ar++):(r=a,0===kr&&Or(pt)),r!==a&&(yr=t,r=mr()),(t=r)===a&&(t=Ar,118===e.charCodeAt(Ar)?(r=G,Ar++):(r=a,0===kr&&Or(ut)),r!==a&&(yr=t,r=gr()),t=r)))))),t}function $a(){var t,r,n,o,s,c,i,p;return t=Ar,117===e.charCodeAt(Ar)?(r=z,Ar++):(r=a,0===kr&&Or(dt)),r!==a?(n=Ar,o=Ar,(s=xa())!==a&&(c=xa())!==a&&(i=xa())!==a&&(p=xa())!==a?o=s=[s,c,i,p]:(Ar=o,o=a),(n=o!==a?e.substring(n,Ar):o)!==a?(yr=t,t=hr(n)):(Ar=t,t=a)):(Ar=t,t=a),t}function ha(){var t;return t=e.charAt(Ar),oe.test(t)?Ar++:(t=a,0===kr&&Or(mt)),t}function xa(){var t;return t=e.charAt(Ar),se.test(t)?Ar++:(t=a,0===kr&&Or(gt)),t}function ba(){var t,r,n,o;return kr++,t=Ar,123===e.charCodeAt(Ar)?(r=f,Ar++):(r=a,0===kr&&Or(me)),r!==a?(n=function(){var e,t;return e=Ar,t=va(),yr=e,e=t=br(t)}(),125===e.charCodeAt(Ar)?(o=d,Ar++):(o=a,0===kr&&Or(ge)),o!==a?t=n:(Ar=t,t=a)):(Ar=t,t=a),kr--,t===a&&(r=a,0===kr&&Or($t)),t}function va(){var t,r,n,o,s,c;if(t=Ar,r=[],n=[],o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a),o!==a)for(;o!==a;)n.push(o),o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);else n=a;for(n===a&&(n=Ar,123===e.charCodeAt(Ar)?(o=f,Ar++):(o=a,0===kr&&Or(me)),o!==a?(s=va(),125===e.charCodeAt(Ar)?(c=d,Ar++):(c=a,0===kr&&Or(ge)),c!==a?n=o=[o,s,c]:(Ar=n,n=a)):(Ar=n,n=a));n!==a;){if(r.push(n),n=[],o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a),o!==a)for(;o!==a;)n.push(o),o=Ar,s=Ar,kr++,c=e.charAt(Ar),ce.test(c)?Ar++:(c=a,0===kr&&Or(ht)),kr--,c===a?s=void 0:(Ar=s,s=a),s!==a&&(c=Kr())!==a?o=s=[s,c]:(Ar=o,o=a);else n=a;n===a&&(n=Ar,123===e.charCodeAt(Ar)?(o=f,Ar++):(o=a,0===kr&&Or(me)),o!==a?(s=va(),125===e.charCodeAt(Ar)?(c=d,Ar++):(c=a,0===kr&&Or(ge)),c!==a?n=o=[o,s,c]:(Ar=n,n=a)):(Ar=n,n=a))}return e.substring(t,Ar)}function Aa(){var e,t;for(e=[],(t=Zr())===a&&(t=ta())===a&&(t=ra());t!==a;)e.push(t),(t=Zr())===a&&(t=ta())===a&&(t=ra());return e}function ya(){var t,r,n,o;if(t=[],r=Ar,n=Aa(),59===e.charCodeAt(Ar)?(o=i,Ar++):(o=a,0===kr&&Or(ue)),o!==a?r=n=[n,o]:(Ar=r,r=a),r!==a)for(;r!==a;)t.push(r),r=Ar,n=Aa(),59===e.charCodeAt(Ar)?(o=i,Ar++):(o=a,0===kr&&Or(ue)),o!==a?r=n=[n,o]:(Ar=r,r=a);else t=a;return t===a&&(t=Ar,r=function(){var e,t;for(e=[],(t=Zr())===a&&(t=aa());t!==a;)e.push(t),(t=Zr())===a&&(t=aa());return e}(),(n=na())===a&&(n=null),(o=ta())!==a?t=r=[r,n,o]:(Ar=t,t=a),t===a&&(t=Ar,r=Aa(),n=function(){var t,r;return t=Ar,kr++,e.length>Ar?(r=e.charAt(Ar),Ar++):(r=a,0===kr&&Or(ie)),kr--,r===a?t=void 0:(Ar=t,t=a),t}(),n!==a?t=r=[r,n]:(Ar=t,t=a))),t}var Sa=t.reservedWords||[];if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:Ar,peg$FAILED:a,peg$maxFailExpected:Er,peg$maxFailPos:_r};if(r!==a&&Ar===e.length)return r;throw r!==a&&Ar0){for(t=1,r=1;t0||e.imports.length>0)throw new Error("Dependencies not supported in format 'bare'.");return __spreadArray$4(__spreadArray$4([],a(),!0),["(function() {",' "use strict";',"",r,"",u("return "+n()+";"),"})()"],!1)},commonjs:function(){var t=Object.keys(p),o=a();o.push("",'"use strict";',""),t.length>0&&(t.forEach((function(e){o.push("var "+e+' = require("'+stringEscape$1(p[e])+'");')})),o.push(""));for(var s=e.imports.length,c=0;c0&&(n.forEach((function(e){o.push("import "+e+' from "'+stringEscape$1(p[e])+'";')})),o.push(""));for(var s=0;s0)throw new Error("Imports are not supported in format 'amd'.");var t=Object.keys(p),o="["+t.map((function(e){return p[e]})).map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",s=t.join(", ");return __spreadArray$4(__spreadArray$4([],a(),!0),["define("+o+", function("+s+") {",' "use strict";',"",r,"",u("return "+n()+";"),"});"],!1)},globals:function(){if(Object.keys(p).length>0||e.imports.length>0)throw new Error("Dependencies not supported in format 'globals'.");if(!t.exportVar)throw new Error("No export variable defined for format 'globals'.");return __spreadArray$4(__spreadArray$4([],a(),!0),["(function(root) {",' "use strict";',"",r,"",u("root."+t.exportVar+" = "+n()+";"),"})(this);"],!1)},umd:function(){if(e.imports.length>0)throw new Error("Imports are not supported in format 'umd'.");var o=Object.keys(p),s=o.map((function(e){return p[e]})),c="["+s.map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",i=s.map((function(e){return'require("'+stringEscape$1(e)+'")'})).join(", "),l=o.join(", "),f=a();return f.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+c+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+i+");"),t.exportVar&&f.push(" } else {"," root."+t.exportVar+" = factory();"),f.push(" }","})(this, function("+l+") {",' "use strict";',"",r,"",u("return "+n()+";"),"});"),f}},s=o[t.format||"bare"]();return new SourceNode$2(null,null,t.grammarSource,s.map((function(e){return e instanceof SourceNode$2?e:e+"\n"})))}(function(){var p=[],x=e.topLevelInitializer;if(x)if(Array.isArray(x)){if("es"===t.format){for(var b=[],v=[],A=0,y=x;A 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&&p.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 + ".");'," }","};","");var w="{ "+i.map((function(e){return e+": "+$(e)})).join(", ")+" }",P=$(i[0]);if(p.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+w+";"," var peg$startRuleFunction = "+P+";","",new SourceNode$2(null,null,t.grammarSource,__spreadArray$4([r.map((function(e,t){return" var "+l(t)+' = "'+stringEscape$1(e)+'";'})).concat("",n.map((function(e,t){return" var "+f(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape$1(e[0])+"-"+regexpClassEscape$1(e[1]):regexpClassEscape$1(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",o.map((function(e,t){return" var "+d(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape$1(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape$1(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape$1(e[0])+'", "'+stringEscape$1(e[1])+'"]':'"'+stringEscape$1(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")],s.map((function(e,t){return wrapInSourceNode("\n var ".concat(m(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")})),!0)),""," var peg$currPos = options.peg$currPos | 0;"," var peg$savedPos = peg$currPos;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = peg$currPos;"," var peg$maxFailExpected = options.peg$maxFailExpected || [];"," var peg$silentFails = options.peg$silentFails | 0;",""),t.cache&&p.push(" var peg$resultsCache = {};",""),t.trace&&p.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),p.push(" var peg$result;",""," if (options.startRule) {"," 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 {"," if (pos >= peg$posDetailsCache.length) {"," p = peg$posDetailsCache.length - 1;"," } else {"," p = pos;"," while (!peg$posDetailsCache[--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.imports.length>0&&p.push(" var peg$assign = Object.assign || function(t) {"," var i, s;"," for (i = 1; i < arguments.length; i++) {"," s = arguments[i];"," for (var p in s) {"," if (Object.prototype.hasOwnProperty.call(s, p)) {"," t[p] = s[p];"," }"," }"," }"," return t;"," };",""," function peg$callLibrary(lib, startRule) {"," const opts = peg$assign({}, options, {"," startRule: startRule,"," peg$currPos: peg$currPos,"," peg$silentFails: peg$silentFails,"," peg$library: true,"," peg$maxFailExpected: peg$maxFailExpected"," });"," const res = lib.parse(input, opts);"," peg$currPos = res.peg$currPos;"," peg$maxFailPos = res.peg$maxFailPos;"," peg$maxFailExpected = res.peg$maxFailExpected;"," return (res.peg$result === res.peg$FAILED) ? peg$FAILED : res.peg$result;"," }",""),e.rules.forEach((function(n){p.push.apply(p,u(function(n){var o=[],s=n.bytecode,i=new Stack$1(n.name,"s","var",s),p=function t(n){var o=0,s=n.length,p=[],h=void 0;function x(e,r,a){var s=r+3,c=n[o+s-2],l=n[o+s-1],f=i.checkedIf(o,(function(){return o+=s+c,(a||t)(n.slice(o-c,o))}),l>0?function(){return o+=l,t(n.slice(o-l,o))}:null),d=f[0],m=f[1];p.push("if ("+e+") {"),p.push.apply(p,u(d)),l>0&&(p.push("} else {"),p.push.apply(p,u(m))),p.push("}")}function b(e,r,a){var s=r+3,c=1===a?"input.charAt(peg$currPos)":"input.substr(peg$currPos, "+a+")",u=null;n[o+s]===op$1.ACCEPT_N&&n[o+s+1]===a&&(p.push(i.push(c)),c=i.pop(),u=function(e){i.sp++;var r=t(e.slice(2));return r.unshift(1===a?"peg$currPos++;":"peg$currPos += "+a+";"),r}),x(e(c,null!==u),r,u)}for(var v=function(){switch(n[o]){case op$1.PUSH_EMPTY_STRING:p.push(i.push("''")),o++;break;case op$1.PUSH_CURR_POS:p.push(i.push("peg$currPos")),o++;break;case op$1.PUSH_UNDEFINED:p.push(i.push("undefined")),o++;break;case op$1.PUSH_NULL:p.push(i.push("null")),o++;break;case op$1.PUSH_FAILED:p.push(i.push("peg$FAILED")),o++;break;case op$1.PUSH_EMPTY_ARRAY:p.push(i.push("[]")),o++;break;case op$1.POP:i.pop(),o++;break;case op$1.POP_CURR_POS:p.push("peg$currPos = "+i.pop()+";"),o++;break;case op$1.POP_N:i.pop(n[o+1]),o+=2;break;case op$1.NIP:h=i.pop(),i.pop(),p.push(i.push(h)),o++;break;case op$1.APPEND:h=i.pop(),p.push(i.top()+".push("+h+");"),o++;break;case op$1.WRAP:p.push(i.push("["+i.pop(n[o+1]).join(", ")+"]")),o+=2;break;case op$1.TEXT:p.push(i.push("input.substring("+i.pop()+", peg$currPos)")),o++;break;case op$1.PLUCK:var s=n[o+3-1],v=3+s;h=n.slice(o+3,o+v),h=1===s?i.index(h[0]):"[ ".concat(h.map((function(e){return i.index(e)})).join(", ")," ]"),i.pop(n[o+1]),p.push(i.push(h)),o+=v;break;case op$1.IF:x(i.top(),0);break;case op$1.IF_ERROR:x(i.top()+" === peg$FAILED",0);break;case op$1.IF_NOT_ERROR:x(i.top()+" !== peg$FAILED",0);break;case op$1.IF_LT:x(i.top()+".length < "+n[o+1],1);break;case op$1.IF_GE:x(i.top()+".length >= "+n[o+1],1);break;case op$1.IF_LT_DYNAMIC:x(i.top()+".length < ("+i.index(n[o+1])+"|0)",1);break;case op$1.IF_GE_DYNAMIC:x(i.top()+".length >= ("+i.index(n[o+1])+"|0)",1);break;case op$1.WHILE_NOT_ERROR:T=i.top()+" !== peg$FAILED",C=n[o+2-1],w=i.checkedLoop(o,(function(){return o+=2+C,t(n.slice(o-C,o))})),p.push("while ("+T+") {"),p.push.apply(p,u(w)),p.push("}");break;case op$1.MATCH_ANY:x("input.length > peg$currPos",0);break;case op$1.MATCH_STRING:var A=n[o+1],y=r[A];b((function(e,t){return y.length>1?"".concat(e," === ").concat(l(A)):(e=t?"".concat(e,".charCodeAt(0)"):"input.charCodeAt(peg$currPos)","".concat(e," === ").concat(y.charCodeAt(0)))}),1,y.length);break;case op$1.MATCH_STRING_IC:var S=n[o+1];b((function(e){return"".concat(e,".toLowerCase() === ").concat(l(S))}),1,r[S].length);break;case op$1.MATCH_CHAR_CLASS:var _=n[o+1];b((function(e){return"".concat(f(_),".test(").concat(e,")")}),1,1);break;case op$1.ACCEPT_N:p.push(i.push(n[o+1]>1?"input.substr(peg$currPos, "+n[o+1]+")":"input.charAt(peg$currPos)")),p.push(n[o+1]>1?"peg$currPos += "+n[o+1]+";":"peg$currPos++;"),o+=2;break;case op$1.ACCEPT_STRING:p.push(i.push(l(n[o+1]))),p.push(r[n[o+1]].length>1?"peg$currPos += "+r[n[o+1]].length+";":"peg$currPos++;"),o+=2;break;case op$1.FAIL:p.push(i.push("peg$FAILED")),p.push("if (peg$silentFails === 0) { peg$fail("+d(n[o+1])+"); }"),o+=2;break;case op$1.LOAD_SAVED_POS:p.push("peg$savedPos = "+i.index(n[o+1])+";"),o+=2;break;case op$1.UPDATE_SAVED_POS:p.push("peg$savedPos = peg$currPos;"),o++;break;case op$1.CALL:h=function(){var e=n[o+4-1];return m(n[o+1])+"("+n.slice(o+4,o+4+e).map((function(e){return i.index(e)})).join(", ")+")"}(),i.pop(n[o+2]),p.push(i.push(h)),o+=4+n[o+3];break;case op$1.RULE:p.push(i.push($(e.rules[n[o+1]].name)+"()")),o+=2;break;case op$1.LIBRARY_RULE:var E=n[o+2],k=-1===E?"":', "'+c[E]+'"';p.push(i.push("peg$callLibrary("+g(n[o+1])+k+")")),o+=3;break;case op$1.SILENT_FAILS_ON:p.push("peg$silentFails++;"),o++;break;case op$1.SILENT_FAILS_OFF:p.push("peg$silentFails--;"),o++;break;case op$1.SOURCE_MAP_PUSH:i.sourceMapPush(p,a[n[o+1]]),o+=2;break;case op$1.SOURCE_MAP_POP:i.sourceMapPop(),o++;break;case op$1.SOURCE_MAP_LABEL_PUSH:i.labels[n[o+1]]={label:r[n[o+2]],location:a[n[o+3]]},o+=4;break;case op$1.SOURCE_MAP_LABEL_POP:delete i.labels[n[o+1]],o+=2;break;default:throw new Error("Invalid opcode: "+n[o]+".")}var T,C,w};oc?-1:1:0}));for(var t="",r="",a=0;a=s.charCodeAt(0)?(e.splice(a--,1),e[a]=[t,r=c]):(t=s,r=c)}return e}function mergeCharacterClasses$1(e){var t=Object.create(null);e.rules.forEach((function(e){return t[e.name]=e.expression}));var r=Object.create(null),a=[function(e,a){if("class"===e.type&&!e.inverted)return a&&((e=__assign$1({},e)).parts=__spreadArray$3([],e.parts,!0)),e;if("literal"===e.type&&1===e.value.length)return{type:"class",parts:[e.value],inverted:!1,ignoreCase:e.ignoreCase,location:e.location};if("rule_ref"===e.type){var s=t[e.name];if(s){r[e.name]||(r[e.name]=!0,o(s));var c=n(s,!0);return c&&(c.location=e.location),c}}return null},visitor$7.build({choice:function(e){var t=null,r=!1;e.alternatives.forEach((function(a,s){var c;o(a);var i=n(a);i?t&&t.ignoreCase===i.ignoreCase?((c=t.parts).push.apply(c,i.parts),e.alternatives[s-1]=t,e.alternatives[s]=t,t.location={source:t.location.source,start:t.location.start,end:i.location.end},r=!0):t=i:t=null})),r&&(e.alternatives=e.alternatives.filter((function(e,t,r){return!t||e!==r[t-1]})),e.alternatives.forEach((function(t,r){"class"===t.type&&(t.parts=cleanParts(t.parts),1!==t.parts.length||Array.isArray(t.parts[0])||t.inverted||(e.alternatives[r]={type:"literal",value:t.parts[0],ignoreCase:t.ignoreCase,location:t.location}))})),1===e.alternatives.length&&cloneOver(e,e.alternatives[0]))},text:function(e){if(o(e.expression),"class"===e.expression.type||"literal"===e.expression.type){var t=e.location;cloneOver(e,e.expression),e.location=t}}})],n=a[0],o=a[1];e.rules.forEach((function(e){r[e.name]=!0,o(e.expression)}))}var mergeCharacterClasses_1=mergeCharacterClasses$1;function reportDuplicateImports$1(e,t,r){for(var a={},n=0,o=e.imports;n0||(a.push(e.name),o(e.expression),a.pop())},sequence:function(t){r.errors>0||t.elements.every((function(t){return o(t),!(r.errors>0||asts$3.alwaysConsumesOnSuccess(e,t))}))},repeated:function(t){r.errors>0||(o(t.expression),t.delimiter&&!asts$3.alwaysConsumesOnSuccess(e,t.expression)&&o(t.delimiter))},rule_ref:function(t){if(!(r.errors>0)){n.push(t);var s=asts$3.findRule(e,t.name);if(-1!==a.indexOf(t.name))return a.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+a.join(" -> ")+")",s.nameLocation,n.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));s&&o(s),n.pop()}}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$2=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){var a=visitor$3.build({zero_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(t.delimiter&&a(t.delimiter),!(asts$2.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$2.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var n=t.min?t.min:t.max;r.warning("constant"===n.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});a(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts$1=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts$1.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var a=visitor$1.build({action:function(e){a(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),a(e.expression)}});a(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n0:e&&"function"==typeof e.offset}var compiler$2={visitor:visitor,passes:{prepare:[addImportedRules,reportInfiniteRecursion],check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRepetition,reportIncorrectPlucking,reportDuplicateImports],transform:[fixLibraryNumbers,removeProxyRules,mergeCharacterClasses,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){options=void 0!==options?options:{};var defaultStartRules=[ast.rules[0].name];if(options=processOptions(options,{allowedStartRules:defaultStartRules,cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),null!==options.allowedStartRules&&void 0!==options.allowedStartRules||(options.allowedStartRules=defaultStartRules),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");0===options.allowedStartRules.length&&(options.allowedStartRules=defaultStartRules);var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}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");var session=new Session$1(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(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");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64$3(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$2,GrammarError$2=grammarError,GrammarLocation$1=grammarLocation,asts=asts_1,compiler$1=compiler_1,parser$3=parser$4,VERSION=version$1,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"],peg$4={VERSION:VERSION,RESERVED_WORDS:RESERVED_WORDS,GrammarError:GrammarError$2,GrammarLocation:GrammarLocation$1,parser:parser$3,compiler:compiler$1,generate:function(e,t){var r,a,n="plugins"in(t=void 0!==t?t:{})?t.plugins:[],o={parser:peg$4.parser,passes:(r=peg$4.compiler.passes,a={},Object.keys(r).forEach((function(e){a[e]=r[e].slice()})),a),reservedWords:peg$4.RESERVED_WORDS.slice()};n.forEach((function(e){e.use(o,t)})),Array.isArray(e)||(e=[{source:t.grammarSource,text:e}]);var s=asts.combine(e.map((function(e){var t=e.source,r=e.text;return o.parser.parse(r,{grammarSource:t,reservedWords:o.reservedWords})})));return peg$4.compiler.compile(s,o.passes,t)}},peg_1=peg$4,utils={},chai$o=require$$0,Call=function(){function e(e){this.args=e}return e.prototype.calledWithExactly=function(){for(var e=[],t=0;t=18"},require$$2={name:name,version:version,description:description,keywords:keywords,homepage:homepage,repository:repository,bugs:bugs,license:license,author:author,main:main,browser:browser,unpkg:unpkg,jsdelivr:jsdelivr,types:types,bin:bin,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies,browserslist:browserslist,overrides:overrides,pnpm:pnpm,packageManager:packageManager,engines:engines},sourceMap={},sourceMapGenerator={},base64Vlq={},base64$2={};const intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");base64$2.encode=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT,a>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$1.encode(t)}while(a>0);return r};var util$4={},urlBrowser=require$$0$1.URL;const URL$1=urlBrowser;function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$4.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}util$4.toSetString=supportsNullProto?identity:toSetString,util$4.fromSetString=supportsNullProto?identity:fromSetString,util$4.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated,util$4.parseSourceMapInput=parseSourceMapInput;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),a=buildSafeBase(t),n=new URL$1(t,a);e(n);const o=n.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(a,o)}}function withBase(e,t){return new URL$1(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const a=e+r++;if(-1===t.indexOf(a))return a}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let a=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!a[a.length-1]&&a.pop();r.length>0&&a.length>0&&r[0]===a[0];)r.shift(),a.shift();return a.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),trimFilename=createSafeHandler((e=>{e.href=new URL$1(".",e.toString()).toString()})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),a=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===a)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===a)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===a)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const n=buildSafeBase(t+e);return computeRelativeURL(n,withBase(t,withBase(e,n)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),a=new URL$1(e,r),n=new URL$1(t,r);try{new URL$1("",n.toString())}catch(e){return null}return n.protocol!==a.protocol||n.user!==a.user||n.password!==a.password||n.hostname!==a.hostname||n.port!==a.port?null:computeRelativeURL(a,n)}function computeSourceURL(e,t,r){e&&"path-absolute"===getURLType(t)&&(t=t.replace(/^\//,""));let a=normalize(t||"");return e&&(a=join(e,a)),r&&(a=join(trimFilename(r),a)),a}util$4.normalize=normalize,util$4.join=join,util$4.relative=relative,util$4.computeSourceURL=computeSourceURL;var arraySet={};let ArraySet$2=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const a=new e;for(let e=0,n=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||a==r&&o>=n||util$3.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$3.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$2=util$4,ArraySet$1=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$2.getArg(e,"file",null),this._sourceRoot=util$2.getArg(e,"sourceRoot",null),this._skipValidation=util$2.getArg(e,"skipValidation",!1),this._sources=new ArraySet$1,this._names=new ArraySet$1,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,a=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$2.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)})),t.sources.forEach((function(e){let n=e;null!==r&&(n=util$2.relative(r,e)),a._sources.has(n)||a._sources.add(n);const o=t.sourceContentFor(e);null!=o&&a.setSourceContent(e,o)})),a}addMapping(e){const t=util$2.getArg(e,"generated"),r=util$2.getArg(e,"original",null);let a=util$2.getArg(e,"source",null),n=util$2.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,n),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:a,name:n})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$2.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$2.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$2.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let a=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.');a=e.file}const n=this._sourceRoot;null!=n&&(a=util$2.relative(n,a));const o=this._mappings.toArray().length>0?new ArraySet$1:this._sources,s=new ArraySet$1;this._mappings.unsortedForEach((function(t){if(t.source===a&&null!=t.originalLine){const a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=util$2.join(r,t.source)),null!=n&&(t.source=util$2.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}const c=t.source;null==c||o.has(c)||o.add(c);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=util$2.join(r,t)),null!=n&&(t=util$2.relative(n,t)),this.setSourceContent(t,a))}),this)}_validateMapping(e,t,r,a){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&&!r&&!a);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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:a}))}_serializeMappings(){let e,t,r,a,n=0,o=1,s=0,c=0,i=0,p=0,u="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$2.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=base64VLQ.encode(a-p),p=a,e+=base64VLQ.encode(t.originalLine-1-c),c=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-i),i=r)),u+=e}return u}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$2.relative(t,e));const r=util$2.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceMapConsumer={},binarySearch$1={};!function(e){function t(r,a,n,o,s,c){const i=Math.floor((a-r)/2)+r,p=s(n,o[i],!0);return 0===p?i:p>0?a-i>1?t(i,a,n,o,s,c):c==e.LEAST_UPPER_BOUND?a1?t(r,i,n,o,s,c):c==e.LEAST_UPPER_BOUND?i:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,a,n,o){if(0===a.length)return-1;let s=t(-1,a.length,r,a,n,o||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===n(a[s],a[s-1],!0);)--s;return s}}(binarySearch$1);var readWasmBrowser={exports:{}};let mappingsWasm=null;readWasmBrowser.exports=function(){if("string"==typeof mappingsWasm)return fetch(mappingsWasm).then((e=>e.arrayBuffer()));if(mappingsWasm instanceof ArrayBuffer)return Promise.resolve(mappingsWasm);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},readWasmBrowser.exports.initialize=e=>{mappingsWasm=e};var readWasmBrowserExports=readWasmBrowser.exports;const readWasm$1=readWasmBrowserExports;function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let cachedWasm=null;var wasm$1=function(){if(cachedWasm)return cachedWasm;const e=[];return cachedWasm=readWasm$1().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,r,a,n,o,s,c,i,p,u){const l=new Mapping;l.generatedLine=t+1,l.generatedColumn=r,a&&(l.lastGeneratedColumn=n-1),o&&(l.source=s,l.originalLine=c+1,l.originalColumn=i,p&&(l.name=u)),e[e.length-1](l)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}}))).then(null,(e=>{throw cachedWasm=null,e})),cachedWasm};const util$1=util$4,binarySearch=binarySearch$1,ArraySet=arraySet.ArraySet,readWasm=readWasmBrowserExports,wasm=wasm$1,INTERNAL=Symbol("smcInternal");let SourceMapConsumer$1=class e{constructor(e,t){return e==INTERNAL?Promise.resolve(this):_factory(e,t)}static initialize(e){readWasm.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return _factoryBSM(e,t)}static async with(t,r,a){const n=await new e(t,r);try{return await a(n)}finally{n.destroy()}}eachMapping(e,t,r){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};SourceMapConsumer$1.prototype._version=3,SourceMapConsumer$1.GENERATED_ORDER=1,SourceMapConsumer$1.ORIGINAL_ORDER=2,SourceMapConsumer$1.GREATEST_LOWER_BOUND=1,SourceMapConsumer$1.LEAST_UPPER_BOUND=2,sourceMapConsumer.SourceMapConsumer=SourceMapConsumer$1;class BasicSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let a=e;"string"==typeof e&&(a=util$1.parseSourceMapInput(e));const n=util$1.getArg(a,"version"),o=util$1.getArg(a,"sources").map(String),s=util$1.getArg(a,"names",[]),c=util$1.getArg(a,"sourceRoot",null),i=util$1.getArg(a,"sourcesContent",null),p=util$1.getArg(a,"mappings"),u=util$1.getArg(a,"file",null);if(n!=r._version)throw new Error("Unsupported version: "+n);return r._sourceLookupCache=new Map,r._names=ArraySet.fromArray(s.map(String),!0),r._sources=ArraySet.fromArray(o,!0),r._absoluteSources=ArraySet.fromArray(r._sources.toArray().map((function(e){return util$1.computeSourceURL(c,e,t)})),!0),r.sourceRoot=c,r.sourcesContent=i,r._mappings=p,r._sourceMapURL=t,r.file=u,r._computedColumnSpans=!1,r._mappingsPtr=0,r._wasm=null,wasm().then((e=>(r._wasm=e,r)))}))}_findSourceIndex(e){const t=this._sourceLookupCache.get(e);if("number"==typeof t)return t;const r=util$1.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(r)){const t=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,t),t}const a=util$1.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(a)){const t=this._absoluteSources.indexOf(a);return this._sourceLookupCache.set(e,t),t}return-1}static fromSourceMap(e,t){return new BasicSourceMapConsumer(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,r=this._wasm.exports.allocate_mappings(t),a=new Uint8Array(this._wasm.exports.memory.buffer,r,t);for(let r=0;r{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(a,t)}),(()=>{switch(n){case SourceMapConsumer$1.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case SourceMapConsumer$1.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=util$1.getArg(e,"source");const r=util$1.getArg(e,"line"),a=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(r<1)throw new Error("Line numbers must be >= 1");if(a<0)throw new Error("Column numbers must be >= 0");const n=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),n.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,r-1,"column"in e,a)})),n}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:util$1.getArg(e,"line"),generatedColumn:util$1.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let r,a=util$1.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==a&&(a=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>r=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,a)})),r&&r.generatedLine===t.generatedLine){let e=util$1.getArg(r,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=util$1.getArg(r,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:util$1.getArg(r,"originalLine",null),column:util$1.getArg(r,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let t=util$1.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const r={source:t,originalLine:util$1.getArg(e,"line"),originalColumn:util$1.getArg(e,"column")};if(r.originalLine<1)throw new Error("Line numbers must be >= 1");if(r.originalColumn<0)throw new Error("Column numbers must be >= 0");let a,n=util$1.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==n&&(n=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>a=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),r.source,r.originalLine-1,r.originalColumn,n)})),a&&a.source===r.source){let e=a.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:util$1.getArg(a,"generatedLine",null),column:util$1.getArg(a,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$1,sourceMapConsumer.BasicSourceMapConsumer=BasicSourceMapConsumer;class IndexedSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let a=e;"string"==typeof e&&(a=util$1.parseSourceMapInput(e));const n=util$1.getArg(a,"version"),o=util$1.getArg(a,"sections");if(n!=r._version)throw new Error("Unsupported version: "+n);let s={line:-1,column:0};return Promise.all(o.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const r=util$1.getArg(e,"offset"),a=util$1.getArg(r,"line"),n=util$1.getArg(r,"column");if(a({generatedOffset:{generatedLine:a+1,generatedColumn:n+1},consumer:e})))}))).then((e=>(r._sections=e,r)))}))}get sources(){const e=[];for(let t=0;t=0?this._sections[t]:null,a=t>=0&&t+1=0?this._sections[t]:null,a=t>=0&&t+1{const t=r.generatedOffset.generatedLine-1,n=r.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=n,"number"==typeof e.lastColumn&&(e.lastColumn+=n)),e.lastColumn===1/0&&a&&e.line===a.generatedOffset.generatedLine&&(e.lastColumn=a.generatedOffset.generatedColumn-2),e.line+=t,e})):[]}eachMapping(e,t,r){this._sections.forEach(((a,n)=>{const o=n+1=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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 r=0,a=this.children.length;r0){for(t=[],r=0;r start)"])}})),it("reports multiple errors in each compilation stage",(function(){try{peg.generate('\n start = leftRecursion\n leftRecursion = duplicatedLabel:duplicatedRule duplicatedLabel:missingRule\n duplicatedRule = missingRule\n duplicatedRule = "nothing"\n ')}catch(t){expect$k(t).with.property("stage","check"),expect$k(t).with.property("problems").to.be.an("array"),t.problems.forEach((function(e){expect$k(e).to.be.an("array").lengthOf.gte(2),expect$k(e[0]).to.be.oneOf(["error","warning","info"])}));var e=t.problems.filter((function(e){return"error"===e[0]})).map((function(e){return e[1]}));expect$k(e).to.include.members(['Rule "missingRule" is not defined','Rule "duplicatedRule" is already defined','Label "duplicatedLabel" is already defined'])}}))}))}));var chai$j=require$$0,parser$2=parser$4,compiler=compiler_1,expect$j=chai$j.expect;describe("Peggy compiler",(function(){it("checks start rules",(function(){var e=parser$2.parse("foo='1'");expect$j(compiler.compile(e,compiler.passes)).to.be.an("object"),expect$j(compiler.compile(e,compiler.passes,{allowedStartRules:null})).to.be.an("object"),expect$j(compiler.compile(e,compiler.passes,{allowedStartRules:void 0})).to.be.an("object"),expect$j(compiler.compile(e,compiler.passes,{allowedStartRules:[]})).to.be.an("object"),expect$j((function(){return compiler.compile(e,compiler.passes,{allowedStartRules:{}})})).to.throw("allowedStartRules must be an array"),expect$j((function(){return compiler.compile(e,compiler.passes,{allowedStartRules:["bar"]})})).to.throw('Unknown start rule "bar"')})),it("checks output type",(function(){var e=parser$2.parse("foo='1'");expect$j(compiler.compile(e,compiler.passes,{output:"source"})).to.be.a("string"),expect$j((function(){return compiler.compile(e,compiler.passes,{output:"INVALID OUTPUT TYPE"})})).to.throw("Invalid output format: INVALID OUTPUT TYPE.")})),it("generates inline sourceMappingURL",(function(){var e=parser$2.parse("foo='1'");if(expect$j(e).to.be.an("object"),"function"==typeof TextEncoder&&(expect$j(compiler.compile(e,compiler.passes,{output:"source-with-inline-map",grammarSource:"src.peggy"})).to.match(/^\/\/# sourceMappingURL=data:application\/json;charset=utf-8;base64,/m),"object"==typeof globalThis)){var t=globalThis.TextEncoder;delete globalThis.TextEncoder,expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-with-inline-map",grammarSource:"src.peggy"})})).to.throw("TextEncoder is not supported by this platform"),globalThis.TextEncoder=t}})),it("requires grammarSource with source-map",(function(){var e=parser$2.parse("foo='1'");expect$j(e).to.be.an("object"),expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-and-map"})})).to.throw("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps"),expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-and-map",grammarSource:""})})).to.throw("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps"),"function"==typeof TextEncoder&&expect$j((function(){return compiler.compile(e,compiler.passes,{output:"source-with-inline-map",grammarSource:{toString:function(){return""}}})})).to.throw("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps")}))}));var chai$i=require$$0,Intern=intern,expect$i=chai$i.expect;describe("utility class Intern",(function(){it("handles strings",(function(){var e=new Intern;expect$i(e.add("one")).to.equal(0),expect$i(e.add("one")).to.equal(0),expect$i(e.add("two")).to.equal(1),expect$i(e.add("one")).to.equal(0),expect$i(e.add("two")).to.equal(1),expect$i(e.add(void 0)).to.equal(-1),expect$i(e.add(null)).to.equal(-1),expect$i(e.items.length).to.equal(2),expect$i(e.items).to.deep.equal(["one","two"]),expect$i(e.get(0)).to.equal("one"),expect$i(e.get(1)).to.equal("two"),expect$i(e.get(-1)).to.equal(void 0),expect$i(e.get(10)).to.equal(void 0);var t=e.map((function(e,t){return[e,t]}));expect$i(t).to.deep.equal([["one",0],["two",1]])})),it("does conversions",(function(){var e=new Intern({convert:function(e){return Array.from(e).map((function(e){return e.codePointAt(0)}))}});expect$i(e.add("abc")).to.equal(0),expect$i(e.add("abc")).to.equal(0),expect$i(e.add("abd")).to.equal(1),expect$i(e.get(0)).to.deep.equal([97,98,99]),expect$i(e.get(1)).to.deep.equal([97,98,100])})),it("stringifies",(function(){var e=new Intern({stringify:function(){return"same"}});expect$i(e.add("abc")).to.equal(0),expect$i(e.add("def")).to.equal(0)}))}));var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),it("reports indirect left recursion",(function(){expect$6(pass$2).to.reportError(["start = stop","stop = start"].join("\n"),{message:"Possible infinite loop when parsing (left recursion: start -> stop -> start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),describe("in sequences",(function(){it("reports left recursion if all preceding elements match empty string",(function(){expect$6(pass$2).to.reportError("start = '' '' '' start")})),it("doesn't report left recursion if some preceding element doesn't match empty string",(function(){expect$6(pass$2).to.not.reportError("start = 'a' '' '' start"),expect$6(pass$2).to.not.reportError("start = '' 'a' '' start"),expect$6(pass$2).to.not.reportError("start = '' '' 'a' start")})),it("reports left recursion when rule reference is wrapped in an expression",(function(){expect$6(pass$2).to.reportError("start = '' start?")})),it("computes expressions that always consume input on success correctly",(function(){expect$6(pass$2).to.reportError(["start = a start","a 'a' = ''"].join("\n")),expect$6(pass$2).to.not.reportError(["start = a start","a 'a' = 'a'"].join("\n")),expect$6(pass$2).to.reportError("start = ('' / 'a' / 'b') start"),expect$6(pass$2).to.reportError("start = ('a' / '' / 'b') start"),expect$6(pass$2).to.reportError("start = ('a' / 'b' / '') start"),expect$6(pass$2).to.not.reportError("start = ('a' / 'b' / 'c') start"),expect$6(pass$2).to.reportError("start = ('' { }) start"),expect$6(pass$2).to.not.reportError("start = ('a' { }) start"),expect$6(pass$2).to.reportError("start = ('' '' '') start"),expect$6(pass$2).to.not.reportError("start = ('a' '' '') start"),expect$6(pass$2).to.not.reportError("start = ('' 'a' '') start"),expect$6(pass$2).to.not.reportError("start = ('' '' 'a') start"),expect$6(pass$2).to.reportError("start = a:'' start"),expect$6(pass$2).to.not.reportError("start = a:'a' start"),expect$6(pass$2).to.reportError("start = $'' start"),expect$6(pass$2).to.not.reportError("start = $'a' start"),expect$6(pass$2).to.reportError("start = &'' start"),expect$6(pass$2).to.reportError("start = &'a' start"),expect$6(pass$2).to.reportError("start = !'' start"),expect$6(pass$2).to.reportError("start = !'a' start"),expect$6(pass$2).to.reportError("start = ''? start"),expect$6(pass$2).to.reportError("start = 'a'? start"),expect$6(pass$2).to.reportError("start = ''* start"),expect$6(pass$2).to.reportError("start = 'a'* start"),expect$6(pass$2).to.reportError("start = ''+ start"),expect$6(pass$2).to.not.reportError("start = 'a'+ start"),expect$6(pass$2).to.reportError("start = ''| .. | start"),expect$6(pass$2).to.reportError("start = ''|0.. | start"),expect$6(pass$2).to.reportError("start = ''|1.. | start"),expect$6(pass$2).to.reportError("start = ''|2.. | start"),expect$6(pass$2).to.reportError("start = ''| ..1| start"),expect$6(pass$2).to.reportError("start = ''| ..3| start"),expect$6(pass$2).to.reportError("start = ''|2..3| start"),expect$6(pass$2).to.reportError("start = ''| 42 | start"),expect$6(pass$2).to.reportError("start = 'a'| .. | start"),expect$6(pass$2).to.reportError("start = 'a'|0.. | start"),expect$6(pass$2).to.not.reportError("start = 'a'|1.. | start"),expect$6(pass$2).to.not.reportError("start = 'a'|2.. | start"),expect$6(pass$2).to.reportError("start = 'a'| ..1| start"),expect$6(pass$2).to.reportError("start = 'a'| ..3| start"),expect$6(pass$2).to.not.reportError("start = 'a'|2..3| start"),expect$6(pass$2).to.not.reportError("start = 'a'| 42 | start"),expect$6(pass$2).to.reportError("start = ('') start"),expect$6(pass$2).to.not.reportError("start = ('a') start"),expect$6(pass$2).to.reportError("start = &{ } start"),expect$6(pass$2).to.reportError("start = !{ } start"),expect$6(pass$2).to.reportError(["start = a start","a = ''"].join("\n")),expect$6(pass$2).to.not.reportError(["start = a start","a = 'a'"].join("\n")),expect$6(pass$2).to.reportError("start = '' start"),expect$6(pass$2).to.not.reportError("start = 'a' start"),expect$6(pass$2).to.not.reportError("start = [a-d] start"),expect$6(pass$2).to.not.reportError("start = . start")}))})),describe("in repeated with delimiter",(function(){it("doesn't report left recursion for delimiter if expression not match empty string",(function(){expect$6(pass$2).to.not.reportError("start = 'a'| .. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'|0.. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'|1.. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'|2.. , start|"),expect$6(pass$2).to.not.reportError("start = 'a'| ..3, start|"),expect$6(pass$2).to.not.reportError("start = 'a'|2..3, start|"),expect$6(pass$2).to.not.reportError("start = 'a'| 42 , start|")})),it("reports left recursion for delimiter if expression match empty string",(function(){expect$6(pass$2).to.reportError("start = ''| .. , start|"),expect$6(pass$2).to.reportError("start = ''|0.. , start|"),expect$6(pass$2).to.reportError("start = ''|1.. , start|"),expect$6(pass$2).to.reportError("start = ''|2.. , start|"),expect$6(pass$2).to.reportError("start = ''| ..3, start|"),expect$6(pass$2).to.reportError("start = ''|2..3, start|"),expect$6(pass$2).to.reportError("start = ''| 42 , start|")})),it("does not inifinite loop",(function(){expect$6(pass$2).to.reportError('\n start = expr*\n\n expr\n = expr "++"\n ',{message:"Possible infinite loop when parsing (left recursion: start -> expr -> expr)"})}))}))}));var chai$5=require$$0,helpers$1=helpers$d,pass$1=reportInfiniteRepetition_1;chai$5.use(helpers$1);var expect$5=chai$5.expect;describe("compiler pass |reportInfiniteRepetition|",(function(){it("reports infinite loops for zero_or_more",(function(){expect$5(pass$1).to.reportError("start = ('')*",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),it("reports infinite loops for one_or_more",(function(){expect$5(pass$1).to.reportError("start = ('')+",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),describe("reports infinite loops for repeated",(function(){describe("without delimiter",(function(){it("with constant boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:16,line:1,column:17}}}),expect$5(pass$1).to.reportError("start = ('')|0..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$5(pass$1).to.reportError("start = ('')|1..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$5(pass$1).to.reportError("start = ('')|2..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$5(pass$1).to.not.reportError("start = ('')| ..1|"),expect$5(pass$1).to.not.reportError("start = ('')| ..3|"),expect$5(pass$1).to.not.reportError("start = ('')|2..3|"),expect$5(pass$1).to.not.reportError("start = ('')| 42 |")})),it("with variable boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|len..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:19,line:1,column:20}}}),expect$5(pass$1).to.not.reportError("start = ('')|..len|"),expect$5(pass$1).to.not.reportError("start = ('')|len1..len2|"),expect$5(pass$1).to.not.reportError("start = ('')|len|")})),it("with function boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|{}..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:18,line:1,column:19}}}),expect$5(pass$1).to.not.reportError("start = ('')|..{}|"),expect$5(pass$1).to.not.reportError("start = ('')|{}..{}|"),expect$5(pass$1).to.not.reportError("start = ('')|{}|")}))})),describe("with empty delimiter",(function(){it("with constant boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')| .., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.reportError("start = ('')|0.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.reportError("start = ('')|1.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.reportError("start = ('')|2.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$5(pass$1).to.not.reportError("start = ('')| ..1, ''|"),expect$5(pass$1).to.not.reportError("start = ('')| ..3, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|2..3, ''|"),expect$5(pass$1).to.not.reportError("start = ('')| 42 , ''|")})),it("with variable boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|len.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:23,line:1,column:24}}}),expect$5(pass$1).to.not.reportError("start = ('')|..len, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|len1..len2, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|len, ''|")})),it("with function boundaries",(function(){expect$5(pass$1).to.reportError("start = ('')|{}.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:22,line:1,column:23}}}),expect$5(pass$1).to.not.reportError("start = ('')|..{}, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|{}..{}, ''|"),expect$5(pass$1).to.not.reportError("start = ('')|{}, ''|")}))})),describe("with non-empty delimiter",(function(){it("with constant boundaries",(function(){expect$5(pass$1).to.not.reportError("start = ('')| .., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|0.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|1.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|2.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')| ..1, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')| ..3, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|2..3, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')| 42 , 'a'|")})),it("with variable boundaries",(function(){expect$5(pass$1).to.not.reportError("start = ('')|len.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|..len, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|len1..len2, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|len, 'a'|")})),it("with function boundaries",(function(){expect$5(pass$1).to.not.reportError("start = ('')|{}.., 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|..{}, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|{}..{}, 'a'|"),expect$5(pass$1).to.not.reportError("start = ('')|{}, 'a'|")}))}))})),it("computes expressions that always consume input on success correctly",(function(){expect$5(pass$1).to.reportError(["start = a*","a 'a' = ''"].join("\n")),expect$5(pass$1).to.not.reportError(["start = a*","a 'a' = 'a'"].join("\n")),expect$5(pass$1).to.reportError("start = ('' / 'a' / 'b')*"),expect$5(pass$1).to.reportError("start = ('a' / '' / 'b')*"),expect$5(pass$1).to.reportError("start = ('a' / 'b' / '')*"),expect$5(pass$1).to.not.reportError("start = ('a' / 'b' / 'c')*"),expect$5(pass$1).to.reportError("start = ('' { })*"),expect$5(pass$1).to.not.reportError("start = ('a' { })*"),expect$5(pass$1).to.reportError("start = ('' '' '')*"),expect$5(pass$1).to.not.reportError("start = ('a' '' '')*"),expect$5(pass$1).to.not.reportError("start = ('' 'a' '')*"),expect$5(pass$1).to.not.reportError("start = ('' '' 'a')*"),expect$5(pass$1).to.reportError("start = (a:'')*"),expect$5(pass$1).to.not.reportError("start = (a:'a')*"),expect$5(pass$1).to.reportError("start = ($'')*"),expect$5(pass$1).to.not.reportError("start = ($'a')*"),expect$5(pass$1).to.reportError("start = (&'')*"),expect$5(pass$1).to.reportError("start = (&'a')*"),expect$5(pass$1).to.reportError("start = (!'')*"),expect$5(pass$1).to.reportError("start = (!'a')*"),expect$5(pass$1).to.reportError("start = (''?)*"),expect$5(pass$1).to.reportError("start = ('a'?)*"),expect$5(pass$1).to.reportError("start = (''*)*"),expect$5(pass$1).to.reportError("start = ('a'*)*"),expect$5(pass$1).to.reportError("start = (''+)*"),expect$5(pass$1).to.not.reportError("start = ('a'+)*"),expect$5(pass$1).to.reportError("start = ('')*"),expect$5(pass$1).to.not.reportError("start = ('a')*"),expect$5(pass$1).to.reportError("start = (&{ })*"),expect$5(pass$1).to.reportError("start = (!{ })*"),expect$5(pass$1).to.reportError("start = 'a'|.., ('')*|"),expect$5(pass$1).to.not.reportError("start = 'a'|.., ('b')*|"),expect$5(pass$1).to.reportError(["start = a*","a = ''"].join("\n")),expect$5(pass$1).to.not.reportError(["start = a*","a = 'a'"].join("\n")),expect$5(pass$1).to.reportError("start = ''*"),expect$5(pass$1).to.not.reportError("start = 'a'*"),expect$5(pass$1).to.not.reportError("start = [a-d]*"),expect$5(pass$1).to.not.reportError("start = .*")}))}));var chai$4=require$$0,helpers=helpers$d,pass=reportUndefinedRules_1;chai$4.use(helpers);var expect$4=chai$4.expect;describe("compiler pass |reportUndefinedRules|",(function(){it("reports undefined rules",(function(){expect$4(pass).to.reportError("start = undefined",{message:'Rule "undefined" is not defined',location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}})}))}));var chai$3=require$$0,Stack=stack,expect$3=chai$3.expect;describe("utility class Stack",(function(){describe("for an empty stack",(function(){var e=void 0;beforeEach((function(){e=new Stack("rule","v","let",[42])})),describe("throws an error when attempting",(function(){it("`pop`",(function(){expect$3((function(){return e.pop()})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42")})),it("`top`",(function(){expect$3((function(){return e.top()})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42")})),it("`result`",(function(){expect$3((function(){return e.result()})).to.throw(RangeError,"Rule 'rule': The variable stack is empty, can't get the result")})),it("`index`",(function(){expect$3((function(){return e.index(-2)})).to.throw(RangeError,"Rule 'rule': The variable stack overflow: attempt to get a variable at a negative index -2.\nBytecode: 42"),expect$3((function(){return e.index(0)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42"),expect$3((function(){return e.index(2)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -3.\nBytecode: 42")})),it("`sourceMapPop`",(function(){expect$3((function(){return e.sourceMapPop()})).to.throw(RangeError,"Rule 'rule': Attempting to pop an empty source map stack.\nBytecode: 42")}))})),it("`defines` returns an empty string",(function(){expect$3(e.defines()).to.equal("")}))})),it("throws an error when attempting `pop` more than `push`",(function(){var e=new Stack("rule","v","let",[42]);e.push("1"),expect$3((function(){return e.pop(3)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -2.\nBytecode: 42")})),it("returns a variable with an index 0 for `result`",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),expect$3(e.result()).to.equal("v0")})),it("`defines` returns a define expression for all used variables",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),e.push("2"),e.pop(),e.push("3"),expect$3(e.defines()).to.equal("let v0, v1;")})),describe("`checkedIf` method",(function(){var e=void 0;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),describe("does not throws an error",(function(){it("without the else brach",(function(){expect$3((function(){return e.checkedIf(0,(function(){}))})).to.not.throw(),expect$3((function(){return e.checkedIf(0,(function(){return e.pop()}))})).to.not.throw(),expect$3((function(){return e.checkedIf(0,(function(){return e.push("2")}))})).to.not.throw()})),describe("when the stack pointer",(function(){it("was not moving in both the arms",(function(){function t(){}function r(){e.push("1"),e.pop()}function a(){e.push("1"),e.push("2"),e.pop(2)}function n(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$3((function(){return e.checkedIf(0,t,t)})).to.not.throw(),expect$3((function(){return e.checkedIf(0,r,r)})).to.not.throw(),expect$3((function(){return e.checkedIf(0,a,a)})).to.not.throw(),expect$3((function(){return e.checkedIf(0,n,n)})).to.not.throw()})),it("increases on the same value in both the arms",(function(){expect$3((function(){return e.checkedIf(0,(function(){return e.push("1")}),(function(){return e.push("2")}))})).to.not.throw()})),it("decreases on the same value in both the arms",(function(){e.push("2"),expect$3((function(){return e.checkedIf(0,(function(){return e.pop(2)}),(function(){e.pop(),e.pop()}))})).to.not.throw()}))}))})),describe("throws an error when the stack pointer",(function(){it("was not moving in `if` and decreases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: -1). Bytecode: 42")})),it("decreases in `if` and was not moving in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 0). Bytecode: 42")})),it("was not moving in `if` and increases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: 1). Bytecode: 42")})),it("increases in `if` and was not moving in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: 0). Bytecode: 42")})),it("decreases in `if` and increases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 1). Bytecode: 42")})),it("increases in `if` and decreases in `then`",(function(){expect$3((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: -1). Bytecode: 42")}))}))})),describe("`checkedLoop` method",(function(){var e=void 0;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),it("does not throws an error when the stack pointer was not moving",(function(){function t(){}function r(){e.push("1"),e.pop()}function a(){e.push("1"),e.push("2"),e.pop(2)}function n(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$3((function(){return e.checkedLoop(0,t)})).to.not.throw(),expect$3((function(){return e.checkedLoop(0,r)})).to.not.throw(),expect$3((function(){return e.checkedLoop(0,a)})).to.not.throw(),expect$3((function(){return e.checkedLoop(0,n)})).to.not.throw()})),it("throws an error when the stack pointer increases",(function(){expect$3((function(){return e.checkedLoop(0,(function(){return e.push("1")}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: 1). Bytecode: 42")})),it("throws an error when the stack pointer decreases",(function(){expect$3((function(){return e.checkedLoop(0,(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: -1). Bytecode: 42")}))})),describe("SourceNode handling",(function(){it("sourceNode handles unknown column",(function(){expect$3(Stack.sourceNode({source:"",start:{line:1,column:0,offset:0},end:{line:1,column:0,offset:0}},["foo"],"test").column).to.equal(null)}))}))}));var chai$2=require$$0,_a$1=utils$1,hex=_a$1.hex,stringEscape=_a$1.stringEscape,regexpClassEscape=_a$1.regexpClassEscape,base64=_a$1.base64,expect$2=chai$2.expect;describe("utility functions",(function(){it("hex",(function(){expect$2(hex("0")).to.equal("30"),expect$2(hex("\0")).to.equal("0"),expect$2(hex("\n")).to.equal("A"),expect$2(hex("\ufeff")).to.equal("FEFF")})),it("stringEscape",(function(){expect$2(stringEscape("abc")).to.equal("abc"),expect$2(stringEscape('\\"\0\b\t\n\v\f\r')).to.equal('\\\\\\"\\0\\b\\t\\n\\v\\f\\r'),expect$2(stringEscape("")).to.equal("\\x01\\x0F"),expect$2(stringEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$2(stringEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$2(stringEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("regexpClassEscape",(function(){expect$2(regexpClassEscape("\\\0\b\t\n\v\f\r")).to.equal("\\\\\\0\\b\\t\\n\\v\\f\\r"),expect$2(regexpClassEscape("/]^-")).to.equal("\\/\\]\\^\\-"),expect$2(regexpClassEscape("")).to.equal("\\x01\\x0F"),expect$2(regexpClassEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$2(regexpClassEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$2(regexpClassEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("base64",(function(){expect$2(base64(new Uint8Array([]))).to.equal(""),expect$2(base64(new Uint8Array([97]))).to.equal("YQ=="),expect$2(base64(new Uint8Array([97,98]))).to.equal("YWI="),expect$2(base64(new Uint8Array([97,98,99]))).to.equal("YWJj"),expect$2(base64(new Uint8Array([97,98,99,100]))).to.equal("YWJjZA=="),expect$2(base64(new Uint8Array([97,98,99,100,101]))).to.equal("YWJjZGU="),expect$2(base64(new Uint8Array([97,98,99,100,101,102]))).to.equal("YWJjZGVm")}))}));var chai$1=require$$0,_a=peg_1,GrammarError=_a.GrammarError,GrammarLocation=_a.GrammarLocation,expect$1=chai$1.expect,location={source:void 0,start:{offset:0,line:1,column:1},end:{offset:4,line:1,column:5}};describe("Grammar Errors",(function(){it("might not have a location",(function(){var e=new GrammarError("message");expect$1(e.location).to.equal(void 0),expect$1(e.toString()).to.equal("GrammarError: message")})),it("might have locations",(function(){location.source=void 0;var e=new GrammarError("message",location);expect$1(e.location).to.eql(location),expect$1(e.toString()).to.equal("GrammarError: message\n at 1:1"),e=new GrammarError("message",null,[{message:"Subinfo",location:location}]),expect$1(e.location).to.equal(null),expect$1(e.toString()).to.equal("GrammarError: message\n from 1:1: Subinfo"),location.source="foo.peggy",e=new GrammarError("message",location,[{message:"Subinfo",location:location}]),expect$1(e.toString()).to.equal("GrammarError: message\n at foo.peggy:1:1\n from foo.peggy:1:1: Subinfo")})),describe("formats",(function(){var e={source:"foo.peggy",text:"some error\nthat"},t={source:"foo.peggy",start:{offset:5,line:1,column:6},end:{offset:11,line:2,column:1}},r=[{message:"Subinfo",location:t}];describe("single problem",(function(){describe("with main location",(function(){location.source="foo.peggy";var t=new GrammarError("message",location,r);it("with zero-length error at the end",(function(){var t=new GrammarError("message",{source:"foo.peggy",start:{offset:4,line:1,column:5},end:{offset:4,line:1,column:5}});expect$1(t.format([e])).to.equal("error: message\n --\x3e foo.peggy:1:5\n |\n1 | some error\n | ^")})),it("with source",(function(){expect$1(t.format([e])).to.equal("error: message\n --\x3e foo.peggy:1:1\n |\n1 | some error\n | ^^^^\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("without source",(function(){expect$1(t.format([])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo")}))})),describe("without main location",(function(){var t=new GrammarError("message",null,r);it("with source",(function(){expect$1(t.format([e])).to.equal("error: message\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("without source",(function(){expect$1(t.format([])).to.equal("error: message\n at foo.peggy:1:6: Subinfo")}))}))})),describe("several problems",(function(){describe("with main location",(function(){location.source="foo.peggy";var a=new GrammarError("message",location,r);a.problems.push(["warning","Warning message",t,[{message:"Warning Subinfo",location:t}]]),a.problems.push(["info","Info message",null,[]]),it("null source text",(function(){expect$1(a.format([{source:null,text:null}])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6\n at foo.peggy:1:6: Warning Subinfo"),expect$1(a.format([{source:null,text:void 0}])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6\n at foo.peggy:1:6: Warning Subinfo")})),it("with source",(function(){expect$1(a.format([e])).to.equal("error: message\n --\x3e foo.peggy:1:1\n |\n1 | some error\n | ^^^^\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^\n\nwarning: Warning message\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^\nnote: Warning Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("with GrammarLocation",(function(){var r=new GrammarLocation("foo.peggy",{offset:12,line:15,column:8});expect$1(String(r)).to.equal("foo.peggy"),location.source=r,t.source=r,a.diagnostics.push({message:"Column not offset",location:{source:r,start:{offset:11,line:2,column:1},end:{offset:15,line:2,column:5}}}),expect$1(a.format([{source:r,text:e.text}])).to.equal("error: message\n --\x3e foo.peggy:15:8\n |\n15 | some error\n | ^^^^\nnote: Subinfo\n --\x3e foo.peggy:15:13\n |\n15 | some error\n | ^^^^^\nnote: Column not offset\n --\x3e foo.peggy:16:1\n |\n16 | that\n | ^^^^\n\nwarning: Warning message\n --\x3e foo.peggy:15:13\n |\n15 | some error\n | ^^^^^\nnote: Warning Subinfo\n --\x3e foo.peggy:15:13\n |\n15 | some error\n | ^^^^^"),location.source="foo.peggy",t.source="foo.peggy",a.diagnostics.pop()})),it("without source",(function(){expect$1(a.format([])).to.equal("error: message\n at foo.peggy:1:1\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6\n at foo.peggy:1:6: Warning Subinfo")}))})),describe("without main location",(function(){var a=new GrammarError("message",null,r);a.problems.push(["warning","Warning message",null,[{message:"Warning Subinfo",location:t}]]),a.problems.push(["info","Info message",null,[]]),it("with source",(function(){expect$1(a.format([e])).to.equal("error: message\nnote: Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^\n\nwarning: Warning message\nnote: Warning Subinfo\n --\x3e foo.peggy:1:6\n |\n1 | some error\n | ^^^^^")})),it("without source",(function(){expect$1(a.format([])).to.equal("error: message\n at foo.peggy:1:6: Subinfo\n\nwarning: Warning message\n at foo.peggy:1:6: Warning Subinfo")}))}))}))}))}));var __spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n=14'} - hasBin: true - - '@11ty/eleventy-utils@1.0.3': - resolution: {integrity: sha512-nULO91om7vQw4Y/UBjM8i7nJ1xl+/nyK4rImZ41lFxiY2d+XUz7ChAj1CDYFjrLZeu0utAYJTZ45LlcHTkUG4g==} - engines: {node: '>=12'} - - '@11ty/eleventy@2.0.1': - resolution: {integrity: sha512-t8XVUbCJByhVEa1RzO0zS2QzbL3wPY8ot1yUw9noqiSHxJWUwv6jiwm1/MZDPTYtkZH2ZHvdQIRQ5/SjG9XmLw==} - engines: {node: '>=14'} - hasBin: true - - '@11ty/lodash-custom@4.17.21': - resolution: {integrity: sha512-Mqt6im1xpb1Ykn3nbcCovWXK3ggywRJa+IXIdoz4wIIK+cvozADH63lexcuPpGS/gJ6/m2JxyyXDyupkMr5DHw==} - engines: {node: '>=14'} - - '@babel/helper-string-parser@7.24.7': - resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-validator-identifier@7.24.7': - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} - engines: {node: '>=6.9.0'} - - '@babel/parser@7.24.7': - resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==} - engines: {node: '>=6.0.0'} - hasBin: true - - '@babel/types@7.24.7': - resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} - engines: {node: '>=6.9.0'} - - '@iarna/toml@2.2.5': - resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} - - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - - '@sindresorhus/slugify@1.1.2': - resolution: {integrity: sha512-V9nR/W0Xd9TSGXpZ4iFUcFGhuOJtZX82Fzxj1YISlbSgKvIiNa7eLEZrT0vAraPOt++KHauIVNYgGRgjc13dXA==} - engines: {node: '>=10'} - - '@sindresorhus/transliterate@0.1.2': - resolution: {integrity: sha512-5/kmIOY9FF32nicXH+5yLNTX4NJ4atl7jRgqAJuIn/iyDFXBktOKDxCvyGE/EzmF4ngSUvjXxQUQlQiZ5lfw+w==} - engines: {node: '>=10'} - - '@types/minimatch@3.0.5': - resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==} - - a-sync-waterfall@1.0.1: - resolution: {integrity: sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==} - - acorn@7.4.1: - resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} - engines: {node: '>=0.4.0'} - hasBin: true - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - any-promise@0.1.0: - resolution: {integrity: sha512-lqzY9o+BbeGHRCOyxQkt/Tgvz0IZhTmQiA+LxQW8wSNpcTbj8K+0cZiSEvbpNZZP9/11Gy7dnLO3GNWUXO4d1g==} - - anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - array-differ@1.0.0: - resolution: {integrity: sha512-LeZY+DZDRnvP7eMuQ6LHfCzUGxAAIViUBliK24P3hWXL6y4SortgR6Nim6xrkfSLlmH0+k+9NYNwVC2s53ZrYQ==} - engines: {node: '>=0.10.0'} - - array-differ@3.0.0: - resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==} - engines: {node: '>=8'} - - array-union@1.0.2: - resolution: {integrity: sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==} - engines: {node: '>=0.10.0'} - - array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} - engines: {node: '>=8'} - - array-uniq@1.0.3: - resolution: {integrity: sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==} - engines: {node: '>=0.10.0'} - - arrify@1.0.1: - resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} - engines: {node: '>=0.10.0'} - - arrify@2.0.1: - resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==} - engines: {node: '>=8'} - - asap@2.0.6: - resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} - - assert-never@1.2.1: - resolution: {integrity: sha512-TaTivMB6pYI1kXwrFlEhLeGfOqoDNdTxjCdwRfFFkEA30Eu+k48W34nlok2EYWJfFFzqaEmichdNM7th6M5HNw==} - - async@3.2.5: - resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} - - babel-walk@3.0.0-canary-5: - resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==} - engines: {node: '>= 10.0.0'} - - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - bcp-47-match@1.0.3: - resolution: {integrity: sha512-LggQ4YTdjWQSKELZF5JwchnBa1u0pIQSZf5lSdOHEdbVP55h0qICA/FUp3+W99q0xqxYa1ZQizTUH87gecII5w==} - - bcp-47-normalize@1.1.1: - resolution: {integrity: sha512-jWZ1Jdu3cs0EZdfCkS0UE9Gg01PtxnChjEBySeB+Zo6nkqtFfnvtoQQgP1qU1Oo4qgJgxhTI6Sf9y/pZIhPs0A==} - - bcp-47@1.0.8: - resolution: {integrity: sha512-Y9y1QNBBtYtv7hcmoX0tR+tUNSFZGZ6OL6vKPObq8BbOhkCoyayF6ogfLTgAli/KuAEbsYHYUNq2AQuY6IuLag==} - - binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - - brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - - brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - call-bind@1.0.7: - resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} - engines: {node: '>= 0.4'} - - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - character-parser@2.2.0: - resolution: {integrity: sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==} - - chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - commander@10.0.1: - resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} - engines: {node: '>=14'} - - commander@5.1.0: - resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} - engines: {node: '>= 6'} - - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - constantinople@4.0.1: - resolution: {integrity: sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==} - - cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} - engines: {node: '>= 8'} - - debug@2.6.9: - resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - debug@4.3.5: - resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - define-data-property@1.1.4: - resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} - engines: {node: '>= 0.4'} - - dependency-graph@0.11.0: - resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} - engines: {node: '>= 0.6.0'} - - dev-ip@1.0.1: - resolution: {integrity: sha512-LmVkry/oDShEgSZPNgqCIp2/TlqtExeGmymru3uCELnfyjY11IzpAproLYs+1X88fXO6DBoYP3ul2Xo2yz2j6A==} - engines: {node: '>= 0.8.0'} - hasBin: true - - doctypes@1.1.0: - resolution: {integrity: sha512-LLBi6pEqS6Do3EKQ3J0NqHWV5hhb78Pi8vvESYwyOy2c31ZEZVdtitdzsQsKb7878PEERhzUk0ftqGhG6Mz+pQ==} - - dom-serializer@1.4.1: - resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==} - - domelementtype@2.3.0: - resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} - - domhandler@4.3.1: - resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==} - engines: {node: '>= 4'} - - domutils@2.8.0: - resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==} - - ee-first@1.1.1: - resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - - ejs@3.1.10: - resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} - engines: {node: '>=0.10.0'} - hasBin: true - - encodeurl@1.0.2: - resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} - engines: {node: '>= 0.8'} - - entities@2.2.0: - resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} - - entities@3.0.1: - resolution: {integrity: sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==} - engines: {node: '>=0.12'} - - errno@0.1.8: - resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==} - hasBin: true - - es-define-property@1.0.0: - resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} - engines: {node: '>= 0.4'} - - es-errors@1.3.0: - resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} - engines: {node: '>= 0.4'} - - escape-html@1.0.3: - resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} - - escape-string-regexp@2.0.0: - resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} - engines: {node: '>=8'} - - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - - extend-shallow@2.0.1: - resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} - engines: {node: '>=0.10.0'} - - fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - - fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - - filelist@1.0.4: - resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} - - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - finalhandler@1.2.0: - resolution: {integrity: sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==} - engines: {node: '>= 0.8'} - - fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - function-bind@1.1.2: - resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - - get-intrinsic@1.2.4: - resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} - engines: {node: '>= 0.4'} - - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - - glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported - - gopd@1.0.1: - resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} - - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - - gray-matter@4.0.3: - resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==} - engines: {node: '>=6.0'} - - hamljs@0.6.2: - resolution: {integrity: sha512-/chXRp4WpL47I+HX1vCCdSbEXAljEG2FBMmgO7Am0bYsqgnEjreeWzUdX1onXqwZtcfgxbCg5WtEYYvuZ5muBg==} - - handlebars@4.7.8: - resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} - engines: {node: '>=0.4.7'} - hasBin: true - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - has-property-descriptors@1.0.2: - resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} - - has-proto@1.0.3: - resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} - engines: {node: '>= 0.4'} - - has-symbols@1.0.3: - resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} - engines: {node: '>= 0.4'} - - has-tostringtag@1.0.2: - resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} - engines: {node: '>= 0.4'} - - hasown@2.0.2: - resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} - engines: {node: '>= 0.4'} - - htmlparser2@7.2.0: - resolution: {integrity: sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==} - - http-equiv-refresh@1.0.0: - resolution: {integrity: sha512-TScO04soylRN9i/QdOdgZyhydXg9z6XdaGzEyOgDKycePeDeTT4KvigjBcI+tgfTlieLWauGORMq5F1eIDa+1w==} - engines: {node: '>= 0.10'} - - inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - - is-alphabetical@1.0.4: - resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==} - - is-alphanumerical@1.0.4: - resolution: {integrity: sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==} - - is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - - is-core-module@2.13.1: - resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} - - is-decimal@1.0.4: - resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==} - - is-expression@4.0.0: - resolution: {integrity: sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==} - - is-extendable@0.1.1: - resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} - engines: {node: '>=0.10.0'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - is-json@2.0.1: - resolution: {integrity: sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-promise@2.2.2: - resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} - - is-regex@1.1.4: - resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} - engines: {node: '>= 0.4'} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - iso-639-1@2.1.15: - resolution: {integrity: sha512-7c7mBznZu2ktfvyT582E2msM+Udc1EjOyhVRE/0ZsjD9LBtWSm23h3PtiRh2a35XoUsTQQjJXaJzuLjXsOdFDg==} - engines: {node: '>=6.0'} - - jake@10.9.1: - resolution: {integrity: sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w==} - engines: {node: '>=10'} - hasBin: true - - js-stringify@1.0.2: - resolution: {integrity: sha512-rtS5ATOo2Q5k1G+DADISilDA6lv79zIiwFd6CcjuIxGKLFm5C+RLImRscVap9k55i+MOZwgliw+NejvkLuGD5g==} - - js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - - jstransformer@1.0.0: - resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==} - - junk@1.0.3: - resolution: {integrity: sha512-3KF80UaaSSxo8jVnRYtMKNGFOoVPBdkkVPsw+Ad0y4oxKXPduS6G6iHkrf69yJVff/VAaYXkV42rtZ7daJxU3w==} - engines: {node: '>=0.10.0'} - - kind-of@6.0.3: - resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} - engines: {node: '>=0.10.0'} - - kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - - linkify-it@4.0.1: - resolution: {integrity: sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==} - - liquidjs@10.14.0: - resolution: {integrity: sha512-Zjg35Yo3L/2aNy7QkICha/ulbXRtZS7oRenWyDDfw+J34Xy3fOKWWHxASC9r0gbxN661nrwmG/kOIKHfYcVk4Q==} - engines: {node: '>=14'} - hasBin: true - - list-to-array@1.1.0: - resolution: {integrity: sha512-+dAZZ2mM+/m+vY9ezfoueVvrgnHIGi5FvgSymbIgJOFwiznWyA59mav95L+Mc6xPtL3s9gm5eNTlNtxJLbNM1g==} - - lodash.deburr@4.1.0: - resolution: {integrity: sha512-m/M1U1f3ddMCs6Hq2tAsYThTBDaAKFDX3dwDo97GEYzamXi9SqUpjWi/Rrj/gf3X2n8ktwgZrlP1z6E3v/IExQ==} - - luxon@3.4.4: - resolution: {integrity: sha512-zobTr7akeGHnv7eBOXcRgMeCP6+uyYsczwmeRCauvpvaAltgNyTbLH/+VaEAPUeWBT+1GuNmz4wC/6jtQzbbVA==} - engines: {node: '>=12'} - - markdown-it@13.0.2: - resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==} - hasBin: true - - maximatch@0.1.0: - resolution: {integrity: sha512-9ORVtDUFk4u/NFfo0vG/ND/z7UQCVZBL539YW0+U1I7H1BkZwizcPx5foFv7LCPcBnm2U6RjFnQOsIvN4/Vm2A==} - engines: {node: '>=0.10.0'} - - mdurl@1.0.1: - resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} - - merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - - micromatch@4.0.7: - resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} - engines: {node: '>=8.6'} - - mime@3.0.0: - resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} - engines: {node: '>=10.0.0'} - hasBin: true - - minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - - minimatch@5.1.6: - resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} - engines: {node: '>=10'} - - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - - minipass@3.3.6: - resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} - engines: {node: '>=8'} - - mkdirp@0.5.6: - resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} - hasBin: true - - moo@0.5.2: - resolution: {integrity: sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==} - - morphdom@2.7.2: - resolution: {integrity: sha512-Dqb/lHFyTi7SZpY0a5R4I/0Edo+iPMbaUexsHHsLAByyixCDiLHPHyVoKVmrpL0THcT7V9Cgev9y21TQYq6wQg==} - - ms@2.0.0: - resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} - - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - - multimatch@5.0.0: - resolution: {integrity: sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==} - engines: {node: '>=10'} - - mustache@4.2.0: - resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} - hasBin: true - - neo-async@2.6.2: - resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - nunjucks@3.2.4: - resolution: {integrity: sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==} - engines: {node: '>= 6.9.0'} - hasBin: true - peerDependencies: - chokidar: ^3.3.0 - peerDependenciesMeta: - chokidar: - optional: true - - object-assign@4.1.1: - resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} - engines: {node: '>=0.10.0'} - - on-finished@2.4.1: - resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} - engines: {node: '>= 0.8'} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - - parse-srcset@1.0.2: - resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==} - - parseurl@1.3.3: - resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} - engines: {node: '>= 0.8'} - - path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - path-parse@1.0.7: - resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - - path-to-regexp@6.2.2: - resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} - - picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - - pify@2.3.0: - resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} - engines: {node: '>=0.10.0'} - - please-upgrade-node@3.2.0: - resolution: {integrity: sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==} - - posthtml-parser@0.11.0: - resolution: {integrity: sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==} - engines: {node: '>=12'} - - posthtml-render@3.0.0: - resolution: {integrity: sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==} - engines: {node: '>=12'} - - posthtml-urls@1.0.0: - resolution: {integrity: sha512-CMJ0L009sGQVUuYM/g6WJdscsq6ooAwhUuF6CDlYPMLxKp2rmCYVebEU+wZGxnQstGJhZPMvXsRhtqekILd5/w==} - engines: {node: '>= 4'} - - posthtml@0.16.6: - resolution: {integrity: sha512-JcEmHlyLK/o0uGAlj65vgg+7LIms0xKXe60lcDOTU7oVX/3LuEuLwrQpW3VJ7de5TaFKiW4kWkaIpJL42FEgxQ==} - engines: {node: '>=12.0.0'} - - promise-each@2.2.0: - resolution: {integrity: sha512-67roqt1k3QDA41DZ8xi0V+rF3GoaMiX7QilbXu0vXimut+9RcKBNZ/t60xCRgcsihmNUsEjh48xLfNqOrKblUg==} - - promise@7.3.1: - resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==} - - prr@1.0.1: - resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} - - pug-attrs@3.0.0: - resolution: {integrity: sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA==} - - pug-code-gen@3.0.3: - resolution: {integrity: sha512-cYQg0JW0w32Ux+XTeZnBEeuWrAY7/HNE6TWnhiHGnnRYlCgyAUPoyh9KzCMa9WhcJlJ1AtQqpEYHc+vbCzA+Aw==} - - pug-error@2.1.0: - resolution: {integrity: sha512-lv7sU9e5Jk8IeUheHata6/UThZ7RK2jnaaNztxfPYUY+VxZyk/ePVaNZ/vwmH8WqGvDz3LrNYt/+gA55NDg6Pg==} - - pug-filters@4.0.0: - resolution: {integrity: sha512-yeNFtq5Yxmfz0f9z2rMXGw/8/4i1cCFecw/Q7+D0V2DdtII5UvqE12VaZ2AY7ri6o5RNXiweGH79OCq+2RQU4A==} - - pug-lexer@5.0.1: - resolution: {integrity: sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==} - - pug-linker@4.0.0: - resolution: {integrity: sha512-gjD1yzp0yxbQqnzBAdlhbgoJL5qIFJw78juN1NpTLt/mfPJ5VgC4BvkoD3G23qKzJtIIXBbcCt6FioLSFLOHdw==} - - pug-load@3.0.0: - resolution: {integrity: sha512-OCjTEnhLWZBvS4zni/WUMjH2YSUosnsmjGBB1An7CsKQarYSWQ0GCVyd4eQPMFJqZ8w9xgs01QdiZXKVjk92EQ==} - - pug-parser@6.0.0: - resolution: {integrity: sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw==} - - pug-runtime@3.0.1: - resolution: {integrity: sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg==} - - pug-strip-comments@2.0.0: - resolution: {integrity: sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ==} - - pug-walk@2.0.0: - resolution: {integrity: sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ==} - - pug@3.0.3: - resolution: {integrity: sha512-uBi6kmc9f3SZ3PXxqcHiUZLmIXgfgWooKWXcwSGwQd2Zi5Rb0bT14+8CJjJgI8AB+nndLaNgHGrcc6bPIB665g==} - - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - - readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - - recursive-copy@2.0.14: - resolution: {integrity: sha512-K8WNY8f8naTpfbA+RaXmkaQuD1IeW9EgNEfyGxSqqTQukpVtoOKros9jUqbpEsSw59YOmpd8nCBgtqJZy5nvog==} - - resolve@1.22.8: - resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} - hasBin: true - - reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - - rimraf@2.7.1: - resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - - section-matter@1.0.0: - resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==} - engines: {node: '>=4'} - - semver-compare@1.0.0: - resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==} - - semver@7.6.2: - resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} - engines: {node: '>=10'} - hasBin: true - - set-function-length@1.2.2: - resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} - engines: {node: '>= 0.4'} - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - slash@1.0.0: - resolution: {integrity: sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==} - engines: {node: '>=0.10.0'} - - slugify@1.6.6: - resolution: {integrity: sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==} - engines: {node: '>=8.0.0'} - - source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - - ssri@8.0.1: - resolution: {integrity: sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==} - engines: {node: '>= 8'} - - statuses@2.0.1: - resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} - engines: {node: '>= 0.8'} - - strip-bom-string@1.0.0: - resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==} - engines: {node: '>=0.10.0'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - - supports-preserve-symlinks-flag@1.0.0: - resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} - engines: {node: '>= 0.4'} - - to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - - token-stream@1.0.0: - resolution: {integrity: sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==} - - uc.micro@1.0.6: - resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} - - uglify-js@3.18.0: - resolution: {integrity: sha512-SyVVbcNBCk0dzr9XL/R/ySrmYf0s372K6/hFklzgcp2lBFyXtw4I7BOdDjlLhE1aVqaI/SHWXWmYdlZxuyF38A==} - engines: {node: '>=0.8.0'} - hasBin: true - - unpipe@1.0.0: - resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} - engines: {node: '>= 0.8'} - - void-elements@3.1.0: - resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} - engines: {node: '>=0.10.0'} - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - with@7.0.2: - resolution: {integrity: sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w==} - engines: {node: '>= 10.0.0'} - - wordwrap@1.0.0: - resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - ws@8.17.1: - resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - yallist@4.0.0: - resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - -snapshots: - - '@11ty/dependency-tree@2.0.1': {} - - '@11ty/eleventy-dev-server@1.0.4': - dependencies: - '@11ty/eleventy-utils': 1.0.3 - chokidar: 3.6.0 - debug: 4.3.5 - dev-ip: 1.0.1 - finalhandler: 1.2.0 - mime: 3.0.0 - minimist: 1.2.8 - morphdom: 2.7.2 - please-upgrade-node: 3.2.0 - ssri: 8.0.1 - ws: 8.17.1 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@11ty/eleventy-utils@1.0.3': - dependencies: - normalize-path: 3.0.0 - - '@11ty/eleventy@2.0.1': - dependencies: - '@11ty/dependency-tree': 2.0.1 - '@11ty/eleventy-dev-server': 1.0.4 - '@11ty/eleventy-utils': 1.0.3 - '@11ty/lodash-custom': 4.17.21 - '@iarna/toml': 2.2.5 - '@sindresorhus/slugify': 1.1.2 - bcp-47-normalize: 1.1.1 - chokidar: 3.6.0 - cross-spawn: 7.0.3 - debug: 4.3.5 - dependency-graph: 0.11.0 - ejs: 3.1.10 - fast-glob: 3.3.2 - graceful-fs: 4.2.11 - gray-matter: 4.0.3 - hamljs: 0.6.2 - handlebars: 4.7.8 - is-glob: 4.0.3 - iso-639-1: 2.1.15 - kleur: 4.1.5 - liquidjs: 10.14.0 - luxon: 3.4.4 - markdown-it: 13.0.2 - micromatch: 4.0.7 - minimist: 1.2.8 - moo: 0.5.2 - multimatch: 5.0.0 - mustache: 4.2.0 - normalize-path: 3.0.0 - nunjucks: 3.2.4(chokidar@3.6.0) - path-to-regexp: 6.2.2 - please-upgrade-node: 3.2.0 - posthtml: 0.16.6 - posthtml-urls: 1.0.0 - pug: 3.0.3 - recursive-copy: 2.0.14 - semver: 7.6.2 - slugify: 1.6.6 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@11ty/lodash-custom@4.17.21': {} - - '@babel/helper-string-parser@7.24.7': {} - - '@babel/helper-validator-identifier@7.24.7': {} - - '@babel/parser@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/types@7.24.7': - dependencies: - '@babel/helper-string-parser': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 - - '@iarna/toml@2.2.5': {} - - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - - '@nodelib/fs.stat@2.0.5': {} - - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 - - '@sindresorhus/slugify@1.1.2': - dependencies: - '@sindresorhus/transliterate': 0.1.2 - escape-string-regexp: 4.0.0 - - '@sindresorhus/transliterate@0.1.2': - dependencies: - escape-string-regexp: 2.0.0 - lodash.deburr: 4.1.0 - - '@types/minimatch@3.0.5': {} - - a-sync-waterfall@1.0.1: {} - - acorn@7.4.1: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - any-promise@0.1.0: {} - - anymatch@3.1.3: - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - - argparse@2.0.1: {} - - array-differ@1.0.0: {} - - array-differ@3.0.0: {} - - array-union@1.0.2: - dependencies: - array-uniq: 1.0.3 - - array-union@2.1.0: {} - - array-uniq@1.0.3: {} - - arrify@1.0.1: {} - - arrify@2.0.1: {} - - asap@2.0.6: {} - - assert-never@1.2.1: {} - - async@3.2.5: {} - - babel-walk@3.0.0-canary-5: - dependencies: - '@babel/types': 7.24.7 - - balanced-match@1.0.2: {} - - bcp-47-match@1.0.3: {} - - bcp-47-normalize@1.1.1: - dependencies: - bcp-47: 1.0.8 - bcp-47-match: 1.0.3 - - bcp-47@1.0.8: - dependencies: - is-alphabetical: 1.0.4 - is-alphanumerical: 1.0.4 - is-decimal: 1.0.4 - - binary-extensions@2.3.0: {} - - brace-expansion@1.1.11: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - brace-expansion@2.0.1: - dependencies: - balanced-match: 1.0.2 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - - call-bind@1.0.7: - dependencies: - es-define-property: 1.0.0 - es-errors: 1.3.0 - function-bind: 1.1.2 - get-intrinsic: 1.2.4 - set-function-length: 1.2.2 - - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - character-parser@2.2.0: - dependencies: - is-regex: 1.1.4 - - chokidar@3.6.0: - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - commander@10.0.1: {} - - commander@5.1.0: {} - - concat-map@0.0.1: {} - - constantinople@4.0.1: - dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 - - cross-spawn@7.0.3: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - debug@2.6.9: - dependencies: - ms: 2.0.0 - - debug@4.3.5: - dependencies: - ms: 2.1.2 - - define-data-property@1.1.4: - dependencies: - es-define-property: 1.0.0 - es-errors: 1.3.0 - gopd: 1.0.1 - - dependency-graph@0.11.0: {} - - dev-ip@1.0.1: {} - - doctypes@1.1.0: {} - - dom-serializer@1.4.1: - dependencies: - domelementtype: 2.3.0 - domhandler: 4.3.1 - entities: 2.2.0 - - domelementtype@2.3.0: {} - - domhandler@4.3.1: - dependencies: - domelementtype: 2.3.0 - - domutils@2.8.0: - dependencies: - dom-serializer: 1.4.1 - domelementtype: 2.3.0 - domhandler: 4.3.1 - - ee-first@1.1.1: {} - - ejs@3.1.10: - dependencies: - jake: 10.9.1 - - encodeurl@1.0.2: {} - - entities@2.2.0: {} - - entities@3.0.1: {} - - errno@0.1.8: - dependencies: - prr: 1.0.1 - - es-define-property@1.0.0: - dependencies: - get-intrinsic: 1.2.4 - - es-errors@1.3.0: {} - - escape-html@1.0.3: {} - - escape-string-regexp@2.0.0: {} - - escape-string-regexp@4.0.0: {} - - esprima@4.0.1: {} - - extend-shallow@2.0.1: - dependencies: - is-extendable: 0.1.1 - - fast-glob@3.3.2: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.7 - - fastq@1.17.1: - dependencies: - reusify: 1.0.4 - - filelist@1.0.4: - dependencies: - minimatch: 5.1.6 - - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - - finalhandler@1.2.0: - dependencies: - debug: 2.6.9 - encodeurl: 1.0.2 - escape-html: 1.0.3 - on-finished: 2.4.1 - parseurl: 1.3.3 - statuses: 2.0.1 - unpipe: 1.0.0 - transitivePeerDependencies: - - supports-color - - fs.realpath@1.0.0: {} - - fsevents@2.3.3: - optional: true - - function-bind@1.1.2: {} - - get-intrinsic@1.2.4: - dependencies: - es-errors: 1.3.0 - function-bind: 1.1.2 - has-proto: 1.0.3 - has-symbols: 1.0.3 - hasown: 2.0.2 - - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - - glob@7.2.3: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - - gopd@1.0.1: - dependencies: - get-intrinsic: 1.2.4 - - graceful-fs@4.2.11: {} - - gray-matter@4.0.3: - dependencies: - js-yaml: 3.14.1 - kind-of: 6.0.3 - section-matter: 1.0.0 - strip-bom-string: 1.0.0 - - hamljs@0.6.2: {} - - handlebars@4.7.8: - dependencies: - minimist: 1.2.8 - neo-async: 2.6.2 - source-map: 0.6.1 - wordwrap: 1.0.0 - optionalDependencies: - uglify-js: 3.18.0 - - has-flag@4.0.0: {} - - has-property-descriptors@1.0.2: - dependencies: - es-define-property: 1.0.0 - - has-proto@1.0.3: {} - - has-symbols@1.0.3: {} - - has-tostringtag@1.0.2: - dependencies: - has-symbols: 1.0.3 - - hasown@2.0.2: - dependencies: - function-bind: 1.1.2 - - htmlparser2@7.2.0: - dependencies: - domelementtype: 2.3.0 - domhandler: 4.3.1 - domutils: 2.8.0 - entities: 3.0.1 - - http-equiv-refresh@1.0.0: {} - - inflight@1.0.6: - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - - inherits@2.0.4: {} - - is-alphabetical@1.0.4: {} - - is-alphanumerical@1.0.4: - dependencies: - is-alphabetical: 1.0.4 - is-decimal: 1.0.4 - - is-binary-path@2.1.0: - dependencies: - binary-extensions: 2.3.0 - - is-core-module@2.13.1: - dependencies: - hasown: 2.0.2 - - is-decimal@1.0.4: {} - - is-expression@4.0.0: - dependencies: - acorn: 7.4.1 - object-assign: 4.1.1 - - is-extendable@0.1.1: {} - - is-extglob@2.1.1: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - is-json@2.0.1: {} - - is-number@7.0.0: {} - - is-promise@2.2.2: {} - - is-regex@1.1.4: - dependencies: - call-bind: 1.0.7 - has-tostringtag: 1.0.2 - - isexe@2.0.0: {} - - iso-639-1@2.1.15: {} - - jake@10.9.1: - dependencies: - async: 3.2.5 - chalk: 4.1.2 - filelist: 1.0.4 - minimatch: 3.1.2 - - js-stringify@1.0.2: {} - - js-yaml@3.14.1: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - - jstransformer@1.0.0: - dependencies: - is-promise: 2.2.2 - promise: 7.3.1 - - junk@1.0.3: {} - - kind-of@6.0.3: {} - - kleur@4.1.5: {} - - linkify-it@4.0.1: - dependencies: - uc.micro: 1.0.6 - - liquidjs@10.14.0: - dependencies: - commander: 10.0.1 - - list-to-array@1.1.0: {} - - lodash.deburr@4.1.0: {} - - luxon@3.4.4: {} - - markdown-it@13.0.2: - dependencies: - argparse: 2.0.1 - entities: 3.0.1 - linkify-it: 4.0.1 - mdurl: 1.0.1 - uc.micro: 1.0.6 - - maximatch@0.1.0: - dependencies: - array-differ: 1.0.0 - array-union: 1.0.2 - arrify: 1.0.1 - minimatch: 3.1.2 - - mdurl@1.0.1: {} - - merge2@1.4.1: {} - - micromatch@4.0.7: - dependencies: - braces: 3.0.3 - picomatch: 2.3.1 - - mime@3.0.0: {} - - minimatch@3.1.2: - dependencies: - brace-expansion: 1.1.11 - - minimatch@5.1.6: - dependencies: - brace-expansion: 2.0.1 - - minimist@1.2.8: {} - - minipass@3.3.6: - dependencies: - yallist: 4.0.0 - - mkdirp@0.5.6: - dependencies: - minimist: 1.2.8 - - moo@0.5.2: {} - - morphdom@2.7.2: {} - - ms@2.0.0: {} - - ms@2.1.2: {} - - multimatch@5.0.0: - dependencies: - '@types/minimatch': 3.0.5 - array-differ: 3.0.0 - array-union: 2.1.0 - arrify: 2.0.1 - minimatch: 3.1.2 - - mustache@4.2.0: {} - - neo-async@2.6.2: {} - - normalize-path@3.0.0: {} - - nunjucks@3.2.4(chokidar@3.6.0): - dependencies: - a-sync-waterfall: 1.0.1 - asap: 2.0.6 - commander: 5.1.0 - optionalDependencies: - chokidar: 3.6.0 - - object-assign@4.1.1: {} - - on-finished@2.4.1: - dependencies: - ee-first: 1.1.1 - - once@1.4.0: - dependencies: - wrappy: 1.0.2 - - parse-srcset@1.0.2: {} - - parseurl@1.3.3: {} - - path-is-absolute@1.0.1: {} - - path-key@3.1.1: {} - - path-parse@1.0.7: {} - - path-to-regexp@6.2.2: {} - - picomatch@2.3.1: {} - - pify@2.3.0: {} - - please-upgrade-node@3.2.0: - dependencies: - semver-compare: 1.0.0 - - posthtml-parser@0.11.0: - dependencies: - htmlparser2: 7.2.0 - - posthtml-render@3.0.0: - dependencies: - is-json: 2.0.1 - - posthtml-urls@1.0.0: - dependencies: - http-equiv-refresh: 1.0.0 - list-to-array: 1.1.0 - parse-srcset: 1.0.2 - promise-each: 2.2.0 - - posthtml@0.16.6: - dependencies: - posthtml-parser: 0.11.0 - posthtml-render: 3.0.0 - - promise-each@2.2.0: - dependencies: - any-promise: 0.1.0 - - promise@7.3.1: - dependencies: - asap: 2.0.6 - - prr@1.0.1: {} - - pug-attrs@3.0.0: - dependencies: - constantinople: 4.0.1 - js-stringify: 1.0.2 - pug-runtime: 3.0.1 - - pug-code-gen@3.0.3: - dependencies: - constantinople: 4.0.1 - doctypes: 1.1.0 - js-stringify: 1.0.2 - pug-attrs: 3.0.0 - pug-error: 2.1.0 - pug-runtime: 3.0.1 - void-elements: 3.1.0 - with: 7.0.2 - - pug-error@2.1.0: {} - - pug-filters@4.0.0: - dependencies: - constantinople: 4.0.1 - jstransformer: 1.0.0 - pug-error: 2.1.0 - pug-walk: 2.0.0 - resolve: 1.22.8 - - pug-lexer@5.0.1: - dependencies: - character-parser: 2.2.0 - is-expression: 4.0.0 - pug-error: 2.1.0 - - pug-linker@4.0.0: - dependencies: - pug-error: 2.1.0 - pug-walk: 2.0.0 - - pug-load@3.0.0: - dependencies: - object-assign: 4.1.1 - pug-walk: 2.0.0 - - pug-parser@6.0.0: - dependencies: - pug-error: 2.1.0 - token-stream: 1.0.0 - - pug-runtime@3.0.1: {} - - pug-strip-comments@2.0.0: - dependencies: - pug-error: 2.1.0 - - pug-walk@2.0.0: {} - - pug@3.0.3: - dependencies: - pug-code-gen: 3.0.3 - pug-filters: 4.0.0 - pug-lexer: 5.0.1 - pug-linker: 4.0.0 - pug-load: 3.0.0 - pug-parser: 6.0.0 - pug-runtime: 3.0.1 - pug-strip-comments: 2.0.0 - - queue-microtask@1.2.3: {} - - readdirp@3.6.0: - dependencies: - picomatch: 2.3.1 - - recursive-copy@2.0.14: - dependencies: - errno: 0.1.8 - graceful-fs: 4.2.11 - junk: 1.0.3 - maximatch: 0.1.0 - mkdirp: 0.5.6 - pify: 2.3.0 - promise: 7.3.1 - rimraf: 2.7.1 - slash: 1.0.0 - - resolve@1.22.8: - dependencies: - is-core-module: 2.13.1 - path-parse: 1.0.7 - supports-preserve-symlinks-flag: 1.0.0 - - reusify@1.0.4: {} - - rimraf@2.7.1: - dependencies: - glob: 7.2.3 - - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 - - section-matter@1.0.0: - dependencies: - extend-shallow: 2.0.1 - kind-of: 6.0.3 - - semver-compare@1.0.0: {} - - semver@7.6.2: {} - - set-function-length@1.2.2: - dependencies: - define-data-property: 1.1.4 - es-errors: 1.3.0 - function-bind: 1.1.2 - get-intrinsic: 1.2.4 - gopd: 1.0.1 - has-property-descriptors: 1.0.2 - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - - slash@1.0.0: {} - - slugify@1.6.6: {} - - source-map@0.6.1: {} - - sprintf-js@1.0.3: {} - - ssri@8.0.1: - dependencies: - minipass: 3.3.6 - - statuses@2.0.1: {} - - strip-bom-string@1.0.0: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - - supports-preserve-symlinks-flag@1.0.0: {} - - to-fast-properties@2.0.0: {} - - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - - token-stream@1.0.0: {} - - uc.micro@1.0.6: {} - - uglify-js@3.18.0: - optional: true - - unpipe@1.0.0: {} - - void-elements@3.1.0: {} - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - with@7.0.2: - dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 - assert-never: 1.2.1 - babel-walk: 3.0.0-canary-5 - - wordwrap@1.0.0: {} - - wrappy@1.0.2: {} - - ws@8.17.1: {} - - yallist@4.0.0: {} diff --git a/docs/vendor/peggy/peggy.min.js b/docs/vendor/peggy/peggy.min.js index 1f07b740..3c98974f 100644 --- a/docs/vendor/peggy/peggy.min.js +++ b/docs/vendor/peggy/peggy.min.js @@ -5,4 +5,4 @@ // Copyright (c) 2024- the Peggy authors // Licensed under the MIT License. -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).peggy=t()}(this,(function(){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GrammarLocation$4=function(){function GrammarLocation(e,t){this.source=e,this.start=t}return GrammarLocation.prototype.toString=function(){return String(this.source)},GrammarLocation.prototype.offset=function(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}},GrammarLocation.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},GrammarLocation.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},GrammarLocation}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},GrammarError$3=function(e){function t(r,n,o){var u=e.call(this,r)||this;return setProtoOf(u,t.prototype),u.name="GrammarError",u.location=n,void 0===o&&(o=[]),u.diagnostics=o,u.stage=null,u.problems=[["error",r,n,o]],u}return __extends(t,e),t.prototype.toString=function(){var t=e.prototype.toString.call(this);this.location&&(t+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(t+="".concat(this.location.source,":")),t+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var r=0,n=this.diagnostics;r1&&e.delimiter&&o(e.delimiter)))},semantic_and:n,semantic_not:n,rule_ref:function(t){var r=asts$8.findRule(e,t.name);return r?o(r):void 0},library_ref:function(){return!1},literal:function(e){return""!==e.value},class:r,any:r});return o(t)},combine:function(e){return e.reduce((function(e,t){return e.topLevelInitializer=combinePossibleArrays(e.topLevelInitializer,t.topLevelInitializer),e.initializer=combinePossibleArrays(e.initializer,t.initializer),e.rules=e.rules.concat(t.rules),e}))}},asts_1=asts$8;function addImportedRules$1(e){for(var t=0,r=0,n=e.imports;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var u=visitor$a.build({rule:function(e){var t=void 0,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=u(e.expression),++r>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:n,choice:function(e){return e.match=o(e.alternatives,!0)},action:n,sequence:function(e){return e.match=o(e.elements,!1)},labeled:n,text:n,simple_and:n,simple_not:function(e){return e.match=-u(e.expression)},optional:r,zero_or_more:r,one_or_more:n,repeated:function(e){var t=u(e.expression),r=e.delimiter?u(e.delimiter):NEVER_MATCH$1,n=e.min?e.min:e.max;return"constant"!==n.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&n.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===n.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&n.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&n.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===n.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:n,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?t.match=u(r):SOMETIMES_MATCH$1},library_ref:function(){return 0},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});u(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],p([op$1.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=l(t.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,o=v(e.expression,{sp:t.sp+(n?1:0),env:r,action:e}),u=e.expression.match||0,a=n&&u!==NEVER_MATCH?s(!1,Object.keys(r),e):-1;return n?p([op$1.PUSH_CURR_POS],o,f(u,[op$1.IF_NOT_ERROR],p([op$1.LOAD_SAVED_POS,1],h(a,1,r,t.sp+2)),[]),[op$1.NIP]):o},sequence:function(e,t){return p([op$1.PUSH_CURR_POS],function t(r,n){if(r.length>0){var o=e.elements.length-r.length+1;return p(v(r[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),f(r[0].match||0,[op$1.IF_NOT_ERROR],t(r.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),p(o>1?[op$1.POP_N,o]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(n.pluck&&n.pluck.length>0)return p([op$1.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((function(e){return n.sp-e})));if(n.action){var u=s(!1,Object.keys(n.env),n.action);return p([op$1.LOAD_SAVED_POS,e.elements.length],h(u,e.elements.length+1,n.env,n.sp))}return p([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,n){var o=n.env,u=e.label,a=n.sp+1;u&&(o=l(n.env),n.env[u]=a),e.pick&&n.pluck.push(a);var i=v(e.expression,{sp:n.sp,env:o,action:null});return u&&e.labelLocation&&t&&"source-and-map"===t.output?p([op$1.SOURCE_MAP_LABEL_PUSH,a,r.add(u),c(e.labelLocation)],i,[op$1.SOURCE_MAP_LABEL_POP,a]):i},text:function(e,t){return p([op$1.PUSH_CURR_POS],v(e.expression,{sp:t.sp+1,env:l(t.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,t){return d(e.expression,!1,t)},simple_not:function(e,t){return d(e.expression,!0,t)},optional:function(e,t){return p(v(e.expression,{sp:t.sp,env:l(t.env),action:null}),f(-(e.expression.match||0),[op$1.IF_ERROR],p([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,A(r),[op$1.POP])},one_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,f(e.expression.match||0,[op$1.IF_NOT_ERROR],p(A(r),[op$1.POP]),p([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,n="constant"!==r.type||r.value>0,o="constant"!==e.max.type&&null!==e.max.value,u=n?2:1,a=e.min?m(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},i=m(e.max,t.env,a.sp,u),s=v(e.expression,{sp:i.sp+u,env:l(t.env),action:null}),c=null!==e.delimiter?v(e.expression,{sp:i.sp+u+1,env:l(t.env),action:null}):s,h=function(e,t,r,n,o){return e?p([op$1.PUSH_CURR_POS],v(e,{sp:n.sp+o+1,env:l(n.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],r,f(-t,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):r}(e.delimiter,e.expression.match||0,c,t,u),d=_(h,e.max),g=o?_(s,e.max):s,E=p(n?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],g,A(d),[op$1.POP]);return p(a.pre,i.pre,n?function(e,t){var r="constant"===t.type?[op$1.IF_LT,t.value]:[op$1.IF_LT_DYNAMIC,t.sp||0];return p(e,f(SOMETIMES_MATCH,r,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(E,r):E,i.post,a.post)},group:function(e,t){return v(e.expression,{sp:t.sp,env:l(t.env),action:null})},semantic_and:function(e,t){return g(e,!1,t)},semantic_not:function(e,t){return g(e,!0,t)},rule_ref:function(t){return[op$1.RULE,asts$6.indexOfRule(e,t.name)]},library_ref:function(e){return[op$1.LIBRARY_RULE,e.libraryNumber,u.add(e.name)]},literal:function(e){if(e.value.length>0){var t=e.match||0,n=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?r.add(e.ignoreCase?e.value.toLowerCase():e.value):-1,u=t!==ALWAYS_MATCH?o.add({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):-1;return f(t,e.ignoreCase?[op$1.MATCH_STRING_IC,n]:[op$1.MATCH_STRING,n],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,n],[op$1.FAIL,u])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var t=e.match||0,r=t===SOMETIMES_MATCH?n.add(e):-1,u=t!==ALWAYS_MATCH?o.add({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):-1;return f(t,[op$1.MATCH_CHAR_CLASS,r],[op$1.ACCEPT_N,1],[op$1.FAIL,u])},any:function(e){var t=e.match||0,r=t!==ALWAYS_MATCH?o.add({type:"any"}):-1;return f(t,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,r])}},t&&"source-and-map"===t.output&&Object.keys(E).forEach((function(e){var t=E[e];E[e]=function(e){for(var r=[],n=1;n>>=VLQ_BASE_SHIFT,n>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$2.encode(t)}while(n>0);return r};var util$3={};function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),n=buildSafeBase(t),o=new URL(t,n);e(o);const u=o.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(PROTOCOL.length):"path-absolute"===r?u.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(n,u)}}function withBase(e,t){return new URL(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const n=e+r++;if(-1===t.indexOf(n))return n}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let n=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();r.length>0&&n.length>0&&r[0]===n[0];)r.shift(),n.shift();return n.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),n=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===n)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const o=buildSafeBase(t+e);return computeRelativeURL(o,withBase(t,withBase(e,o)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),n=new URL(e,r),o=new URL(t,r);try{new URL("",o.toString())}catch(e){return null}return o.protocol!==n.protocol||o.user!==n.user||o.password!==n.password||o.hostname!==n.hostname||o.port!==n.port?null:computeRelativeURL(n,o)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const n=new e;for(let e=0,o=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||n==r&&u>=o||util$2.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,n=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$1.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)})),t.sources.forEach((function(e){let o=e;null!=r&&(o=util$1.relative(r,e)),n._sources.has(o)||n._sources.add(o);const u=t.sourceContentFor(e);null!=u&&n.setSourceContent(e,u)})),n}addMapping(e){const t=util$1.getArg(e,"generated"),r=util$1.getArg(e,"original",null);let n=util$1.getArg(e,"source",null),o=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,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:r&&r.line,originalColumn:r&&r.column,source:n,name:o})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$1.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){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 o=this._sourceRoot;null!=o&&(n=util$1.relative(o,n));const u=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;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!=r&&(t.source=util$1.join(r,t.source)),null!=o&&(t.source=util$1.relative(o,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const i=t.source;null==i||u.has(i)||u.add(i);const s=t.name;null==s||a.has(s)||a.add(s)}),this),this._sources=u,this._names=a,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=util$1.join(r,t)),null!=o&&(t=util$1.relative(o,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,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&&!r&&!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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,n,o=0,u=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let f=0,h=p.length;f0){if(!util$1.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=base64VLQ.encode(n-c),c=n,e+=base64VLQ.encode(t.originalLine-1-i),i=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-s),s=r)),l+=e}return l}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$1.relative(t,e));const r=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==o?null:o,this[isSourceNode]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(t,r,n){const o=new e,u=t.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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 r=0,n=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.sourceNode=function(e,t,r){var n=GrammarLocation$2.offsetStart(e);return new SourceNode$1(n.line,n.column?n.column-1:null,String(e.source),t,r)},e.prototype.push=function(t){++this.sp>this.maxSp&&(this.maxSp=this.sp);var r=this.labels[this.sp],n=[this.name(this.sp)," = ",t,";"];if(r){if(this.sourceMapStack.length){var o=e.sourceNode(r.location,n.splice(0,2),r.label),u=this.sourceMapPopInternal(),a=u.parts,i=u.location,s=i.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop();if(!e)throw new RangeError("Rule '".concat(this.ruleName,"': Attempting to pop an empty source map stack.\nBytecode: ").concat(this.bytecode));var t=e[0],r=e[1],n=e[2],o=t.splice(r).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(o.length){var u=GrammarLocation$2.offsetStart(n);t.push(new SourceNode$1(u.line,u.column-1,String(n.source),o))}return{parts:t,location:n}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],o+=t[(3&e[u])<<4|e[u+1]>>4],o+=t[(15&e[u+1])<<2|e[u+2]>>6],o+=t[63&e[u+2]];return 1===r?(o+=t[e[n]>>2],o+=t[(3&e[n])<<4],o+="=="):2===r&&(o+=t[e[n]>>2],o+=t[(3&e[n])<<4|e[n+1]>>4],o+=t[(15&e[n+1])<<2],o+="="),o}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,peg$SyntaxError.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,n={},o=(t=void 0!==t?t:{}).grammarSource,u={Grammar:Ir,ImportsAndSource:function(){var t,r,o;return t=Cr,r=function(){var t,r;return t=Cr,r=Cr,Mr(),r=e.substring(r,Cr),yr=t,Ct(r)}(),o=function(){var t,r,o,u;for(t=Cr,r=Cr,o=[],e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));u!==n;)o.push(u),e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));return r=e.substring(r,Cr),yr=t,vt(r)}(),yr=t,Et(r,o)}},a=Ir,i="import",s=";",c=",",l="*",p="as",f="{",h="}",d="from",g="=",A="/",m="@",_=":",E="|",v="..",C="(",y=")",$=".",S="\n",F="\r\n",b="/*",P="*/",x="//",D="\\",R="i",B='"',O="'",L="[",w="^",I="]",M="-",T="0",N="b",k="f",H="n",U="r",j="t",G="v",V="x",Y="u",z=/^[!$&]/,W=/^[*-+?]/,J=/^[!&]/,q=/^[\t\v-\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/,Q=/^[\n\r\u2028\u2029]/,X=/^[\r\u2028-\u2029]/,K=/^[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Z=/^[$0-9_\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u09E6-\u09EF\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B62-\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18-\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F3F\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19D9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u203F-\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099-\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F1\uA900-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5-\uAAF6\uABE3-\uABEA\uABEC-\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33-\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/,ee=/^[\n\r"\\\u2028-\u2029]/,te=/^[\n\r'\\\u2028-\u2029]/,re=/^[\n\r\\-\]\u2028-\u2029]/,ne=/^["'\\]/,oe=/^[0-9ux]/,ue=/^[0-9]/,ae=/^[0-9a-f]/i,ie=/^[{}]/,se={type:"any"},ce=Dr("import",!1),le=Dr(";",!1),pe=Dr(",",!1),fe=Dr("*",!1),he=Dr("as",!1),de=Dr("{",!1),ge=Dr("}",!1),Ae=Dr("from",!1),me=Dr("=",!1),_e=Dr("/",!1),Ee=Dr("@",!1),ve=Dr(":",!1),Ce=Rr(["!","$","&"],!1,!1),ye=Rr([["*","+"],"?"],!1,!1),$e=Dr("|",!1),Se=Dr("..",!1),Fe=Dr("(",!1),be=Dr(")",!1),Pe=Dr(".",!1),xe=Rr(["!","&"],!1,!1),De=Br("whitespace"),Re=Rr(["\t",["\v","\f"]," "," "," ",[" "," "]," "," "," ","\ufeff"],!1,!1),Be=Rr(["\n","\r","\u2028","\u2029"],!1,!1),Oe=Br("end of line"),Le=Dr("\n",!1),we=Dr("\r\n",!1),Ie=Rr(["\r",["\u2028","\u2029"]],!1,!1),Me=Br("comment"),Te=Dr("/*",!1),Ne=Dr("*/",!1),ke=Dr("//",!1),He=Br("identifier"),Ue=Rr([["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԯ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏽ"],["ᏸ","ᏽ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚝ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","Ɬ"],["Ʞ","ꞷ"],["ꟷ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꧠ","ꧤ"],["ꧦ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꬰ","ꭚ"],["ꭜ","ꭥ"],["ꭰ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),je=Dr("\\",!1),Ge=Rr(["$",["0","9"],"_",["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","٩"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],["۰","۹"],"ܑ",["ܰ","݊"],["ަ","ް"],["߀","߉"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ः"],["ऺ","़"],["ा","ॏ"],["॑","ॗ"],["ॢ","ॣ"],["०","९"],["ঁ","ঃ"],"়",["া","ৄ"],["ে","ৈ"],["ো","্"],"ৗ",["ৢ","ৣ"],["০","৯"],["ਁ","ਃ"],"਼",["ਾ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["੦","ੱ"],"ੵ",["ઁ","ઃ"],"઼",["ા","ૅ"],["ે","ૉ"],["ો","્"],["ૢ","ૣ"],["૦","૯"],["ଁ","ଃ"],"଼",["ା","ୄ"],["େ","ୈ"],["ୋ","୍"],["ୖ","ୗ"],["ୢ","ୣ"],["୦","୯"],"ஂ",["ா","ூ"],["ெ","ை"],["ொ","்"],"ௗ",["௦","௯"],["ఀ","ః"],["ా","ౄ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],["౦","౯"],["ಁ","ಃ"],"಼",["ಾ","ೄ"],["ೆ","ೈ"],["ೊ","್"],["ೕ","ೖ"],["ೢ","ೣ"],["೦","೯"],["ഁ","ഃ"],["ാ","ൄ"],["െ","ൈ"],["ൊ","്"],"ൗ",["ൢ","ൣ"],["൦","൯"],["ං","ඃ"],"්",["ා","ු"],"ූ",["ෘ","ෟ"],["෦","෯"],["ෲ","ෳ"],"ั",["ิ","ฺ"],["็","๎"],["๐","๙"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["໐","໙"],["༘","༙"],["༠","༩"],"༵","༷","༹",["༾","༿"],["ཱ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ါ","ှ"],["၀","၉"],["ၖ","ၙ"],["ၞ","ၠ"],["ၢ","ၤ"],["ၧ","ၭ"],["ၱ","ၴ"],["ႂ","ႍ"],["ႏ","ႝ"],["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","៓"],"៝",["០","៩"],["᠋","᠍"],["᠐","᠙"],"ᢩ",["ᤠ","ᤫ"],["ᤰ","᤻"],["᥆","᥏"],["᧐","᧙"],["ᨗ","ᨛ"],["ᩕ","ᩞ"],["᩠","᩼"],["᩿","᪉"],["᪐","᪙"],["᪰","᪽"],["ᬀ","ᬄ"],["᬴","᭄"],["᭐","᭙"],["᭫","᭳"],["ᮀ","ᮂ"],["ᮡ","ᮭ"],["᮰","᮹"],["᯦","᯳"],["ᰤ","᰷"],["᱀","᱉"],["᱐","᱙"],["᳐","᳒"],["᳔","᳨"],"᳭",["ᳲ","᳴"],["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["‌","‍"],["‿","⁀"],"⁔",["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〯"],["゙","゚"],["꘠","꘩"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠣ","ꠧ"],["ꢀ","ꢁ"],["ꢴ","꣄"],["꣐","꣙"],["꣠","꣱"],["꤀","꤉"],["ꤦ","꤭"],["ꥇ","꥓"],["ꦀ","ꦃ"],["꦳","꧀"],["꧐","꧙"],"ꧥ",["꧰","꧹"],["ꨩ","ꨶ"],"ꩃ",["ꩌ","ꩍ"],["꩐","꩙"],["ꩻ","ꩽ"],"ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫫ","ꫯ"],["ꫵ","꫶"],["ꯣ","ꯪ"],["꯬","꯭"],["꯰","꯹"],"ﬞ",["︀","️"],["︠","︯"],["︳","︴"],["﹍","﹏"],["0","9"],"_"],!1,!1),Ve=Br("literal"),Ye=Dr("i",!1),ze=Br("string"),We=Dr('"',!1),Je=Dr("'",!1),qe=Rr(["\n","\r",'"',"\\",["\u2028","\u2029"]],!1,!1),Qe=Rr(["\n","\r","'","\\",["\u2028","\u2029"]],!1,!1),Xe=Br("character class"),Ke=Dr("[",!1),Ze=Dr("^",!1),et=Dr("]",!1),tt=Dr("-",!1),rt=Rr(["\n","\r",["\\","]"],["\u2028","\u2029"]],!1,!1),nt=Dr("0",!1),ot=Rr(['"',"'","\\"],!1,!1),ut=Dr("b",!1),at=Dr("f",!1),it=Dr("n",!1),st=Dr("r",!1),ct=Dr("t",!1),lt=Dr("v",!1),pt=Rr([["0","9"],"u","x"],!1,!1),ft=Dr("x",!1),ht=Dr("u",!1),dt=Rr([["0","9"]],!1,!1),gt=Rr([["0","9"],["a","f"]],!1,!0),At=Br("code block"),mt=Rr(["{","}"],!1,!1),_t=function(e,t,r,n){return{type:"grammar",imports:e,topLevelInitializer:t,initializer:r,rules:n,location:Pr()}},Et=function(e,t){return[e,t]},vt=function(e){return{type:"top_level_initializer",code:e,codeLocation:Pr()}},Ct=function(e){return{type:"top_level_initializer",code:e,codeLocation:Pr()}},yt=function(e,t){return{type:"grammar_import",what:e,from:t,location:Pr()}},$t=function(e){return{type:"grammar_import",what:[],from:e,location:Pr()}},St=function(e,t){return t?Array.isArray(t)?(t.unshift(e),t):[e,t]:[e]},Ft=function(e){return{type:"import_binding_default",binding:e[0],location:e[1]}},bt=function(e){return[{type:"import_binding_all",binding:e[0],location:e[1]}]},Pt=function(){return[]},xt=function(e,t){return{type:"import_binding_rename",rename:e[0],renameLocation:e[1],binding:t[0],location:t[1]}},Dt=function(e){return{type:"import_binding",binding:e[0],location:e[1]}},Rt=function(e){return{type:"import_module_specifier",module:e,location:Pr()}},Bt=function(e){return[e,Pr()]},Ot=function(e){return[e,Pr()]},Lt=function(e){return Sn.indexOf(e[0])>=0&&xr("Binding identifier can't be a reserved word \"".concat(e[0],'"'),e[1]),e[0]},wt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Pr()}},It=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Pr()}},Mt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:Pr()}:r,location:Pr()}},Tt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:Pr()}:e},Nt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:Pr()}:e},kt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:Pr()}:e},Ht=function(e,t,r){return r.type.startsWith("semantic_")&&xr('"@" 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:r,location:Pr()}},Ut=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:Pr()}},jt=function(){return Pr()},Gt=function(e){return Sn.indexOf(e[0])>=0&&xr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Vt=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:Pr()}},Yt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:Pr()}},zt=function(e,t,r){var n=t[0],o=t[1];return"constant"===o.type&&0===o.value&&xr("The maximum count of repetitions of the rule must be > 0",o.location),{type:"repeated",min:n,max:o,expression:e,delimiter:r,location:Pr()}},Wt=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},Jt=function(e){return[null,e]},qt=function(e){return{type:"constant",value:e,location:Pr()}},Qt=function(e){return{type:"variable",value:e[0],location:Pr()}},Xt=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:Pr()}},Kt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Pr()}:e},Zt=function(e,t){return{type:"library_ref",name:t[0],library:e[0],libraryNumber:-1,location:Pr()}},er=function(e){return{type:"rule_ref",name:e[0],location:Pr()}},tr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:Pr()}},rr=function(e,t){return[e+t.join(""),Pr()]},nr=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:Pr()}},or=function(e){return e.join("")},ur=function(e){return e.join("")},ar=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:Pr()}},ir=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&xr("Invalid character range: "+e.substring(yr,Cr)+"."),[t,r]},sr=function(){return""},cr=function(){return"\0"},lr=function(){return"\b"},pr=function(){return"\f"},fr=function(){return"\n"},hr=function(){return"\r"},dr=function(){return"\t"},gr=function(){return"\v"},Ar=function(e){return String.fromCharCode(parseInt(e,16))},mr=function(e){return String.fromCharCode(parseInt(e,16))},_r=function(){return{type:"any",location:Pr()}},Er=function(e){return[e,Pr()]},vr=function(e){return parseInt(e,10)},Cr=0|t.peg$currPos,yr=Cr,$r=[{line:1,column:1}],Sr=Cr,Fr=t.peg$maxFailExpected||[],br=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=u[t.startRule]}function Pr(){return Lr(yr,Cr)}function xr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Lr(yr,Cr))}function Dr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Rr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Br(e){return{type:"other",description:e}}function Or(t){var r,n=$r[t];if(n)return n;if(t>=$r.length)r=$r.length-1;else for(r=t;!$r[--r];);for(n={line:(n=$r[r]).line,column:n.column};rSr&&(Sr=Cr,Fr=[]),Fr.push(e))}function Ir(){var t,r,o,u,a,i,s,c;if(t=Cr,r=Mr(),o=Cr,u=yn(),a=function(){var t,r,o,u;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n&&(o=vn())!==n?(125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n&&$n()!==n?(yr=t,t=wt(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?o=a:(Cr=o,o=n),o===n&&(o=null),u=Cr,a=yn(),i=function(){var e,t;return e=Cr,(t=vn())!==n&&$n()!==n?(yr=e,e=It(t)):(Cr=e,e=n),e}(),i!==n?u=i:(Cr=u,u=n),u===n&&(u=null),a=yn(),i=[],s=Cr,(c=Gr())!==n?(yn(),s=c):(Cr=s,s=n),s!==n)for(;s!==n;)i.push(s),s=Cr,(c=Gr())!==n?(yn(),s=c):(Cr=s,s=n);else i=n;return i!==n?(yr=t,t=_t(r,o,u,i)):(Cr=t,t=n),t}function Mr(){var e,t;for(e=[],t=Tr();t!==n;)e.push(t),t=Tr();return e}function Tr(){var t,r,o,u,a,l,p,f;return t=Cr,yn(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?(yn(),o=function(){var t,r,o,u,a;return(t=Nr())===n&&(t=kr())===n&&(t=Cr,r=function(){var e,t;return e=Cr,(t=jr())!==n&&(yr=e,t=Ft(t)),e=t}(),r!==n?(o=Cr,yn(),44===e.charCodeAt(Cr)?(u=c,Cr++):(u=n,0===br&&wr(pe)),u!==n?(yn(),(a=Nr())===n&&(a=kr()),a!==n?o=a:(Cr=o,o=n)):(Cr=o,o=n),o===n&&(o=null),yr=t,t=St(r,o)):(Cr=t,t=n)),t}(),o!==n?(u=yn(),a=function(){var t,r,o;return t=Cr,e.substr(Cr,4)===d?(r=d,Cr+=4):(r=n,0===br&&wr(Ae)),r!==n?(yn(),(o=Ur())!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?(l=Cr,p=yn(),59===e.charCodeAt(Cr)?(f=s,Cr++):(f=n,0===br&&wr(le)),f!==n?l=p=[p,f]:(Cr=l,l=n),l===n&&(l=null),yr=t,t=yt(o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,yn(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?(yn(),(o=Ur())!==n?(u=Cr,a=yn(),59===e.charCodeAt(Cr)?(l=s,Cr++):(l=n,0===br&&wr(le)),l!==n?u=a=[a,l]:(Cr=u,u=n),u===n&&(u=null),yr=t,t=$t(o)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Nr(){var t,r,o,u;return t=Cr,42===e.charCodeAt(Cr)?(r=l,Cr++):(r=n,0===br&&wr(fe)),r!==n?(yn(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?(yn(),(u=jr())!==n?(yr=t,t=bt(u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function kr(){var t,r,o,u,a;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(yn(),125===e.charCodeAt(Cr)?(o=h,Cr++):(o=n,0===br&&wr(ge)),o!==n?(yr=t,t=Pt()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(yn(),o=function(){var t,r,o,u,a,i;for(t=Cr,r=[],o=Hr();o!==n;)r.push(o),o=Cr,u=Cr,a=yn(),44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?u=a=[a,i,yn()]:(Cr=u,u=n),u!==n&&(u=Hr())===n?(Cr=o,o=n):o=u;return r.length<1?(Cr=t,t=n):t=r,t}(),o!==n?(yn(),u=Cr,44===e.charCodeAt(Cr)?(a=c,Cr++):(a=n,0===br&&wr(pe)),a!==n?u=a=[a,yn()]:(Cr=u,u=n),u===n&&(u=null),125===e.charCodeAt(Cr)?(a=h,Cr++):(a=n,0===br&&wr(ge)),a!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Hr(){var t,r,o,u;return t=Cr,r=function(){var e,t;return(e=un())===n&&(e=Cr,(t=cn())!==n&&(yr=e,t=Ot(t)),e=t),e}(),r!==n?(yn(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?(yn(),(u=jr())!==n?(yr=t,t=xt(r,u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=jr())!==n&&(yr=t,r=Dt(r)),t=r),t}function Ur(){var e,t;return e=Cr,(t=cn())!==n&&(yr=e,t=Rt(t)),t}function jr(){var e,t;return e=Cr,t=function(){var e,t;return e=Cr,(t=un())!==n&&(yr=e,t=Lt(t)),e=t}(),t!==n&&(yr=e,t=Bt(t)),t}function Gr(){var t,r,o,u,a;return t=Cr,(r=un())!==n?(yn(),o=Cr,(u=cn())!==n?(yn(),o=u):(Cr=o,o=n),o===n&&(o=null),61===e.charCodeAt(Cr)?(u=g,Cr++):(u=n,0===br&&wr(me)),u!==n?(yn(),(a=Vr())!==n&&$n()!==n?(yr=t,t=Mt(r,o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function Vr(){var t,r,o,u,a,i;if(t=Cr,(r=Yr())!==n){for(o=[],u=Cr,yn(),47===e.charCodeAt(Cr)?(a=A,Cr++):(a=n,0===br&&wr(_e)),a!==n?(yn(),(i=Yr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);u!==n;)o.push(u),u=Cr,yn(),47===e.charCodeAt(Cr)?(a=A,Cr++):(a=n,0===br&&wr(_e)),a!==n?(yn(),(i=Yr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);yr=t,t=Tt(r,o)}else Cr=t,t=n;return t}function Yr(){var e,t,r,o;return e=Cr,t=function(){var e,t,r,o,u;if(e=Cr,(t=zr())!==n){for(r=[],o=Cr,yn(),(u=zr())!==n?o=u:(Cr=o,o=n);o!==n;)r.push(o),o=Cr,yn(),(u=zr())!==n?o=u:(Cr=o,o=n);yr=e,e=kt(t,r)}else Cr=e,e=n;return e}(),t!==n?(r=Cr,yn(),(o=vn())!==n?r=o:(Cr=r,r=n),r===n&&(r=null),yr=e,e=Nt(t,r)):(Cr=e,e=n),e}function zr(){var t,r,o,u;return t=Cr,r=function(){var t,r;return t=Cr,64===e.charCodeAt(Cr)?(r=m,Cr++):(r=n,0===br&&wr(Ee)),r!==n&&(yr=t,r=jt()),t=r}(),r!==n?((o=Wr())===n&&(o=null),(u=Jr())!==n?(yr=t,t=Ht(r,o,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=Wr())!==n&&(o=Jr())!==n?(yr=t,t=Ut(r,o)):(Cr=t,t=n),t===n&&(t=Jr())),t}function Wr(){var t,r,o;return t=Cr,(r=un())!==n?(yn(),58===e.charCodeAt(Cr)?(o=_,Cr++):(o=n,0===br&&wr(ve)),o!==n?(yn(),yr=t,t=Gt(r)):(Cr=t,t=n)):(Cr=t,t=n),t}function Jr(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),z.test(t)?Cr++:(t=n,0===br&&wr(Ce)),t}(),r!==n?(yn(),(o=qr())!==n?(yr=t,t=Vt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=qr()),t}function qr(){var t,r,o;return t=Cr,(r=Xr())!==n?(yn(),o=function(){var t;return t=e.charAt(Cr),W.test(t)?Cr++:(t=n,0===br&&wr(ye)),t}(),o!==n?(yr=t,t=Yt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=Xr())!==n?(yn(),124===e.charCodeAt(Cr)?(o=E,Cr++):(o=n,0===br&&wr($e)),o!==n?(yn(),u=function(){var t,r,o,u;return t=Cr,(r=Qr())===n&&(r=null),yn(),e.substr(Cr,2)===v?(o=v,Cr+=2):(o=n,0===br&&wr(Se)),o!==n?(yn(),(u=Qr())===n&&(u=null),yr=t,t=Wt(r,u)):(Cr=t,t=n),t===n&&(t=Cr,(r=Qr())!==n&&(yr=t,r=Jt(r)),t=r),t}(),u!==n?(yn(),a=Cr,44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?(yn(),(s=Vr())!==n?(yn(),a=s):(Cr=a,a=n)):(Cr=a,a=n),a===n&&(a=null),124===e.charCodeAt(Cr)?(i=E,Cr++):(i=n,0===br&&wr($e)),i!==n?(yr=t,t=zt(r,u,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Xr())),t}function Qr(){var t,r;return t=Cr,r=function(){var t,r,o,u;if(t=Cr,r=Cr,o=[],(u=_n())!==n)for(;u!==n;)o.push(u),u=_n();else o=n;return(r=o!==n?e.substring(r,Cr):o)!==n&&(yr=t,r=vr(r)),t=r}(),r!==n&&(yr=t,r=qt(r)),(t=r)===n&&(t=Cr,(r=un())!==n&&(yr=t,r=Qt(r)),(t=r)===n&&(t=Cr,(r=vn())!==n&&(yr=t,r=Xt(r)),t=r)),t}function Xr(){var t,r,o,u;return t=function(){var t,r,o;return br++,t=Cr,(r=cn())!==n?(105===e.charCodeAt(Cr)?(o=R,Cr++):(o=n,0===br&&wr(Ye)),o===n&&(o=null),yr=t,t=nr(r,o)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(Ve)),t}(),t===n&&(t=function(){var t,r,o,u,a,i;if(br++,t=Cr,91===e.charCodeAt(Cr)?(r=L,Cr++):(r=n,0===br&&wr(Ke)),r!==n){for(94===e.charCodeAt(Cr)?(o=w,Cr++):(o=n,0===br&&wr(Ze)),o===n&&(o=null),u=[],(a=fn())===n&&(a=hn());a!==n;)u.push(a),(a=fn())===n&&(a=hn());93===e.charCodeAt(Cr)?(a=I,Cr++):(a=n,0===br&&wr(et)),a!==n?(105===e.charCodeAt(Cr)?(i=R,Cr++):(i=n,0===br&&wr(Ye)),i===n&&(i=null),yr=t,t=ar(o,u,i)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(Xe)),t}(),t===n&&(t=function(){var t,r;return t=Cr,46===e.charCodeAt(Cr)?(r=$,Cr++):(r=n,0===br&&wr(Pe)),r!==n&&(yr=t,r=_r()),t=r}(),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=un())!==n?(46===e.charCodeAt(Cr)?(o=$,Cr++):(o=n,0===br&&wr(Pe)),o!==n&&(u=un())!==n?(yr=t,t=Zt(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=un())!==n?(o=Cr,br++,u=Cr,a=yn(),i=Cr,(s=cn())!==n?i=s=[s,yn()]:(Cr=i,i=n),i===n&&(i=null),61===e.charCodeAt(Cr)?(s=g,Cr++):(s=n,0===br&&wr(me)),s!==n?u=a=[a,i,s]:(Cr=u,u=n),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?(yr=t,t=er(r)):(Cr=t,t=n)):(Cr=t,t=n)),t}(),t===n&&(t=function(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),J.test(t)?Cr++:(t=n,0===br&&wr(xe)),t}(),r!==n?(yn(),(o=vn())!==n?(yr=t,t=tr(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Cr,40===e.charCodeAt(Cr)?(r=C,Cr++):(r=n,0===br&&wr(Fe)),r!==n?(yn(),(o=Vr())!==n?(yn(),41===e.charCodeAt(Cr)?(u=y,Cr++):(u=n,0===br&&wr(be)),u!==n?(yr=t,t=Kt(o)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)))))),t}function Kr(){var t;return e.length>Cr?(t=e.charAt(Cr),Cr++):(t=n,0===br&&wr(se)),t}function Zr(){var t;return br++,t=e.charAt(Cr),q.test(t)?Cr++:(t=n,0===br&&wr(Re)),br--,t===n&&0===br&&wr(De),t}function en(){var t;return t=e.charAt(Cr),Q.test(t)?Cr++:(t=n,0===br&&wr(Be)),t}function tn(){var t;return br++,10===e.charCodeAt(Cr)?(t=S,Cr++):(t=n,0===br&&wr(Le)),t===n&&(e.substr(Cr,2)===F?(t=F,Cr+=2):(t=n,0===br&&wr(we)),t===n&&(t=e.charAt(Cr),X.test(t)?Cr++:(t=n,0===br&&wr(Ie)))),br--,t===n&&0===br&&wr(Oe),t}function rn(){var t;return br++,(t=function(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Te)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===P?(u=P,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}())===n&&(t=on()),br--,t===n&&0===br&&wr(Me),t}function nn(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Te)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===P?(u=P,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}function on(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===x?(r=x,Cr+=2):(r=n,0===br&&wr(ke)),r!==n){for(o=[],u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);t=r=[r,o]}else Cr=t,t=n;return t}function un(){var e,t,r,o;if(br++,e=Cr,(t=an())!==n){for(r=[],o=sn();o!==n;)r.push(o),o=sn();yr=e,e=rr(t,r)}else Cr=e,e=n;return br--,e===n&&(t=n,0===br&&wr(He)),e}function an(){var t,r,o;return t=e.charAt(Cr),K.test(t)?Cr++:(t=n,0===br&&wr(Ue)),t===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=mn())!==n?t=o:(Cr=t,t=n)),t}function sn(){var t;return(t=an())===n&&(t=e.charAt(Cr),Z.test(t)?Cr++:(t=n,0===br&&wr(Ge))),t}function cn(){var t,r,o,u;if(br++,t=Cr,34===e.charCodeAt(Cr)?(r=B,Cr++):(r=n,0===br&&wr(We)),r!==n){for(o=[],u=ln();u!==n;)o.push(u),u=ln();34===e.charCodeAt(Cr)?(u=B,Cr++):(u=n,0===br&&wr(We)),u!==n?(yr=t,t=or(o)):(Cr=t,t=n)}else Cr=t,t=n;if(t===n)if(t=Cr,39===e.charCodeAt(Cr)?(r=O,Cr++):(r=n,0===br&&wr(Je)),r!==n){for(o=[],u=pn();u!==n;)o.push(u),u=pn();39===e.charCodeAt(Cr)?(u=O,Cr++):(u=n,0===br&&wr(Je)),u!==n?(yr=t,t=ur(o)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(ze)),t}function ln(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),ee.test(u)?Cr++:(u=n,0===br&&wr(qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function pn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),te.test(u)?Cr++:(u=n,0===br&&wr(Qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function fn(){var t,r,o,u;return t=Cr,(r=hn())!==n?(45===e.charCodeAt(Cr)?(o=M,Cr++):(o=n,0===br&&wr(tt)),o!==n&&(u=hn())!==n?(yr=t,t=ir(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t}function hn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),re.test(u)?Cr++:(u=n,0===br&&wr(rt)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function dn(){var t,r;return t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&tn()!==n?(yr=t,t=sr()):(Cr=t,t=n),t}function gn(){var t,r,o,u;return t=function(){var t;return(t=An())===n&&(t=function(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=function(){var t;return(t=An())===n&&(t=e.charAt(Cr),oe.test(t)?Cr++:(t=n,0===br&&wr(pt))),t}(),u===n&&(u=en()),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),t=r!==n?e.substring(t,Cr):r}()),t}(),t===n&&(t=Cr,48===e.charCodeAt(Cr)?(r=T,Cr++):(r=n,0===br&&wr(nt)),r!==n?(o=Cr,br++,u=_n(),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?(yr=t,t=cr()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i;return t=Cr,120===e.charCodeAt(Cr)?(r=V,Cr++):(r=n,0===br&&wr(ft)),r!==n?(o=Cr,u=Cr,(a=En())!==n&&(i=En())!==n?u=a=[a,i]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?(yr=t,t=Ar(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=mn()))),t}function An(){var t,r;return t=e.charAt(Cr),ne.test(t)?Cr++:(t=n,0===br&&wr(ot)),t===n&&(t=Cr,98===e.charCodeAt(Cr)?(r=N,Cr++):(r=n,0===br&&wr(ut)),r!==n&&(yr=t,r=lr()),(t=r)===n&&(t=Cr,102===e.charCodeAt(Cr)?(r=k,Cr++):(r=n,0===br&&wr(at)),r!==n&&(yr=t,r=pr()),(t=r)===n&&(t=Cr,110===e.charCodeAt(Cr)?(r=H,Cr++):(r=n,0===br&&wr(it)),r!==n&&(yr=t,r=fr()),(t=r)===n&&(t=Cr,114===e.charCodeAt(Cr)?(r=U,Cr++):(r=n,0===br&&wr(st)),r!==n&&(yr=t,r=hr()),(t=r)===n&&(t=Cr,116===e.charCodeAt(Cr)?(r=j,Cr++):(r=n,0===br&&wr(ct)),r!==n&&(yr=t,r=dr()),(t=r)===n&&(t=Cr,118===e.charCodeAt(Cr)?(r=G,Cr++):(r=n,0===br&&wr(lt)),r!==n&&(yr=t,r=gr()),t=r)))))),t}function mn(){var t,r,o,u,a,i,s,c;return t=Cr,117===e.charCodeAt(Cr)?(r=Y,Cr++):(r=n,0===br&&wr(ht)),r!==n?(o=Cr,u=Cr,(a=En())!==n&&(i=En())!==n&&(s=En())!==n&&(c=En())!==n?u=a=[a,i,s,c]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?(yr=t,t=mr(o)):(Cr=t,t=n)):(Cr=t,t=n),t}function _n(){var t;return t=e.charAt(Cr),ue.test(t)?Cr++:(t=n,0===br&&wr(dt)),t}function En(){var t;return t=e.charAt(Cr),ae.test(t)?Cr++:(t=n,0===br&&wr(gt)),t}function vn(){var t,r,o,u;return br++,t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(o=function(){var e,t;return e=Cr,t=Cn(),yr=e,e=t=Er(t)}(),125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(At)),t}function Cn(){var t,r,o,u,a,i;if(t=Cr,r=[],o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;for(o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n));o!==n;){if(r.push(o),o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n))}return e.substring(t,Cr)}function yn(){var e,t;for(e=[],(t=Zr())===n&&(t=tn())===n&&(t=rn());t!==n;)e.push(t),(t=Zr())===n&&(t=tn())===n&&(t=rn());return e}function $n(){var t,r,o,u;if(t=[],r=Cr,o=yn(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n),r!==n)for(;r!==n;)t.push(r),r=Cr,o=yn(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n);else t=n;return t===n&&(t=Cr,r=function(){var e,t;for(e=[],(t=Zr())===n&&(t=nn());t!==n;)e.push(t),(t=Zr())===n&&(t=nn());return e}(),(o=on())===n&&(o=null),(u=tn())!==n?t=r=[r,o,u]:(Cr=t,t=n),t===n&&(t=Cr,r=yn(),o=function(){var t,r;return t=Cr,br++,e.length>Cr?(r=e.charAt(Cr),Cr++):(r=n,0===br&&wr(se)),br--,r===n?t=void 0:(Cr=t,t=n),t}(),o!==n?t=r=[r,o]:(Cr=t,t=n))),t}var Sn=t.reservedWords||[];if(r=a(),t.peg$library)return{peg$result:r,peg$currPos:Cr,peg$FAILED:n,peg$maxFailExpected:Fr,peg$maxFailPos:Sr};if(r!==n&&Cr===e.length)return r;throw r!==n&&Cr0){for(t=1,r=1;t0||e.imports.length>0)throw new Error("Dependencies not supported in format 'bare'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function() {",' "use strict";',"",r,"",l("return "+o()+";"),"})()"],!1)},commonjs:function(){var t=Object.keys(c),u=n();u.push("",'"use strict";',""),t.length>0&&(t.forEach((function(e){u.push("var "+e+' = require("'+stringEscape(c[e])+'");')})),u.push(""));for(var a=e.imports.length,i=0;i0&&(o.forEach((function(e){u.push("import "+e+' from "'+stringEscape(c[e])+'";')})),u.push(""));for(var a=0;a0)throw new Error("Imports are not supported in format 'amd'.");var t=Object.keys(c),u="["+t.map((function(e){return c[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",a=t.join(", ");return __spreadArray$2(__spreadArray$2([],n(),!0),["define("+u+", function("+a+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"],!1)},globals:function(){if(Object.keys(c).length>0||e.imports.length>0)throw new Error("Dependencies not supported in format 'globals'.");if(!t.exportVar)throw new Error("No export variable defined for format 'globals'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function(root) {",' "use strict";',"",r,"",l("root."+t.exportVar+" = "+o()+";"),"})(this);"],!1)},umd:function(){if(e.imports.length>0)throw new Error("Imports are not supported in format 'umd'.");var u=Object.keys(c),a=u.map((function(e){return c[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),p=u.join(", "),f=n();return f.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),t.exportVar&&f.push(" } else {"," root."+t.exportVar+" = factory();"),f.push(" }","})(this, function("+p+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"),f}},a=u[t.format||"bare"]();return new SourceNode(null,null,t.grammarSource,a.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[],_=e.topLevelInitializer;if(_)if(Array.isArray(_)){if("es"===t.format){for(var E=[],v=[],C=0,y=_;C 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&&c.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 + ".");'," }","};","");var D="{ "+s.map((function(e){return e+": "+A(e)})).join(", ")+" }",R=A(s[0]);if(c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+D+";"," var peg$startRuleFunction = "+R+";","",new SourceNode(null,null,t.grammarSource,__spreadArray$2([r.map((function(e,t){return" var "+p(t)+' = "'+stringEscape(e)+'";'})).concat("",o.map((function(e,t){return" var "+f(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",u.map((function(e,t){return" var "+h(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(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")],a.map((function(e,t){return wrapInSourceNode("\n var ".concat(d(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")})),!0)),""," var peg$currPos = options.peg$currPos | 0;"," var peg$savedPos = peg$currPos;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = peg$currPos;"," var peg$maxFailExpected = options.peg$maxFailExpected || [];"," var peg$silentFails = options.peg$silentFails | 0;",""),t.cache&&c.push(" var peg$resultsCache = {};",""),t.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;",""," if (options.startRule) {"," 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 {"," if (pos >= peg$posDetailsCache.length) {"," p = peg$posDetailsCache.length - 1;"," } else {"," p = pos;"," while (!peg$posDetailsCache[--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.imports.length>0&&c.push(" var peg$assign = Object.assign || function(t) {"," var i, s;"," for (i = 1; i < arguments.length; i++) {"," s = arguments[i];"," for (var p in s) {"," if (Object.prototype.hasOwnProperty.call(s, p)) {"," t[p] = s[p];"," }"," }"," }"," return t;"," };",""," function peg$callLibrary(lib, startRule) {"," const opts = peg$assign({}, options, {"," startRule: startRule,"," peg$currPos: peg$currPos,"," peg$silentFails: peg$silentFails,"," peg$library: true,"," peg$maxFailExpected: peg$maxFailExpected"," });"," const res = lib.parse(input, opts);"," peg$currPos = res.peg$currPos;"," peg$maxFailPos = res.peg$maxFailPos;"," peg$maxFailExpected = res.peg$maxFailExpected;"," return (res.peg$result === res.peg$FAILED) ? peg$FAILED : res.peg$result;"," }",""),e.rules.forEach((function(o){c.push.apply(c,l(function(o){var u=[],a=o.bytecode,s=new Stack(o.name,"s","var",a),c=function t(o){var u=0,a=o.length,c=[],m=void 0;function _(e,r,n){var a=r+3,i=o[u+a-2],p=o[u+a-1],f=s.checkedIf(u,(function(){return u+=a+i,(n||t)(o.slice(u-i,u))}),p>0?function(){return u+=p,t(o.slice(u-p,u))}:null),h=f[0],d=f[1];c.push("if ("+e+") {"),c.push.apply(c,l(h)),p>0&&(c.push("} else {"),c.push.apply(c,l(d))),c.push("}")}function E(e,r,n){var a=r+3,i=1===n?"input.charAt(peg$currPos)":"input.substr(peg$currPos, "+n+")",l=null;o[u+a]===op.ACCEPT_N&&o[u+a+1]===n&&(c.push(s.push(i)),i=s.pop(),l=function(e){s.sp++;var r=t(e.slice(2));return r.unshift(1===n?"peg$currPos++;":"peg$currPos += "+n+";"),r}),_(e(i,null!==l),r,l)}for(var v=function(){switch(o[u]){case op.PUSH_EMPTY_STRING:c.push(s.push("''")),u++;break;case op.PUSH_CURR_POS:c.push(s.push("peg$currPos")),u++;break;case op.PUSH_UNDEFINED:c.push(s.push("undefined")),u++;break;case op.PUSH_NULL:c.push(s.push("null")),u++;break;case op.PUSH_FAILED:c.push(s.push("peg$FAILED")),u++;break;case op.PUSH_EMPTY_ARRAY:c.push(s.push("[]")),u++;break;case op.POP:s.pop(),u++;break;case op.POP_CURR_POS:c.push("peg$currPos = "+s.pop()+";"),u++;break;case op.POP_N:s.pop(o[u+1]),u+=2;break;case op.NIP:m=s.pop(),s.pop(),c.push(s.push(m)),u++;break;case op.APPEND:m=s.pop(),c.push(s.top()+".push("+m+");"),u++;break;case op.WRAP:c.push(s.push("["+s.pop(o[u+1]).join(", ")+"]")),u+=2;break;case op.TEXT:c.push(s.push("input.substring("+s.pop()+", peg$currPos)")),u++;break;case op.PLUCK:var a=o[u+3-1],v=3+a;m=o.slice(u+3,u+v),m=1===a?s.index(m[0]):"[ ".concat(m.map((function(e){return s.index(e)})).join(", ")," ]"),s.pop(o[u+1]),c.push(s.push(m)),u+=v;break;case op.IF:_(s.top(),0);break;case op.IF_ERROR:_(s.top()+" === peg$FAILED",0);break;case op.IF_NOT_ERROR:_(s.top()+" !== peg$FAILED",0);break;case op.IF_LT:_(s.top()+".length < "+o[u+1],1);break;case op.IF_GE:_(s.top()+".length >= "+o[u+1],1);break;case op.IF_LT_DYNAMIC:_(s.top()+".length < ("+s.index(o[u+1])+"|0)",1);break;case op.IF_GE_DYNAMIC:_(s.top()+".length >= ("+s.index(o[u+1])+"|0)",1);break;case op.WHILE_NOT_ERROR:P=s.top()+" !== peg$FAILED",x=o[u+2-1],D=s.checkedLoop(u,(function(){return u+=2+x,t(o.slice(u-x,u))})),c.push("while ("+P+") {"),c.push.apply(c,l(D)),c.push("}");break;case op.MATCH_ANY:_("input.length > peg$currPos",0);break;case op.MATCH_STRING:var C=o[u+1],y=r[C];E((function(e,t){return y.length>1?"".concat(e," === ").concat(p(C)):(e=t?"".concat(e,".charCodeAt(0)"):"input.charCodeAt(peg$currPos)","".concat(e," === ").concat(y.charCodeAt(0)))}),1,y.length);break;case op.MATCH_STRING_IC:var $=o[u+1];E((function(e){return"".concat(e,".toLowerCase() === ").concat(p($))}),1,r[$].length);break;case op.MATCH_CHAR_CLASS:var S=o[u+1];E((function(e){return"".concat(f(S),".test(").concat(e,")")}),1,1);break;case op.ACCEPT_N:c.push(s.push(o[u+1]>1?"input.substr(peg$currPos, "+o[u+1]+")":"input.charAt(peg$currPos)")),c.push(o[u+1]>1?"peg$currPos += "+o[u+1]+";":"peg$currPos++;"),u+=2;break;case op.ACCEPT_STRING:c.push(s.push(p(o[u+1]))),c.push(r[o[u+1]].length>1?"peg$currPos += "+r[o[u+1]].length+";":"peg$currPos++;"),u+=2;break;case op.FAIL:c.push(s.push("peg$FAILED")),c.push("if (peg$silentFails === 0) { peg$fail("+h(o[u+1])+"); }"),u+=2;break;case op.LOAD_SAVED_POS:c.push("peg$savedPos = "+s.index(o[u+1])+";"),u+=2;break;case op.UPDATE_SAVED_POS:c.push("peg$savedPos = peg$currPos;"),u++;break;case op.CALL:m=function(e){var t=o[u+4-1];return d(o[u+1])+"("+o.slice(u+4,u+4+t).map((function(e){return s.index(e)})).join(", ")+")"}(),s.pop(o[u+2]),c.push(s.push(m)),u+=4+o[u+3];break;case op.RULE:c.push(s.push(A(e.rules[o[u+1]].name)+"()")),u+=2;break;case op.LIBRARY_RULE:var F=o[u+2],b=-1===F?"":', "'+i[F]+'"';c.push(s.push("peg$callLibrary("+g(o[u+1])+b+")")),u+=3;break;case op.SILENT_FAILS_ON:c.push("peg$silentFails++;"),u++;break;case op.SILENT_FAILS_OFF:c.push("peg$silentFails--;"),u++;break;case op.SOURCE_MAP_PUSH:s.sourceMapPush(c,n[o[u+1]]),u+=2;break;case op.SOURCE_MAP_POP:s.sourceMapPop(),u++;break;case op.SOURCE_MAP_LABEL_PUSH:s.labels[o[u+1]]={label:r[o[u+2]],location:n[o[u+3]]},u+=4;break;case op.SOURCE_MAP_LABEL_POP:delete s.labels[o[u+1]],u+=2;break;default:throw new Error("Invalid opcode: "+o[u]+".")}var P,x,D};ui?-1:1:0}));for(var t="",r="",n=0;n=a.charCodeAt(0)?(e.splice(n--,1),e[n]=[t,r=i]):(t=a,r=i)}return e}function mergeCharacterClasses$1(e){var t=Object.create(null);e.rules.forEach((function(e){return t[e.name]=e.expression}));var r=Object.create(null),n=[function(e,n){if("class"===e.type&&!e.inverted)return n&&((e=__assign({},e)).parts=__spreadArray$1([],e.parts,!0)),e;if("literal"===e.type&&1===e.value.length)return{type:"class",parts:[e.value],inverted:!1,ignoreCase:e.ignoreCase,location:e.location};if("rule_ref"===e.type){var a=t[e.name];if(a){r[e.name]||(r[e.name]=!0,u(a));var i=o(a,!0);return i&&(i.location=e.location),i}}return null},visitor$7.build({choice:function(e){var t=null,r=!1;e.alternatives.forEach((function(n,a){var i;u(n);var s=o(n);s?t&&t.ignoreCase===s.ignoreCase?((i=t.parts).push.apply(i,s.parts),e.alternatives[a-1]=t,e.alternatives[a]=t,t.location={source:t.location.source,start:t.location.start,end:s.location.end},r=!0):t=s:t=null})),r&&(e.alternatives=e.alternatives.filter((function(e,t,r){return!t||e!==r[t-1]})),e.alternatives.forEach((function(t,r){"class"===t.type&&(t.parts=cleanParts(t.parts),1!==t.parts.length||Array.isArray(t.parts[0])||t.inverted||(e.alternatives[r]={type:"literal",value:t.parts[0],ignoreCase:t.ignoreCase,location:t.location}))})),1===e.alternatives.length&&cloneOver(e,e.alternatives[0]))},text:function(e){if(u(e.expression),"class"===e.expression.type||"literal"===e.expression.type){var t=e.location;cloneOver(e,e.expression),e.location=t}}})],o=n[0],u=n[1];e.rules.forEach((function(e){r[e.name]=!0,u(e.expression)}))}var mergeCharacterClasses_1=mergeCharacterClasses$1;function reportDuplicateImports$1(e,t,r){for(var n={},o=0,u=e.imports;o0||(n.push(e.name),u(e.expression),n.pop())},sequence:function(t){r.errors>0||t.elements.every((function(t){return u(t),!(r.errors>0||asts$3.alwaysConsumesOnSuccess(e,t))}))},repeated:function(t){r.errors>0||(u(t.expression),t.delimiter&&!asts$3.alwaysConsumesOnSuccess(e,t.expression)&&u(t.delimiter))},rule_ref:function(t){if(!(r.errors>0)){o.push(t);var a=asts$3.findRule(e,t.name);if(-1!==n.indexOf(t.name))return n.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+n.join(" -> ")+")",a.nameLocation,o.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&u(a),o.pop()}}});u(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$2=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){var n=visitor$3.build({zero_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(t.delimiter&&n(t.delimiter),!(asts$2.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$2.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var o=t.min?t.min:t.max;r.warning("constant"===o.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});n(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts$1=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts$1.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var n=visitor$1.build({action:function(e){n(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{prepare:[addImportedRules,reportInfiniteRecursion],check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRepetition,reportIncorrectPlucking,reportDuplicateImports],transform:[fixLibraryNumbers,removeProxyRules,mergeCharacterClasses,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){options=void 0!==options?options:{};var defaultStartRules=[ast.rules[0].name];if(options=processOptions(options,{allowedStartRules:defaultStartRules,cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),null!==options.allowedStartRules&&void 0!==options.allowedStartRules||(options.allowedStartRules=defaultStartRules),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");0===options.allowedStartRules.length&&(options.allowedStartRules=defaultStartRules);var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}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");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(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");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,GrammarError=grammarError,GrammarLocation=grammarLocation,asts=asts_1,compiler=compiler_1,parser=parser$1,VERSION=version,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"],peg={VERSION:VERSION,RESERVED_WORDS:RESERVED_WORDS,GrammarError:GrammarError,GrammarLocation:GrammarLocation,parser:parser,compiler:compiler,generate:function(e,t){var r,n,o="plugins"in(t=void 0!==t?t:{})?t.plugins:[],u={parser:peg.parser,passes:(r=peg.compiler.passes,n={},Object.keys(r).forEach((function(e){n[e]=r[e].slice()})),n),reservedWords:peg.RESERVED_WORDS.slice()};o.forEach((function(e){e.use(u,t)})),Array.isArray(e)||(e=[{source:t.grammarSource,text:e}]);var a=asts.combine(e.map((function(e){var t=e.source,r=e.text;return u.parser.parse(r,{grammarSource:t,reservedWords:u.reservedWords})})));return peg.compiler.compile(a,u.passes,t)}},peg_1=peg,peg$1=getDefaultExportFromCjs(peg_1);return peg$1})); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).peggy=t()}(this,(function(){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GrammarLocation$4=function(){function GrammarLocation(e,t){this.source=e,this.start=t}return GrammarLocation.prototype.toString=function(){return String(this.source)},GrammarLocation.prototype.offset=function(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}},GrammarLocation.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},GrammarLocation.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},GrammarLocation}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},GrammarError$3=function(e){function t(r,n,o){var u=e.call(this,r)||this;return setProtoOf(u,t.prototype),u.name="GrammarError",u.location=n,void 0===o&&(o=[]),u.diagnostics=o,u.stage=null,u.problems=[["error",r,n,o]],u}return __extends(t,e),t.prototype.toString=function(){var t=e.prototype.toString.call(this);this.location&&(t+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(t+="".concat(this.location.source,":")),t+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var r=0,n=this.diagnostics;r1&&e.delimiter&&o(e.delimiter)))},semantic_and:n,semantic_not:n,rule_ref:function(t){var r=asts$8.findRule(e,t.name);return r?o(r):void 0},library_ref:function(){return!1},literal:function(e){return""!==e.value},class:r,any:r});return o(t)},combine:function(e){return e.reduce((function(e,t){return e.topLevelInitializer=combinePossibleArrays(e.topLevelInitializer,t.topLevelInitializer),e.initializer=combinePossibleArrays(e.initializer,t.initializer),e.rules=e.rules.concat(t.rules),e}))}},asts_1=asts$8;function addImportedRules$1(e){for(var t=0,r=0,n=e.imports;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var u=visitor$a.build({rule:function(e){var t,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=u(e.expression),++r>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:n,choice:function(e){return e.match=o(e.alternatives,!0)},action:n,sequence:function(e){return e.match=o(e.elements,!1)},labeled:n,text:n,simple_and:n,simple_not:function(e){return e.match=-u(e.expression)},optional:r,zero_or_more:r,one_or_more:n,repeated:function(e){var t=u(e.expression),r=e.delimiter?u(e.delimiter):NEVER_MATCH$1,n=e.min?e.min:e.max;return"constant"!==n.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&n.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===n.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&n.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&n.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===n.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:n,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?t.match=u(r):SOMETIMES_MATCH$1},library_ref:function(){return 0},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});u(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],p([op$1.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=l(t.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,o=v(e.expression,{sp:t.sp+(n?1:0),env:r,action:e}),u=e.expression.match||0,a=n&&u!==NEVER_MATCH?s(!1,Object.keys(r),e):-1;return n?p([op$1.PUSH_CURR_POS],o,f(u,[op$1.IF_NOT_ERROR],p([op$1.LOAD_SAVED_POS,1],h(a,1,r,t.sp+2)),[]),[op$1.NIP]):o},sequence:function(e,t){return p([op$1.PUSH_CURR_POS],function t(r,n){if(r.length>0){var o=e.elements.length-r.length+1;return p(v(r[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),f(r[0].match||0,[op$1.IF_NOT_ERROR],t(r.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),p(o>1?[op$1.POP_N,o]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(n.pluck&&n.pluck.length>0)return p([op$1.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((function(e){return n.sp-e})));if(n.action){var u=s(!1,Object.keys(n.env),n.action);return p([op$1.LOAD_SAVED_POS,e.elements.length],h(u,e.elements.length+1,n.env,n.sp))}return p([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,n){var o=n.env,u=e.label,a=n.sp+1;u&&(o=l(n.env),n.env[u]=a),e.pick&&n.pluck.push(a);var i=v(e.expression,{sp:n.sp,env:o,action:null});return u&&e.labelLocation&&t&&"source-and-map"===t.output?p([op$1.SOURCE_MAP_LABEL_PUSH,a,r.add(u),c(e.labelLocation)],i,[op$1.SOURCE_MAP_LABEL_POP,a]):i},text:function(e,t){return p([op$1.PUSH_CURR_POS],v(e.expression,{sp:t.sp+1,env:l(t.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,t){return d(e.expression,!1,t)},simple_not:function(e,t){return d(e.expression,!0,t)},optional:function(e,t){return p(v(e.expression,{sp:t.sp,env:l(t.env),action:null}),f(-(e.expression.match||0),[op$1.IF_ERROR],p([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,A(r),[op$1.POP])},one_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return p([op$1.PUSH_EMPTY_ARRAY],r,f(e.expression.match||0,[op$1.IF_NOT_ERROR],p(A(r),[op$1.POP]),p([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,n="constant"!==r.type||r.value>0,o="constant"!==e.max.type&&null!==e.max.value,u=n?2:1,a=e.min?m(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},i=m(e.max,t.env,a.sp,u),s=v(e.expression,{sp:i.sp+u,env:l(t.env),action:null}),c=null!==e.delimiter?v(e.expression,{sp:i.sp+u+1,env:l(t.env),action:null}):s,h=function(e,t,r,n,o){return e?p([op$1.PUSH_CURR_POS],v(e,{sp:n.sp+o+1,env:l(n.env),action:null}),f(e.match||0,[op$1.IF_NOT_ERROR],p([op$1.POP],r,f(-t,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):r}(e.delimiter,e.expression.match||0,c,t,u),d=_(h,e.max),g=o?_(s,e.max):s,E=p(n?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],g,A(d),[op$1.POP]);return p(a.pre,i.pre,n?function(e,t){var r="constant"===t.type?[op$1.IF_LT,t.value]:[op$1.IF_LT_DYNAMIC,t.sp||0];return p(e,f(SOMETIMES_MATCH,r,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(E,r):E,i.post,a.post)},group:function(e,t){return v(e.expression,{sp:t.sp,env:l(t.env),action:null})},semantic_and:function(e,t){return g(e,!1,t)},semantic_not:function(e,t){return g(e,!0,t)},rule_ref:function(t){return[op$1.RULE,asts$6.indexOfRule(e,t.name)]},library_ref:function(e){return[op$1.LIBRARY_RULE,e.libraryNumber,u.add(e.name)]},literal:function(e){if(e.value.length>0){var t=e.match||0,n=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?r.add(e.ignoreCase?e.value.toLowerCase():e.value):-1,u=t!==ALWAYS_MATCH?o.add({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):-1;return f(t,e.ignoreCase?[op$1.MATCH_STRING_IC,n]:[op$1.MATCH_STRING,n],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,n],[op$1.FAIL,u])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var t=e.match||0,r=t===SOMETIMES_MATCH?n.add(e):-1,u=t!==ALWAYS_MATCH?o.add({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):-1;return f(t,[op$1.MATCH_CHAR_CLASS,r],[op$1.ACCEPT_N,1],[op$1.FAIL,u])},any:function(e){var t=e.match||0,r=t!==ALWAYS_MATCH?o.add({type:"any"}):-1;return f(t,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,r])}},t&&"source-and-map"===t.output&&Object.keys(E).forEach((function(e){var t=E[e];E[e]=function(e){for(var r=[],n=1;n>>=VLQ_BASE_SHIFT,n>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$2.encode(t)}while(n>0);return r};var util$3={};function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),n=buildSafeBase(t),o=new URL(t,n);e(o);const u=o.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(PROTOCOL.length):"path-absolute"===r?u.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(n,u)}}function withBase(e,t){return new URL(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const n=e+r++;if(-1===t.indexOf(n))return n}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let n=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();r.length>0&&n.length>0&&r[0]===n[0];)r.shift(),n.shift();return n.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),n=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===n)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const o=buildSafeBase(t+e);return computeRelativeURL(o,withBase(t,withBase(e,o)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),n=new URL(e,r),o=new URL(t,r);try{new URL("",o.toString())}catch(e){return null}return o.protocol!==n.protocol||o.user!==n.user||o.password!==n.password||o.hostname!==n.hostname||o.port!==n.port?null:computeRelativeURL(n,o)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const n=new e;for(let e=0,o=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||n==r&&u>=o||util$2.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,n=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$1.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)})),t.sources.forEach((function(e){let o=e;null!=r&&(o=util$1.relative(r,e)),n._sources.has(o)||n._sources.add(o);const u=t.sourceContentFor(e);null!=u&&n.setSourceContent(e,u)})),n}addMapping(e){const t=util$1.getArg(e,"generated"),r=util$1.getArg(e,"original",null);let n=util$1.getArg(e,"source",null),o=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,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:r&&r.line,originalColumn:r&&r.column,source:n,name:o})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$1.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){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 o=this._sourceRoot;null!=o&&(n=util$1.relative(o,n));const u=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;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!=r&&(t.source=util$1.join(r,t.source)),null!=o&&(t.source=util$1.relative(o,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const i=t.source;null==i||u.has(i)||u.add(i);const s=t.name;null==s||a.has(s)||a.add(s)}),this),this._sources=u,this._names=a,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=util$1.join(r,t)),null!=o&&(t=util$1.relative(o,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,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&&!r&&!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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,n,o=0,u=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let f=0,h=p.length;f0){if(!util$1.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=base64VLQ.encode(n-c),c=n,e+=base64VLQ.encode(t.originalLine-1-i),i=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-s),s=r)),l+=e}return l}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$1.relative(t,e));const r=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==o?null:o,this[isSourceNode]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(t,r,n){const o=new e,u=t.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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 r=0,n=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.sourceNode=function(e,t,r){var n=GrammarLocation$2.offsetStart(e);return new SourceNode$1(n.line,n.column?n.column-1:null,String(e.source),t,r)},e.prototype.push=function(t){++this.sp>this.maxSp&&(this.maxSp=this.sp);var r=this.labels[this.sp],n=[this.name(this.sp)," = ",t,";"];if(r){if(this.sourceMapStack.length){var o=e.sourceNode(r.location,n.splice(0,2),r.label),u=this.sourceMapPopInternal(),a=u.parts,i=u.location,s=i.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop();if(!e)throw new RangeError("Rule '".concat(this.ruleName,"': Attempting to pop an empty source map stack.\nBytecode: ").concat(this.bytecode));var t=e[0],r=e[1],n=e[2],o=t.splice(r).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(o.length){var u=GrammarLocation$2.offsetStart(n);t.push(new SourceNode$1(u.line,u.column-1,String(n.source),o))}return{parts:t,location:n}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],o+=t[(3&e[u])<<4|e[u+1]>>4],o+=t[(15&e[u+1])<<2|e[u+2]>>6],o+=t[63&e[u+2]];return 1===r?(o+=t[e[n]>>2],o+=t[(3&e[n])<<4],o+="=="):2===r&&(o+=t[e[n]>>2],o+=t[(3&e[n])<<4|e[n+1]>>4],o+=t[(15&e[n+1])<<2],o+="="),o}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,peg$SyntaxError.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,n={},o=(t=void 0!==t?t:{}).grammarSource,u={Grammar:Ir,ImportsAndSource:function(){var t,r,o;return t=Cr,r=function(){var t,r;return t=Cr,r=Cr,Mr(),r=e.substring(r,Cr),yr=t,Ct(r)}(),o=function(){var t,r,o,u;for(t=Cr,r=Cr,o=[],e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));u!==n;)o.push(u),e.length>Cr?(u=e.charAt(Cr),Cr++):(u=n,0===br&&wr(se));return r=e.substring(r,Cr),yr=t,vt(r)}(),yr=t,Et(r,o)}},a=Ir,i="import",s=";",c=",",l="*",p="as",f="{",h="}",d="from",g="=",A="/",m="@",_=":",E="|",v="..",C="(",y=")",$=".",S="\n",F="\r\n",b="/*",P="*/",x="//",D="\\",R="i",B='"',O="'",L="[",w="^",I="]",M="-",T="0",N="b",k="f",H="n",U="r",j="t",G="v",V="x",Y="u",z=/^[!$&]/,W=/^[*-+?]/,J=/^[!&]/,q=/^[\t\v-\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/,Q=/^[\n\r\u2028\u2029]/,X=/^[\r\u2028-\u2029]/,K=/^[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Z=/^[$0-9_\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u09E6-\u09EF\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B62-\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18-\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F3F\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19D9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u203F-\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099-\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F1\uA900-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5-\uAAF6\uABE3-\uABEA\uABEC-\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33-\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/,ee=/^[\n\r"\\\u2028-\u2029]/,te=/^[\n\r'\\\u2028-\u2029]/,re=/^[\n\r\\-\]\u2028-\u2029]/,ne=/^["'\\]/,oe=/^[0-9ux]/,ue=/^[0-9]/,ae=/^[0-9a-f]/i,ie=/^[{}]/,se={type:"any"},ce=Dr("import",!1),le=Dr(";",!1),pe=Dr(",",!1),fe=Dr("*",!1),he=Dr("as",!1),de=Dr("{",!1),ge=Dr("}",!1),Ae=Dr("from",!1),me=Dr("=",!1),_e=Dr("/",!1),Ee=Dr("@",!1),ve=Dr(":",!1),Ce=Rr(["!","$","&"],!1,!1),ye=Rr([["*","+"],"?"],!1,!1),$e=Dr("|",!1),Se=Dr("..",!1),Fe=Dr("(",!1),be=Dr(")",!1),Pe=Dr(".",!1),xe=Rr(["!","&"],!1,!1),De=Br("whitespace"),Re=Rr(["\t",["\v","\f"]," "," "," ",[" "," "]," "," "," ","\ufeff"],!1,!1),Be=Rr(["\n","\r","\u2028","\u2029"],!1,!1),Oe=Br("end of line"),Le=Dr("\n",!1),we=Dr("\r\n",!1),Ie=Rr(["\r",["\u2028","\u2029"]],!1,!1),Me=Br("comment"),Te=Dr("/*",!1),Ne=Dr("*/",!1),ke=Dr("//",!1),He=Br("identifier"),Ue=Rr([["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԯ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏽ"],["ᏸ","ᏽ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚝ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","Ɬ"],["Ʞ","ꞷ"],["ꟷ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꧠ","ꧤ"],["ꧦ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꬰ","ꭚ"],["ꭜ","ꭥ"],["ꭰ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),je=Dr("\\",!1),Ge=Rr(["$",["0","9"],"_",["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","٩"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],["۰","۹"],"ܑ",["ܰ","݊"],["ަ","ް"],["߀","߉"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ः"],["ऺ","़"],["ा","ॏ"],["॑","ॗ"],["ॢ","ॣ"],["०","९"],["ঁ","ঃ"],"়",["া","ৄ"],["ে","ৈ"],["ো","্"],"ৗ",["ৢ","ৣ"],["০","৯"],["ਁ","ਃ"],"਼",["ਾ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["੦","ੱ"],"ੵ",["ઁ","ઃ"],"઼",["ા","ૅ"],["ે","ૉ"],["ો","્"],["ૢ","ૣ"],["૦","૯"],["ଁ","ଃ"],"଼",["ା","ୄ"],["େ","ୈ"],["ୋ","୍"],["ୖ","ୗ"],["ୢ","ୣ"],["୦","୯"],"ஂ",["ா","ூ"],["ெ","ை"],["ொ","்"],"ௗ",["௦","௯"],["ఀ","ః"],["ా","ౄ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],["౦","౯"],["ಁ","ಃ"],"಼",["ಾ","ೄ"],["ೆ","ೈ"],["ೊ","್"],["ೕ","ೖ"],["ೢ","ೣ"],["೦","೯"],["ഁ","ഃ"],["ാ","ൄ"],["െ","ൈ"],["ൊ","്"],"ൗ",["ൢ","ൣ"],["൦","൯"],["ං","ඃ"],"්",["ා","ු"],"ූ",["ෘ","ෟ"],["෦","෯"],["ෲ","ෳ"],"ั",["ิ","ฺ"],["็","๎"],["๐","๙"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["໐","໙"],["༘","༙"],["༠","༩"],"༵","༷","༹",["༾","༿"],["ཱ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ါ","ှ"],["၀","၉"],["ၖ","ၙ"],["ၞ","ၠ"],["ၢ","ၤ"],["ၧ","ၭ"],["ၱ","ၴ"],["ႂ","ႍ"],["ႏ","ႝ"],["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","៓"],"៝",["០","៩"],["᠋","᠍"],["᠐","᠙"],"ᢩ",["ᤠ","ᤫ"],["ᤰ","᤻"],["᥆","᥏"],["᧐","᧙"],["ᨗ","ᨛ"],["ᩕ","ᩞ"],["᩠","᩼"],["᩿","᪉"],["᪐","᪙"],["᪰","᪽"],["ᬀ","ᬄ"],["᬴","᭄"],["᭐","᭙"],["᭫","᭳"],["ᮀ","ᮂ"],["ᮡ","ᮭ"],["᮰","᮹"],["᯦","᯳"],["ᰤ","᰷"],["᱀","᱉"],["᱐","᱙"],["᳐","᳒"],["᳔","᳨"],"᳭",["ᳲ","᳴"],["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["‌","‍"],["‿","⁀"],"⁔",["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〯"],["゙","゚"],["꘠","꘩"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠣ","ꠧ"],["ꢀ","ꢁ"],["ꢴ","꣄"],["꣐","꣙"],["꣠","꣱"],["꤀","꤉"],["ꤦ","꤭"],["ꥇ","꥓"],["ꦀ","ꦃ"],["꦳","꧀"],["꧐","꧙"],"ꧥ",["꧰","꧹"],["ꨩ","ꨶ"],"ꩃ",["ꩌ","ꩍ"],["꩐","꩙"],["ꩻ","ꩽ"],"ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫫ","ꫯ"],["ꫵ","꫶"],["ꯣ","ꯪ"],["꯬","꯭"],["꯰","꯹"],"ﬞ",["︀","️"],["︠","︯"],["︳","︴"],["﹍","﹏"],["0","9"],"_"],!1,!1),Ve=Br("literal"),Ye=Dr("i",!1),ze=Br("string"),We=Dr('"',!1),Je=Dr("'",!1),qe=Rr(["\n","\r",'"',"\\",["\u2028","\u2029"]],!1,!1),Qe=Rr(["\n","\r","'","\\",["\u2028","\u2029"]],!1,!1),Xe=Br("character class"),Ke=Dr("[",!1),Ze=Dr("^",!1),et=Dr("]",!1),tt=Dr("-",!1),rt=Rr(["\n","\r",["\\","]"],["\u2028","\u2029"]],!1,!1),nt=Dr("0",!1),ot=Rr(['"',"'","\\"],!1,!1),ut=Dr("b",!1),at=Dr("f",!1),it=Dr("n",!1),st=Dr("r",!1),ct=Dr("t",!1),lt=Dr("v",!1),pt=Rr([["0","9"],"u","x"],!1,!1),ft=Dr("x",!1),ht=Dr("u",!1),dt=Rr([["0","9"]],!1,!1),gt=Rr([["0","9"],["a","f"]],!1,!0),At=Br("code block"),mt=Rr(["{","}"],!1,!1),_t=function(e,t,r,n){return{type:"grammar",imports:e,topLevelInitializer:t,initializer:r,rules:n,location:Pr()}},Et=function(e,t){return[e,t]},vt=function(e){return{type:"top_level_initializer",code:e,codeLocation:Pr()}},Ct=function(e){return{type:"top_level_initializer",code:e,codeLocation:Pr()}},yt=function(e,t){return{type:"grammar_import",what:e,from:t,location:Pr()}},$t=function(e){return{type:"grammar_import",what:[],from:e,location:Pr()}},St=function(e,t){return t?Array.isArray(t)?(t.unshift(e),t):[e,t]:[e]},Ft=function(e){return{type:"import_binding_default",binding:e[0],location:e[1]}},bt=function(e){return[{type:"import_binding_all",binding:e[0],location:e[1]}]},Pt=function(){return[]},xt=function(e,t){return{type:"import_binding_rename",rename:e[0],renameLocation:e[1],binding:t[0],location:t[1]}},Dt=function(e){return{type:"import_binding",binding:e[0],location:e[1]}},Rt=function(e){return{type:"import_module_specifier",module:e,location:Pr()}},Bt=function(e){return[e,Pr()]},Ot=function(e){return[e,Pr()]},Lt=function(e){return Sn.indexOf(e[0])>=0&&xr("Binding identifier can't be a reserved word \"".concat(e[0],'"'),e[1]),e[0]},wt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Pr()}},It=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Pr()}},Mt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:Pr()}:r,location:Pr()}},Tt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:Pr()}:e},Nt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:Pr()}:e},kt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:Pr()}:e},Ht=function(e,t,r){return r.type.startsWith("semantic_")&&xr('"@" 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:r,location:Pr()}},Ut=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:Pr()}},jt=function(){return Pr()},Gt=function(e){return Sn.indexOf(e[0])>=0&&xr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Vt=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:Pr()}},Yt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:Pr()}},zt=function(e,t,r){var n=t[0],o=t[1];return"constant"===o.type&&0===o.value&&xr("The maximum count of repetitions of the rule must be > 0",o.location),{type:"repeated",min:n,max:o,expression:e,delimiter:r,location:Pr()}},Wt=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},Jt=function(e){return[null,e]},qt=function(e){return{type:"constant",value:e,location:Pr()}},Qt=function(e){return{type:"variable",value:e[0],location:Pr()}},Xt=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:Pr()}},Kt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Pr()}:e},Zt=function(e,t){return{type:"library_ref",name:t[0],library:e[0],libraryNumber:-1,location:Pr()}},er=function(e){return{type:"rule_ref",name:e[0],location:Pr()}},tr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:Pr()}},rr=function(e,t){return[e+t.join(""),Pr()]},nr=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:Pr()}},or=function(e){return e.join("")},ur=function(e){return e.join("")},ar=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:Pr()}},ir=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&xr("Invalid character range: "+e.substring(yr,Cr)+"."),[t,r]},sr=function(){return""},cr=function(){return"\0"},lr=function(){return"\b"},pr=function(){return"\f"},fr=function(){return"\n"},hr=function(){return"\r"},dr=function(){return"\t"},gr=function(){return"\v"},Ar=function(e){return String.fromCharCode(parseInt(e,16))},mr=function(e){return String.fromCharCode(parseInt(e,16))},_r=function(){return{type:"any",location:Pr()}},Er=function(e){return[e,Pr()]},vr=function(e){return parseInt(e,10)},Cr=0|t.peg$currPos,yr=Cr,$r=[{line:1,column:1}],Sr=Cr,Fr=t.peg$maxFailExpected||[],br=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=u[t.startRule]}function Pr(){return Lr(yr,Cr)}function xr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Lr(yr,Cr))}function Dr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Rr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Br(e){return{type:"other",description:e}}function Or(t){var r,n=$r[t];if(n)return n;if(t>=$r.length)r=$r.length-1;else for(r=t;!$r[--r];);for(n={line:(n=$r[r]).line,column:n.column};rSr&&(Sr=Cr,Fr=[]),Fr.push(e))}function Ir(){var t,r,o,u,a,i,s,c;if(t=Cr,r=Mr(),o=Cr,u=yn(),a=function(){var t,r,o,u;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n&&(o=vn())!==n?(125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n&&$n()!==n?(yr=t,t=wt(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?o=a:(Cr=o,o=n),o===n&&(o=null),u=Cr,a=yn(),i=function(){var e,t;return e=Cr,(t=vn())!==n&&$n()!==n?(yr=e,e=It(t)):(Cr=e,e=n),e}(),i!==n?u=i:(Cr=u,u=n),u===n&&(u=null),a=yn(),i=[],s=Cr,(c=Gr())!==n?(yn(),s=c):(Cr=s,s=n),s!==n)for(;s!==n;)i.push(s),s=Cr,(c=Gr())!==n?(yn(),s=c):(Cr=s,s=n);else i=n;return i!==n?(yr=t,t=_t(r,o,u,i)):(Cr=t,t=n),t}function Mr(){var e,t;for(e=[],t=Tr();t!==n;)e.push(t),t=Tr();return e}function Tr(){var t,r,o,u,a,l,p,f;return t=Cr,yn(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?(yn(),o=function(){var t,r,o,u,a;return(t=Nr())===n&&(t=kr())===n&&(t=Cr,r=function(){var e,t;return e=Cr,(t=jr())!==n&&(yr=e,t=Ft(t)),e=t}(),r!==n?(o=Cr,yn(),44===e.charCodeAt(Cr)?(u=c,Cr++):(u=n,0===br&&wr(pe)),u!==n?(yn(),(a=Nr())===n&&(a=kr()),a!==n?o=a:(Cr=o,o=n)):(Cr=o,o=n),o===n&&(o=null),yr=t,t=St(r,o)):(Cr=t,t=n)),t}(),o!==n?(u=yn(),a=function(){var t,r,o;return t=Cr,e.substr(Cr,4)===d?(r=d,Cr+=4):(r=n,0===br&&wr(Ae)),r!==n?(yn(),(o=Ur())!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),t}(),a!==n?(l=Cr,p=yn(),59===e.charCodeAt(Cr)?(f=s,Cr++):(f=n,0===br&&wr(le)),f!==n?l=p=[p,f]:(Cr=l,l=n),l===n&&(l=null),yr=t,t=yt(o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,yn(),e.substr(Cr,6)===i?(r=i,Cr+=6):(r=n,0===br&&wr(ce)),r!==n?(yn(),(o=Ur())!==n?(u=Cr,a=yn(),59===e.charCodeAt(Cr)?(l=s,Cr++):(l=n,0===br&&wr(le)),l!==n?u=a=[a,l]:(Cr=u,u=n),u===n&&(u=null),yr=t,t=$t(o)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Nr(){var t,r,o,u;return t=Cr,42===e.charCodeAt(Cr)?(r=l,Cr++):(r=n,0===br&&wr(fe)),r!==n?(yn(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?(yn(),(u=jr())!==n?(yr=t,t=bt(u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function kr(){var t,r,o,u,a;return t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(yn(),125===e.charCodeAt(Cr)?(o=h,Cr++):(o=n,0===br&&wr(ge)),o!==n?(yr=t,t=Pt()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(yn(),o=function(){var t,r,o,u,a,i;for(t=Cr,r=[],o=Hr();o!==n;)r.push(o),o=Cr,u=Cr,a=yn(),44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?u=a=[a,i,yn()]:(Cr=u,u=n),u!==n&&(u=Hr())===n?(Cr=o,o=n):o=u;return r.length<1?(Cr=t,t=n):t=r,t}(),o!==n?(yn(),u=Cr,44===e.charCodeAt(Cr)?(a=c,Cr++):(a=n,0===br&&wr(pe)),a!==n?u=a=[a,yn()]:(Cr=u,u=n),u===n&&(u=null),125===e.charCodeAt(Cr)?(a=h,Cr++):(a=n,0===br&&wr(ge)),a!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)),t}function Hr(){var t,r,o,u;return t=Cr,r=function(){var e,t;return(e=un())===n&&(e=Cr,(t=cn())!==n&&(yr=e,t=Ot(t)),e=t),e}(),r!==n?(yn(),e.substr(Cr,2)===p?(o=p,Cr+=2):(o=n,0===br&&wr(he)),o!==n?(yn(),(u=jr())!==n?(yr=t,t=xt(r,u)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=jr())!==n&&(yr=t,r=Dt(r)),t=r),t}function Ur(){var e,t;return e=Cr,(t=cn())!==n&&(yr=e,t=Rt(t)),t}function jr(){var e,t;return e=Cr,t=function(){var e,t;return e=Cr,(t=un())!==n&&(yr=e,t=Lt(t)),e=t}(),t!==n&&(yr=e,t=Bt(t)),t}function Gr(){var t,r,o,u,a;return t=Cr,(r=un())!==n?(yn(),o=Cr,(u=cn())!==n?(yn(),o=u):(Cr=o,o=n),o===n&&(o=null),61===e.charCodeAt(Cr)?(u=g,Cr++):(u=n,0===br&&wr(me)),u!==n?(yn(),(a=Vr())!==n&&$n()!==n?(yr=t,t=Mt(r,o,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}function Vr(){var t,r,o,u,a,i;if(t=Cr,(r=Yr())!==n){for(o=[],u=Cr,yn(),47===e.charCodeAt(Cr)?(a=A,Cr++):(a=n,0===br&&wr(_e)),a!==n?(yn(),(i=Yr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);u!==n;)o.push(u),u=Cr,yn(),47===e.charCodeAt(Cr)?(a=A,Cr++):(a=n,0===br&&wr(_e)),a!==n?(yn(),(i=Yr())!==n?u=i:(Cr=u,u=n)):(Cr=u,u=n);yr=t,t=Tt(r,o)}else Cr=t,t=n;return t}function Yr(){var e,t,r,o;return e=Cr,t=function(){var e,t,r,o,u;if(e=Cr,(t=zr())!==n){for(r=[],o=Cr,yn(),(u=zr())!==n?o=u:(Cr=o,o=n);o!==n;)r.push(o),o=Cr,yn(),(u=zr())!==n?o=u:(Cr=o,o=n);yr=e,e=kt(t,r)}else Cr=e,e=n;return e}(),t!==n?(r=Cr,yn(),(o=vn())!==n?r=o:(Cr=r,r=n),r===n&&(r=null),yr=e,e=Nt(t,r)):(Cr=e,e=n),e}function zr(){var t,r,o,u;return t=Cr,r=function(){var t,r;return t=Cr,64===e.charCodeAt(Cr)?(r=m,Cr++):(r=n,0===br&&wr(Ee)),r!==n&&(yr=t,r=jt()),t=r}(),r!==n?((o=Wr())===n&&(o=null),(u=Jr())!==n?(yr=t,t=Ht(r,o,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=Wr())!==n&&(o=Jr())!==n?(yr=t,t=Ut(r,o)):(Cr=t,t=n),t===n&&(t=Jr())),t}function Wr(){var t,r,o;return t=Cr,(r=un())!==n?(yn(),58===e.charCodeAt(Cr)?(o=_,Cr++):(o=n,0===br&&wr(ve)),o!==n?(yn(),yr=t,t=Gt(r)):(Cr=t,t=n)):(Cr=t,t=n),t}function Jr(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),z.test(t)?Cr++:(t=n,0===br&&wr(Ce)),t}(),r!==n?(yn(),(o=qr())!==n?(yr=t,t=Vt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=qr()),t}function qr(){var t,r,o;return t=Cr,(r=Xr())!==n?(yn(),o=function(){var t;return t=e.charAt(Cr),W.test(t)?Cr++:(t=n,0===br&&wr(ye)),t}(),o!==n?(yr=t,t=Yt(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=Xr())!==n?(yn(),124===e.charCodeAt(Cr)?(o=E,Cr++):(o=n,0===br&&wr($e)),o!==n?(yn(),u=function(){var t,r,o,u;return t=Cr,(r=Qr())===n&&(r=null),yn(),e.substr(Cr,2)===v?(o=v,Cr+=2):(o=n,0===br&&wr(Se)),o!==n?(yn(),(u=Qr())===n&&(u=null),yr=t,t=Wt(r,u)):(Cr=t,t=n),t===n&&(t=Cr,(r=Qr())!==n&&(yr=t,r=Jt(r)),t=r),t}(),u!==n?(yn(),a=Cr,44===e.charCodeAt(Cr)?(i=c,Cr++):(i=n,0===br&&wr(pe)),i!==n?(yn(),(s=Vr())!==n?(yn(),a=s):(Cr=a,a=n)):(Cr=a,a=n),a===n&&(a=null),124===e.charCodeAt(Cr)?(i=E,Cr++):(i=n,0===br&&wr($e)),i!==n?(yr=t,t=zt(r,u,a)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Xr())),t}function Qr(){var t,r;return t=Cr,r=function(){var t,r,o,u;if(t=Cr,r=Cr,o=[],(u=_n())!==n)for(;u!==n;)o.push(u),u=_n();else o=n;return(r=o!==n?e.substring(r,Cr):o)!==n&&(yr=t,r=vr(r)),t=r}(),r!==n&&(yr=t,r=qt(r)),(t=r)===n&&(t=Cr,(r=un())!==n&&(yr=t,r=Qt(r)),(t=r)===n&&(t=Cr,(r=vn())!==n&&(yr=t,r=Xt(r)),t=r)),t}function Xr(){var t,r,o,u;return t=function(){var t,r,o;return br++,t=Cr,(r=cn())!==n?(105===e.charCodeAt(Cr)?(o=R,Cr++):(o=n,0===br&&wr(Ye)),o===n&&(o=null),yr=t,t=nr(r,o)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(Ve)),t}(),t===n&&(t=function(){var t,r,o,u,a,i;if(br++,t=Cr,91===e.charCodeAt(Cr)?(r=L,Cr++):(r=n,0===br&&wr(Ke)),r!==n){for(94===e.charCodeAt(Cr)?(o=w,Cr++):(o=n,0===br&&wr(Ze)),o===n&&(o=null),u=[],(a=fn())===n&&(a=hn());a!==n;)u.push(a),(a=fn())===n&&(a=hn());93===e.charCodeAt(Cr)?(a=I,Cr++):(a=n,0===br&&wr(et)),a!==n?(105===e.charCodeAt(Cr)?(i=R,Cr++):(i=n,0===br&&wr(Ye)),i===n&&(i=null),yr=t,t=ar(o,u,i)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(Xe)),t}(),t===n&&(t=function(){var t,r;return t=Cr,46===e.charCodeAt(Cr)?(r=$,Cr++):(r=n,0===br&&wr(Pe)),r!==n&&(yr=t,r=_r()),t=r}(),t===n&&(t=function(){var t,r,o,u,a,i,s;return t=Cr,(r=un())!==n?(46===e.charCodeAt(Cr)?(o=$,Cr++):(o=n,0===br&&wr(Pe)),o!==n&&(u=un())!==n?(yr=t,t=Zt(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=Cr,(r=un())!==n?(o=Cr,br++,u=Cr,a=yn(),i=Cr,(s=cn())!==n?i=s=[s,yn()]:(Cr=i,i=n),i===n&&(i=null),61===e.charCodeAt(Cr)?(s=g,Cr++):(s=n,0===br&&wr(me)),s!==n?u=a=[a,i,s]:(Cr=u,u=n),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?(yr=t,t=er(r)):(Cr=t,t=n)):(Cr=t,t=n)),t}(),t===n&&(t=function(){var t,r,o;return t=Cr,r=function(){var t;return t=e.charAt(Cr),J.test(t)?Cr++:(t=n,0===br&&wr(xe)),t}(),r!==n?(yn(),(o=vn())!==n?(yr=t,t=tr(r,o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=Cr,40===e.charCodeAt(Cr)?(r=C,Cr++):(r=n,0===br&&wr(Fe)),r!==n?(yn(),(o=Vr())!==n?(yn(),41===e.charCodeAt(Cr)?(u=y,Cr++):(u=n,0===br&&wr(be)),u!==n?(yr=t,t=Kt(o)):(Cr=t,t=n)):(Cr=t,t=n)):(Cr=t,t=n)))))),t}function Kr(){var t;return e.length>Cr?(t=e.charAt(Cr),Cr++):(t=n,0===br&&wr(se)),t}function Zr(){var t;return br++,t=e.charAt(Cr),q.test(t)?Cr++:(t=n,0===br&&wr(Re)),br--,t===n&&0===br&&wr(De),t}function en(){var t;return t=e.charAt(Cr),Q.test(t)?Cr++:(t=n,0===br&&wr(Be)),t}function tn(){var t;return br++,10===e.charCodeAt(Cr)?(t=S,Cr++):(t=n,0===br&&wr(Le)),t===n&&(e.substr(Cr,2)===F?(t=F,Cr+=2):(t=n,0===br&&wr(we)),t===n&&(t=e.charAt(Cr),X.test(t)?Cr++:(t=n,0===br&&wr(Ie)))),br--,t===n&&0===br&&wr(Oe),t}function rn(){var t;return br++,(t=function(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Te)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===P?(u=P,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}())===n&&(t=on()),br--,t===n&&0===br&&wr(Me),t}function nn(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===b?(r=b,Cr+=2):(r=n,0===br&&wr(Te)),r!==n){for(o=[],u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,e.substr(Cr,2)===P?(i=P,Cr+=2):(i=n,0===br&&wr(Ne)),i===n&&(i=en()),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);e.substr(Cr,2)===P?(u=P,Cr+=2):(u=n,0===br&&wr(Ne)),u!==n?t=r=[r,o,u]:(Cr=t,t=n)}else Cr=t,t=n;return t}function on(){var t,r,o,u,a,i;if(t=Cr,e.substr(Cr,2)===x?(r=x,Cr+=2):(r=n,0===br&&wr(ke)),r!==n){for(o=[],u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);u!==n;)o.push(u),u=Cr,a=Cr,br++,i=en(),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);t=r=[r,o]}else Cr=t,t=n;return t}function un(){var e,t,r,o;if(br++,e=Cr,(t=an())!==n){for(r=[],o=sn();o!==n;)r.push(o),o=sn();yr=e,e=rr(t,r)}else Cr=e,e=n;return br--,e===n&&(t=n,0===br&&wr(He)),e}function an(){var t,r,o;return t=e.charAt(Cr),K.test(t)?Cr++:(t=n,0===br&&wr(Ue)),t===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=mn())!==n?t=o:(Cr=t,t=n)),t}function sn(){var t;return(t=an())===n&&(t=e.charAt(Cr),Z.test(t)?Cr++:(t=n,0===br&&wr(Ge))),t}function cn(){var t,r,o,u;if(br++,t=Cr,34===e.charCodeAt(Cr)?(r=B,Cr++):(r=n,0===br&&wr(We)),r!==n){for(o=[],u=ln();u!==n;)o.push(u),u=ln();34===e.charCodeAt(Cr)?(u=B,Cr++):(u=n,0===br&&wr(We)),u!==n?(yr=t,t=or(o)):(Cr=t,t=n)}else Cr=t,t=n;if(t===n)if(t=Cr,39===e.charCodeAt(Cr)?(r=O,Cr++):(r=n,0===br&&wr(Je)),r!==n){for(o=[],u=pn();u!==n;)o.push(u),u=pn();39===e.charCodeAt(Cr)?(u=O,Cr++):(u=n,0===br&&wr(Je)),u!==n?(yr=t,t=ur(o)):(Cr=t,t=n)}else Cr=t,t=n;return br--,t===n&&(r=n,0===br&&wr(ze)),t}function ln(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),ee.test(u)?Cr++:(u=n,0===br&&wr(qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function pn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),te.test(u)?Cr++:(u=n,0===br&&wr(Qe)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function fn(){var t,r,o,u;return t=Cr,(r=hn())!==n?(45===e.charCodeAt(Cr)?(o=M,Cr++):(o=n,0===br&&wr(tt)),o!==n&&(u=hn())!==n?(yr=t,t=ir(r,u)):(Cr=t,t=n)):(Cr=t,t=n),t}function hn(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=e.charAt(Cr),re.test(u)?Cr++:(u=n,0===br&&wr(rt)),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),(t=r!==n?e.substring(t,Cr):r)===n&&(t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&(o=gn())!==n?t=o:(Cr=t,t=n),t===n&&(t=dn())),t}function dn(){var t,r;return t=Cr,92===e.charCodeAt(Cr)?(r=D,Cr++):(r=n,0===br&&wr(je)),r!==n&&tn()!==n?(yr=t,t=sr()):(Cr=t,t=n),t}function gn(){var t,r,o,u;return t=function(){var t;return(t=An())===n&&(t=function(){var t,r,o,u;return t=Cr,r=Cr,o=Cr,br++,u=function(){var t;return(t=An())===n&&(t=e.charAt(Cr),oe.test(t)?Cr++:(t=n,0===br&&wr(pt))),t}(),u===n&&(u=en()),br--,u===n?o=void 0:(Cr=o,o=n),o!==n&&(u=Kr())!==n?r=o=[o,u]:(Cr=r,r=n),t=r!==n?e.substring(t,Cr):r}()),t}(),t===n&&(t=Cr,48===e.charCodeAt(Cr)?(r=T,Cr++):(r=n,0===br&&wr(nt)),r!==n?(o=Cr,br++,u=_n(),br--,u===n?o=void 0:(Cr=o,o=n),o!==n?(yr=t,t=cr()):(Cr=t,t=n)):(Cr=t,t=n),t===n&&(t=function(){var t,r,o,u,a,i;return t=Cr,120===e.charCodeAt(Cr)?(r=V,Cr++):(r=n,0===br&&wr(ft)),r!==n?(o=Cr,u=Cr,(a=En())!==n&&(i=En())!==n?u=a=[a,i]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?(yr=t,t=Ar(o)):(Cr=t,t=n)):(Cr=t,t=n),t}(),t===n&&(t=mn()))),t}function An(){var t,r;return t=e.charAt(Cr),ne.test(t)?Cr++:(t=n,0===br&&wr(ot)),t===n&&(t=Cr,98===e.charCodeAt(Cr)?(r=N,Cr++):(r=n,0===br&&wr(ut)),r!==n&&(yr=t,r=lr()),(t=r)===n&&(t=Cr,102===e.charCodeAt(Cr)?(r=k,Cr++):(r=n,0===br&&wr(at)),r!==n&&(yr=t,r=pr()),(t=r)===n&&(t=Cr,110===e.charCodeAt(Cr)?(r=H,Cr++):(r=n,0===br&&wr(it)),r!==n&&(yr=t,r=fr()),(t=r)===n&&(t=Cr,114===e.charCodeAt(Cr)?(r=U,Cr++):(r=n,0===br&&wr(st)),r!==n&&(yr=t,r=hr()),(t=r)===n&&(t=Cr,116===e.charCodeAt(Cr)?(r=j,Cr++):(r=n,0===br&&wr(ct)),r!==n&&(yr=t,r=dr()),(t=r)===n&&(t=Cr,118===e.charCodeAt(Cr)?(r=G,Cr++):(r=n,0===br&&wr(lt)),r!==n&&(yr=t,r=gr()),t=r)))))),t}function mn(){var t,r,o,u,a,i,s,c;return t=Cr,117===e.charCodeAt(Cr)?(r=Y,Cr++):(r=n,0===br&&wr(ht)),r!==n?(o=Cr,u=Cr,(a=En())!==n&&(i=En())!==n&&(s=En())!==n&&(c=En())!==n?u=a=[a,i,s,c]:(Cr=u,u=n),(o=u!==n?e.substring(o,Cr):u)!==n?(yr=t,t=mr(o)):(Cr=t,t=n)):(Cr=t,t=n),t}function _n(){var t;return t=e.charAt(Cr),ue.test(t)?Cr++:(t=n,0===br&&wr(dt)),t}function En(){var t;return t=e.charAt(Cr),ae.test(t)?Cr++:(t=n,0===br&&wr(gt)),t}function vn(){var t,r,o,u;return br++,t=Cr,123===e.charCodeAt(Cr)?(r=f,Cr++):(r=n,0===br&&wr(de)),r!==n?(o=function(){var e,t;return e=Cr,t=Cn(),yr=e,e=t=Er(t)}(),125===e.charCodeAt(Cr)?(u=h,Cr++):(u=n,0===br&&wr(ge)),u!==n?t=o:(Cr=t,t=n)):(Cr=t,t=n),br--,t===n&&(r=n,0===br&&wr(At)),t}function Cn(){var t,r,o,u,a,i;if(t=Cr,r=[],o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;for(o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n));o!==n;){if(r.push(o),o=[],u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n),u!==n)for(;u!==n;)o.push(u),u=Cr,a=Cr,br++,i=e.charAt(Cr),ie.test(i)?Cr++:(i=n,0===br&&wr(mt)),br--,i===n?a=void 0:(Cr=a,a=n),a!==n&&(i=Kr())!==n?u=a=[a,i]:(Cr=u,u=n);else o=n;o===n&&(o=Cr,123===e.charCodeAt(Cr)?(u=f,Cr++):(u=n,0===br&&wr(de)),u!==n?(a=Cn(),125===e.charCodeAt(Cr)?(i=h,Cr++):(i=n,0===br&&wr(ge)),i!==n?o=u=[u,a,i]:(Cr=o,o=n)):(Cr=o,o=n))}return e.substring(t,Cr)}function yn(){var e,t;for(e=[],(t=Zr())===n&&(t=tn())===n&&(t=rn());t!==n;)e.push(t),(t=Zr())===n&&(t=tn())===n&&(t=rn());return e}function $n(){var t,r,o,u;if(t=[],r=Cr,o=yn(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n),r!==n)for(;r!==n;)t.push(r),r=Cr,o=yn(),59===e.charCodeAt(Cr)?(u=s,Cr++):(u=n,0===br&&wr(le)),u!==n?r=o=[o,u]:(Cr=r,r=n);else t=n;return t===n&&(t=Cr,r=function(){var e,t;for(e=[],(t=Zr())===n&&(t=nn());t!==n;)e.push(t),(t=Zr())===n&&(t=nn());return e}(),(o=on())===n&&(o=null),(u=tn())!==n?t=r=[r,o,u]:(Cr=t,t=n),t===n&&(t=Cr,r=yn(),o=function(){var t,r;return t=Cr,br++,e.length>Cr?(r=e.charAt(Cr),Cr++):(r=n,0===br&&wr(se)),br--,r===n?t=void 0:(Cr=t,t=n),t}(),o!==n?t=r=[r,o]:(Cr=t,t=n))),t}var Sn=t.reservedWords||[];if(r=a(),t.peg$library)return{peg$result:r,peg$currPos:Cr,peg$FAILED:n,peg$maxFailExpected:Fr,peg$maxFailPos:Sr};if(r!==n&&Cr===e.length)return r;throw r!==n&&Cr0){for(t=1,r=1;t0||e.imports.length>0)throw new Error("Dependencies not supported in format 'bare'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function() {",' "use strict";',"",r,"",l("return "+o()+";"),"})()"],!1)},commonjs:function(){var t=Object.keys(c),u=n();u.push("",'"use strict";',""),t.length>0&&(t.forEach((function(e){u.push("var "+e+' = require("'+stringEscape(c[e])+'");')})),u.push(""));for(var a=e.imports.length,i=0;i0&&(o.forEach((function(e){u.push("import "+e+' from "'+stringEscape(c[e])+'";')})),u.push(""));for(var a=0;a0)throw new Error("Imports are not supported in format 'amd'.");var t=Object.keys(c),u="["+t.map((function(e){return c[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",a=t.join(", ");return __spreadArray$2(__spreadArray$2([],n(),!0),["define("+u+", function("+a+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"],!1)},globals:function(){if(Object.keys(c).length>0||e.imports.length>0)throw new Error("Dependencies not supported in format 'globals'.");if(!t.exportVar)throw new Error("No export variable defined for format 'globals'.");return __spreadArray$2(__spreadArray$2([],n(),!0),["(function(root) {",' "use strict";',"",r,"",l("root."+t.exportVar+" = "+o()+";"),"})(this);"],!1)},umd:function(){if(e.imports.length>0)throw new Error("Imports are not supported in format 'umd'.");var u=Object.keys(c),a=u.map((function(e){return c[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),p=u.join(", "),f=n();return f.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),t.exportVar&&f.push(" } else {"," root."+t.exportVar+" = factory();"),f.push(" }","})(this, function("+p+") {",' "use strict";',"",r,"",l("return "+o()+";"),"});"),f}},a=u[t.format||"bare"]();return new SourceNode(null,null,t.grammarSource,a.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[],_=e.topLevelInitializer;if(_)if(Array.isArray(_)){if("es"===t.format){for(var E=[],v=[],C=0,y=_;C 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&&c.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 + ".");'," }","};","");var D="{ "+s.map((function(e){return e+": "+A(e)})).join(", ")+" }",R=A(s[0]);if(c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+D+";"," var peg$startRuleFunction = "+R+";","",new SourceNode(null,null,t.grammarSource,__spreadArray$2([r.map((function(e,t){return" var "+p(t)+' = "'+stringEscape(e)+'";'})).concat("",o.map((function(e,t){return" var "+f(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",u.map((function(e,t){return" var "+h(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(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")],a.map((function(e,t){return wrapInSourceNode("\n var ".concat(d(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")})),!0)),""," var peg$currPos = options.peg$currPos | 0;"," var peg$savedPos = peg$currPos;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = peg$currPos;"," var peg$maxFailExpected = options.peg$maxFailExpected || [];"," var peg$silentFails = options.peg$silentFails | 0;",""),t.cache&&c.push(" var peg$resultsCache = {};",""),t.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;",""," if (options.startRule) {"," 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 {"," if (pos >= peg$posDetailsCache.length) {"," p = peg$posDetailsCache.length - 1;"," } else {"," p = pos;"," while (!peg$posDetailsCache[--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.imports.length>0&&c.push(" var peg$assign = Object.assign || function(t) {"," var i, s;"," for (i = 1; i < arguments.length; i++) {"," s = arguments[i];"," for (var p in s) {"," if (Object.prototype.hasOwnProperty.call(s, p)) {"," t[p] = s[p];"," }"," }"," }"," return t;"," };",""," function peg$callLibrary(lib, startRule) {"," const opts = peg$assign({}, options, {"," startRule: startRule,"," peg$currPos: peg$currPos,"," peg$silentFails: peg$silentFails,"," peg$library: true,"," peg$maxFailExpected: peg$maxFailExpected"," });"," const res = lib.parse(input, opts);"," peg$currPos = res.peg$currPos;"," peg$maxFailPos = res.peg$maxFailPos;"," peg$maxFailExpected = res.peg$maxFailExpected;"," return (res.peg$result === res.peg$FAILED) ? peg$FAILED : res.peg$result;"," }",""),e.rules.forEach((function(o){c.push.apply(c,l(function(o){var u=[],a=o.bytecode,s=new Stack(o.name,"s","var",a),c=function t(o){var u=0,a=o.length,c=[],m=void 0;function _(e,r,n){var a=r+3,i=o[u+a-2],p=o[u+a-1],f=s.checkedIf(u,(function(){return u+=a+i,(n||t)(o.slice(u-i,u))}),p>0?function(){return u+=p,t(o.slice(u-p,u))}:null),h=f[0],d=f[1];c.push("if ("+e+") {"),c.push.apply(c,l(h)),p>0&&(c.push("} else {"),c.push.apply(c,l(d))),c.push("}")}function E(e,r,n){var a=r+3,i=1===n?"input.charAt(peg$currPos)":"input.substr(peg$currPos, "+n+")",l=null;o[u+a]===op.ACCEPT_N&&o[u+a+1]===n&&(c.push(s.push(i)),i=s.pop(),l=function(e){s.sp++;var r=t(e.slice(2));return r.unshift(1===n?"peg$currPos++;":"peg$currPos += "+n+";"),r}),_(e(i,null!==l),r,l)}for(var v=function(){switch(o[u]){case op.PUSH_EMPTY_STRING:c.push(s.push("''")),u++;break;case op.PUSH_CURR_POS:c.push(s.push("peg$currPos")),u++;break;case op.PUSH_UNDEFINED:c.push(s.push("undefined")),u++;break;case op.PUSH_NULL:c.push(s.push("null")),u++;break;case op.PUSH_FAILED:c.push(s.push("peg$FAILED")),u++;break;case op.PUSH_EMPTY_ARRAY:c.push(s.push("[]")),u++;break;case op.POP:s.pop(),u++;break;case op.POP_CURR_POS:c.push("peg$currPos = "+s.pop()+";"),u++;break;case op.POP_N:s.pop(o[u+1]),u+=2;break;case op.NIP:m=s.pop(),s.pop(),c.push(s.push(m)),u++;break;case op.APPEND:m=s.pop(),c.push(s.top()+".push("+m+");"),u++;break;case op.WRAP:c.push(s.push("["+s.pop(o[u+1]).join(", ")+"]")),u+=2;break;case op.TEXT:c.push(s.push("input.substring("+s.pop()+", peg$currPos)")),u++;break;case op.PLUCK:var a=o[u+3-1],v=3+a;m=o.slice(u+3,u+v),m=1===a?s.index(m[0]):"[ ".concat(m.map((function(e){return s.index(e)})).join(", ")," ]"),s.pop(o[u+1]),c.push(s.push(m)),u+=v;break;case op.IF:_(s.top(),0);break;case op.IF_ERROR:_(s.top()+" === peg$FAILED",0);break;case op.IF_NOT_ERROR:_(s.top()+" !== peg$FAILED",0);break;case op.IF_LT:_(s.top()+".length < "+o[u+1],1);break;case op.IF_GE:_(s.top()+".length >= "+o[u+1],1);break;case op.IF_LT_DYNAMIC:_(s.top()+".length < ("+s.index(o[u+1])+"|0)",1);break;case op.IF_GE_DYNAMIC:_(s.top()+".length >= ("+s.index(o[u+1])+"|0)",1);break;case op.WHILE_NOT_ERROR:P=s.top()+" !== peg$FAILED",x=o[u+2-1],D=s.checkedLoop(u,(function(){return u+=2+x,t(o.slice(u-x,u))})),c.push("while ("+P+") {"),c.push.apply(c,l(D)),c.push("}");break;case op.MATCH_ANY:_("input.length > peg$currPos",0);break;case op.MATCH_STRING:var C=o[u+1],y=r[C];E((function(e,t){return y.length>1?"".concat(e," === ").concat(p(C)):(e=t?"".concat(e,".charCodeAt(0)"):"input.charCodeAt(peg$currPos)","".concat(e," === ").concat(y.charCodeAt(0)))}),1,y.length);break;case op.MATCH_STRING_IC:var $=o[u+1];E((function(e){return"".concat(e,".toLowerCase() === ").concat(p($))}),1,r[$].length);break;case op.MATCH_CHAR_CLASS:var S=o[u+1];E((function(e){return"".concat(f(S),".test(").concat(e,")")}),1,1);break;case op.ACCEPT_N:c.push(s.push(o[u+1]>1?"input.substr(peg$currPos, "+o[u+1]+")":"input.charAt(peg$currPos)")),c.push(o[u+1]>1?"peg$currPos += "+o[u+1]+";":"peg$currPos++;"),u+=2;break;case op.ACCEPT_STRING:c.push(s.push(p(o[u+1]))),c.push(r[o[u+1]].length>1?"peg$currPos += "+r[o[u+1]].length+";":"peg$currPos++;"),u+=2;break;case op.FAIL:c.push(s.push("peg$FAILED")),c.push("if (peg$silentFails === 0) { peg$fail("+h(o[u+1])+"); }"),u+=2;break;case op.LOAD_SAVED_POS:c.push("peg$savedPos = "+s.index(o[u+1])+";"),u+=2;break;case op.UPDATE_SAVED_POS:c.push("peg$savedPos = peg$currPos;"),u++;break;case op.CALL:m=function(){var e=o[u+4-1];return d(o[u+1])+"("+o.slice(u+4,u+4+e).map((function(e){return s.index(e)})).join(", ")+")"}(),s.pop(o[u+2]),c.push(s.push(m)),u+=4+o[u+3];break;case op.RULE:c.push(s.push(A(e.rules[o[u+1]].name)+"()")),u+=2;break;case op.LIBRARY_RULE:var F=o[u+2],b=-1===F?"":', "'+i[F]+'"';c.push(s.push("peg$callLibrary("+g(o[u+1])+b+")")),u+=3;break;case op.SILENT_FAILS_ON:c.push("peg$silentFails++;"),u++;break;case op.SILENT_FAILS_OFF:c.push("peg$silentFails--;"),u++;break;case op.SOURCE_MAP_PUSH:s.sourceMapPush(c,n[o[u+1]]),u+=2;break;case op.SOURCE_MAP_POP:s.sourceMapPop(),u++;break;case op.SOURCE_MAP_LABEL_PUSH:s.labels[o[u+1]]={label:r[o[u+2]],location:n[o[u+3]]},u+=4;break;case op.SOURCE_MAP_LABEL_POP:delete s.labels[o[u+1]],u+=2;break;default:throw new Error("Invalid opcode: "+o[u]+".")}var P,x,D};ui?-1:1:0}));for(var t="",r="",n=0;n=a.charCodeAt(0)?(e.splice(n--,1),e[n]=[t,r=i]):(t=a,r=i)}return e}function mergeCharacterClasses$1(e){var t=Object.create(null);e.rules.forEach((function(e){return t[e.name]=e.expression}));var r=Object.create(null),n=[function(e,n){if("class"===e.type&&!e.inverted)return n&&((e=__assign({},e)).parts=__spreadArray$1([],e.parts,!0)),e;if("literal"===e.type&&1===e.value.length)return{type:"class",parts:[e.value],inverted:!1,ignoreCase:e.ignoreCase,location:e.location};if("rule_ref"===e.type){var a=t[e.name];if(a){r[e.name]||(r[e.name]=!0,u(a));var i=o(a,!0);return i&&(i.location=e.location),i}}return null},visitor$7.build({choice:function(e){var t=null,r=!1;e.alternatives.forEach((function(n,a){var i;u(n);var s=o(n);s?t&&t.ignoreCase===s.ignoreCase?((i=t.parts).push.apply(i,s.parts),e.alternatives[a-1]=t,e.alternatives[a]=t,t.location={source:t.location.source,start:t.location.start,end:s.location.end},r=!0):t=s:t=null})),r&&(e.alternatives=e.alternatives.filter((function(e,t,r){return!t||e!==r[t-1]})),e.alternatives.forEach((function(t,r){"class"===t.type&&(t.parts=cleanParts(t.parts),1!==t.parts.length||Array.isArray(t.parts[0])||t.inverted||(e.alternatives[r]={type:"literal",value:t.parts[0],ignoreCase:t.ignoreCase,location:t.location}))})),1===e.alternatives.length&&cloneOver(e,e.alternatives[0]))},text:function(e){if(u(e.expression),"class"===e.expression.type||"literal"===e.expression.type){var t=e.location;cloneOver(e,e.expression),e.location=t}}})],o=n[0],u=n[1];e.rules.forEach((function(e){r[e.name]=!0,u(e.expression)}))}var mergeCharacterClasses_1=mergeCharacterClasses$1;function reportDuplicateImports$1(e,t,r){for(var n={},o=0,u=e.imports;o0||(n.push(e.name),u(e.expression),n.pop())},sequence:function(t){r.errors>0||t.elements.every((function(t){return u(t),!(r.errors>0||asts$3.alwaysConsumesOnSuccess(e,t))}))},repeated:function(t){r.errors>0||(u(t.expression),t.delimiter&&!asts$3.alwaysConsumesOnSuccess(e,t.expression)&&u(t.delimiter))},rule_ref:function(t){if(!(r.errors>0)){o.push(t);var a=asts$3.findRule(e,t.name);if(-1!==n.indexOf(t.name))return n.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+n.join(" -> ")+")",a.nameLocation,o.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&u(a),o.pop()}}});u(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$2=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){var n=visitor$3.build({zero_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$2.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(t.delimiter&&n(t.delimiter),!(asts$2.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$2.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var o=t.min?t.min:t.max;r.warning("constant"===o.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});n(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts$1=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts$1.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var n=visitor$1.build({action:function(e){n(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,u=t.length;o0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{prepare:[addImportedRules,reportInfiniteRecursion],check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRepetition,reportIncorrectPlucking,reportDuplicateImports],transform:[fixLibraryNumbers,removeProxyRules,mergeCharacterClasses,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){options=void 0!==options?options:{};var defaultStartRules=[ast.rules[0].name];if(options=processOptions(options,{allowedStartRules:defaultStartRules,cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),null!==options.allowedStartRules&&void 0!==options.allowedStartRules||(options.allowedStartRules=defaultStartRules),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");0===options.allowedStartRules.length&&(options.allowedStartRules=defaultStartRules);var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}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");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(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");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,GrammarError=grammarError,GrammarLocation=grammarLocation,asts=asts_1,compiler=compiler_1,parser=parser$1,VERSION=version,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"],peg={VERSION:VERSION,RESERVED_WORDS:RESERVED_WORDS,GrammarError:GrammarError,GrammarLocation:GrammarLocation,parser:parser,compiler:compiler,generate:function(e,t){var r,n,o="plugins"in(t=void 0!==t?t:{})?t.plugins:[],u={parser:peg.parser,passes:(r=peg.compiler.passes,n={},Object.keys(r).forEach((function(e){n[e]=r[e].slice()})),n),reservedWords:peg.RESERVED_WORDS.slice()};o.forEach((function(e){e.use(u,t)})),Array.isArray(e)||(e=[{source:t.grammarSource,text:e}]);var a=asts.combine(e.map((function(e){var t=e.source,r=e.text;return u.parser.parse(r,{grammarSource:t,reservedWords:u.reservedWords})})));return peg.compiler.compile(a,u.passes,t)}},peg_1=peg,peg$1=getDefaultExportFromCjs(peg_1);return peg$1})); \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js index 865edf59..857a9c41 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,6 +3,7 @@ module.exports = [ { ignores: [ + "**/*.d.ts", "benchmark/**", "build/**", "docs/**", diff --git a/lib/compiler/passes/generate-bytecode.js b/lib/compiler/passes/generate-bytecode.js index 096b1433..aeac2f0a 100644 --- a/lib/compiler/passes/generate-bytecode.js +++ b/lib/compiler/passes/generate-bytecode.js @@ -534,7 +534,6 @@ function generateBytecode(ast, options) { } } - /* eslint capitalized-comments: "off" */ /** * @param {number[]} expressionCode Bytecode for parsing repetitions * @param {import("../../peg").ast.RepeatedBoundary} max Maximum boundary of repetitions. diff --git a/lib/compiler/passes/generate-js.js b/lib/compiler/passes/generate-js.js index 7a31619a..5f5ce348 100644 --- a/lib/compiler/passes/generate-js.js +++ b/lib/compiler/passes/generate-js.js @@ -423,6 +423,7 @@ function generateJS(ast, options) { let ip = 0; const end = bc.length; const parts = []; + // eslint-disable-next-line no-useless-assignment let value = undefined; /** diff --git a/lib/compiler/passes/inference-match-result.js b/lib/compiler/passes/inference-match-result.js index 31bcbbcb..3304d713 100644 --- a/lib/compiler/passes/inference-match-result.js +++ b/lib/compiler/passes/inference-match-result.js @@ -50,7 +50,8 @@ function inferenceMatchResult(ast) { const inference = visitor.build({ rule(node) { - let oldResult = undefined; + // eslint-disable-next-line init-declarations + let oldResult; let count = 0; // If property not yet calculated, do that diff --git a/lib/grammar-error.js b/lib/grammar-error.js index 3a9bd775..750c7ef8 100644 --- a/lib/grammar-error.js +++ b/lib/grammar-error.js @@ -137,6 +137,7 @@ ${"".padEnd(indent)} | ${"".padEnd(s.column - 1)}${"".padEnd(hatLen, "^")}`; */ function formatProblem(severity, message, location, diagnostics = []) { // Calculate maximum width of all lines + // eslint-disable-next-line no-useless-assignment let maxLine = -Infinity; if (location) { maxLine = diagnostics.reduce( diff --git a/package.json b/package.json index 19326aac..6ecee497 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "start": "cd docs && npm start" }, "devDependencies": { - "@peggyjs/eslint-config": "^3.2.4", + "@peggyjs/eslint-config": "^4.0.1", "@rollup/plugin-commonjs": "^26.0.1", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-multi-entry": "^6.0.1", @@ -62,25 +62,24 @@ "@types/chai": "^4.3.11", "@types/jest": "^29.5.12", "@types/node": "^20.14.10", - "@typescript-eslint/eslint-plugin": "^7.16.0", - "@typescript-eslint/parser": "^7.16.0", "chai": "^4.3.11", "chai-like": "^1.1.1", "copyfiles": "^2.4.1", - "eslint": "^8.57.0", - "eslint-plugin-compat": "5.0.0", + "eslint": "^9.7.0", + "eslint-plugin-compat": "6.0.0", "eslint-plugin-mocha": "10.4.3", "express": "4.19.2", "glob": "^11.0.0", "jest": "^29.7.0", - "rimraf": "^6.0.0", + "rimraf": "^6.0.1", "rollup": "^4.18.1", "rollup-plugin-ignore": "1.0.10", "source-map": "^0.8.0-beta.0", - "terser": "^5.31.1", - "ts-jest": "^29.2.0", + "terser": "^5.31.3", + "ts-jest": "^29.2.2", "tslib": "^2.6.3", - "typescript": "^5.5.3" + "typescript": "^5.5.3", + "typescript-eslint": "8.0.0-alpha.44" }, "dependencies": { "@peggyjs/from-mem": "1.3.0", @@ -90,6 +89,16 @@ "browserslist": [ "defaults, maintained node versions, not op_mini all" ], + "overrides": { + "@typescript-eslint/utils": "8.0.0-alpha.44", + "@typescript-eslint/parser": "8.0.0-alpha.44" + }, + "pnpm": { + "overrides": { + "@typescript-eslint/utils": "8.0.0-alpha.44", + "@typescript-eslint/parser": "8.0.0-alpha.44" + } + }, "packageManager": "pnpm@9.4.0", "engines": { "node": ">=18" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1eafafcd..87c9e1b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,10 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + '@typescript-eslint/utils': 8.0.0-alpha.44 + '@typescript-eslint/parser': 8.0.0-alpha.44 + importers: .: @@ -19,8 +23,8 @@ importers: version: 0.8.0 devDependencies: '@peggyjs/eslint-config': - specifier: ^3.2.4 - version: 3.2.4(@typescript-eslint/eslint-plugin@7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-mocha@10.4.3(eslint@8.57.0))(eslint@8.57.0)(typescript@5.5.3) + specifier: ^4.0.1 + version: 4.0.1(eslint@9.7.0)(typescript@5.5.3) '@rollup/plugin-commonjs': specifier: ^26.0.1 version: 26.0.1(rollup@4.18.1) @@ -45,12 +49,6 @@ importers: '@types/node': specifier: ^20.14.10 version: 20.14.10 - '@typescript-eslint/eslint-plugin': - specifier: ^7.16.0 - version: 7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/parser': - specifier: ^7.16.0 - version: 7.16.0(eslint@8.57.0)(typescript@5.5.3) chai: specifier: ^4.3.11 version: 4.4.1 @@ -61,14 +59,14 @@ importers: specifier: ^2.4.1 version: 2.4.1 eslint: - specifier: ^8.57.0 - version: 8.57.0 + specifier: ^9.7.0 + version: 9.7.0 eslint-plugin-compat: - specifier: 5.0.0 - version: 5.0.0(eslint@8.57.0) + specifier: 6.0.0 + version: 6.0.0(eslint@9.7.0) eslint-plugin-mocha: specifier: 10.4.3 - version: 10.4.3(eslint@8.57.0) + version: 10.4.3(eslint@9.7.0) express: specifier: 4.19.2 version: 4.19.2 @@ -79,8 +77,8 @@ importers: specifier: ^29.7.0 version: 29.7.0(@types/node@20.14.10) rimraf: - specifier: ^6.0.0 - version: 6.0.0 + specifier: ^6.0.1 + version: 6.0.1 rollup: specifier: ^4.18.1 version: 4.18.1 @@ -91,20 +89,61 @@ importers: specifier: ^0.8.0-beta.0 version: 0.8.0-beta.0 terser: - specifier: ^5.31.1 - version: 5.31.1 + specifier: ^5.31.3 + version: 5.31.3 ts-jest: - specifier: ^29.2.0 - version: 29.2.0(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(jest@29.7.0(@types/node@20.14.10))(typescript@5.5.3) + specifier: ^29.2.2 + version: 29.2.2(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.10))(typescript@5.5.3) tslib: specifier: ^2.6.3 version: 2.6.3 typescript: specifier: ^5.5.3 version: 5.5.3 + typescript-eslint: + specifier: 8.0.0-alpha.44 + version: 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + + docs: + devDependencies: + '@11ty/eleventy': + specifier: ^2.0.1 + version: 2.0.1 + + test/cli/fixtures/frags: {} + + web-test: + devDependencies: + '@playwright/test': + specifier: 1.45.2 + version: 1.45.2 + '@types/node': + specifier: 20.14.10 + version: 20.14.10 packages: + '@11ty/dependency-tree@2.0.1': + resolution: {integrity: sha512-5R+DsT9LJ9tXiSQ4y+KLFppCkQyXhzAm1AIuBWE/sbU0hSXY5pkhoqQYEcPJQFg/nglL+wD55iv2j+7O96UAvg==} + + '@11ty/eleventy-dev-server@1.0.4': + resolution: {integrity: sha512-qVBmV2G1KF/0o5B/3fITlrrDHy4bONUI2YuN3/WJ3BNw4NU1d/we8XhKrlgq13nNvHoBx5czYp3LZt8qRG53Fg==} + engines: {node: '>=14'} + hasBin: true + + '@11ty/eleventy-utils@1.0.3': + resolution: {integrity: sha512-nULO91om7vQw4Y/UBjM8i7nJ1xl+/nyK4rImZ41lFxiY2d+XUz7ChAj1CDYFjrLZeu0utAYJTZ45LlcHTkUG4g==} + engines: {node: '>=12'} + + '@11ty/eleventy@2.0.1': + resolution: {integrity: sha512-t8XVUbCJByhVEa1RzO0zS2QzbL3wPY8ot1yUw9noqiSHxJWUwv6jiwm1/MZDPTYtkZH2ZHvdQIRQ5/SjG9XmLw==} + engines: {node: '>=14'} + hasBin: true + + '@11ty/lodash-custom@4.17.21': + resolution: {integrity: sha512-Mqt6im1xpb1Ykn3nbcCovWXK3ggywRJa+IXIdoz4wIIK+cvozADH63lexcuPpGS/gJ6/m2JxyyXDyupkMr5DHw==} + engines: {node: '>=14'} + '@ampproject/remapping@2.3.0': resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} @@ -113,20 +152,20 @@ packages: resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} engines: {node: '>=6.9.0'} - '@babel/compat-data@7.24.7': - resolution: {integrity: sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==} + '@babel/compat-data@7.24.9': + resolution: {integrity: sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng==} engines: {node: '>=6.9.0'} - '@babel/core@7.24.7': - resolution: {integrity: sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==} + '@babel/core@7.24.9': + resolution: {integrity: sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg==} engines: {node: '>=6.9.0'} - '@babel/generator@7.24.7': - resolution: {integrity: sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==} + '@babel/generator@7.24.10': + resolution: {integrity: sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg==} engines: {node: '>=6.9.0'} - '@babel/helper-compilation-targets@7.24.7': - resolution: {integrity: sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==} + '@babel/helper-compilation-targets@7.24.8': + resolution: {integrity: sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw==} engines: {node: '>=6.9.0'} '@babel/helper-environment-visitor@7.24.7': @@ -145,14 +184,14 @@ packages: resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} engines: {node: '>=6.9.0'} - '@babel/helper-module-transforms@7.24.7': - resolution: {integrity: sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==} + '@babel/helper-module-transforms@7.24.9': + resolution: {integrity: sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 - '@babel/helper-plugin-utils@7.24.7': - resolution: {integrity: sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==} + '@babel/helper-plugin-utils@7.24.8': + resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} engines: {node: '>=6.9.0'} '@babel/helper-simple-access@7.24.7': @@ -163,28 +202,28 @@ packages: resolution: {integrity: sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.24.7': - resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==} + '@babel/helper-string-parser@7.24.8': + resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} engines: {node: '>=6.9.0'} '@babel/helper-validator-identifier@7.24.7': resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-option@7.24.7': - resolution: {integrity: sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==} + '@babel/helper-validator-option@7.24.8': + resolution: {integrity: sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==} engines: {node: '>=6.9.0'} - '@babel/helpers@7.24.7': - resolution: {integrity: sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==} + '@babel/helpers@7.24.8': + resolution: {integrity: sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ==} engines: {node: '>=6.9.0'} '@babel/highlight@7.24.7': resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} engines: {node: '>=6.9.0'} - '@babel/parser@7.24.7': - resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==} + '@babel/parser@7.24.8': + resolution: {integrity: sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==} engines: {node: '>=6.0.0'} hasBin: true @@ -265,12 +304,12 @@ packages: resolution: {integrity: sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==} engines: {node: '>=6.9.0'} - '@babel/traverse@7.24.7': - resolution: {integrity: sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==} + '@babel/traverse@7.24.8': + resolution: {integrity: sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ==} engines: {node: '>=6.9.0'} - '@babel/types@7.24.7': - resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} + '@babel/types@7.24.9': + resolution: {integrity: sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ==} engines: {node: '>=6.9.0'} '@bcoe/v8-coverage@0.2.3': @@ -282,30 +321,36 @@ packages: peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - '@eslint-community/regexpp@4.10.1': - resolution: {integrity: sha512-Zm2NGpWELsQAD1xsJzGQpYfvICSsFkEpU0jxBjfdC6uNEWXcHnfs9hScFWtXVDVl+rBQJGrl4g1vcKIejpH9dA==} + '@eslint-community/regexpp@4.11.0': + resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/eslintrc@2.1.4': - resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/config-array@0.17.0': + resolution: {integrity: sha512-A68TBu6/1mHHuc5YJL0U0VVeGNiklLAL6rRmhTCP2B5XjWLMnrX+HkO+IAXyHvks5cyyY1jjK5ITPQ1HGS2EVA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@8.57.0': - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/eslintrc@3.1.0': + resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@humanwhocodes/config-array@0.11.14': - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} - engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead + '@eslint/js@9.7.0': + resolution: {integrity: sha512-ChuWDQenef8OSFnvuxv0TCVxEwmu3+hPNKvM9B34qpM0rDRbjL8t5QkQeHHeAfsKQjuH9wS82WeCi1J/owatng==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/object-schema@2.1.4': + resolution: {integrity: sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} - '@humanwhocodes/object-schema@2.0.3': - resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead + '@humanwhocodes/retry@0.3.0': + resolution: {integrity: sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==} + engines: {node: '>=18.18'} + + '@iarna/toml@2.2.5': + resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -400,14 +445,14 @@ packages: '@jridgewell/source-map@0.3.6': resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} - '@jridgewell/sourcemap-codec@1.4.15': - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@mdn/browser-compat-data@5.5.34': - resolution: {integrity: sha512-e8k7+8r3jiJuP7FMH6AL1OnmfQqLyABhTM+NmRDvFeAbMgtFcNQLHpmT7uza5cBnxI01+CAU3aSsIgcKGRdEBQ==} + '@mdn/browser-compat-data@5.5.39': + resolution: {integrity: sha512-22awGsC5t7sGOT2u5EU1RA64L+F87GWYXHZkh0ofjJsLGObqNDDVSTlumd/+6YK3QwlOIEVWAsqmJymrrSqBlA==} '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -421,24 +466,9 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@peggyjs/eslint-config@3.2.4': - resolution: {integrity: sha512-Mj6F0U2Sf8Pc3c9HA3N+4GswSWf4yaeiRQV7AmdUZNLUzieDllMLf9QWzV/vSkjo/FiDa9Yu2DOTmiEdpxJ5nA==} + '@peggyjs/eslint-config@4.0.1': + resolution: {integrity: sha512-IJr4Kpn1nDVvFTQREyHGWbyGq1MvhQSFUDkV/WQKaUXDkdP3kC2ph8QBTQcBL3N+XK94XEPI3YKz21eayRS+VA==} engines: {node: '>=18'} - peerDependencies: - '@typescript-eslint/eslint-plugin': ~7 - '@typescript-eslint/parser': ~7 - eslint: ~8 - eslint-plugin-mocha: ~10 - typescript: ~5 - peerDependenciesMeta: - '@typescript-eslint/eslint-plugin': - optional: true - '@typescript-eslint/parser': - optional: true - eslint-plugin-mocha: - optional: true - typescript: - optional: true '@peggyjs/from-mem@1.3.0': resolution: {integrity: sha512-kzGoIRJjkg3KuGI4bopz9UvF3KguzfxalHRDEIdqEZUe45xezsQ6cx30e0RKuxPUexojQRBfu89Okn7f4/QXsw==} @@ -448,6 +478,11 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} + '@playwright/test@1.45.2': + resolution: {integrity: sha512-JxG9eq92ET75EbVi3s+4sYbcG7q72ECeZNbdBlaMkGcNbiDQ4cAi8U2QP5oKkOx+1gpaiL1LDStmzCaEM1Z6fQ==} + engines: {node: '>=18'} + hasBin: true + '@rollup/plugin-commonjs@26.0.1': resolution: {integrity: sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==} engines: {node: '>=16.0.0 || 14 >= 14.17'} @@ -598,38 +633,46 @@ packages: '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + '@sindresorhus/slugify@1.1.2': + resolution: {integrity: sha512-V9nR/W0Xd9TSGXpZ4iFUcFGhuOJtZX82Fzxj1YISlbSgKvIiNa7eLEZrT0vAraPOt++KHauIVNYgGRgjc13dXA==} + engines: {node: '>=10'} + + '@sindresorhus/transliterate@0.1.2': + resolution: {integrity: sha512-5/kmIOY9FF32nicXH+5yLNTX4NJ4atl7jRgqAJuIn/iyDFXBktOKDxCvyGE/EzmF4ngSUvjXxQUQlQiZ5lfw+w==} + engines: {node: '>=10'} + '@sinonjs/commons@3.0.1': resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} '@sinonjs/fake-timers@10.3.0': resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==} - '@stylistic/eslint-plugin-js@1.6.2': - resolution: {integrity: sha512-ndT6X2KgWGxv8101pdMOxL8pihlYIHcOv3ICd70cgaJ9exwkPn8hJj4YQwslxoAlre1TFHnXd/G1/hYXgDrjIA==} - engines: {node: ^16.0.0 || >=18.0.0} + '@stylistic/eslint-plugin-js@2.3.0': + resolution: {integrity: sha512-lQwoiYb0Fs6Yc5QS3uT8+T9CPKK2Eoxc3H8EnYJgM26v/DgtW+1lvy2WNgyBflU+ThShZaHm3a6CdD9QeKx23w==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.40.0' - '@stylistic/eslint-plugin-jsx@1.6.2': - resolution: {integrity: sha512-hbbouazSJbHD/fshBIOLh9JgtSphKNoTCfHLSNBjAkXLK+GR4i2jhEZZF9P0mtXrNuy2WWInmpq/g0pfWBmSBA==} - engines: {node: ^16.0.0 || >=18.0.0} + '@stylistic/eslint-plugin-jsx@2.3.0': + resolution: {integrity: sha512-tsQ0IEKB195H6X9A4iUSgLLLKBc8gUBWkBIU8tp1/3g2l8stu+PtMQVV/VmK1+3bem5FJCyvfcZIQ/WF1fsizA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.40.0' - '@stylistic/eslint-plugin-plus@1.6.2': - resolution: {integrity: sha512-EDMwa6gzKw4bXRqdIAUvZDfIgwotbjJs8o+vYE22chAYtVAnA0Pcq+cPx0Uk35t2gvJWb5OaLDjqA6oy1tD0jg==} + '@stylistic/eslint-plugin-plus@2.3.0': + resolution: {integrity: sha512-xboPWGUU5yaPlR+WR57GwXEuY4PSlPqA0C3IdNA/+1o2MuBi95XgDJcZiJ9N+aXsqBXAPIpFFb+WQ7QEHo4f7g==} peerDependencies: eslint: '*' - '@stylistic/eslint-plugin-ts@1.6.2': - resolution: {integrity: sha512-FizV58em0OjO/xFHRIy/LJJVqzxCNmYC/xVtKDf8aGDRgZpLo+lkaBKfBrbMkAGzhBKbYj+iLEFI4WEl6aVZGQ==} - engines: {node: ^16.0.0 || >=18.0.0} + '@stylistic/eslint-plugin-ts@2.3.0': + resolution: {integrity: sha512-wqOR38/uz/0XPnHX68ftp8sNMSAqnYGjovOTN7w00xnjS6Lxr3Sk7q6AaxWWqbMvOj7V2fQiMC5HWAbTruJsCg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.40.0' - '@stylistic/eslint-plugin@1.6.2': - resolution: {integrity: sha512-EFnVcKOE5HTiMlVwisL9hHjz8a69yBbJRscWF/z+/vl6M4ew8NVrBlY8ea7KdV8QtyCY4Yapmsbg5ZDfhWlEgg==} - engines: {node: ^16.0.0 || >=18.0.0} + '@stylistic/eslint-plugin@2.3.0': + resolution: {integrity: sha512-rtiz6u5gRyyEZp36FcF1/gHJbsbT3qAgXZ1qkad6Nr/xJ9wrSJkiSFFQhpYVTIZ7FJNRJurEcumZDCwN9dEI4g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.40.0' @@ -672,15 +715,15 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/minimatch@3.0.5': + resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==} + '@types/node@20.14.10': resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==} '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@types/semver@7.5.8': - resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} - '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} @@ -690,93 +733,65 @@ packages: '@types/yargs@17.0.32': resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} - '@typescript-eslint/eslint-plugin@7.16.0': - resolution: {integrity: sha512-py1miT6iQpJcs1BiJjm54AMzeuMPBSPuKPlnT8HlfudbcS5rYeX5jajpLf3mrdRh9dA/Ec2FVUY0ifeVNDIhZw==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/eslint-plugin@8.0.0-alpha.44': + resolution: {integrity: sha512-3hqJa/Ak3ahypkcNoNmkkmUg54zV3AWSaalSWAKTQKF5UtXMvRjM5w3nKqS2AQP0dQAkM1u9cXCnOuLeUZr7rw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - '@typescript-eslint/parser': ^7.0.0 - eslint: ^8.56.0 + '@typescript-eslint/parser': 8.0.0-alpha.44 + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/parser@7.16.0': - resolution: {integrity: sha512-ar9E+k7CU8rWi2e5ErzQiC93KKEFAXA2Kky0scAlPcxYblLt8+XZuHUZwlyfXILyQa95P6lQg+eZgh/dDs3+Vw==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/parser@8.0.0-alpha.44': + resolution: {integrity: sha512-ho5CiKhp3hDCvkFVpLqiHlMUbgvGELmdVfvpIiKQ1TFGyDcEVpSJUZCDO+gyymgZreJyTfUDHH6eKhF3pgkb0Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^8.56.0 + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/scope-manager@6.21.0': - resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==} - engines: {node: ^16.0.0 || >=18.0.0} - - '@typescript-eslint/scope-manager@7.16.0': - resolution: {integrity: sha512-8gVv3kW6n01Q6TrI1cmTZ9YMFi3ucDT7i7aI5lEikk2ebk1AEjrwX8MDTdaX5D7fPXMBLvnsaa0IFTAu+jcfOw==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/scope-manager@8.0.0-alpha.44': + resolution: {integrity: sha512-0w0pDILwfwRXSz9lQBXnJmeGaIbSBgl4vAw/lB2kCnOKYl2SXCVbdNOHPwxWigvQ08QVpuaKy+wEjbFKr9Xwfg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/type-utils@7.16.0': - resolution: {integrity: sha512-j0fuUswUjDHfqV/UdW6mLtOQQseORqfdmoBNDFOqs9rvNVR2e+cmu6zJu/Ku4SDuqiJko6YnhwcL8x45r8Oqxg==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/type-utils@8.0.0-alpha.44': + resolution: {integrity: sha512-52V6rQxNiebKYLxjcRTzIuTMw/wgrCcLncV27u2O142WyD07gLbICGcxtrxurDIQLMwQ/BuStV2x0cypKSwwdw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/types@6.21.0': - resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==} - engines: {node: ^16.0.0 || >=18.0.0} - - '@typescript-eslint/types@7.16.0': - resolution: {integrity: sha512-fecuH15Y+TzlUutvUl9Cc2XJxqdLr7+93SQIbcZfd4XRGGKoxyljK27b+kxKamjRkU7FYC6RrbSCg0ALcZn/xw==} - engines: {node: ^18.18.0 || >=20.0.0} - - '@typescript-eslint/typescript-estree@6.21.0': - resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true + '@typescript-eslint/types@8.0.0-alpha.44': + resolution: {integrity: sha512-FNBBUTJBNbIaTJhhBbSNxKv+qS8lrwwnpBg36APp5fhDRu8K/YFQZP/VEa19nKBz+8+QUK7R6wV9DHYjj56S7w==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@7.16.0': - resolution: {integrity: sha512-a5NTvk51ZndFuOLCh5OaJBELYc2O3Zqxfl3Js78VFE1zE46J2AaVuW+rEbVkQznjkmlzWsUI15BG5tQMixzZLw==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/typescript-estree@8.0.0-alpha.44': + resolution: {integrity: sha512-IyLELYPMFaleWpEVrcYhSfgFXFx4/505P4/vi9Dfp6s6T2xapyAdti6WL9iZbnXk72SL5M0wMp3V73nHn8ce1A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/utils@6.21.0': - resolution: {integrity: sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - - '@typescript-eslint/utils@7.16.0': - resolution: {integrity: sha512-PqP4kP3hb4r7Jav+NiRCntlVzhxBNWq6ZQ+zQwII1y/G/1gdIPeYDCKr2+dH6049yJQsWZiHU6RlwvIFBXXGNA==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/utils@8.0.0-alpha.44': + resolution: {integrity: sha512-gOSA4Yo1jufcOuV68yX3hzpwzufd/Ru6KYL04od1T1c5tt6cvN3i5D5Tc3BBJ3xYFE7ge821mJbUJMTc+BMaWg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^8.56.0 - - '@typescript-eslint/visitor-keys@6.21.0': - resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==} - engines: {node: ^16.0.0 || >=18.0.0} + eslint: ^8.57.0 || ^9.0.0 - '@typescript-eslint/visitor-keys@7.16.0': - resolution: {integrity: sha512-rMo01uPy9C7XxG7AFsxa8zLnWXTF8N3PYclekWSrurvhwiw1eW88mrKiAYe6s53AUY57nTRz8dJsuuXdkAhzCg==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/visitor-keys@8.0.0-alpha.44': + resolution: {integrity: sha512-geWzLM8S6vYGdhA01mWJyGh2V/7VRzAmsD6ZKuc/rLkeJhYjvkMY0g0uMDw/7wmNLeRrpjHnL8HJklrpAlrb9g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@ungap/structured-clone@1.2.0': - resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + a-sync-waterfall@1.0.1: + resolution: {integrity: sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==} accepts@1.3.8: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} @@ -787,8 +802,13 @@ packages: peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - acorn@8.12.0: - resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==} + acorn@7.4.1: + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} + engines: {node: '>=0.4.0'} + hasBin: true + + acorn@8.12.1: + resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} engines: {node: '>=0.4.0'} hasBin: true @@ -823,6 +843,9 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} + any-promise@0.1.0: + resolution: {integrity: sha512-lqzY9o+BbeGHRCOyxQkt/Tgvz0IZhTmQiA+LxQW8wSNpcTbj8K+0cZiSEvbpNZZP9/11Gy7dnLO3GNWUXO4d1g==} + anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -833,19 +856,52 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + array-differ@1.0.0: + resolution: {integrity: sha512-LeZY+DZDRnvP7eMuQ6LHfCzUGxAAIViUBliK24P3hWXL6y4SortgR6Nim6xrkfSLlmH0+k+9NYNwVC2s53ZrYQ==} + engines: {node: '>=0.10.0'} + + array-differ@3.0.0: + resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==} + engines: {node: '>=8'} + array-flatten@1.1.1: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} + array-union@1.0.2: + resolution: {integrity: sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==} + engines: {node: '>=0.10.0'} + array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} + array-uniq@1.0.3: + resolution: {integrity: sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==} + engines: {node: '>=0.10.0'} + + arrify@1.0.1: + resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} + engines: {node: '>=0.10.0'} + + arrify@2.0.1: + resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==} + engines: {node: '>=8'} + + asap@2.0.6: + resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} + + assert-never@1.3.0: + resolution: {integrity: sha512-9Z3vxQ+berkL/JJo0dK+EY3Lp0s3NtSnP3VCLsh5HDcZPrh0M+KQRK5sWhUeyPPH+/RCxZqOxLMR+YC6vlviEQ==} + assertion-error@1.1.0: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} ast-metadata-inferer@0.8.0: resolution: {integrity: sha512-jOMKcHht9LxYIEQu+RVd22vtgrPaVCtDRQ/16IGmurdzxvYbDd5ynxjnyrzLnieG96eTcAyaoj/wN/4/1FyyeA==} + async@3.2.5: + resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} + babel-jest@29.7.0: resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -871,9 +927,26 @@ packages: peerDependencies: '@babel/core': ^7.0.0 + babel-walk@3.0.0-canary-5: + resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==} + engines: {node: '>= 10.0.0'} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + bcp-47-match@1.0.3: + resolution: {integrity: sha512-LggQ4YTdjWQSKELZF5JwchnBa1u0pIQSZf5lSdOHEdbVP55h0qICA/FUp3+W99q0xqxYa1ZQizTUH87gecII5w==} + + bcp-47-normalize@1.1.1: + resolution: {integrity: sha512-jWZ1Jdu3cs0EZdfCkS0UE9Gg01PtxnChjEBySeB+Zo6nkqtFfnvtoQQgP1qU1Oo4qgJgxhTI6Sf9y/pZIhPs0A==} + + bcp-47@1.0.8: + resolution: {integrity: sha512-Y9y1QNBBtYtv7hcmoX0tR+tUNSFZGZ6OL6vKPObq8BbOhkCoyayF6ogfLTgAli/KuAEbsYHYUNq2AQuY6IuLag==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + body-parser@1.20.2: resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -888,8 +961,8 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - browserslist@4.23.1: - resolution: {integrity: sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==} + browserslist@4.23.2: + resolution: {integrity: sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true @@ -927,8 +1000,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - caniuse-lite@1.0.30001636: - resolution: {integrity: sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==} + caniuse-lite@1.0.30001642: + resolution: {integrity: sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA==} chai-like@1.1.1: resolution: {integrity: sha512-VKa9z/SnhXhkT1zIjtPACFWSoWsqVoaz1Vg+ecrKo5DCKVlgL30F/pEyEvXPBOVwCgLZcWUleCM/C1okaKdTTA==} @@ -951,9 +1024,16 @@ packages: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} engines: {node: '>=10'} + character-parser@2.2.0: + resolution: {integrity: sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==} + check-error@1.0.3: resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + ci-info@3.9.0: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} @@ -988,6 +1068,10 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + commander@10.0.1: + resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} + engines: {node: '>=14'} + commander@12.1.0: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} @@ -995,12 +1079,19 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + commander@5.1.0: + resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} + engines: {node: '>= 6'} + commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + constantinople@4.0.1: + resolution: {integrity: sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==} + content-disposition@0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} @@ -1079,6 +1170,10 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} + dependency-graph@0.11.0: + resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} + engines: {node: '>= 0.6.0'} + destroy@1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -1087,6 +1182,11 @@ packages: resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} engines: {node: '>=8'} + dev-ip@1.0.1: + resolution: {integrity: sha512-LmVkry/oDShEgSZPNgqCIp2/TlqtExeGmymru3uCELnfyjY11IzpAproLYs+1X88fXO6DBoYP3ul2Xo2yz2j6A==} + engines: {node: '>= 0.8.0'} + hasBin: true + diff-sequences@29.6.3: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -1095,9 +1195,21 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} - doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} + doctypes@1.1.0: + resolution: {integrity: sha512-LLBi6pEqS6Do3EKQ3J0NqHWV5hhb78Pi8vvESYwyOy2c31ZEZVdtitdzsQsKb7878PEERhzUk0ftqGhG6Mz+pQ==} + + dom-serializer@1.4.1: + resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==} + + domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + + domhandler@4.3.1: + resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==} + engines: {node: '>= 4'} + + domutils@2.8.0: + resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==} eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -1105,8 +1217,13 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - electron-to-chromium@1.4.806: - resolution: {integrity: sha512-nkoEX2QIB8kwCOtvtgwhXWy2IHVcOLQZu9Qo36uaGB835mdX/h8uLRlosL6QIhLVUnAiicXRW00PwaPZC74Nrg==} + ejs@3.1.10: + resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} + engines: {node: '>=0.10.0'} + hasBin: true + + electron-to-chromium@1.4.828: + resolution: {integrity: sha512-QOIJiWpQJDHAVO4P58pwb133Cwee0nbvy/MV1CwzZVGpkH1RX33N3vsaWRCpR6bF63AAq366neZrRTu7Qlsbbw==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -1122,6 +1239,17 @@ packages: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} + entities@2.2.0: + resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} + + entities@3.0.1: + resolution: {integrity: sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==} + engines: {node: '>=0.12'} + + errno@0.1.8: + resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==} + hasBin: true + error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -1152,11 +1280,11 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-plugin-compat@5.0.0: - resolution: {integrity: sha512-29KNWyFkUbNVf6TIKVe9SVCGCtHjML3HnUg9C8LG2GsXf7miAeBOgdMc1n2B5n0sHUzg1/A4IFly7Jyf1gSbgQ==} - engines: {node: '>=14.x'} + eslint-plugin-compat@6.0.0: + resolution: {integrity: sha512-oIynkQYqGnW9ibHl1cGLER8XkUlKaOI8bS80Qz7CjKROvbQm4oN8fWb5l2cG9GJJ4h5eFIHPqkB9ZJuMzwpPFQ==} + engines: {node: '>=18.x'} peerDependencies: - eslint: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 eslint-plugin-mocha@10.4.3: resolution: {integrity: sha512-emc4TVjq5Ht0/upR+psftuz6IBG5q279p+1dSRDeHf+NS9aaerBi3lXKo1SEzwC29hFIW21gO89CEWSvRsi8IQ==} @@ -1164,9 +1292,9 @@ packages: peerDependencies: eslint: '>=7.0.0' - eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-scope@8.0.2: + resolution: {integrity: sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} eslint-utils@3.0.0: resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} @@ -1182,22 +1310,26 @@ packages: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-visitor-keys@4.0.0: + resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@9.7.0: + resolution: {integrity: sha512-FzJ9D/0nGiCGBf8UXO/IGLTgLVzIxze1zpfA8Ton2mjLovXdAPlYDv+MQDcqj3TmrhAGYfOpz9RfR+ent0AgAw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true - espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + espree@10.1.0: + resolution: {integrity: sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} esprima@4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} hasBin: true - esquery@1.5.0: - resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} + esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} esrecurse@4.3.0: @@ -1235,6 +1367,10 @@ packages: resolution: {integrity: sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==} engines: {node: '>= 0.10.0'} + extend-shallow@2.0.1: + resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} + engines: {node: '>=0.10.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1254,9 +1390,12 @@ packages: fb-watchman@2.0.2: resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} - file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} - engines: {node: ^10.12.0 || >=12.0.0} + file-entry-cache@8.0.0: + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} + + filelist@1.0.4: + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} @@ -1274,9 +1413,9 @@ packages: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} - engines: {node: ^10.12.0 || >=12.0.0} + flat-cache@4.0.1: + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} flatted@3.3.1: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} @@ -1296,6 +1435,11 @@ packages: fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + fsevents@2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -1335,9 +1479,8 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@10.4.3: - resolution: {integrity: sha512-Q38SGlYRpVtDBPSWEylRyctn7uDeTp4NQERTLiCT1FqA9JXPYWqAVmQU6qh4r/zMM5ehxTcbaO8EjhWnvEhmyg==} - engines: {node: '>=18'} + glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true glob@11.0.0: @@ -1361,6 +1504,10 @@ packages: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} + globals@15.8.0: + resolution: {integrity: sha512-VZAJ4cewHTExBWDHR6yptdIBlx9YSSZuwojj9Nt5mBRXQzrKakDsVKQ1J63sklLvzAJm0X5+RpO4i3Y2hcOnFw==} + engines: {node: '>=18'} + globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} @@ -1374,6 +1521,18 @@ packages: graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + gray-matter@4.0.3: + resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==} + engines: {node: '>=6.0'} + + hamljs@0.6.2: + resolution: {integrity: sha512-/chXRp4WpL47I+HX1vCCdSbEXAljEG2FBMmgO7Am0bYsqgnEjreeWzUdX1onXqwZtcfgxbCg5WtEYYvuZ5muBg==} + + handlebars@4.7.8: + resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} + engines: {node: '>=0.4.7'} + hasBin: true + has-flag@3.0.0: resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} engines: {node: '>=4'} @@ -1393,6 +1552,10 @@ packages: resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} engines: {node: '>= 0.4'} + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + hasown@2.0.2: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} @@ -1400,6 +1563,13 @@ packages: html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + htmlparser2@7.2.0: + resolution: {integrity: sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==} + + http-equiv-refresh@1.0.0: + resolution: {integrity: sha512-TScO04soylRN9i/QdOdgZyhydXg9z6XdaGzEyOgDKycePeDeTT4KvigjBcI+tgfTlieLWauGORMq5F1eIDa+1w==} + engines: {node: '>= 0.10'} + http-errors@2.0.0: resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} engines: {node: '>= 0.8'} @@ -1440,15 +1610,36 @@ packages: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} + is-alphabetical@1.0.4: + resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==} + + is-alphanumerical@1.0.4: + resolution: {integrity: sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==} + is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + is-builtin-module@3.2.1: resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} engines: {node: '>=6'} - is-core-module@2.13.1: - resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} + is-core-module@2.14.0: + resolution: {integrity: sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==} + engines: {node: '>= 0.4'} + + is-decimal@1.0.4: + resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==} + + is-expression@4.0.0: + resolution: {integrity: sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==} + + is-extendable@0.1.1: + resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} + engines: {node: '>=0.10.0'} is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} @@ -1466,6 +1657,9 @@ packages: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-json@2.0.1: + resolution: {integrity: sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==} + is-module@1.0.0: resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} @@ -1477,9 +1671,16 @@ packages: resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} + is-promise@2.2.2: + resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} + is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} + is-regex@1.1.4: + resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + engines: {node: '>= 0.4'} + is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} @@ -1493,6 +1694,10 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + iso-639-1@2.1.15: + resolution: {integrity: sha512-7c7mBznZu2ktfvyT582E2msM+Udc1EjOyhVRE/0ZsjD9LBtWSm23h3PtiRh2a35XoUsTQQjJXaJzuLjXsOdFDg==} + engines: {node: '>=6.0'} + istanbul-lib-coverage@3.2.2: resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} engines: {node: '>=8'} @@ -1501,8 +1706,8 @@ packages: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} - istanbul-lib-instrument@6.0.2: - resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} + istanbul-lib-instrument@6.0.3: + resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} engines: {node: '>=10'} istanbul-lib-report@3.0.1: @@ -1517,14 +1722,18 @@ packages: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} - jackspeak@3.4.0: - resolution: {integrity: sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==} - engines: {node: '>=14'} + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} jackspeak@4.0.1: resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} engines: {node: 20 || >=22} + jake@10.9.1: + resolution: {integrity: sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w==} + engines: {node: '>=10'} + hasBin: true + jest-changed-files@29.7.0: resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -1654,6 +1863,9 @@ packages: node-notifier: optional: true + js-stringify@1.0.2: + resolution: {integrity: sha512-rtS5ATOo2Q5k1G+DADISilDA6lv79zIiwFd6CcjuIxGKLFm5C+RLImRscVap9k55i+MOZwgliw+NejvkLuGD5g==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -1687,13 +1899,28 @@ packages: engines: {node: '>=6'} hasBin: true + jstransformer@1.0.0: + resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==} + + junk@1.0.3: + resolution: {integrity: sha512-3KF80UaaSSxo8jVnRYtMKNGFOoVPBdkkVPsw+Ad0y4oxKXPduS6G6iHkrf69yJVff/VAaYXkV42rtZ7daJxU3w==} + engines: {node: '>=0.10.0'} + keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + kind-of@6.0.3: + resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} + engines: {node: '>=0.10.0'} + kleur@3.0.3: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + leven@3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} @@ -1705,6 +1932,17 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + linkify-it@4.0.1: + resolution: {integrity: sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==} + + liquidjs@10.15.0: + resolution: {integrity: sha512-u5lYWhW8ioT+O3FdCcp5U+hiPEGNO4xASCFlCHA+k5rMTJwDIa2c2KF111ZDKc2xGM7LXPvMoNRIrBfbLNpRBg==} + engines: {node: '>=14'} + hasBin: true + + list-to-array@1.1.0: + resolution: {integrity: sha512-+dAZZ2mM+/m+vY9ezfoueVvrgnHIGi5FvgSymbIgJOFwiznWyA59mav95L+Mc6xPtL3s9gm5eNTlNtxJLbNM1g==} + locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -1713,6 +1951,9 @@ packages: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} + lodash.deburr@4.1.0: + resolution: {integrity: sha512-m/M1U1f3ddMCs6Hq2tAsYThTBDaAKFDX3dwDo97GEYzamXi9SqUpjWi/Rrj/gf3X2n8ktwgZrlP1z6E3v/IExQ==} + lodash.memoize@4.1.2: resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} @@ -1725,9 +1966,8 @@ packages: loupe@2.3.7: resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} - lru-cache@10.2.2: - resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==} - engines: {node: 14 || >=16.14} + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} lru-cache@11.0.0: resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==} @@ -1740,6 +1980,10 @@ packages: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} + luxon@3.4.4: + resolution: {integrity: sha512-zobTr7akeGHnv7eBOXcRgMeCP6+uyYsczwmeRCauvpvaAltgNyTbLH/+VaEAPUeWBT+1GuNmz4wC/6jtQzbbVA==} + engines: {node: '>=12'} + magic-string@0.30.10: resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==} @@ -1753,10 +1997,21 @@ packages: makeerror@1.0.12: resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} + markdown-it@13.0.2: + resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==} + hasBin: true + matched@5.0.1: resolution: {integrity: sha512-E1fhSTPRyhAlNaNvGXAgZQlq1hL0bgYMTk/6bktVlIhzUnX/SZs7296ACdVeNJE8xFNGSuvd9IpI7vSnmcqLvw==} engines: {node: '>=10'} + maximatch@0.1.0: + resolution: {integrity: sha512-9ORVtDUFk4u/NFfo0vG/ND/z7UQCVZBL539YW0+U1I7H1BkZwizcPx5foFv7LCPcBnm2U6RjFnQOsIvN4/Vm2A==} + engines: {node: '>=0.10.0'} + + mdurl@1.0.1: + resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} + media-typer@0.3.0: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} @@ -1792,6 +2047,11 @@ packages: engines: {node: '>=4'} hasBin: true + mime@3.0.0: + resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} + engines: {node: '>=10.0.0'} + hasBin: true + mimic-fn@2.1.0: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} @@ -1803,23 +2063,40 @@ packages: minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - minimatch@9.0.3: - resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} - engines: {node: '>=16 || 14 >=14.17'} + minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} - minimatch@9.0.4: - resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + minipass@3.3.6: + resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} + engines: {node: '>=8'} + minipass@7.1.2: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} + mkdirp@0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + mkdirp@1.0.4: resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} engines: {node: '>=10'} hasBin: true + moo@0.5.2: + resolution: {integrity: sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==} + + morphdom@2.7.3: + resolution: {integrity: sha512-rvGK92GxSuPEZLY8D/JH07cG3BxyA+/F0Bxg32OoGAEFFhGWA3OqVpqPZlOgZTCR52clXrmz+z2pYSJ6gOig1w==} + ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} @@ -1829,6 +2106,14 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + multimatch@5.0.0: + resolution: {integrity: sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==} + engines: {node: '>=10'} + + mustache@4.2.0: + resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -1836,6 +2121,9 @@ packages: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} + neo-async@2.6.2: + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} @@ -1853,8 +2141,23 @@ packages: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} - object-inspect@1.13.1: - resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} + nunjucks@3.2.4: + resolution: {integrity: sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==} + engines: {node: '>= 6.9.0'} + hasBin: true + peerDependencies: + chokidar: ^3.3.0 + peerDependenciesMeta: + chokidar: + optional: true + + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + object-inspect@1.13.2: + resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + engines: {node: '>= 0.4'} on-finished@2.4.1: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} @@ -1902,6 +2205,9 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} + parse-srcset@1.0.2: + resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==} + parseurl@1.3.3: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} @@ -1932,6 +2238,9 @@ packages: path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} + path-to-regexp@6.2.2: + resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -1950,6 +2259,10 @@ packages: resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} engines: {node: '>=12'} + pify@2.3.0: + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} + pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} @@ -1958,6 +2271,35 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} + playwright-core@1.45.2: + resolution: {integrity: sha512-ha175tAWb0dTK0X4orvBIqi3jGEt701SMxMhyujxNrgd8K0Uy5wMSwwcQHtyB4om7INUkfndx02XnQ2p6dvLDw==} + engines: {node: '>=18'} + hasBin: true + + playwright@1.45.2: + resolution: {integrity: sha512-ReywF2t/0teRvNBpfIgh5e4wnrI/8Su8ssdo5XsQKpjxJj+jspm00jSoz9BTg91TT0c9HRjXO7LBNVrgYj9X0g==} + engines: {node: '>=18'} + hasBin: true + + please-upgrade-node@3.2.0: + resolution: {integrity: sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==} + + posthtml-parser@0.11.0: + resolution: {integrity: sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==} + engines: {node: '>=12'} + + posthtml-render@3.0.0: + resolution: {integrity: sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==} + engines: {node: '>=12'} + + posthtml-urls@1.0.0: + resolution: {integrity: sha512-CMJ0L009sGQVUuYM/g6WJdscsq6ooAwhUuF6CDlYPMLxKp2rmCYVebEU+wZGxnQstGJhZPMvXsRhtqekILd5/w==} + engines: {node: '>= 4'} + + posthtml@0.16.6: + resolution: {integrity: sha512-JcEmHlyLK/o0uGAlj65vgg+7LIms0xKXe60lcDOTU7oVX/3LuEuLwrQpW3VJ7de5TaFKiW4kWkaIpJL42FEgxQ==} + engines: {node: '>=12.0.0'} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -1969,6 +2311,12 @@ packages: process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + promise-each@2.2.0: + resolution: {integrity: sha512-67roqt1k3QDA41DZ8xi0V+rF3GoaMiX7QilbXu0vXimut+9RcKBNZ/t60xCRgcsihmNUsEjh48xLfNqOrKblUg==} + + promise@7.3.1: + resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==} + prompts@2.4.2: resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} engines: {node: '>= 6'} @@ -1977,6 +2325,45 @@ packages: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} + prr@1.0.1: + resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} + + pug-attrs@3.0.0: + resolution: {integrity: sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA==} + + pug-code-gen@3.0.3: + resolution: {integrity: sha512-cYQg0JW0w32Ux+XTeZnBEeuWrAY7/HNE6TWnhiHGnnRYlCgyAUPoyh9KzCMa9WhcJlJ1AtQqpEYHc+vbCzA+Aw==} + + pug-error@2.1.0: + resolution: {integrity: sha512-lv7sU9e5Jk8IeUheHata6/UThZ7RK2jnaaNztxfPYUY+VxZyk/ePVaNZ/vwmH8WqGvDz3LrNYt/+gA55NDg6Pg==} + + pug-filters@4.0.0: + resolution: {integrity: sha512-yeNFtq5Yxmfz0f9z2rMXGw/8/4i1cCFecw/Q7+D0V2DdtII5UvqE12VaZ2AY7ri6o5RNXiweGH79OCq+2RQU4A==} + + pug-lexer@5.0.1: + resolution: {integrity: sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==} + + pug-linker@4.0.0: + resolution: {integrity: sha512-gjD1yzp0yxbQqnzBAdlhbgoJL5qIFJw78juN1NpTLt/mfPJ5VgC4BvkoD3G23qKzJtIIXBbcCt6FioLSFLOHdw==} + + pug-load@3.0.0: + resolution: {integrity: sha512-OCjTEnhLWZBvS4zni/WUMjH2YSUosnsmjGBB1An7CsKQarYSWQ0GCVyd4eQPMFJqZ8w9xgs01QdiZXKVjk92EQ==} + + pug-parser@6.0.0: + resolution: {integrity: sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw==} + + pug-runtime@3.0.1: + resolution: {integrity: sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg==} + + pug-strip-comments@2.0.0: + resolution: {integrity: sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ==} + + pug-walk@2.0.0: + resolution: {integrity: sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ==} + + pug@3.0.3: + resolution: {integrity: sha512-uBi6kmc9f3SZ3PXxqcHiUZLmIXgfgWooKWXcwSGwQd2Zi5Rb0bT14+8CJjJgI8AB+nndLaNgHGrcc6bPIB665g==} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -2011,6 +2398,13 @@ packages: readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + recursive-copy@2.0.14: + resolution: {integrity: sha512-K8WNY8f8naTpfbA+RaXmkaQuD1IeW9EgNEfyGxSqqTQukpVtoOKros9jUqbpEsSw59YOmpd8nCBgtqJZy5nvog==} + require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -2039,13 +2433,13 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + rimraf@2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rimraf@6.0.0: - resolution: {integrity: sha512-u+yqhM92LW+89cxUQK0SRyvXYQmyuKHx0jkx4W7KfwLGLqJnQM5031Uv1trE4gB9XEXBM/s6MxKlfW95IidqaA==} + rimraf@6.0.1: + resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} engines: {node: 20 || >=22} hasBin: true @@ -2069,6 +2463,13 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + section-matter@1.0.0: + resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==} + engines: {node: '>=4'} + + semver-compare@1.0.0: + resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==} + semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true @@ -2120,10 +2521,18 @@ packages: sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + slash@1.0.0: + resolution: {integrity: sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==} + engines: {node: '>=0.10.0'} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} + slugify@1.6.6: + resolution: {integrity: sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==} + engines: {node: '>=8.0.0'} + source-map-generator@0.8.0: resolution: {integrity: sha512-psgxdGMwl5MZM9S3FWee4EgsEaIjahYV5AzGnwUvPhWeITz/j6rKpysQHlQ4USdxvINlb8lKfWGIXwfkrgtqkA==} engines: {node: '>= 10'} @@ -2145,6 +2554,10 @@ packages: sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + ssri@8.0.1: + resolution: {integrity: sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==} + engines: {node: '>= 8'} + stack-utils@2.0.6: resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} engines: {node: '>=10'} @@ -2179,6 +2592,10 @@ packages: resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} engines: {node: '>=12'} + strip-bom-string@1.0.0: + resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==} + engines: {node: '>=0.10.0'} + strip-bom@4.0.0: resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} engines: {node: '>=8'} @@ -2207,8 +2624,8 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - terser@5.31.1: - resolution: {integrity: sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg==} + terser@5.31.3: + resolution: {integrity: sha512-pAfYn3NIZLyZpa83ZKigvj6Rn9c/vd5KfYGX7cN1mnzqgDcxWvrU5ZtAfIKhEXz9nRecw4z3LXkjaq96/qZqAA==} engines: {node: '>=10'} hasBin: true @@ -2237,6 +2654,9 @@ packages: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} + token-stream@1.0.0: + resolution: {integrity: sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==} + tr46@1.0.1: resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} @@ -2246,8 +2666,8 @@ packages: peerDependencies: typescript: '>=4.2.0' - ts-jest@29.2.0: - resolution: {integrity: sha512-eFmkE9MG0+oT6nqSOcUwL+2UUmK2IvhhUV8hFDsCHnc++v2WCCbQQZh5vvjsa8sgOY/g9T0325hmkEmi6rninA==} + ts-jest@29.2.2: + resolution: {integrity: sha512-sSW7OooaKT34AAngP6k1VS669a0HdLxkQZnlC7T76sckGCokXFnvJ3yRlQZGRTAoV5K19HfSgCiSwWOSIfcYlg==} engines: {node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -2293,11 +2713,28 @@ packages: resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} engines: {node: '>= 0.6'} + typescript-eslint@8.0.0-alpha.44: + resolution: {integrity: sha512-4oRisGPvIJFnLqpfrpdcFjkFZg4/mhbE+0faGiomEFv9r5ziXETxuGY6VmwACPXHEakp2nDEqnp3ZdU0bsuiHQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + typescript@5.5.3: resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} engines: {node: '>=14.17'} hasBin: true + uc.micro@1.0.6: + resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} + + uglify-js@3.18.0: + resolution: {integrity: sha512-SyVVbcNBCk0dzr9XL/R/ySrmYf0s372K6/hFklzgcp2lBFyXtw4I7BOdDjlLhE1aVqaI/SHWXWmYdlZxuyF38A==} + engines: {node: '>=0.8.0'} + hasBin: true + undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} @@ -2309,8 +2746,8 @@ packages: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} engines: {node: '>=8'} - update-browserslist-db@1.0.16: - resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==} + update-browserslist-db@1.1.0: + resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -2325,14 +2762,18 @@ packages: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} - v8-to-istanbul@9.2.0: - resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} + v8-to-istanbul@9.3.0: + resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} engines: {node: '>=10.12.0'} vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + void-elements@3.1.0: + resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} + engines: {node: '>=0.10.0'} + walker@1.0.8: resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} @@ -2347,10 +2788,17 @@ packages: engines: {node: '>= 8'} hasBin: true + with@7.0.2: + resolution: {integrity: sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w==} + engines: {node: '>= 10.0.0'} + word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} + wordwrap@1.0.0: + resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} + wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -2366,6 +2814,18 @@ packages: resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} @@ -2402,7 +2862,78 @@ packages: snapshots: - '@ampproject/remapping@2.3.0': + '@11ty/dependency-tree@2.0.1': {} + + '@11ty/eleventy-dev-server@1.0.4': + dependencies: + '@11ty/eleventy-utils': 1.0.3 + chokidar: 3.6.0 + debug: 4.3.5 + dev-ip: 1.0.1 + finalhandler: 1.2.0 + mime: 3.0.0 + minimist: 1.2.8 + morphdom: 2.7.3 + please-upgrade-node: 3.2.0 + ssri: 8.0.1 + ws: 8.18.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + + '@11ty/eleventy-utils@1.0.3': + dependencies: + normalize-path: 3.0.0 + + '@11ty/eleventy@2.0.1': + dependencies: + '@11ty/dependency-tree': 2.0.1 + '@11ty/eleventy-dev-server': 1.0.4 + '@11ty/eleventy-utils': 1.0.3 + '@11ty/lodash-custom': 4.17.21 + '@iarna/toml': 2.2.5 + '@sindresorhus/slugify': 1.1.2 + bcp-47-normalize: 1.1.1 + chokidar: 3.6.0 + cross-spawn: 7.0.3 + debug: 4.3.5 + dependency-graph: 0.11.0 + ejs: 3.1.10 + fast-glob: 3.3.2 + graceful-fs: 4.2.11 + gray-matter: 4.0.3 + hamljs: 0.6.2 + handlebars: 4.7.8 + is-glob: 4.0.3 + iso-639-1: 2.1.15 + kleur: 4.1.5 + liquidjs: 10.15.0 + luxon: 3.4.4 + markdown-it: 13.0.2 + micromatch: 4.0.7 + minimist: 1.2.8 + moo: 0.5.2 + multimatch: 5.0.0 + mustache: 4.2.0 + normalize-path: 3.0.0 + nunjucks: 3.2.4(chokidar@3.6.0) + path-to-regexp: 6.2.2 + please-upgrade-node: 3.2.0 + posthtml: 0.16.6 + posthtml-urls: 1.0.0 + pug: 3.0.3 + recursive-copy: 2.0.14 + semver: 7.6.2 + slugify: 1.6.6 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + + '@11ty/lodash-custom@4.17.21': {} + + '@ampproject/remapping@2.3.0': dependencies: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 @@ -2412,20 +2943,20 @@ snapshots: '@babel/highlight': 7.24.7 picocolors: 1.0.1 - '@babel/compat-data@7.24.7': {} + '@babel/compat-data@7.24.9': {} - '@babel/core@7.24.7': + '@babel/core@7.24.9': dependencies: '@ampproject/remapping': 2.3.0 '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-compilation-targets': 7.24.7 - '@babel/helper-module-transforms': 7.24.7(@babel/core@7.24.7) - '@babel/helpers': 7.24.7 - '@babel/parser': 7.24.7 + '@babel/generator': 7.24.10 + '@babel/helper-compilation-targets': 7.24.8 + '@babel/helper-module-transforms': 7.24.9(@babel/core@7.24.9) + '@babel/helpers': 7.24.8 + '@babel/parser': 7.24.8 '@babel/template': 7.24.7 - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/traverse': 7.24.8 + '@babel/types': 7.24.9 convert-source-map: 2.0.0 debug: 4.3.5 gensync: 1.0.0-beta.2 @@ -2434,44 +2965,44 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/generator@7.24.7': + '@babel/generator@7.24.10': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 - '@babel/helper-compilation-targets@7.24.7': + '@babel/helper-compilation-targets@7.24.8': dependencies: - '@babel/compat-data': 7.24.7 - '@babel/helper-validator-option': 7.24.7 - browserslist: 4.23.1 + '@babel/compat-data': 7.24.9 + '@babel/helper-validator-option': 7.24.8 + browserslist: 4.23.2 lru-cache: 5.1.1 semver: 6.3.1 '@babel/helper-environment-visitor@7.24.7': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@babel/helper-function-name@7.24.7': dependencies: '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@babel/helper-hoist-variables@7.24.7': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@babel/helper-module-imports@7.24.7': dependencies: - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/traverse': 7.24.8 + '@babel/types': 7.24.9 transitivePeerDependencies: - supports-color - '@babel/helper-module-transforms@7.24.7(@babel/core@7.24.7)': + '@babel/helper-module-transforms@7.24.9(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.24.9 '@babel/helper-environment-visitor': 7.24.7 '@babel/helper-module-imports': 7.24.7 '@babel/helper-simple-access': 7.24.7 @@ -2480,29 +3011,29 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/helper-plugin-utils@7.24.7': {} + '@babel/helper-plugin-utils@7.24.8': {} '@babel/helper-simple-access@7.24.7': dependencies: - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/traverse': 7.24.8 + '@babel/types': 7.24.9 transitivePeerDependencies: - supports-color '@babel/helper-split-export-declaration@7.24.7': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 - '@babel/helper-string-parser@7.24.7': {} + '@babel/helper-string-parser@7.24.8': {} '@babel/helper-validator-identifier@7.24.7': {} - '@babel/helper-validator-option@7.24.7': {} + '@babel/helper-validator-option@7.24.8': {} - '@babel/helpers@7.24.7': + '@babel/helpers@7.24.8': dependencies: '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@babel/highlight@7.24.7': dependencies: @@ -2511,122 +3042,130 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.0.1 - '@babel/parser@7.24.7': + '@babel/parser@7.24.8': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.7)': + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.24.7)': + '@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.7)': + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-typescript@7.24.7(@babel/core@7.24.7)': + '@babel/plugin-syntax-typescript@7.24.7(@babel/core@7.24.9)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.24.9 + '@babel/helper-plugin-utils': 7.24.8 '@babel/template@7.24.7': dependencies: '@babel/code-frame': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.24.8 + '@babel/types': 7.24.9 - '@babel/traverse@7.24.7': + '@babel/traverse@7.24.8': dependencies: '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 + '@babel/generator': 7.24.10 '@babel/helper-environment-visitor': 7.24.7 '@babel/helper-function-name': 7.24.7 '@babel/helper-hoist-variables': 7.24.7 '@babel/helper-split-export-declaration': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.24.8 + '@babel/types': 7.24.9 debug: 4.3.5 globals: 11.12.0 transitivePeerDependencies: - supports-color - '@babel/types@7.24.7': + '@babel/types@7.24.9': dependencies: - '@babel/helper-string-parser': 7.24.7 + '@babel/helper-string-parser': 7.24.8 '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 '@bcoe/v8-coverage@0.2.3': {} - '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': + '@eslint-community/eslint-utils@4.4.0(eslint@9.7.0)': dependencies: - eslint: 8.57.0 + eslint: 9.7.0 eslint-visitor-keys: 3.4.3 - '@eslint-community/regexpp@4.10.1': {} + '@eslint-community/regexpp@4.11.0': {} + + '@eslint/config-array@0.17.0': + dependencies: + '@eslint/object-schema': 2.1.4 + debug: 4.3.5 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color - '@eslint/eslintrc@2.1.4': + '@eslint/eslintrc@3.1.0': dependencies: ajv: 6.12.6 debug: 4.3.5 - espree: 9.6.1 - globals: 13.24.0 + espree: 10.1.0 + globals: 14.0.0 ignore: 5.3.1 import-fresh: 3.3.0 js-yaml: 4.1.0 @@ -2635,19 +3174,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@8.57.0': {} + '@eslint/js@9.7.0': {} - '@humanwhocodes/config-array@0.11.14': - dependencies: - '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.5 - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color + '@eslint/object-schema@2.1.4': {} '@humanwhocodes/module-importer@1.0.1': {} - '@humanwhocodes/object-schema@2.0.3': {} + '@humanwhocodes/retry@0.3.0': {} + + '@iarna/toml@2.2.5': {} '@isaacs/cliui@8.0.2': dependencies: @@ -2763,7 +3298,7 @@ snapshots: glob: 7.2.3 graceful-fs: 4.2.11 istanbul-lib-coverage: 3.2.2 - istanbul-lib-instrument: 6.0.2 + istanbul-lib-instrument: 6.0.3 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.7 @@ -2773,7 +3308,7 @@ snapshots: slash: 3.0.0 string-length: 4.0.2 strip-ansi: 6.0.1 - v8-to-istanbul: 9.2.0 + v8-to-istanbul: 9.3.0 transitivePeerDependencies: - supports-color @@ -2803,7 +3338,7 @@ snapshots: '@jest/transform@29.7.0': dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.24.9 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 babel-plugin-istanbul: 6.1.1 @@ -2833,7 +3368,7 @@ snapshots: '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/resolve-uri@3.1.2': {} @@ -2845,14 +3380,14 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@jridgewell/sourcemap-codec@1.4.15': {} + '@jridgewell/sourcemap-codec@1.5.0': {} '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 - '@mdn/browser-compat-data@5.5.34': {} + '@mdn/browser-compat-data@5.5.39': {} '@nodelib/fs.scandir@2.1.5': dependencies: @@ -2866,18 +3401,14 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@peggyjs/eslint-config@3.2.4(@typescript-eslint/eslint-plugin@7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-mocha@10.4.3(eslint@8.57.0))(eslint@8.57.0)(typescript@5.5.3)': + '@peggyjs/eslint-config@4.0.1(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@stylistic/eslint-plugin': 1.6.2(eslint@8.57.0)(typescript@5.5.3) - eslint: 8.57.0 - globals: 14.0.0 - optionalDependencies: - '@typescript-eslint/eslint-plugin': 7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/parser': 7.16.0(eslint@8.57.0)(typescript@5.5.3) - eslint-plugin-mocha: 10.4.3(eslint@8.57.0) - typescript: 5.5.3 + '@stylistic/eslint-plugin': 2.3.0(eslint@9.7.0)(typescript@5.5.3) + globals: 15.8.0 transitivePeerDependencies: + - eslint - supports-color + - typescript '@peggyjs/from-mem@1.3.0': dependencies: @@ -2886,12 +3417,16 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true + '@playwright/test@1.45.2': + dependencies: + playwright: 1.45.2 + '@rollup/plugin-commonjs@26.0.1(rollup@4.18.1)': dependencies: '@rollup/pluginutils': 5.1.0(rollup@4.18.1) commondir: 1.0.1 estree-walker: 2.0.2 - glob: 10.4.3 + glob: 10.4.5 is-reference: 1.2.1 magic-string: 0.30.10 optionalDependencies: @@ -2992,6 +3527,16 @@ snapshots: '@sinclair/typebox@0.27.8': {} + '@sindresorhus/slugify@1.1.2': + dependencies: + '@sindresorhus/transliterate': 0.1.2 + escape-string-regexp: 4.0.0 + + '@sindresorhus/transliterate@0.1.2': + dependencies: + escape-string-regexp: 2.0.0 + lodash.deburr: 4.1.0 + '@sinonjs/commons@3.0.1': dependencies: type-detect: 4.0.8 @@ -3000,74 +3545,73 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 - '@stylistic/eslint-plugin-js@1.6.2(eslint@8.57.0)': + '@stylistic/eslint-plugin-js@2.3.0(eslint@9.7.0)': dependencies: '@types/eslint': 8.56.10 - acorn: 8.12.0 - escape-string-regexp: 4.0.0 - eslint: 8.57.0 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 + acorn: 8.12.1 + eslint: 9.7.0 + eslint-visitor-keys: 4.0.0 + espree: 10.1.0 - '@stylistic/eslint-plugin-jsx@1.6.2(eslint@8.57.0)': + '@stylistic/eslint-plugin-jsx@2.3.0(eslint@9.7.0)': dependencies: - '@stylistic/eslint-plugin-js': 1.6.2(eslint@8.57.0) + '@stylistic/eslint-plugin-js': 2.3.0(eslint@9.7.0) '@types/eslint': 8.56.10 - eslint: 8.57.0 + eslint: 9.7.0 estraverse: 5.3.0 picomatch: 4.0.2 - '@stylistic/eslint-plugin-plus@1.6.2(eslint@8.57.0)(typescript@5.5.3)': + '@stylistic/eslint-plugin-plus@2.3.0(eslint@9.7.0)(typescript@5.5.3)': dependencies: '@types/eslint': 8.56.10 - '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.5.3) - eslint: 8.57.0 + '@typescript-eslint/utils': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + eslint: 9.7.0 transitivePeerDependencies: - supports-color - typescript - '@stylistic/eslint-plugin-ts@1.6.2(eslint@8.57.0)(typescript@5.5.3)': + '@stylistic/eslint-plugin-ts@2.3.0(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@stylistic/eslint-plugin-js': 1.6.2(eslint@8.57.0) + '@stylistic/eslint-plugin-js': 2.3.0(eslint@9.7.0) '@types/eslint': 8.56.10 - '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.5.3) - eslint: 8.57.0 + '@typescript-eslint/utils': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + eslint: 9.7.0 transitivePeerDependencies: - supports-color - typescript - '@stylistic/eslint-plugin@1.6.2(eslint@8.57.0)(typescript@5.5.3)': + '@stylistic/eslint-plugin@2.3.0(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@stylistic/eslint-plugin-js': 1.6.2(eslint@8.57.0) - '@stylistic/eslint-plugin-jsx': 1.6.2(eslint@8.57.0) - '@stylistic/eslint-plugin-plus': 1.6.2(eslint@8.57.0)(typescript@5.5.3) - '@stylistic/eslint-plugin-ts': 1.6.2(eslint@8.57.0)(typescript@5.5.3) + '@stylistic/eslint-plugin-js': 2.3.0(eslint@9.7.0) + '@stylistic/eslint-plugin-jsx': 2.3.0(eslint@9.7.0) + '@stylistic/eslint-plugin-plus': 2.3.0(eslint@9.7.0)(typescript@5.5.3) + '@stylistic/eslint-plugin-ts': 2.3.0(eslint@9.7.0)(typescript@5.5.3) '@types/eslint': 8.56.10 - eslint: 8.57.0 + eslint: 9.7.0 transitivePeerDependencies: - supports-color - typescript '@types/babel__core@7.20.5': dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.24.8 + '@babel/types': 7.24.9 '@types/babel__generator': 7.6.8 '@types/babel__template': 7.4.4 '@types/babel__traverse': 7.20.6 '@types/babel__generator@7.6.8': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@types/babel__template@7.4.4': dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.24.8 + '@babel/types': 7.24.9 '@types/babel__traverse@7.20.6': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@types/chai@4.3.16': {} @@ -3099,14 +3643,14 @@ snapshots: '@types/json-schema@7.0.15': {} + '@types/minimatch@3.0.5': {} + '@types/node@20.14.10': dependencies: undici-types: 5.26.5 '@types/resolve@1.20.2': {} - '@types/semver@7.5.8': {} - '@types/stack-utils@2.0.3': {} '@types/yargs-parser@21.0.3': {} @@ -3115,15 +3659,15 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': + '@typescript-eslint/eslint-plugin@8.0.0-alpha.44(@typescript-eslint/parser@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@eslint-community/regexpp': 4.10.1 - '@typescript-eslint/parser': 7.16.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/scope-manager': 7.16.0 - '@typescript-eslint/type-utils': 7.16.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/utils': 7.16.0(eslint@8.57.0)(typescript@5.5.3) - '@typescript-eslint/visitor-keys': 7.16.0 - eslint: 8.57.0 + '@eslint-community/regexpp': 4.11.0 + '@typescript-eslint/parser': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + '@typescript-eslint/scope-manager': 8.0.0-alpha.44 + '@typescript-eslint/type-utils': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + '@typescript-eslint/utils': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 8.0.0-alpha.44 + eslint: 9.7.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 @@ -3133,68 +3677,46 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3)': + '@typescript-eslint/parser@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@typescript-eslint/scope-manager': 7.16.0 - '@typescript-eslint/types': 7.16.0 - '@typescript-eslint/typescript-estree': 7.16.0(typescript@5.5.3) - '@typescript-eslint/visitor-keys': 7.16.0 + '@typescript-eslint/scope-manager': 8.0.0-alpha.44 + '@typescript-eslint/types': 8.0.0-alpha.44 + '@typescript-eslint/typescript-estree': 8.0.0-alpha.44(typescript@5.5.3) + '@typescript-eslint/visitor-keys': 8.0.0-alpha.44 debug: 4.3.5 - eslint: 8.57.0 + eslint: 9.7.0 optionalDependencies: typescript: 5.5.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@6.21.0': + '@typescript-eslint/scope-manager@8.0.0-alpha.44': dependencies: - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/visitor-keys': 6.21.0 + '@typescript-eslint/types': 8.0.0-alpha.44 + '@typescript-eslint/visitor-keys': 8.0.0-alpha.44 - '@typescript-eslint/scope-manager@7.16.0': + '@typescript-eslint/type-utils@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@typescript-eslint/types': 7.16.0 - '@typescript-eslint/visitor-keys': 7.16.0 - - '@typescript-eslint/type-utils@7.16.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@typescript-eslint/typescript-estree': 7.16.0(typescript@5.5.3) - '@typescript-eslint/utils': 7.16.0(eslint@8.57.0)(typescript@5.5.3) + '@typescript-eslint/typescript-estree': 8.0.0-alpha.44(typescript@5.5.3) + '@typescript-eslint/utils': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) debug: 4.3.5 - eslint: 8.57.0 ts-api-utils: 1.3.0(typescript@5.5.3) optionalDependencies: typescript: 5.5.3 transitivePeerDependencies: + - eslint - supports-color - '@typescript-eslint/types@6.21.0': {} - - '@typescript-eslint/types@7.16.0': {} - - '@typescript-eslint/typescript-estree@6.21.0(typescript@5.5.3)': - dependencies: - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.5 - globby: 11.1.0 - is-glob: 4.0.3 - minimatch: 9.0.3 - semver: 7.6.2 - ts-api-utils: 1.3.0(typescript@5.5.3) - optionalDependencies: - typescript: 5.5.3 - transitivePeerDependencies: - - supports-color + '@typescript-eslint/types@8.0.0-alpha.44': {} - '@typescript-eslint/typescript-estree@7.16.0(typescript@5.5.3)': + '@typescript-eslint/typescript-estree@8.0.0-alpha.44(typescript@5.5.3)': dependencies: - '@typescript-eslint/types': 7.16.0 - '@typescript-eslint/visitor-keys': 7.16.0 + '@typescript-eslint/types': 8.0.0-alpha.44 + '@typescript-eslint/visitor-keys': 8.0.0-alpha.44 debug: 4.3.5 globby: 11.1.0 is-glob: 4.0.3 - minimatch: 9.0.4 + minimatch: 9.0.5 semver: 7.6.2 ts-api-utils: 1.3.0(typescript@5.5.3) optionalDependencies: @@ -3202,53 +3724,36 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@6.21.0(eslint@8.57.0)(typescript@5.5.3)': - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.8 - '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.5.3) - eslint: 8.57.0 - semver: 7.6.2 - transitivePeerDependencies: - - supports-color - - typescript - - '@typescript-eslint/utils@7.16.0(eslint@8.57.0)(typescript@5.5.3)': + '@typescript-eslint/utils@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@typescript-eslint/scope-manager': 7.16.0 - '@typescript-eslint/types': 7.16.0 - '@typescript-eslint/typescript-estree': 7.16.0(typescript@5.5.3) - eslint: 8.57.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@9.7.0) + '@typescript-eslint/scope-manager': 8.0.0-alpha.44 + '@typescript-eslint/types': 8.0.0-alpha.44 + '@typescript-eslint/typescript-estree': 8.0.0-alpha.44(typescript@5.5.3) + eslint: 9.7.0 transitivePeerDependencies: - supports-color - typescript - '@typescript-eslint/visitor-keys@6.21.0': + '@typescript-eslint/visitor-keys@8.0.0-alpha.44': dependencies: - '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/types': 8.0.0-alpha.44 eslint-visitor-keys: 3.4.3 - '@typescript-eslint/visitor-keys@7.16.0': - dependencies: - '@typescript-eslint/types': 7.16.0 - eslint-visitor-keys: 3.4.3 - - '@ungap/structured-clone@1.2.0': {} + a-sync-waterfall@1.0.1: {} accepts@1.3.8: dependencies: mime-types: 2.1.35 negotiator: 0.6.3 - acorn-jsx@5.3.2(acorn@8.12.0): + acorn-jsx@5.3.2(acorn@8.12.1): dependencies: - acorn: 8.12.0 + acorn: 8.12.1 + + acorn@7.4.1: {} - acorn@8.12.0: {} + acorn@8.12.1: {} ajv@6.12.6: dependencies: @@ -3277,6 +3782,8 @@ snapshots: ansi-styles@6.2.1: {} + any-promise@0.1.0: {} + anymatch@3.1.3: dependencies: normalize-path: 3.0.0 @@ -3288,23 +3795,43 @@ snapshots: argparse@2.0.1: {} + array-differ@1.0.0: {} + + array-differ@3.0.0: {} + array-flatten@1.1.1: {} + array-union@1.0.2: + dependencies: + array-uniq: 1.0.3 + array-union@2.1.0: {} + array-uniq@1.0.3: {} + + arrify@1.0.1: {} + + arrify@2.0.1: {} + + asap@2.0.6: {} + + assert-never@1.3.0: {} + assertion-error@1.1.0: {} ast-metadata-inferer@0.8.0: dependencies: - '@mdn/browser-compat-data': 5.5.34 + '@mdn/browser-compat-data': 5.5.39 + + async@3.2.5: {} - babel-jest@29.7.0(@babel/core@7.24.7): + babel-jest@29.7.0(@babel/core@7.24.9): dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.24.9 '@jest/transform': 29.7.0 '@types/babel__core': 7.20.5 babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.6.3(@babel/core@7.24.7) + babel-preset-jest: 29.6.3(@babel/core@7.24.9) chalk: 4.1.2 graceful-fs: 4.2.11 slash: 3.0.0 @@ -3313,7 +3840,7 @@ snapshots: babel-plugin-istanbul@6.1.1: dependencies: - '@babel/helper-plugin-utils': 7.24.7 + '@babel/helper-plugin-utils': 7.24.8 '@istanbuljs/load-nyc-config': 1.1.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-instrument: 5.2.1 @@ -3324,34 +3851,53 @@ snapshots: babel-plugin-jest-hoist@29.6.3: dependencies: '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.24.9 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.6 - babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.7): - dependencies: - '@babel/core': 7.24.7 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.7) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.24.7) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.24.7) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.7) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.7) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.24.7) - - babel-preset-jest@29.6.3(@babel/core@7.24.7): - dependencies: - '@babel/core': 7.24.7 + babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.9): + dependencies: + '@babel/core': 7.24.9 + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.9) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.24.9) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.24.9) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.24.9) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.9) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.9) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.9) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.9) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.9) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.9) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.9) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.24.9) + + babel-preset-jest@29.6.3(@babel/core@7.24.9): + dependencies: + '@babel/core': 7.24.9 babel-plugin-jest-hoist: 29.6.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.7) + babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.9) + + babel-walk@3.0.0-canary-5: + dependencies: + '@babel/types': 7.24.9 balanced-match@1.0.2: {} + bcp-47-match@1.0.3: {} + + bcp-47-normalize@1.1.1: + dependencies: + bcp-47: 1.0.8 + bcp-47-match: 1.0.3 + + bcp-47@1.0.8: + dependencies: + is-alphabetical: 1.0.4 + is-alphanumerical: 1.0.4 + is-decimal: 1.0.4 + + binary-extensions@2.3.0: {} + body-parser@1.20.2: dependencies: bytes: 3.1.2 @@ -3382,12 +3928,12 @@ snapshots: dependencies: fill-range: 7.1.1 - browserslist@4.23.1: + browserslist@4.23.2: dependencies: - caniuse-lite: 1.0.30001636 - electron-to-chromium: 1.4.806 + caniuse-lite: 1.0.30001642 + electron-to-chromium: 1.4.828 node-releases: 2.0.14 - update-browserslist-db: 1.0.16(browserslist@4.23.1) + update-browserslist-db: 1.1.0(browserslist@4.23.2) bs-logger@0.2.6: dependencies: @@ -3417,7 +3963,7 @@ snapshots: camelcase@6.3.0: {} - caniuse-lite@1.0.30001636: {} + caniuse-lite@1.0.30001642: {} chai-like@1.1.1(chai@4.4.1): dependencies: @@ -3446,10 +3992,26 @@ snapshots: char-regex@1.0.2: {} + character-parser@2.2.0: + dependencies: + is-regex: 1.1.4 + check-error@1.0.3: dependencies: get-func-name: 2.0.2 + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + ci-info@3.9.0: {} cjs-module-lexer@1.3.1: {} @@ -3482,14 +4044,23 @@ snapshots: color-name@1.1.4: {} + commander@10.0.1: {} + commander@12.1.0: {} commander@2.20.3: {} + commander@5.1.0: {} + commondir@1.0.1: {} concat-map@0.0.1: {} + constantinople@4.0.1: + dependencies: + '@babel/parser': 7.24.8 + '@babel/types': 7.24.9 + content-disposition@0.5.4: dependencies: safe-buffer: 5.2.1 @@ -3561,25 +4132,49 @@ snapshots: depd@2.0.0: {} + dependency-graph@0.11.0: {} + destroy@1.2.0: {} detect-newline@3.1.0: {} + dev-ip@1.0.1: {} + diff-sequences@29.6.3: {} dir-glob@3.0.1: dependencies: path-type: 4.0.0 - doctrine@3.0.0: + doctypes@1.1.0: {} + + dom-serializer@1.4.1: dependencies: - esutils: 2.0.3 + domelementtype: 2.3.0 + domhandler: 4.3.1 + entities: 2.2.0 + + domelementtype@2.3.0: {} + + domhandler@4.3.1: + dependencies: + domelementtype: 2.3.0 + + domutils@2.8.0: + dependencies: + dom-serializer: 1.4.1 + domelementtype: 2.3.0 + domhandler: 4.3.1 eastasianwidth@0.2.0: {} ee-first@1.1.1: {} - electron-to-chromium@1.4.806: {} + ejs@3.1.10: + dependencies: + jake: 10.9.1 + + electron-to-chromium@1.4.828: {} emittery@0.13.1: {} @@ -3589,6 +4184,14 @@ snapshots: encodeurl@1.0.2: {} + entities@2.2.0: {} + + entities@3.0.1: {} + + errno@0.1.8: + dependencies: + prr: 1.0.1 + error-ex@1.3.2: dependencies: is-arrayish: 0.2.1 @@ -3609,71 +4212,69 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-plugin-compat@5.0.0(eslint@8.57.0): + eslint-plugin-compat@6.0.0(eslint@9.7.0): dependencies: - '@mdn/browser-compat-data': 5.5.34 + '@mdn/browser-compat-data': 5.5.39 ast-metadata-inferer: 0.8.0 - browserslist: 4.23.1 - caniuse-lite: 1.0.30001636 - eslint: 8.57.0 + browserslist: 4.23.2 + caniuse-lite: 1.0.30001642 + eslint: 9.7.0 find-up: 5.0.0 - globals: 13.24.0 + globals: 15.8.0 lodash.memoize: 4.1.2 semver: 7.6.2 - eslint-plugin-mocha@10.4.3(eslint@8.57.0): + eslint-plugin-mocha@10.4.3(eslint@9.7.0): dependencies: - eslint: 8.57.0 - eslint-utils: 3.0.0(eslint@8.57.0) + eslint: 9.7.0 + eslint-utils: 3.0.0(eslint@9.7.0) globals: 13.24.0 rambda: 7.5.0 - eslint-scope@7.2.2: + eslint-scope@8.0.2: dependencies: esrecurse: 4.3.0 estraverse: 5.3.0 - eslint-utils@3.0.0(eslint@8.57.0): + eslint-utils@3.0.0(eslint@9.7.0): dependencies: - eslint: 8.57.0 + eslint: 9.7.0 eslint-visitor-keys: 2.1.0 eslint-visitor-keys@2.1.0: {} eslint-visitor-keys@3.4.3: {} - eslint@8.57.0: + eslint-visitor-keys@4.0.0: {} + + eslint@9.7.0: dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.10.1 - '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint-community/eslint-utils': 4.4.0(eslint@9.7.0) + '@eslint-community/regexpp': 4.11.0 + '@eslint/config-array': 0.17.0 + '@eslint/eslintrc': 3.1.0 + '@eslint/js': 9.7.0 '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.3.0 '@nodelib/fs.walk': 1.2.8 - '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 debug: 4.3.5 - doctrine: 3.0.0 escape-string-regexp: 4.0.0 - eslint-scope: 7.2.2 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 - esquery: 1.5.0 + eslint-scope: 8.0.2 + eslint-visitor-keys: 4.0.0 + espree: 10.1.0 + esquery: 1.6.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 + file-entry-cache: 8.0.0 find-up: 5.0.0 glob-parent: 6.0.2 - globals: 13.24.0 - graphemer: 1.4.0 ignore: 5.3.1 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 - js-yaml: 4.1.0 json-stable-stringify-without-jsonify: 1.0.1 levn: 0.4.1 lodash.merge: 4.6.2 @@ -3685,15 +4286,15 @@ snapshots: transitivePeerDependencies: - supports-color - espree@9.6.1: + espree@10.1.0: dependencies: - acorn: 8.12.0 - acorn-jsx: 5.3.2(acorn@8.12.0) - eslint-visitor-keys: 3.4.3 + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) + eslint-visitor-keys: 4.0.0 esprima@4.0.1: {} - esquery@1.5.0: + esquery@1.6.0: dependencies: estraverse: 5.3.0 @@ -3767,6 +4368,10 @@ snapshots: transitivePeerDependencies: - supports-color + extend-shallow@2.0.1: + dependencies: + is-extendable: 0.1.1 + fast-deep-equal@3.1.3: {} fast-glob@3.3.2: @@ -3789,9 +4394,13 @@ snapshots: dependencies: bser: 2.1.1 - file-entry-cache@6.0.1: + file-entry-cache@8.0.0: dependencies: - flat-cache: 3.2.0 + flat-cache: 4.0.1 + + filelist@1.0.4: + dependencies: + minimatch: 5.1.6 fill-range@7.1.1: dependencies: @@ -3819,11 +4428,10 @@ snapshots: locate-path: 6.0.0 path-exists: 4.0.0 - flat-cache@3.2.0: + flat-cache@4.0.1: dependencies: flatted: 3.3.1 keyv: 4.5.4 - rimraf: 3.0.2 flatted@3.3.1: {} @@ -3838,6 +4446,9 @@ snapshots: fs.realpath@1.0.0: {} + fsevents@2.3.2: + optional: true + fsevents@2.3.3: optional: true @@ -3869,11 +4480,11 @@ snapshots: dependencies: is-glob: 4.0.3 - glob@10.4.3: + glob@10.4.5: dependencies: foreground-child: 3.2.1 - jackspeak: 3.4.0 - minimatch: 9.0.4 + jackspeak: 3.4.3 + minimatch: 9.0.5 minipass: 7.1.2 package-json-from-dist: 1.0.0 path-scurry: 1.11.1 @@ -3904,6 +4515,8 @@ snapshots: globals@14.0.0: {} + globals@15.8.0: {} + globby@11.1.0: dependencies: array-union: 2.1.0 @@ -3921,6 +4534,24 @@ snapshots: graphemer@1.4.0: {} + gray-matter@4.0.3: + dependencies: + js-yaml: 3.14.1 + kind-of: 6.0.3 + section-matter: 1.0.0 + strip-bom-string: 1.0.0 + + hamljs@0.6.2: {} + + handlebars@4.7.8: + dependencies: + minimist: 1.2.8 + neo-async: 2.6.2 + source-map: 0.6.1 + wordwrap: 1.0.0 + optionalDependencies: + uglify-js: 3.18.0 + has-flag@3.0.0: {} has-flag@4.0.0: {} @@ -3933,12 +4564,25 @@ snapshots: has-symbols@1.0.3: {} + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.0.3 + hasown@2.0.2: dependencies: function-bind: 1.1.2 html-escaper@2.0.2: {} + htmlparser2@7.2.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 4.3.1 + domutils: 2.8.0 + entities: 3.0.1 + + http-equiv-refresh@1.0.0: {} + http-errors@2.0.0: dependencies: depd: 2.0.0 @@ -3976,16 +4620,36 @@ snapshots: ipaddr.js@1.9.1: {} + is-alphabetical@1.0.4: {} + + is-alphanumerical@1.0.4: + dependencies: + is-alphabetical: 1.0.4 + is-decimal: 1.0.4 + is-arrayish@0.2.1: {} + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + is-builtin-module@3.2.1: dependencies: builtin-modules: 3.3.0 - is-core-module@2.13.1: + is-core-module@2.14.0: dependencies: hasown: 2.0.2 + is-decimal@1.0.4: {} + + is-expression@4.0.0: + dependencies: + acorn: 7.4.1 + object-assign: 4.1.1 + + is-extendable@0.1.1: {} + is-extglob@2.1.1: {} is-fullwidth-code-point@3.0.0: {} @@ -3996,16 +4660,25 @@ snapshots: dependencies: is-extglob: 2.1.1 + is-json@2.0.1: {} + is-module@1.0.0: {} is-number@7.0.0: {} is-path-inside@3.0.3: {} + is-promise@2.2.2: {} + is-reference@1.2.1: dependencies: '@types/estree': 1.0.5 + is-regex@1.1.4: + dependencies: + call-bind: 1.0.7 + has-tostringtag: 1.0.2 + is-stream@2.0.1: {} isarray@0.0.1: {} @@ -4014,22 +4687,24 @@ snapshots: isexe@2.0.0: {} + iso-639-1@2.1.15: {} + istanbul-lib-coverage@3.2.2: {} istanbul-lib-instrument@5.2.1: dependencies: - '@babel/core': 7.24.7 - '@babel/parser': 7.24.7 + '@babel/core': 7.24.9 + '@babel/parser': 7.24.8 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 6.3.1 transitivePeerDependencies: - supports-color - istanbul-lib-instrument@6.0.2: + istanbul-lib-instrument@6.0.3: dependencies: - '@babel/core': 7.24.7 - '@babel/parser': 7.24.7 + '@babel/core': 7.24.9 + '@babel/parser': 7.24.8 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 7.6.2 @@ -4055,7 +4730,7 @@ snapshots: html-escaper: 2.0.2 istanbul-lib-report: 3.0.1 - jackspeak@3.4.0: + jackspeak@3.4.3: dependencies: '@isaacs/cliui': 8.0.2 optionalDependencies: @@ -4067,6 +4742,13 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jake@10.9.1: + dependencies: + async: 3.2.5 + chalk: 4.1.2 + filelist: 1.0.4 + minimatch: 3.1.2 + jest-changed-files@29.7.0: dependencies: execa: 5.1.1 @@ -4120,10 +4802,10 @@ snapshots: jest-config@29.7.0(@types/node@20.14.10): dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.24.9 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.24.7) + babel-jest: 29.7.0(@babel/core@7.24.9) chalk: 4.1.2 ci-info: 3.9.0 deepmerge: 4.3.1 @@ -4304,15 +4986,15 @@ snapshots: jest-snapshot@29.7.0: dependencies: - '@babel/core': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.7) - '@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.24.7) - '@babel/types': 7.24.7 + '@babel/core': 7.24.9 + '@babel/generator': 7.24.10 + '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.9) + '@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.24.9) + '@babel/types': 7.24.9 '@jest/expect-utils': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.7) + babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.9) chalk: 4.1.2 expect: 29.7.0 graceful-fs: 4.2.11 @@ -4375,6 +5057,8 @@ snapshots: - supports-color - ts-node + js-stringify@1.0.2: {} + js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -4398,12 +5082,23 @@ snapshots: json5@2.2.3: {} + jstransformer@1.0.0: + dependencies: + is-promise: 2.2.2 + promise: 7.3.1 + + junk@1.0.3: {} + keyv@4.5.4: dependencies: json-buffer: 3.0.1 + kind-of@6.0.3: {} + kleur@3.0.3: {} + kleur@4.1.5: {} + leven@3.1.0: {} levn@0.4.1: @@ -4413,6 +5108,16 @@ snapshots: lines-and-columns@1.2.4: {} + linkify-it@4.0.1: + dependencies: + uc.micro: 1.0.6 + + liquidjs@10.15.0: + dependencies: + commander: 10.0.1 + + list-to-array@1.1.0: {} + locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -4421,6 +5126,8 @@ snapshots: dependencies: p-locate: 5.0.0 + lodash.deburr@4.1.0: {} + lodash.memoize@4.1.2: {} lodash.merge@4.6.2: {} @@ -4431,7 +5138,7 @@ snapshots: dependencies: get-func-name: 2.0.2 - lru-cache@10.2.2: {} + lru-cache@10.4.3: {} lru-cache@11.0.0: {} @@ -4443,9 +5150,11 @@ snapshots: dependencies: yallist: 4.0.0 + luxon@3.4.4: {} + magic-string@0.30.10: dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 make-dir@4.0.0: dependencies: @@ -4457,11 +5166,28 @@ snapshots: dependencies: tmpl: 1.0.5 + markdown-it@13.0.2: + dependencies: + argparse: 2.0.1 + entities: 3.0.1 + linkify-it: 4.0.1 + mdurl: 1.0.1 + uc.micro: 1.0.6 + matched@5.0.1: dependencies: glob: 7.2.3 picomatch: 2.3.1 + maximatch@0.1.0: + dependencies: + array-differ: 1.0.0 + array-union: 1.0.2 + arrify: 1.0.1 + minimatch: 3.1.2 + + mdurl@1.0.1: {} + media-typer@0.3.0: {} merge-descriptors@1.0.1: {} @@ -4485,6 +5211,8 @@ snapshots: mime@1.6.0: {} + mime@3.0.0: {} + mimic-fn@2.1.0: {} minimatch@10.0.1: @@ -4495,28 +5223,54 @@ snapshots: dependencies: brace-expansion: 1.1.11 - minimatch@9.0.3: + minimatch@5.1.6: dependencies: brace-expansion: 2.0.1 - minimatch@9.0.4: + minimatch@9.0.5: dependencies: brace-expansion: 2.0.1 + minimist@1.2.8: {} + + minipass@3.3.6: + dependencies: + yallist: 4.0.0 + minipass@7.1.2: {} + mkdirp@0.5.6: + dependencies: + minimist: 1.2.8 + mkdirp@1.0.4: {} + moo@0.5.2: {} + + morphdom@2.7.3: {} + ms@2.0.0: {} ms@2.1.2: {} ms@2.1.3: {} + multimatch@5.0.0: + dependencies: + '@types/minimatch': 3.0.5 + array-differ: 3.0.0 + array-union: 2.1.0 + arrify: 2.0.1 + minimatch: 3.1.2 + + mustache@4.2.0: {} + natural-compare@1.4.0: {} negotiator@0.6.3: {} + neo-async@2.6.2: {} + node-int64@0.4.0: {} node-releases@2.0.14: {} @@ -4532,7 +5286,17 @@ snapshots: dependencies: path-key: 3.1.1 - object-inspect@1.13.1: {} + nunjucks@3.2.4(chokidar@3.6.0): + dependencies: + a-sync-waterfall: 1.0.1 + asap: 2.0.6 + commander: 5.1.0 + optionalDependencies: + chokidar: 3.6.0 + + object-assign@4.1.1: {} + + object-inspect@1.13.2: {} on-finished@2.4.1: dependencies: @@ -4586,6 +5350,8 @@ snapshots: json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 + parse-srcset@1.0.2: {} + parseurl@1.3.3: {} path-exists@4.0.0: {} @@ -4598,7 +5364,7 @@ snapshots: path-scurry@1.11.1: dependencies: - lru-cache: 10.2.2 + lru-cache: 10.4.3 minipass: 7.1.2 path-scurry@2.0.0: @@ -4608,6 +5374,8 @@ snapshots: path-to-regexp@0.1.7: {} + path-to-regexp@6.2.2: {} + path-type@4.0.0: {} pathval@1.1.1: {} @@ -4618,12 +5386,46 @@ snapshots: picomatch@4.0.2: {} + pify@2.3.0: {} + pirates@4.0.6: {} pkg-dir@4.2.0: dependencies: find-up: 4.1.0 + playwright-core@1.45.2: {} + + playwright@1.45.2: + dependencies: + playwright-core: 1.45.2 + optionalDependencies: + fsevents: 2.3.2 + + please-upgrade-node@3.2.0: + dependencies: + semver-compare: 1.0.0 + + posthtml-parser@0.11.0: + dependencies: + htmlparser2: 7.2.0 + + posthtml-render@3.0.0: + dependencies: + is-json: 2.0.1 + + posthtml-urls@1.0.0: + dependencies: + http-equiv-refresh: 1.0.0 + list-to-array: 1.1.0 + parse-srcset: 1.0.2 + promise-each: 2.2.0 + + posthtml@0.16.6: + dependencies: + posthtml-parser: 0.11.0 + posthtml-render: 3.0.0 + prelude-ls@1.2.1: {} pretty-format@29.7.0: @@ -4634,6 +5436,14 @@ snapshots: process-nextick-args@2.0.1: {} + promise-each@2.2.0: + dependencies: + any-promise: 0.1.0 + + promise@7.3.1: + dependencies: + asap: 2.0.6 + prompts@2.4.2: dependencies: kleur: 3.0.3 @@ -4644,6 +5454,75 @@ snapshots: forwarded: 0.2.0 ipaddr.js: 1.9.1 + prr@1.0.1: {} + + pug-attrs@3.0.0: + dependencies: + constantinople: 4.0.1 + js-stringify: 1.0.2 + pug-runtime: 3.0.1 + + pug-code-gen@3.0.3: + dependencies: + constantinople: 4.0.1 + doctypes: 1.1.0 + js-stringify: 1.0.2 + pug-attrs: 3.0.0 + pug-error: 2.1.0 + pug-runtime: 3.0.1 + void-elements: 3.1.0 + with: 7.0.2 + + pug-error@2.1.0: {} + + pug-filters@4.0.0: + dependencies: + constantinople: 4.0.1 + jstransformer: 1.0.0 + pug-error: 2.1.0 + pug-walk: 2.0.0 + resolve: 1.22.8 + + pug-lexer@5.0.1: + dependencies: + character-parser: 2.2.0 + is-expression: 4.0.0 + pug-error: 2.1.0 + + pug-linker@4.0.0: + dependencies: + pug-error: 2.1.0 + pug-walk: 2.0.0 + + pug-load@3.0.0: + dependencies: + object-assign: 4.1.1 + pug-walk: 2.0.0 + + pug-parser@6.0.0: + dependencies: + pug-error: 2.1.0 + token-stream: 1.0.0 + + pug-runtime@3.0.1: {} + + pug-strip-comments@2.0.0: + dependencies: + pug-error: 2.1.0 + + pug-walk@2.0.0: {} + + pug@3.0.3: + dependencies: + pug-code-gen: 3.0.3 + pug-filters: 4.0.0 + pug-lexer: 5.0.1 + pug-linker: 4.0.0 + pug-load: 3.0.0 + pug-parser: 6.0.0 + pug-runtime: 3.0.1 + pug-strip-comments: 2.0.0 + punycode@2.3.1: {} pure-rand@6.1.0: {} @@ -4684,6 +5563,22 @@ snapshots: string_decoder: 1.1.1 util-deprecate: 1.0.2 + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + recursive-copy@2.0.14: + dependencies: + errno: 0.1.8 + graceful-fs: 4.2.11 + junk: 1.0.3 + maximatch: 0.1.0 + mkdirp: 0.5.6 + pify: 2.3.0 + promise: 7.3.1 + rimraf: 2.7.1 + slash: 1.0.0 + require-directory@2.1.1: {} resolve-cwd@3.0.0: @@ -4698,19 +5593,20 @@ snapshots: resolve@1.22.8: dependencies: - is-core-module: 2.13.1 + is-core-module: 2.14.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 reusify@1.0.4: {} - rimraf@3.0.2: + rimraf@2.7.1: dependencies: glob: 7.2.3 - rimraf@6.0.0: + rimraf@6.0.1: dependencies: glob: 11.0.0 + package-json-from-dist: 1.0.0 rollup-plugin-ignore@1.0.10: {} @@ -4746,6 +5642,13 @@ snapshots: safer-buffer@2.1.2: {} + section-matter@1.0.0: + dependencies: + extend-shallow: 2.0.1 + kind-of: 6.0.3 + + semver-compare@1.0.0: {} + semver@6.3.1: {} semver@7.6.0: @@ -4803,7 +5706,7 @@ snapshots: call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 - object-inspect: 1.13.1 + object-inspect: 1.13.2 signal-exit@3.0.7: {} @@ -4811,8 +5714,12 @@ snapshots: sisteransi@1.0.5: {} + slash@1.0.0: {} + slash@3.0.0: {} + slugify@1.6.6: {} + source-map-generator@0.8.0: {} source-map-support@0.5.13: @@ -4833,6 +5740,10 @@ snapshots: sprintf-js@1.0.3: {} + ssri@8.0.1: + dependencies: + minipass: 3.3.6 + stack-utils@2.0.6: dependencies: escape-string-regexp: 2.0.0 @@ -4870,6 +5781,8 @@ snapshots: dependencies: ansi-regex: 6.0.1 + strip-bom-string@1.0.0: {} + strip-bom@4.0.0: {} strip-final-newline@2.0.0: {} @@ -4890,10 +5803,10 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - terser@5.31.1: + terser@5.31.3: dependencies: '@jridgewell/source-map': 0.3.6 - acorn: 8.12.0 + acorn: 8.12.1 commander: 2.20.3 source-map-support: 0.5.21 @@ -4920,6 +5833,8 @@ snapshots: toidentifier@1.0.1: {} + token-stream@1.0.0: {} + tr46@1.0.1: dependencies: punycode: 2.3.1 @@ -4928,9 +5843,10 @@ snapshots: dependencies: typescript: 5.5.3 - ts-jest@29.2.0(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(jest@29.7.0(@types/node@20.14.10))(typescript@5.5.3): + ts-jest@29.2.2(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.10))(typescript@5.5.3): dependencies: bs-logger: 0.2.6 + ejs: 3.1.10 fast-json-stable-stringify: 2.1.0 jest: 29.7.0(@types/node@20.14.10) jest-util: 29.7.0 @@ -4941,10 +5857,10 @@ snapshots: typescript: 5.5.3 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.24.9 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.24.7) + babel-jest: 29.7.0(@babel/core@7.24.9) tslib@2.6.3: {} @@ -4963,17 +5879,33 @@ snapshots: media-typer: 0.3.0 mime-types: 2.1.35 + typescript-eslint@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3): + dependencies: + '@typescript-eslint/eslint-plugin': 8.0.0-alpha.44(@typescript-eslint/parser@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3) + '@typescript-eslint/parser': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + '@typescript-eslint/utils': 8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3) + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - eslint + - supports-color + typescript@5.5.3: {} + uc.micro@1.0.6: {} + + uglify-js@3.18.0: + optional: true + undici-types@5.26.5: {} unpipe@1.0.0: {} untildify@4.0.0: {} - update-browserslist-db@1.0.16(browserslist@4.23.1): + update-browserslist-db@1.1.0(browserslist@4.23.2): dependencies: - browserslist: 4.23.1 + browserslist: 4.23.2 escalade: 3.1.2 picocolors: 1.0.1 @@ -4985,7 +5917,7 @@ snapshots: utils-merge@1.0.1: {} - v8-to-istanbul@9.2.0: + v8-to-istanbul@9.3.0: dependencies: '@jridgewell/trace-mapping': 0.3.25 '@types/istanbul-lib-coverage': 2.0.6 @@ -4993,6 +5925,8 @@ snapshots: vary@1.1.2: {} + void-elements@3.1.0: {} + walker@1.0.8: dependencies: makeerror: 1.0.12 @@ -5009,8 +5943,17 @@ snapshots: dependencies: isexe: 2.0.0 + with@7.0.2: + dependencies: + '@babel/parser': 7.24.8 + '@babel/types': 7.24.9 + assert-never: 1.3.0 + babel-walk: 3.0.0-canary-5 + word-wrap@1.2.5: {} + wordwrap@1.0.0: {} + wrap-ansi@7.0.0: dependencies: ansi-styles: 4.3.0 @@ -5030,6 +5973,8 @@ snapshots: imurmurhash: 0.1.4 signal-exit: 3.0.7 + ws@8.18.0: {} + xtend@4.0.2: {} y18n@5.0.8: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..e8314690 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +packages: + - docs + - test/cli/fixtures/frags + - test/cli/fixtures/useFrag + - web-test diff --git a/test/behavior/generated-parser-behavior.spec.js b/test/behavior/generated-parser-behavior.spec.js index 9332b3e5..5c4d169d 100644 --- a/test/behavior/generated-parser-behavior.spec.js +++ b/test/behavior/generated-parser-behavior.spec.js @@ -71,7 +71,7 @@ describe("generated parser behavior", () => { Assertion.addMethod("failToParse", function(input, props, options) { options = options !== undefined ? options : {}; - let passed = undefined; + let passed = false; let result = undefined; try { @@ -80,7 +80,6 @@ describe("generated parser behavior", () => { passed = true; } catch (e) { result = e; - passed = false; } this.assert( diff --git a/test/cli/fixtures/frags/.npmrc b/test/cli/fixtures/frags/.npmrc new file mode 100644 index 00000000..62d84020 --- /dev/null +++ b/test/cli/fixtures/frags/.npmrc @@ -0,0 +1 @@ +lockfile=false diff --git a/test/cli/fixtures/frags/pnpm-lock.yaml b/test/cli/fixtures/frags/pnpm-lock.yaml deleted file mode 100644 index 9b60ae17..00000000 --- a/test/cli/fixtures/frags/pnpm-lock.yaml +++ /dev/null @@ -1,9 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: {} diff --git a/test/cli/fixtures/useFrags/.npmrc b/test/cli/fixtures/useFrags/.npmrc new file mode 100644 index 00000000..62d84020 --- /dev/null +++ b/test/cli/fixtures/useFrags/.npmrc @@ -0,0 +1 @@ +lockfile=false diff --git a/test/cli/fixtures/useFrags/package-lock.json b/test/cli/fixtures/useFrags/package-lock.json deleted file mode 100644 index ae33eb8d..00000000 --- a/test/cli/fixtures/useFrags/package-lock.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "usefrags", - "version": "0.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "usefrags", - "version": "0.0.0", - "license": "MIT", - "dependencies": { - "frags": "file:../frags" - } - }, - "../frags": { - "version": "0.0.0", - "license": "MIT" - }, - "node_modules/frags": { - "resolved": "../frags", - "link": true - } - } -} diff --git a/test/cli/fixtures/useFrags/pnpm-lock.yaml b/test/cli/fixtures/useFrags/pnpm-lock.yaml deleted file mode 100644 index 280af7de..00000000 --- a/test/cli/fixtures/useFrags/pnpm-lock.yaml +++ /dev/null @@ -1,22 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - frags: - specifier: file:../frags - version: file:../frags - -packages: - - frags@file:../frags: - resolution: {directory: ../frags, type: directory} - -snapshots: - - frags@file:../frags: {} diff --git a/test/cli/run.spec.ts b/test/cli/run.spec.ts index 73752b20..5202c064 100644 --- a/test/cli/run.spec.ts +++ b/test/cli/run.spec.ts @@ -1160,7 +1160,6 @@ Options: await exec({ args: ["-m", "inline"], stdin: "foo = '1'", - // eslint-disable-next-line max-len expected: /^\/\/# sourceMappingURL=data:application\/json;charset=utf-8;base64,./m, }); }); @@ -1243,7 +1242,7 @@ bar = '2' }); // Abusing template literals to ensure we have a trailing space. - /* eslint-disable @typescript-eslint/no-useless-template-literals */ + /* eslint-disable @typescript-eslint/no-unnecessary-template-expression */ await exec({ args: ["-t", ""], stdin: "foo='1'", @@ -1258,7 +1257,7 @@ Error: Expected "1" but end of input found. | ^`, }); }); - /* eslint-enable @typescript-eslint/no-useless-template-literals */ + /* eslint-enable @typescript-eslint/no-unnecessary-template-expression */ it("handles stdout errors", async() => { const stderr = new MockStream({ name: "stderr", encoding: "utf8" }); diff --git a/test/types/peg.test-d.ts b/test/types/peg.test-d.ts index b2fce603..de78fd37 100644 --- a/test/types/peg.test-d.ts +++ b/test/types/peg.test-d.ts @@ -66,7 +66,7 @@ describe("peg.d.ts", () => { res = parser.parse("buzz\n11\nfizz\n", { start: 10 }); expect(res).toStrictEqual(["buzz", 11, "fizz"]); - res = peggy.generate("foo='a'", { unknown: { more: 12 } }); + peggy.generate("foo='a'", { unknown: { more: 12 } }); expectExact()(parser)(); }); diff --git a/test/unit/compiler/passes/helpers.js b/test/unit/compiler/passes/helpers.js index 3a5ccced..f0abf789 100644 --- a/test/unit/compiler/passes/helpers.js +++ b/test/unit/compiler/passes/helpers.js @@ -24,7 +24,7 @@ module.exports = function(chai, utils) { Assertion.addMethod("reportError", function(grammar, props) { const ast = parser.parse(grammar); - let passed = undefined; + let passed = false; let result = undefined; try { @@ -34,7 +34,6 @@ module.exports = function(chai, utils) { passed = true; } catch (e) { result = e; - passed = false; } this.assert( diff --git a/test/unit/parser.spec.js b/test/unit/parser.spec.js index f06c255c..c1fbcd44 100644 --- a/test/unit/parser.spec.js +++ b/test/unit/parser.spec.js @@ -245,7 +245,7 @@ describe("Peggy grammar parser", () => { }); Assertion.addMethod("failToParse", function(props) { - let passed = undefined; + let passed = false; let result = undefined; try { @@ -253,7 +253,6 @@ describe("Peggy grammar parser", () => { passed = true; } catch (e) { result = e; - passed = false; } if (passed) { diff --git a/web-test/package.json b/web-test/package.json index fbed3063..1eb22e25 100644 --- a/web-test/package.json +++ b/web-test/package.json @@ -12,7 +12,7 @@ "author": "Joe Hildebrand ", "license": "MIT", "devDependencies": { - "@playwright/test": "1.45.1", + "@playwright/test": "1.45.2", "@types/node": "20.14.10" }, "engines": { diff --git a/web-test/pnpm-lock.yaml b/web-test/pnpm-lock.yaml deleted file mode 100644 index ebc34ea6..00000000 --- a/web-test/pnpm-lock.yaml +++ /dev/null @@ -1,67 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - devDependencies: - '@playwright/test': - specifier: 1.45.1 - version: 1.45.1 - '@types/node': - specifier: 20.14.10 - version: 20.14.10 - -packages: - - '@playwright/test@1.45.1': - resolution: {integrity: sha512-Wo1bWTzQvGA7LyKGIZc8nFSTFf2TkthGIFBR+QVNilvwouGzFd4PYukZe3rvf5PSqjHi1+1NyKSDZKcQWETzaA==} - engines: {node: '>=18'} - hasBin: true - - '@types/node@20.14.10': - resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==} - - fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - playwright-core@1.45.1: - resolution: {integrity: sha512-LF4CUUtrUu2TCpDw4mcrAIuYrEjVDfT1cHbJMfwnE2+1b8PZcFzPNgvZCvq2JfQ4aTjRCCHw5EJ2tmr2NSzdPg==} - engines: {node: '>=18'} - hasBin: true - - playwright@1.45.1: - resolution: {integrity: sha512-Hjrgae4kpSQBr98nhCj3IScxVeVUixqj+5oyif8TdIn2opTCPEzqAqNMeK42i3cWDCVu9MI+ZsGWw+gVR4ISBg==} - engines: {node: '>=18'} - hasBin: true - - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - -snapshots: - - '@playwright/test@1.45.1': - dependencies: - playwright: 1.45.1 - - '@types/node@20.14.10': - dependencies: - undici-types: 5.26.5 - - fsevents@2.3.2: - optional: true - - playwright-core@1.45.1: {} - - playwright@1.45.1: - dependencies: - playwright-core: 1.45.1 - optionalDependencies: - fsevents: 2.3.2 - - undici-types@5.26.5: {}