install-expo-modules 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
* Released under the MIT License.
|
|
32
32
|
*/const ee=J(52077);const toRegexRange=(b,S,J)=>{if(ee(b)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(S===void 0||b===S){return String(b)}if(ee(S)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let te={relaxZeros:true,...J};if(typeof te.strictZeros==="boolean"){te.relaxZeros=te.strictZeros===false}let re=String(te.relaxZeros);let ne=String(te.shorthand);let ie=String(te.capture);let oe=String(te.wrap);let se=b+":"+S+"="+re+ne+ie+oe;if(toRegexRange.cache.hasOwnProperty(se)){return toRegexRange.cache[se].result}let ae=Math.min(b,S);let ue=Math.max(b,S);if(Math.abs(ae-ue)===1){let J=b+"|"+S;if(te.capture){return`(${J})`}if(te.wrap===false){return J}return`(?:${J})`}let ce=hasPadding(b)||hasPadding(S);let le={min:b,max:S,a:ae,b:ue};let pe=[];let fe=[];if(ce){le.isPadded=ce;le.maxLen=String(le.max).length}if(ae<0){let b=ue<0?Math.abs(ue):1;fe=splitToPatterns(b,Math.abs(ae),le,te);ae=le.a=0}if(ue>=0){pe=splitToPatterns(ae,ue,le,te)}le.negatives=fe;le.positives=pe;le.result=collatePatterns(fe,pe,te);if(te.capture===true){le.result=`(${le.result})`}else if(te.wrap!==false&&pe.length+fe.length>1){le.result=`(?:${le.result})`}toRegexRange.cache[se]=le;return le.result};function collatePatterns(b,S,J){let ee=filterPatterns(b,S,"-",false,J)||[];let te=filterPatterns(S,b,"",false,J)||[];let re=filterPatterns(b,S,"-?",true,J)||[];let ne=ee.concat(re).concat(te);return ne.join("|")}function splitToRanges(b,S){let J=1;let ee=1;let te=countNines(b,J);let re=new Set([S]);while(b<=te&&te<=S){re.add(te);J+=1;te=countNines(b,J)}te=countZeros(S+1,ee)-1;while(b<te&&te<=S){re.add(te);ee+=1;te=countZeros(S+1,ee)-1}re=[...re];re.sort(compare);return re}function rangeToPattern(b,S,J){if(b===S){return{pattern:b,count:[],digits:0}}let ee=zip(b,S);let te=ee.length;let re="";let ne=0;for(let b=0;b<te;b++){let[S,te]=ee[b];if(S===te){re+=S}else if(S!=="0"||te!=="9"){re+=toCharacterClass(S,te,J)}else{ne++}}if(ne){re+=J.shorthand===true?"\\d":"[0-9]"}return{pattern:re,count:[ne],digits:te}}function splitToPatterns(b,S,J,ee){let te=splitToRanges(b,S);let re=[];let ne=b;let ie;for(let b=0;b<te.length;b++){let S=te[b];let oe=rangeToPattern(String(ne),String(S),ee);let se="";if(!J.isPadded&&ie&&ie.pattern===oe.pattern){if(ie.count.length>1){ie.count.pop()}ie.count.push(oe.count[0]);ie.string=ie.pattern+toQuantifier(ie.count);ne=S+1;continue}if(J.isPadded){se=padZeros(S,J,ee)}oe.string=se+oe.pattern+toQuantifier(oe.count);re.push(oe);ne=S+1;ie=oe}return re}function filterPatterns(b,S,J,ee,te){let re=[];for(let te of b){let{string:b}=te;if(!ee&&!contains(S,"string",b)){re.push(J+b)}if(ee&&contains(S,"string",b)){re.push(J+b)}}return re}function zip(b,S){let J=[];for(let ee=0;ee<b.length;ee++)J.push([b[ee],S[ee]]);return J}function compare(b,S){return b>S?1:S>b?-1:0}function contains(b,S,J){return b.some((b=>b[S]===J))}function countNines(b,S){return Number(String(b).slice(0,-S)+"9".repeat(S))}function countZeros(b,S){return b-b%Math.pow(10,S)}function toQuantifier(b){let[S=0,J=""]=b;if(J||S>1){return`{${S+(J?","+J:"")}}`}return""}function toCharacterClass(b,S,J){return`[${b}${S-b===1?"":"-"}${S}]`}function hasPadding(b){return/^-?(0+)\d/.test(b)}function padZeros(b,S,J){if(!S.isPadded){return b}let ee=Math.abs(S.maxLen-String(b).length);let te=J.relaxZeros!==false;switch(ee){case 0:return"";case 1:return te?"0?":"0";case 2:return te?"0{0,2}":"00";default:{return te?`0{0,${ee}}`:`0{${ee}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};b.exports=toRegexRange},99566:(b,S,J)=>{b.exports=minimatch;minimatch.Minimatch=Minimatch;var ee=function(){try{return J(71017)}catch(b){}}()||{sep:"/"};minimatch.sep=ee.sep;var te=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var re=J(73197);var ne={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var ie="[^/]";var oe=ie+"*?";var se="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var ae="(?:(?!(?:\\/|^)\\.).)*?";var ue=charSet("().*{}+?[]^$\\!");function charSet(b){return b.split("").reduce((function(b,S){b[S]=true;return b}),{})}var ce=/\/+/;minimatch.filter=filter;function filter(b,S){S=S||{};return function(J,ee,te){return minimatch(J,b,S)}}function ext(b,S){S=S||{};var J={};Object.keys(b).forEach((function(S){J[S]=b[S]}));Object.keys(S).forEach((function(b){J[b]=S[b]}));return J}minimatch.defaults=function(b){if(!b||typeof b!=="object"||!Object.keys(b).length){return minimatch}var S=minimatch;var J=function minimatch(J,ee,te){return S(J,ee,ext(b,te))};J.Minimatch=function Minimatch(J,ee){return new S.Minimatch(J,ext(b,ee))};J.Minimatch.defaults=function defaults(J){return S.defaults(ext(b,J)).Minimatch};J.filter=function filter(J,ee){return S.filter(J,ext(b,ee))};J.defaults=function defaults(J){return S.defaults(ext(b,J))};J.makeRe=function makeRe(J,ee){return S.makeRe(J,ext(b,ee))};J.braceExpand=function braceExpand(J,ee){return S.braceExpand(J,ext(b,ee))};J.match=function(J,ee,te){return S.match(J,ee,ext(b,te))};return J};Minimatch.defaults=function(b){return minimatch.defaults(b).Minimatch};function minimatch(b,S,J){assertValidPattern(S);if(!J)J={};if(!J.nocomment&&S.charAt(0)==="#"){return false}return new Minimatch(S,J).match(b)}function Minimatch(b,S){if(!(this instanceof Minimatch)){return new Minimatch(b,S)}assertValidPattern(b);if(!S)S={};b=b.trim();if(!S.allowWindowsEscape&&ee.sep!=="/"){b=b.split(ee.sep).join("/")}this.options=S;this.set=[];this.pattern=b;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!S.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var b=this.pattern;var S=this.options;if(!S.nocomment&&b.charAt(0)==="#"){this.comment=true;return}if(!b){this.empty=true;return}this.parseNegate();var J=this.globSet=this.braceExpand();if(S.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,J);J=this.globParts=J.map((function(b){return b.split(ce)}));this.debug(this.pattern,J);J=J.map((function(b,S,J){return b.map(this.parse,this)}),this);this.debug(this.pattern,J);J=J.filter((function(b){return b.indexOf(false)===-1}));this.debug(this.pattern,J);this.set=J}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var b=this.pattern;var S=false;var J=this.options;var ee=0;if(J.nonegate)return;for(var te=0,re=b.length;te<re&&b.charAt(te)==="!";te++){S=!S;ee++}if(ee)this.pattern=b.substr(ee);this.negate=S}minimatch.braceExpand=function(b,S){return braceExpand(b,S)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(b,S){if(!S){if(this instanceof Minimatch){S=this.options}else{S={}}}b=typeof b==="undefined"?this.pattern:b;assertValidPattern(b);if(S.nobrace||!/\{(?:(?!\{).)*\}/.test(b)){return[b]}return re(b)}var le=1024*64;var assertValidPattern=function(b){if(typeof b!=="string"){throw new TypeError("invalid pattern")}if(b.length>le){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var pe={};function parse(b,S){assertValidPattern(b);var J=this.options;if(b==="**"){if(!J.noglobstar)return te;else b="*"}if(b==="")return"";var ee="";var re=!!J.nocase;var se=false;var ae=[];var ce=[];var le;var fe=false;var de=-1;var he=-1;var me=b.charAt(0)==="."?"":J.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ge=this;function clearStateChar(){if(le){switch(le){case"*":ee+=oe;re=true;break;case"?":ee+=ie;re=true;break;default:ee+="\\"+le;break}ge.debug("clearStateChar %j %j",le,ee);le=false}}for(var ye=0,ve=b.length,Te;ye<ve&&(Te=b.charAt(ye));ye++){this.debug("%s\t%s %s %j",b,ye,ee,Te);if(se&&ue[Te]){ee+="\\"+Te;se=false;continue}switch(Te){case"/":{return false}case"\\":clearStateChar();se=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",b,ye,ee,Te);if(fe){this.debug(" in class");if(Te==="!"&&ye===he+1)Te="^";ee+=Te;continue}ge.debug("call clearStateChar %j",le);clearStateChar();le=Te;if(J.noext)clearStateChar();continue;case"(":if(fe){ee+="(";continue}if(!le){ee+="\\(";continue}ae.push({type:le,start:ye-1,reStart:ee.length,open:ne[le].open,close:ne[le].close});ee+=le==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",le,ee);le=false;continue;case")":if(fe||!ae.length){ee+="\\)";continue}clearStateChar();re=true;var be=ae.pop();ee+=be.close;if(be.type==="!"){ce.push(be)}be.reEnd=ee.length;continue;case"|":if(fe||!ae.length||se){ee+="\\|";se=false;continue}clearStateChar();ee+="|";continue;case"[":clearStateChar();if(fe){ee+="\\"+Te;continue}fe=true;he=ye;de=ee.length;ee+=Te;continue;case"]":if(ye===he+1||!fe){ee+="\\"+Te;se=false;continue}var Ee=b.substring(he+1,ye);try{RegExp("["+Ee+"]")}catch(b){var Ae=this.parse(Ee,pe);ee=ee.substr(0,de)+"\\["+Ae[0]+"\\]";re=re||Ae[1];fe=false;continue}re=true;fe=false;ee+=Te;continue;default:clearStateChar();if(se){se=false}else if(ue[Te]&&!(Te==="^"&&fe)){ee+="\\"}ee+=Te}}if(fe){Ee=b.substr(he+1);Ae=this.parse(Ee,pe);ee=ee.substr(0,de)+"\\["+Ae[0];re=re||Ae[1]}for(be=ae.pop();be;be=ae.pop()){var we=ee.slice(be.reStart+be.open.length);this.debug("setting tail",ee,be);we=we.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(b,S,J){if(!J){J="\\"}return S+S+J+"|"}));this.debug("tail=%j\n %s",we,we,be,ee);var _e=be.type==="*"?oe:be.type==="?"?ie:"\\"+be.type;re=true;ee=ee.slice(0,be.reStart)+_e+"\\("+we}clearStateChar();if(se){ee+="\\\\"}var xe=false;switch(ee.charAt(0)){case"[":case".":case"(":xe=true}for(var Pe=ce.length-1;Pe>-1;Pe--){var Ce=ce[Pe];var ke=ee.slice(0,Ce.reStart);var Se=ee.slice(Ce.reStart,Ce.reEnd-8);var De=ee.slice(Ce.reEnd-8,Ce.reEnd);var Ie=ee.slice(Ce.reEnd);De+=Ie;var Oe=ke.split("(").length-1;var Re=Ie;for(ye=0;ye<Oe;ye++){Re=Re.replace(/\)[+*?]?/,"")}Ie=Re;var Ne="";if(Ie===""&&S!==pe){Ne="$"}var Me=ke+Se+Ie+Ne+De;ee=Me}if(ee!==""&&re){ee="(?=.)"+ee}if(xe){ee=me+ee}if(S===pe){return[ee,re]}if(!re){return globUnescape(b)}var Fe=J.nocase?"i":"";try{var Le=new RegExp("^"+ee+"$",Fe)}catch(b){return new RegExp("$.")}Le._glob=b;Le._src=ee;return Le}minimatch.makeRe=function(b,S){return new Minimatch(b,S||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var b=this.set;if(!b.length){this.regexp=false;return this.regexp}var S=this.options;var J=S.noglobstar?oe:S.dot?se:ae;var ee=S.nocase?"i":"";var re=b.map((function(b){return b.map((function(b){return b===te?J:typeof b==="string"?regExpEscape(b):b._src})).join("\\/")})).join("|");re="^(?:"+re+")$";if(this.negate)re="^(?!"+re+").*$";try{this.regexp=new RegExp(re,ee)}catch(b){this.regexp=false}return this.regexp}minimatch.match=function(b,S,J){J=J||{};var ee=new Minimatch(S,J);b=b.filter((function(b){return ee.match(b)}));if(ee.options.nonull&&!b.length){b.push(S)}return b};Minimatch.prototype.match=function match(b,S){if(typeof S==="undefined")S=this.partial;this.debug("match",b,this.pattern);if(this.comment)return false;if(this.empty)return b==="";if(b==="/"&&S)return true;var J=this.options;if(ee.sep!=="/"){b=b.split(ee.sep).join("/")}b=b.split(ce);this.debug(this.pattern,"split",b);var te=this.set;this.debug(this.pattern,"set",te);var re;var ne;for(ne=b.length-1;ne>=0;ne--){re=b[ne];if(re)break}for(ne=0;ne<te.length;ne++){var ie=te[ne];var oe=b;if(J.matchBase&&ie.length===1){oe=[re]}var se=this.matchOne(oe,ie,S);if(se){if(J.flipNegate)return true;return!this.negate}}if(J.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(b,S,J){var ee=this.options;this.debug("matchOne",{this:this,file:b,pattern:S});this.debug("matchOne",b.length,S.length);for(var re=0,ne=0,ie=b.length,oe=S.length;re<ie&&ne<oe;re++,ne++){this.debug("matchOne loop");var se=S[ne];var ae=b[re];this.debug(S,se,ae);if(se===false)return false;if(se===te){this.debug("GLOBSTAR",[S,se,ae]);var ue=re;var ce=ne+1;if(ce===oe){this.debug("** at the end");for(;re<ie;re++){if(b[re]==="."||b[re]===".."||!ee.dot&&b[re].charAt(0)===".")return false}return true}while(ue<ie){var le=b[ue];this.debug("\nglobstar while",b,ue,S,ce,le);if(this.matchOne(b.slice(ue),S.slice(ce),J)){this.debug("globstar found match!",ue,ie,le);return true}else{if(le==="."||le===".."||!ee.dot&&le.charAt(0)==="."){this.debug("dot detected!",b,ue,S,ce);break}this.debug("globstar swallow a segment, and continue");ue++}}if(J){this.debug("\n>>> no match, partial?",b,ue,S,ce);if(ue===ie)return true}return false}var pe;if(typeof se==="string"){pe=ae===se;this.debug("string match",se,ae,pe)}else{pe=ae.match(se);this.debug("pattern match",se,ae,pe)}if(!pe)return false}if(re===ie&&ne===oe){return true}else if(re===ie){return J}else if(ne===oe){return re===ie-1&&b[re]===""}throw new Error("wtf?")};function globUnescape(b){return b.replace(/\\(.)/g,"$1")}function regExpEscape(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},87197:(b,S,J)=>{var ee=J(84586);b.exports=ee(once);b.exports.strict=ee(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(b){var f=function(){if(f.called)return f.value;f.called=true;return f.value=b.apply(this,arguments)};f.called=false;return f}function onceStrict(b){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=b.apply(this,arguments)};var S=b.name||"Function wrapped with `once`";f.onceError=S+" shouldn't be called more than once";f.called=false;return f}},74147:(b,S,J)=>{"use strict";var ee=J(22037);function homedir(){var b=process.env;var S=b.HOME;var J=b.LOGNAME||b.USER||b.LNAME||b.USERNAME;if(process.platform==="win32"){return b.USERPROFILE||b.HOMEDRIVE+b.HOMEPATH||S||null}if(process.platform==="darwin"){return S||(J?"/Users/"+J:null)}if(process.platform==="linux"){return S||(process.getuid()===0?"/root":J?"/home/"+J:null)}return S||null}b.exports=typeof ee.homedir==="function"?ee.homedir:homedir},50577:b=>{"use strict";var S=process.platform==="win32";var J=S?/[^:]\\$/:/.\/$/;b.exports=function(){var b;if(S){b=process.env.TEMP||process.env.TMP||(process.env.SystemRoot||process.env.windir)+"\\temp"}else{b=process.env.TMPDIR||process.env.TMP||process.env.TEMP||"/tmp"}if(J.test(b)){b=b.slice(0,-1)}return b}},69507:(b,S,J)=>{var ee=process.platform==="win32";var te=J(71017);var re=J(32081).exec;var ne=J(50577);var ie=J(74147);function memo(b,J,ee){var te=false;var ne=false;S[b]=function(ie){var oe=J();if(!oe&&!te&&!ne&&ee){te=true;ne=true;re(ee,(function(b,S,J){ne=false;if(b)return;oe=S.trim()}))}S[b]=function(b){if(b)process.nextTick(b.bind(null,null,oe));return oe};if(ie&&!ne)process.nextTick(ie.bind(null,null,oe));return oe}}memo("user",(function(){return ee?process.env.USERDOMAIN+"\\"+process.env.USERNAME:process.env.USER}),"whoami");memo("prompt",(function(){return ee?process.env.PROMPT:process.env.PS1}));memo("hostname",(function(){return ee?process.env.COMPUTERNAME:process.env.HOSTNAME}),"hostname");memo("tmpdir",(function(){return ne()}));memo("home",(function(){return ie()}));memo("path",(function(){return(process.env.PATH||process.env.Path||process.env.path).split(ee?";":":")}));memo("editor",(function(){return process.env.EDITOR||process.env.VISUAL||(ee?"notepad.exe":"vi")}));memo("shell",(function(){return ee?process.env.ComSpec||"cmd":process.env.SHELL||"bash"}))},35338:(b,S,J)=>{"use strict";const ee=J(56681);class EndError extends Error{constructor(b){super();this.value=b}}const testElement=async(b,S)=>S(await b);const finder=async b=>{const S=await Promise.all(b);if(S[1]===true){throw new EndError(S[0])}return false};const pLocate=async(b,S,J)=>{J={concurrency:Infinity,preserveOrder:true,...J};const te=ee(J.concurrency);const re=[...b].map((b=>[b,te(testElement,b,S)]));const ne=ee(J.preserveOrder?1:Infinity);try{await Promise.all(re.map((b=>ne(finder,b))))}catch(b){if(b instanceof EndError){return b.value}throw b}};b.exports=pLocate},56681:(b,S,J)=>{"use strict";const ee=J(57404);const pLimit=b=>{if(!((Number.isInteger(b)||b===Infinity)&&b>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const S=[];let J=0;const next=()=>{J--;if(S.length>0){S.shift()()}};const run=async(b,S,...te)=>{J++;const re=ee(b,...te);S(re);try{await re}catch{}next()};const enqueue=(ee,te,...re)=>{S.push(run.bind(null,ee,te,...re));(async()=>{await Promise.resolve();if(J<b&&S.length>0){S.shift()()}})()};const generator=(b,...S)=>new Promise((J=>enqueue(b,J,...S)));Object.defineProperties(generator,{activeCount:{get:()=>J},pendingCount:{get:()=>S.length},clearQueue:{value:()=>{S.length=0}}});return generator};b.exports=pLimit},57404:b=>{"use strict";const pTry=(b,...S)=>new Promise((J=>{J(b(...S))}));b.exports=pTry;b.exports["default"]=pTry},21323:b=>{"use strict";function posix(b){return b.charAt(0)==="/"}function win32(b){var S=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var J=S.exec(b);var ee=J[1]||"";var te=Boolean(ee&&ee.charAt(1)!==":");return Boolean(J[2]||te)}b.exports=process.platform==="win32"?win32:posix;b.exports.posix=posix;b.exports.win32=win32},9138:(b,S,J)=>{"use strict";b.exports=J(44755)},68223:(b,S,J)=>{"use strict";const ee=J(71017);const te="\\\\/";const re=`[^${te}]`;const ne="\\.";const ie="\\+";const oe="\\?";const se="\\/";const ae="(?=.)";const ue="[^/]";const ce=`(?:${se}|$)`;const le=`(?:^|${se})`;const pe=`${ne}{1,2}${ce}`;const fe=`(?!${ne})`;const de=`(?!${le}${pe})`;const he=`(?!${ne}{0,1}${ce})`;const me=`(?!${pe})`;const ge=`[^.${se}]`;const ye=`${ue}*?`;const ve={DOT_LITERAL:ne,PLUS_LITERAL:ie,QMARK_LITERAL:oe,SLASH_LITERAL:se,ONE_CHAR:ae,QMARK:ue,END_ANCHOR:ce,DOTS_SLASH:pe,NO_DOT:fe,NO_DOTS:de,NO_DOT_SLASH:he,NO_DOTS_SLASH:me,QMARK_NO_DOT:ge,STAR:ye,START_ANCHOR:le};const Te={...ve,SLASH_LITERAL:`[${te}]`,QMARK:re,STAR:`${re}*?`,DOTS_SLASH:`${ne}{1,2}(?:[${te}]|$)`,NO_DOT:`(?!${ne})`,NO_DOTS:`(?!(?:^|[${te}])${ne}{1,2}(?:[${te}]|$))`,NO_DOT_SLASH:`(?!${ne}{0,1}(?:[${te}]|$))`,NO_DOTS_SLASH:`(?!${ne}{1,2}(?:[${te}]|$))`,QMARK_NO_DOT:`[^.${te}]`,START_ANCHOR:`(?:^|[${te}])`,END_ANCHOR:`(?:[${te}]|$)`};const be={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};b.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:be,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:ee.sep,extglobChars(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===true?Te:ve}}},78573:(b,S,J)=>{"use strict";const ee=J(68223);const te=J(22924);const{MAX_LENGTH:re,POSIX_REGEX_SOURCE:ne,REGEX_NON_SPECIAL_CHARS:ie,REGEX_SPECIAL_CHARS_BACKREF:oe,REPLACEMENTS:se}=ee;const expandRange=(b,S)=>{if(typeof S.expandRange==="function"){return S.expandRange(...b,S)}b.sort();const J=`[${b.join("-")}]`;try{new RegExp(J)}catch(S){return b.map((b=>te.escapeRegex(b))).join("..")}return J};const syntaxError=(b,S)=>`Missing ${b}: "${S}" - use "\\\\${S}" to match literal characters`;const parse=(b,S)=>{if(typeof b!=="string"){throw new TypeError("Expected a string")}b=se[b]||b;const J={...S};const ae=typeof J.maxLength==="number"?Math.min(re,J.maxLength):re;let ue=b.length;if(ue>ae){throw new SyntaxError(`Input length: ${ue}, exceeds maximum allowed length: ${ae}`)}const ce={type:"bos",value:"",output:J.prepend||""};const le=[ce];const pe=J.capture?"":"?:";const fe=te.isWindows(S);const de=ee.globChars(fe);const he=ee.extglobChars(de);const{DOT_LITERAL:me,PLUS_LITERAL:ge,SLASH_LITERAL:ye,ONE_CHAR:ve,DOTS_SLASH:Te,NO_DOT:be,NO_DOT_SLASH:Ee,NO_DOTS_SLASH:Ae,QMARK:we,QMARK_NO_DOT:_e,STAR:xe,START_ANCHOR:Pe}=de;const globstar=b=>`(${pe}(?:(?!${Pe}${b.dot?Te:me}).)*?)`;const Ce=J.dot?"":be;const ke=J.dot?we:_e;let Se=J.bash===true?globstar(J):xe;if(J.capture){Se=`(${Se})`}if(typeof J.noext==="boolean"){J.noextglob=J.noext}const De={input:b,index:-1,start:0,dot:J.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:le};b=te.removePrefix(b,De);ue=b.length;const Ie=[];const Oe=[];const Re=[];let Ne=ce;let Me;const eos=()=>De.index===ue-1;const Fe=De.peek=(S=1)=>b[De.index+S];const Le=De.advance=()=>b[++De.index]||"";const remaining=()=>b.slice(De.index+1);const consume=(b="",S=0)=>{De.consumed+=b;De.index+=S};const append=b=>{De.output+=b.output!=null?b.output:b.value;consume(b.value)};const negate=()=>{let b=1;while(Fe()==="!"&&(Fe(2)!=="("||Fe(3)==="?")){Le();De.start++;b++}if(b%2===0){return false}De.negated=true;De.start++;return true};const increment=b=>{De[b]++;Re.push(b)};const decrement=b=>{De[b]--;Re.pop()};const push=b=>{if(Ne.type==="globstar"){const S=De.braces>0&&(b.type==="comma"||b.type==="brace");const J=b.extglob===true||Ie.length&&(b.type==="pipe"||b.type==="paren");if(b.type!=="slash"&&b.type!=="paren"&&!S&&!J){De.output=De.output.slice(0,-Ne.output.length);Ne.type="star";Ne.value="*";Ne.output=Se;De.output+=Ne.output}}if(Ie.length&&b.type!=="paren"){Ie[Ie.length-1].inner+=b.value}if(b.value||b.output)append(b);if(Ne&&Ne.type==="text"&&b.type==="text"){Ne.value+=b.value;Ne.output=(Ne.output||"")+b.value;return}b.prev=Ne;le.push(b);Ne=b};const extglobOpen=(b,S)=>{const ee={...he[S],conditions:1,inner:""};ee.prev=Ne;ee.parens=De.parens;ee.output=De.output;const te=(J.capture?"(":"")+ee.open;increment("parens");push({type:b,value:S,output:De.output?"":ve});push({type:"paren",extglob:true,value:Le(),output:te});Ie.push(ee)};const extglobClose=b=>{let S=b.close+(J.capture?")":"");let ee;if(b.type==="negate"){let te=Se;if(b.inner&&b.inner.length>1&&b.inner.includes("/")){te=globstar(J)}if(te!==Se||eos()||/^\)+$/.test(remaining())){S=b.close=`)$))${te}`}if(b.inner.includes("*")&&(ee=remaining())&&/^\.[^\\/.]+$/.test(ee)){S=b.close=`)${ee})${te})`}if(b.prev.type==="bos"){De.negatedExtglob=true}}push({type:"paren",extglob:true,value:Me,output:S});decrement("parens")};if(J.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(b)){let ee=false;let re=b.replace(oe,((b,S,J,te,re,ne)=>{if(te==="\\"){ee=true;return b}if(te==="?"){if(S){return S+te+(re?we.repeat(re.length):"")}if(ne===0){return ke+(re?we.repeat(re.length):"")}return we.repeat(J.length)}if(te==="."){return me.repeat(J.length)}if(te==="*"){if(S){return S+te+(re?Se:"")}return Se}return S?b:`\\${b}`}));if(ee===true){if(J.unescape===true){re=re.replace(/\\/g,"")}else{re=re.replace(/\\+/g,(b=>b.length%2===0?"\\\\":b?"\\":""))}}if(re===b&&J.contains===true){De.output=b;return De}De.output=te.wrapOutput(re,De,S);return De}while(!eos()){Me=Le();if(Me==="\0"){continue}if(Me==="\\"){const b=Fe();if(b==="/"&&J.bash!==true){continue}if(b==="."||b===";"){continue}if(!b){Me+="\\";push({type:"text",value:Me});continue}const S=/^\\+/.exec(remaining());let ee=0;if(S&&S[0].length>2){ee=S[0].length;De.index+=ee;if(ee%2!==0){Me+="\\"}}if(J.unescape===true){Me=Le()}else{Me+=Le()}if(De.brackets===0){push({type:"text",value:Me});continue}}if(De.brackets>0&&(Me!=="]"||Ne.value==="["||Ne.value==="[^")){if(J.posix!==false&&Me===":"){const b=Ne.value.slice(1);if(b.includes("[")){Ne.posix=true;if(b.includes(":")){const b=Ne.value.lastIndexOf("[");const S=Ne.value.slice(0,b);const J=Ne.value.slice(b+2);const ee=ne[J];if(ee){Ne.value=S+ee;De.backtrack=true;Le();if(!ce.output&&le.indexOf(Ne)===1){ce.output=ve}continue}}}}if(Me==="["&&Fe()!==":"||Me==="-"&&Fe()==="]"){Me=`\\${Me}`}if(Me==="]"&&(Ne.value==="["||Ne.value==="[^")){Me=`\\${Me}`}if(J.posix===true&&Me==="!"&&Ne.value==="["){Me="^"}Ne.value+=Me;append({value:Me});continue}if(De.quotes===1&&Me!=='"'){Me=te.escapeRegex(Me);Ne.value+=Me;append({value:Me});continue}if(Me==='"'){De.quotes=De.quotes===1?0:1;if(J.keepQuotes===true){push({type:"text",value:Me})}continue}if(Me==="("){increment("parens");push({type:"paren",value:Me});continue}if(Me===")"){if(De.parens===0&&J.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const b=Ie[Ie.length-1];if(b&&De.parens===b.parens+1){extglobClose(Ie.pop());continue}push({type:"paren",value:Me,output:De.parens?")":"\\)"});decrement("parens");continue}if(Me==="["){if(J.nobracket===true||!remaining().includes("]")){if(J.nobracket!==true&&J.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}Me=`\\${Me}`}else{increment("brackets")}push({type:"bracket",value:Me});continue}if(Me==="]"){if(J.nobracket===true||Ne&&Ne.type==="bracket"&&Ne.value.length===1){push({type:"text",value:Me,output:`\\${Me}`});continue}if(De.brackets===0){if(J.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:Me,output:`\\${Me}`});continue}decrement("brackets");const b=Ne.value.slice(1);if(Ne.posix!==true&&b[0]==="^"&&!b.includes("/")){Me=`/${Me}`}Ne.value+=Me;append({value:Me});if(J.literalBrackets===false||te.hasRegexChars(b)){continue}const S=te.escapeRegex(Ne.value);De.output=De.output.slice(0,-Ne.value.length);if(J.literalBrackets===true){De.output+=S;Ne.value=S;continue}Ne.value=`(${pe}${S}|${Ne.value})`;De.output+=Ne.value;continue}if(Me==="{"&&J.nobrace!==true){increment("braces");const b={type:"brace",value:Me,output:"(",outputIndex:De.output.length,tokensIndex:De.tokens.length};Oe.push(b);push(b);continue}if(Me==="}"){const b=Oe[Oe.length-1];if(J.nobrace===true||!b){push({type:"text",value:Me,output:Me});continue}let S=")";if(b.dots===true){const b=le.slice();const ee=[];for(let S=b.length-1;S>=0;S--){le.pop();if(b[S].type==="brace"){break}if(b[S].type!=="dots"){ee.unshift(b[S].value)}}S=expandRange(ee,J);De.backtrack=true}if(b.comma!==true&&b.dots!==true){const J=De.output.slice(0,b.outputIndex);const ee=De.tokens.slice(b.tokensIndex);b.value=b.output="\\{";Me=S="\\}";De.output=J;for(const b of ee){De.output+=b.output||b.value}}push({type:"brace",value:Me,output:S});decrement("braces");Oe.pop();continue}if(Me==="|"){if(Ie.length>0){Ie[Ie.length-1].conditions++}push({type:"text",value:Me});continue}if(Me===","){let b=Me;const S=Oe[Oe.length-1];if(S&&Re[Re.length-1]==="braces"){S.comma=true;b="|"}push({type:"comma",value:Me,output:b});continue}if(Me==="/"){if(Ne.type==="dot"&&De.index===De.start+1){De.start=De.index+1;De.consumed="";De.output="";le.pop();Ne=ce;continue}push({type:"slash",value:Me,output:ye});continue}if(Me==="."){if(De.braces>0&&Ne.type==="dot"){if(Ne.value===".")Ne.output=me;const b=Oe[Oe.length-1];Ne.type="dots";Ne.output+=Me;Ne.value+=Me;b.dots=true;continue}if(De.braces+De.parens===0&&Ne.type!=="bos"&&Ne.type!=="slash"){push({type:"text",value:Me,output:me});continue}push({type:"dot",value:Me,output:me});continue}if(Me==="?"){const b=Ne&&Ne.value==="(";if(!b&&J.noextglob!==true&&Fe()==="("&&Fe(2)!=="?"){extglobOpen("qmark",Me);continue}if(Ne&&Ne.type==="paren"){const b=Fe();let S=Me;if(b==="<"&&!te.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(Ne.value==="("&&!/[!=<:]/.test(b)||b==="<"&&!/<([!=]|\w+>)/.test(remaining())){S=`\\${Me}`}push({type:"text",value:Me,output:S});continue}if(J.dot!==true&&(Ne.type==="slash"||Ne.type==="bos")){push({type:"qmark",value:Me,output:_e});continue}push({type:"qmark",value:Me,output:we});continue}if(Me==="!"){if(J.noextglob!==true&&Fe()==="("){if(Fe(2)!=="?"||!/[!=<:]/.test(Fe(3))){extglobOpen("negate",Me);continue}}if(J.nonegate!==true&&De.index===0){negate();continue}}if(Me==="+"){if(J.noextglob!==true&&Fe()==="("&&Fe(2)!=="?"){extglobOpen("plus",Me);continue}if(Ne&&Ne.value==="("||J.regex===false){push({type:"plus",value:Me,output:ge});continue}if(Ne&&(Ne.type==="bracket"||Ne.type==="paren"||Ne.type==="brace")||De.parens>0){push({type:"plus",value:Me});continue}push({type:"plus",value:ge});continue}if(Me==="@"){if(J.noextglob!==true&&Fe()==="("&&Fe(2)!=="?"){push({type:"at",extglob:true,value:Me,output:""});continue}push({type:"text",value:Me});continue}if(Me!=="*"){if(Me==="$"||Me==="^"){Me=`\\${Me}`}const b=ie.exec(remaining());if(b){Me+=b[0];De.index+=b[0].length}push({type:"text",value:Me});continue}if(Ne&&(Ne.type==="globstar"||Ne.star===true)){Ne.type="star";Ne.star=true;Ne.value+=Me;Ne.output=Se;De.backtrack=true;De.globstar=true;consume(Me);continue}let S=remaining();if(J.noextglob!==true&&/^\([^?]/.test(S)){extglobOpen("star",Me);continue}if(Ne.type==="star"){if(J.noglobstar===true){consume(Me);continue}const ee=Ne.prev;const te=ee.prev;const re=ee.type==="slash"||ee.type==="bos";const ne=te&&(te.type==="star"||te.type==="globstar");if(J.bash===true&&(!re||S[0]&&S[0]!=="/")){push({type:"star",value:Me,output:""});continue}const ie=De.braces>0&&(ee.type==="comma"||ee.type==="brace");const oe=Ie.length&&(ee.type==="pipe"||ee.type==="paren");if(!re&&ee.type!=="paren"&&!ie&&!oe){push({type:"star",value:Me,output:""});continue}while(S.slice(0,3)==="/**"){const J=b[De.index+4];if(J&&J!=="/"){break}S=S.slice(3);consume("/**",3)}if(ee.type==="bos"&&eos()){Ne.type="globstar";Ne.value+=Me;Ne.output=globstar(J);De.output=Ne.output;De.globstar=true;consume(Me);continue}if(ee.type==="slash"&&ee.prev.type!=="bos"&&!ne&&eos()){De.output=De.output.slice(0,-(ee.output+Ne.output).length);ee.output=`(?:${ee.output}`;Ne.type="globstar";Ne.output=globstar(J)+(J.strictSlashes?")":"|$)");Ne.value+=Me;De.globstar=true;De.output+=ee.output+Ne.output;consume(Me);continue}if(ee.type==="slash"&&ee.prev.type!=="bos"&&S[0]==="/"){const b=S[1]!==void 0?"|$":"";De.output=De.output.slice(0,-(ee.output+Ne.output).length);ee.output=`(?:${ee.output}`;Ne.type="globstar";Ne.output=`${globstar(J)}${ye}|${ye}${b})`;Ne.value+=Me;De.output+=ee.output+Ne.output;De.globstar=true;consume(Me+Le());push({type:"slash",value:"/",output:""});continue}if(ee.type==="bos"&&S[0]==="/"){Ne.type="globstar";Ne.value+=Me;Ne.output=`(?:^|${ye}|${globstar(J)}${ye})`;De.output=Ne.output;De.globstar=true;consume(Me+Le());push({type:"slash",value:"/",output:""});continue}De.output=De.output.slice(0,-Ne.output.length);Ne.type="globstar";Ne.output=globstar(J);Ne.value+=Me;De.output+=Ne.output;De.globstar=true;consume(Me);continue}const ee={type:"star",value:Me,output:Se};if(J.bash===true){ee.output=".*?";if(Ne.type==="bos"||Ne.type==="slash"){ee.output=Ce+ee.output}push(ee);continue}if(Ne&&(Ne.type==="bracket"||Ne.type==="paren")&&J.regex===true){ee.output=Me;push(ee);continue}if(De.index===De.start||Ne.type==="slash"||Ne.type==="dot"){if(Ne.type==="dot"){De.output+=Ee;Ne.output+=Ee}else if(J.dot===true){De.output+=Ae;Ne.output+=Ae}else{De.output+=Ce;Ne.output+=Ce}if(Fe()!=="*"){De.output+=ve;Ne.output+=ve}}push(ee)}while(De.brackets>0){if(J.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));De.output=te.escapeLast(De.output,"[");decrement("brackets")}while(De.parens>0){if(J.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));De.output=te.escapeLast(De.output,"(");decrement("parens")}while(De.braces>0){if(J.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));De.output=te.escapeLast(De.output,"{");decrement("braces")}if(J.strictSlashes!==true&&(Ne.type==="star"||Ne.type==="bracket")){push({type:"maybe_slash",value:"",output:`${ye}?`})}if(De.backtrack===true){De.output="";for(const b of De.tokens){De.output+=b.output!=null?b.output:b.value;if(b.suffix){De.output+=b.suffix}}}return De};parse.fastpaths=(b,S)=>{const J={...S};const ne=typeof J.maxLength==="number"?Math.min(re,J.maxLength):re;const ie=b.length;if(ie>ne){throw new SyntaxError(`Input length: ${ie}, exceeds maximum allowed length: ${ne}`)}b=se[b]||b;const oe=te.isWindows(S);const{DOT_LITERAL:ae,SLASH_LITERAL:ue,ONE_CHAR:ce,DOTS_SLASH:le,NO_DOT:pe,NO_DOTS:fe,NO_DOTS_SLASH:de,STAR:he,START_ANCHOR:me}=ee.globChars(oe);const ge=J.dot?fe:pe;const ye=J.dot?de:pe;const ve=J.capture?"":"?:";const Te={negated:false,prefix:""};let be=J.bash===true?".*?":he;if(J.capture){be=`(${be})`}const globstar=b=>{if(b.noglobstar===true)return be;return`(${ve}(?:(?!${me}${b.dot?le:ae}).)*?)`};const create=b=>{switch(b){case"*":return`${ge}${ce}${be}`;case".*":return`${ae}${ce}${be}`;case"*.*":return`${ge}${be}${ae}${ce}${be}`;case"*/*":return`${ge}${be}${ue}${ce}${ye}${be}`;case"**":return ge+globstar(J);case"**/*":return`(?:${ge}${globstar(J)}${ue})?${ye}${ce}${be}`;case"**/*.*":return`(?:${ge}${globstar(J)}${ue})?${ye}${be}${ae}${ce}${be}`;case"**/.*":return`(?:${ge}${globstar(J)}${ue})?${ae}${ce}${be}`;default:{const S=/^(.*?)\.(\w+)$/.exec(b);if(!S)return;const J=create(S[1]);if(!J)return;return J+ae+S[2]}}};const Ee=te.removePrefix(b,Te);let Ae=create(Ee);if(Ae&&J.strictSlashes!==true){Ae+=`${ue}?`}return Ae};b.exports=parse},44755:(b,S,J)=>{"use strict";const ee=J(71017);const te=J(2017);const re=J(78573);const ne=J(22924);const ie=J(68223);const isObject=b=>b&&typeof b==="object"&&!Array.isArray(b);const picomatch=(b,S,J=false)=>{if(Array.isArray(b)){const ee=b.map((b=>picomatch(b,S,J)));const arrayMatcher=b=>{for(const S of ee){const J=S(b);if(J)return J}return false};return arrayMatcher}const ee=isObject(b)&&b.tokens&&b.input;if(b===""||typeof b!=="string"&&!ee){throw new TypeError("Expected pattern to be a non-empty string")}const te=S||{};const re=ne.isWindows(S);const ie=ee?picomatch.compileRe(b,S):picomatch.makeRe(b,S,false,true);const oe=ie.state;delete ie.state;let isIgnored=()=>false;if(te.ignore){const b={...S,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(te.ignore,b,J)}const matcher=(J,ee=false)=>{const{isMatch:ne,match:se,output:ae}=picomatch.test(J,ie,S,{glob:b,posix:re});const ue={glob:b,state:oe,regex:ie,posix:re,input:J,output:ae,match:se,isMatch:ne};if(typeof te.onResult==="function"){te.onResult(ue)}if(ne===false){ue.isMatch=false;return ee?ue:false}if(isIgnored(J)){if(typeof te.onIgnore==="function"){te.onIgnore(ue)}ue.isMatch=false;return ee?ue:false}if(typeof te.onMatch==="function"){te.onMatch(ue)}return ee?ue:true};if(J){matcher.state=oe}return matcher};picomatch.test=(b,S,J,{glob:ee,posix:te}={})=>{if(typeof b!=="string"){throw new TypeError("Expected input to be a string")}if(b===""){return{isMatch:false,output:""}}const re=J||{};const ie=re.format||(te?ne.toPosixSlashes:null);let oe=b===ee;let se=oe&&ie?ie(b):b;if(oe===false){se=ie?ie(b):b;oe=se===ee}if(oe===false||re.capture===true){if(re.matchBase===true||re.basename===true){oe=picomatch.matchBase(b,S,J,te)}else{oe=S.exec(se)}}return{isMatch:Boolean(oe),match:oe,output:se}};picomatch.matchBase=(b,S,J,te=ne.isWindows(J))=>{const re=S instanceof RegExp?S:picomatch.makeRe(S,J);return re.test(ee.basename(b))};picomatch.isMatch=(b,S,J)=>picomatch(S,J)(b);picomatch.parse=(b,S)=>{if(Array.isArray(b))return b.map((b=>picomatch.parse(b,S)));return re(b,{...S,fastpaths:false})};picomatch.scan=(b,S)=>te(b,S);picomatch.compileRe=(b,S,J=false,ee=false)=>{if(J===true){return b.output}const te=S||{};const re=te.contains?"":"^";const ne=te.contains?"":"$";let ie=`${re}(?:${b.output})${ne}`;if(b&&b.negated===true){ie=`^(?!${ie}).*$`}const oe=picomatch.toRegex(ie,S);if(ee===true){oe.state=b}return oe};picomatch.makeRe=(b,S={},J=false,ee=false)=>{if(!b||typeof b!=="string"){throw new TypeError("Expected a non-empty string")}let te={negated:false,fastpaths:true};if(S.fastpaths!==false&&(b[0]==="."||b[0]==="*")){te.output=re.fastpaths(b,S)}if(!te.output){te=re(b,S)}return picomatch.compileRe(te,S,J,ee)};picomatch.toRegex=(b,S)=>{try{const J=S||{};return new RegExp(b,J.flags||(J.nocase?"i":""))}catch(b){if(S&&S.debug===true)throw b;return/$^/}};picomatch.constants=ie;b.exports=picomatch},2017:(b,S,J)=>{"use strict";const ee=J(22924);const{CHAR_ASTERISK:te,CHAR_AT:re,CHAR_BACKWARD_SLASH:ne,CHAR_COMMA:ie,CHAR_DOT:oe,CHAR_EXCLAMATION_MARK:se,CHAR_FORWARD_SLASH:ae,CHAR_LEFT_CURLY_BRACE:ue,CHAR_LEFT_PARENTHESES:ce,CHAR_LEFT_SQUARE_BRACKET:le,CHAR_PLUS:pe,CHAR_QUESTION_MARK:fe,CHAR_RIGHT_CURLY_BRACE:de,CHAR_RIGHT_PARENTHESES:he,CHAR_RIGHT_SQUARE_BRACKET:me}=J(68223);const isPathSeparator=b=>b===ae||b===ne;const depth=b=>{if(b.isPrefix!==true){b.depth=b.isGlobstar?Infinity:1}};const scan=(b,S)=>{const J=S||{};const ge=b.length-1;const ye=J.parts===true||J.scanToEnd===true;const ve=[];const Te=[];const be=[];let Ee=b;let Ae=-1;let we=0;let _e=0;let xe=false;let Pe=false;let Ce=false;let ke=false;let Se=false;let De=false;let Ie=false;let Oe=false;let Re=false;let Ne=false;let Me=0;let Fe;let Le;let je={value:"",depth:0,isGlob:false};const eos=()=>Ae>=ge;const peek=()=>Ee.charCodeAt(Ae+1);const advance=()=>{Fe=Le;return Ee.charCodeAt(++Ae)};while(Ae<ge){Le=advance();let b;if(Le===ne){Ie=je.backslashes=true;Le=advance();if(Le===ue){De=true}continue}if(De===true||Le===ue){Me++;while(eos()!==true&&(Le=advance())){if(Le===ne){Ie=je.backslashes=true;advance();continue}if(Le===ue){Me++;continue}if(De!==true&&Le===oe&&(Le=advance())===oe){xe=je.isBrace=true;Ce=je.isGlob=true;Ne=true;if(ye===true){continue}break}if(De!==true&&Le===ie){xe=je.isBrace=true;Ce=je.isGlob=true;Ne=true;if(ye===true){continue}break}if(Le===de){Me--;if(Me===0){De=false;xe=je.isBrace=true;Ne=true;break}}}if(ye===true){continue}break}if(Le===ae){ve.push(Ae);Te.push(je);je={value:"",depth:0,isGlob:false};if(Ne===true)continue;if(Fe===oe&&Ae===we+1){we+=2;continue}_e=Ae+1;continue}if(J.noext!==true){const b=Le===pe||Le===re||Le===te||Le===fe||Le===se;if(b===true&&peek()===ce){Ce=je.isGlob=true;ke=je.isExtglob=true;Ne=true;if(Le===se&&Ae===we){Re=true}if(ye===true){while(eos()!==true&&(Le=advance())){if(Le===ne){Ie=je.backslashes=true;Le=advance();continue}if(Le===he){Ce=je.isGlob=true;Ne=true;break}}continue}break}}if(Le===te){if(Fe===te)Se=je.isGlobstar=true;Ce=je.isGlob=true;Ne=true;if(ye===true){continue}break}if(Le===fe){Ce=je.isGlob=true;Ne=true;if(ye===true){continue}break}if(Le===le){while(eos()!==true&&(b=advance())){if(b===ne){Ie=je.backslashes=true;advance();continue}if(b===me){Pe=je.isBracket=true;Ce=je.isGlob=true;Ne=true;break}}if(ye===true){continue}break}if(J.nonegate!==true&&Le===se&&Ae===we){Oe=je.negated=true;we++;continue}if(J.noparen!==true&&Le===ce){Ce=je.isGlob=true;if(ye===true){while(eos()!==true&&(Le=advance())){if(Le===ce){Ie=je.backslashes=true;Le=advance();continue}if(Le===he){Ne=true;break}}continue}break}if(Ce===true){Ne=true;if(ye===true){continue}break}}if(J.noext===true){ke=false;Ce=false}let Be=Ee;let $e="";let Ue="";if(we>0){$e=Ee.slice(0,we);Ee=Ee.slice(we);_e-=we}if(Be&&Ce===true&&_e>0){Be=Ee.slice(0,_e);Ue=Ee.slice(_e)}else if(Ce===true){Be="";Ue=Ee}else{Be=Ee}if(Be&&Be!==""&&Be!=="/"&&Be!==Ee){if(isPathSeparator(Be.charCodeAt(Be.length-1))){Be=Be.slice(0,-1)}}if(J.unescape===true){if(Ue)Ue=ee.removeBackslashes(Ue);if(Be&&Ie===true){Be=ee.removeBackslashes(Be)}}const Xe={prefix:$e,input:b,start:we,base:Be,glob:Ue,isBrace:xe,isBracket:Pe,isGlob:Ce,isExtglob:ke,isGlobstar:Se,negated:Oe,negatedExtglob:Re};if(J.tokens===true){Xe.maxDepth=0;if(!isPathSeparator(Le)){Te.push(je)}Xe.tokens=Te}if(J.parts===true||J.tokens===true){let S;for(let ee=0;ee<ve.length;ee++){const te=S?S+1:we;const re=ve[ee];const ne=b.slice(te,re);if(J.tokens){if(ee===0&&we!==0){Te[ee].isPrefix=true;Te[ee].value=$e}else{Te[ee].value=ne}depth(Te[ee]);Xe.maxDepth+=Te[ee].depth}if(ee!==0||ne!==""){be.push(ne)}S=re}if(S&&S+1<b.length){const ee=b.slice(S+1);be.push(ee);if(J.tokens){Te[Te.length-1].value=ee;depth(Te[Te.length-1]);Xe.maxDepth+=Te[Te.length-1].depth}}Xe.slashes=ve;Xe.parts=be}return Xe};b.exports=scan},22924:(b,S,J)=>{"use strict";const ee=J(71017);const te=process.platform==="win32";const{REGEX_BACKSLASH:re,REGEX_REMOVE_BACKSLASH:ne,REGEX_SPECIAL_CHARS:ie,REGEX_SPECIAL_CHARS_GLOBAL:oe}=J(68223);S.isObject=b=>b!==null&&typeof b==="object"&&!Array.isArray(b);S.hasRegexChars=b=>ie.test(b);S.isRegexChar=b=>b.length===1&&S.hasRegexChars(b);S.escapeRegex=b=>b.replace(oe,"\\$1");S.toPosixSlashes=b=>b.replace(re,"/");S.removeBackslashes=b=>b.replace(ne,(b=>b==="\\"?"":b));S.supportsLookbehinds=()=>{const b=process.version.slice(1).split(".").map(Number);if(b.length===3&&b[0]>=9||b[0]===8&&b[1]>=10){return true}return false};S.isWindows=b=>{if(b&&typeof b.windows==="boolean"){return b.windows}return te===true||ee.sep==="\\"};S.escapeLast=(b,J,ee)=>{const te=b.lastIndexOf(J,ee);if(te===-1)return b;if(b[te-1]==="\\")return S.escapeLast(b,J,te-1);return`${b.slice(0,te)}\\${b.slice(te)}`};S.removePrefix=(b,S={})=>{let J=b;if(J.startsWith("./")){J=J.slice(2);S.prefix="./"}return J};S.wrapOutput=(b,S={},J={})=>{const ee=J.contains?"":"^";const te=J.contains?"":"$";let re=`${ee}(?:${b})${te}`;if(S.negated===true){re=`(?:^(?!${re}).*$)`}return re}},399:b=>{"use strict";class DatePart{constructor({token:b,date:S,parts:J,locales:ee}){this.token=b;this.date=S||new Date;this.parts=J||[this];this.locales=ee||{}}up(){}down(){}next(){const b=this.parts.indexOf(this);return this.parts.find(((S,J)=>J>b&&S instanceof DatePart))}setTo(b){}prev(){let b=[].concat(this.parts).reverse();const S=b.indexOf(this);return b.find(((b,J)=>J>S&&b instanceof DatePart))}toString(){return String(this.date)}}b.exports=DatePart},97967:(b,S,J)=>{"use strict";const ee=J(399);const pos=b=>{b=b%10;return b===1?"st":b===2?"nd":b===3?"rd":"th"};class Day extends ee{constructor(b={}){super(b)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(b){this.date.setDate(parseInt(b.substr(-2)))}toString(){let b=this.date.getDate();let S=this.date.getDay();return this.token==="DD"?String(b).padStart(2,"0"):this.token==="Do"?b+pos(b):this.token==="d"?S+1:this.token==="ddd"?this.locales.weekdaysShort[S]:this.token==="dddd"?this.locales.weekdays[S]:b}}b.exports=Day},4102:(b,S,J)=>{"use strict";const ee=J(399);class Hours extends ee{constructor(b={}){super(b)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(b){this.date.setHours(parseInt(b.substr(-2)))}toString(){let b=this.date.getHours();if(/h/.test(this.token))b=b%12||12;return this.token.length>1?String(b).padStart(2,"0"):b}}b.exports=Hours},47517:(b,S,J)=>{"use strict";b.exports={DatePart:J(399),Meridiem:J(84128),Day:J(97967),Hours:J(4102),Milliseconds:J(76945),Minutes:J(87829),Month:J(78608),Seconds:J(90812),Year:J(15227)}},84128:(b,S,J)=>{"use strict";const ee=J(399);class Meridiem extends ee{constructor(b={}){super(b)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let b=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?b.toUpperCase():b}}b.exports=Meridiem},76945:(b,S,J)=>{"use strict";const ee=J(399);class Milliseconds extends ee{constructor(b={}){super(b)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(b){this.date.setMilliseconds(parseInt(b.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}b.exports=Milliseconds},87829:(b,S,J)=>{"use strict";const ee=J(399);class Minutes extends ee{constructor(b={}){super(b)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(b){this.date.setMinutes(parseInt(b.substr(-2)))}toString(){let b=this.date.getMinutes();return this.token.length>1?String(b).padStart(2,"0"):b}}b.exports=Minutes},78608:(b,S,J)=>{"use strict";const ee=J(399);class Month extends ee{constructor(b={}){super(b)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(b){b=parseInt(b.substr(-2))-1;this.date.setMonth(b<0?0:b)}toString(){let b=this.date.getMonth();let S=this.token.length;return S===2?String(b+1).padStart(2,"0"):S===3?this.locales.monthsShort[b]:S===4?this.locales.months[b]:String(b+1)}}b.exports=Month},90812:(b,S,J)=>{"use strict";const ee=J(399);class Seconds extends ee{constructor(b={}){super(b)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(b){this.date.setSeconds(parseInt(b.substr(-2)))}toString(){let b=this.date.getSeconds();return this.token.length>1?String(b).padStart(2,"0"):b}}b.exports=Seconds},15227:(b,S,J)=>{"use strict";const ee=J(399);class Year extends ee{constructor(b={}){super(b)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(b){this.date.setFullYear(b.substr(-4))}toString(){let b=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?b.substr(-2):b}}b.exports=Year},90935:(b,S,J)=>{"use strict";function asyncGeneratorStep(b,S,J,ee,te,re,ne){try{var ie=b[re](ne);var oe=ie.value}catch(b){J(b);return}if(ie.done){S(oe)}else{Promise.resolve(oe).then(ee,te)}}function _asyncToGenerator(b){return function(){var S=this,J=arguments;return new Promise((function(ee,te){var re=b.apply(S,J);function _next(b){asyncGeneratorStep(re,ee,te,_next,_throw,"next",b)}function _throw(b){asyncGeneratorStep(re,ee,te,_next,_throw,"throw",b)}_next(undefined)}))}}const ee=J(59439);const te=J(65876);const re=J(20332),ne=re.erase,ie=re.cursor;const oe=J(92800),se=oe.style,ae=oe.clear,ue=oe.figures,ce=oe.wrap,le=oe.entriesToDisplay;const getVal=(b,S)=>b[S]&&(b[S].value||b[S].title||b[S]);const getTitle=(b,S)=>b[S]&&(b[S].title||b[S].value||b[S]);const getIndex=(b,S)=>{const J=b.findIndex((b=>b.value===S||b.title===S));return J>-1?J:undefined};class AutocompletePrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.suggest=b.suggest;this.choices=b.choices;this.initial=typeof b.initial==="number"?b.initial:getIndex(b.choices,b.initial);this.select=this.initial||b.cursor||0;this.i18n={noMatches:b.noMatches||"no matches found"};this.fallback=b.fallback||this.initial;this.clearFirst=b.clearFirst||false;this.suggestions=[];this.input="";this.limit=b.limit||10;this.cursor=0;this.transform=se.render(b.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=ae("",this.out.columns);this.complete(this.render);this.render()}set fallback(b){this._fb=Number.isSafeInteger(parseInt(b))?parseInt(b):b}get fallback(){let b;if(typeof this._fb==="number")b=this.choices[this._fb];else if(typeof this._fb==="string")b={title:this._fb};return b||this._fb||{title:this.i18n.noMatches}}moveSelect(b){this.select=b;if(this.suggestions.length>0)this.value=getVal(this.suggestions,b);else this.value=this.fallback.value;this.fire()}complete(b){var S=this;return _asyncToGenerator((function*(){const J=S.completing=S.suggest(S.input,S.choices);const ee=yield J;if(S.completing!==J)return;S.suggestions=ee.map(((b,S,J)=>({title:getTitle(J,S),value:getVal(J,S),description:b.description})));S.completing=false;const te=Math.max(ee.length-1,0);S.moveSelect(Math.min(te,S.select));b&&b()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(b,S){let J=this.input.slice(0,this.cursor);let ee=this.input.slice(this.cursor);this.input=`${J}${b}${ee}`;this.cursor=J.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let b=this.input.slice(0,this.cursor-1);let S=this.input.slice(this.cursor);this.input=`${b}${S}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let b=this.input.slice(0,this.cursor);let S=this.input.slice(this.cursor+1);this.input=`${b}${S}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(b,S,J,te){let re;let ne=J?ue.arrowUp:te?ue.arrowDown:" ";let ie=S?ee.cyan().underline(b.title):b.title;ne=(S?ee.cyan(ue.pointer)+" ":" ")+ne;if(b.description){re=` - ${b.description}`;if(ne.length+ie.length+re.length>=this.out.columns||b.description.split(/\r?\n/).length>1){re="\n"+ce(b.description,{margin:3,width:this.out.columns})}}return ne+" "+ie+ee.gray(re||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(ie.hide);else this.out.write(ae(this.outputText,this.out.columns));super.render();let b=le(this.select,this.choices.length,this.limit),S=b.startIndex,J=b.endIndex;this.outputText=[se.symbol(this.done,this.aborted,this.exited),ee.bold(this.msg),se.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const b=this.suggestions.slice(S,J).map(((b,ee)=>this.renderOption(b,this.select===ee+S,ee===0&&S>0,ee+S===J-1&&J<this.choices.length))).join("\n");this.outputText+=`\n`+(b||ee.gray(this.fallback.title))}this.out.write(ne.line+ie.to(0)+this.outputText)}}b.exports=AutocompletePrompt},22040:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(20332),re=te.cursor;const ne=J(24047);const ie=J(92800),oe=ie.clear,se=ie.style,ae=ie.figures;class AutocompleteMultiselectPrompt extends ne{constructor(b={}){b.overrideRender=true;super(b);this.inputValue="";this.clear=oe("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((b=>b.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const b=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((b=>{if(this.inputValue){if(typeof b.title==="string"){if(b.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof b.value==="string"){if(b.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const S=this.filteredOptions.findIndex((S=>S===b));this.cursor=S<0?0:S;this.render()}handleSpaceToggle(){const b=this.filteredOptions[this.cursor];if(b.selected){b.selected=false;this.render()}else if(b.disabled||this.value.filter((b=>b.selected)).length>=this.maxChoices){return this.bell()}else{b.selected=true;this.render()}}handleInputChange(b){this.inputValue=this.inputValue+b;this.updateFilteredOptions()}_(b,S){if(b===" "){this.handleSpaceToggle()}else{this.handleInputChange(b)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${ae.arrowUp}/${ae.arrowDown}: Highlight option\n ${ae.arrowLeft}/${ae.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:ee.gray("Enter something to filter")}\n`}renderOption(b,S,J){let te;if(S.disabled)te=b===J?ee.gray().underline(S.title):ee.strikethrough().gray(S.title);else te=b===J?ee.cyan().underline(S.title):S.title;return(S.selected?ee.green(ae.radioOn):ae.radioOff)+" "+te}renderDoneOrInstructions(){if(this.done){return this.value.filter((b=>b.selected)).map((b=>b.title)).join(", ")}const b=[ee.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){b.push(ee.yellow(this.warn))}return b.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(re.hide);super.render();let b=[se.symbol(this.done,this.aborted),ee.bold(this.msg),se.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){b+=ee.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}b+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+b);this.clear=oe(b,this.out.columns)}}b.exports=AutocompleteMultiselectPrompt},5680:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(65876);const re=J(92800),ne=re.style,ie=re.clear;const oe=J(20332),se=oe.erase,ae=oe.cursor;class ConfirmPrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.value=b.initial;this.initialValue=!!b.initial;this.yesMsg=b.yes||"yes";this.yesOption=b.yesOption||"(Y/n)";this.noMsg=b.no||"no";this.noOption=b.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(b,S){if(b.toLowerCase()==="y"){this.value=true;return this.submit()}if(b.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(ae.hide);else this.out.write(ie(this.outputText,this.out.columns));super.render();this.outputText=[ne.symbol(this.done,this.aborted),ee.bold(this.msg),ne.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:ee.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(se.line+ae.to(0)+this.outputText)}}b.exports=ConfirmPrompt},13031:(b,S,J)=>{"use strict";function asyncGeneratorStep(b,S,J,ee,te,re,ne){try{var ie=b[re](ne);var oe=ie.value}catch(b){J(b);return}if(ie.done){S(oe)}else{Promise.resolve(oe).then(ee,te)}}function _asyncToGenerator(b){return function(){var S=this,J=arguments;return new Promise((function(ee,te){var re=b.apply(S,J);function _next(b){asyncGeneratorStep(re,ee,te,_next,_throw,"next",b)}function _throw(b){asyncGeneratorStep(re,ee,te,_next,_throw,"throw",b)}_next(undefined)}))}}const ee=J(59439);const te=J(65876);const re=J(92800),ne=re.style,ie=re.clear,oe=re.figures;const se=J(20332),ae=se.erase,ue=se.cursor;const ce=J(47517),le=ce.DatePart,pe=ce.Meridiem,fe=ce.Day,de=ce.Hours,he=ce.Milliseconds,me=ce.Minutes,ge=ce.Month,ye=ce.Seconds,ve=ce.Year;const Te=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const be={1:({token:b})=>b.replace(/\\(.)/g,"$1"),2:b=>new fe(b),3:b=>new ge(b),4:b=>new ve(b),5:b=>new pe(b),6:b=>new de(b),7:b=>new me(b),8:b=>new ye(b),9:b=>new he(b)};const Ee={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.cursor=0;this.typed="";this.locales=Object.assign(Ee,b.locales);this._date=b.initial||new Date;this.errorMsg=b.error||"Please Enter A Valid Value";this.validator=b.validate||(()=>true);this.mask=b.mask||"YYYY-MM-DD HH:mm:ss";this.clear=ie("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(b){if(b)this._date.setTime(b.getTime())}set mask(b){let S;this.parts=[];while(S=Te.exec(b)){let b=S.shift();let J=S.findIndex((b=>b!=null));this.parts.push(J in be?be[J]({token:S[J]||b,date:this.date,parts:this.parts,locales:this.locales}):S[J]||b)}let J=this.parts.reduce(((b,S)=>{if(typeof S==="string"&&typeof b[b.length-1]==="string")b[b.length-1]+=S;else b.push(S);return b}),[]);this.parts.splice(0);this.parts.push(...J);this.reset()}moveCursor(b){this.typed="";this.cursor=b;this.fire()}reset(){this.moveCursor(this.parts.findIndex((b=>b instanceof le)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var b=this;return _asyncToGenerator((function*(){let S=yield b.validator(b.value);if(typeof S==="string"){b.errorMsg=S;S=false}b.error=!S}))()}submit(){var b=this;return _asyncToGenerator((function*(){yield b.validate();if(b.error){b.color="red";b.fire();b.render();return}b.done=true;b.aborted=false;b.fire();b.render();b.out.write("\n");b.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let b=this.parts[this.cursor].prev();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b));this.render()}right(){let b=this.parts[this.cursor].next();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b));this.render()}next(){let b=this.parts[this.cursor].next();this.moveCursor(b?this.parts.indexOf(b):this.parts.findIndex((b=>b instanceof le)));this.render()}_(b){if(/\d/.test(b)){this.typed+=b;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(ue.hide);else this.out.write(ie(this.outputText,this.out.columns));super.render();this.outputText=[ne.symbol(this.done,this.aborted),ee.bold(this.msg),ne.delimiter(false),this.parts.reduce(((b,S,J)=>b.concat(J===this.cursor&&!this.done?ee.cyan().underline(S.toString()):S)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((b,S,J)=>b+`\n${J?` `:oe.pointerSmall} ${ee.red().italic(S)}`),``)}this.out.write(ae.line+ue.to(0)+this.outputText)}}b.exports=DatePrompt},89956:(b,S,J)=>{"use strict";b.exports={TextPrompt:J(85430),SelectPrompt:J(38856),TogglePrompt:J(29692),DatePrompt:J(13031),NumberPrompt:J(78831),MultiselectPrompt:J(24047),AutocompletePrompt:J(90935),AutocompleteMultiselectPrompt:J(22040),ConfirmPrompt:J(5680)}},24047:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(20332),re=te.cursor;const ne=J(65876);const ie=J(92800),oe=ie.clear,se=ie.figures,ae=ie.style,ue=ie.wrap,ce=ie.entriesToDisplay;class MultiselectPrompt extends ne{constructor(b={}){super(b);this.msg=b.message;this.cursor=b.cursor||0;this.scrollIndex=b.cursor||0;this.hint=b.hint||"";this.warn=b.warn||"- This option is disabled -";this.minSelected=b.min;this.showMinError=false;this.maxChoices=b.max;this.instructions=b.instructions;this.optionsPerPage=b.optionsPerPage||10;this.value=b.choices.map(((b,S)=>{if(typeof b==="string")b={title:b,value:S};return{title:b&&(b.title||b.value||b),description:b&&b.description,value:b&&(b.value===undefined?S:b.value),selected:b&&b.selected,disabled:b&&b.disabled}}));this.clear=oe("",this.out.columns);if(!b.overrideRender){this.render()}}reset(){this.value.map((b=>!b.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((b=>b.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const b=this.value.filter((b=>b.selected));if(this.minSelected&&b.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((b=>b.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const b=this.value[this.cursor];if(b.selected){b.selected=false;this.render()}else if(b.disabled||this.value.filter((b=>b.selected)).length>=this.maxChoices){return this.bell()}else{b.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const b=!this.value[this.cursor].selected;this.value.filter((b=>!b.disabled)).forEach((S=>S.selected=b));this.render()}_(b,S){if(b===" "){this.handleSpaceToggle()}else if(b==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${se.arrowUp}/${se.arrowDown}: Highlight option\n`+` ${se.arrowLeft}/${se.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(b,S,J,te){const re=(S.selected?ee.green(se.radioOn):se.radioOff)+" "+te+" ";let ne,ie;if(S.disabled){ne=b===J?ee.gray().underline(S.title):ee.strikethrough().gray(S.title)}else{ne=b===J?ee.cyan().underline(S.title):S.title;if(b===J&&S.description){ie=` - ${S.description}`;if(re.length+ne.length+ie.length>=this.out.columns||S.description.split(/\r?\n/).length>1){ie="\n"+ue(S.description,{margin:re.length,width:this.out.columns})}}}return re+ne+ee.gray(ie||"")}paginateOptions(b){if(b.length===0){return ee.red("No matches for this query.")}let S=ce(this.cursor,b.length,this.optionsPerPage),J=S.startIndex,te=S.endIndex;let re,ne=[];for(let S=J;S<te;S++){if(S===J&&J>0){re=se.arrowUp}else if(S===te-1&&te<b.length){re=se.arrowDown}else{re=" "}ne.push(this.renderOption(this.cursor,b[S],S,re))}return"\n"+ne.join("\n")}renderOptions(b){if(!this.done){return this.paginateOptions(b)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((b=>b.selected)).map((b=>b.title)).join(", ")}const b=[ee.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){b.push(ee.yellow(this.warn))}return b.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(re.hide);super.render();let b=[ae.symbol(this.done,this.aborted),ee.bold(this.msg),ae.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){b+=ee.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}b+=this.renderOptions(this.value);this.out.write(this.clear+b);this.clear=oe(b,this.out.columns)}}b.exports=MultiselectPrompt},78831:(b,S,J)=>{"use strict";function asyncGeneratorStep(b,S,J,ee,te,re,ne){try{var ie=b[re](ne);var oe=ie.value}catch(b){J(b);return}if(ie.done){S(oe)}else{Promise.resolve(oe).then(ee,te)}}function _asyncToGenerator(b){return function(){var S=this,J=arguments;return new Promise((function(ee,te){var re=b.apply(S,J);function _next(b){asyncGeneratorStep(re,ee,te,_next,_throw,"next",b)}function _throw(b){asyncGeneratorStep(re,ee,te,_next,_throw,"throw",b)}_next(undefined)}))}}const ee=J(59439);const te=J(65876);const re=J(20332),ne=re.cursor,ie=re.erase;const oe=J(92800),se=oe.style,ae=oe.figures,ue=oe.clear,ce=oe.lines;const le=/[0-9]/;const isDef=b=>b!==undefined;const round=(b,S)=>{let J=Math.pow(10,S);return Math.round(b*J)/J};class NumberPrompt extends te{constructor(b={}){super(b);this.transform=se.render(b.style);this.msg=b.message;this.initial=isDef(b.initial)?b.initial:"";this.float=!!b.float;this.round=b.round||2;this.inc=b.increment||1;this.min=isDef(b.min)?b.min:-Infinity;this.max=isDef(b.max)?b.max:Infinity;this.errorMsg=b.error||`Please Enter A Valid Value`;this.validator=b.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(b){if(!b&&b!==0){this.placeholder=true;this.rendered=ee.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(b,this.round)}`);this._value=round(b,this.round)}this.fire()}get value(){return this._value}parse(b){return this.float?parseFloat(b):parseInt(b)}valid(b){return b===`-`||b===`.`&&this.float||le.test(b)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let b=this.value;this.value=b!==``?b:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var b=this;return _asyncToGenerator((function*(){let S=yield b.validator(b.value);if(typeof S===`string`){b.errorMsg=S;S=false}b.error=!S}))()}submit(){var b=this;return _asyncToGenerator((function*(){yield b.validate();if(b.error){b.color=`red`;b.fire();b.render();return}let S=b.value;b.value=S!==``?S:b.initial;b.done=true;b.aborted=false;b.error=false;b.fire();b.render();b.out.write(`\n`);b.close()}))()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let b=this.value.toString();if(b.length===0)return this.bell();this.value=this.parse(b=b.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(b,S){if(!this.valid(b))return this.bell();const J=Date.now();if(J-this.lastHit>1e3)this.typed=``;this.typed+=b;this.lastHit=J;this.color=`cyan`;if(b===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ne.down(ce(this.outputError,this.out.columns)-1)+ue(this.outputError,this.out.columns));this.out.write(ue(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[se.symbol(this.done,this.aborted),ee.bold(this.msg),se.delimiter(this.done),!this.done||!this.done&&!this.placeholder?ee[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((b,S,J)=>b+`\n${J?` `:ae.pointerSmall} ${ee.red().italic(S)}`),``)}this.out.write(ie.line+ne.to(0)+this.outputText+ne.save+this.outputError+ne.restore)}}b.exports=NumberPrompt},65876:(b,S,J)=>{"use strict";const ee=J(14521);const te=J(92800),re=te.action;const ne=J(82361);const ie=J(20332),oe=ie.beep,se=ie.cursor;const ae=J(59439);class Prompt extends ne{constructor(b={}){super();this.firstRender=true;this.in=b.stdin||process.stdin;this.out=b.stdout||process.stdout;this.onRender=(b.onRender||(()=>void 0)).bind(this);const S=ee.createInterface({input:this.in,escapeCodeTimeout:50});ee.emitKeypressEvents(this.in,S);if(this.in.isTTY)this.in.setRawMode(true);const J=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(b,S)=>{let ee=re(S,J);if(ee===false){this._&&this._(b,S)}else if(typeof this[ee]==="function"){this[ee](S)}else{this.bell()}};this.close=()=>{this.out.write(se.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);S.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(oe)}render(){this.onRender(ae);if(this.firstRender)this.firstRender=false}}b.exports=Prompt},38856:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(65876);const re=J(92800),ne=re.style,ie=re.clear,oe=re.figures,se=re.wrap,ae=re.entriesToDisplay;const ue=J(20332),ce=ue.cursor;class SelectPrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.hint=b.hint||"- Use arrow-keys. Return to submit.";this.warn=b.warn||"- This option is disabled";this.cursor=b.initial||0;this.choices=b.choices.map(((b,S)=>{if(typeof b==="string")b={title:b,value:S};return{title:b&&(b.title||b.value||b),value:b&&(b.value===undefined?S:b.value),description:b&&b.description,selected:b&&b.selected,disabled:b&&b.disabled}}));this.optionsPerPage=b.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=ie("",this.out.columns);this.render()}moveCursor(b){this.cursor=b;this.value=this.choices[b].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(b,S){if(b===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(ce.hide);else this.out.write(ie(this.outputText,this.out.columns));super.render();let b=ae(this.cursor,this.choices.length,this.optionsPerPage),S=b.startIndex,J=b.endIndex;this.outputText=[ne.symbol(this.done,this.aborted),ee.bold(this.msg),ne.delimiter(false),this.done?this.selection.title:this.selection.disabled?ee.yellow(this.warn):ee.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let b=S;b<J;b++){let te,re,ne="",ie=this.choices[b];if(b===S&&S>0){re=oe.arrowUp}else if(b===J-1&&J<this.choices.length){re=oe.arrowDown}else{re=" "}if(ie.disabled){te=this.cursor===b?ee.gray().underline(ie.title):ee.strikethrough().gray(ie.title);re=(this.cursor===b?ee.bold().gray(oe.pointer)+" ":" ")+re}else{te=this.cursor===b?ee.cyan().underline(ie.title):ie.title;re=(this.cursor===b?ee.cyan(oe.pointer)+" ":" ")+re;if(ie.description&&this.cursor===b){ne=` - ${ie.description}`;if(re.length+te.length+ne.length>=this.out.columns||ie.description.split(/\r?\n/).length>1){ne="\n"+se(ie.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${re} ${te}${ee.gray(ne)}\n`}}this.out.write(this.outputText)}}b.exports=SelectPrompt},85430:(b,S,J)=>{"use strict";function asyncGeneratorStep(b,S,J,ee,te,re,ne){try{var ie=b[re](ne);var oe=ie.value}catch(b){J(b);return}if(ie.done){S(oe)}else{Promise.resolve(oe).then(ee,te)}}function _asyncToGenerator(b){return function(){var S=this,J=arguments;return new Promise((function(ee,te){var re=b.apply(S,J);function _next(b){asyncGeneratorStep(re,ee,te,_next,_throw,"next",b)}function _throw(b){asyncGeneratorStep(re,ee,te,_next,_throw,"throw",b)}_next(undefined)}))}}const ee=J(59439);const te=J(65876);const re=J(20332),ne=re.erase,ie=re.cursor;const oe=J(92800),se=oe.style,ae=oe.clear,ue=oe.lines,ce=oe.figures;class TextPrompt extends te{constructor(b={}){super(b);this.transform=se.render(b.style);this.scale=this.transform.scale;this.msg=b.message;this.initial=b.initial||``;this.validator=b.validate||(()=>true);this.value=``;this.errorMsg=b.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=ae(``,this.out.columns);this.render()}set value(b){if(!b&&this.initial){this.placeholder=true;this.rendered=ee.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(b)}this._value=b;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var b=this;return _asyncToGenerator((function*(){let S=yield b.validator(b.value);if(typeof S===`string`){b.errorMsg=S;S=false}b.error=!S}))()}submit(){var b=this;return _asyncToGenerator((function*(){b.value=b.value||b.initial;b.cursorOffset=0;b.cursor=b.rendered.length;yield b.validate();if(b.error){b.red=true;b.fire();b.render();return}b.done=true;b.aborted=false;b.fire();b.render();b.out.write("\n");b.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(b){if(this.placeholder)return;this.cursor=this.cursor+b;this.cursorOffset+=b}_(b,S){let J=this.value.slice(0,this.cursor);let ee=this.value.slice(this.cursor);this.value=`${J}${b}${ee}`;this.red=false;this.cursor=this.placeholder?0:J.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let b=this.value.slice(0,this.cursor-1);let S=this.value.slice(this.cursor);this.value=`${b}${S}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let b=this.value.slice(0,this.cursor);let S=this.value.slice(this.cursor+1);this.value=`${b}${S}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ie.down(ue(this.outputError,this.out.columns)-1)+ae(this.outputError,this.out.columns));this.out.write(ae(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[se.symbol(this.done,this.aborted),ee.bold(this.msg),se.delimiter(this.done),this.red?ee.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((b,S,J)=>b+`\n${J?" ":ce.pointerSmall} ${ee.red().italic(S)}`),``)}this.out.write(ne.line+ie.to(0)+this.outputText+ie.save+this.outputError+ie.restore+ie.move(this.cursorOffset,0))}}b.exports=TextPrompt},29692:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(65876);const re=J(92800),ne=re.style,ie=re.clear;const oe=J(20332),se=oe.cursor,ae=oe.erase;class TogglePrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.value=!!b.initial;this.active=b.active||"on";this.inactive=b.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(b,S){if(b===" "){this.value=!this.value}else if(b==="1"){this.value=true}else if(b==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(se.hide);else this.out.write(ie(this.outputText,this.out.columns));super.render();this.outputText=[ne.symbol(this.done,this.aborted),ee.bold(this.msg),ne.delimiter(this.done),this.value?this.inactive:ee.cyan().underline(this.inactive),ee.gray("/"),this.value?ee.cyan().underline(this.active):this.active].join(" ");this.out.write(ae.line+se.to(0)+this.outputText)}}b.exports=TogglePrompt},56598:(b,S,J)=>{"use strict";function ownKeys(b,S){var J=Object.keys(b);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(b);if(S){ee=ee.filter((function(S){return Object.getOwnPropertyDescriptor(b,S).enumerable}))}J.push.apply(J,ee)}return J}function _objectSpread(b){for(var S=1;S<arguments.length;S++){var J=arguments[S]!=null?arguments[S]:{};if(S%2){ownKeys(Object(J),true).forEach((function(S){_defineProperty(b,S,J[S])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(b,Object.getOwnPropertyDescriptors(J))}else{ownKeys(Object(J)).forEach((function(S){Object.defineProperty(b,S,Object.getOwnPropertyDescriptor(J,S))}))}}return b}function _defineProperty(b,S,J){if(S in b){Object.defineProperty(b,S,{value:J,enumerable:true,configurable:true,writable:true})}else{b[S]=J}return b}function _createForOfIteratorHelper(b,S){var J=typeof Symbol!=="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(!J){if(Array.isArray(b)||(J=_unsupportedIterableToArray(b))||S&&b&&typeof b.length==="number"){if(J)b=J;var ee=0;var te=function F(){};return{s:te,n:function n(){if(ee>=b.length)return{done:true};return{done:false,value:b[ee++]}},e:function e(b){throw b},f:te}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var re=true,ne=false,ie;return{s:function s(){J=J.call(b)},n:function n(){var b=J.next();re=b.done;return b},e:function e(b){ne=true;ie=b},f:function f(){try{if(!re&&J.return!=null)J.return()}finally{if(ne)throw ie}}}}function _unsupportedIterableToArray(b,S){if(!b)return;if(typeof b==="string")return _arrayLikeToArray(b,S);var J=Object.prototype.toString.call(b).slice(8,-1);if(J==="Object"&&b.constructor)J=b.constructor.name;if(J==="Map"||J==="Set")return Array.from(b);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return _arrayLikeToArray(b,S)}function _arrayLikeToArray(b,S){if(S==null||S>b.length)S=b.length;for(var J=0,ee=new Array(S);J<S;J++)ee[J]=b[J];return ee}function asyncGeneratorStep(b,S,J,ee,te,re,ne){try{var ie=b[re](ne);var oe=ie.value}catch(b){J(b);return}if(ie.done){S(oe)}else{Promise.resolve(oe).then(ee,te)}}function _asyncToGenerator(b){return function(){var S=this,J=arguments;return new Promise((function(ee,te){var re=b.apply(S,J);function _next(b){asyncGeneratorStep(re,ee,te,_next,_throw,"next",b)}function _throw(b){asyncGeneratorStep(re,ee,te,_next,_throw,"throw",b)}_next(undefined)}))}}const ee=J(84591);const te=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(b=[],{onSubmit:S=noop,onCancel:J=noop}={}){const re={};const ne=prompt._override||{};b=[].concat(b);let ie,oe,se,ae,ue,ce;const le=function(){var b=_asyncToGenerator((function*(b,S,J=false){if(!J&&b.validate&&b.validate(S)!==true){return}return b.format?yield b.format(S,re):S}));return function getFormattedAnswer(S,J){return b.apply(this,arguments)}}();var pe=_createForOfIteratorHelper(b),fe;try{for(pe.s();!(fe=pe.n()).done;){oe=fe.value;var de=oe;ae=de.name;ue=de.type;if(typeof ue==="function"){ue=yield ue(ie,_objectSpread({},re),oe);oe["type"]=ue}if(!ue)continue;for(let b in oe){if(te.includes(b))continue;let S=oe[b];oe[b]=typeof S==="function"?yield S(ie,_objectSpread({},re),ce):S}ce=oe;if(typeof oe.message!=="string"){throw new Error("prompt message is required")}var he=oe;ae=he.name;ue=he.type;if(ee[ue]===void 0){throw new Error(`prompt type (${ue}) is not defined`)}if(ne[oe.name]!==undefined){ie=yield le(oe,ne[oe.name]);if(ie!==undefined){re[ae]=ie;continue}}try{ie=prompt._injected?getInjectedAnswer(prompt._injected,oe.initial):yield ee[ue](oe);re[ae]=ie=yield le(oe,ie,true);se=yield S(oe,ie,re)}catch(b){se=!(yield J(oe,re))}if(se)return re}}catch(b){pe.e(b)}finally{pe.f()}return re}));return _prompt.apply(this,arguments)}function getInjectedAnswer(b,S){const J=b.shift();if(J instanceof Error){throw J}return J===undefined?S:J}function inject(b){prompt._injected=(prompt._injected||[]).concat(b)}function override(b){prompt._override=Object.assign({},b)}b.exports=Object.assign(prompt,{prompt:prompt,prompts:ee,inject:inject,override:override})},84591:(b,S,J)=>{"use strict";const ee=S;const te=J(89956);const noop=b=>b;function toPrompt(b,S,J={}){return new Promise(((ee,re)=>{const ne=new te[b](S);const ie=J.onAbort||noop;const oe=J.onSubmit||noop;const se=J.onExit||noop;ne.on("state",S.onState||noop);ne.on("submit",(b=>ee(oe(b))));ne.on("exit",(b=>ee(se(b))));ne.on("abort",(b=>re(ie(b))))}))}ee.text=b=>toPrompt("TextPrompt",b);ee.password=b=>{b.style="password";return ee.text(b)};ee.invisible=b=>{b.style="invisible";return ee.text(b)};ee.number=b=>toPrompt("NumberPrompt",b);ee.date=b=>toPrompt("DatePrompt",b);ee.confirm=b=>toPrompt("ConfirmPrompt",b);ee.list=b=>{const S=b.separator||",";return toPrompt("TextPrompt",b,{onSubmit:b=>b.split(S).map((b=>b.trim()))})};ee.toggle=b=>toPrompt("TogglePrompt",b);ee.select=b=>toPrompt("SelectPrompt",b);ee.multiselect=b=>{b.choices=[].concat(b.choices||[]);const toSelected=b=>b.filter((b=>b.selected)).map((b=>b.value));return toPrompt("MultiselectPrompt",b,{onAbort:toSelected,onSubmit:toSelected})};ee.autocompleteMultiselect=b=>{b.choices=[].concat(b.choices||[]);const toSelected=b=>b.filter((b=>b.selected)).map((b=>b.value));return toPrompt("AutocompleteMultiselectPrompt",b,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(b,S)=>Promise.resolve(S.filter((S=>S.title.slice(0,b.length).toLowerCase()===b.toLowerCase())));ee.autocomplete=b=>{b.suggest=b.suggest||byTitle;b.choices=[].concat(b.choices||[]);return toPrompt("AutocompletePrompt",b)}},98692:b=>{"use strict";b.exports=(b,S)=>{if(b.meta&&b.name!=="escape")return;if(b.ctrl){if(b.name==="a")return"first";if(b.name==="c")return"abort";if(b.name==="d")return"abort";if(b.name==="e")return"last";if(b.name==="g")return"reset"}if(S){if(b.name==="j")return"down";if(b.name==="k")return"up"}if(b.name==="return")return"submit";if(b.name==="enter")return"submit";if(b.name==="backspace")return"delete";if(b.name==="delete")return"deleteForward";if(b.name==="abort")return"abort";if(b.name==="escape")return"exit";if(b.name==="tab")return"next";if(b.name==="pagedown")return"nextPage";if(b.name==="pageup")return"prevPage";if(b.name==="home")return"home";if(b.name==="end")return"end";if(b.name==="up")return"up";if(b.name==="down")return"down";if(b.name==="right")return"right";if(b.name==="left")return"left";return false}},13513:(b,S,J)=>{"use strict";function _createForOfIteratorHelper(b,S){var J=typeof Symbol!=="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(!J){if(Array.isArray(b)||(J=_unsupportedIterableToArray(b))||S&&b&&typeof b.length==="number"){if(J)b=J;var ee=0;var te=function F(){};return{s:te,n:function n(){if(ee>=b.length)return{done:true};return{done:false,value:b[ee++]}},e:function e(b){throw b},f:te}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var re=true,ne=false,ie;return{s:function s(){J=J.call(b)},n:function n(){var b=J.next();re=b.done;return b},e:function e(b){ne=true;ie=b},f:function f(){try{if(!re&&J.return!=null)J.return()}finally{if(ne)throw ie}}}}function _unsupportedIterableToArray(b,S){if(!b)return;if(typeof b==="string")return _arrayLikeToArray(b,S);var J=Object.prototype.toString.call(b).slice(8,-1);if(J==="Object"&&b.constructor)J=b.constructor.name;if(J==="Map"||J==="Set")return Array.from(b);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return _arrayLikeToArray(b,S)}function _arrayLikeToArray(b,S){if(S==null||S>b.length)S=b.length;for(var J=0,ee=new Array(S);J<S;J++)ee[J]=b[J];return ee}const ee=J(28760);const te=J(20332),re=te.erase,ne=te.cursor;const width=b=>[...ee(b)].length;b.exports=function(b,S){if(!S)return re.line+ne.to(0);let J=0;const ee=b.split(/\r?\n/);var te=_createForOfIteratorHelper(ee),ie;try{for(te.s();!(ie=te.n()).done;){let b=ie.value;J+=1+Math.floor(Math.max(width(b)-1,0)/S)}}catch(b){te.e(b)}finally{te.f()}return re.lines(J)}},393:b=>{"use strict";b.exports=(b,S,J)=>{J=J||S;let ee=Math.min(S-J,b-Math.floor(J/2));if(ee<0)ee=0;let te=Math.min(ee+J,S);return{startIndex:ee,endIndex:te}}},26217:b=>{"use strict";const S={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const J={arrowUp:S.arrowUp,arrowDown:S.arrowDown,arrowLeft:S.arrowLeft,arrowRight:S.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const ee=process.platform==="win32"?J:S;b.exports=ee},92800:(b,S,J)=>{"use strict";b.exports={action:J(98692),clear:J(13513),style:J(55012),strip:J(28760),figures:J(26217),lines:J(11688),wrap:J(51705),entriesToDisplay:J(393)}},11688:(b,S,J)=>{"use strict";const ee=J(28760);b.exports=function(b,S){let J=String(ee(b)||"").split(/\r?\n/);if(!S)return J.length;return J.map((b=>Math.ceil(b.length/S))).reduce(((b,S)=>b+S))}},28760:b=>{"use strict";b.exports=b=>{const S=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const J=new RegExp(S,"g");return typeof b==="string"?b.replace(J,""):b}},55012:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(26217);const re=Object.freeze({password:{scale:1,render:b=>"*".repeat(b.length)},emoji:{scale:2,render:b=>"😃".repeat(b.length)},invisible:{scale:0,render:b=>""},default:{scale:1,render:b=>`${b}`}});const render=b=>re[b]||re.default;const ne=Object.freeze({aborted:ee.red(te.cross),done:ee.green(te.tick),exited:ee.yellow(te.cross),default:ee.cyan("?")});const symbol=(b,S,J)=>S?ne.aborted:J?ne.exited:b?ne.done:ne.default;const delimiter=b=>ee.gray(b?te.ellipsis:te.pointerSmall);const item=(b,S)=>ee.gray(b?S?te.pointerSmall:"+":te.line);b.exports={styles:re,render:render,symbols:ne,symbol:symbol,delimiter:delimiter,item:item}},51705:b=>{"use strict";b.exports=(b,S={})=>{const J=Number.isSafeInteger(parseInt(S.margin))?new Array(parseInt(S.margin)).fill(" ").join(""):S.margin||"";const ee=S.width;return(b||"").split(/\r?\n/g).map((b=>b.split(/\s+/g).reduce(((b,S)=>{if(S.length+J.length>=ee||b[b.length-1].length+S.length+1<ee)b[b.length-1]+=` ${S}`;else b.push(`${J}${S}`);return b}),[J]).join("\n"))).join("\n")}},41112:(b,S,J)=>{function isNodeLT(b){b=(Array.isArray(b)?b:b.split(".")).map(Number);let S=0,J=process.versions.node.split(".").map(Number);for(;S<b.length;S++){if(J[S]>b[S])return false;if(b[S]>J[S])return true}return false}b.exports=isNodeLT("8.6.0")?J(56598):J(39590)},48994:b=>{"use strict";class DatePart{constructor({token:b,date:S,parts:J,locales:ee}){this.token=b;this.date=S||new Date;this.parts=J||[this];this.locales=ee||{}}up(){}down(){}next(){const b=this.parts.indexOf(this);return this.parts.find(((S,J)=>J>b&&S instanceof DatePart))}setTo(b){}prev(){let b=[].concat(this.parts).reverse();const S=b.indexOf(this);return b.find(((b,J)=>J>S&&b instanceof DatePart))}toString(){return String(this.date)}}b.exports=DatePart},85513:(b,S,J)=>{"use strict";const ee=J(48994);const pos=b=>{b=b%10;return b===1?"st":b===2?"nd":b===3?"rd":"th"};class Day extends ee{constructor(b={}){super(b)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(b){this.date.setDate(parseInt(b.substr(-2)))}toString(){let b=this.date.getDate();let S=this.date.getDay();return this.token==="DD"?String(b).padStart(2,"0"):this.token==="Do"?b+pos(b):this.token==="d"?S+1:this.token==="ddd"?this.locales.weekdaysShort[S]:this.token==="dddd"?this.locales.weekdays[S]:b}}b.exports=Day},49270:(b,S,J)=>{"use strict";const ee=J(48994);class Hours extends ee{constructor(b={}){super(b)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(b){this.date.setHours(parseInt(b.substr(-2)))}toString(){let b=this.date.getHours();if(/h/.test(this.token))b=b%12||12;return this.token.length>1?String(b).padStart(2,"0"):b}}b.exports=Hours},11190:(b,S,J)=>{"use strict";b.exports={DatePart:J(48994),Meridiem:J(58135),Day:J(85513),Hours:J(49270),Milliseconds:J(72397),Minutes:J(29246),Month:J(75763),Seconds:J(45579),Year:J(84191)}},58135:(b,S,J)=>{"use strict";const ee=J(48994);class Meridiem extends ee{constructor(b={}){super(b)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let b=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?b.toUpperCase():b}}b.exports=Meridiem},72397:(b,S,J)=>{"use strict";const ee=J(48994);class Milliseconds extends ee{constructor(b={}){super(b)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(b){this.date.setMilliseconds(parseInt(b.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}b.exports=Milliseconds},29246:(b,S,J)=>{"use strict";const ee=J(48994);class Minutes extends ee{constructor(b={}){super(b)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(b){this.date.setMinutes(parseInt(b.substr(-2)))}toString(){let b=this.date.getMinutes();return this.token.length>1?String(b).padStart(2,"0"):b}}b.exports=Minutes},75763:(b,S,J)=>{"use strict";const ee=J(48994);class Month extends ee{constructor(b={}){super(b)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(b){b=parseInt(b.substr(-2))-1;this.date.setMonth(b<0?0:b)}toString(){let b=this.date.getMonth();let S=this.token.length;return S===2?String(b+1).padStart(2,"0"):S===3?this.locales.monthsShort[b]:S===4?this.locales.months[b]:String(b+1)}}b.exports=Month},45579:(b,S,J)=>{"use strict";const ee=J(48994);class Seconds extends ee{constructor(b={}){super(b)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(b){this.date.setSeconds(parseInt(b.substr(-2)))}toString(){let b=this.date.getSeconds();return this.token.length>1?String(b).padStart(2,"0"):b}}b.exports=Seconds},84191:(b,S,J)=>{"use strict";const ee=J(48994);class Year extends ee{constructor(b={}){super(b)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(b){this.date.setFullYear(b.substr(-4))}toString(){let b=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?b.substr(-2):b}}b.exports=Year},80514:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(29126);const{erase:re,cursor:ne}=J(20332);const{style:ie,clear:oe,figures:se,wrap:ae,entriesToDisplay:ue}=J(39807);const getVal=(b,S)=>b[S]&&(b[S].value||b[S].title||b[S]);const getTitle=(b,S)=>b[S]&&(b[S].title||b[S].value||b[S]);const getIndex=(b,S)=>{const J=b.findIndex((b=>b.value===S||b.title===S));return J>-1?J:undefined};class AutocompletePrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.suggest=b.suggest;this.choices=b.choices;this.initial=typeof b.initial==="number"?b.initial:getIndex(b.choices,b.initial);this.select=this.initial||b.cursor||0;this.i18n={noMatches:b.noMatches||"no matches found"};this.fallback=b.fallback||this.initial;this.clearFirst=b.clearFirst||false;this.suggestions=[];this.input="";this.limit=b.limit||10;this.cursor=0;this.transform=ie.render(b.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=oe("",this.out.columns);this.complete(this.render);this.render()}set fallback(b){this._fb=Number.isSafeInteger(parseInt(b))?parseInt(b):b}get fallback(){let b;if(typeof this._fb==="number")b=this.choices[this._fb];else if(typeof this._fb==="string")b={title:this._fb};return b||this._fb||{title:this.i18n.noMatches}}moveSelect(b){this.select=b;if(this.suggestions.length>0)this.value=getVal(this.suggestions,b);else this.value=this.fallback.value;this.fire()}async complete(b){const S=this.completing=this.suggest(this.input,this.choices);const J=await S;if(this.completing!==S)return;this.suggestions=J.map(((b,S,J)=>({title:getTitle(J,S),value:getVal(J,S),description:b.description})));this.completing=false;const ee=Math.max(J.length-1,0);this.moveSelect(Math.min(ee,this.select));b&&b()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(b,S){let J=this.input.slice(0,this.cursor);let ee=this.input.slice(this.cursor);this.input=`${J}${b}${ee}`;this.cursor=J.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let b=this.input.slice(0,this.cursor-1);let S=this.input.slice(this.cursor);this.input=`${b}${S}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let b=this.input.slice(0,this.cursor);let S=this.input.slice(this.cursor+1);this.input=`${b}${S}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(b,S,J,te){let re;let ne=J?se.arrowUp:te?se.arrowDown:" ";let ie=S?ee.cyan().underline(b.title):b.title;ne=(S?ee.cyan(se.pointer)+" ":" ")+ne;if(b.description){re=` - ${b.description}`;if(ne.length+ie.length+re.length>=this.out.columns||b.description.split(/\r?\n/).length>1){re="\n"+ae(b.description,{margin:3,width:this.out.columns})}}return ne+" "+ie+ee.gray(re||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(ne.hide);else this.out.write(oe(this.outputText,this.out.columns));super.render();let{startIndex:b,endIndex:S}=ue(this.select,this.choices.length,this.limit);this.outputText=[ie.symbol(this.done,this.aborted,this.exited),ee.bold(this.msg),ie.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const J=this.suggestions.slice(b,S).map(((J,ee)=>this.renderOption(J,this.select===ee+b,ee===0&&b>0,ee+b===S-1&&S<this.choices.length))).join("\n");this.outputText+=`\n`+(J||ee.gray(this.fallback.title))}this.out.write(re.line+ne.to(0)+this.outputText)}}b.exports=AutocompletePrompt},87685:(b,S,J)=>{"use strict";const ee=J(59439);const{cursor:te}=J(20332);const re=J(70092);const{clear:ne,style:ie,figures:oe}=J(39807);class AutocompleteMultiselectPrompt extends re{constructor(b={}){b.overrideRender=true;super(b);this.inputValue="";this.clear=ne("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((b=>b.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const b=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((b=>{if(this.inputValue){if(typeof b.title==="string"){if(b.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof b.value==="string"){if(b.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const S=this.filteredOptions.findIndex((S=>S===b));this.cursor=S<0?0:S;this.render()}handleSpaceToggle(){const b=this.filteredOptions[this.cursor];if(b.selected){b.selected=false;this.render()}else if(b.disabled||this.value.filter((b=>b.selected)).length>=this.maxChoices){return this.bell()}else{b.selected=true;this.render()}}handleInputChange(b){this.inputValue=this.inputValue+b;this.updateFilteredOptions()}_(b,S){if(b===" "){this.handleSpaceToggle()}else{this.handleInputChange(b)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${oe.arrowUp}/${oe.arrowDown}: Highlight option\n ${oe.arrowLeft}/${oe.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:ee.gray("Enter something to filter")}\n`}renderOption(b,S,J){let te;if(S.disabled)te=b===J?ee.gray().underline(S.title):ee.strikethrough().gray(S.title);else te=b===J?ee.cyan().underline(S.title):S.title;return(S.selected?ee.green(oe.radioOn):oe.radioOff)+" "+te}renderDoneOrInstructions(){if(this.done){return this.value.filter((b=>b.selected)).map((b=>b.title)).join(", ")}const b=[ee.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){b.push(ee.yellow(this.warn))}return b.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(te.hide);super.render();let b=[ie.symbol(this.done,this.aborted),ee.bold(this.msg),ie.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){b+=ee.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}b+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+b);this.clear=ne(b,this.out.columns)}}b.exports=AutocompleteMultiselectPrompt},33037:(b,S,J)=>{const ee=J(59439);const te=J(29126);const{style:re,clear:ne}=J(39807);const{erase:ie,cursor:oe}=J(20332);class ConfirmPrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.value=b.initial;this.initialValue=!!b.initial;this.yesMsg=b.yes||"yes";this.yesOption=b.yesOption||"(Y/n)";this.noMsg=b.no||"no";this.noOption=b.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(b,S){if(b.toLowerCase()==="y"){this.value=true;return this.submit()}if(b.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(oe.hide);else this.out.write(ne(this.outputText,this.out.columns));super.render();this.outputText=[re.symbol(this.done,this.aborted),ee.bold(this.msg),re.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:ee.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(ie.line+oe.to(0)+this.outputText)}}b.exports=ConfirmPrompt},65048:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(29126);const{style:re,clear:ne,figures:ie}=J(39807);const{erase:oe,cursor:se}=J(20332);const{DatePart:ae,Meridiem:ue,Day:ce,Hours:le,Milliseconds:pe,Minutes:fe,Month:de,Seconds:he,Year:me}=J(11190);const ge=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const ye={1:({token:b})=>b.replace(/\\(.)/g,"$1"),2:b=>new ce(b),3:b=>new de(b),4:b=>new me(b),5:b=>new ue(b),6:b=>new le(b),7:b=>new fe(b),8:b=>new he(b),9:b=>new pe(b)};const ve={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.cursor=0;this.typed="";this.locales=Object.assign(ve,b.locales);this._date=b.initial||new Date;this.errorMsg=b.error||"Please Enter A Valid Value";this.validator=b.validate||(()=>true);this.mask=b.mask||"YYYY-MM-DD HH:mm:ss";this.clear=ne("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(b){if(b)this._date.setTime(b.getTime())}set mask(b){let S;this.parts=[];while(S=ge.exec(b)){let b=S.shift();let J=S.findIndex((b=>b!=null));this.parts.push(J in ye?ye[J]({token:S[J]||b,date:this.date,parts:this.parts,locales:this.locales}):S[J]||b)}let J=this.parts.reduce(((b,S)=>{if(typeof S==="string"&&typeof b[b.length-1]==="string")b[b.length-1]+=S;else b.push(S);return b}),[]);this.parts.splice(0);this.parts.push(...J);this.reset()}moveCursor(b){this.typed="";this.cursor=b;this.fire()}reset(){this.moveCursor(this.parts.findIndex((b=>b instanceof ae)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let b=await this.validator(this.value);if(typeof b==="string"){this.errorMsg=b;b=false}this.error=!b}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let b=this.parts[this.cursor].prev();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b));this.render()}right(){let b=this.parts[this.cursor].next();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b));this.render()}next(){let b=this.parts[this.cursor].next();this.moveCursor(b?this.parts.indexOf(b):this.parts.findIndex((b=>b instanceof ae)));this.render()}_(b){if(/\d/.test(b)){this.typed+=b;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(se.hide);else this.out.write(ne(this.outputText,this.out.columns));super.render();this.outputText=[re.symbol(this.done,this.aborted),ee.bold(this.msg),re.delimiter(false),this.parts.reduce(((b,S,J)=>b.concat(J===this.cursor&&!this.done?ee.cyan().underline(S.toString()):S)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((b,S,J)=>b+`\n${J?` `:ie.pointerSmall} ${ee.red().italic(S)}`),``)}this.out.write(oe.line+se.to(0)+this.outputText)}}b.exports=DatePrompt},46529:(b,S,J)=>{"use strict";b.exports={TextPrompt:J(71551),SelectPrompt:J(56515),TogglePrompt:J(25876),DatePrompt:J(65048),NumberPrompt:J(23686),MultiselectPrompt:J(70092),AutocompletePrompt:J(80514),AutocompleteMultiselectPrompt:J(87685),ConfirmPrompt:J(33037)}},70092:(b,S,J)=>{"use strict";const ee=J(59439);const{cursor:te}=J(20332);const re=J(29126);const{clear:ne,figures:ie,style:oe,wrap:se,entriesToDisplay:ae}=J(39807);class MultiselectPrompt extends re{constructor(b={}){super(b);this.msg=b.message;this.cursor=b.cursor||0;this.scrollIndex=b.cursor||0;this.hint=b.hint||"";this.warn=b.warn||"- This option is disabled -";this.minSelected=b.min;this.showMinError=false;this.maxChoices=b.max;this.instructions=b.instructions;this.optionsPerPage=b.optionsPerPage||10;this.value=b.choices.map(((b,S)=>{if(typeof b==="string")b={title:b,value:S};return{title:b&&(b.title||b.value||b),description:b&&b.description,value:b&&(b.value===undefined?S:b.value),selected:b&&b.selected,disabled:b&&b.disabled}}));this.clear=ne("",this.out.columns);if(!b.overrideRender){this.render()}}reset(){this.value.map((b=>!b.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((b=>b.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const b=this.value.filter((b=>b.selected));if(this.minSelected&&b.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((b=>b.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const b=this.value[this.cursor];if(b.selected){b.selected=false;this.render()}else if(b.disabled||this.value.filter((b=>b.selected)).length>=this.maxChoices){return this.bell()}else{b.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const b=!this.value[this.cursor].selected;this.value.filter((b=>!b.disabled)).forEach((S=>S.selected=b));this.render()}_(b,S){if(b===" "){this.handleSpaceToggle()}else if(b==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${ie.arrowUp}/${ie.arrowDown}: Highlight option\n`+` ${ie.arrowLeft}/${ie.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(b,S,J,te){const re=(S.selected?ee.green(ie.radioOn):ie.radioOff)+" "+te+" ";let ne,oe;if(S.disabled){ne=b===J?ee.gray().underline(S.title):ee.strikethrough().gray(S.title)}else{ne=b===J?ee.cyan().underline(S.title):S.title;if(b===J&&S.description){oe=` - ${S.description}`;if(re.length+ne.length+oe.length>=this.out.columns||S.description.split(/\r?\n/).length>1){oe="\n"+se(S.description,{margin:re.length,width:this.out.columns})}}}return re+ne+ee.gray(oe||"")}paginateOptions(b){if(b.length===0){return ee.red("No matches for this query.")}let{startIndex:S,endIndex:J}=ae(this.cursor,b.length,this.optionsPerPage);let te,re=[];for(let ee=S;ee<J;ee++){if(ee===S&&S>0){te=ie.arrowUp}else if(ee===J-1&&J<b.length){te=ie.arrowDown}else{te=" "}re.push(this.renderOption(this.cursor,b[ee],ee,te))}return"\n"+re.join("\n")}renderOptions(b){if(!this.done){return this.paginateOptions(b)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((b=>b.selected)).map((b=>b.title)).join(", ")}const b=[ee.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){b.push(ee.yellow(this.warn))}return b.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(te.hide);super.render();let b=[oe.symbol(this.done,this.aborted),ee.bold(this.msg),oe.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){b+=ee.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}b+=this.renderOptions(this.value);this.out.write(this.clear+b);this.clear=ne(b,this.out.columns)}}b.exports=MultiselectPrompt},23686:(b,S,J)=>{const ee=J(59439);const te=J(29126);const{cursor:re,erase:ne}=J(20332);const{style:ie,figures:oe,clear:se,lines:ae}=J(39807);const ue=/[0-9]/;const isDef=b=>b!==undefined;const round=(b,S)=>{let J=Math.pow(10,S);return Math.round(b*J)/J};class NumberPrompt extends te{constructor(b={}){super(b);this.transform=ie.render(b.style);this.msg=b.message;this.initial=isDef(b.initial)?b.initial:"";this.float=!!b.float;this.round=b.round||2;this.inc=b.increment||1;this.min=isDef(b.min)?b.min:-Infinity;this.max=isDef(b.max)?b.max:Infinity;this.errorMsg=b.error||`Please Enter A Valid Value`;this.validator=b.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(b){if(!b&&b!==0){this.placeholder=true;this.rendered=ee.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(b,this.round)}`);this._value=round(b,this.round)}this.fire()}get value(){return this._value}parse(b){return this.float?parseFloat(b):parseInt(b)}valid(b){return b===`-`||b===`.`&&this.float||ue.test(b)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let b=this.value;this.value=b!==``?b:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let b=await this.validator(this.value);if(typeof b===`string`){this.errorMsg=b;b=false}this.error=!b}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let b=this.value;this.value=b!==``?b:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let b=this.value.toString();if(b.length===0)return this.bell();this.value=this.parse(b=b.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(b,S){if(!this.valid(b))return this.bell();const J=Date.now();if(J-this.lastHit>1e3)this.typed=``;this.typed+=b;this.lastHit=J;this.color=`cyan`;if(b===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(re.down(ae(this.outputError,this.out.columns)-1)+se(this.outputError,this.out.columns));this.out.write(se(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[ie.symbol(this.done,this.aborted),ee.bold(this.msg),ie.delimiter(this.done),!this.done||!this.done&&!this.placeholder?ee[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((b,S,J)=>b+`\n${J?` `:oe.pointerSmall} ${ee.red().italic(S)}`),``)}this.out.write(ne.line+re.to(0)+this.outputText+re.save+this.outputError+re.restore)}}b.exports=NumberPrompt},29126:(b,S,J)=>{"use strict";const ee=J(14521);const{action:te}=J(39807);const re=J(82361);const{beep:ne,cursor:ie}=J(20332);const oe=J(59439);class Prompt extends re{constructor(b={}){super();this.firstRender=true;this.in=b.stdin||process.stdin;this.out=b.stdout||process.stdout;this.onRender=(b.onRender||(()=>void 0)).bind(this);const S=ee.createInterface({input:this.in,escapeCodeTimeout:50});ee.emitKeypressEvents(this.in,S);if(this.in.isTTY)this.in.setRawMode(true);const J=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(b,S)=>{let ee=te(S,J);if(ee===false){this._&&this._(b,S)}else if(typeof this[ee]==="function"){this[ee](S)}else{this.bell()}};this.close=()=>{this.out.write(ie.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);S.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(ne)}render(){this.onRender(oe);if(this.firstRender)this.firstRender=false}}b.exports=Prompt},56515:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(29126);const{style:re,clear:ne,figures:ie,wrap:oe,entriesToDisplay:se}=J(39807);const{cursor:ae}=J(20332);class SelectPrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.hint=b.hint||"- Use arrow-keys. Return to submit.";this.warn=b.warn||"- This option is disabled";this.cursor=b.initial||0;this.choices=b.choices.map(((b,S)=>{if(typeof b==="string")b={title:b,value:S};return{title:b&&(b.title||b.value||b),value:b&&(b.value===undefined?S:b.value),description:b&&b.description,selected:b&&b.selected,disabled:b&&b.disabled}}));this.optionsPerPage=b.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=ne("",this.out.columns);this.render()}moveCursor(b){this.cursor=b;this.value=this.choices[b].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(b,S){if(b===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(ae.hide);else this.out.write(ne(this.outputText,this.out.columns));super.render();let{startIndex:b,endIndex:S}=se(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[re.symbol(this.done,this.aborted),ee.bold(this.msg),re.delimiter(false),this.done?this.selection.title:this.selection.disabled?ee.yellow(this.warn):ee.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let J=b;J<S;J++){let te,re,ne="",se=this.choices[J];if(J===b&&b>0){re=ie.arrowUp}else if(J===S-1&&S<this.choices.length){re=ie.arrowDown}else{re=" "}if(se.disabled){te=this.cursor===J?ee.gray().underline(se.title):ee.strikethrough().gray(se.title);re=(this.cursor===J?ee.bold().gray(ie.pointer)+" ":" ")+re}else{te=this.cursor===J?ee.cyan().underline(se.title):se.title;re=(this.cursor===J?ee.cyan(ie.pointer)+" ":" ")+re;if(se.description&&this.cursor===J){ne=` - ${se.description}`;if(re.length+te.length+ne.length>=this.out.columns||se.description.split(/\r?\n/).length>1){ne="\n"+oe(se.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${re} ${te}${ee.gray(ne)}\n`}}this.out.write(this.outputText)}}b.exports=SelectPrompt},71551:(b,S,J)=>{const ee=J(59439);const te=J(29126);const{erase:re,cursor:ne}=J(20332);const{style:ie,clear:oe,lines:se,figures:ae}=J(39807);class TextPrompt extends te{constructor(b={}){super(b);this.transform=ie.render(b.style);this.scale=this.transform.scale;this.msg=b.message;this.initial=b.initial||``;this.validator=b.validate||(()=>true);this.value=``;this.errorMsg=b.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=oe(``,this.out.columns);this.render()}set value(b){if(!b&&this.initial){this.placeholder=true;this.rendered=ee.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(b)}this._value=b;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let b=await this.validator(this.value);if(typeof b===`string`){this.errorMsg=b;b=false}this.error=!b}async submit(){this.value=this.value||this.initial;this.cursorOffset=0;this.cursor=this.rendered.length;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(b){if(this.placeholder)return;this.cursor=this.cursor+b;this.cursorOffset+=b}_(b,S){let J=this.value.slice(0,this.cursor);let ee=this.value.slice(this.cursor);this.value=`${J}${b}${ee}`;this.red=false;this.cursor=this.placeholder?0:J.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let b=this.value.slice(0,this.cursor-1);let S=this.value.slice(this.cursor);this.value=`${b}${S}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let b=this.value.slice(0,this.cursor);let S=this.value.slice(this.cursor+1);this.value=`${b}${S}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ne.down(se(this.outputError,this.out.columns)-1)+oe(this.outputError,this.out.columns));this.out.write(oe(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[ie.symbol(this.done,this.aborted),ee.bold(this.msg),ie.delimiter(this.done),this.red?ee.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((b,S,J)=>b+`\n${J?" ":ae.pointerSmall} ${ee.red().italic(S)}`),``)}this.out.write(re.line+ne.to(0)+this.outputText+ne.save+this.outputError+ne.restore+ne.move(this.cursorOffset,0))}}b.exports=TextPrompt},25876:(b,S,J)=>{const ee=J(59439);const te=J(29126);const{style:re,clear:ne}=J(39807);const{cursor:ie,erase:oe}=J(20332);class TogglePrompt extends te{constructor(b={}){super(b);this.msg=b.message;this.value=!!b.initial;this.active=b.active||"on";this.inactive=b.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(b,S){if(b===" "){this.value=!this.value}else if(b==="1"){this.value=true}else if(b==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(ie.hide);else this.out.write(ne(this.outputText,this.out.columns));super.render();this.outputText=[re.symbol(this.done,this.aborted),ee.bold(this.msg),re.delimiter(this.done),this.value?this.inactive:ee.cyan().underline(this.inactive),ee.gray("/"),this.value?ee.cyan().underline(this.active):this.active].join(" ");this.out.write(oe.line+ie.to(0)+this.outputText)}}b.exports=TogglePrompt},39590:(b,S,J)=>{"use strict";const ee=J(54450);const te=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(b=[],{onSubmit:S=noop,onCancel:J=noop}={}){const re={};const ne=prompt._override||{};b=[].concat(b);let ie,oe,se,ae,ue,ce;const getFormattedAnswer=async(b,S,J=false)=>{if(!J&&b.validate&&b.validate(S)!==true){return}return b.format?await b.format(S,re):S};for(oe of b){({name:ae,type:ue}=oe);if(typeof ue==="function"){ue=await ue(ie,{...re},oe);oe["type"]=ue}if(!ue)continue;for(let b in oe){if(te.includes(b))continue;let S=oe[b];oe[b]=typeof S==="function"?await S(ie,{...re},ce):S}ce=oe;if(typeof oe.message!=="string"){throw new Error("prompt message is required")}({name:ae,type:ue}=oe);if(ee[ue]===void 0){throw new Error(`prompt type (${ue}) is not defined`)}if(ne[oe.name]!==undefined){ie=await getFormattedAnswer(oe,ne[oe.name]);if(ie!==undefined){re[ae]=ie;continue}}try{ie=prompt._injected?getInjectedAnswer(prompt._injected,oe.initial):await ee[ue](oe);re[ae]=ie=await getFormattedAnswer(oe,ie,true);se=await S(oe,ie,re)}catch(b){se=!await J(oe,re)}if(se)return re}return re}function getInjectedAnswer(b,S){const J=b.shift();if(J instanceof Error){throw J}return J===undefined?S:J}function inject(b){prompt._injected=(prompt._injected||[]).concat(b)}function override(b){prompt._override=Object.assign({},b)}b.exports=Object.assign(prompt,{prompt:prompt,prompts:ee,inject:inject,override:override})},54450:(b,S,J)=>{"use strict";const ee=S;const te=J(46529);const noop=b=>b;function toPrompt(b,S,J={}){return new Promise(((ee,re)=>{const ne=new te[b](S);const ie=J.onAbort||noop;const oe=J.onSubmit||noop;const se=J.onExit||noop;ne.on("state",S.onState||noop);ne.on("submit",(b=>ee(oe(b))));ne.on("exit",(b=>ee(se(b))));ne.on("abort",(b=>re(ie(b))))}))}ee.text=b=>toPrompt("TextPrompt",b);ee.password=b=>{b.style="password";return ee.text(b)};ee.invisible=b=>{b.style="invisible";return ee.text(b)};ee.number=b=>toPrompt("NumberPrompt",b);ee.date=b=>toPrompt("DatePrompt",b);ee.confirm=b=>toPrompt("ConfirmPrompt",b);ee.list=b=>{const S=b.separator||",";return toPrompt("TextPrompt",b,{onSubmit:b=>b.split(S).map((b=>b.trim()))})};ee.toggle=b=>toPrompt("TogglePrompt",b);ee.select=b=>toPrompt("SelectPrompt",b);ee.multiselect=b=>{b.choices=[].concat(b.choices||[]);const toSelected=b=>b.filter((b=>b.selected)).map((b=>b.value));return toPrompt("MultiselectPrompt",b,{onAbort:toSelected,onSubmit:toSelected})};ee.autocompleteMultiselect=b=>{b.choices=[].concat(b.choices||[]);const toSelected=b=>b.filter((b=>b.selected)).map((b=>b.value));return toPrompt("AutocompleteMultiselectPrompt",b,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(b,S)=>Promise.resolve(S.filter((S=>S.title.slice(0,b.length).toLowerCase()===b.toLowerCase())));ee.autocomplete=b=>{b.suggest=b.suggest||byTitle;b.choices=[].concat(b.choices||[]);return toPrompt("AutocompletePrompt",b)}},18573:b=>{"use strict";b.exports=(b,S)=>{if(b.meta&&b.name!=="escape")return;if(b.ctrl){if(b.name==="a")return"first";if(b.name==="c")return"abort";if(b.name==="d")return"abort";if(b.name==="e")return"last";if(b.name==="g")return"reset"}if(S){if(b.name==="j")return"down";if(b.name==="k")return"up"}if(b.name==="return")return"submit";if(b.name==="enter")return"submit";if(b.name==="backspace")return"delete";if(b.name==="delete")return"deleteForward";if(b.name==="abort")return"abort";if(b.name==="escape")return"exit";if(b.name==="tab")return"next";if(b.name==="pagedown")return"nextPage";if(b.name==="pageup")return"prevPage";if(b.name==="home")return"home";if(b.name==="end")return"end";if(b.name==="up")return"up";if(b.name==="down")return"down";if(b.name==="right")return"right";if(b.name==="left")return"left";return false}},86747:(b,S,J)=>{"use strict";const ee=J(12714);const{erase:te,cursor:re}=J(20332);const width=b=>[...ee(b)].length;b.exports=function(b,S){if(!S)return te.line+re.to(0);let J=0;const ee=b.split(/\r?\n/);for(let b of ee){J+=1+Math.floor(Math.max(width(b)-1,0)/S)}return te.lines(J)}},93297:b=>{"use strict";b.exports=(b,S,J)=>{J=J||S;let ee=Math.min(S-J,b-Math.floor(J/2));if(ee<0)ee=0;let te=Math.min(ee+J,S);return{startIndex:ee,endIndex:te}}},53034:b=>{"use strict";const S={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const J={arrowUp:S.arrowUp,arrowDown:S.arrowDown,arrowLeft:S.arrowLeft,arrowRight:S.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const ee=process.platform==="win32"?J:S;b.exports=ee},39807:(b,S,J)=>{"use strict";b.exports={action:J(18573),clear:J(86747),style:J(27357),strip:J(12714),figures:J(53034),lines:J(44413),wrap:J(62492),entriesToDisplay:J(93297)}},44413:(b,S,J)=>{"use strict";const ee=J(12714);b.exports=function(b,S){let J=String(ee(b)||"").split(/\r?\n/);if(!S)return J.length;return J.map((b=>Math.ceil(b.length/S))).reduce(((b,S)=>b+S))}},12714:b=>{"use strict";b.exports=b=>{const S=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const J=new RegExp(S,"g");return typeof b==="string"?b.replace(J,""):b}},27357:(b,S,J)=>{"use strict";const ee=J(59439);const te=J(53034);const re=Object.freeze({password:{scale:1,render:b=>"*".repeat(b.length)},emoji:{scale:2,render:b=>"😃".repeat(b.length)},invisible:{scale:0,render:b=>""},default:{scale:1,render:b=>`${b}`}});const render=b=>re[b]||re.default;const ne=Object.freeze({aborted:ee.red(te.cross),done:ee.green(te.tick),exited:ee.yellow(te.cross),default:ee.cyan("?")});const symbol=(b,S,J)=>S?ne.aborted:J?ne.exited:b?ne.done:ne.default;const delimiter=b=>ee.gray(b?te.ellipsis:te.pointerSmall);const item=(b,S)=>ee.gray(b?S?te.pointerSmall:"+":te.line);b.exports={styles:re,render:render,symbols:ne,symbol:symbol,delimiter:delimiter,item:item}},62492:b=>{"use strict";b.exports=(b,S={})=>{const J=Number.isSafeInteger(parseInt(S.margin))?new Array(parseInt(S.margin)).fill(" ").join(""):S.margin||"";const ee=S.width;return(b||"").split(/\r?\n/g).map((b=>b.split(/\s+/g).reduce(((b,S)=>{if(S.length+J.length>=ee||b[b.length-1].length+S.length+1<ee)b[b.length-1]+=` ${S}`;else b.push(`${J}${S}`);return b}),[J]).join("\n"))).join("\n")}},40463:(b,S,J)=>{"use strict";b=J.nmd(b);var ee=J(98188);var te=J(71017);b.exports=function requireFromString(S,J,re){if(typeof J==="object"){re=J;J=undefined}re=re||{};J=J||"";re.appendPaths=re.appendPaths||[];re.prependPaths=re.prependPaths||[];if(typeof S!=="string"){throw new Error("code must be a string, not "+typeof S)}var ne=ee._nodeModulePaths(te.dirname(J));var ie=b.parent;var oe=new ee(J,ie);oe.filename=J;oe.paths=[].concat(re.prependPaths).concat(ne).concat(re.appendPaths);oe._compile(S,J);var se=oe.exports;ie&&ie.children&&ie.children.splice(ie.children.indexOf(oe),1);return se}},12753:(b,S,J)=>{"use strict";const ee=J(71017);const te=J(98188);const re=J(57147);const resolveFrom=(b,S,J)=>{if(typeof b!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof b}\``)}if(typeof S!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof S}\``)}try{b=re.realpathSync(b)}catch(S){if(S.code==="ENOENT"){b=ee.resolve(b)}else if(J){return}else{throw S}}const ne=ee.join(b,"noop.js");const resolveFileName=()=>te._resolveFilename(S,{id:ne,filename:ne,paths:te._nodeModulePaths(b)});if(J){try{return resolveFileName()}catch(b){return}}return resolveFileName()};b.exports=(b,S)=>resolveFrom(b,S);b.exports.silent=(b,S)=>resolveFrom(b,S,true)},2780:(b,S,J)=>{const ee=J(39491);const te=J(71017);const re=J(57147);let ne=undefined;try{ne=J(63700)}catch(b){}const ie={nosort:true,silent:true};let oe=0;const se=process.platform==="win32";const defaults=b=>{const S=["unlink","chmod","stat","lstat","rmdir","readdir"];S.forEach((S=>{b[S]=b[S]||re[S];S=S+"Sync";b[S]=b[S]||re[S]}));b.maxBusyTries=b.maxBusyTries||3;b.emfileWait=b.emfileWait||1e3;if(b.glob===false){b.disableGlob=true}if(b.disableGlob!==true&&ne===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}b.disableGlob=b.disableGlob||false;b.glob=b.glob||ie};const rimraf=(b,S,J)=>{if(typeof S==="function"){J=S;S={}}ee(b,"rimraf: missing path");ee.equal(typeof b,"string","rimraf: path should be a string");ee.equal(typeof J,"function","rimraf: callback function required");ee(S,"rimraf: invalid options argument provided");ee.equal(typeof S,"object","rimraf: options should be object");defaults(S);let te=0;let re=null;let ie=0;const next=b=>{re=re||b;if(--ie===0)J(re)};const afterGlob=(b,ee)=>{if(b)return J(b);ie=ee.length;if(ie===0)return J();ee.forEach((b=>{const CB=J=>{if(J){if((J.code==="EBUSY"||J.code==="ENOTEMPTY"||J.code==="EPERM")&&te<S.maxBusyTries){te++;return setTimeout((()=>rimraf_(b,S,CB)),te*100)}if(J.code==="EMFILE"&&oe<S.emfileWait){return setTimeout((()=>rimraf_(b,S,CB)),oe++)}if(J.code==="ENOENT")J=null}oe=0;next(J)};rimraf_(b,S,CB)}))};if(S.disableGlob||!ne.hasMagic(b))return afterGlob(null,[b]);S.lstat(b,((J,ee)=>{if(!J)return afterGlob(null,[b]);ne(b,S.glob,afterGlob)}))};const rimraf_=(b,S,J)=>{ee(b);ee(S);ee(typeof J==="function");S.lstat(b,((ee,te)=>{if(ee&&ee.code==="ENOENT")return J(null);if(ee&&ee.code==="EPERM"&&se)fixWinEPERM(b,S,ee,J);if(te&&te.isDirectory())return rmdir(b,S,ee,J);S.unlink(b,(ee=>{if(ee){if(ee.code==="ENOENT")return J(null);if(ee.code==="EPERM")return se?fixWinEPERM(b,S,ee,J):rmdir(b,S,ee,J);if(ee.code==="EISDIR")return rmdir(b,S,ee,J)}return J(ee)}))}))};const fixWinEPERM=(b,S,J,te)=>{ee(b);ee(S);ee(typeof te==="function");S.chmod(b,438,(ee=>{if(ee)te(ee.code==="ENOENT"?null:J);else S.stat(b,((ee,re)=>{if(ee)te(ee.code==="ENOENT"?null:J);else if(re.isDirectory())rmdir(b,S,J,te);else S.unlink(b,te)}))}))};const fixWinEPERMSync=(b,S,J)=>{ee(b);ee(S);try{S.chmodSync(b,438)}catch(b){if(b.code==="ENOENT")return;else throw J}let te;try{te=S.statSync(b)}catch(b){if(b.code==="ENOENT")return;else throw J}if(te.isDirectory())rmdirSync(b,S,J);else S.unlinkSync(b)};const rmdir=(b,S,J,te)=>{ee(b);ee(S);ee(typeof te==="function");S.rmdir(b,(ee=>{if(ee&&(ee.code==="ENOTEMPTY"||ee.code==="EEXIST"||ee.code==="EPERM"))rmkids(b,S,te);else if(ee&&ee.code==="ENOTDIR")te(J);else te(ee)}))};const rmkids=(b,S,J)=>{ee(b);ee(S);ee(typeof J==="function");S.readdir(b,((ee,re)=>{if(ee)return J(ee);let ne=re.length;if(ne===0)return S.rmdir(b,J);let ie;re.forEach((ee=>{rimraf(te.join(b,ee),S,(ee=>{if(ie)return;if(ee)return J(ie=ee);if(--ne===0)S.rmdir(b,J)}))}))}))};const rimrafSync=(b,S)=>{S=S||{};defaults(S);ee(b,"rimraf: missing path");ee.equal(typeof b,"string","rimraf: path should be a string");ee(S,"rimraf: missing options");ee.equal(typeof S,"object","rimraf: options should be object");let J;if(S.disableGlob||!ne.hasMagic(b)){J=[b]}else{try{S.lstatSync(b);J=[b]}catch(ee){J=ne.sync(b,S.glob)}}if(!J.length)return;for(let b=0;b<J.length;b++){const ee=J[b];let te;try{te=S.lstatSync(ee)}catch(b){if(b.code==="ENOENT")return;if(b.code==="EPERM"&&se)fixWinEPERMSync(ee,S,b)}try{if(te&&te.isDirectory())rmdirSync(ee,S,null);else S.unlinkSync(ee)}catch(b){if(b.code==="ENOENT")return;if(b.code==="EPERM")return se?fixWinEPERMSync(ee,S,b):rmdirSync(ee,S,b);if(b.code!=="EISDIR")throw b;rmdirSync(ee,S,b)}}};const rmdirSync=(b,S,J)=>{ee(b);ee(S);try{S.rmdirSync(b)}catch(ee){if(ee.code==="ENOENT")return;if(ee.code==="ENOTDIR")throw J;if(ee.code==="ENOTEMPTY"||ee.code==="EEXIST"||ee.code==="EPERM")rmkidsSync(b,S)}};const rmkidsSync=(b,S)=>{ee(b);ee(S);S.readdirSync(b).forEach((J=>rimrafSync(te.join(b,J),S)));const J=se?100:1;let re=0;do{let ee=true;try{const te=S.rmdirSync(b,S);ee=false;return te}finally{if(++re<J&&ee)continue}}while(true)};b.exports=rimraf;rimraf.sync=rimrafSync},79746:(b,S,J)=>{(function(b){b.parser=function(b,S){return new SAXParser(b,S)};b.SAXParser=SAXParser;b.SAXStream=SAXStream;b.createStream=createStream;b.MAX_BUFFER_LENGTH=64*1024;var S=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];b.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(S,J){if(!(this instanceof SAXParser)){return new SAXParser(S,J)}var ee=this;clearBuffers(ee);ee.q=ee.c="";ee.bufferCheckPosition=b.MAX_BUFFER_LENGTH;ee.opt=J||{};ee.opt.lowercase=ee.opt.lowercase||ee.opt.lowercasetags;ee.looseCase=ee.opt.lowercase?"toLowerCase":"toUpperCase";ee.tags=[];ee.closed=ee.closedRoot=ee.sawRoot=false;ee.tag=ee.error=null;ee.strict=!!S;ee.noscript=!!(S||ee.opt.noscript);ee.state=pe.BEGIN;ee.strictEntities=ee.opt.strictEntities;ee.ENTITIES=ee.strictEntities?Object.create(b.XML_ENTITIES):Object.create(b.ENTITIES);ee.attribList=[];if(ee.opt.xmlns){ee.ns=Object.create(se)}ee.trackPosition=ee.opt.position!==false;if(ee.trackPosition){ee.position=ee.line=ee.column=0}emit(ee,"onready")}if(!Object.create){Object.create=function(b){function F(){}F.prototype=b;var S=new F;return S}}if(!Object.keys){Object.keys=function(b){var S=[];for(var J in b)if(b.hasOwnProperty(J))S.push(J);return S}}function checkBufferLength(J){var ee=Math.max(b.MAX_BUFFER_LENGTH,10);var te=0;for(var re=0,ne=S.length;re<ne;re++){var ie=J[S[re]].length;if(ie>ee){switch(S[re]){case"textNode":closeText(J);break;case"cdata":emitNode(J,"oncdata",J.cdata);J.cdata="";break;case"script":emitNode(J,"onscript",J.script);J.script="";break;default:error(J,"Max buffer length exceeded: "+S[re])}}te=Math.max(te,ie)}var oe=b.MAX_BUFFER_LENGTH-te;J.bufferCheckPosition=oe+J.position}function clearBuffers(b){for(var J=0,ee=S.length;J<ee;J++){b[S[J]]=""}}function flushBuffers(b){closeText(b);if(b.cdata!==""){emitNode(b,"oncdata",b.cdata);b.cdata=""}if(b.script!==""){emitNode(b,"onscript",b.script);b.script=""}}SAXParser.prototype={end:function(){end(this)},write:write,resume:function(){this.error=null;return this},close:function(){return this.write(null)},flush:function(){flushBuffers(this)}};var ee;try{ee=J(12781).Stream}catch(b){ee=function(){}}var te=b.EVENTS.filter((function(b){return b!=="error"&&b!=="end"}));function createStream(b,S){return new SAXStream(b,S)}function SAXStream(b,S){if(!(this instanceof SAXStream)){return new SAXStream(b,S)}ee.apply(this);this._parser=new SAXParser(b,S);this.writable=true;this.readable=true;var J=this;this._parser.onend=function(){J.emit("end")};this._parser.onerror=function(b){J.emit("error",b);J._parser.error=null};this._decoder=null;te.forEach((function(b){Object.defineProperty(J,"on"+b,{get:function(){return J._parser["on"+b]},set:function(S){if(!S){J.removeAllListeners(b);J._parser["on"+b]=S;return S}J.on(b,S)},enumerable:true,configurable:false})}))}SAXStream.prototype=Object.create(ee.prototype,{constructor:{value:SAXStream}});SAXStream.prototype.write=function(b){if(typeof Buffer==="function"&&typeof Buffer.isBuffer==="function"&&Buffer.isBuffer(b)){if(!this._decoder){var S=J(71576).StringDecoder;this._decoder=new S("utf8")}b=this._decoder.write(b)}this._parser.write(b.toString());this.emit("data",b);return true};SAXStream.prototype.end=function(b){if(b&&b.length){this.write(b)}this._parser.end();return true};SAXStream.prototype.on=function(b,S){var J=this;if(!J._parser["on"+b]&&te.indexOf(b)!==-1){J._parser["on"+b]=function(){var S=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);S.splice(0,0,b);J.emit.apply(J,S)}}return ee.prototype.on.call(J,b,S)};var re="[CDATA[";var ne="DOCTYPE";var ie="http://www.w3.org/XML/1998/namespace";var oe="http://www.w3.org/2000/xmlns/";var se={xml:ie,xmlns:oe};var ae=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var ue=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;var ce=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var le=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function isWhitespace(b){return b===" "||b==="\n"||b==="\r"||b==="\t"}function isQuote(b){return b==='"'||b==="'"}function isAttribEnd(b){return b===">"||isWhitespace(b)}function isMatch(b,S){return b.test(S)}function notMatch(b,S){return!isMatch(b,S)}var pe=0;b.STATE={BEGIN:pe++,BEGIN_WHITESPACE:pe++,TEXT:pe++,TEXT_ENTITY:pe++,OPEN_WAKA:pe++,SGML_DECL:pe++,SGML_DECL_QUOTED:pe++,DOCTYPE:pe++,DOCTYPE_QUOTED:pe++,DOCTYPE_DTD:pe++,DOCTYPE_DTD_QUOTED:pe++,COMMENT_STARTING:pe++,COMMENT:pe++,COMMENT_ENDING:pe++,COMMENT_ENDED:pe++,CDATA:pe++,CDATA_ENDING:pe++,CDATA_ENDING_2:pe++,PROC_INST:pe++,PROC_INST_BODY:pe++,PROC_INST_ENDING:pe++,OPEN_TAG:pe++,OPEN_TAG_SLASH:pe++,ATTRIB:pe++,ATTRIB_NAME:pe++,ATTRIB_NAME_SAW_WHITE:pe++,ATTRIB_VALUE:pe++,ATTRIB_VALUE_QUOTED:pe++,ATTRIB_VALUE_CLOSED:pe++,ATTRIB_VALUE_UNQUOTED:pe++,ATTRIB_VALUE_ENTITY_Q:pe++,ATTRIB_VALUE_ENTITY_U:pe++,CLOSE_TAG:pe++,CLOSE_TAG_SAW_WHITE:pe++,SCRIPT:pe++,SCRIPT_ENDING:pe++};b.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};b.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(b.ENTITIES).forEach((function(S){var J=b.ENTITIES[S];var ee=typeof J==="number"?String.fromCharCode(J):J;b.ENTITIES[S]=ee}));for(var fe in b.STATE){b.STATE[b.STATE[fe]]=fe}pe=b.STATE;function emit(b,S,J){b[S]&&b[S](J)}function emitNode(b,S,J){if(b.textNode)closeText(b);emit(b,S,J)}function closeText(b){b.textNode=textopts(b.opt,b.textNode);if(b.textNode)emit(b,"ontext",b.textNode);b.textNode=""}function textopts(b,S){if(b.trim)S=S.trim();if(b.normalize)S=S.replace(/\s+/g," ");return S}function error(b,S){closeText(b);if(b.trackPosition){S+="\nLine: "+b.line+"\nColumn: "+b.column+"\nChar: "+b.c}S=new Error(S);b.error=S;emit(b,"onerror",S);return b}function end(b){if(b.sawRoot&&!b.closedRoot)strictFail(b,"Unclosed root tag");if(b.state!==pe.BEGIN&&b.state!==pe.BEGIN_WHITESPACE&&b.state!==pe.TEXT){error(b,"Unexpected end")}closeText(b);b.c="";b.closed=true;emit(b,"onend");SAXParser.call(b,b.strict,b.opt);return b}function strictFail(b,S){if(typeof b!=="object"||!(b instanceof SAXParser)){throw new Error("bad call to strictFail")}if(b.strict){error(b,S)}}function newTag(b){if(!b.strict)b.tagName=b.tagName[b.looseCase]();var S=b.tags[b.tags.length-1]||b;var J=b.tag={name:b.tagName,attributes:{}};if(b.opt.xmlns){J.ns=S.ns}b.attribList.length=0;emitNode(b,"onopentagstart",J)}function qname(b,S){var J=b.indexOf(":");var ee=J<0?["",b]:b.split(":");var te=ee[0];var re=ee[1];if(S&&b==="xmlns"){te="xmlns";re=""}return{prefix:te,local:re}}function attrib(b){if(!b.strict){b.attribName=b.attribName[b.looseCase]()}if(b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var S=qname(b.attribName,true);var J=S.prefix;var ee=S.local;if(J==="xmlns"){if(ee==="xml"&&b.attribValue!==ie){strictFail(b,"xml: prefix must be bound to "+ie+"\n"+"Actual: "+b.attribValue)}else if(ee==="xmlns"&&b.attribValue!==oe){strictFail(b,"xmlns: prefix must be bound to "+oe+"\n"+"Actual: "+b.attribValue)}else{var te=b.tag;var re=b.tags[b.tags.length-1]||b;if(te.ns===re.ns){te.ns=Object.create(re.ns)}te.ns[ee]=b.attribValue}}b.attribList.push([b.attribName,b.attribValue])}else{b.tag.attributes[b.attribName]=b.attribValue;emitNode(b,"onattribute",{name:b.attribName,value:b.attribValue})}b.attribName=b.attribValue=""}function openTag(b,S){if(b.opt.xmlns){var J=b.tag;var ee=qname(b.tagName);J.prefix=ee.prefix;J.local=ee.local;J.uri=J.ns[ee.prefix]||"";if(J.prefix&&!J.uri){strictFail(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName));J.uri=ee.prefix}var te=b.tags[b.tags.length-1]||b;if(J.ns&&te.ns!==J.ns){Object.keys(J.ns).forEach((function(S){emitNode(b,"onopennamespace",{prefix:S,uri:J.ns[S]})}))}for(var re=0,ne=b.attribList.length;re<ne;re++){var ie=b.attribList[re];var oe=ie[0];var se=ie[1];var ae=qname(oe,true);var ue=ae.prefix;var ce=ae.local;var le=ue===""?"":J.ns[ue]||"";var fe={name:oe,value:se,prefix:ue,local:ce,uri:le};if(ue&&ue!=="xmlns"&&!le){strictFail(b,"Unbound namespace prefix: "+JSON.stringify(ue));fe.uri=ue}b.tag.attributes[oe]=fe;emitNode(b,"onattribute",fe)}b.attribList.length=0}b.tag.isSelfClosing=!!S;b.sawRoot=true;b.tags.push(b.tag);emitNode(b,"onopentag",b.tag);if(!S){if(!b.noscript&&b.tagName.toLowerCase()==="script"){b.state=pe.SCRIPT}else{b.state=pe.TEXT}b.tag=null;b.tagName=""}b.attribName=b.attribValue="";b.attribList.length=0}function closeTag(b){if(!b.tagName){strictFail(b,"Weird empty close tag.");b.textNode+="</>";b.state=pe.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">";b.tagName="";b.state=pe.SCRIPT;return}emitNode(b,"onscript",b.script);b.script=""}var S=b.tags.length;var J=b.tagName;if(!b.strict){J=J[b.looseCase]()}var ee=J;while(S--){var te=b.tags[S];if(te.name!==ee){strictFail(b,"Unexpected close tag")}else{break}}if(S<0){strictFail(b,"Unmatched closing tag: "+b.tagName);b.textNode+="</"+b.tagName+">";b.state=pe.TEXT;return}b.tagName=J;var re=b.tags.length;while(re-- >S){var ne=b.tag=b.tags.pop();b.tagName=b.tag.name;emitNode(b,"onclosetag",b.tagName);var ie={};for(var oe in ne.ns){ie[oe]=ne.ns[oe]}var se=b.tags[b.tags.length-1]||b;if(b.opt.xmlns&&ne.ns!==se.ns){Object.keys(ne.ns).forEach((function(S){var J=ne.ns[S];emitNode(b,"onclosenamespace",{prefix:S,uri:J})}))}}if(S===0)b.closedRoot=true;b.tagName=b.attribValue=b.attribName="";b.attribList.length=0;b.state=pe.TEXT}function parseEntity(b){var S=b.entity;var J=S.toLowerCase();var ee;var te="";if(b.ENTITIES[S]){return b.ENTITIES[S]}if(b.ENTITIES[J]){return b.ENTITIES[J]}S=J;if(S.charAt(0)==="#"){if(S.charAt(1)==="x"){S=S.slice(2);ee=parseInt(S,16);te=ee.toString(16)}else{S=S.slice(1);ee=parseInt(S,10);te=ee.toString(10)}}S=S.replace(/^0+/,"");if(isNaN(ee)||te.toLowerCase()!==S){strictFail(b,"Invalid character entity");return"&"+b.entity+";"}return String.fromCodePoint(ee)}function beginWhiteSpace(b,S){if(S==="<"){b.state=pe.OPEN_WAKA;b.startTagPosition=b.position}else if(!isWhitespace(S)){strictFail(b,"Non-whitespace before first tag.");b.textNode=S;b.state=pe.TEXT}}function charAt(b,S){var J="";if(S<b.length){J=b.charAt(S)}return J}function write(b){var S=this;if(this.error){throw this.error}if(S.closed){return error(S,"Cannot write after close. Assign an onready handler.")}if(b===null){return end(S)}if(typeof b==="object"){b=b.toString()}var J=0;var ee="";while(true){ee=charAt(b,J++);S.c=ee;if(!ee){break}if(S.trackPosition){S.position++;if(ee==="\n"){S.line++;S.column=0}else{S.column++}}switch(S.state){case pe.BEGIN:S.state=pe.BEGIN_WHITESPACE;if(ee==="\ufeff"){continue}beginWhiteSpace(S,ee);continue;case pe.BEGIN_WHITESPACE:beginWhiteSpace(S,ee);continue;case pe.TEXT:if(S.sawRoot&&!S.closedRoot){var te=J-1;while(ee&&ee!=="<"&&ee!=="&"){ee=charAt(b,J++);if(ee&&S.trackPosition){S.position++;if(ee==="\n"){S.line++;S.column=0}else{S.column++}}}S.textNode+=b.substring(te,J-1)}if(ee==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)){S.state=pe.OPEN_WAKA;S.startTagPosition=S.position}else{if(!isWhitespace(ee)&&(!S.sawRoot||S.closedRoot)){strictFail(S,"Text data outside of root node.")}if(ee==="&"){S.state=pe.TEXT_ENTITY}else{S.textNode+=ee}}continue;case pe.SCRIPT:if(ee==="<"){S.state=pe.SCRIPT_ENDING}else{S.script+=ee}continue;case pe.SCRIPT_ENDING:if(ee==="/"){S.state=pe.CLOSE_TAG}else{S.script+="<"+ee;S.state=pe.SCRIPT}continue;case pe.OPEN_WAKA:if(ee==="!"){S.state=pe.SGML_DECL;S.sgmlDecl=""}else if(isWhitespace(ee)){}else if(isMatch(ae,ee)){S.state=pe.OPEN_TAG;S.tagName=ee}else if(ee==="/"){S.state=pe.CLOSE_TAG;S.tagName=""}else if(ee==="?"){S.state=pe.PROC_INST;S.procInstName=S.procInstBody=""}else{strictFail(S,"Unencoded <");if(S.startTagPosition+1<S.position){var ie=S.position-S.startTagPosition;ee=new Array(ie).join(" ")+ee}S.textNode+="<"+ee;S.state=pe.TEXT}continue;case pe.SGML_DECL:if((S.sgmlDecl+ee).toUpperCase()===re){emitNode(S,"onopencdata");S.state=pe.CDATA;S.sgmlDecl="";S.cdata=""}else if(S.sgmlDecl+ee==="--"){S.state=pe.COMMENT;S.comment="";S.sgmlDecl=""}else if((S.sgmlDecl+ee).toUpperCase()===ne){S.state=pe.DOCTYPE;if(S.doctype||S.sawRoot){strictFail(S,"Inappropriately located doctype declaration")}S.doctype="";S.sgmlDecl=""}else if(ee===">"){emitNode(S,"onsgmldeclaration",S.sgmlDecl);S.sgmlDecl="";S.state=pe.TEXT}else if(isQuote(ee)){S.state=pe.SGML_DECL_QUOTED;S.sgmlDecl+=ee}else{S.sgmlDecl+=ee}continue;case pe.SGML_DECL_QUOTED:if(ee===S.q){S.state=pe.SGML_DECL;S.q=""}S.sgmlDecl+=ee;continue;case pe.DOCTYPE:if(ee===">"){S.state=pe.TEXT;emitNode(S,"ondoctype",S.doctype);S.doctype=true}else{S.doctype+=ee;if(ee==="["){S.state=pe.DOCTYPE_DTD}else if(isQuote(ee)){S.state=pe.DOCTYPE_QUOTED;S.q=ee}}continue;case pe.DOCTYPE_QUOTED:S.doctype+=ee;if(ee===S.q){S.q="";S.state=pe.DOCTYPE}continue;case pe.DOCTYPE_DTD:S.doctype+=ee;if(ee==="]"){S.state=pe.DOCTYPE}else if(isQuote(ee)){S.state=pe.DOCTYPE_DTD_QUOTED;S.q=ee}continue;case pe.DOCTYPE_DTD_QUOTED:S.doctype+=ee;if(ee===S.q){S.state=pe.DOCTYPE_DTD;S.q=""}continue;case pe.COMMENT:if(ee==="-"){S.state=pe.COMMENT_ENDING}else{S.comment+=ee}continue;case pe.COMMENT_ENDING:if(ee==="-"){S.state=pe.COMMENT_ENDED;S.comment=textopts(S.opt,S.comment);if(S.comment){emitNode(S,"oncomment",S.comment)}S.comment=""}else{S.comment+="-"+ee;S.state=pe.COMMENT}continue;case pe.COMMENT_ENDED:if(ee!==">"){strictFail(S,"Malformed comment");S.comment+="--"+ee;S.state=pe.COMMENT}else{S.state=pe.TEXT}continue;case pe.CDATA:if(ee==="]"){S.state=pe.CDATA_ENDING}else{S.cdata+=ee}continue;case pe.CDATA_ENDING:if(ee==="]"){S.state=pe.CDATA_ENDING_2}else{S.cdata+="]"+ee;S.state=pe.CDATA}continue;case pe.CDATA_ENDING_2:if(ee===">"){if(S.cdata){emitNode(S,"oncdata",S.cdata)}emitNode(S,"onclosecdata");S.cdata="";S.state=pe.TEXT}else if(ee==="]"){S.cdata+="]"}else{S.cdata+="]]"+ee;S.state=pe.CDATA}continue;case pe.PROC_INST:if(ee==="?"){S.state=pe.PROC_INST_ENDING}else if(isWhitespace(ee)){S.state=pe.PROC_INST_BODY}else{S.procInstName+=ee}continue;case pe.PROC_INST_BODY:if(!S.procInstBody&&isWhitespace(ee)){continue}else if(ee==="?"){S.state=pe.PROC_INST_ENDING}else{S.procInstBody+=ee}continue;case pe.PROC_INST_ENDING:if(ee===">"){emitNode(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody});S.procInstName=S.procInstBody="";S.state=pe.TEXT}else{S.procInstBody+="?"+ee;S.state=pe.PROC_INST_BODY}continue;case pe.OPEN_TAG:if(isMatch(ue,ee)){S.tagName+=ee}else{newTag(S);if(ee===">"){openTag(S)}else if(ee==="/"){S.state=pe.OPEN_TAG_SLASH}else{if(!isWhitespace(ee)){strictFail(S,"Invalid character in tag name")}S.state=pe.ATTRIB}}continue;case pe.OPEN_TAG_SLASH:if(ee===">"){openTag(S,true);closeTag(S)}else{strictFail(S,"Forward-slash in opening tag not followed by >");S.state=pe.ATTRIB}continue;case pe.ATTRIB:if(isWhitespace(ee)){continue}else if(ee===">"){openTag(S)}else if(ee==="/"){S.state=pe.OPEN_TAG_SLASH}else if(isMatch(ae,ee)){S.attribName=ee;S.attribValue="";S.state=pe.ATTRIB_NAME}else{strictFail(S,"Invalid attribute name")}continue;case pe.ATTRIB_NAME:if(ee==="="){S.state=pe.ATTRIB_VALUE}else if(ee===">"){strictFail(S,"Attribute without value");S.attribValue=S.attribName;attrib(S);openTag(S)}else if(isWhitespace(ee)){S.state=pe.ATTRIB_NAME_SAW_WHITE}else if(isMatch(ue,ee)){S.attribName+=ee}else{strictFail(S,"Invalid attribute name")}continue;case pe.ATTRIB_NAME_SAW_WHITE:if(ee==="="){S.state=pe.ATTRIB_VALUE}else if(isWhitespace(ee)){continue}else{strictFail(S,"Attribute without value");S.tag.attributes[S.attribName]="";S.attribValue="";emitNode(S,"onattribute",{name:S.attribName,value:""});S.attribName="";if(ee===">"){openTag(S)}else if(isMatch(ae,ee)){S.attribName=ee;S.state=pe.ATTRIB_NAME}else{strictFail(S,"Invalid attribute name");S.state=pe.ATTRIB}}continue;case pe.ATTRIB_VALUE:if(isWhitespace(ee)){continue}else if(isQuote(ee)){S.q=ee;S.state=pe.ATTRIB_VALUE_QUOTED}else{strictFail(S,"Unquoted attribute value");S.state=pe.ATTRIB_VALUE_UNQUOTED;S.attribValue=ee}continue;case pe.ATTRIB_VALUE_QUOTED:if(ee!==S.q){if(ee==="&"){S.state=pe.ATTRIB_VALUE_ENTITY_Q}else{S.attribValue+=ee}continue}attrib(S);S.q="";S.state=pe.ATTRIB_VALUE_CLOSED;continue;case pe.ATTRIB_VALUE_CLOSED:if(isWhitespace(ee)){S.state=pe.ATTRIB}else if(ee===">"){openTag(S)}else if(ee==="/"){S.state=pe.OPEN_TAG_SLASH}else if(isMatch(ae,ee)){strictFail(S,"No whitespace between attributes");S.attribName=ee;S.attribValue="";S.state=pe.ATTRIB_NAME}else{strictFail(S,"Invalid attribute name")}continue;case pe.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(ee)){if(ee==="&"){S.state=pe.ATTRIB_VALUE_ENTITY_U}else{S.attribValue+=ee}continue}attrib(S);if(ee===">"){openTag(S)}else{S.state=pe.ATTRIB}continue;case pe.CLOSE_TAG:if(!S.tagName){if(isWhitespace(ee)){continue}else if(notMatch(ae,ee)){if(S.script){S.script+="</"+ee;S.state=pe.SCRIPT}else{strictFail(S,"Invalid tagname in closing tag.")}}else{S.tagName=ee}}else if(ee===">"){closeTag(S)}else if(isMatch(ue,ee)){S.tagName+=ee}else if(S.script){S.script+="</"+S.tagName;S.tagName="";S.state=pe.SCRIPT}else{if(!isWhitespace(ee)){strictFail(S,"Invalid tagname in closing tag")}S.state=pe.CLOSE_TAG_SAW_WHITE}continue;case pe.CLOSE_TAG_SAW_WHITE:if(isWhitespace(ee)){continue}if(ee===">"){closeTag(S)}else{strictFail(S,"Invalid characters in closing tag")}continue;case pe.TEXT_ENTITY:case pe.ATTRIB_VALUE_ENTITY_Q:case pe.ATTRIB_VALUE_ENTITY_U:var oe;var se;switch(S.state){case pe.TEXT_ENTITY:oe=pe.TEXT;se="textNode";break;case pe.ATTRIB_VALUE_ENTITY_Q:oe=pe.ATTRIB_VALUE_QUOTED;se="attribValue";break;case pe.ATTRIB_VALUE_ENTITY_U:oe=pe.ATTRIB_VALUE_UNQUOTED;se="attribValue";break}if(ee===";"){S[se]+=parseEntity(S);S.entity="";S.state=oe}else if(isMatch(S.entity.length?le:ce,ee)){S.entity+=ee}else{strictFail(S,"Invalid character in entity name");S[se]+="&"+S.entity+ee;S.entity="";S.state=oe}continue;default:throw new Error(S,"Unknown state: "+S.state)}}if(S.position>=S.bufferCheckPosition){checkBufferLength(S)}return S}
|
|
33
33
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var b=String.fromCharCode;var S=Math.floor;var fromCodePoint=function(){var J=16384;var ee=[];var te;var re;var ne=-1;var ie=arguments.length;if(!ie){return""}var oe="";while(++ne<ie){var se=Number(arguments[ne]);if(!isFinite(se)||se<0||se>1114111||S(se)!==se){throw RangeError("Invalid code point: "+se)}if(se<=65535){ee.push(se)}else{se-=65536;te=(se>>10)+55296;re=se%1024+56320;ee.push(te,re)}if(ne+1===ie||ee.length>J){oe+=b.apply(null,ee);ee.length=0}}return oe};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:S)},52028:(b,S,J)=>{var ee=global.process;const processOk=function(b){return b&&typeof b==="object"&&typeof b.removeListener==="function"&&typeof b.emit==="function"&&typeof b.reallyExit==="function"&&typeof b.listeners==="function"&&typeof b.kill==="function"&&typeof b.pid==="number"&&typeof b.on==="function"};if(!processOk(ee)){b.exports=function(){return function(){}}}else{var te=J(39491);var re=J(20019);var ne=/^win/i.test(ee.platform);var ie=J(82361);if(typeof ie!=="function"){ie=ie.EventEmitter}var oe;if(ee.__signal_exit_emitter__){oe=ee.__signal_exit_emitter__}else{oe=ee.__signal_exit_emitter__=new ie;oe.count=0;oe.emitted={}}if(!oe.infinite){oe.setMaxListeners(Infinity);oe.infinite=true}b.exports=function(b,S){if(!processOk(global.process)){return function(){}}te.equal(typeof b,"function","a callback must be provided for exit handler");if(ce===false){le()}var J="exit";if(S&&S.alwaysLast){J="afterexit"}var remove=function(){oe.removeListener(J,b);if(oe.listeners("exit").length===0&&oe.listeners("afterexit").length===0){se()}};oe.on(J,b);return remove};var se=function unload(){if(!ce||!processOk(global.process)){return}ce=false;re.forEach((function(b){try{ee.removeListener(b,ue[b])}catch(b){}}));ee.emit=de;ee.reallyExit=pe;oe.count-=1};b.exports.unload=se;var ae=function emit(b,S,J){if(oe.emitted[b]){return}oe.emitted[b]=true;oe.emit(b,S,J)};var ue={};re.forEach((function(b){ue[b]=function listener(){if(!processOk(global.process)){return}var S=ee.listeners(b);if(S.length===oe.count){se();ae("exit",null,b);ae("afterexit",null,b);if(ne&&b==="SIGHUP"){b="SIGINT"}ee.kill(ee.pid,b)}}}));b.exports.signals=function(){return re};var ce=false;var le=function load(){if(ce||!processOk(global.process)){return}ce=true;oe.count+=1;re=re.filter((function(b){try{ee.on(b,ue[b]);return true}catch(b){return false}}));ee.emit=he;ee.reallyExit=fe};b.exports.load=le;var pe=ee.reallyExit;var fe=function processReallyExit(b){if(!processOk(global.process)){return}ee.exitCode=b||0;ae("exit",ee.exitCode,null);ae("afterexit",ee.exitCode,null);pe.call(ee,ee.exitCode)};var de=ee.emit;var he=function processEmit(b,S){if(b==="exit"&&processOk(global.process)){if(S!==undefined){ee.exitCode=S}var J=de.apply(this,arguments);ae("exit",ee.exitCode,null);ae("afterexit",ee.exitCode,null);return J}else{return de.apply(this,arguments)}}}},20019:b=>{b.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){b.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){b.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},51735:function(b,S){var J=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};(function(J){if(true&&typeof b.exports==="object"){var ee=J(require,S);if(ee!==undefined)b.exports=ee}else if(typeof define==="function"&&define.amd){define(["require","exports","bplist-creator","bplist-parser","./parse","./readFile","./readFileSync","./stringify","./writeBinaryFile","./writeBinaryFileSync","./writeFile","./writeFileSync"],J)}})((function(S,ee){"use strict";Object.defineProperty(ee,"__esModule",{value:true});var te=J(S("bplist-creator"));var re=J(S("bplist-parser"));var ne=S("./parse");var ie=S("./readFile");var oe=S("./readFileSync");var se=S("./stringify");var ae=S("./writeBinaryFile");var ue=S("./writeBinaryFileSync");var ce=S("./writeFile");var le=S("./writeFileSync");var pe={bplistCreator:te.default,bplistParser:re.default,parse:ne.parse,readFile:ie.readFile,readFileSync:oe.readFileSync,stringify:se.stringify,writeBinaryFile:ae.writeBinaryFile,writeBinaryFileSync:ue.writeBinaryFileSync,writeFile:ce.writeFile,writeFileSync:le.writeFileSync};ee.default=pe;b.exports=pe}))},20332:b=>{"use strict";const S="";const J=`${S}[`;const ee="";const te={to(b,S){if(!S)return`${J}${b+1}G`;return`${J}${S+1};${b+1}H`},move(b,S){let ee="";if(b<0)ee+=`${J}${-b}D`;else if(b>0)ee+=`${J}${b}C`;if(S<0)ee+=`${J}${-S}A`;else if(S>0)ee+=`${J}${S}B`;return ee},up:(b=1)=>`${J}${b}A`,down:(b=1)=>`${J}${b}B`,forward:(b=1)=>`${J}${b}C`,backward:(b=1)=>`${J}${b}D`,nextLine:(b=1)=>`${J}E`.repeat(b),prevLine:(b=1)=>`${J}F`.repeat(b),left:`${J}G`,hide:`${J}?25l`,show:`${J}?25h`,save:`${S}7`,restore:`${S}8`};const re={up:(b=1)=>`${J}S`.repeat(b),down:(b=1)=>`${J}T`.repeat(b)};const ne={screen:`${J}2J`,up:(b=1)=>`${J}1J`.repeat(b),down:(b=1)=>`${J}J`.repeat(b),line:`${J}2K`,lineEnd:`${J}K`,lineStart:`${J}1K`,lines(b){let S="";for(let J=0;J<b;J++)S+=this.line+(J<b-1?te.up():"");if(b)S+=te.left;return S}};b.exports={cursor:te,scroll:re,erase:ne,beep:ee}},63645:b=>{"use strict";b.exports=b=>{const S=/^\\\\\?\\/.test(b);const J=/[^\u0000-\u0080]+/.test(b);if(S||J){return b}return b.replace(/\\/g,"/")}},22283:function(b){(function(S,J,ee){if(true){b.exports=ee();b.exports["default"]=ee()}else{}})("slugify",this,(function(){var b=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}');var S=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function replace(J,ee){if(typeof J!=="string"){throw new Error("slugify: string argument expected")}ee=typeof ee==="string"?{replacement:ee}:ee||{};var te=S[ee.locale]||{};var re=J.split("").reduce((function(S,J){return S+(te[J]||b[J]||J).replace(ee.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")}),"").trim().replace(/[-\s]+/g,ee.replacement||"-");return ee.lower?re.toLowerCase():re}replace.extend=function(S){for(var J in S){b[J]=S[J]}};return replace}))},64560:(b,S,J)=>{var ee=J(11746);var te=J(71576).StringDecoder;b.exports=split;function split(b,S,J){var re=new te;var ne="";var ie=J&&J.maxLength;var oe=J&&J.trailing===false?false:true;if("function"===typeof b)S=b,b=null;if(!b)b=/\r?\n/;function emit(b,J){if(S){try{J=S(J)}catch(S){return b.emit("error",S)}if("undefined"!==typeof J)b.queue(J)}else b.queue(J)}function next(S,J){var ee=((ne!=null?ne:"")+J).split(b);ne=ee.pop();if(ie&&ne.length>ie)return S.emit("error",new Error("maximum buffer reached"));for(var te=0;te<ee.length;te++){var re=ee[te];emit(S,re)}}return ee((function(b){next(this,re.write(b))}),(function(){if(re.end)next(this,re.end());if(oe&&ne!=null)emit(this,ne);this.queue(null)}))}},94855:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(61346);var re=J(58256);var ne=J(89416);class CJSImportProcessor{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(b,S,J,ee,te,re){this.nameManager=b;this.tokens=S;this.enableLegacyTypeScriptModuleInterop=J;this.options=ee;this.isTypeScriptTransformEnabled=te;this.helperManager=re;CJSImportProcessor.prototype.__init.call(this);CJSImportProcessor.prototype.__init2.call(this);CJSImportProcessor.prototype.__init3.call(this);CJSImportProcessor.prototype.__init4.call(this);CJSImportProcessor.prototype.__init5.call(this)}preprocessTokens(){for(let b=0;b<this.tokens.tokens.length;b++){if(this.tokens.matches1AtIndex(b,re.TokenType._import)&&!this.tokens.matches3AtIndex(b,re.TokenType._import,re.TokenType.name,re.TokenType.eq)){this.preprocessImportAtIndex(b)}if(this.tokens.matches1AtIndex(b,re.TokenType._export)&&!this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType.eq)){this.preprocessExportAtIndex(b)}}this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=ne.getNonTypeIdentifiers.call(void 0,this.tokens,this.options);for(const[b,S]of this.importInfoByPath.entries()){if(S.hasBareImport||S.hasStarExport||S.exportStarNames.length>0||S.namedExports.length>0){continue}const J=[...S.defaultNames,...S.wildcardNames,...S.namedImports.map((({localName:b})=>b))];if(J.every((b=>this.isTypeName(b)))){this.importsToReplace.set(b,"")}}}isTypeName(b){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(b)}generateImportReplacements(){for(const[b,S]of this.importInfoByPath.entries()){const{defaultNames:J,wildcardNames:ee,namedImports:te,namedExports:re,exportStarNames:ne,hasStarExport:ie}=S;if(J.length===0&&ee.length===0&&te.length===0&&re.length===0&&ne.length===0&&!ie){this.importsToReplace.set(b,`require('${b}');`);continue}const oe=this.getFreeIdentifierForPath(b);let se;if(this.enableLegacyTypeScriptModuleInterop){se=oe}else{se=ee.length>0?ee[0]:this.getFreeIdentifierForPath(b)}let ae=`var ${oe} = require('${b}');`;if(ee.length>0){for(const b of ee){const S=this.enableLegacyTypeScriptModuleInterop?oe:`${this.helperManager.getHelperName("interopRequireWildcard")}(${oe})`;ae+=` var ${b} = ${S};`}}else if(ne.length>0&&se!==oe){ae+=` var ${se} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${oe});`}else if(J.length>0&&se!==oe){ae+=` var ${se} = ${this.helperManager.getHelperName("interopRequireDefault")}(${oe});`}for(const{importedName:b,localName:S}of re){ae+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${oe}, '${S}', '${b}');`}for(const b of ne){ae+=` exports.${b} = ${se};`}if(ie){ae+=` ${this.helperManager.getHelperName("createStarExport")}(${oe});`}this.importsToReplace.set(b,ae);for(const b of J){this.identifierReplacements.set(b,`${se}.default`)}for(const{importedName:b,localName:S}of te){this.identifierReplacements.set(S,`${oe}.${b}`)}}}getFreeIdentifierForPath(b){const S=b.split("/");const J=S[S.length-1];const ee=J.replace(/\W/g,"");return this.nameManager.claimFreeName(`_${ee}`)}preprocessImportAtIndex(b){const S=[];const J=[];const ee=[];b++;if((this.tokens.matchesContextualAtIndex(b,te.ContextualKeyword._type)||this.tokens.matches1AtIndex(b,re.TokenType._typeof))&&!this.tokens.matches1AtIndex(b+1,re.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(b+1,te.ContextualKeyword._from)){return}if(this.tokens.matches1AtIndex(b,re.TokenType.parenL)){return}if(this.tokens.matches1AtIndex(b,re.TokenType.name)){S.push(this.tokens.identifierNameAtIndex(b));b++;if(this.tokens.matches1AtIndex(b,re.TokenType.comma)){b++}}if(this.tokens.matches1AtIndex(b,re.TokenType.star)){b+=2;J.push(this.tokens.identifierNameAtIndex(b));b++}if(this.tokens.matches1AtIndex(b,re.TokenType.braceL)){const J=this.getNamedImports(b+1);b=J.newIndex;for(const b of J.namedImports){if(b.importedName==="default"){S.push(b.localName)}else{ee.push(b)}}}if(this.tokens.matchesContextualAtIndex(b,te.ContextualKeyword._from)){b++}if(!this.tokens.matches1AtIndex(b,re.TokenType.string)){throw new Error("Expected string token at the end of import statement.")}const ne=this.tokens.stringValueAtIndex(b);const ie=this.getImportInfo(ne);ie.defaultNames.push(...S);ie.wildcardNames.push(...J);ie.namedImports.push(...ee);if(S.length===0&&J.length===0&&ee.length===0){ie.hasBareImport=true}}preprocessExportAtIndex(b){if(this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType._var)||this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType._let)||this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType._const)){this.preprocessVarExportAtIndex(b)}else if(this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType._function)||this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType._class)){const S=this.tokens.identifierNameAtIndex(b+2);this.addExportBinding(S,S)}else if(this.tokens.matches3AtIndex(b,re.TokenType._export,re.TokenType.name,re.TokenType._function)){const S=this.tokens.identifierNameAtIndex(b+3);this.addExportBinding(S,S)}else if(this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType.braceL)){this.preprocessNamedExportAtIndex(b)}else if(this.tokens.matches2AtIndex(b,re.TokenType._export,re.TokenType.star)){this.preprocessExportStarAtIndex(b)}}preprocessVarExportAtIndex(b){let S=0;for(let J=b+2;;J++){if(this.tokens.matches1AtIndex(J,re.TokenType.braceL)||this.tokens.matches1AtIndex(J,re.TokenType.dollarBraceL)||this.tokens.matches1AtIndex(J,re.TokenType.bracketL)){S++}else if(this.tokens.matches1AtIndex(J,re.TokenType.braceR)||this.tokens.matches1AtIndex(J,re.TokenType.bracketR)){S--}else if(S===0&&!this.tokens.matches1AtIndex(J,re.TokenType.name)){break}else if(this.tokens.matches1AtIndex(1,re.TokenType.eq)){const b=this.tokens.currentToken().rhsEndIndex;if(b==null){throw new Error("Expected = token with an end index.")}J=b-1}else{const b=this.tokens.tokens[J];if(ee.isDeclaration.call(void 0,b)){const b=this.tokens.identifierNameAtIndex(J);this.identifierReplacements.set(b,`exports.${b}`)}}}}preprocessNamedExportAtIndex(b){b+=2;const{newIndex:S,namedImports:J}=this.getNamedImports(b);b=S;if(this.tokens.matchesContextualAtIndex(b,te.ContextualKeyword._from)){b++}else{for(const{importedName:b,localName:S}of J){this.addExportBinding(b,S)}return}if(!this.tokens.matches1AtIndex(b,re.TokenType.string)){throw new Error("Expected string token at the end of import statement.")}const ee=this.tokens.stringValueAtIndex(b);const ne=this.getImportInfo(ee);ne.namedExports.push(...J)}preprocessExportStarAtIndex(b){let S=null;if(this.tokens.matches3AtIndex(b,re.TokenType._export,re.TokenType.star,re.TokenType._as)){b+=3;S=this.tokens.identifierNameAtIndex(b);b+=2}else{b+=3}if(!this.tokens.matches1AtIndex(b,re.TokenType.string)){throw new Error("Expected string token at the end of star export statement.")}const J=this.tokens.stringValueAtIndex(b);const ee=this.getImportInfo(J);if(S!==null){ee.exportStarNames.push(S)}else{ee.hasStarExport=true}}getNamedImports(b){const S=[];while(true){if(this.tokens.matches1AtIndex(b,re.TokenType.braceR)){b++;break}let J=false;if((this.tokens.matchesContextualAtIndex(b,te.ContextualKeyword._type)||this.tokens.matches1AtIndex(b,re.TokenType._typeof))&&this.tokens.matches1AtIndex(b+1,re.TokenType.name)&&!this.tokens.matchesContextualAtIndex(b+1,te.ContextualKeyword._as)){J=true;b++}const ee=this.tokens.identifierNameAtIndex(b);let ne;b++;if(this.tokens.matchesContextualAtIndex(b,te.ContextualKeyword._as)){b++;ne=this.tokens.identifierNameAtIndex(b);b++}else{ne=ee}if(!J){S.push({importedName:ee,localName:ne})}if(this.tokens.matches2AtIndex(b,re.TokenType.comma,re.TokenType.braceR)){b+=2;break}else if(this.tokens.matches1AtIndex(b,re.TokenType.braceR)){b++;break}else if(this.tokens.matches1AtIndex(b,re.TokenType.comma)){b++}else{throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[b])}`)}}return{newIndex:b,namedImports:S}}getImportInfo(b){const S=this.importInfoByPath.get(b);if(S){return S}const J={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:false,exportStarNames:[],hasStarExport:false};this.importInfoByPath.set(b,J);return J}addExportBinding(b,S){if(!this.exportBindingsByLocalName.has(b)){this.exportBindingsByLocalName.set(b,[])}this.exportBindingsByLocalName.get(b).push(S)}claimImportCode(b){const S=this.importsToReplace.get(b);this.importsToReplace.set(b,"");return S||""}getIdentifierReplacement(b){return this.identifierReplacements.get(b)||null}resolveExportBinding(b){const S=this.exportBindingsByLocalName.get(b);if(!S||S.length===0){return null}return S.map((b=>`exports.${b}`)).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}S["default"]=CJSImportProcessor},82497:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});const J={interopRequireWildcard:`\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n `,interopRequireDefault:`\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n `,createNamedExportFrom:`\n function createNamedExportFrom(obj, localName, importedName) {\n Object.defineProperty(exports, localName, {enumerable: true, get: () => obj[importedName]});\n }\n `,createStarExport:`\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, get: () => obj[key]});\n });\n }\n `,nullishCoalesce:`\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n `,asyncNullishCoalesce:`\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n `,optionalChain:`\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n `,asyncOptionalChain:`\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n `,optionalChainDelete:`\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n `,asyncOptionalChainDelete:`\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n `};class HelperManager{__init(){this.helperNames={}}constructor(b){this.nameManager=b;HelperManager.prototype.__init.call(this)}getHelperName(b){let S=this.helperNames[b];if(S){return S}S=this.nameManager.claimFreeName(`_${b}`);this.helperNames[b]=S;return S}emitHelpers(){let b="";if(this.helperNames.optionalChainDelete){this.getHelperName("optionalChain")}if(this.helperNames.asyncOptionalChainDelete){this.getHelperName("asyncOptionalChain")}for(const[S,ee]of Object.entries(J)){const J=this.helperNames[S];let te=ee;if(S==="optionalChainDelete"){te=te.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain)}else if(S==="asyncOptionalChainDelete"){te=te.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain)}if(J){b+=" ";b+=te.replace(S,J).replace(/\s+/g," ").trim()}}return b}}S.HelperManager=HelperManager},19297:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(19666);var te=_interopRequireDefault(ee);class NameManager{__init(){this.usedNames=new Set}constructor(b,S){NameManager.prototype.__init.call(this);this.usedNames=new Set(te.default.call(void 0,b,S))}claimFreeName(b){const S=this.findFreeName(b);this.usedNames.add(S);return S}findFreeName(b){if(!this.usedNames.has(b)){return b}let S=2;while(this.usedNames.has(b+String(S))){S++}return b+String(S)}}S["default"]=NameManager},9607:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireWildcard(b){if(b&&b.__esModule){return b}else{var S={};if(b!=null){for(var J in b){if(Object.prototype.hasOwnProperty.call(b,J)){S[J]=b[J]}}}S.default=b;return S}}var ee=J(98674);var te=_interopRequireWildcard(ee);const re=te.union(te.lit("jsx"),te.lit("typescript"),te.lit("flow"),te.lit("imports"),te.lit("react-hot-loader"),te.lit("jest"));S.Transform=re;const ne=te.iface([],{compiledFilename:"string"});S.SourceMapOptions=ne;const ie=te.iface([],{transforms:te.array("Transform"),jsxPragma:te.opt("string"),jsxFragmentPragma:te.opt("string"),enableLegacyTypeScriptModuleInterop:te.opt("boolean"),enableLegacyBabel5ModuleInterop:te.opt("boolean"),sourceMapOptions:te.opt("SourceMapOptions"),filePath:te.opt("string"),production:te.opt("boolean"),disableESTransforms:te.opt("boolean")});S.Options=ie;const oe={Transform:S.Transform,SourceMapOptions:S.SourceMapOptions,Options:S.Options};S["default"]=oe},22450:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(98674);var te=J(9607);var re=_interopRequireDefault(te);const{Options:ne}=ee.createCheckers.call(void 0,re.default);function validateOptions(b){ne.strictCheck(b)}S.validateOptions=validateOptions},57215:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(58256);var te=J(77995);var re=_interopRequireDefault(te);class TokenProcessor{__init(){this.resultCode=""}__init2(){this.tokenIndex=0}constructor(b,S,J,ee,te){this.code=b;this.tokens=S;this.isFlowEnabled=J;this.disableESTransforms=ee;this.helperManager=te;TokenProcessor.prototype.__init.call(this);TokenProcessor.prototype.__init2.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(b){this.resultCode=b.resultCode;this.tokenIndex=b.tokenIndex}getResultCodeIndex(){return this.resultCode.length}reset(){this.resultCode="";this.tokenIndex=0}matchesContextualAtIndex(b,S){return this.matches1AtIndex(b,ee.TokenType.name)&&this.tokens[b].contextualKeyword===S}identifierNameAtIndex(b){return this.identifierNameForToken(this.tokens[b])}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(b){return this.code.slice(b.start,b.end)}rawCodeForToken(b){return this.code.slice(b.start,b.end)}stringValueAtIndex(b){return this.stringValueForToken(this.tokens[b])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(b){return this.code.slice(b.start+1,b.end-1)}matches1AtIndex(b,S){return this.tokens[b].type===S}matches2AtIndex(b,S,J){return this.tokens[b].type===S&&this.tokens[b+1].type===J}matches3AtIndex(b,S,J,ee){return this.tokens[b].type===S&&this.tokens[b+1].type===J&&this.tokens[b+2].type===ee}matches1(b){return this.tokens[this.tokenIndex].type===b}matches2(b,S){return this.tokens[this.tokenIndex].type===b&&this.tokens[this.tokenIndex+1].type===S}matches3(b,S,J){return this.tokens[this.tokenIndex].type===b&&this.tokens[this.tokenIndex+1].type===S&&this.tokens[this.tokenIndex+2].type===J}matches4(b,S,J,ee){return this.tokens[this.tokenIndex].type===b&&this.tokens[this.tokenIndex+1].type===S&&this.tokens[this.tokenIndex+2].type===J&&this.tokens[this.tokenIndex+3].type===ee}matches5(b,S,J,ee,te){return this.tokens[this.tokenIndex].type===b&&this.tokens[this.tokenIndex+1].type===S&&this.tokens[this.tokenIndex+2].type===J&&this.tokens[this.tokenIndex+3].type===ee&&this.tokens[this.tokenIndex+4].type===te}matchesContextual(b){return this.matchesContextualAtIndex(this.tokenIndex,b)}matchesContextIdAndLabel(b,S){return this.matches1(b)&&this.currentToken().contextId===S}previousWhitespaceAndComments(){let b=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);if(this.isFlowEnabled){b=b.replace(/@flow/g,"")}return b}replaceToken(b){this.resultCode+=this.previousWhitespaceAndComments();this.appendTokenPrefix();this.resultCode+=b;this.appendTokenSuffix();this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(b){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,"");this.appendTokenPrefix();this.resultCode+=b;this.appendTokenSuffix();this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}copyExpectedToken(b){if(this.tokens[this.tokenIndex].type!==b){throw new Error(`Expected token ${b}`)}this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments();this.appendTokenPrefix();this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end);this.appendTokenSuffix();this.tokenIndex++}copyTokenWithPrefix(b){this.resultCode+=this.previousWhitespaceAndComments();this.appendTokenPrefix();this.resultCode+=b;this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end);this.appendTokenSuffix();this.tokenIndex++}appendTokenPrefix(){const b=this.currentToken();if(b.numNullishCoalesceStarts||b.isOptionalChainStart){b.isAsyncOperation=re.default.call(void 0,this)}if(this.disableESTransforms){return}if(b.numNullishCoalesceStarts){for(let S=0;S<b.numNullishCoalesceStarts;S++){if(b.isAsyncOperation){this.resultCode+="await ";this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")}else{this.resultCode+=this.helperManager.getHelperName("nullishCoalesce")}this.resultCode+="("}}if(b.isOptionalChainStart){if(b.isAsyncOperation){this.resultCode+="await "}if(this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===ee.TokenType._delete){if(b.isAsyncOperation){this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete")}else{this.resultCode+=this.helperManager.getHelperName("optionalChainDelete")}}else if(b.isAsyncOperation){this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain")}else{this.resultCode+=this.helperManager.getHelperName("optionalChain")}this.resultCode+="(["}}appendTokenSuffix(){const b=this.currentToken();if(b.isOptionalChainEnd&&!this.disableESTransforms){this.resultCode+="])"}if(b.numNullishCoalesceEnds&&!this.disableESTransforms){for(let S=0;S<b.numNullishCoalesceEnds;S++){this.resultCode+="))"}}}appendCode(b){this.resultCode+=b}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const b=this.currentToken();return this.code.slice(b.start,b.end)}tokenAtRelativeIndex(b){return this.tokens[this.tokenIndex+b]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length){throw new Error("Unexpectedly reached end of input.")}this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length){throw new Error("Tried to finish processing tokens before reaching the end.")}this.resultCode+=this.previousWhitespaceAndComments();return this.resultCode}isAtEnd(){return this.tokenIndex===this.tokens.length}}S["default"]=TokenProcessor},33959:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(38824);function computeSourceMap(b,S,{compiledFilename:J}){let te="AAAA";for(let S=0;S<b.length;S++){if(b.charCodeAt(S)===ee.charCodes.lineFeed){te+=";AACA"}}return{version:3,file:J||"",sources:[S],mappings:te,names:[]}}S["default"]=computeSourceMap},57658:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(58256);function identifyShadowedGlobals(b,S,J){if(!hasShadowedGlobals(b,J)){return}markShadowedGlobals(b,S,J)}S["default"]=identifyShadowedGlobals;function hasShadowedGlobals(b,S){for(const J of b.tokens){if(J.type===te.TokenType.name&&ee.isNonTopLevelDeclaration.call(void 0,J)&&S.has(b.identifierNameForToken(J))){return true}}return false}S.hasShadowedGlobals=hasShadowedGlobals;function markShadowedGlobals(b,S,J){const re=[];let ne=S.length-1;for(let ie=b.tokens.length-1;;ie--){while(re.length>0&&re[re.length-1].startTokenIndex===ie+1){re.pop()}while(ne>=0&&S[ne].endTokenIndex===ie+1){re.push(S[ne]);ne--}if(ie<0){break}const oe=b.tokens[ie];const se=b.identifierNameForToken(oe);if(re.length>1&&oe.type===te.TokenType.name&&J.has(se)){if(ee.isBlockScopedDeclaration.call(void 0,oe)){markShadowedForScope(re[re.length-1],b,se)}else if(ee.isFunctionScopedDeclaration.call(void 0,oe)){let S=re.length-1;while(S>0&&!re[S].isFunctionScope){S--}if(S<0){throw new Error("Did not find parent function scope.")}markShadowedForScope(re[S],b,se)}}}if(re.length>0){throw new Error("Expected empty scope stack after processing file.")}}function markShadowedForScope(b,S,J){for(let ee=b.startTokenIndex;ee<b.endTokenIndex;ee++){const b=S.tokens[ee];if(b.type===te.TokenType.name&&S.identifierNameForToken(b)===J){b.shadowsGlobal=true}}}},55155:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(94855);var te=_interopRequireDefault(ee);var re=J(33959);var ne=_interopRequireDefault(re);var ie=J(82497);var oe=J(57658);var se=_interopRequireDefault(oe);var ae=J(19297);var ue=_interopRequireDefault(ae);var ce=J(22450);var le=J(25430);var pe=J(57215);var fe=_interopRequireDefault(pe);var de=J(83455);var he=_interopRequireDefault(de);var me=J(40498);var ge=_interopRequireDefault(me);var ye=J(81973);var ve=_interopRequireDefault(ye);function getVersion(){return J(92610).i8}S.getVersion=getVersion;function transform(b,S){ce.validateOptions.call(void 0,S);try{const J=getSucraseContext(b,S);const ee=new(0,he.default)(J,S.transforms,Boolean(S.enableLegacyBabel5ModuleInterop),S);let te={code:ee.transform()};if(S.sourceMapOptions){if(!S.filePath){throw new Error("filePath must be specified when generating a source map.")}te={...te,sourceMap:ne.default.call(void 0,te.code,S.filePath,S.sourceMapOptions)}}return te}catch(b){if(S.filePath){b.message=`Error transforming ${S.filePath}: ${b.message}`}throw b}}S.transform=transform;function getFormattedTokens(b,S){const J=getSucraseContext(b,S).tokenProcessor.tokens;return ge.default.call(void 0,b,J)}S.getFormattedTokens=getFormattedTokens;function getSucraseContext(b,S){const J=S.transforms.includes("jsx");const ee=S.transforms.includes("typescript");const re=S.transforms.includes("flow");const ne=S.disableESTransforms===true;const oe=le.parse.call(void 0,b,J,ee,re);const ae=oe.tokens;const ce=oe.scopes;const pe=new(0,ue.default)(b,ae);const de=new(0,ie.HelperManager)(pe);const he=new(0,fe.default)(b,ae,re,ne,de);const me=Boolean(S.enableLegacyTypeScriptModuleInterop);let ge=null;if(S.transforms.includes("imports")){ge=new(0,te.default)(pe,he,me,S,S.transforms.includes("typescript"),de);ge.preprocessTokens();se.default.call(void 0,he,ce,ge.getGlobalNames());if(S.transforms.includes("typescript")){ge.pruneTypeOnlyImports()}}else if(S.transforms.includes("typescript")){se.default.call(void 0,he,ce,ve.default.call(void 0,he))}return{tokenProcessor:he,scopes:ce,nameManager:pe,importProcessor:ge,helperManager:de}}},25430:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(99064);var te=J(29121);class File{constructor(b,S){this.tokens=b;this.scopes=S}}S.File=File;function parse(b,S,J,re){if(re&&J){throw new Error("Cannot combine flow and typescript plugins.")}ee.initParser.call(void 0,b,S,J,re);const ne=te.parseFile.call(void 0);if(ee.state.error){throw ee.augmentError.call(void 0,ee.state.error)}return ne}S.parse=parse},34290:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(61346);var re=J(58256);var ne=J(99064);var ie=J(58273);var oe=J(85120);var se=J(8128);function isMaybeDefaultImport(b){return(b.type===re.TokenType.name||!!(b.type&re.TokenType.IS_KEYWORD))&&b.contextualKeyword!==te.ContextualKeyword._from}function flowParseTypeInitialiser(b){const S=ee.pushTypeContext.call(void 0,0);se.expect.call(void 0,b||re.TokenType.colon);flowParseType();ee.popTypeContext.call(void 0,S)}function flowParsePredicate(){se.expect.call(void 0,re.TokenType.modulo);se.expectContextual.call(void 0,te.ContextualKeyword._checks);if(ee.eat.call(void 0,re.TokenType.parenL)){ie.parseExpression.call(void 0);se.expect.call(void 0,re.TokenType.parenR)}}function flowParseTypeAndPredicateInitialiser(){const b=ee.pushTypeContext.call(void 0,0);se.expect.call(void 0,re.TokenType.colon);if(ee.match.call(void 0,re.TokenType.modulo)){flowParsePredicate()}else{flowParseType();if(ee.match.call(void 0,re.TokenType.modulo)){flowParsePredicate()}}ee.popTypeContext.call(void 0,b)}function flowParseDeclareClass(){ee.next.call(void 0);flowParseInterfaceish(true)}function flowParseDeclareFunction(){ee.next.call(void 0);ie.parseIdentifier.call(void 0);if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterDeclaration()}se.expect.call(void 0,re.TokenType.parenL);flowParseFunctionTypeParams();se.expect.call(void 0,re.TokenType.parenR);flowParseTypeAndPredicateInitialiser();se.semicolon.call(void 0)}function flowParseDeclare(){if(ee.match.call(void 0,re.TokenType._class)){flowParseDeclareClass()}else if(ee.match.call(void 0,re.TokenType._function)){flowParseDeclareFunction()}else if(ee.match.call(void 0,re.TokenType._var)){flowParseDeclareVariable()}else if(se.eatContextual.call(void 0,te.ContextualKeyword._module)){if(ee.eat.call(void 0,re.TokenType.dot)){flowParseDeclareModuleExports()}else{flowParseDeclareModule()}}else if(se.isContextual.call(void 0,te.ContextualKeyword._type)){flowParseDeclareTypeAlias()}else if(se.isContextual.call(void 0,te.ContextualKeyword._opaque)){flowParseDeclareOpaqueType()}else if(se.isContextual.call(void 0,te.ContextualKeyword._interface)){flowParseDeclareInterface()}else if(ee.match.call(void 0,re.TokenType._export)){flowParseDeclareExportDeclaration()}else{se.unexpected.call(void 0)}}function flowParseDeclareVariable(){ee.next.call(void 0);flowParseTypeAnnotatableIdentifier();se.semicolon.call(void 0)}function flowParseDeclareModule(){if(ee.match.call(void 0,re.TokenType.string)){ie.parseExprAtom.call(void 0)}else{ie.parseIdentifier.call(void 0)}se.expect.call(void 0,re.TokenType.braceL);while(!ee.match.call(void 0,re.TokenType.braceR)&&!ne.state.error){if(ee.match.call(void 0,re.TokenType._import)){ee.next.call(void 0);oe.parseImport.call(void 0)}else{se.unexpected.call(void 0)}}se.expect.call(void 0,re.TokenType.braceR)}function flowParseDeclareExportDeclaration(){se.expect.call(void 0,re.TokenType._export);if(ee.eat.call(void 0,re.TokenType._default)){if(ee.match.call(void 0,re.TokenType._function)||ee.match.call(void 0,re.TokenType._class)){flowParseDeclare()}else{flowParseType();se.semicolon.call(void 0)}}else if(ee.match.call(void 0,re.TokenType._var)||ee.match.call(void 0,re.TokenType._function)||ee.match.call(void 0,re.TokenType._class)||se.isContextual.call(void 0,te.ContextualKeyword._opaque)){flowParseDeclare()}else if(ee.match.call(void 0,re.TokenType.star)||ee.match.call(void 0,re.TokenType.braceL)||se.isContextual.call(void 0,te.ContextualKeyword._interface)||se.isContextual.call(void 0,te.ContextualKeyword._type)||se.isContextual.call(void 0,te.ContextualKeyword._opaque)){oe.parseExport.call(void 0)}else{se.unexpected.call(void 0)}}function flowParseDeclareModuleExports(){se.expectContextual.call(void 0,te.ContextualKeyword._exports);flowParseTypeAnnotation();se.semicolon.call(void 0)}function flowParseDeclareTypeAlias(){ee.next.call(void 0);flowParseTypeAlias()}function flowParseDeclareOpaqueType(){ee.next.call(void 0);flowParseOpaqueType(true)}function flowParseDeclareInterface(){ee.next.call(void 0);flowParseInterfaceish()}function flowParseInterfaceish(b=false){flowParseRestrictedIdentifier();if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterDeclaration()}if(ee.eat.call(void 0,re.TokenType._extends)){do{flowParseInterfaceExtends()}while(!b&&ee.eat.call(void 0,re.TokenType.comma))}if(se.isContextual.call(void 0,te.ContextualKeyword._mixins)){ee.next.call(void 0);do{flowParseInterfaceExtends()}while(ee.eat.call(void 0,re.TokenType.comma))}if(se.isContextual.call(void 0,te.ContextualKeyword._implements)){ee.next.call(void 0);do{flowParseInterfaceExtends()}while(ee.eat.call(void 0,re.TokenType.comma))}flowParseObjectType(b,false,b)}function flowParseInterfaceExtends(){flowParseQualifiedTypeIdentifier(false);if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterInstantiation()}}function flowParseInterface(){flowParseInterfaceish()}function flowParseRestrictedIdentifier(){ie.parseIdentifier.call(void 0)}function flowParseTypeAlias(){flowParseRestrictedIdentifier();if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterDeclaration()}flowParseTypeInitialiser(re.TokenType.eq);se.semicolon.call(void 0)}function flowParseOpaqueType(b){se.expectContextual.call(void 0,te.ContextualKeyword._type);flowParseRestrictedIdentifier();if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterDeclaration()}if(ee.match.call(void 0,re.TokenType.colon)){flowParseTypeInitialiser(re.TokenType.colon)}if(!b){flowParseTypeInitialiser(re.TokenType.eq)}se.semicolon.call(void 0)}function flowParseTypeParameter(){flowParseVariance();flowParseTypeAnnotatableIdentifier();if(ee.eat.call(void 0,re.TokenType.eq)){flowParseType()}}function flowParseTypeParameterDeclaration(){const b=ee.pushTypeContext.call(void 0,0);if(ee.match.call(void 0,re.TokenType.lessThan)||ee.match.call(void 0,re.TokenType.typeParameterStart)){ee.next.call(void 0)}else{se.unexpected.call(void 0)}do{flowParseTypeParameter();if(!ee.match.call(void 0,re.TokenType.greaterThan)){se.expect.call(void 0,re.TokenType.comma)}}while(!ee.match.call(void 0,re.TokenType.greaterThan)&&!ne.state.error);se.expect.call(void 0,re.TokenType.greaterThan);ee.popTypeContext.call(void 0,b)}S.flowParseTypeParameterDeclaration=flowParseTypeParameterDeclaration;function flowParseTypeParameterInstantiation(){const b=ee.pushTypeContext.call(void 0,0);se.expect.call(void 0,re.TokenType.lessThan);while(!ee.match.call(void 0,re.TokenType.greaterThan)&&!ne.state.error){flowParseType();if(!ee.match.call(void 0,re.TokenType.greaterThan)){se.expect.call(void 0,re.TokenType.comma)}}se.expect.call(void 0,re.TokenType.greaterThan);ee.popTypeContext.call(void 0,b)}function flowParseInterfaceType(){se.expectContextual.call(void 0,te.ContextualKeyword._interface);if(ee.eat.call(void 0,re.TokenType._extends)){do{flowParseInterfaceExtends()}while(ee.eat.call(void 0,re.TokenType.comma))}flowParseObjectType(false,false,false)}function flowParseObjectPropertyKey(){if(ee.match.call(void 0,re.TokenType.num)||ee.match.call(void 0,re.TokenType.string)){ie.parseExprAtom.call(void 0)}else{ie.parseIdentifier.call(void 0)}}function flowParseObjectTypeIndexer(){if(ee.lookaheadType.call(void 0)===re.TokenType.colon){flowParseObjectPropertyKey();flowParseTypeInitialiser()}else{flowParseType()}se.expect.call(void 0,re.TokenType.bracketR);flowParseTypeInitialiser()}function flowParseObjectTypeInternalSlot(){flowParseObjectPropertyKey();se.expect.call(void 0,re.TokenType.bracketR);se.expect.call(void 0,re.TokenType.bracketR);if(ee.match.call(void 0,re.TokenType.lessThan)||ee.match.call(void 0,re.TokenType.parenL)){flowParseObjectTypeMethodish()}else{ee.eat.call(void 0,re.TokenType.question);flowParseTypeInitialiser()}}function flowParseObjectTypeMethodish(){if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterDeclaration()}se.expect.call(void 0,re.TokenType.parenL);while(!ee.match.call(void 0,re.TokenType.parenR)&&!ee.match.call(void 0,re.TokenType.ellipsis)&&!ne.state.error){flowParseFunctionTypeParam();if(!ee.match.call(void 0,re.TokenType.parenR)){se.expect.call(void 0,re.TokenType.comma)}}if(ee.eat.call(void 0,re.TokenType.ellipsis)){flowParseFunctionTypeParam()}se.expect.call(void 0,re.TokenType.parenR);flowParseTypeInitialiser()}function flowParseObjectTypeCallProperty(){flowParseObjectTypeMethodish()}function flowParseObjectType(b,S,J){let ie;if(S&&ee.match.call(void 0,re.TokenType.braceBarL)){se.expect.call(void 0,re.TokenType.braceBarL);ie=re.TokenType.braceBarR}else{se.expect.call(void 0,re.TokenType.braceL);ie=re.TokenType.braceR}while(!ee.match.call(void 0,ie)&&!ne.state.error){if(J&&se.isContextual.call(void 0,te.ContextualKeyword._proto)){const S=ee.lookaheadType.call(void 0);if(S!==re.TokenType.colon&&S!==re.TokenType.question){ee.next.call(void 0);b=false}}if(b&&se.isContextual.call(void 0,te.ContextualKeyword._static)){const b=ee.lookaheadType.call(void 0);if(b!==re.TokenType.colon&&b!==re.TokenType.question){ee.next.call(void 0)}}flowParseVariance();if(ee.eat.call(void 0,re.TokenType.bracketL)){if(ee.eat.call(void 0,re.TokenType.bracketL)){flowParseObjectTypeInternalSlot()}else{flowParseObjectTypeIndexer()}}else if(ee.match.call(void 0,re.TokenType.parenL)||ee.match.call(void 0,re.TokenType.lessThan)){flowParseObjectTypeCallProperty()}else{if(se.isContextual.call(void 0,te.ContextualKeyword._get)||se.isContextual.call(void 0,te.ContextualKeyword._set)){const b=ee.lookaheadType.call(void 0);if(b===re.TokenType.name||b===re.TokenType.string||b===re.TokenType.num){ee.next.call(void 0)}}flowParseObjectTypeProperty()}flowObjectTypeSemicolon()}se.expect.call(void 0,ie)}function flowParseObjectTypeProperty(){if(ee.match.call(void 0,re.TokenType.ellipsis)){se.expect.call(void 0,re.TokenType.ellipsis);if(!ee.eat.call(void 0,re.TokenType.comma)){ee.eat.call(void 0,re.TokenType.semi)}if(ee.match.call(void 0,re.TokenType.braceR)){return}flowParseType()}else{flowParseObjectPropertyKey();if(ee.match.call(void 0,re.TokenType.lessThan)||ee.match.call(void 0,re.TokenType.parenL)){flowParseObjectTypeMethodish()}else{ee.eat.call(void 0,re.TokenType.question);flowParseTypeInitialiser()}}}function flowObjectTypeSemicolon(){if(!ee.eat.call(void 0,re.TokenType.semi)&&!ee.eat.call(void 0,re.TokenType.comma)&&!ee.match.call(void 0,re.TokenType.braceR)&&!ee.match.call(void 0,re.TokenType.braceBarR)){se.unexpected.call(void 0)}}function flowParseQualifiedTypeIdentifier(b){if(!b){ie.parseIdentifier.call(void 0)}while(ee.eat.call(void 0,re.TokenType.dot)){ie.parseIdentifier.call(void 0)}}function flowParseGenericType(){flowParseQualifiedTypeIdentifier(true);if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterInstantiation()}}function flowParseTypeofType(){se.expect.call(void 0,re.TokenType._typeof);flowParsePrimaryType()}function flowParseTupleType(){se.expect.call(void 0,re.TokenType.bracketL);while(ne.state.pos<ne.input.length&&!ee.match.call(void 0,re.TokenType.bracketR)){flowParseType();if(ee.match.call(void 0,re.TokenType.bracketR)){break}se.expect.call(void 0,re.TokenType.comma)}se.expect.call(void 0,re.TokenType.bracketR)}function flowParseFunctionTypeParam(){const b=ee.lookaheadType.call(void 0);if(b===re.TokenType.colon||b===re.TokenType.question){ie.parseIdentifier.call(void 0);ee.eat.call(void 0,re.TokenType.question);flowParseTypeInitialiser()}else{flowParseType()}}function flowParseFunctionTypeParams(){while(!ee.match.call(void 0,re.TokenType.parenR)&&!ee.match.call(void 0,re.TokenType.ellipsis)&&!ne.state.error){flowParseFunctionTypeParam();if(!ee.match.call(void 0,re.TokenType.parenR)){se.expect.call(void 0,re.TokenType.comma)}}if(ee.eat.call(void 0,re.TokenType.ellipsis)){flowParseFunctionTypeParam()}}function flowParsePrimaryType(){let b=false;const S=ne.state.noAnonFunctionType;switch(ne.state.type){case re.TokenType.name:{if(se.isContextual.call(void 0,te.ContextualKeyword._interface)){flowParseInterfaceType();return}ie.parseIdentifier.call(void 0);flowParseGenericType();return}case re.TokenType.braceL:flowParseObjectType(false,false,false);return;case re.TokenType.braceBarL:flowParseObjectType(false,true,false);return;case re.TokenType.bracketL:flowParseTupleType();return;case re.TokenType.lessThan:flowParseTypeParameterDeclaration();se.expect.call(void 0,re.TokenType.parenL);flowParseFunctionTypeParams();se.expect.call(void 0,re.TokenType.parenR);se.expect.call(void 0,re.TokenType.arrow);flowParseType();return;case re.TokenType.parenL:ee.next.call(void 0);if(!ee.match.call(void 0,re.TokenType.parenR)&&!ee.match.call(void 0,re.TokenType.ellipsis)){if(ee.match.call(void 0,re.TokenType.name)){const S=ee.lookaheadType.call(void 0);b=S!==re.TokenType.question&&S!==re.TokenType.colon}else{b=true}}if(b){ne.state.noAnonFunctionType=false;flowParseType();ne.state.noAnonFunctionType=S;if(ne.state.noAnonFunctionType||!(ee.match.call(void 0,re.TokenType.comma)||ee.match.call(void 0,re.TokenType.parenR)&&ee.lookaheadType.call(void 0)===re.TokenType.arrow)){se.expect.call(void 0,re.TokenType.parenR);return}else{ee.eat.call(void 0,re.TokenType.comma)}}flowParseFunctionTypeParams();se.expect.call(void 0,re.TokenType.parenR);se.expect.call(void 0,re.TokenType.arrow);flowParseType();return;case re.TokenType.minus:ee.next.call(void 0);ie.parseLiteral.call(void 0);return;case re.TokenType.string:case re.TokenType.num:case re.TokenType._true:case re.TokenType._false:case re.TokenType._null:case re.TokenType._this:case re.TokenType._void:case re.TokenType.star:ee.next.call(void 0);return;default:if(ne.state.type===re.TokenType._typeof){flowParseTypeofType();return}else if(ne.state.type&re.TokenType.IS_KEYWORD){ee.next.call(void 0);ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType.name;return}}se.unexpected.call(void 0)}function flowParsePostfixType(){flowParsePrimaryType();while(!se.canInsertSemicolon.call(void 0)&&(ee.match.call(void 0,re.TokenType.bracketL)||ee.match.call(void 0,re.TokenType.questionDot))){ee.eat.call(void 0,re.TokenType.questionDot);se.expect.call(void 0,re.TokenType.bracketL);if(ee.eat.call(void 0,re.TokenType.bracketR)){}else{flowParseType();se.expect.call(void 0,re.TokenType.bracketR)}}}function flowParsePrefixType(){if(ee.eat.call(void 0,re.TokenType.question)){flowParsePrefixType()}else{flowParsePostfixType()}}function flowParseAnonFunctionWithoutParens(){flowParsePrefixType();if(!ne.state.noAnonFunctionType&&ee.eat.call(void 0,re.TokenType.arrow)){flowParseType()}}function flowParseIntersectionType(){ee.eat.call(void 0,re.TokenType.bitwiseAND);flowParseAnonFunctionWithoutParens();while(ee.eat.call(void 0,re.TokenType.bitwiseAND)){flowParseAnonFunctionWithoutParens()}}function flowParseUnionType(){ee.eat.call(void 0,re.TokenType.bitwiseOR);flowParseIntersectionType();while(ee.eat.call(void 0,re.TokenType.bitwiseOR)){flowParseIntersectionType()}}function flowParseType(){flowParseUnionType()}function flowParseTypeAnnotation(){flowParseTypeInitialiser()}S.flowParseTypeAnnotation=flowParseTypeAnnotation;function flowParseTypeAnnotatableIdentifier(){ie.parseIdentifier.call(void 0);if(ee.match.call(void 0,re.TokenType.colon)){flowParseTypeAnnotation()}}function flowParseVariance(){if(ee.match.call(void 0,re.TokenType.plus)||ee.match.call(void 0,re.TokenType.minus)){ee.next.call(void 0);ne.state.tokens[ne.state.tokens.length-1].isType=true}}S.flowParseVariance=flowParseVariance;function flowParseFunctionBodyAndFinish(b){if(ee.match.call(void 0,re.TokenType.colon)){flowParseTypeAndPredicateInitialiser()}ie.parseFunctionBody.call(void 0,false,b)}S.flowParseFunctionBodyAndFinish=flowParseFunctionBodyAndFinish;function flowParseSubscript(b,S,J){if(ee.match.call(void 0,re.TokenType.questionDot)&&ee.lookaheadType.call(void 0)===re.TokenType.lessThan){if(S){J.stop=true;return}ee.next.call(void 0);flowParseTypeParameterInstantiation();se.expect.call(void 0,re.TokenType.parenL);ie.parseCallExpressionArguments.call(void 0);return}else if(!S&&ee.match.call(void 0,re.TokenType.lessThan)){const b=ne.state.snapshot();flowParseTypeParameterInstantiation();se.expect.call(void 0,re.TokenType.parenL);ie.parseCallExpressionArguments.call(void 0);if(ne.state.error){ne.state.restoreFromSnapshot(b)}else{return}}ie.baseParseSubscript.call(void 0,b,S,J)}S.flowParseSubscript=flowParseSubscript;function flowStartParseNewArguments(){if(ee.match.call(void 0,re.TokenType.lessThan)){const b=ne.state.snapshot();flowParseTypeParameterInstantiation();if(ne.state.error){ne.state.restoreFromSnapshot(b)}}}S.flowStartParseNewArguments=flowStartParseNewArguments;function flowTryParseStatement(){if(ee.match.call(void 0,re.TokenType.name)&&ne.state.contextualKeyword===te.ContextualKeyword._interface){const b=ee.pushTypeContext.call(void 0,0);ee.next.call(void 0);flowParseInterface();ee.popTypeContext.call(void 0,b);return true}else{return false}}S.flowTryParseStatement=flowTryParseStatement;function flowParseIdentifierStatement(b){if(b===te.ContextualKeyword._declare){if(ee.match.call(void 0,re.TokenType._class)||ee.match.call(void 0,re.TokenType.name)||ee.match.call(void 0,re.TokenType._function)||ee.match.call(void 0,re.TokenType._var)||ee.match.call(void 0,re.TokenType._export)){const b=ee.pushTypeContext.call(void 0,1);flowParseDeclare();ee.popTypeContext.call(void 0,b)}}else if(ee.match.call(void 0,re.TokenType.name)){if(b===te.ContextualKeyword._interface){const b=ee.pushTypeContext.call(void 0,1);flowParseInterface();ee.popTypeContext.call(void 0,b)}else if(b===te.ContextualKeyword._type){const b=ee.pushTypeContext.call(void 0,1);flowParseTypeAlias();ee.popTypeContext.call(void 0,b)}else if(b===te.ContextualKeyword._opaque){const b=ee.pushTypeContext.call(void 0,1);flowParseOpaqueType(false);ee.popTypeContext.call(void 0,b)}}se.semicolon.call(void 0)}S.flowParseIdentifierStatement=flowParseIdentifierStatement;function flowShouldParseExportDeclaration(){return se.isContextual.call(void 0,te.ContextualKeyword._type)||se.isContextual.call(void 0,te.ContextualKeyword._interface)||se.isContextual.call(void 0,te.ContextualKeyword._opaque)}S.flowShouldParseExportDeclaration=flowShouldParseExportDeclaration;function flowShouldDisallowExportDefaultSpecifier(){return ee.match.call(void 0,re.TokenType.name)&&(ne.state.contextualKeyword===te.ContextualKeyword._type||ne.state.contextualKeyword===te.ContextualKeyword._interface||ne.state.contextualKeyword===te.ContextualKeyword._opaque)}S.flowShouldDisallowExportDefaultSpecifier=flowShouldDisallowExportDefaultSpecifier;function flowParseExportDeclaration(){if(se.isContextual.call(void 0,te.ContextualKeyword._type)){const b=ee.pushTypeContext.call(void 0,1);ee.next.call(void 0);if(ee.match.call(void 0,re.TokenType.braceL)){oe.parseExportSpecifiers.call(void 0);oe.parseExportFrom.call(void 0)}else{flowParseTypeAlias()}ee.popTypeContext.call(void 0,b)}else if(se.isContextual.call(void 0,te.ContextualKeyword._opaque)){const b=ee.pushTypeContext.call(void 0,1);ee.next.call(void 0);flowParseOpaqueType(false);ee.popTypeContext.call(void 0,b)}else if(se.isContextual.call(void 0,te.ContextualKeyword._interface)){const b=ee.pushTypeContext.call(void 0,1);ee.next.call(void 0);flowParseInterface();ee.popTypeContext.call(void 0,b)}else{oe.parseStatement.call(void 0,true)}}S.flowParseExportDeclaration=flowParseExportDeclaration;function flowShouldParseExportStar(){return ee.match.call(void 0,re.TokenType.star)||se.isContextual.call(void 0,te.ContextualKeyword._type)&&ee.lookaheadType.call(void 0)===re.TokenType.star}S.flowShouldParseExportStar=flowShouldParseExportStar;function flowParseExportStar(){if(se.eatContextual.call(void 0,te.ContextualKeyword._type)){const b=ee.pushTypeContext.call(void 0,2);oe.baseParseExportStar.call(void 0);ee.popTypeContext.call(void 0,b)}else{oe.baseParseExportStar.call(void 0)}}S.flowParseExportStar=flowParseExportStar;function flowAfterParseClassSuper(b){if(b&&ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterInstantiation()}if(se.isContextual.call(void 0,te.ContextualKeyword._implements)){const b=ee.pushTypeContext.call(void 0,0);ee.next.call(void 0);ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._implements;do{flowParseRestrictedIdentifier();if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterInstantiation()}}while(ee.eat.call(void 0,re.TokenType.comma));ee.popTypeContext.call(void 0,b)}}S.flowAfterParseClassSuper=flowAfterParseClassSuper;function flowStartParseObjPropValue(){if(ee.match.call(void 0,re.TokenType.lessThan)){flowParseTypeParameterDeclaration();if(!ee.match.call(void 0,re.TokenType.parenL))se.unexpected.call(void 0)}}S.flowStartParseObjPropValue=flowStartParseObjPropValue;function flowParseAssignableListItemTypes(){const b=ee.pushTypeContext.call(void 0,0);ee.eat.call(void 0,re.TokenType.question);if(ee.match.call(void 0,re.TokenType.colon)){flowParseTypeAnnotation()}ee.popTypeContext.call(void 0,b)}S.flowParseAssignableListItemTypes=flowParseAssignableListItemTypes;function flowStartParseImportSpecifiers(){if(ee.match.call(void 0,re.TokenType._typeof)||se.isContextual.call(void 0,te.ContextualKeyword._type)){const b=ee.lookaheadTypeAndKeyword.call(void 0);if(isMaybeDefaultImport(b)||b.type===re.TokenType.braceL||b.type===re.TokenType.star){ee.next.call(void 0)}}}S.flowStartParseImportSpecifiers=flowStartParseImportSpecifiers;function flowParseImportSpecifier(){const b=ne.state.contextualKeyword===te.ContextualKeyword._type||ne.state.type===re.TokenType._typeof;if(b){ee.next.call(void 0)}else{ie.parseIdentifier.call(void 0)}if(se.isContextual.call(void 0,te.ContextualKeyword._as)&&!se.isLookaheadContextual.call(void 0,te.ContextualKeyword._as)){ie.parseIdentifier.call(void 0);if(b&&!ee.match.call(void 0,re.TokenType.name)&&!(ne.state.type&re.TokenType.IS_KEYWORD)){}else{ie.parseIdentifier.call(void 0)}}else if(b&&(ee.match.call(void 0,re.TokenType.name)||!!(ne.state.type&re.TokenType.IS_KEYWORD))){ie.parseIdentifier.call(void 0);if(se.eatContextual.call(void 0,te.ContextualKeyword._as)){ie.parseIdentifier.call(void 0)}}}S.flowParseImportSpecifier=flowParseImportSpecifier;function flowStartParseFunctionParams(){if(ee.match.call(void 0,re.TokenType.lessThan)){const b=ee.pushTypeContext.call(void 0,0);flowParseTypeParameterDeclaration();ee.popTypeContext.call(void 0,b)}}S.flowStartParseFunctionParams=flowStartParseFunctionParams;function flowAfterParseVarHead(){if(ee.match.call(void 0,re.TokenType.colon)){flowParseTypeAnnotation()}}S.flowAfterParseVarHead=flowAfterParseVarHead;function flowStartParseAsyncArrowFromCallExpression(){if(ee.match.call(void 0,re.TokenType.colon)){const b=ne.state.noAnonFunctionType;ne.state.noAnonFunctionType=true;flowParseTypeAnnotation();ne.state.noAnonFunctionType=b}}S.flowStartParseAsyncArrowFromCallExpression=flowStartParseAsyncArrowFromCallExpression;function flowParseMaybeAssign(b,S){if(ee.match.call(void 0,re.TokenType.lessThan)){const J=ne.state.snapshot();let te=ie.baseParseMaybeAssign.call(void 0,b,S);if(ne.state.error){ne.state.restoreFromSnapshot(J);ne.state.type=re.TokenType.typeParameterStart}else{return te}const oe=ee.pushTypeContext.call(void 0,0);flowParseTypeParameterDeclaration();ee.popTypeContext.call(void 0,oe);te=ie.baseParseMaybeAssign.call(void 0,b,S);if(te){return true}se.unexpected.call(void 0)}return ie.baseParseMaybeAssign.call(void 0,b,S)}S.flowParseMaybeAssign=flowParseMaybeAssign;function flowParseArrow(){if(ee.match.call(void 0,re.TokenType.colon)){const b=ee.pushTypeContext.call(void 0,0);const S=ne.state.snapshot();const J=ne.state.noAnonFunctionType;ne.state.noAnonFunctionType=true;flowParseTypeAndPredicateInitialiser();ne.state.noAnonFunctionType=J;if(se.canInsertSemicolon.call(void 0))se.unexpected.call(void 0);if(!ee.match.call(void 0,re.TokenType.arrow))se.unexpected.call(void 0);if(ne.state.error){ne.state.restoreFromSnapshot(S)}ee.popTypeContext.call(void 0,b)}return ee.eat.call(void 0,re.TokenType.arrow)}S.flowParseArrow=flowParseArrow;function flowParseSubscripts(b,S=false){if(ne.state.tokens[ne.state.tokens.length-1].contextualKeyword===te.ContextualKeyword._async&&ee.match.call(void 0,re.TokenType.lessThan)){const b=ne.state.snapshot();const S=parseAsyncArrowWithTypeParameters();if(S&&!ne.state.error){return}ne.state.restoreFromSnapshot(b)}ie.baseParseSubscripts.call(void 0,b,S)}S.flowParseSubscripts=flowParseSubscripts;function parseAsyncArrowWithTypeParameters(){ne.state.scopeDepth++;const b=ne.state.tokens.length;oe.parseFunctionParams.call(void 0);if(!ie.parseArrow.call(void 0)){return false}ie.parseArrowExpression.call(void 0,b);return true}},17194:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(58256);var re=J(99064);var ne=J(58273);var ie=J(8128);var oe=J(38824);var se=J(91795);var ae=J(71522);function jsxReadToken(){for(;;){if(re.state.pos>=re.input.length){ie.unexpected.call(void 0,"Unterminated JSX contents");return}const b=re.input.charCodeAt(re.state.pos);switch(b){case oe.charCodes.lessThan:case oe.charCodes.leftCurlyBrace:if(re.state.pos===re.state.start){if(b===oe.charCodes.lessThan){re.state.pos++;ee.finishToken.call(void 0,te.TokenType.jsxTagStart);return}ee.getTokenFromCode.call(void 0,b);return}ee.finishToken.call(void 0,te.TokenType.jsxText);return;default:re.state.pos++}}}function jsxReadString(b){re.state.pos++;for(;;){if(re.state.pos>=re.input.length){ie.unexpected.call(void 0,"Unterminated string constant");return}const S=re.input.charCodeAt(re.state.pos);if(S===b){re.state.pos++;break}re.state.pos++}ee.finishToken.call(void 0,te.TokenType.string)}function jsxReadWord(){let b;do{if(re.state.pos>re.input.length){ie.unexpected.call(void 0,"Unexpectedly reached the end of input.");return}b=re.input.charCodeAt(++re.state.pos)}while(se.IS_IDENTIFIER_CHAR[b]||b===oe.charCodes.dash);ee.finishToken.call(void 0,te.TokenType.jsxName)}function jsxParseIdentifier(){nextJSXTagToken()}function jsxParseNamespacedName(b){jsxParseIdentifier();if(!ee.eat.call(void 0,te.TokenType.colon)){re.state.tokens[re.state.tokens.length-1].identifierRole=b;return}jsxParseIdentifier()}function jsxParseElementName(){jsxParseNamespacedName(ee.IdentifierRole.Access);while(ee.match.call(void 0,te.TokenType.dot)){nextJSXTagToken();jsxParseIdentifier()}}function jsxParseAttributeValue(){switch(re.state.type){case te.TokenType.braceL:ee.next.call(void 0);jsxParseExpressionContainer();nextJSXTagToken();return;case te.TokenType.jsxTagStart:jsxParseElement();nextJSXTagToken();return;case te.TokenType.string:nextJSXTagToken();return;default:ie.unexpected.call(void 0,"JSX value should be either an expression or a quoted JSX text")}}function jsxParseEmptyExpression(){}function jsxParseSpreadChild(){ie.expect.call(void 0,te.TokenType.ellipsis);ne.parseExpression.call(void 0)}function jsxParseExpressionContainer(){if(ee.match.call(void 0,te.TokenType.braceR)){jsxParseEmptyExpression()}else{ne.parseExpression.call(void 0)}}function jsxParseAttribute(){if(ee.eat.call(void 0,te.TokenType.braceL)){ie.expect.call(void 0,te.TokenType.ellipsis);ne.parseMaybeAssign.call(void 0);nextJSXTagToken();return}jsxParseNamespacedName(ee.IdentifierRole.ObjectKey);if(ee.match.call(void 0,te.TokenType.eq)){nextJSXTagToken();jsxParseAttributeValue()}}function jsxParseOpeningElement(){if(ee.match.call(void 0,te.TokenType.jsxTagEnd)){return false}jsxParseElementName();if(re.isTypeScriptEnabled){ae.tsTryParseJSXTypeArgument.call(void 0)}while(!ee.match.call(void 0,te.TokenType.slash)&&!ee.match.call(void 0,te.TokenType.jsxTagEnd)&&!re.state.error){jsxParseAttribute()}const b=ee.match.call(void 0,te.TokenType.slash);if(b){nextJSXTagToken()}return b}function jsxParseClosingElement(){if(ee.match.call(void 0,te.TokenType.jsxTagEnd)){return}jsxParseElementName()}function jsxParseElementAt(){const b=jsxParseOpeningElement();if(!b){nextJSXExprToken();while(true){switch(re.state.type){case te.TokenType.jsxTagStart:nextJSXTagToken();if(ee.match.call(void 0,te.TokenType.slash)){nextJSXTagToken();jsxParseClosingElement();return}jsxParseElementAt();nextJSXExprToken();break;case te.TokenType.jsxText:nextJSXExprToken();break;case te.TokenType.braceL:ee.next.call(void 0);if(ee.match.call(void 0,te.TokenType.ellipsis)){jsxParseSpreadChild();nextJSXExprToken()}else{jsxParseExpressionContainer();nextJSXExprToken()}break;default:ie.unexpected.call(void 0);return}}}}function jsxParseElement(){nextJSXTagToken();jsxParseElementAt()}S.jsxParseElement=jsxParseElement;function nextJSXTagToken(){re.state.tokens.push(new(0,ee.Token));ee.skipSpace.call(void 0);re.state.start=re.state.pos;const b=re.input.charCodeAt(re.state.pos);if(se.IS_IDENTIFIER_START[b]){jsxReadWord()}else if(b===oe.charCodes.quotationMark||b===oe.charCodes.apostrophe){jsxReadString(b)}else{++re.state.pos;switch(b){case oe.charCodes.greaterThan:ee.finishToken.call(void 0,te.TokenType.jsxTagEnd);break;case oe.charCodes.lessThan:ee.finishToken.call(void 0,te.TokenType.jsxTagStart);break;case oe.charCodes.slash:ee.finishToken.call(void 0,te.TokenType.slash);break;case oe.charCodes.equalsTo:ee.finishToken.call(void 0,te.TokenType.eq);break;case oe.charCodes.leftCurlyBrace:ee.finishToken.call(void 0,te.TokenType.braceL);break;case oe.charCodes.dot:ee.finishToken.call(void 0,te.TokenType.dot);break;case oe.charCodes.colon:ee.finishToken.call(void 0,te.TokenType.colon);break;default:ie.unexpected.call(void 0)}}}S.nextJSXTagToken=nextJSXTagToken;function nextJSXExprToken(){re.state.tokens.push(new(0,ee.Token));re.state.start=re.state.pos;jsxReadToken()}},32970:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});const J={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};S["default"]=J},97088:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(58256);var re=J(99064);var ne=J(58273);var ie=J(34290);var oe=J(71522);function typedParseConditional(b){if(ee.match.call(void 0,te.TokenType.question)){const b=ee.lookaheadType.call(void 0);if(b===te.TokenType.colon||b===te.TokenType.comma||b===te.TokenType.parenR){return}}ne.baseParseConditional.call(void 0,b)}S.typedParseConditional=typedParseConditional;function typedParseParenItem(){if(ee.eat.call(void 0,te.TokenType.question)){re.state.tokens[re.state.tokens.length-1].isType=true}if(ee.match.call(void 0,te.TokenType.colon)){if(re.isTypeScriptEnabled){oe.tsParseTypeAnnotation.call(void 0)}else if(re.isFlowEnabled){ie.flowParseTypeAnnotation.call(void 0)}}}S.typedParseParenItem=typedParseParenItem},71522:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(61346);var re=J(58256);var ne=J(99064);var ie=J(58273);var oe=J(30911);var se=J(85120);var ae=J(8128);var ue=J(17194);function tsIsIdentifier(){return ee.match.call(void 0,re.TokenType.name)}function isLiteralPropertyName(){return ee.match.call(void 0,re.TokenType.name)||Boolean(ne.state.type&re.TokenType.IS_KEYWORD)||ee.match.call(void 0,re.TokenType.string)||ee.match.call(void 0,re.TokenType.num)||ee.match.call(void 0,re.TokenType.bigint)||ee.match.call(void 0,re.TokenType.decimal)}function tsNextTokenCanFollowModifier(){const b=ne.state.snapshot();ee.next.call(void 0);const S=(ee.match.call(void 0,re.TokenType.bracketL)||ee.match.call(void 0,re.TokenType.braceL)||ee.match.call(void 0,re.TokenType.star)||ee.match.call(void 0,re.TokenType.ellipsis)||ee.match.call(void 0,re.TokenType.hash)||isLiteralPropertyName())&&!ae.hasPrecedingLineBreak.call(void 0);if(S){return true}else{ne.state.restoreFromSnapshot(b);return false}}function tsParseModifiers(b){while(true){const S=tsParseModifier(b);if(S===null){break}}}S.tsParseModifiers=tsParseModifiers;function tsParseModifier(b){if(!ee.match.call(void 0,re.TokenType.name)){return null}const S=ne.state.contextualKeyword;if(b.indexOf(S)!==-1&&tsNextTokenCanFollowModifier()){switch(S){case te.ContextualKeyword._readonly:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._readonly;break;case te.ContextualKeyword._abstract:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._abstract;break;case te.ContextualKeyword._static:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._static;break;case te.ContextualKeyword._public:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._public;break;case te.ContextualKeyword._private:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._private;break;case te.ContextualKeyword._protected:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._protected;break;case te.ContextualKeyword._override:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._override;break;case te.ContextualKeyword._declare:ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._declare;break;default:break}return S}return null}S.tsParseModifier=tsParseModifier;function tsParseEntityName(){ie.parseIdentifier.call(void 0);while(ee.eat.call(void 0,re.TokenType.dot)){ie.parseIdentifier.call(void 0)}}function tsParseTypeReference(){tsParseEntityName();if(!ae.hasPrecedingLineBreak.call(void 0)&&ee.match.call(void 0,re.TokenType.lessThan)){tsParseTypeArguments()}}function tsParseThisTypePredicate(){ee.next.call(void 0);tsParseTypeAnnotation()}function tsParseThisTypeNode(){ee.next.call(void 0)}function tsParseTypeQuery(){ae.expect.call(void 0,re.TokenType._typeof);if(ee.match.call(void 0,re.TokenType._import)){tsParseImportType()}else{tsParseEntityName()}}function tsParseImportType(){ae.expect.call(void 0,re.TokenType._import);ae.expect.call(void 0,re.TokenType.parenL);ae.expect.call(void 0,re.TokenType.string);ae.expect.call(void 0,re.TokenType.parenR);if(ee.eat.call(void 0,re.TokenType.dot)){tsParseEntityName()}if(ee.match.call(void 0,re.TokenType.lessThan)){tsParseTypeArguments()}}function tsParseTypeParameter(){ie.parseIdentifier.call(void 0);if(ee.eat.call(void 0,re.TokenType._extends)){tsParseType()}if(ee.eat.call(void 0,re.TokenType.eq)){tsParseType()}}function tsTryParseTypeParameters(){if(ee.match.call(void 0,re.TokenType.lessThan)){tsParseTypeParameters()}}S.tsTryParseTypeParameters=tsTryParseTypeParameters;function tsParseTypeParameters(){const b=ee.pushTypeContext.call(void 0,0);if(ee.match.call(void 0,re.TokenType.lessThan)||ee.match.call(void 0,re.TokenType.typeParameterStart)){ee.next.call(void 0)}else{ae.unexpected.call(void 0)}while(!ee.eat.call(void 0,re.TokenType.greaterThan)&&!ne.state.error){tsParseTypeParameter();ee.eat.call(void 0,re.TokenType.comma)}ee.popTypeContext.call(void 0,b)}function tsFillSignature(b){const S=b===re.TokenType.arrow;tsTryParseTypeParameters();ae.expect.call(void 0,re.TokenType.parenL);ne.state.scopeDepth++;tsParseBindingListForSignature(false);ne.state.scopeDepth--;if(S){tsParseTypeOrTypePredicateAnnotation(b)}else if(ee.match.call(void 0,b)){tsParseTypeOrTypePredicateAnnotation(b)}}function tsParseBindingListForSignature(b){oe.parseBindingList.call(void 0,re.TokenType.parenR,b)}function tsParseTypeMemberSemicolon(){if(!ee.eat.call(void 0,re.TokenType.comma)){ae.semicolon.call(void 0)}}function tsParseSignatureMember(){tsFillSignature(re.TokenType.colon);tsParseTypeMemberSemicolon()}function tsIsUnambiguouslyIndexSignature(){const b=ne.state.snapshot();ee.next.call(void 0);const S=ee.eat.call(void 0,re.TokenType.name)&&ee.match.call(void 0,re.TokenType.colon);ne.state.restoreFromSnapshot(b);return S}function tsTryParseIndexSignature(){if(!(ee.match.call(void 0,re.TokenType.bracketL)&&tsIsUnambiguouslyIndexSignature())){return false}const b=ee.pushTypeContext.call(void 0,0);ae.expect.call(void 0,re.TokenType.bracketL);ie.parseIdentifier.call(void 0);tsParseTypeAnnotation();ae.expect.call(void 0,re.TokenType.bracketR);tsTryParseTypeAnnotation();tsParseTypeMemberSemicolon();ee.popTypeContext.call(void 0,b);return true}function tsParsePropertyOrMethodSignature(b){ee.eat.call(void 0,re.TokenType.question);if(!b&&(ee.match.call(void 0,re.TokenType.parenL)||ee.match.call(void 0,re.TokenType.lessThan))){tsFillSignature(re.TokenType.colon);tsParseTypeMemberSemicolon()}else{tsTryParseTypeAnnotation();tsParseTypeMemberSemicolon()}}function tsParseTypeMember(){if(ee.match.call(void 0,re.TokenType.parenL)||ee.match.call(void 0,re.TokenType.lessThan)){tsParseSignatureMember();return}if(ee.match.call(void 0,re.TokenType._new)){ee.next.call(void 0);if(ee.match.call(void 0,re.TokenType.parenL)||ee.match.call(void 0,re.TokenType.lessThan)){tsParseSignatureMember()}else{tsParsePropertyOrMethodSignature(false)}return}const b=!!tsParseModifier([te.ContextualKeyword._readonly]);const S=tsTryParseIndexSignature();if(S){return}if((ae.isContextual.call(void 0,te.ContextualKeyword._get)||ae.isContextual.call(void 0,te.ContextualKeyword._set))&&tsNextTokenCanFollowModifier()){}ie.parsePropertyName.call(void 0,-1);tsParsePropertyOrMethodSignature(b)}function tsParseTypeLiteral(){tsParseObjectTypeMembers()}function tsParseObjectTypeMembers(){ae.expect.call(void 0,re.TokenType.braceL);while(!ee.eat.call(void 0,re.TokenType.braceR)&&!ne.state.error){tsParseTypeMember()}}function tsLookaheadIsStartOfMappedType(){const b=ne.state.snapshot();const S=tsIsStartOfMappedType();ne.state.restoreFromSnapshot(b);return S}function tsIsStartOfMappedType(){ee.next.call(void 0);if(ee.eat.call(void 0,re.TokenType.plus)||ee.eat.call(void 0,re.TokenType.minus)){return ae.isContextual.call(void 0,te.ContextualKeyword._readonly)}if(ae.isContextual.call(void 0,te.ContextualKeyword._readonly)){ee.next.call(void 0)}if(!ee.match.call(void 0,re.TokenType.bracketL)){return false}ee.next.call(void 0);if(!tsIsIdentifier()){return false}ee.next.call(void 0);return ee.match.call(void 0,re.TokenType._in)}function tsParseMappedTypeParameter(){ie.parseIdentifier.call(void 0);ae.expect.call(void 0,re.TokenType._in);tsParseType()}function tsParseMappedType(){ae.expect.call(void 0,re.TokenType.braceL);if(ee.match.call(void 0,re.TokenType.plus)||ee.match.call(void 0,re.TokenType.minus)){ee.next.call(void 0);ae.expectContextual.call(void 0,te.ContextualKeyword._readonly)}else{ae.eatContextual.call(void 0,te.ContextualKeyword._readonly)}ae.expect.call(void 0,re.TokenType.bracketL);tsParseMappedTypeParameter();if(ae.eatContextual.call(void 0,te.ContextualKeyword._as)){tsParseType()}ae.expect.call(void 0,re.TokenType.bracketR);if(ee.match.call(void 0,re.TokenType.plus)||ee.match.call(void 0,re.TokenType.minus)){ee.next.call(void 0);ae.expect.call(void 0,re.TokenType.question)}else{ee.eat.call(void 0,re.TokenType.question)}tsTryParseType();ae.semicolon.call(void 0);ae.expect.call(void 0,re.TokenType.braceR)}function tsParseTupleType(){ae.expect.call(void 0,re.TokenType.bracketL);while(!ee.eat.call(void 0,re.TokenType.bracketR)&&!ne.state.error){tsParseTupleElementType();ee.eat.call(void 0,re.TokenType.comma)}}function tsParseTupleElementType(){if(ee.eat.call(void 0,re.TokenType.ellipsis)){tsParseType()}else{tsParseType();ee.eat.call(void 0,re.TokenType.question)}if(ee.eat.call(void 0,re.TokenType.colon)){tsParseType()}}function tsParseParenthesizedType(){ae.expect.call(void 0,re.TokenType.parenL);tsParseType();ae.expect.call(void 0,re.TokenType.parenR)}function tsParseTemplateLiteralType(){ee.nextTemplateToken.call(void 0);ee.nextTemplateToken.call(void 0);while(!ee.match.call(void 0,re.TokenType.backQuote)&&!ne.state.error){ae.expect.call(void 0,re.TokenType.dollarBraceL);tsParseType();ee.nextTemplateToken.call(void 0);ee.nextTemplateToken.call(void 0)}ee.next.call(void 0)}var ce;(function(b){const S=0;b[b["TSFunctionType"]=S]="TSFunctionType";const J=S+1;b[b["TSConstructorType"]=J]="TSConstructorType";const ee=J+1;b[b["TSAbstractConstructorType"]=ee]="TSAbstractConstructorType"})(ce||(ce={}));function tsParseFunctionOrConstructorType(b){if(b===ce.TSAbstractConstructorType){ae.expectContextual.call(void 0,te.ContextualKeyword._abstract)}if(b===ce.TSConstructorType||b===ce.TSAbstractConstructorType){ae.expect.call(void 0,re.TokenType._new)}tsFillSignature(re.TokenType.arrow)}function tsParseNonArrayType(){switch(ne.state.type){case re.TokenType.name:tsParseTypeReference();return;case re.TokenType._void:case re.TokenType._null:ee.next.call(void 0);return;case re.TokenType.string:case re.TokenType.num:case re.TokenType.bigint:case re.TokenType.decimal:case re.TokenType._true:case re.TokenType._false:ie.parseLiteral.call(void 0);return;case re.TokenType.minus:ee.next.call(void 0);ie.parseLiteral.call(void 0);return;case re.TokenType._this:{tsParseThisTypeNode();if(ae.isContextual.call(void 0,te.ContextualKeyword._is)&&!ae.hasPrecedingLineBreak.call(void 0)){tsParseThisTypePredicate()}return}case re.TokenType._typeof:tsParseTypeQuery();return;case re.TokenType._import:tsParseImportType();return;case re.TokenType.braceL:if(tsLookaheadIsStartOfMappedType()){tsParseMappedType()}else{tsParseTypeLiteral()}return;case re.TokenType.bracketL:tsParseTupleType();return;case re.TokenType.parenL:tsParseParenthesizedType();return;case re.TokenType.backQuote:tsParseTemplateLiteralType();return;default:if(ne.state.type&re.TokenType.IS_KEYWORD){ee.next.call(void 0);ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType.name;return}break}ae.unexpected.call(void 0)}function tsParseArrayTypeOrHigher(){tsParseNonArrayType();while(!ae.hasPrecedingLineBreak.call(void 0)&&ee.eat.call(void 0,re.TokenType.bracketL)){if(!ee.eat.call(void 0,re.TokenType.bracketR)){tsParseType();ae.expect.call(void 0,re.TokenType.bracketR)}}}function tsParseInferType(){ae.expectContextual.call(void 0,te.ContextualKeyword._infer);ie.parseIdentifier.call(void 0)}function tsParseTypeOperatorOrHigher(){if(ae.isContextual.call(void 0,te.ContextualKeyword._keyof)||ae.isContextual.call(void 0,te.ContextualKeyword._unique)||ae.isContextual.call(void 0,te.ContextualKeyword._readonly)){ee.next.call(void 0);tsParseTypeOperatorOrHigher()}else if(ae.isContextual.call(void 0,te.ContextualKeyword._infer)){tsParseInferType()}else{tsParseArrayTypeOrHigher()}}function tsParseIntersectionTypeOrHigher(){ee.eat.call(void 0,re.TokenType.bitwiseAND);tsParseTypeOperatorOrHigher();if(ee.match.call(void 0,re.TokenType.bitwiseAND)){while(ee.eat.call(void 0,re.TokenType.bitwiseAND)){tsParseTypeOperatorOrHigher()}}}function tsParseUnionTypeOrHigher(){ee.eat.call(void 0,re.TokenType.bitwiseOR);tsParseIntersectionTypeOrHigher();if(ee.match.call(void 0,re.TokenType.bitwiseOR)){while(ee.eat.call(void 0,re.TokenType.bitwiseOR)){tsParseIntersectionTypeOrHigher()}}}function tsIsStartOfFunctionType(){if(ee.match.call(void 0,re.TokenType.lessThan)){return true}return ee.match.call(void 0,re.TokenType.parenL)&&tsLookaheadIsUnambiguouslyStartOfFunctionType()}function tsSkipParameterStart(){if(ee.match.call(void 0,re.TokenType.name)||ee.match.call(void 0,re.TokenType._this)){ee.next.call(void 0);return true}if(ee.match.call(void 0,re.TokenType.braceL)||ee.match.call(void 0,re.TokenType.bracketL)){let b=1;ee.next.call(void 0);while(b>0&&!ne.state.error){if(ee.match.call(void 0,re.TokenType.braceL)||ee.match.call(void 0,re.TokenType.bracketL)){b++}else if(ee.match.call(void 0,re.TokenType.braceR)||ee.match.call(void 0,re.TokenType.bracketR)){b--}ee.next.call(void 0)}return true}return false}function tsLookaheadIsUnambiguouslyStartOfFunctionType(){const b=ne.state.snapshot();const S=tsIsUnambiguouslyStartOfFunctionType();ne.state.restoreFromSnapshot(b);return S}function tsIsUnambiguouslyStartOfFunctionType(){ee.next.call(void 0);if(ee.match.call(void 0,re.TokenType.parenR)||ee.match.call(void 0,re.TokenType.ellipsis)){return true}if(tsSkipParameterStart()){if(ee.match.call(void 0,re.TokenType.colon)||ee.match.call(void 0,re.TokenType.comma)||ee.match.call(void 0,re.TokenType.question)||ee.match.call(void 0,re.TokenType.eq)){return true}if(ee.match.call(void 0,re.TokenType.parenR)){ee.next.call(void 0);if(ee.match.call(void 0,re.TokenType.arrow)){return true}}}return false}function tsParseTypeOrTypePredicateAnnotation(b){const S=ee.pushTypeContext.call(void 0,0);ae.expect.call(void 0,b);const J=tsParseTypePredicateOrAssertsPrefix();if(!J){tsParseType()}ee.popTypeContext.call(void 0,S)}function tsTryParseTypeOrTypePredicateAnnotation(){if(ee.match.call(void 0,re.TokenType.colon)){tsParseTypeOrTypePredicateAnnotation(re.TokenType.colon)}}function tsTryParseTypeAnnotation(){if(ee.match.call(void 0,re.TokenType.colon)){tsParseTypeAnnotation()}}S.tsTryParseTypeAnnotation=tsTryParseTypeAnnotation;function tsTryParseType(){if(ee.eat.call(void 0,re.TokenType.colon)){tsParseType()}}function tsParseTypePredicateOrAssertsPrefix(){const b=ne.state.snapshot();if(ae.isContextual.call(void 0,te.ContextualKeyword._asserts)&&!ae.hasPrecedingLineBreak.call(void 0)){ee.next.call(void 0);if(ae.eatContextual.call(void 0,te.ContextualKeyword._is)){tsParseType();return true}else if(tsIsIdentifier()||ee.match.call(void 0,re.TokenType._this)){ee.next.call(void 0);if(ae.eatContextual.call(void 0,te.ContextualKeyword._is)){tsParseType()}return true}else{ne.state.restoreFromSnapshot(b);return false}}else if(tsIsIdentifier()||ee.match.call(void 0,re.TokenType._this)){ee.next.call(void 0);if(ae.isContextual.call(void 0,te.ContextualKeyword._is)&&!ae.hasPrecedingLineBreak.call(void 0)){ee.next.call(void 0);tsParseType();return true}else{ne.state.restoreFromSnapshot(b);return false}}return false}function tsParseTypeAnnotation(){const b=ee.pushTypeContext.call(void 0,0);ae.expect.call(void 0,re.TokenType.colon);tsParseType();ee.popTypeContext.call(void 0,b)}S.tsParseTypeAnnotation=tsParseTypeAnnotation;function tsParseType(){tsParseNonConditionalType();if(ae.hasPrecedingLineBreak.call(void 0)||!ee.eat.call(void 0,re.TokenType._extends)){return}tsParseNonConditionalType();ae.expect.call(void 0,re.TokenType.question);tsParseType();ae.expect.call(void 0,re.TokenType.colon);tsParseType()}S.tsParseType=tsParseType;function isAbstractConstructorSignature(){return ae.isContextual.call(void 0,te.ContextualKeyword._abstract)&&ee.lookaheadType.call(void 0)===re.TokenType._new}function tsParseNonConditionalType(){if(tsIsStartOfFunctionType()){tsParseFunctionOrConstructorType(ce.TSFunctionType);return}if(ee.match.call(void 0,re.TokenType._new)){tsParseFunctionOrConstructorType(ce.TSConstructorType);return}else if(isAbstractConstructorSignature()){tsParseFunctionOrConstructorType(ce.TSAbstractConstructorType);return}tsParseUnionTypeOrHigher()}S.tsParseNonConditionalType=tsParseNonConditionalType;function tsParseTypeAssertion(){const b=ee.pushTypeContext.call(void 0,1);tsParseType();ae.expect.call(void 0,re.TokenType.greaterThan);ee.popTypeContext.call(void 0,b);ie.parseMaybeUnary.call(void 0)}S.tsParseTypeAssertion=tsParseTypeAssertion;function tsTryParseJSXTypeArgument(){if(ee.eat.call(void 0,re.TokenType.jsxTagStart)){ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType.typeParameterStart;const b=ee.pushTypeContext.call(void 0,1);while(!ee.match.call(void 0,re.TokenType.greaterThan)&&!ne.state.error){tsParseType();ee.eat.call(void 0,re.TokenType.comma)}ue.nextJSXTagToken.call(void 0);ee.popTypeContext.call(void 0,b)}}S.tsTryParseJSXTypeArgument=tsTryParseJSXTypeArgument;function tsParseHeritageClause(){while(!ee.match.call(void 0,re.TokenType.braceL)&&!ne.state.error){tsParseExpressionWithTypeArguments();ee.eat.call(void 0,re.TokenType.comma)}}function tsParseExpressionWithTypeArguments(){tsParseEntityName();if(ee.match.call(void 0,re.TokenType.lessThan)){tsParseTypeArguments()}}function tsParseInterfaceDeclaration(){oe.parseBindingIdentifier.call(void 0,false);tsTryParseTypeParameters();if(ee.eat.call(void 0,re.TokenType._extends)){tsParseHeritageClause()}tsParseObjectTypeMembers()}function tsParseTypeAliasDeclaration(){oe.parseBindingIdentifier.call(void 0,false);tsTryParseTypeParameters();ae.expect.call(void 0,re.TokenType.eq);tsParseType();ae.semicolon.call(void 0)}function tsParseEnumMember(){if(ee.match.call(void 0,re.TokenType.string)){ie.parseLiteral.call(void 0)}else{ie.parseIdentifier.call(void 0)}if(ee.eat.call(void 0,re.TokenType.eq)){const b=ne.state.tokens.length-1;ie.parseMaybeAssign.call(void 0);ne.state.tokens[b].rhsEndIndex=ne.state.tokens.length}}function tsParseEnumDeclaration(){oe.parseBindingIdentifier.call(void 0,false);ae.expect.call(void 0,re.TokenType.braceL);while(!ee.eat.call(void 0,re.TokenType.braceR)&&!ne.state.error){tsParseEnumMember();ee.eat.call(void 0,re.TokenType.comma)}}function tsParseModuleBlock(){ae.expect.call(void 0,re.TokenType.braceL);se.parseBlockBody.call(void 0,re.TokenType.braceR)}function tsParseModuleOrNamespaceDeclaration(){oe.parseBindingIdentifier.call(void 0,false);if(ee.eat.call(void 0,re.TokenType.dot)){tsParseModuleOrNamespaceDeclaration()}else{tsParseModuleBlock()}}function tsParseAmbientExternalModuleDeclaration(){if(ae.isContextual.call(void 0,te.ContextualKeyword._global)){ie.parseIdentifier.call(void 0)}else if(ee.match.call(void 0,re.TokenType.string)){ie.parseExprAtom.call(void 0)}else{ae.unexpected.call(void 0)}if(ee.match.call(void 0,re.TokenType.braceL)){tsParseModuleBlock()}else{ae.semicolon.call(void 0)}}function tsParseImportEqualsDeclaration(){oe.parseImportedIdentifier.call(void 0);ae.expect.call(void 0,re.TokenType.eq);tsParseModuleReference();ae.semicolon.call(void 0)}S.tsParseImportEqualsDeclaration=tsParseImportEqualsDeclaration;function tsIsExternalModuleReference(){return ae.isContextual.call(void 0,te.ContextualKeyword._require)&&ee.lookaheadType.call(void 0)===re.TokenType.parenL}function tsParseModuleReference(){if(tsIsExternalModuleReference()){tsParseExternalModuleReference()}else{tsParseEntityName()}}function tsParseExternalModuleReference(){ae.expectContextual.call(void 0,te.ContextualKeyword._require);ae.expect.call(void 0,re.TokenType.parenL);if(!ee.match.call(void 0,re.TokenType.string)){ae.unexpected.call(void 0)}ie.parseLiteral.call(void 0);ae.expect.call(void 0,re.TokenType.parenR)}function tsTryParseDeclare(){if(ae.isLineTerminator.call(void 0)){return false}switch(ne.state.type){case re.TokenType._function:{const b=ee.pushTypeContext.call(void 0,1);ee.next.call(void 0);const S=ne.state.start;se.parseFunction.call(void 0,S,true);ee.popTypeContext.call(void 0,b);return true}case re.TokenType._class:{const b=ee.pushTypeContext.call(void 0,1);se.parseClass.call(void 0,true,false);ee.popTypeContext.call(void 0,b);return true}case re.TokenType._const:{if(ee.match.call(void 0,re.TokenType._const)&&ae.isLookaheadContextual.call(void 0,te.ContextualKeyword._enum)){const b=ee.pushTypeContext.call(void 0,1);ae.expect.call(void 0,re.TokenType._const);ae.expectContextual.call(void 0,te.ContextualKeyword._enum);ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._enum;tsParseEnumDeclaration();ee.popTypeContext.call(void 0,b);return true}}case re.TokenType._var:case re.TokenType._let:{const b=ee.pushTypeContext.call(void 0,1);se.parseVarStatement.call(void 0,ne.state.type);ee.popTypeContext.call(void 0,b);return true}case re.TokenType.name:{const b=ee.pushTypeContext.call(void 0,1);const S=ne.state.contextualKeyword;let J=false;if(S===te.ContextualKeyword._global){tsParseAmbientExternalModuleDeclaration();J=true}else{J=tsParseDeclaration(S,true)}ee.popTypeContext.call(void 0,b);return J}default:return false}}function tsTryParseExportDeclaration(){return tsParseDeclaration(ne.state.contextualKeyword,true)}function tsParseExpressionStatement(b){switch(b){case te.ContextualKeyword._declare:{const b=ne.state.tokens.length-1;const S=tsTryParseDeclare();if(S){ne.state.tokens[b].type=re.TokenType._declare;return true}break}case te.ContextualKeyword._global:if(ee.match.call(void 0,re.TokenType.braceL)){tsParseModuleBlock();return true}break;default:return tsParseDeclaration(b,false)}return false}function tsParseDeclaration(b,S){switch(b){case te.ContextualKeyword._abstract:if(tsCheckLineTerminator(S)&&ee.match.call(void 0,re.TokenType._class)){ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._abstract;se.parseClass.call(void 0,true,false);return true}break;case te.ContextualKeyword._enum:if(tsCheckLineTerminator(S)&&ee.match.call(void 0,re.TokenType.name)){ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._enum;tsParseEnumDeclaration();return true}break;case te.ContextualKeyword._interface:if(tsCheckLineTerminator(S)&&ee.match.call(void 0,re.TokenType.name)){const b=ee.pushTypeContext.call(void 0,S?2:1);tsParseInterfaceDeclaration();ee.popTypeContext.call(void 0,b);return true}break;case te.ContextualKeyword._module:if(tsCheckLineTerminator(S)){if(ee.match.call(void 0,re.TokenType.string)){const b=ee.pushTypeContext.call(void 0,S?2:1);tsParseAmbientExternalModuleDeclaration();ee.popTypeContext.call(void 0,b);return true}else if(ee.match.call(void 0,re.TokenType.name)){const b=ee.pushTypeContext.call(void 0,S?2:1);tsParseModuleOrNamespaceDeclaration();ee.popTypeContext.call(void 0,b);return true}}break;case te.ContextualKeyword._namespace:if(tsCheckLineTerminator(S)&&ee.match.call(void 0,re.TokenType.name)){const b=ee.pushTypeContext.call(void 0,S?2:1);tsParseModuleOrNamespaceDeclaration();ee.popTypeContext.call(void 0,b);return true}break;case te.ContextualKeyword._type:if(tsCheckLineTerminator(S)&&ee.match.call(void 0,re.TokenType.name)){const b=ee.pushTypeContext.call(void 0,S?2:1);tsParseTypeAliasDeclaration();ee.popTypeContext.call(void 0,b);return true}break;default:break}return false}function tsCheckLineTerminator(b){if(b){ee.next.call(void 0);return true}else{return!ae.isLineTerminator.call(void 0)}}function tsTryParseGenericAsyncArrowFunction(){const b=ne.state.snapshot();tsParseTypeParameters();se.parseFunctionParams.call(void 0);tsTryParseTypeOrTypePredicateAnnotation();ae.expect.call(void 0,re.TokenType.arrow);if(ne.state.error){ne.state.restoreFromSnapshot(b);return false}ie.parseFunctionBody.call(void 0,true);return true}function tsParseTypeArguments(){const b=ee.pushTypeContext.call(void 0,0);ae.expect.call(void 0,re.TokenType.lessThan);while(!ee.eat.call(void 0,re.TokenType.greaterThan)&&!ne.state.error){tsParseType();ee.eat.call(void 0,re.TokenType.comma)}ee.popTypeContext.call(void 0,b)}function tsIsDeclarationStart(){if(ee.match.call(void 0,re.TokenType.name)){switch(ne.state.contextualKeyword){case te.ContextualKeyword._abstract:case te.ContextualKeyword._declare:case te.ContextualKeyword._enum:case te.ContextualKeyword._interface:case te.ContextualKeyword._module:case te.ContextualKeyword._namespace:case te.ContextualKeyword._type:return true;default:break}}return false}S.tsIsDeclarationStart=tsIsDeclarationStart;function tsParseFunctionBodyAndFinish(b,S){if(ee.match.call(void 0,re.TokenType.colon)){tsParseTypeOrTypePredicateAnnotation(re.TokenType.colon)}if(!ee.match.call(void 0,re.TokenType.braceL)&&ae.isLineTerminator.call(void 0)){let S=ne.state.tokens.length-1;while(S>=0&&(ne.state.tokens[S].start>=b||ne.state.tokens[S].type===re.TokenType._default||ne.state.tokens[S].type===re.TokenType._export)){ne.state.tokens[S].isType=true;S--}return}ie.parseFunctionBody.call(void 0,false,S)}S.tsParseFunctionBodyAndFinish=tsParseFunctionBodyAndFinish;function tsParseSubscript(b,S,J){if(!ae.hasPrecedingLineBreak.call(void 0)&&ee.eat.call(void 0,re.TokenType.bang)){ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType.nonNullAssertion;return}if(ee.match.call(void 0,re.TokenType.lessThan)){const J=ne.state.snapshot();if(!S&&ie.atPossibleAsync.call(void 0)){const b=tsTryParseGenericAsyncArrowFunction();if(b){return}}tsParseTypeArguments();if(!S&&ee.eat.call(void 0,re.TokenType.parenL)){ne.state.tokens[ne.state.tokens.length-1].subscriptStartIndex=b;ie.parseCallExpressionArguments.call(void 0)}else if(ee.match.call(void 0,re.TokenType.backQuote)){ie.parseTemplate.call(void 0)}else{ae.unexpected.call(void 0)}if(ne.state.error){ne.state.restoreFromSnapshot(J)}else{return}}else if(!S&&ee.match.call(void 0,re.TokenType.questionDot)&&ee.lookaheadType.call(void 0)===re.TokenType.lessThan){ee.next.call(void 0);ne.state.tokens[b].isOptionalChainStart=true;ne.state.tokens[ne.state.tokens.length-1].subscriptStartIndex=b;tsParseTypeArguments();ae.expect.call(void 0,re.TokenType.parenL);ie.parseCallExpressionArguments.call(void 0)}ie.baseParseSubscript.call(void 0,b,S,J)}S.tsParseSubscript=tsParseSubscript;function tsStartParseNewArguments(){if(ee.match.call(void 0,re.TokenType.lessThan)){const b=ne.state.snapshot();ne.state.type=re.TokenType.typeParameterStart;tsParseTypeArguments();if(!ee.match.call(void 0,re.TokenType.parenL)){ae.unexpected.call(void 0)}if(ne.state.error){ne.state.restoreFromSnapshot(b)}}}S.tsStartParseNewArguments=tsStartParseNewArguments;function tsTryParseExport(){if(ee.eat.call(void 0,re.TokenType._import)){if(ae.isContextual.call(void 0,te.ContextualKeyword._type)&&ee.lookaheadType.call(void 0)!==re.TokenType.eq){ae.expectContextual.call(void 0,te.ContextualKeyword._type)}tsParseImportEqualsDeclaration();return true}else if(ee.eat.call(void 0,re.TokenType.eq)){ie.parseExpression.call(void 0);ae.semicolon.call(void 0);return true}else if(ae.eatContextual.call(void 0,te.ContextualKeyword._as)){ae.expectContextual.call(void 0,te.ContextualKeyword._namespace);ie.parseIdentifier.call(void 0);ae.semicolon.call(void 0);return true}else{if(ae.isContextual.call(void 0,te.ContextualKeyword._type)&&ee.lookaheadType.call(void 0)===re.TokenType.braceL){ee.next.call(void 0)}return false}}S.tsTryParseExport=tsTryParseExport;function tsTryParseExportDefaultExpression(){if(ae.isContextual.call(void 0,te.ContextualKeyword._abstract)&&ee.lookaheadType.call(void 0)===re.TokenType._class){ne.state.type=re.TokenType._abstract;ee.next.call(void 0);se.parseClass.call(void 0,true,true);return true}if(ae.isContextual.call(void 0,te.ContextualKeyword._interface)){const b=ee.pushTypeContext.call(void 0,2);tsParseDeclaration(te.ContextualKeyword._interface,true);ee.popTypeContext.call(void 0,b);return true}return false}S.tsTryParseExportDefaultExpression=tsTryParseExportDefaultExpression;function tsTryParseStatementContent(){if(ne.state.type===re.TokenType._const){const b=ee.lookaheadTypeAndKeyword.call(void 0);if(b.type===re.TokenType.name&&b.contextualKeyword===te.ContextualKeyword._enum){ae.expect.call(void 0,re.TokenType._const);ae.expectContextual.call(void 0,te.ContextualKeyword._enum);ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._enum;tsParseEnumDeclaration();return true}}return false}S.tsTryParseStatementContent=tsTryParseStatementContent;function tsTryParseClassMemberWithIsStatic(b){const S=ne.state.tokens.length;tsParseModifiers([te.ContextualKeyword._abstract,te.ContextualKeyword._readonly,te.ContextualKeyword._declare,te.ContextualKeyword._static,te.ContextualKeyword._override]);const J=ne.state.tokens.length;const ee=tsTryParseIndexSignature();if(ee){const ee=b?S-1:S;for(let b=ee;b<J;b++){ne.state.tokens[b].isType=true}return true}return false}S.tsTryParseClassMemberWithIsStatic=tsTryParseClassMemberWithIsStatic;function tsParseIdentifierStatement(b){const S=tsParseExpressionStatement(b);if(!S){ae.semicolon.call(void 0)}}S.tsParseIdentifierStatement=tsParseIdentifierStatement;function tsParseExportDeclaration(){const b=ae.eatContextual.call(void 0,te.ContextualKeyword._declare);if(b){ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._declare}let S=false;if(ee.match.call(void 0,re.TokenType.name)){if(b){const b=ee.pushTypeContext.call(void 0,2);S=tsTryParseExportDeclaration();ee.popTypeContext.call(void 0,b)}else{S=tsTryParseExportDeclaration()}}if(!S){if(b){const b=ee.pushTypeContext.call(void 0,2);se.parseStatement.call(void 0,true);ee.popTypeContext.call(void 0,b)}else{se.parseStatement.call(void 0,true)}}}S.tsParseExportDeclaration=tsParseExportDeclaration;function tsAfterParseClassSuper(b){if(b&&ee.match.call(void 0,re.TokenType.lessThan)){tsParseTypeArguments()}if(ae.eatContextual.call(void 0,te.ContextualKeyword._implements)){ne.state.tokens[ne.state.tokens.length-1].type=re.TokenType._implements;const b=ee.pushTypeContext.call(void 0,1);tsParseHeritageClause();ee.popTypeContext.call(void 0,b)}}S.tsAfterParseClassSuper=tsAfterParseClassSuper;function tsStartParseObjPropValue(){tsTryParseTypeParameters()}S.tsStartParseObjPropValue=tsStartParseObjPropValue;function tsStartParseFunctionParams(){tsTryParseTypeParameters()}S.tsStartParseFunctionParams=tsStartParseFunctionParams;function tsAfterParseVarHead(){const b=ee.pushTypeContext.call(void 0,0);ee.eat.call(void 0,re.TokenType.bang);tsTryParseTypeAnnotation();ee.popTypeContext.call(void 0,b)}S.tsAfterParseVarHead=tsAfterParseVarHead;function tsStartParseAsyncArrowFromCallExpression(){if(ee.match.call(void 0,re.TokenType.colon)){tsParseTypeAnnotation()}}S.tsStartParseAsyncArrowFromCallExpression=tsStartParseAsyncArrowFromCallExpression;function tsParseMaybeAssign(b,S){if(ne.isJSXEnabled){return tsParseMaybeAssignWithJSX(b,S)}else{return tsParseMaybeAssignWithoutJSX(b,S)}}S.tsParseMaybeAssign=tsParseMaybeAssign;function tsParseMaybeAssignWithJSX(b,S){if(!ee.match.call(void 0,re.TokenType.lessThan)){return ie.baseParseMaybeAssign.call(void 0,b,S)}const J=ne.state.snapshot();let te=ie.baseParseMaybeAssign.call(void 0,b,S);if(ne.state.error){ne.state.restoreFromSnapshot(J)}else{return te}ne.state.type=re.TokenType.typeParameterStart;tsParseTypeParameters();te=ie.baseParseMaybeAssign.call(void 0,b,S);if(!te){ae.unexpected.call(void 0)}return te}S.tsParseMaybeAssignWithJSX=tsParseMaybeAssignWithJSX;function tsParseMaybeAssignWithoutJSX(b,S){if(!ee.match.call(void 0,re.TokenType.lessThan)){return ie.baseParseMaybeAssign.call(void 0,b,S)}const J=ne.state.snapshot();tsParseTypeParameters();const te=ie.baseParseMaybeAssign.call(void 0,b,S);if(!te){ae.unexpected.call(void 0)}if(ne.state.error){ne.state.restoreFromSnapshot(J)}else{return te}return ie.baseParseMaybeAssign.call(void 0,b,S)}S.tsParseMaybeAssignWithoutJSX=tsParseMaybeAssignWithoutJSX;function tsParseArrow(){if(ee.match.call(void 0,re.TokenType.colon)){const b=ne.state.snapshot();tsParseTypeOrTypePredicateAnnotation(re.TokenType.colon);if(ae.canInsertSemicolon.call(void 0))ae.unexpected.call(void 0);if(!ee.match.call(void 0,re.TokenType.arrow))ae.unexpected.call(void 0);if(ne.state.error){ne.state.restoreFromSnapshot(b)}}return ee.eat.call(void 0,re.TokenType.arrow)}S.tsParseArrow=tsParseArrow;function tsParseAssignableListItemTypes(){const b=ee.pushTypeContext.call(void 0,0);ee.eat.call(void 0,re.TokenType.question);tsTryParseTypeAnnotation();ee.popTypeContext.call(void 0,b)}S.tsParseAssignableListItemTypes=tsParseAssignableListItemTypes;function tsParseMaybeDecoratorArguments(){if(ee.match.call(void 0,re.TokenType.lessThan)){tsParseTypeArguments()}se.baseParseMaybeDecoratorArguments.call(void 0)}S.tsParseMaybeDecoratorArguments=tsParseMaybeDecoratorArguments},92740:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(99064);var te=J(8128);var re=J(38824);var ne=J(91795);var ie=J(5721);var oe=J(61346);var se=J(36872);var ae=_interopRequireDefault(se);var ue=J(58256);var ce;(function(b){const S=0;b[b["Access"]=S]="Access";const J=S+1;b[b["ExportAccess"]=J]="ExportAccess";const ee=J+1;b[b["TopLevelDeclaration"]=ee]="TopLevelDeclaration";const te=ee+1;b[b["FunctionScopedDeclaration"]=te]="FunctionScopedDeclaration";const re=te+1;b[b["BlockScopedDeclaration"]=re]="BlockScopedDeclaration";const ne=re+1;b[b["ObjectShorthandTopLevelDeclaration"]=ne]="ObjectShorthandTopLevelDeclaration";const ie=ne+1;b[b["ObjectShorthandFunctionScopedDeclaration"]=ie]="ObjectShorthandFunctionScopedDeclaration";const oe=ie+1;b[b["ObjectShorthandBlockScopedDeclaration"]=oe]="ObjectShorthandBlockScopedDeclaration";const se=oe+1;b[b["ObjectShorthand"]=se]="ObjectShorthand";const ae=se+1;b[b["ImportDeclaration"]=ae]="ImportDeclaration";const ue=ae+1;b[b["ObjectKey"]=ue]="ObjectKey";const ce=ue+1;b[b["ImportAccess"]=ce]="ImportAccess"})(ce||(S.IdentifierRole=ce={}));function isDeclaration(b){const S=b.identifierRole;return S===ce.TopLevelDeclaration||S===ce.FunctionScopedDeclaration||S===ce.BlockScopedDeclaration||S===ce.ObjectShorthandTopLevelDeclaration||S===ce.ObjectShorthandFunctionScopedDeclaration||S===ce.ObjectShorthandBlockScopedDeclaration}S.isDeclaration=isDeclaration;function isNonTopLevelDeclaration(b){const S=b.identifierRole;return S===ce.FunctionScopedDeclaration||S===ce.BlockScopedDeclaration||S===ce.ObjectShorthandFunctionScopedDeclaration||S===ce.ObjectShorthandBlockScopedDeclaration}S.isNonTopLevelDeclaration=isNonTopLevelDeclaration;function isTopLevelDeclaration(b){const S=b.identifierRole;return S===ce.TopLevelDeclaration||S===ce.ObjectShorthandTopLevelDeclaration||S===ce.ImportDeclaration}S.isTopLevelDeclaration=isTopLevelDeclaration;function isBlockScopedDeclaration(b){const S=b.identifierRole;return S===ce.TopLevelDeclaration||S===ce.BlockScopedDeclaration||S===ce.ObjectShorthandTopLevelDeclaration||S===ce.ObjectShorthandBlockScopedDeclaration}S.isBlockScopedDeclaration=isBlockScopedDeclaration;function isFunctionScopedDeclaration(b){const S=b.identifierRole;return S===ce.FunctionScopedDeclaration||S===ce.ObjectShorthandFunctionScopedDeclaration}S.isFunctionScopedDeclaration=isFunctionScopedDeclaration;function isObjectShorthandDeclaration(b){return b.identifierRole===ce.ObjectShorthandTopLevelDeclaration||b.identifierRole===ce.ObjectShorthandBlockScopedDeclaration||b.identifierRole===ce.ObjectShorthandFunctionScopedDeclaration}S.isObjectShorthandDeclaration=isObjectShorthandDeclaration;class Token{constructor(){this.type=ee.state.type;this.contextualKeyword=ee.state.contextualKeyword;this.start=ee.state.start;this.end=ee.state.end;this.scopeDepth=ee.state.scopeDepth;this.isType=ee.state.isType;this.identifierRole=null;this.shadowsGlobal=false;this.isAsyncOperation=false;this.contextId=null;this.rhsEndIndex=null;this.isExpression=false;this.numNullishCoalesceStarts=0;this.numNullishCoalesceEnds=0;this.isOptionalChainStart=false;this.isOptionalChainEnd=false;this.subscriptStartIndex=null;this.nullishStartIndex=null}}S.Token=Token;function next(){ee.state.tokens.push(new Token);nextToken()}S.next=next;function nextTemplateToken(){ee.state.tokens.push(new Token);ee.state.start=ee.state.pos;readTmplToken()}S.nextTemplateToken=nextTemplateToken;function retokenizeSlashAsRegex(){if(ee.state.type===ue.TokenType.assign){--ee.state.pos}readRegexp()}S.retokenizeSlashAsRegex=retokenizeSlashAsRegex;function pushTypeContext(b){for(let S=ee.state.tokens.length-b;S<ee.state.tokens.length;S++){ee.state.tokens[S].isType=true}const S=ee.state.isType;ee.state.isType=true;return S}S.pushTypeContext=pushTypeContext;function popTypeContext(b){ee.state.isType=b}S.popTypeContext=popTypeContext;function eat(b){if(match(b)){next();return true}else{return false}}S.eat=eat;function match(b){return ee.state.type===b}S.match=match;function lookaheadType(){const b=ee.state.snapshot();next();const S=ee.state.type;ee.state.restoreFromSnapshot(b);return S}S.lookaheadType=lookaheadType;class TypeAndKeyword{constructor(b,S){this.type=b;this.contextualKeyword=S}}S.TypeAndKeyword=TypeAndKeyword;function lookaheadTypeAndKeyword(){const b=ee.state.snapshot();next();const S=ee.state.type;const J=ee.state.contextualKeyword;ee.state.restoreFromSnapshot(b);return new TypeAndKeyword(S,J)}S.lookaheadTypeAndKeyword=lookaheadTypeAndKeyword;function nextTokenStart(){return nextTokenStartSince(ee.state.pos)}S.nextTokenStart=nextTokenStart;function nextTokenStartSince(b){ie.skipWhiteSpace.lastIndex=b;const S=ie.skipWhiteSpace.exec(ee.input);return b+S[0].length}S.nextTokenStartSince=nextTokenStartSince;function lookaheadCharCode(){return ee.input.charCodeAt(nextTokenStart())}S.lookaheadCharCode=lookaheadCharCode;function nextToken(){skipSpace();ee.state.start=ee.state.pos;if(ee.state.pos>=ee.input.length){const b=ee.state.tokens;if(b.length>=2&&b[b.length-1].start>=ee.input.length&&b[b.length-2].start>=ee.input.length){te.unexpected.call(void 0,"Unexpectedly reached the end of input.")}finishToken(ue.TokenType.eof);return}readToken(ee.input.charCodeAt(ee.state.pos))}S.nextToken=nextToken;function readToken(b){if(ne.IS_IDENTIFIER_START[b]||b===re.charCodes.backslash||b===re.charCodes.atSign&&ee.input.charCodeAt(ee.state.pos+1)===re.charCodes.atSign){ae.default.call(void 0)}else{getTokenFromCode(b)}}function skipBlockComment(){while(ee.input.charCodeAt(ee.state.pos)!==re.charCodes.asterisk||ee.input.charCodeAt(ee.state.pos+1)!==re.charCodes.slash){ee.state.pos++;if(ee.state.pos>ee.input.length){te.unexpected.call(void 0,"Unterminated comment",ee.state.pos-2);return}}ee.state.pos+=2}function skipLineComment(b){let S=ee.input.charCodeAt(ee.state.pos+=b);if(ee.state.pos<ee.input.length){while(S!==re.charCodes.lineFeed&&S!==re.charCodes.carriageReturn&&S!==re.charCodes.lineSeparator&&S!==re.charCodes.paragraphSeparator&&++ee.state.pos<ee.input.length){S=ee.input.charCodeAt(ee.state.pos)}}}S.skipLineComment=skipLineComment;function skipSpace(){while(ee.state.pos<ee.input.length){const b=ee.input.charCodeAt(ee.state.pos);switch(b){case re.charCodes.carriageReturn:if(ee.input.charCodeAt(ee.state.pos+1)===re.charCodes.lineFeed){++ee.state.pos}case re.charCodes.lineFeed:case re.charCodes.lineSeparator:case re.charCodes.paragraphSeparator:++ee.state.pos;break;case re.charCodes.slash:switch(ee.input.charCodeAt(ee.state.pos+1)){case re.charCodes.asterisk:ee.state.pos+=2;skipBlockComment();break;case re.charCodes.slash:skipLineComment(2);break;default:return}break;default:if(ie.IS_WHITESPACE[b]){++ee.state.pos}else{return}}}}S.skipSpace=skipSpace;function finishToken(b,S=oe.ContextualKeyword.NONE){ee.state.end=ee.state.pos;ee.state.type=b;ee.state.contextualKeyword=S}S.finishToken=finishToken;function readToken_dot(){const b=ee.input.charCodeAt(ee.state.pos+1);if(b>=re.charCodes.digit0&&b<=re.charCodes.digit9){readNumber(true);return}if(b===re.charCodes.dot&&ee.input.charCodeAt(ee.state.pos+2)===re.charCodes.dot){ee.state.pos+=3;finishToken(ue.TokenType.ellipsis)}else{++ee.state.pos;finishToken(ue.TokenType.dot)}}function readToken_slash(){const b=ee.input.charCodeAt(ee.state.pos+1);if(b===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,2)}else{finishOp(ue.TokenType.slash,1)}}function readToken_mult_modulo(b){let S=b===re.charCodes.asterisk?ue.TokenType.star:ue.TokenType.modulo;let J=1;let te=ee.input.charCodeAt(ee.state.pos+1);if(b===re.charCodes.asterisk&&te===re.charCodes.asterisk){J++;te=ee.input.charCodeAt(ee.state.pos+2);S=ue.TokenType.exponent}if(te===re.charCodes.equalsTo&&ee.input.charCodeAt(ee.state.pos+2)!==re.charCodes.greaterThan){J++;S=ue.TokenType.assign}finishOp(S,J)}function readToken_pipe_amp(b){const S=ee.input.charCodeAt(ee.state.pos+1);if(S===b){if(ee.input.charCodeAt(ee.state.pos+2)===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,3)}else{finishOp(b===re.charCodes.verticalBar?ue.TokenType.logicalOR:ue.TokenType.logicalAND,2)}return}if(b===re.charCodes.verticalBar){if(S===re.charCodes.greaterThan){finishOp(ue.TokenType.pipeline,2);return}else if(S===re.charCodes.rightCurlyBrace&&ee.isFlowEnabled){finishOp(ue.TokenType.braceBarR,2);return}}if(S===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,2);return}finishOp(b===re.charCodes.verticalBar?ue.TokenType.bitwiseOR:ue.TokenType.bitwiseAND,1)}function readToken_caret(){const b=ee.input.charCodeAt(ee.state.pos+1);if(b===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,2)}else{finishOp(ue.TokenType.bitwiseXOR,1)}}function readToken_plus_min(b){const S=ee.input.charCodeAt(ee.state.pos+1);if(S===b){finishOp(ue.TokenType.preIncDec,2);return}if(S===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,2)}else if(b===re.charCodes.plusSign){finishOp(ue.TokenType.plus,1)}else{finishOp(ue.TokenType.minus,1)}}function readToken_lt_gt(b){const S=ee.input.charCodeAt(ee.state.pos+1);if(S===b){const S=b===re.charCodes.greaterThan&&ee.input.charCodeAt(ee.state.pos+2)===re.charCodes.greaterThan?3:2;if(ee.input.charCodeAt(ee.state.pos+S)===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,S+1);return}if(b===re.charCodes.greaterThan&&ee.state.isType){finishOp(ue.TokenType.greaterThan,1);return}finishOp(ue.TokenType.bitShift,S);return}if(S===re.charCodes.equalsTo){finishOp(ue.TokenType.relationalOrEqual,2)}else if(b===re.charCodes.lessThan){finishOp(ue.TokenType.lessThan,1)}else{finishOp(ue.TokenType.greaterThan,1)}}function readToken_eq_excl(b){const S=ee.input.charCodeAt(ee.state.pos+1);if(S===re.charCodes.equalsTo){finishOp(ue.TokenType.equality,ee.input.charCodeAt(ee.state.pos+2)===re.charCodes.equalsTo?3:2);return}if(b===re.charCodes.equalsTo&&S===re.charCodes.greaterThan){ee.state.pos+=2;finishToken(ue.TokenType.arrow);return}finishOp(b===re.charCodes.equalsTo?ue.TokenType.eq:ue.TokenType.bang,1)}function readToken_question(){const b=ee.input.charCodeAt(ee.state.pos+1);const S=ee.input.charCodeAt(ee.state.pos+2);if(b===re.charCodes.questionMark&&!ee.state.isType){if(S===re.charCodes.equalsTo){finishOp(ue.TokenType.assign,3)}else{finishOp(ue.TokenType.nullishCoalescing,2)}}else if(b===re.charCodes.dot&&!(S>=re.charCodes.digit0&&S<=re.charCodes.digit9)){ee.state.pos+=2;finishToken(ue.TokenType.questionDot)}else{++ee.state.pos;finishToken(ue.TokenType.question)}}function getTokenFromCode(b){switch(b){case re.charCodes.numberSign:++ee.state.pos;finishToken(ue.TokenType.hash);return;case re.charCodes.dot:readToken_dot();return;case re.charCodes.leftParenthesis:++ee.state.pos;finishToken(ue.TokenType.parenL);return;case re.charCodes.rightParenthesis:++ee.state.pos;finishToken(ue.TokenType.parenR);return;case re.charCodes.semicolon:++ee.state.pos;finishToken(ue.TokenType.semi);return;case re.charCodes.comma:++ee.state.pos;finishToken(ue.TokenType.comma);return;case re.charCodes.leftSquareBracket:++ee.state.pos;finishToken(ue.TokenType.bracketL);return;case re.charCodes.rightSquareBracket:++ee.state.pos;finishToken(ue.TokenType.bracketR);return;case re.charCodes.leftCurlyBrace:if(ee.isFlowEnabled&&ee.input.charCodeAt(ee.state.pos+1)===re.charCodes.verticalBar){finishOp(ue.TokenType.braceBarL,2)}else{++ee.state.pos;finishToken(ue.TokenType.braceL)}return;case re.charCodes.rightCurlyBrace:++ee.state.pos;finishToken(ue.TokenType.braceR);return;case re.charCodes.colon:if(ee.input.charCodeAt(ee.state.pos+1)===re.charCodes.colon){finishOp(ue.TokenType.doubleColon,2)}else{++ee.state.pos;finishToken(ue.TokenType.colon)}return;case re.charCodes.questionMark:readToken_question();return;case re.charCodes.atSign:++ee.state.pos;finishToken(ue.TokenType.at);return;case re.charCodes.graveAccent:++ee.state.pos;finishToken(ue.TokenType.backQuote);return;case re.charCodes.digit0:{const b=ee.input.charCodeAt(ee.state.pos+1);if(b===re.charCodes.lowercaseX||b===re.charCodes.uppercaseX||b===re.charCodes.lowercaseO||b===re.charCodes.uppercaseO||b===re.charCodes.lowercaseB||b===re.charCodes.uppercaseB){readRadixNumber();return}}case re.charCodes.digit1:case re.charCodes.digit2:case re.charCodes.digit3:case re.charCodes.digit4:case re.charCodes.digit5:case re.charCodes.digit6:case re.charCodes.digit7:case re.charCodes.digit8:case re.charCodes.digit9:readNumber(false);return;case re.charCodes.quotationMark:case re.charCodes.apostrophe:readString(b);return;case re.charCodes.slash:readToken_slash();return;case re.charCodes.percentSign:case re.charCodes.asterisk:readToken_mult_modulo(b);return;case re.charCodes.verticalBar:case re.charCodes.ampersand:readToken_pipe_amp(b);return;case re.charCodes.caret:readToken_caret();return;case re.charCodes.plusSign:case re.charCodes.dash:readToken_plus_min(b);return;case re.charCodes.lessThan:case re.charCodes.greaterThan:readToken_lt_gt(b);return;case re.charCodes.equalsTo:case re.charCodes.exclamationMark:readToken_eq_excl(b);return;case re.charCodes.tilde:finishOp(ue.TokenType.tilde,1);return;default:break}te.unexpected.call(void 0,`Unexpected character '${String.fromCharCode(b)}'`,ee.state.pos)}S.getTokenFromCode=getTokenFromCode;function finishOp(b,S){ee.state.pos+=S;finishToken(b)}function readRegexp(){const b=ee.state.pos;let S=false;let J=false;for(;;){if(ee.state.pos>=ee.input.length){te.unexpected.call(void 0,"Unterminated regular expression",b);return}const ne=ee.input.charCodeAt(ee.state.pos);if(S){S=false}else{if(ne===re.charCodes.leftSquareBracket){J=true}else if(ne===re.charCodes.rightSquareBracket&&J){J=false}else if(ne===re.charCodes.slash&&!J){break}S=ne===re.charCodes.backslash}++ee.state.pos}++ee.state.pos;skipWord();finishToken(ue.TokenType.regexp)}function readInt(){while(true){const b=ee.input.charCodeAt(ee.state.pos);if(b>=re.charCodes.digit0&&b<=re.charCodes.digit9||b>=re.charCodes.lowercaseA&&b<=re.charCodes.lowercaseF||b>=re.charCodes.uppercaseA&&b<=re.charCodes.uppercaseF||b===re.charCodes.underscore){ee.state.pos++}else{break}}}function readRadixNumber(){let b=false;const S=ee.state.pos;ee.state.pos+=2;readInt();const J=ee.input.charCodeAt(ee.state.pos);if(J===re.charCodes.lowercaseN){++ee.state.pos;b=true}else if(J===re.charCodes.lowercaseM){te.unexpected.call(void 0,"Invalid decimal",S)}if(b){finishToken(ue.TokenType.bigint);return}finishToken(ue.TokenType.num)}function readNumber(b){let S=false;let J=false;if(!b){readInt()}let te=ee.input.charCodeAt(ee.state.pos);if(te===re.charCodes.dot){++ee.state.pos;readInt();te=ee.input.charCodeAt(ee.state.pos)}if(te===re.charCodes.uppercaseE||te===re.charCodes.lowercaseE){te=ee.input.charCodeAt(++ee.state.pos);if(te===re.charCodes.plusSign||te===re.charCodes.dash){++ee.state.pos}readInt();te=ee.input.charCodeAt(ee.state.pos)}if(te===re.charCodes.lowercaseN){++ee.state.pos;S=true}else if(te===re.charCodes.lowercaseM){++ee.state.pos;J=true}if(S){finishToken(ue.TokenType.bigint);return}if(J){finishToken(ue.TokenType.decimal);return}finishToken(ue.TokenType.num)}function readString(b){ee.state.pos++;for(;;){if(ee.state.pos>=ee.input.length){te.unexpected.call(void 0,"Unterminated string constant");return}const S=ee.input.charCodeAt(ee.state.pos);if(S===re.charCodes.backslash){ee.state.pos++}else if(S===b){break}ee.state.pos++}ee.state.pos++;finishToken(ue.TokenType.string)}function readTmplToken(){for(;;){if(ee.state.pos>=ee.input.length){te.unexpected.call(void 0,"Unterminated template");return}const b=ee.input.charCodeAt(ee.state.pos);if(b===re.charCodes.graveAccent||b===re.charCodes.dollarSign&&ee.input.charCodeAt(ee.state.pos+1)===re.charCodes.leftCurlyBrace){if(ee.state.pos===ee.state.start&&match(ue.TokenType.template)){if(b===re.charCodes.dollarSign){ee.state.pos+=2;finishToken(ue.TokenType.dollarBraceL);return}else{++ee.state.pos;finishToken(ue.TokenType.backQuote);return}}finishToken(ue.TokenType.template);return}if(b===re.charCodes.backslash){ee.state.pos++}ee.state.pos++}}function skipWord(){while(ee.state.pos<ee.input.length){const b=ee.input.charCodeAt(ee.state.pos);if(ne.IS_IDENTIFIER_CHAR[b]){ee.state.pos++}else if(b===re.charCodes.backslash){ee.state.pos+=2;if(ee.input.charCodeAt(ee.state.pos)===re.charCodes.leftCurlyBrace){while(ee.state.pos<ee.input.length&&ee.input.charCodeAt(ee.state.pos)!==re.charCodes.rightCurlyBrace){ee.state.pos++}ee.state.pos++}}else{break}}}S.skipWord=skipWord},61346:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var J;(function(b){const S=0;b[b["NONE"]=S]="NONE";const J=S+1;b[b["_abstract"]=J]="_abstract";const ee=J+1;b[b["_as"]=ee]="_as";const te=ee+1;b[b["_asserts"]=te]="_asserts";const re=te+1;b[b["_async"]=re]="_async";const ne=re+1;b[b["_await"]=ne]="_await";const ie=ne+1;b[b["_checks"]=ie]="_checks";const oe=ie+1;b[b["_constructor"]=oe]="_constructor";const se=oe+1;b[b["_declare"]=se]="_declare";const ae=se+1;b[b["_enum"]=ae]="_enum";const ue=ae+1;b[b["_exports"]=ue]="_exports";const ce=ue+1;b[b["_from"]=ce]="_from";const le=ce+1;b[b["_get"]=le]="_get";const pe=le+1;b[b["_global"]=pe]="_global";const fe=pe+1;b[b["_implements"]=fe]="_implements";const de=fe+1;b[b["_infer"]=de]="_infer";const he=de+1;b[b["_interface"]=he]="_interface";const me=he+1;b[b["_is"]=me]="_is";const ge=me+1;b[b["_keyof"]=ge]="_keyof";const ye=ge+1;b[b["_mixins"]=ye]="_mixins";const ve=ye+1;b[b["_module"]=ve]="_module";const Te=ve+1;b[b["_namespace"]=Te]="_namespace";const be=Te+1;b[b["_of"]=be]="_of";const Ee=be+1;b[b["_opaque"]=Ee]="_opaque";const Ae=Ee+1;b[b["_override"]=Ae]="_override";const we=Ae+1;b[b["_private"]=we]="_private";const _e=we+1;b[b["_protected"]=_e]="_protected";const xe=_e+1;b[b["_proto"]=xe]="_proto";const Pe=xe+1;b[b["_public"]=Pe]="_public";const Ce=Pe+1;b[b["_readonly"]=Ce]="_readonly";const ke=Ce+1;b[b["_require"]=ke]="_require";const Se=ke+1;b[b["_set"]=Se]="_set";const De=Se+1;b[b["_static"]=De]="_static";const Ie=De+1;b[b["_type"]=Ie]="_type";const Oe=Ie+1;b[b["_unique"]=Oe]="_unique"})(J||(S.ContextualKeyword=J={}))},36872:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(99064);var te=J(38824);var re=J(91795);var ne=J(92740);var ie=J(93153);var oe=J(58256);function readWord(){let b=0;let S=0;let J=ee.state.pos;while(J<ee.input.length){S=ee.input.charCodeAt(J);if(S<te.charCodes.lowercaseA||S>te.charCodes.lowercaseZ){break}const re=ie.READ_WORD_TREE[b+(S-te.charCodes.lowercaseA)+1];if(re===-1){break}else{b=re;J++}}const se=ie.READ_WORD_TREE[b];if(se>-1&&!re.IS_IDENTIFIER_CHAR[S]){ee.state.pos=J;if(se&1){ne.finishToken.call(void 0,se>>>1)}else{ne.finishToken.call(void 0,oe.TokenType.name,se>>>1)}return}while(J<ee.input.length){const b=ee.input.charCodeAt(J);if(re.IS_IDENTIFIER_CHAR[b]){J++}else if(b===te.charCodes.backslash){J+=2;if(ee.input.charCodeAt(J)===te.charCodes.leftCurlyBrace){while(J<ee.input.length&&ee.input.charCodeAt(J)!==te.charCodes.rightCurlyBrace){J++}J++}}else if(b===te.charCodes.atSign&&ee.input.charCodeAt(J+1)===te.charCodes.atSign){J+=2}else{break}}ee.state.pos=J;ne.finishToken.call(void 0,oe.TokenType.name)}S["default"]=readWord},93153:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(61346);var te=J(58256);const re=new Int32Array([-1,27,594,729,1566,2187,2673,3294,-1,3510,-1,4428,4563,4644,4941,5319,5697,-1,6237,6696,7155,7587,7749,7911,-1,8127,-1,-1,-1,54,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,243,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,918,-1,-1,-1,1053,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,783,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1026,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,1431,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1242,-1,-1,-1,-1,-1,-1,(te.TokenType._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1620,1782,-1,-1,1917,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1755,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1971,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,(te.TokenType._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2106,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,2376,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2484,-1,-1,-1,-1,-1,-1,(te.TokenType._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,2970,-1,-1,3024,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2862,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,(te.TokenType._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3159,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3213,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3483,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,3564,3888,-1,-1,-1,-1,4401,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,3807,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3699,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3753,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,(te.TokenType._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._in<<1)+1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3996,4212,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4077,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4617,-1,-1,-1,-1,-1,-1,(te.TokenType._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4752,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4833,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5130,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,(te.TokenType._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,5373,-1,-1,-1,-1,-1,5508,-1,-1,-1,-1,ee.ContextualKeyword._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5751,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5940,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,ee.ContextualKeyword._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6480,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,6912,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6939,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,(te.TokenType._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7371,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7479,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,ee.ContextualKeyword._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8181,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(te.TokenType._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);S.READ_WORD_TREE=re},94869:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(61346);var te=J(58256);class Scope{constructor(b,S,J){this.startTokenIndex=b;this.endTokenIndex=S;this.isFunctionScope=J}}S.Scope=Scope;class StateSnapshot{constructor(b,S,J,ee,te,re,ne,ie,oe,se,ae,ue){this.potentialArrowAt=b;this.noAnonFunctionType=S;this.tokensLength=J;this.scopesLength=ee;this.pos=te;this.type=re;this.contextualKeyword=ne;this.start=ie;this.end=oe;this.isType=se;this.scopeDepth=ae;this.error=ue}}S.StateSnapshot=StateSnapshot;class State{constructor(){State.prototype.__init.call(this);State.prototype.__init2.call(this);State.prototype.__init3.call(this);State.prototype.__init4.call(this);State.prototype.__init5.call(this);State.prototype.__init6.call(this);State.prototype.__init7.call(this);State.prototype.__init8.call(this);State.prototype.__init9.call(this);State.prototype.__init10.call(this);State.prototype.__init11.call(this);State.prototype.__init12.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=false}__init3(){this.tokens=[]}__init4(){this.scopes=[]}__init5(){this.pos=0}__init6(){this.type=te.TokenType.eof}__init7(){this.contextualKeyword=ee.ContextualKeyword.NONE}__init8(){this.start=0}__init9(){this.end=0}__init10(){this.isType=false}__init11(){this.scopeDepth=0}__init12(){this.error=null}snapshot(){return new StateSnapshot(this.potentialArrowAt,this.noAnonFunctionType,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(b){this.potentialArrowAt=b.potentialArrowAt;this.noAnonFunctionType=b.noAnonFunctionType;this.tokens.length=b.tokensLength;this.scopes.length=b.scopesLength;this.pos=b.pos;this.type=b.type;this.contextualKeyword=b.contextualKeyword;this.start=b.start;this.end=b.end;this.isType=b.isType;this.scopeDepth=b.scopeDepth;this.error=b.error}}S["default"]=State},58256:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var J;(function(b){const S=15;b[b["PRECEDENCE_MASK"]=S]="PRECEDENCE_MASK";const J=1<<4;b[b["IS_KEYWORD"]=J]="IS_KEYWORD";const ee=1<<5;b[b["IS_ASSIGN"]=ee]="IS_ASSIGN";const te=1<<6;b[b["IS_RIGHT_ASSOCIATIVE"]=te]="IS_RIGHT_ASSOCIATIVE";const re=1<<7;b[b["IS_PREFIX"]=re]="IS_PREFIX";const ne=1<<8;b[b["IS_POSTFIX"]=ne]="IS_POSTFIX";const ie=0;b[b["num"]=ie]="num";const oe=512;b[b["bigint"]=oe]="bigint";const se=1024;b[b["decimal"]=se]="decimal";const ae=1536;b[b["regexp"]=ae]="regexp";const ue=2048;b[b["string"]=ue]="string";const ce=2560;b[b["name"]=ce]="name";const le=3072;b[b["eof"]=le]="eof";const pe=3584;b[b["bracketL"]=pe]="bracketL";const fe=4096;b[b["bracketR"]=fe]="bracketR";const de=4608;b[b["braceL"]=de]="braceL";const he=5120;b[b["braceBarL"]=he]="braceBarL";const me=5632;b[b["braceR"]=me]="braceR";const ge=6144;b[b["braceBarR"]=ge]="braceBarR";const ye=6656;b[b["parenL"]=ye]="parenL";const ve=7168;b[b["parenR"]=ve]="parenR";const Te=7680;b[b["comma"]=Te]="comma";const be=8192;b[b["semi"]=be]="semi";const Ee=8704;b[b["colon"]=Ee]="colon";const Ae=9216;b[b["doubleColon"]=Ae]="doubleColon";const we=9728;b[b["dot"]=we]="dot";const _e=10240;b[b["question"]=_e]="question";const xe=10752;b[b["questionDot"]=xe]="questionDot";const Pe=11264;b[b["arrow"]=Pe]="arrow";const Ce=11776;b[b["template"]=Ce]="template";const ke=12288;b[b["ellipsis"]=ke]="ellipsis";const Se=12800;b[b["backQuote"]=Se]="backQuote";const De=13312;b[b["dollarBraceL"]=De]="dollarBraceL";const Ie=13824;b[b["at"]=Ie]="at";const Oe=14336;b[b["hash"]=Oe]="hash";const Re=14880;b[b["eq"]=Re]="eq";const Ne=15392;b[b["assign"]=Ne]="assign";const Me=16256;b[b["preIncDec"]=Me]="preIncDec";const Fe=16768;b[b["postIncDec"]=Fe]="postIncDec";const Le=17024;b[b["bang"]=Le]="bang";const je=17536;b[b["tilde"]=je]="tilde";const Be=17921;b[b["pipeline"]=Be]="pipeline";const $e=18434;b[b["nullishCoalescing"]=$e]="nullishCoalescing";const Ue=18946;b[b["logicalOR"]=Ue]="logicalOR";const Xe=19459;b[b["logicalAND"]=Xe]="logicalAND";const Ge=19972;b[b["bitwiseOR"]=Ge]="bitwiseOR";const Ve=20485;b[b["bitwiseXOR"]=Ve]="bitwiseXOR";const We=20998;b[b["bitwiseAND"]=We]="bitwiseAND";const qe=21511;b[b["equality"]=qe]="equality";const He=22024;b[b["lessThan"]=He]="lessThan";const Ke=22536;b[b["greaterThan"]=Ke]="greaterThan";const Ye=23048;b[b["relationalOrEqual"]=Ye]="relationalOrEqual";const ze=23561;b[b["bitShift"]=ze]="bitShift";const Je=24202;b[b["plus"]=Je]="plus";const Qe=24714;b[b["minus"]=Qe]="minus";const Ze=25099;b[b["modulo"]=Ze]="modulo";const et=25611;b[b["star"]=et]="star";const rt=26123;b[b["slash"]=rt]="slash";const nt=26700;b[b["exponent"]=nt]="exponent";const it=27136;b[b["jsxName"]=it]="jsxName";const ot=27648;b[b["jsxText"]=ot]="jsxText";const st=28160;b[b["jsxTagStart"]=st]="jsxTagStart";const at=28672;b[b["jsxTagEnd"]=at]="jsxTagEnd";const ut=29184;b[b["typeParameterStart"]=ut]="typeParameterStart";const ct=29696;b[b["nonNullAssertion"]=ct]="nonNullAssertion";const pt=30224;b[b["_break"]=pt]="_break";const ft=30736;b[b["_case"]=ft]="_case";const dt=31248;b[b["_catch"]=dt]="_catch";const ht=31760;b[b["_continue"]=ht]="_continue";const mt=32272;b[b["_debugger"]=mt]="_debugger";const yt=32784;b[b["_default"]=yt]="_default";const vt=33296;b[b["_do"]=vt]="_do";const Tt=33808;b[b["_else"]=Tt]="_else";const bt=34320;b[b["_finally"]=bt]="_finally";const Et=34832;b[b["_for"]=Et]="_for";const At=35344;b[b["_function"]=At]="_function";const wt=35856;b[b["_if"]=wt]="_if";const _t=36368;b[b["_return"]=_t]="_return";const xt=36880;b[b["_switch"]=xt]="_switch";const Pt=37520;b[b["_throw"]=Pt]="_throw";const Ct=37904;b[b["_try"]=Ct]="_try";const kt=38416;b[b["_var"]=kt]="_var";const St=38928;b[b["_let"]=St]="_let";const Dt=39440;b[b["_const"]=Dt]="_const";const It=39952;b[b["_while"]=It]="_while";const Ot=40464;b[b["_with"]=Ot]="_with";const Rt=40976;b[b["_new"]=Rt]="_new";const Nt=41488;b[b["_this"]=Nt]="_this";const Mt=42e3;b[b["_super"]=Mt]="_super";const Ft=42512;b[b["_class"]=Ft]="_class";const Lt=43024;b[b["_extends"]=Lt]="_extends";const jt=43536;b[b["_export"]=jt]="_export";const Bt=44048;b[b["_import"]=Bt]="_import";const $t=44560;b[b["_yield"]=$t]="_yield";const Ut=45072;b[b["_null"]=Ut]="_null";const Xt=45584;b[b["_true"]=Xt]="_true";const Gt=46096;b[b["_false"]=Gt]="_false";const Vt=46616;b[b["_in"]=Vt]="_in";const Wt=47128;b[b["_instanceof"]=Wt]="_instanceof";const qt=47760;b[b["_typeof"]=qt]="_typeof";const Ht=48272;b[b["_void"]=Ht]="_void";const Kt=48784;b[b["_delete"]=Kt]="_delete";const Yt=49168;b[b["_async"]=Yt]="_async";const zt=49680;b[b["_get"]=zt]="_get";const Jt=50192;b[b["_set"]=Jt]="_set";const Qt=50704;b[b["_declare"]=Qt]="_declare";const Zt=51216;b[b["_readonly"]=Zt]="_readonly";const er=51728;b[b["_abstract"]=er]="_abstract";const tr=52240;b[b["_static"]=tr]="_static";const rr=52752;b[b["_public"]=rr]="_public";const nr=53264;b[b["_private"]=nr]="_private";const ir=53776;b[b["_protected"]=ir]="_protected";const or=54288;b[b["_override"]=or]="_override";const sr=54800;b[b["_as"]=sr]="_as";const ar=55312;b[b["_enum"]=ar]="_enum";const ur=55824;b[b["_type"]=ur]="_type";const cr=56336;b[b["_implements"]=cr]="_implements"})(J||(S.TokenType=J={}));function formatTokenType(b){switch(b){case J.num:return"num";case J.bigint:return"bigint";case J.decimal:return"decimal";case J.regexp:return"regexp";case J.string:return"string";case J.name:return"name";case J.eof:return"eof";case J.bracketL:return"[";case J.bracketR:return"]";case J.braceL:return"{";case J.braceBarL:return"{|";case J.braceR:return"}";case J.braceBarR:return"|}";case J.parenL:return"(";case J.parenR:return")";case J.comma:return",";case J.semi:return";";case J.colon:return":";case J.doubleColon:return"::";case J.dot:return".";case J.question:return"?";case J.questionDot:return"?.";case J.arrow:return"=>";case J.template:return"template";case J.ellipsis:return"...";case J.backQuote:return"`";case J.dollarBraceL:return"${";case J.at:return"@";case J.hash:return"#";case J.eq:return"=";case J.assign:return"_=";case J.preIncDec:return"++/--";case J.postIncDec:return"++/--";case J.bang:return"!";case J.tilde:return"~";case J.pipeline:return"|>";case J.nullishCoalescing:return"??";case J.logicalOR:return"||";case J.logicalAND:return"&&";case J.bitwiseOR:return"|";case J.bitwiseXOR:return"^";case J.bitwiseAND:return"&";case J.equality:return"==/!=";case J.lessThan:return"<";case J.greaterThan:return">";case J.relationalOrEqual:return"<=/>=";case J.bitShift:return"<</>>";case J.plus:return"+";case J.minus:return"-";case J.modulo:return"%";case J.star:return"*";case J.slash:return"/";case J.exponent:return"**";case J.jsxName:return"jsxName";case J.jsxText:return"jsxText";case J.jsxTagStart:return"jsxTagStart";case J.jsxTagEnd:return"jsxTagEnd";case J.typeParameterStart:return"typeParameterStart";case J.nonNullAssertion:return"nonNullAssertion";case J._break:return"break";case J._case:return"case";case J._catch:return"catch";case J._continue:return"continue";case J._debugger:return"debugger";case J._default:return"default";case J._do:return"do";case J._else:return"else";case J._finally:return"finally";case J._for:return"for";case J._function:return"function";case J._if:return"if";case J._return:return"return";case J._switch:return"switch";case J._throw:return"throw";case J._try:return"try";case J._var:return"var";case J._let:return"let";case J._const:return"const";case J._while:return"while";case J._with:return"with";case J._new:return"new";case J._this:return"this";case J._super:return"super";case J._class:return"class";case J._extends:return"extends";case J._export:return"export";case J._import:return"import";case J._yield:return"yield";case J._null:return"null";case J._true:return"true";case J._false:return"false";case J._in:return"in";case J._instanceof:return"instanceof";case J._typeof:return"typeof";case J._void:return"void";case J._delete:return"delete";case J._async:return"async";case J._get:return"get";case J._set:return"set";case J._declare:return"declare";case J._readonly:return"readonly";case J._abstract:return"abstract";case J._static:return"static";case J._public:return"public";case J._private:return"private";case J._protected:return"protected";case J._override:return"override";case J._as:return"as";case J._enum:return"enum";case J._type:return"type";case J._implements:return"implements";default:return""}}S.formatTokenType=formatTokenType},99064:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(94869);var te=_interopRequireDefault(ee);var re=J(38824);S.isJSXEnabled;S.isTypeScriptEnabled;S.isFlowEnabled;S.state;S.input;S.nextContextId;function getNextContextId(){return S.nextContextId++}S.getNextContextId=getNextContextId;function augmentError(b){if("pos"in b){const S=locationForIndex(b.pos);b.message+=` (${S.line}:${S.column})`;b.loc=S}return b}S.augmentError=augmentError;class Loc{constructor(b,S){this.line=b;this.column=S}}S.Loc=Loc;function locationForIndex(b){let J=1;let ee=1;for(let te=0;te<b;te++){if(S.input.charCodeAt(te)===re.charCodes.lineFeed){J++;ee=1}else{ee++}}return new Loc(J,ee)}S.locationForIndex=locationForIndex;function initParser(b,J,ee,re){S.input=b;S.state=new(0,te.default);S.nextContextId=1;S.isJSXEnabled=J;S.isTypeScriptEnabled=ee;S.isFlowEnabled=re}S.initParser=initParser},58273:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(34290);var te=J(17194);var re=J(97088);var ne=J(71522);var ie=J(92740);var oe=J(61346);var se=J(94869);var ae=J(58256);var ue=J(38824);var ce=J(91795);var le=J(99064);var pe=J(30911);var fe=J(85120);var de=J(8128);class StopState{constructor(b){this.stop=b}}S.StopState=StopState;function parseExpression(b=false){parseMaybeAssign(b);if(ie.match.call(void 0,ae.TokenType.comma)){while(ie.eat.call(void 0,ae.TokenType.comma)){parseMaybeAssign(b)}}}S.parseExpression=parseExpression;function parseMaybeAssign(b=false,S=false){if(le.isTypeScriptEnabled){return ne.tsParseMaybeAssign.call(void 0,b,S)}else if(le.isFlowEnabled){return ee.flowParseMaybeAssign.call(void 0,b,S)}else{return baseParseMaybeAssign(b,S)}}S.parseMaybeAssign=parseMaybeAssign;function baseParseMaybeAssign(b,S){if(ie.match.call(void 0,ae.TokenType._yield)){parseYield();return false}if(ie.match.call(void 0,ae.TokenType.parenL)||ie.match.call(void 0,ae.TokenType.name)||ie.match.call(void 0,ae.TokenType._yield)){le.state.potentialArrowAt=le.state.start}const J=parseMaybeConditional(b);if(S){parseParenItem()}if(le.state.type&ae.TokenType.IS_ASSIGN){ie.next.call(void 0);parseMaybeAssign(b);return false}return J}S.baseParseMaybeAssign=baseParseMaybeAssign;function parseMaybeConditional(b){const S=parseExprOps(b);if(S){return true}parseConditional(b);return false}function parseConditional(b){if(le.isTypeScriptEnabled||le.isFlowEnabled){re.typedParseConditional.call(void 0,b)}else{baseParseConditional(b)}}function baseParseConditional(b){if(ie.eat.call(void 0,ae.TokenType.question)){parseMaybeAssign();de.expect.call(void 0,ae.TokenType.colon);parseMaybeAssign(b)}}S.baseParseConditional=baseParseConditional;function parseExprOps(b){const S=le.state.tokens.length;const J=parseMaybeUnary();if(J){return true}parseExprOp(S,-1,b);return false}function parseExprOp(b,S,J){if(le.isTypeScriptEnabled&&(ae.TokenType._in&ae.TokenType.PRECEDENCE_MASK)>S&&!de.hasPrecedingLineBreak.call(void 0)&&de.eatContextual.call(void 0,oe.ContextualKeyword._as)){le.state.tokens[le.state.tokens.length-1].type=ae.TokenType._as;const ee=ie.pushTypeContext.call(void 0,1);ne.tsParseType.call(void 0);ie.popTypeContext.call(void 0,ee);parseExprOp(b,S,J);return}const ee=le.state.type&ae.TokenType.PRECEDENCE_MASK;if(ee>0&&(!J||!ie.match.call(void 0,ae.TokenType._in))){if(ee>S){const te=le.state.type;ie.next.call(void 0);if(te===ae.TokenType.nullishCoalescing){le.state.tokens[le.state.tokens.length-1].nullishStartIndex=b}const re=le.state.tokens.length;parseMaybeUnary();parseExprOp(re,te&ae.TokenType.IS_RIGHT_ASSOCIATIVE?ee-1:ee,J);if(te===ae.TokenType.nullishCoalescing){le.state.tokens[b].numNullishCoalesceStarts++;le.state.tokens[le.state.tokens.length-1].numNullishCoalesceEnds++}parseExprOp(b,S,J)}}}function parseMaybeUnary(){if(le.isTypeScriptEnabled&&!le.isJSXEnabled&&ie.eat.call(void 0,ae.TokenType.lessThan)){ne.tsParseTypeAssertion.call(void 0);return false}if(de.isContextual.call(void 0,oe.ContextualKeyword._module)&&ie.lookaheadCharCode.call(void 0)===ue.charCodes.leftCurlyBrace&&!de.hasFollowingLineBreak.call(void 0)){parseModuleExpression();return false}if(le.state.type&ae.TokenType.IS_PREFIX){ie.next.call(void 0);parseMaybeUnary();return false}const b=parseExprSubscripts();if(b){return true}while(le.state.type&ae.TokenType.IS_POSTFIX&&!de.canInsertSemicolon.call(void 0)){if(le.state.type===ae.TokenType.preIncDec){le.state.type=ae.TokenType.postIncDec}ie.next.call(void 0)}return false}S.parseMaybeUnary=parseMaybeUnary;function parseExprSubscripts(){const b=le.state.tokens.length;const S=parseExprAtom();if(S){return true}parseSubscripts(b);if(le.state.tokens.length>b&&le.state.tokens[b].isOptionalChainStart){le.state.tokens[le.state.tokens.length-1].isOptionalChainEnd=true}return false}S.parseExprSubscripts=parseExprSubscripts;function parseSubscripts(b,S=false){if(le.isFlowEnabled){ee.flowParseSubscripts.call(void 0,b,S)}else{baseParseSubscripts(b,S)}}function baseParseSubscripts(b,S=false){const J=new StopState(false);do{parseSubscript(b,S,J)}while(!J.stop&&!le.state.error)}S.baseParseSubscripts=baseParseSubscripts;function parseSubscript(b,S,J){if(le.isTypeScriptEnabled){ne.tsParseSubscript.call(void 0,b,S,J)}else if(le.isFlowEnabled){ee.flowParseSubscript.call(void 0,b,S,J)}else{baseParseSubscript(b,S,J)}}function baseParseSubscript(b,S,J){if(!S&&ie.eat.call(void 0,ae.TokenType.doubleColon)){parseNoCallExpr();J.stop=true;parseSubscripts(b,S)}else if(ie.match.call(void 0,ae.TokenType.questionDot)){le.state.tokens[b].isOptionalChainStart=true;if(S&&ie.lookaheadType.call(void 0)===ae.TokenType.parenL){J.stop=true;return}ie.next.call(void 0);le.state.tokens[le.state.tokens.length-1].subscriptStartIndex=b;if(ie.eat.call(void 0,ae.TokenType.bracketL)){parseExpression();de.expect.call(void 0,ae.TokenType.bracketR)}else if(ie.eat.call(void 0,ae.TokenType.parenL)){parseCallExpressionArguments()}else{parseMaybePrivateName()}}else if(ie.eat.call(void 0,ae.TokenType.dot)){le.state.tokens[le.state.tokens.length-1].subscriptStartIndex=b;parseMaybePrivateName()}else if(ie.eat.call(void 0,ae.TokenType.bracketL)){le.state.tokens[le.state.tokens.length-1].subscriptStartIndex=b;parseExpression();de.expect.call(void 0,ae.TokenType.bracketR)}else if(!S&&ie.match.call(void 0,ae.TokenType.parenL)){if(atPossibleAsync()){const S=le.state.snapshot();const ee=le.state.tokens.length;ie.next.call(void 0);le.state.tokens[le.state.tokens.length-1].subscriptStartIndex=b;const te=le.getNextContextId.call(void 0);le.state.tokens[le.state.tokens.length-1].contextId=te;parseCallExpressionArguments();le.state.tokens[le.state.tokens.length-1].contextId=te;if(shouldParseAsyncArrow()){le.state.restoreFromSnapshot(S);J.stop=true;le.state.scopeDepth++;fe.parseFunctionParams.call(void 0);parseAsyncArrowFromCallExpression(ee)}}else{ie.next.call(void 0);le.state.tokens[le.state.tokens.length-1].subscriptStartIndex=b;const S=le.getNextContextId.call(void 0);le.state.tokens[le.state.tokens.length-1].contextId=S;parseCallExpressionArguments();le.state.tokens[le.state.tokens.length-1].contextId=S}}else if(ie.match.call(void 0,ae.TokenType.backQuote)){parseTemplate()}else{J.stop=true}}S.baseParseSubscript=baseParseSubscript;function atPossibleAsync(){return le.state.tokens[le.state.tokens.length-1].contextualKeyword===oe.ContextualKeyword._async&&!de.canInsertSemicolon.call(void 0)}S.atPossibleAsync=atPossibleAsync;function parseCallExpressionArguments(){let b=true;while(!ie.eat.call(void 0,ae.TokenType.parenR)&&!le.state.error){if(b){b=false}else{de.expect.call(void 0,ae.TokenType.comma);if(ie.eat.call(void 0,ae.TokenType.parenR)){break}}parseExprListItem(false)}}S.parseCallExpressionArguments=parseCallExpressionArguments;function shouldParseAsyncArrow(){return ie.match.call(void 0,ae.TokenType.colon)||ie.match.call(void 0,ae.TokenType.arrow)}function parseAsyncArrowFromCallExpression(b){if(le.isTypeScriptEnabled){ne.tsStartParseAsyncArrowFromCallExpression.call(void 0)}else if(le.isFlowEnabled){ee.flowStartParseAsyncArrowFromCallExpression.call(void 0)}de.expect.call(void 0,ae.TokenType.arrow);parseArrowExpression(b)}function parseNoCallExpr(){const b=le.state.tokens.length;parseExprAtom();parseSubscripts(b,true)}function parseExprAtom(){if(ie.eat.call(void 0,ae.TokenType.modulo)){parseIdentifier();return false}if(ie.match.call(void 0,ae.TokenType.jsxText)){parseLiteral();return false}else if(ie.match.call(void 0,ae.TokenType.lessThan)&&le.isJSXEnabled){le.state.type=ae.TokenType.jsxTagStart;te.jsxParseElement.call(void 0);ie.next.call(void 0);return false}const b=le.state.potentialArrowAt===le.state.start;switch(le.state.type){case ae.TokenType.slash:case ae.TokenType.assign:ie.retokenizeSlashAsRegex.call(void 0);case ae.TokenType._super:case ae.TokenType._this:case ae.TokenType.regexp:case ae.TokenType.num:case ae.TokenType.bigint:case ae.TokenType.decimal:case ae.TokenType.string:case ae.TokenType._null:case ae.TokenType._true:case ae.TokenType._false:ie.next.call(void 0);return false;case ae.TokenType._import:ie.next.call(void 0);if(ie.match.call(void 0,ae.TokenType.dot)){le.state.tokens[le.state.tokens.length-1].type=ae.TokenType.name;ie.next.call(void 0);parseIdentifier()}return false;case ae.TokenType.name:{const S=le.state.tokens.length;const J=le.state.start;const ee=le.state.contextualKeyword;parseIdentifier();if(ee===oe.ContextualKeyword._await){parseAwait();return false}else if(ee===oe.ContextualKeyword._async&&ie.match.call(void 0,ae.TokenType._function)&&!de.canInsertSemicolon.call(void 0)){ie.next.call(void 0);fe.parseFunction.call(void 0,J,false);return false}else if(b&&ee===oe.ContextualKeyword._async&&!de.canInsertSemicolon.call(void 0)&&ie.match.call(void 0,ae.TokenType.name)){le.state.scopeDepth++;pe.parseBindingIdentifier.call(void 0,false);de.expect.call(void 0,ae.TokenType.arrow);parseArrowExpression(S);return true}else if(ie.match.call(void 0,ae.TokenType._do)&&!de.canInsertSemicolon.call(void 0)){ie.next.call(void 0);fe.parseBlock.call(void 0);return false}if(b&&!de.canInsertSemicolon.call(void 0)&&ie.match.call(void 0,ae.TokenType.arrow)){le.state.scopeDepth++;pe.markPriorBindingIdentifier.call(void 0,false);de.expect.call(void 0,ae.TokenType.arrow);parseArrowExpression(S);return true}le.state.tokens[le.state.tokens.length-1].identifierRole=ie.IdentifierRole.Access;return false}case ae.TokenType._do:{ie.next.call(void 0);fe.parseBlock.call(void 0);return false}case ae.TokenType.parenL:{const S=parseParenAndDistinguishExpression(b);return S}case ae.TokenType.bracketL:ie.next.call(void 0);parseExprList(ae.TokenType.bracketR,true);return false;case ae.TokenType.braceL:parseObj(false,false);return false;case ae.TokenType._function:parseFunctionExpression();return false;case ae.TokenType.at:fe.parseDecorators.call(void 0);case ae.TokenType._class:fe.parseClass.call(void 0,false);return false;case ae.TokenType._new:parseNew();return false;case ae.TokenType.backQuote:parseTemplate();return false;case ae.TokenType.doubleColon:{ie.next.call(void 0);parseNoCallExpr();return false}case ae.TokenType.hash:{const b=ie.lookaheadCharCode.call(void 0);if(ce.IS_IDENTIFIER_START[b]||b===ue.charCodes.backslash){parseMaybePrivateName()}else{ie.next.call(void 0)}return false}default:de.unexpected.call(void 0);return false}}S.parseExprAtom=parseExprAtom;function parseMaybePrivateName(){ie.eat.call(void 0,ae.TokenType.hash);parseIdentifier()}function parseFunctionExpression(){const b=le.state.start;parseIdentifier();if(ie.eat.call(void 0,ae.TokenType.dot)){parseIdentifier()}fe.parseFunction.call(void 0,b,false)}function parseLiteral(){ie.next.call(void 0)}S.parseLiteral=parseLiteral;function parseParenExpression(){de.expect.call(void 0,ae.TokenType.parenL);parseExpression();de.expect.call(void 0,ae.TokenType.parenR)}S.parseParenExpression=parseParenExpression;function parseParenAndDistinguishExpression(b){const S=le.state.snapshot();const J=le.state.tokens.length;de.expect.call(void 0,ae.TokenType.parenL);let ee=true;while(!ie.match.call(void 0,ae.TokenType.parenR)&&!le.state.error){if(ee){ee=false}else{de.expect.call(void 0,ae.TokenType.comma);if(ie.match.call(void 0,ae.TokenType.parenR)){break}}if(ie.match.call(void 0,ae.TokenType.ellipsis)){pe.parseRest.call(void 0,false);parseParenItem();break}else{parseMaybeAssign(false,true)}}de.expect.call(void 0,ae.TokenType.parenR);if(b&&shouldParseArrow()){const b=parseArrow();if(b){le.state.restoreFromSnapshot(S);le.state.scopeDepth++;fe.parseFunctionParams.call(void 0);parseArrow();parseArrowExpression(J);return true}}return false}function shouldParseArrow(){return ie.match.call(void 0,ae.TokenType.colon)||!de.canInsertSemicolon.call(void 0)}function parseArrow(){if(le.isTypeScriptEnabled){return ne.tsParseArrow.call(void 0)}else if(le.isFlowEnabled){return ee.flowParseArrow.call(void 0)}else{return ie.eat.call(void 0,ae.TokenType.arrow)}}S.parseArrow=parseArrow;function parseParenItem(){if(le.isTypeScriptEnabled||le.isFlowEnabled){re.typedParseParenItem.call(void 0)}}function parseNew(){de.expect.call(void 0,ae.TokenType._new);if(ie.eat.call(void 0,ae.TokenType.dot)){parseIdentifier();return}parseNoCallExpr();ie.eat.call(void 0,ae.TokenType.questionDot);parseNewArguments()}function parseNewArguments(){if(le.isTypeScriptEnabled){ne.tsStartParseNewArguments.call(void 0)}else if(le.isFlowEnabled){ee.flowStartParseNewArguments.call(void 0)}if(ie.eat.call(void 0,ae.TokenType.parenL)){parseExprList(ae.TokenType.parenR)}}function parseTemplate(){ie.nextTemplateToken.call(void 0);ie.nextTemplateToken.call(void 0);while(!ie.match.call(void 0,ae.TokenType.backQuote)&&!le.state.error){de.expect.call(void 0,ae.TokenType.dollarBraceL);parseExpression();ie.nextTemplateToken.call(void 0);ie.nextTemplateToken.call(void 0)}ie.next.call(void 0)}S.parseTemplate=parseTemplate;function parseObj(b,S){const J=le.getNextContextId.call(void 0);let ee=true;ie.next.call(void 0);le.state.tokens[le.state.tokens.length-1].contextId=J;while(!ie.eat.call(void 0,ae.TokenType.braceR)&&!le.state.error){if(ee){ee=false}else{de.expect.call(void 0,ae.TokenType.comma);if(ie.eat.call(void 0,ae.TokenType.braceR)){break}}let te=false;if(ie.match.call(void 0,ae.TokenType.ellipsis)){const J=le.state.tokens.length;pe.parseSpread.call(void 0);if(b){if(le.state.tokens.length===J+2){pe.markPriorBindingIdentifier.call(void 0,S)}if(ie.eat.call(void 0,ae.TokenType.braceR)){break}}continue}if(!b){te=ie.eat.call(void 0,ae.TokenType.star)}if(!b&&de.isContextual.call(void 0,oe.ContextualKeyword._async)){if(te)de.unexpected.call(void 0);parseIdentifier();if(ie.match.call(void 0,ae.TokenType.colon)||ie.match.call(void 0,ae.TokenType.parenL)||ie.match.call(void 0,ae.TokenType.braceR)||ie.match.call(void 0,ae.TokenType.eq)||ie.match.call(void 0,ae.TokenType.comma)){}else{if(ie.match.call(void 0,ae.TokenType.star)){ie.next.call(void 0);te=true}parsePropertyName(J)}}else{parsePropertyName(J)}parseObjPropValue(b,S,J)}le.state.tokens[le.state.tokens.length-1].contextId=J}S.parseObj=parseObj;function isGetterOrSetterMethod(b){return!b&&(ie.match.call(void 0,ae.TokenType.string)||ie.match.call(void 0,ae.TokenType.num)||ie.match.call(void 0,ae.TokenType.bracketL)||ie.match.call(void 0,ae.TokenType.name)||!!(le.state.type&ae.TokenType.IS_KEYWORD))}function parseObjectMethod(b,S){const J=le.state.start;if(ie.match.call(void 0,ae.TokenType.parenL)){if(b)de.unexpected.call(void 0);parseMethod(J,false);return true}if(isGetterOrSetterMethod(b)){parsePropertyName(S);parseMethod(J,false);return true}return false}function parseObjectProperty(b,S){if(ie.eat.call(void 0,ae.TokenType.colon)){if(b){pe.parseMaybeDefault.call(void 0,S)}else{parseMaybeAssign(false)}return}let J;if(b){if(le.state.scopeDepth===0){J=ie.IdentifierRole.ObjectShorthandTopLevelDeclaration}else if(S){J=ie.IdentifierRole.ObjectShorthandBlockScopedDeclaration}else{J=ie.IdentifierRole.ObjectShorthandFunctionScopedDeclaration}}else{J=ie.IdentifierRole.ObjectShorthand}le.state.tokens[le.state.tokens.length-1].identifierRole=J;pe.parseMaybeDefault.call(void 0,S,true)}function parseObjPropValue(b,S,J){if(le.isTypeScriptEnabled){ne.tsStartParseObjPropValue.call(void 0)}else if(le.isFlowEnabled){ee.flowStartParseObjPropValue.call(void 0)}const te=parseObjectMethod(b,J);if(!te){parseObjectProperty(b,S)}}function parsePropertyName(b){if(le.isFlowEnabled){ee.flowParseVariance.call(void 0)}if(ie.eat.call(void 0,ae.TokenType.bracketL)){le.state.tokens[le.state.tokens.length-1].contextId=b;parseMaybeAssign();de.expect.call(void 0,ae.TokenType.bracketR);le.state.tokens[le.state.tokens.length-1].contextId=b}else{if(ie.match.call(void 0,ae.TokenType.num)||ie.match.call(void 0,ae.TokenType.string)||ie.match.call(void 0,ae.TokenType.bigint)||ie.match.call(void 0,ae.TokenType.decimal)){parseExprAtom()}else{parseMaybePrivateName()}le.state.tokens[le.state.tokens.length-1].identifierRole=ie.IdentifierRole.ObjectKey;le.state.tokens[le.state.tokens.length-1].contextId=b}}S.parsePropertyName=parsePropertyName;function parseMethod(b,S){const J=le.getNextContextId.call(void 0);le.state.scopeDepth++;const ee=le.state.tokens.length;const te=S;fe.parseFunctionParams.call(void 0,te,J);parseFunctionBodyAndFinish(b,J);const re=le.state.tokens.length;le.state.scopes.push(new(0,se.Scope)(ee,re,true));le.state.scopeDepth--}S.parseMethod=parseMethod;function parseArrowExpression(b){parseFunctionBody(true);const S=le.state.tokens.length;le.state.scopes.push(new(0,se.Scope)(b,S,true));le.state.scopeDepth--}S.parseArrowExpression=parseArrowExpression;function parseFunctionBodyAndFinish(b,S=0){if(le.isTypeScriptEnabled){ne.tsParseFunctionBodyAndFinish.call(void 0,b,S)}else if(le.isFlowEnabled){ee.flowParseFunctionBodyAndFinish.call(void 0,S)}else{parseFunctionBody(false,S)}}S.parseFunctionBodyAndFinish=parseFunctionBodyAndFinish;function parseFunctionBody(b,S=0){const J=b&&!ie.match.call(void 0,ae.TokenType.braceL);if(J){parseMaybeAssign()}else{fe.parseBlock.call(void 0,true,S)}}S.parseFunctionBody=parseFunctionBody;function parseExprList(b,S=false){let J=true;while(!ie.eat.call(void 0,b)&&!le.state.error){if(J){J=false}else{de.expect.call(void 0,ae.TokenType.comma);if(ie.eat.call(void 0,b))break}parseExprListItem(S)}}function parseExprListItem(b){if(b&&ie.match.call(void 0,ae.TokenType.comma)){}else if(ie.match.call(void 0,ae.TokenType.ellipsis)){pe.parseSpread.call(void 0);parseParenItem()}else if(ie.match.call(void 0,ae.TokenType.question)){ie.next.call(void 0)}else{parseMaybeAssign(false,true)}}function parseIdentifier(){ie.next.call(void 0);le.state.tokens[le.state.tokens.length-1].type=ae.TokenType.name}S.parseIdentifier=parseIdentifier;function parseAwait(){parseMaybeUnary()}function parseYield(){ie.next.call(void 0);if(!ie.match.call(void 0,ae.TokenType.semi)&&!de.canInsertSemicolon.call(void 0)){ie.eat.call(void 0,ae.TokenType.star);parseMaybeAssign()}}function parseModuleExpression(){de.expectContextual.call(void 0,oe.ContextualKeyword._module);de.expect.call(void 0,ae.TokenType.braceL);fe.parseBlockBody.call(void 0,ae.TokenType.braceR)}},29121:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(38824);var re=J(99064);var ne=J(85120);function parseFile(){if(re.state.pos===0&&re.input.charCodeAt(0)===te.charCodes.numberSign&&re.input.charCodeAt(1)===te.charCodes.exclamationMark){ee.skipLineComment.call(void 0,2)}ee.nextToken.call(void 0);return ne.parseTopLevel.call(void 0)}S.parseFile=parseFile},30911:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(34290);var te=J(71522);var re=J(92740);var ne=J(61346);var ie=J(58256);var oe=J(99064);var se=J(58273);var ae=J(8128);function parseSpread(){re.next.call(void 0);se.parseMaybeAssign.call(void 0,false)}S.parseSpread=parseSpread;function parseRest(b){re.next.call(void 0);parseBindingAtom(b)}S.parseRest=parseRest;function parseBindingIdentifier(b){se.parseIdentifier.call(void 0);markPriorBindingIdentifier(b)}S.parseBindingIdentifier=parseBindingIdentifier;function parseImportedIdentifier(){se.parseIdentifier.call(void 0);oe.state.tokens[oe.state.tokens.length-1].identifierRole=re.IdentifierRole.ImportDeclaration}S.parseImportedIdentifier=parseImportedIdentifier;function markPriorBindingIdentifier(b){let S;if(oe.state.scopeDepth===0){S=re.IdentifierRole.TopLevelDeclaration}else if(b){S=re.IdentifierRole.BlockScopedDeclaration}else{S=re.IdentifierRole.FunctionScopedDeclaration}oe.state.tokens[oe.state.tokens.length-1].identifierRole=S}S.markPriorBindingIdentifier=markPriorBindingIdentifier;function parseBindingAtom(b){switch(oe.state.type){case ie.TokenType._this:{const b=re.pushTypeContext.call(void 0,0);re.next.call(void 0);re.popTypeContext.call(void 0,b);return}case ie.TokenType._yield:case ie.TokenType.name:{oe.state.type=ie.TokenType.name;parseBindingIdentifier(b);return}case ie.TokenType.bracketL:{re.next.call(void 0);parseBindingList(ie.TokenType.bracketR,b,true);return}case ie.TokenType.braceL:se.parseObj.call(void 0,true,b);return;default:ae.unexpected.call(void 0)}}S.parseBindingAtom=parseBindingAtom;function parseBindingList(b,S,J=false,ee=false,te=0){let ne=true;let se=false;const ue=oe.state.tokens.length;while(!re.eat.call(void 0,b)&&!oe.state.error){if(ne){ne=false}else{ae.expect.call(void 0,ie.TokenType.comma);oe.state.tokens[oe.state.tokens.length-1].contextId=te;if(!se&&oe.state.tokens[ue].isType){oe.state.tokens[oe.state.tokens.length-1].isType=true;se=true}}if(J&&re.match.call(void 0,ie.TokenType.comma)){}else if(re.eat.call(void 0,b)){break}else if(re.match.call(void 0,ie.TokenType.ellipsis)){parseRest(S);parseAssignableListItemTypes();re.eat.call(void 0,ie.TokenType.comma);ae.expect.call(void 0,b);break}else{parseAssignableListItem(ee,S)}}}S.parseBindingList=parseBindingList;function parseAssignableListItem(b,S){if(b){te.tsParseModifiers.call(void 0,[ne.ContextualKeyword._public,ne.ContextualKeyword._protected,ne.ContextualKeyword._private,ne.ContextualKeyword._readonly,ne.ContextualKeyword._override])}parseMaybeDefault(S);parseAssignableListItemTypes();parseMaybeDefault(S,true)}function parseAssignableListItemTypes(){if(oe.isFlowEnabled){ee.flowParseAssignableListItemTypes.call(void 0)}else if(oe.isTypeScriptEnabled){te.tsParseAssignableListItemTypes.call(void 0)}}function parseMaybeDefault(b,S=false){if(!S){parseBindingAtom(b)}if(!re.eat.call(void 0,ie.TokenType.eq)){return}const J=oe.state.tokens.length-1;se.parseMaybeAssign.call(void 0);oe.state.tokens[J].rhsEndIndex=oe.state.tokens.length}S.parseMaybeDefault=parseMaybeDefault},85120:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(25430);var te=J(34290);var re=J(71522);var ne=J(92740);var ie=J(61346);var oe=J(94869);var se=J(58256);var ae=J(38824);var ue=J(99064);var ce=J(58273);var le=J(30911);var pe=J(8128);function parseTopLevel(){parseBlockBody(se.TokenType.eof);ue.state.scopes.push(new(0,oe.Scope)(0,ue.state.tokens.length,true));if(ue.state.scopeDepth!==0){throw new Error(`Invalid scope depth at end of file: ${ue.state.scopeDepth}`)}return new(0,ee.File)(ue.state.tokens,ue.state.scopes)}S.parseTopLevel=parseTopLevel;function parseStatement(b){if(ue.isFlowEnabled){if(te.flowTryParseStatement.call(void 0)){return}}if(ne.match.call(void 0,se.TokenType.at)){parseDecorators()}parseStatementContent(b)}S.parseStatement=parseStatement;function parseStatementContent(b){if(ue.isTypeScriptEnabled){if(re.tsTryParseStatementContent.call(void 0)){return}}const S=ue.state.type;switch(S){case se.TokenType._break:case se.TokenType._continue:parseBreakContinueStatement();return;case se.TokenType._debugger:parseDebuggerStatement();return;case se.TokenType._do:parseDoStatement();return;case se.TokenType._for:parseForStatement();return;case se.TokenType._function:if(ne.lookaheadType.call(void 0)===se.TokenType.dot)break;if(!b)pe.unexpected.call(void 0);parseFunctionStatement();return;case se.TokenType._class:if(!b)pe.unexpected.call(void 0);parseClass(true);return;case se.TokenType._if:parseIfStatement();return;case se.TokenType._return:parseReturnStatement();return;case se.TokenType._switch:parseSwitchStatement();return;case se.TokenType._throw:parseThrowStatement();return;case se.TokenType._try:parseTryStatement();return;case se.TokenType._let:case se.TokenType._const:if(!b)pe.unexpected.call(void 0);case se.TokenType._var:parseVarStatement(S);return;case se.TokenType._while:parseWhileStatement();return;case se.TokenType.braceL:parseBlock();return;case se.TokenType.semi:parseEmptyStatement();return;case se.TokenType._export:case se.TokenType._import:{const b=ne.lookaheadType.call(void 0);if(b===se.TokenType.parenL||b===se.TokenType.dot){break}ne.next.call(void 0);if(S===se.TokenType._import){parseImport()}else{parseExport()}return}case se.TokenType.name:if(ue.state.contextualKeyword===ie.ContextualKeyword._async){const b=ue.state.start;const S=ue.state.snapshot();ne.next.call(void 0);if(ne.match.call(void 0,se.TokenType._function)&&!pe.canInsertSemicolon.call(void 0)){pe.expect.call(void 0,se.TokenType._function);parseFunction(b,true);return}else{ue.state.restoreFromSnapshot(S)}}default:break}const J=ue.state.tokens.length;ce.parseExpression.call(void 0);let ee=null;if(ue.state.tokens.length===J+1){const b=ue.state.tokens[ue.state.tokens.length-1];if(b.type===se.TokenType.name){ee=b.contextualKeyword}}if(ee==null){pe.semicolon.call(void 0);return}if(ne.eat.call(void 0,se.TokenType.colon)){parseLabeledStatement()}else{parseIdentifierStatement(ee)}}function parseDecorators(){while(ne.match.call(void 0,se.TokenType.at)){parseDecorator()}}S.parseDecorators=parseDecorators;function parseDecorator(){ne.next.call(void 0);if(ne.eat.call(void 0,se.TokenType.parenL)){ce.parseExpression.call(void 0);pe.expect.call(void 0,se.TokenType.parenR)}else{ce.parseIdentifier.call(void 0);while(ne.eat.call(void 0,se.TokenType.dot)){ce.parseIdentifier.call(void 0)}}parseMaybeDecoratorArguments()}function parseMaybeDecoratorArguments(){if(ue.isTypeScriptEnabled){re.tsParseMaybeDecoratorArguments.call(void 0)}else{baseParseMaybeDecoratorArguments()}}function baseParseMaybeDecoratorArguments(){if(ne.eat.call(void 0,se.TokenType.parenL)){ce.parseCallExpressionArguments.call(void 0)}}S.baseParseMaybeDecoratorArguments=baseParseMaybeDecoratorArguments;function parseBreakContinueStatement(){ne.next.call(void 0);if(!pe.isLineTerminator.call(void 0)){ce.parseIdentifier.call(void 0);pe.semicolon.call(void 0)}}function parseDebuggerStatement(){ne.next.call(void 0);pe.semicolon.call(void 0)}function parseDoStatement(){ne.next.call(void 0);parseStatement(false);pe.expect.call(void 0,se.TokenType._while);ce.parseParenExpression.call(void 0);ne.eat.call(void 0,se.TokenType.semi)}function parseForStatement(){ue.state.scopeDepth++;const b=ue.state.tokens.length;parseAmbiguousForStatement();const S=ue.state.tokens.length;ue.state.scopes.push(new(0,oe.Scope)(b,S,false));ue.state.scopeDepth--}function parseAmbiguousForStatement(){ne.next.call(void 0);let b=false;if(pe.isContextual.call(void 0,ie.ContextualKeyword._await)){b=true;ne.next.call(void 0)}pe.expect.call(void 0,se.TokenType.parenL);if(ne.match.call(void 0,se.TokenType.semi)){if(b){pe.unexpected.call(void 0)}parseFor();return}if(ne.match.call(void 0,se.TokenType._var)||ne.match.call(void 0,se.TokenType._let)||ne.match.call(void 0,se.TokenType._const)){const S=ue.state.type;ne.next.call(void 0);parseVar(true,S);if(ne.match.call(void 0,se.TokenType._in)||pe.isContextual.call(void 0,ie.ContextualKeyword._of)){parseForIn(b);return}parseFor();return}ce.parseExpression.call(void 0,true);if(ne.match.call(void 0,se.TokenType._in)||pe.isContextual.call(void 0,ie.ContextualKeyword._of)){parseForIn(b);return}if(b){pe.unexpected.call(void 0)}parseFor()}function parseFunctionStatement(){const b=ue.state.start;ne.next.call(void 0);parseFunction(b,true)}function parseIfStatement(){ne.next.call(void 0);ce.parseParenExpression.call(void 0);parseStatement(false);if(ne.eat.call(void 0,se.TokenType._else)){parseStatement(false)}}function parseReturnStatement(){ne.next.call(void 0);if(!pe.isLineTerminator.call(void 0)){ce.parseExpression.call(void 0);pe.semicolon.call(void 0)}}function parseSwitchStatement(){ne.next.call(void 0);ce.parseParenExpression.call(void 0);ue.state.scopeDepth++;const b=ue.state.tokens.length;pe.expect.call(void 0,se.TokenType.braceL);while(!ne.match.call(void 0,se.TokenType.braceR)&&!ue.state.error){if(ne.match.call(void 0,se.TokenType._case)||ne.match.call(void 0,se.TokenType._default)){const b=ne.match.call(void 0,se.TokenType._case);ne.next.call(void 0);if(b){ce.parseExpression.call(void 0)}pe.expect.call(void 0,se.TokenType.colon)}else{parseStatement(true)}}ne.next.call(void 0);const S=ue.state.tokens.length;ue.state.scopes.push(new(0,oe.Scope)(b,S,false));ue.state.scopeDepth--}function parseThrowStatement(){ne.next.call(void 0);ce.parseExpression.call(void 0);pe.semicolon.call(void 0)}function parseCatchClauseParam(){le.parseBindingAtom.call(void 0,true);if(ue.isTypeScriptEnabled){re.tsTryParseTypeAnnotation.call(void 0)}}function parseTryStatement(){ne.next.call(void 0);parseBlock();if(ne.match.call(void 0,se.TokenType._catch)){ne.next.call(void 0);let b=null;if(ne.match.call(void 0,se.TokenType.parenL)){ue.state.scopeDepth++;b=ue.state.tokens.length;pe.expect.call(void 0,se.TokenType.parenL);parseCatchClauseParam();pe.expect.call(void 0,se.TokenType.parenR)}parseBlock();if(b!=null){const S=ue.state.tokens.length;ue.state.scopes.push(new(0,oe.Scope)(b,S,false));ue.state.scopeDepth--}}if(ne.eat.call(void 0,se.TokenType._finally)){parseBlock()}}function parseVarStatement(b){ne.next.call(void 0);parseVar(false,b);pe.semicolon.call(void 0)}S.parseVarStatement=parseVarStatement;function parseWhileStatement(){ne.next.call(void 0);ce.parseParenExpression.call(void 0);parseStatement(false)}function parseEmptyStatement(){ne.next.call(void 0)}function parseLabeledStatement(){parseStatement(true)}function parseIdentifierStatement(b){if(ue.isTypeScriptEnabled){re.tsParseIdentifierStatement.call(void 0,b)}else if(ue.isFlowEnabled){te.flowParseIdentifierStatement.call(void 0,b)}else{pe.semicolon.call(void 0)}}function parseBlock(b=false,S=0){const J=ue.state.tokens.length;ue.state.scopeDepth++;pe.expect.call(void 0,se.TokenType.braceL);if(S){ue.state.tokens[ue.state.tokens.length-1].contextId=S}parseBlockBody(se.TokenType.braceR);if(S){ue.state.tokens[ue.state.tokens.length-1].contextId=S}const ee=ue.state.tokens.length;ue.state.scopes.push(new(0,oe.Scope)(J,ee,b));ue.state.scopeDepth--}S.parseBlock=parseBlock;function parseBlockBody(b){while(!ne.eat.call(void 0,b)&&!ue.state.error){parseStatement(true)}}S.parseBlockBody=parseBlockBody;function parseFor(){pe.expect.call(void 0,se.TokenType.semi);if(!ne.match.call(void 0,se.TokenType.semi)){ce.parseExpression.call(void 0)}pe.expect.call(void 0,se.TokenType.semi);if(!ne.match.call(void 0,se.TokenType.parenR)){ce.parseExpression.call(void 0)}pe.expect.call(void 0,se.TokenType.parenR);parseStatement(false)}function parseForIn(b){if(b){pe.eatContextual.call(void 0,ie.ContextualKeyword._of)}else{ne.next.call(void 0)}ce.parseExpression.call(void 0);pe.expect.call(void 0,se.TokenType.parenR);parseStatement(false)}function parseVar(b,S){while(true){const J=S===se.TokenType._const||S===se.TokenType._let;parseVarHead(J);if(ne.eat.call(void 0,se.TokenType.eq)){const S=ue.state.tokens.length-1;ce.parseMaybeAssign.call(void 0,b);ue.state.tokens[S].rhsEndIndex=ue.state.tokens.length}if(!ne.eat.call(void 0,se.TokenType.comma)){break}}}function parseVarHead(b){le.parseBindingAtom.call(void 0,b);if(ue.isTypeScriptEnabled){re.tsAfterParseVarHead.call(void 0)}else if(ue.isFlowEnabled){te.flowAfterParseVarHead.call(void 0)}}function parseFunction(b,S,J=false){if(ne.match.call(void 0,se.TokenType.star)){ne.next.call(void 0)}if(S&&!J&&!ne.match.call(void 0,se.TokenType.name)&&!ne.match.call(void 0,se.TokenType._yield)){pe.unexpected.call(void 0)}let ee=null;if(ne.match.call(void 0,se.TokenType.name)){if(!S){ee=ue.state.tokens.length;ue.state.scopeDepth++}le.parseBindingIdentifier.call(void 0,false)}const te=ue.state.tokens.length;ue.state.scopeDepth++;parseFunctionParams();ce.parseFunctionBodyAndFinish.call(void 0,b);const re=ue.state.tokens.length;ue.state.scopes.push(new(0,oe.Scope)(te,re,true));ue.state.scopeDepth--;if(ee!==null){ue.state.scopes.push(new(0,oe.Scope)(ee,re,true));ue.state.scopeDepth--}}S.parseFunction=parseFunction;function parseFunctionParams(b=false,S=0){if(ue.isTypeScriptEnabled){re.tsStartParseFunctionParams.call(void 0)}else if(ue.isFlowEnabled){te.flowStartParseFunctionParams.call(void 0)}pe.expect.call(void 0,se.TokenType.parenL);if(S){ue.state.tokens[ue.state.tokens.length-1].contextId=S}le.parseBindingList.call(void 0,se.TokenType.parenR,false,false,b,S);if(S){ue.state.tokens[ue.state.tokens.length-1].contextId=S}}S.parseFunctionParams=parseFunctionParams;function parseClass(b,S=false){const J=ue.getNextContextId.call(void 0);ne.next.call(void 0);ue.state.tokens[ue.state.tokens.length-1].contextId=J;ue.state.tokens[ue.state.tokens.length-1].isExpression=!b;let ee=null;if(!b){ee=ue.state.tokens.length;ue.state.scopeDepth++}parseClassId(b,S);parseClassSuper();const te=ue.state.tokens.length;parseClassBody(J);if(ue.state.error){return}ue.state.tokens[te].contextId=J;ue.state.tokens[ue.state.tokens.length-1].contextId=J;if(ee!==null){const b=ue.state.tokens.length;ue.state.scopes.push(new(0,oe.Scope)(ee,b,false));ue.state.scopeDepth--}}S.parseClass=parseClass;function isClassProperty(){return ne.match.call(void 0,se.TokenType.eq)||ne.match.call(void 0,se.TokenType.semi)||ne.match.call(void 0,se.TokenType.braceR)||ne.match.call(void 0,se.TokenType.bang)||ne.match.call(void 0,se.TokenType.colon)}function isClassMethod(){return ne.match.call(void 0,se.TokenType.parenL)||ne.match.call(void 0,se.TokenType.lessThan)}function parseClassBody(b){pe.expect.call(void 0,se.TokenType.braceL);while(!ne.eat.call(void 0,se.TokenType.braceR)&&!ue.state.error){if(ne.eat.call(void 0,se.TokenType.semi)){continue}if(ne.match.call(void 0,se.TokenType.at)){parseDecorator();continue}const S=ue.state.start;parseClassMember(S,b)}}function parseClassMember(b,S){if(ue.isTypeScriptEnabled){re.tsParseModifiers.call(void 0,[ie.ContextualKeyword._declare,ie.ContextualKeyword._public,ie.ContextualKeyword._protected,ie.ContextualKeyword._private,ie.ContextualKeyword._override])}let J=false;if(ne.match.call(void 0,se.TokenType.name)&&ue.state.contextualKeyword===ie.ContextualKeyword._static){ce.parseIdentifier.call(void 0);if(isClassMethod()){parseClassMethod(b,false);return}else if(isClassProperty()){parseClassProperty();return}ue.state.tokens[ue.state.tokens.length-1].type=se.TokenType._static;J=true;if(ne.match.call(void 0,se.TokenType.braceL)){ue.state.tokens[ue.state.tokens.length-1].contextId=S;parseBlock();return}}parseClassMemberWithIsStatic(b,J,S)}function parseClassMemberWithIsStatic(b,S,J){if(ue.isTypeScriptEnabled){if(re.tsTryParseClassMemberWithIsStatic.call(void 0,S)){return}}if(ne.eat.call(void 0,se.TokenType.star)){parseClassPropertyName(J);parseClassMethod(b,false);return}parseClassPropertyName(J);let ee=false;const te=ue.state.tokens[ue.state.tokens.length-1];if(te.contextualKeyword===ie.ContextualKeyword._constructor){ee=true}parsePostMemberNameModifiers();if(isClassMethod()){parseClassMethod(b,ee)}else if(isClassProperty()){parseClassProperty()}else if(te.contextualKeyword===ie.ContextualKeyword._async&&!pe.isLineTerminator.call(void 0)){ue.state.tokens[ue.state.tokens.length-1].type=se.TokenType._async;const S=ne.match.call(void 0,se.TokenType.star);if(S){ne.next.call(void 0)}parseClassPropertyName(J);parsePostMemberNameModifiers();parseClassMethod(b,false)}else if((te.contextualKeyword===ie.ContextualKeyword._get||te.contextualKeyword===ie.ContextualKeyword._set)&&!(pe.isLineTerminator.call(void 0)&&ne.match.call(void 0,se.TokenType.star))){if(te.contextualKeyword===ie.ContextualKeyword._get){ue.state.tokens[ue.state.tokens.length-1].type=se.TokenType._get}else{ue.state.tokens[ue.state.tokens.length-1].type=se.TokenType._set}parseClassPropertyName(J);parseClassMethod(b,false)}else if(pe.isLineTerminator.call(void 0)){parseClassProperty()}else{pe.unexpected.call(void 0)}}function parseClassMethod(b,S){if(ue.isTypeScriptEnabled){re.tsTryParseTypeParameters.call(void 0)}else if(ue.isFlowEnabled){if(ne.match.call(void 0,se.TokenType.lessThan)){te.flowParseTypeParameterDeclaration.call(void 0)}}ce.parseMethod.call(void 0,b,S)}function parseClassPropertyName(b){ce.parsePropertyName.call(void 0,b)}S.parseClassPropertyName=parseClassPropertyName;function parsePostMemberNameModifiers(){if(ue.isTypeScriptEnabled){const b=ne.pushTypeContext.call(void 0,0);ne.eat.call(void 0,se.TokenType.question);ne.popTypeContext.call(void 0,b)}}S.parsePostMemberNameModifiers=parsePostMemberNameModifiers;function parseClassProperty(){if(ue.isTypeScriptEnabled){ne.eat.call(void 0,se.TokenType.bang);re.tsTryParseTypeAnnotation.call(void 0)}else if(ue.isFlowEnabled){if(ne.match.call(void 0,se.TokenType.colon)){te.flowParseTypeAnnotation.call(void 0)}}if(ne.match.call(void 0,se.TokenType.eq)){const b=ue.state.tokens.length;ne.next.call(void 0);ce.parseMaybeAssign.call(void 0);ue.state.tokens[b].rhsEndIndex=ue.state.tokens.length}pe.semicolon.call(void 0)}S.parseClassProperty=parseClassProperty;function parseClassId(b,S=false){if(ue.isTypeScriptEnabled&&(!b||S)&&pe.isContextual.call(void 0,ie.ContextualKeyword._implements)){return}if(ne.match.call(void 0,se.TokenType.name)){le.parseBindingIdentifier.call(void 0,true)}if(ue.isTypeScriptEnabled){re.tsTryParseTypeParameters.call(void 0)}else if(ue.isFlowEnabled){if(ne.match.call(void 0,se.TokenType.lessThan)){te.flowParseTypeParameterDeclaration.call(void 0)}}}function parseClassSuper(){let b=false;if(ne.eat.call(void 0,se.TokenType._extends)){ce.parseExprSubscripts.call(void 0);b=true}else{b=false}if(ue.isTypeScriptEnabled){re.tsAfterParseClassSuper.call(void 0,b)}else if(ue.isFlowEnabled){te.flowAfterParseClassSuper.call(void 0,b)}}function parseExport(){const b=ue.state.tokens.length-1;if(ue.isTypeScriptEnabled){if(re.tsTryParseExport.call(void 0)){return}}if(shouldParseExportStar()){parseExportStar()}else if(isExportDefaultSpecifier()){ce.parseIdentifier.call(void 0);if(ne.match.call(void 0,se.TokenType.comma)&&ne.lookaheadType.call(void 0)===se.TokenType.star){pe.expect.call(void 0,se.TokenType.comma);pe.expect.call(void 0,se.TokenType.star);pe.expectContextual.call(void 0,ie.ContextualKeyword._as);ce.parseIdentifier.call(void 0)}else{parseExportSpecifiersMaybe()}parseExportFrom()}else if(ne.eat.call(void 0,se.TokenType._default)){parseExportDefaultExpression()}else if(shouldParseExportDeclaration()){parseExportDeclaration()}else{parseExportSpecifiers();parseExportFrom()}ue.state.tokens[b].rhsEndIndex=ue.state.tokens.length}S.parseExport=parseExport;function parseExportDefaultExpression(){if(ue.isTypeScriptEnabled){if(re.tsTryParseExportDefaultExpression.call(void 0)){return}}const b=ue.state.start;if(ne.eat.call(void 0,se.TokenType._function)){parseFunction(b,true,true)}else if(pe.isContextual.call(void 0,ie.ContextualKeyword._async)&&ne.lookaheadType.call(void 0)===se.TokenType._function){pe.eatContextual.call(void 0,ie.ContextualKeyword._async);ne.eat.call(void 0,se.TokenType._function);parseFunction(b,true,true)}else if(ne.match.call(void 0,se.TokenType._class)){parseClass(true,true)}else if(ne.match.call(void 0,se.TokenType.at)){parseDecorators();parseClass(true,true)}else{ce.parseMaybeAssign.call(void 0);pe.semicolon.call(void 0)}}function parseExportDeclaration(){if(ue.isTypeScriptEnabled){re.tsParseExportDeclaration.call(void 0)}else if(ue.isFlowEnabled){te.flowParseExportDeclaration.call(void 0)}else{parseStatement(true)}}function isExportDefaultSpecifier(){if(ue.isTypeScriptEnabled&&re.tsIsDeclarationStart.call(void 0)){return false}else if(ue.isFlowEnabled&&te.flowShouldDisallowExportDefaultSpecifier.call(void 0)){return false}if(ne.match.call(void 0,se.TokenType.name)){return ue.state.contextualKeyword!==ie.ContextualKeyword._async}if(!ne.match.call(void 0,se.TokenType._default)){return false}const b=ne.nextTokenStart.call(void 0);const S=ne.lookaheadTypeAndKeyword.call(void 0);const J=S.type===se.TokenType.name&&S.contextualKeyword===ie.ContextualKeyword._from;if(S.type===se.TokenType.comma){return true}if(J){const S=ue.input.charCodeAt(ne.nextTokenStartSince.call(void 0,b+4));return S===ae.charCodes.quotationMark||S===ae.charCodes.apostrophe}return false}function parseExportSpecifiersMaybe(){if(ne.eat.call(void 0,se.TokenType.comma)){parseExportSpecifiers()}}function parseExportFrom(){if(pe.eatContextual.call(void 0,ie.ContextualKeyword._from)){ce.parseExprAtom.call(void 0)}pe.semicolon.call(void 0)}S.parseExportFrom=parseExportFrom;function shouldParseExportStar(){if(ue.isFlowEnabled){return te.flowShouldParseExportStar.call(void 0)}else{return ne.match.call(void 0,se.TokenType.star)}}function parseExportStar(){if(ue.isFlowEnabled){te.flowParseExportStar.call(void 0)}else{baseParseExportStar()}}function baseParseExportStar(){pe.expect.call(void 0,se.TokenType.star);if(pe.isContextual.call(void 0,ie.ContextualKeyword._as)){parseExportNamespace()}else{parseExportFrom()}}S.baseParseExportStar=baseParseExportStar;function parseExportNamespace(){ne.next.call(void 0);ue.state.tokens[ue.state.tokens.length-1].type=se.TokenType._as;ce.parseIdentifier.call(void 0);parseExportSpecifiersMaybe();parseExportFrom()}function shouldParseExportDeclaration(){return ue.isTypeScriptEnabled&&re.tsIsDeclarationStart.call(void 0)||ue.isFlowEnabled&&te.flowShouldParseExportDeclaration.call(void 0)||ue.state.type===se.TokenType._var||ue.state.type===se.TokenType._const||ue.state.type===se.TokenType._let||ue.state.type===se.TokenType._function||ue.state.type===se.TokenType._class||pe.isContextual.call(void 0,ie.ContextualKeyword._async)||ne.match.call(void 0,se.TokenType.at)}function parseExportSpecifiers(){let b=true;pe.expect.call(void 0,se.TokenType.braceL);while(!ne.eat.call(void 0,se.TokenType.braceR)&&!ue.state.error){if(b){b=false}else{pe.expect.call(void 0,se.TokenType.comma);if(ne.eat.call(void 0,se.TokenType.braceR)){break}}ce.parseIdentifier.call(void 0);ue.state.tokens[ue.state.tokens.length-1].identifierRole=ne.IdentifierRole.ExportAccess;if(pe.eatContextual.call(void 0,ie.ContextualKeyword._as)){ce.parseIdentifier.call(void 0)}}}S.parseExportSpecifiers=parseExportSpecifiers;function parseImport(){if(ue.isTypeScriptEnabled&&ne.match.call(void 0,se.TokenType.name)&&ne.lookaheadType.call(void 0)===se.TokenType.eq){re.tsParseImportEqualsDeclaration.call(void 0);return}if(ue.isTypeScriptEnabled&&pe.isContextual.call(void 0,ie.ContextualKeyword._type)){const b=ne.lookaheadType.call(void 0);if(b===se.TokenType.name){pe.expectContextual.call(void 0,ie.ContextualKeyword._type);if(ne.lookaheadType.call(void 0)===se.TokenType.eq){re.tsParseImportEqualsDeclaration.call(void 0);return}}else if(b===se.TokenType.star||b===se.TokenType.braceL){pe.expectContextual.call(void 0,ie.ContextualKeyword._type)}}if(ne.match.call(void 0,se.TokenType.string)){ce.parseExprAtom.call(void 0)}else{parseImportSpecifiers();pe.expectContextual.call(void 0,ie.ContextualKeyword._from);ce.parseExprAtom.call(void 0)}pe.semicolon.call(void 0)}S.parseImport=parseImport;function shouldParseDefaultImport(){return ne.match.call(void 0,se.TokenType.name)}function parseImportSpecifierLocal(){le.parseImportedIdentifier.call(void 0)}function parseImportSpecifiers(){if(ue.isFlowEnabled){te.flowStartParseImportSpecifiers.call(void 0)}let b=true;if(shouldParseDefaultImport()){parseImportSpecifierLocal();if(!ne.eat.call(void 0,se.TokenType.comma))return}if(ne.match.call(void 0,se.TokenType.star)){ne.next.call(void 0);pe.expectContextual.call(void 0,ie.ContextualKeyword._as);parseImportSpecifierLocal();return}pe.expect.call(void 0,se.TokenType.braceL);while(!ne.eat.call(void 0,se.TokenType.braceR)&&!ue.state.error){if(b){b=false}else{if(ne.eat.call(void 0,se.TokenType.colon)){pe.unexpected.call(void 0,"ES2015 named imports do not destructure. Use another statement for destructuring after the import.")}pe.expect.call(void 0,se.TokenType.comma);if(ne.eat.call(void 0,se.TokenType.braceR)){break}}parseImportSpecifier()}}function parseImportSpecifier(){if(ue.isFlowEnabled){te.flowParseImportSpecifier.call(void 0);return}le.parseImportedIdentifier.call(void 0);if(pe.isContextual.call(void 0,ie.ContextualKeyword._as)){ue.state.tokens[ue.state.tokens.length-1].identifierRole=ne.IdentifierRole.ImportAccess;ne.next.call(void 0);le.parseImportedIdentifier.call(void 0)}}},8128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(58256);var re=J(38824);var ne=J(99064);function isContextual(b){return ne.state.contextualKeyword===b}S.isContextual=isContextual;function isLookaheadContextual(b){const S=ee.lookaheadTypeAndKeyword.call(void 0);return S.type===te.TokenType.name&&S.contextualKeyword===b}S.isLookaheadContextual=isLookaheadContextual;function eatContextual(b){return ne.state.contextualKeyword===b&&ee.eat.call(void 0,te.TokenType.name)}S.eatContextual=eatContextual;function expectContextual(b){if(!eatContextual(b)){unexpected()}}S.expectContextual=expectContextual;function canInsertSemicolon(){return ee.match.call(void 0,te.TokenType.eof)||ee.match.call(void 0,te.TokenType.braceR)||hasPrecedingLineBreak()}S.canInsertSemicolon=canInsertSemicolon;function hasPrecedingLineBreak(){const b=ne.state.tokens[ne.state.tokens.length-1];const S=b?b.end:0;for(let b=S;b<ne.state.start;b++){const S=ne.input.charCodeAt(b);if(S===re.charCodes.lineFeed||S===re.charCodes.carriageReturn||S===8232||S===8233){return true}}return false}S.hasPrecedingLineBreak=hasPrecedingLineBreak;function hasFollowingLineBreak(){const b=ee.nextTokenStart.call(void 0);for(let S=ne.state.end;S<b;S++){const b=ne.input.charCodeAt(S);if(b===re.charCodes.lineFeed||b===re.charCodes.carriageReturn||b===8232||b===8233){return true}}return false}S.hasFollowingLineBreak=hasFollowingLineBreak;function isLineTerminator(){return ee.eat.call(void 0,te.TokenType.semi)||canInsertSemicolon()}S.isLineTerminator=isLineTerminator;function semicolon(){if(!isLineTerminator()){unexpected('Unexpected token, expected ";"')}}S.semicolon=semicolon;function expect(b){const S=ee.eat.call(void 0,b);if(!S){unexpected(`Unexpected token, expected "${te.formatTokenType.call(void 0,b)}"`)}}S.expect=expect;function unexpected(b="Unexpected token",S=ne.state.start){if(ne.state.error){return}const J=new SyntaxError(b);J.pos=S;ne.state.error=J;ne.state.pos=ne.input.length;ee.finishToken.call(void 0,te.TokenType.eof)}S.unexpected=unexpected},38824:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var J;(function(b){const S=8;b[b["backSpace"]=S]="backSpace";const J=10;b[b["lineFeed"]=J]="lineFeed";const ee=13;b[b["carriageReturn"]=ee]="carriageReturn";const te=14;b[b["shiftOut"]=te]="shiftOut";const re=32;b[b["space"]=re]="space";const ne=33;b[b["exclamationMark"]=ne]="exclamationMark";const ie=34;b[b["quotationMark"]=ie]="quotationMark";const oe=35;b[b["numberSign"]=oe]="numberSign";const se=36;b[b["dollarSign"]=se]="dollarSign";const ae=37;b[b["percentSign"]=ae]="percentSign";const ue=38;b[b["ampersand"]=ue]="ampersand";const ce=39;b[b["apostrophe"]=ce]="apostrophe";const le=40;b[b["leftParenthesis"]=le]="leftParenthesis";const pe=41;b[b["rightParenthesis"]=pe]="rightParenthesis";const fe=42;b[b["asterisk"]=fe]="asterisk";const de=43;b[b["plusSign"]=de]="plusSign";const he=44;b[b["comma"]=he]="comma";const me=45;b[b["dash"]=me]="dash";const ge=46;b[b["dot"]=ge]="dot";const ye=47;b[b["slash"]=ye]="slash";const ve=48;b[b["digit0"]=ve]="digit0";const Te=49;b[b["digit1"]=Te]="digit1";const be=50;b[b["digit2"]=be]="digit2";const Ee=51;b[b["digit3"]=Ee]="digit3";const Ae=52;b[b["digit4"]=Ae]="digit4";const we=53;b[b["digit5"]=we]="digit5";const _e=54;b[b["digit6"]=_e]="digit6";const xe=55;b[b["digit7"]=xe]="digit7";const Pe=56;b[b["digit8"]=Pe]="digit8";const Ce=57;b[b["digit9"]=Ce]="digit9";const ke=58;b[b["colon"]=ke]="colon";const Se=59;b[b["semicolon"]=Se]="semicolon";const De=60;b[b["lessThan"]=De]="lessThan";const Ie=61;b[b["equalsTo"]=Ie]="equalsTo";const Oe=62;b[b["greaterThan"]=Oe]="greaterThan";const Re=63;b[b["questionMark"]=Re]="questionMark";const Ne=64;b[b["atSign"]=Ne]="atSign";const Me=65;b[b["uppercaseA"]=Me]="uppercaseA";const Fe=66;b[b["uppercaseB"]=Fe]="uppercaseB";const Le=67;b[b["uppercaseC"]=Le]="uppercaseC";const je=68;b[b["uppercaseD"]=je]="uppercaseD";const Be=69;b[b["uppercaseE"]=Be]="uppercaseE";const $e=70;b[b["uppercaseF"]=$e]="uppercaseF";const Ue=71;b[b["uppercaseG"]=Ue]="uppercaseG";const Xe=72;b[b["uppercaseH"]=Xe]="uppercaseH";const Ge=73;b[b["uppercaseI"]=Ge]="uppercaseI";const Ve=74;b[b["uppercaseJ"]=Ve]="uppercaseJ";const We=75;b[b["uppercaseK"]=We]="uppercaseK";const qe=76;b[b["uppercaseL"]=qe]="uppercaseL";const He=77;b[b["uppercaseM"]=He]="uppercaseM";const Ke=78;b[b["uppercaseN"]=Ke]="uppercaseN";const Ye=79;b[b["uppercaseO"]=Ye]="uppercaseO";const ze=80;b[b["uppercaseP"]=ze]="uppercaseP";const Je=81;b[b["uppercaseQ"]=Je]="uppercaseQ";const Qe=82;b[b["uppercaseR"]=Qe]="uppercaseR";const Ze=83;b[b["uppercaseS"]=Ze]="uppercaseS";const et=84;b[b["uppercaseT"]=et]="uppercaseT";const rt=85;b[b["uppercaseU"]=rt]="uppercaseU";const nt=86;b[b["uppercaseV"]=nt]="uppercaseV";const it=87;b[b["uppercaseW"]=it]="uppercaseW";const ot=88;b[b["uppercaseX"]=ot]="uppercaseX";const st=89;b[b["uppercaseY"]=st]="uppercaseY";const at=90;b[b["uppercaseZ"]=at]="uppercaseZ";const ut=91;b[b["leftSquareBracket"]=ut]="leftSquareBracket";const ct=92;b[b["backslash"]=ct]="backslash";const pt=93;b[b["rightSquareBracket"]=pt]="rightSquareBracket";const ft=94;b[b["caret"]=ft]="caret";const dt=95;b[b["underscore"]=dt]="underscore";const ht=96;b[b["graveAccent"]=ht]="graveAccent";const mt=97;b[b["lowercaseA"]=mt]="lowercaseA";const yt=98;b[b["lowercaseB"]=yt]="lowercaseB";const vt=99;b[b["lowercaseC"]=vt]="lowercaseC";const Tt=100;b[b["lowercaseD"]=Tt]="lowercaseD";const bt=101;b[b["lowercaseE"]=bt]="lowercaseE";const Et=102;b[b["lowercaseF"]=Et]="lowercaseF";const At=103;b[b["lowercaseG"]=At]="lowercaseG";const wt=104;b[b["lowercaseH"]=wt]="lowercaseH";const _t=105;b[b["lowercaseI"]=_t]="lowercaseI";const xt=106;b[b["lowercaseJ"]=xt]="lowercaseJ";const Pt=107;b[b["lowercaseK"]=Pt]="lowercaseK";const Ct=108;b[b["lowercaseL"]=Ct]="lowercaseL";const kt=109;b[b["lowercaseM"]=kt]="lowercaseM";const St=110;b[b["lowercaseN"]=St]="lowercaseN";const Dt=111;b[b["lowercaseO"]=Dt]="lowercaseO";const It=112;b[b["lowercaseP"]=It]="lowercaseP";const Ot=113;b[b["lowercaseQ"]=Ot]="lowercaseQ";const Rt=114;b[b["lowercaseR"]=Rt]="lowercaseR";const Nt=115;b[b["lowercaseS"]=Nt]="lowercaseS";const Mt=116;b[b["lowercaseT"]=Mt]="lowercaseT";const Ft=117;b[b["lowercaseU"]=Ft]="lowercaseU";const Lt=118;b[b["lowercaseV"]=Lt]="lowercaseV";const jt=119;b[b["lowercaseW"]=jt]="lowercaseW";const Bt=120;b[b["lowercaseX"]=Bt]="lowercaseX";const $t=121;b[b["lowercaseY"]=$t]="lowercaseY";const Ut=122;b[b["lowercaseZ"]=Ut]="lowercaseZ";const Xt=123;b[b["leftCurlyBrace"]=Xt]="leftCurlyBrace";const Gt=124;b[b["verticalBar"]=Gt]="verticalBar";const Vt=125;b[b["rightCurlyBrace"]=Vt]="rightCurlyBrace";const Wt=126;b[b["tilde"]=Wt]="tilde";const qt=160;b[b["nonBreakingSpace"]=qt]="nonBreakingSpace";const Ht=5760;b[b["oghamSpaceMark"]=Ht]="oghamSpaceMark";const Kt=8232;b[b["lineSeparator"]=Kt]="lineSeparator";const Yt=8233;b[b["paragraphSeparator"]=Yt]="paragraphSeparator"})(J||(S.charCodes=J={}));function isDigit(b){return b>=J.digit0&&b<=J.digit9||b>=J.lowercaseA&&b<=J.lowercaseF||b>=J.uppercaseA&&b<=J.uppercaseF}S.isDigit=isDigit},91795:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(38824);var te=J(5721);function computeIsIdentifierChar(b){if(b<48)return b===36;if(b<58)return true;if(b<65)return false;if(b<91)return true;if(b<97)return b===95;if(b<123)return true;if(b<128)return false;throw new Error("Should not be called with non-ASCII char code.")}const re=new Uint8Array(65536);S.IS_IDENTIFIER_CHAR=re;for(let b=0;b<128;b++){S.IS_IDENTIFIER_CHAR[b]=computeIsIdentifierChar(b)?1:0}for(let b=128;b<65536;b++){S.IS_IDENTIFIER_CHAR[b]=1}for(const b of te.WHITESPACE_CHARS){S.IS_IDENTIFIER_CHAR[b]=0}S.IS_IDENTIFIER_CHAR[8232]=0;S.IS_IDENTIFIER_CHAR[8233]=0;const ne=S.IS_IDENTIFIER_CHAR.slice();S.IS_IDENTIFIER_START=ne;for(let b=ee.charCodes.digit0;b<=ee.charCodes.digit9;b++){S.IS_IDENTIFIER_START[b]=0}},5721:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(38824);const te=[9,11,12,ee.charCodes.space,ee.charCodes.nonBreakingSpace,ee.charCodes.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];S.WHITESPACE_CHARS=te;const re=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;S.skipWhiteSpace=re;const ne=new Uint8Array(65536);S.IS_WHITESPACE=ne;for(const b of S.WHITESPACE_CHARS){S.IS_WHITESPACE[b]=1}},87043:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(92740);var te=J(61346);var re=J(58256);var ne=J(27127);var ie=_interopRequireDefault(ne);var oe=J(17189);var se=_interopRequireDefault(oe);var ae=J(49105);var ue=_interopRequireDefault(ae);var ce=J(79638);var le=_interopRequireDefault(ce);class CJSImportTransformer extends le.default{__init(){this.hadExport=false}__init2(){this.hadNamedExport=false}__init3(){this.hadDefaultExport=false}constructor(b,S,J,ee,te,re,ne){super();this.rootTransformer=b;this.tokens=S;this.importProcessor=J;this.nameManager=ee;this.reactHotLoaderTransformer=te;this.enableLegacyBabel5ModuleInterop=re;this.isTypeScriptTransformEnabled=ne;CJSImportTransformer.prototype.__init.call(this);CJSImportTransformer.prototype.__init2.call(this);CJSImportTransformer.prototype.__init3.call(this);this.declarationInfo=ne?se.default.call(void 0,S):oe.EMPTY_DECLARATION_INFO}getPrefixCode(){let b="";if(this.hadExport){b+='Object.defineProperty(exports, "__esModule", {value: true});'}return b}getSuffixCode(){if(this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport){return"\nmodule.exports = exports.default;\n"}return""}process(){if(this.tokens.matches3(re.TokenType._import,re.TokenType.name,re.TokenType.eq)){return this.processImportEquals()}if(this.tokens.matches1(re.TokenType._import)){this.processImport();return true}if(this.tokens.matches2(re.TokenType._export,re.TokenType.eq)){this.tokens.replaceToken("module.exports");return true}if(this.tokens.matches1(re.TokenType._export)&&!this.tokens.currentToken().isType){this.hadExport=true;return this.processExport()}if(this.tokens.matches2(re.TokenType.name,re.TokenType.postIncDec)){if(this.processPostIncDec()){return true}}if(this.tokens.matches1(re.TokenType.name)||this.tokens.matches1(re.TokenType.jsxName)){return this.processIdentifier()}if(this.tokens.matches1(re.TokenType.eq)){return this.processAssignment()}if(this.tokens.matches1(re.TokenType.assign)){return this.processComplexAssignment()}if(this.tokens.matches1(re.TokenType.preIncDec)){return this.processPreIncDec()}return false}processImportEquals(){const b=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(this.importProcessor.isTypeName(b)){ie.default.call(void 0,this.tokens)}else{this.tokens.replaceToken("const")}return true}processImport(){if(this.tokens.matches2(re.TokenType._import,re.TokenType.parenL)){this.tokens.replaceToken("Promise.resolve().then(() => require");const b=this.tokens.currentToken().contextId;if(b==null){throw new Error("Expected context ID on dynamic import invocation.")}this.tokens.copyToken();while(!this.tokens.matchesContextIdAndLabel(re.TokenType.parenR,b)){this.rootTransformer.processToken()}this.tokens.replaceToken("))");return}const b=this.removeImportAndDetectIfType();if(b){this.tokens.removeToken()}else{const b=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(b));this.tokens.appendCode(this.importProcessor.claimImportCode(b))}if(this.tokens.matches1(re.TokenType.semi)){this.tokens.removeToken()}}removeImportAndDetectIfType(){this.tokens.removeInitialToken();if(this.tokens.matchesContextual(te.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,re.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,te.ContextualKeyword._from)){this.removeRemainingImport();return true}if(this.tokens.matches1(re.TokenType.name)||this.tokens.matches1(re.TokenType.star)){this.removeRemainingImport();return false}if(this.tokens.matches1(re.TokenType.string)){return false}let b=false;while(!this.tokens.matches1(re.TokenType.string)){if(!b&&this.tokens.matches1(re.TokenType.braceL)||this.tokens.matches1(re.TokenType.comma)){this.tokens.removeToken();if(this.tokens.matches2(re.TokenType.name,re.TokenType.comma)||this.tokens.matches2(re.TokenType.name,re.TokenType.braceR)||this.tokens.matches4(re.TokenType.name,re.TokenType.name,re.TokenType.name,re.TokenType.comma)||this.tokens.matches4(re.TokenType.name,re.TokenType.name,re.TokenType.name,re.TokenType.braceR)){b=true}}this.tokens.removeToken()}return!b}removeRemainingImport(){while(!this.tokens.matches1(re.TokenType.string)){this.tokens.removeToken()}}processIdentifier(){const b=this.tokens.currentToken();if(b.shadowsGlobal){return false}if(b.identifierRole===ee.IdentifierRole.ObjectShorthand){return this.processObjectShorthand()}if(b.identifierRole!==ee.IdentifierRole.Access){return false}const S=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(b));if(!S){return false}let J=this.tokens.currentIndex()+1;while(J<this.tokens.tokens.length&&this.tokens.tokens[J].type===re.TokenType.parenR){J++}if(this.tokens.tokens[J].type===re.TokenType.parenL){if(this.tokens.tokenAtRelativeIndex(1).type===re.TokenType.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==re.TokenType._new){this.tokens.replaceToken(`${S}.call(void 0, `);this.tokens.removeToken();this.rootTransformer.processBalancedCode();this.tokens.copyExpectedToken(re.TokenType.parenR)}else{this.tokens.replaceToken(`(0, ${S})`)}}else{this.tokens.replaceToken(S)}return true}processObjectShorthand(){const b=this.tokens.identifierName();const S=this.importProcessor.getIdentifierReplacement(b);if(!S){return false}this.tokens.replaceToken(`${b}: ${S}`);return true}processExport(){if(this.tokens.matches2(re.TokenType._export,re.TokenType._enum)||this.tokens.matches3(re.TokenType._export,re.TokenType._const,re.TokenType._enum)){return false}if(this.tokens.matches2(re.TokenType._export,re.TokenType._default)){this.processExportDefault();this.hadDefaultExport=true;return true}this.hadNamedExport=true;if(this.tokens.matches2(re.TokenType._export,re.TokenType._var)||this.tokens.matches2(re.TokenType._export,re.TokenType._let)||this.tokens.matches2(re.TokenType._export,re.TokenType._const)){this.processExportVar();return true}else if(this.tokens.matches2(re.TokenType._export,re.TokenType._function)||this.tokens.matches3(re.TokenType._export,re.TokenType.name,re.TokenType._function)){this.processExportFunction();return true}else if(this.tokens.matches2(re.TokenType._export,re.TokenType._class)||this.tokens.matches3(re.TokenType._export,re.TokenType._abstract,re.TokenType._class)){this.processExportClass();return true}else if(this.tokens.matches2(re.TokenType._export,re.TokenType.braceL)){this.processExportBindings();return true}else if(this.tokens.matches2(re.TokenType._export,re.TokenType.star)){this.processExportStar();return true}else if(this.tokens.matches3(re.TokenType._export,re.TokenType.name,re.TokenType.braceL)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,te.ContextualKeyword._type)){this.tokens.removeInitialToken();while(!this.tokens.matches1(re.TokenType.braceR)){this.tokens.removeToken()}this.tokens.removeToken();if(this.tokens.matchesContextual(te.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,re.TokenType.string)){this.tokens.removeToken();this.tokens.removeToken()}return true}else{throw new Error("Unrecognized export syntax.")}}processAssignment(){const b=this.tokens.currentIndex();const S=this.tokens.tokens[b-1];if(S.isType||S.type!==re.TokenType.name){return false}if(S.shadowsGlobal){return false}if(b>=2&&this.tokens.matches1AtIndex(b-2,re.TokenType.dot)){return false}if(b>=2&&[re.TokenType._var,re.TokenType._let,re.TokenType._const].includes(this.tokens.tokens[b-2].type)){return false}const J=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(S));if(!J){return false}this.tokens.copyToken();this.tokens.appendCode(` ${J} =`);return true}processComplexAssignment(){const b=this.tokens.currentIndex();const S=this.tokens.tokens[b-1];if(S.type!==re.TokenType.name){return false}if(S.shadowsGlobal){return false}if(b>=2&&this.tokens.matches1AtIndex(b-2,re.TokenType.dot)){return false}const J=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(S));if(!J){return false}this.tokens.appendCode(` = ${J}`);this.tokens.copyToken();return true}processPreIncDec(){const b=this.tokens.currentIndex();const S=this.tokens.tokens[b+1];if(S.type!==re.TokenType.name){return false}if(S.shadowsGlobal){return false}if(b+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(b+2,re.TokenType.dot)||this.tokens.matches1AtIndex(b+2,re.TokenType.bracketL)||this.tokens.matches1AtIndex(b+2,re.TokenType.parenL))){return false}const J=this.tokens.identifierNameForToken(S);const ee=this.importProcessor.resolveExportBinding(J);if(!ee){return false}this.tokens.appendCode(`${ee} = `);this.tokens.copyToken();return true}processPostIncDec(){const b=this.tokens.currentIndex();const S=this.tokens.tokens[b];const J=this.tokens.tokens[b+1];if(S.type!==re.TokenType.name){return false}if(S.shadowsGlobal){return false}if(b>=1&&this.tokens.matches1AtIndex(b-1,re.TokenType.dot)){return false}const ee=this.tokens.identifierNameForToken(S);const te=this.importProcessor.resolveExportBinding(ee);if(!te){return false}const ne=this.tokens.rawCodeForToken(J);const ie=this.importProcessor.getIdentifierReplacement(ee)||ee;if(ne==="++"){this.tokens.replaceToken(`(${ie} = ${te} = ${ie} + 1, ${ie} - 1)`)}else if(ne==="--"){this.tokens.replaceToken(`(${ie} = ${te} = ${ie} - 1, ${ie} + 1)`)}else{throw new Error(`Unexpected operator: ${ne}`)}this.tokens.removeToken();return true}processExportDefault(){if(this.tokens.matches4(re.TokenType._export,re.TokenType._default,re.TokenType._function,re.TokenType.name)||this.tokens.matches5(re.TokenType._export,re.TokenType._default,re.TokenType.name,re.TokenType._function,re.TokenType.name)){this.tokens.removeInitialToken();this.tokens.removeToken();const b=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${b};`)}else if(this.tokens.matches4(re.TokenType._export,re.TokenType._default,re.TokenType._class,re.TokenType.name)||this.tokens.matches5(re.TokenType._export,re.TokenType._default,re.TokenType._abstract,re.TokenType._class,re.TokenType.name)){this.tokens.removeInitialToken();this.tokens.removeToken();if(this.tokens.matches1(re.TokenType._abstract)){this.tokens.removeToken()}const b=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${b};`)}else if(this.tokens.matches3(re.TokenType._export,re.TokenType._default,re.TokenType.at)){throw new Error("Export default statements with decorators are not yet supported.")}else if(ue.default.call(void 0,this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo)){this.tokens.removeInitialToken();this.tokens.removeToken();this.tokens.removeToken()}else if(this.reactHotLoaderTransformer){const b=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${b}; exports.`);this.tokens.copyToken();this.tokens.appendCode(` = ${b} =`);this.reactHotLoaderTransformer.setExtractedDefaultExportName(b)}else{this.tokens.replaceToken("exports.");this.tokens.copyToken();this.tokens.appendCode(" =")}}processExportVar(){if(this.isSimpleExportVar()){this.processSimpleExportVar()}else{this.processComplexExportVar()}}isSimpleExportVar(){let b=this.tokens.currentIndex();b++;b++;if(!this.tokens.matches1AtIndex(b,re.TokenType.name)){return false}b++;while(b<this.tokens.tokens.length&&this.tokens.tokens[b].isType){b++}if(!this.tokens.matches1AtIndex(b,re.TokenType.eq)){return false}return true}processSimpleExportVar(){this.tokens.removeInitialToken();this.tokens.copyToken();const b=this.tokens.identifierName();while(!this.tokens.matches1(re.TokenType.eq)){this.rootTransformer.processToken()}const S=this.tokens.currentToken().rhsEndIndex;if(S==null){throw new Error("Expected = token with an end index.")}while(this.tokens.currentIndex()<S){this.rootTransformer.processToken()}this.tokens.appendCode(`; exports.${b} = ${b}`)}processComplexExportVar(){this.tokens.removeInitialToken();this.tokens.removeToken();const b=this.tokens.matches1(re.TokenType.braceL);if(b){this.tokens.appendCode("(")}let S=0;while(true){if(this.tokens.matches1(re.TokenType.braceL)||this.tokens.matches1(re.TokenType.dollarBraceL)||this.tokens.matches1(re.TokenType.bracketL)){S++;this.tokens.copyToken()}else if(this.tokens.matches1(re.TokenType.braceR)||this.tokens.matches1(re.TokenType.bracketR)){S--;this.tokens.copyToken()}else if(S===0&&!this.tokens.matches1(re.TokenType.name)&&!this.tokens.currentToken().isType){break}else if(this.tokens.matches1(re.TokenType.eq)){const b=this.tokens.currentToken().rhsEndIndex;if(b==null){throw new Error("Expected = token with an end index.")}while(this.tokens.currentIndex()<b){this.rootTransformer.processToken()}}else{const b=this.tokens.currentToken();if(ee.isDeclaration.call(void 0,b)){const S=this.tokens.identifierName();let J=this.importProcessor.getIdentifierReplacement(S);if(J===null){throw new Error(`Expected a replacement for ${S} in \`export var\` syntax.`)}if(ee.isObjectShorthandDeclaration.call(void 0,b)){J=`${S}: ${J}`}this.tokens.replaceToken(J)}else{this.rootTransformer.processToken()}}}if(b){const b=this.tokens.currentToken().rhsEndIndex;if(b==null){throw new Error("Expected = token with an end index.")}while(this.tokens.currentIndex()<b){this.rootTransformer.processToken()}this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const b=this.processNamedFunction();this.tokens.appendCode(` exports.${b} = ${b};`)}processNamedFunction(){if(this.tokens.matches1(re.TokenType._function)){this.tokens.copyToken()}else if(this.tokens.matches2(re.TokenType.name,re.TokenType._function)){if(!this.tokens.matchesContextual(te.ContextualKeyword._async)){throw new Error("Expected async keyword in function export.")}this.tokens.copyToken();this.tokens.copyToken()}if(this.tokens.matches1(re.TokenType.star)){this.tokens.copyToken()}if(!this.tokens.matches1(re.TokenType.name)){throw new Error("Expected identifier for exported function name.")}const b=this.tokens.identifierName();this.tokens.copyToken();if(this.tokens.currentToken().isType){this.tokens.removeInitialToken();while(this.tokens.currentToken().isType){this.tokens.removeToken()}}this.tokens.copyExpectedToken(re.TokenType.parenL);this.rootTransformer.processBalancedCode();this.tokens.copyExpectedToken(re.TokenType.parenR);this.rootTransformer.processPossibleTypeRange();this.tokens.copyExpectedToken(re.TokenType.braceL);this.rootTransformer.processBalancedCode();this.tokens.copyExpectedToken(re.TokenType.braceR);return b}processExportClass(){this.tokens.removeInitialToken();if(this.tokens.matches1(re.TokenType._abstract)){this.tokens.removeToken()}const b=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${b} = ${b};`)}processExportBindings(){this.tokens.removeInitialToken();this.tokens.removeToken();const b=[];while(true){if(this.tokens.matches1(re.TokenType.braceR)){this.tokens.removeToken();break}const S=this.tokens.identifierName();let J;this.tokens.removeToken();if(this.tokens.matchesContextual(te.ContextualKeyword._as)){this.tokens.removeToken();J=this.tokens.identifierName();this.tokens.removeToken()}else{J=S}if(!this.shouldElideExportedIdentifier(S)){const ee=this.importProcessor.getIdentifierReplacement(S);b.push(`exports.${J} = ${ee||S};`)}if(this.tokens.matches1(re.TokenType.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(re.TokenType.comma,re.TokenType.braceR)){this.tokens.removeToken();this.tokens.removeToken();break}else if(this.tokens.matches1(re.TokenType.comma)){this.tokens.removeToken()}else{throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}}if(this.tokens.matchesContextual(te.ContextualKeyword._from)){this.tokens.removeToken();const b=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(b))}else{this.tokens.appendCode(b.join(" "))}if(this.tokens.matches1(re.TokenType.semi)){this.tokens.removeToken()}}processExportStar(){this.tokens.removeInitialToken();while(!this.tokens.matches1(re.TokenType.string)){this.tokens.removeToken()}const b=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(b));if(this.tokens.matches1(re.TokenType.semi)){this.tokens.removeToken()}}shouldElideExportedIdentifier(b){return this.isTypeScriptTransformEnabled&&!this.declarationInfo.valueDeclarations.has(b)}}S["default"]=CJSImportTransformer},98245:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(61346);var te=J(58256);var re=J(27127);var ne=_interopRequireDefault(re);var ie=J(17189);var oe=_interopRequireDefault(ie);var se=J(89416);var ae=J(49105);var ue=_interopRequireDefault(ae);var ce=J(79638);var le=_interopRequireDefault(ce);class ESMImportTransformer extends le.default{constructor(b,S,J,ee,te){super();this.tokens=b;this.nameManager=S;this.reactHotLoaderTransformer=J;this.isTypeScriptTransformEnabled=ee;this.nonTypeIdentifiers=ee?se.getNonTypeIdentifiers.call(void 0,b,te):new Set;this.declarationInfo=ee?oe.default.call(void 0,b):ie.EMPTY_DECLARATION_INFO}process(){if(this.tokens.matches3(te.TokenType._import,te.TokenType.name,te.TokenType.eq)){return this.processImportEquals()}if(this.tokens.matches4(te.TokenType._import,te.TokenType.name,te.TokenType.name,te.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,ee.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let b=0;b<7;b++){this.tokens.removeToken()}return true}if(this.tokens.matches2(te.TokenType._export,te.TokenType.eq)){this.tokens.replaceToken("module.exports");return true}if(this.tokens.matches5(te.TokenType._export,te.TokenType._import,te.TokenType.name,te.TokenType.name,te.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,ee.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let b=0;b<8;b++){this.tokens.removeToken()}return true}if(this.tokens.matches1(te.TokenType._import)){return this.processImport()}if(this.tokens.matches2(te.TokenType._export,te.TokenType._default)){return this.processExportDefault()}if(this.tokens.matches2(te.TokenType._export,te.TokenType.braceL)){return this.processNamedExports()}if(this.tokens.matches3(te.TokenType._export,te.TokenType.name,te.TokenType.braceL)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,ee.ContextualKeyword._type)){this.tokens.removeInitialToken();while(!this.tokens.matches1(te.TokenType.braceR)){this.tokens.removeToken()}this.tokens.removeToken();if(this.tokens.matchesContextual(ee.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,te.TokenType.string)){this.tokens.removeToken();this.tokens.removeToken()}return true}return false}processImportEquals(){const b=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(this.isTypeName(b)){ne.default.call(void 0,this.tokens)}else{this.tokens.replaceToken("const")}return true}processImport(){if(this.tokens.matches2(te.TokenType._import,te.TokenType.parenL)){return false}const b=this.tokens.snapshot();const S=this.removeImportTypeBindings();if(S){this.tokens.restoreToSnapshot(b);while(!this.tokens.matches1(te.TokenType.string)){this.tokens.removeToken()}this.tokens.removeToken();if(this.tokens.matches1(te.TokenType.semi)){this.tokens.removeToken()}}return true}removeImportTypeBindings(){this.tokens.copyExpectedToken(te.TokenType._import);if(this.tokens.matchesContextual(ee.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,te.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,ee.ContextualKeyword._from)){return true}if(this.tokens.matches1(te.TokenType.string)){this.tokens.copyToken();return false}let b=false;if(this.tokens.matches1(te.TokenType.name)){if(this.isTypeName(this.tokens.identifierName())){this.tokens.removeToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.removeToken()}}else{b=true;this.tokens.copyToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.copyToken()}}}if(this.tokens.matches1(te.TokenType.star)){if(this.isTypeName(this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2))){this.tokens.removeToken();this.tokens.removeToken();this.tokens.removeToken()}else{b=true;this.tokens.copyExpectedToken(te.TokenType.star);this.tokens.copyExpectedToken(te.TokenType.name);this.tokens.copyExpectedToken(te.TokenType.name)}}else if(this.tokens.matches1(te.TokenType.braceL)){this.tokens.copyToken();while(!this.tokens.matches1(te.TokenType.braceR)){if(this.tokens.matches3(te.TokenType.name,te.TokenType.name,te.TokenType.comma)||this.tokens.matches3(te.TokenType.name,te.TokenType.name,te.TokenType.braceR)){this.tokens.removeToken();this.tokens.removeToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.removeToken()}}else if(this.tokens.matches5(te.TokenType.name,te.TokenType.name,te.TokenType.name,te.TokenType.name,te.TokenType.comma)||this.tokens.matches5(te.TokenType.name,te.TokenType.name,te.TokenType.name,te.TokenType.name,te.TokenType.braceR)){this.tokens.removeToken();this.tokens.removeToken();this.tokens.removeToken();this.tokens.removeToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.removeToken()}}else if(this.tokens.matches2(te.TokenType.name,te.TokenType.comma)||this.tokens.matches2(te.TokenType.name,te.TokenType.braceR)){if(this.isTypeName(this.tokens.identifierName())){this.tokens.removeToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.removeToken()}}else{b=true;this.tokens.copyToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.copyToken()}}}else if(this.tokens.matches4(te.TokenType.name,te.TokenType.name,te.TokenType.name,te.TokenType.comma)||this.tokens.matches4(te.TokenType.name,te.TokenType.name,te.TokenType.name,te.TokenType.braceR)){if(this.isTypeName(this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2))){this.tokens.removeToken();this.tokens.removeToken();this.tokens.removeToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.removeToken()}}else{b=true;this.tokens.copyToken();this.tokens.copyToken();this.tokens.copyToken();if(this.tokens.matches1(te.TokenType.comma)){this.tokens.copyToken()}}}else{throw new Error("Unexpected import form.")}}this.tokens.copyExpectedToken(te.TokenType.braceR)}return!b}isTypeName(b){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(b)}processExportDefault(){if(ue.default.call(void 0,this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo)){this.tokens.removeInitialToken();this.tokens.removeToken();this.tokens.removeToken();return true}const b=this.tokens.matches4(te.TokenType._export,te.TokenType._default,te.TokenType._function,te.TokenType.name)||this.tokens.matches5(te.TokenType._export,te.TokenType._default,te.TokenType.name,te.TokenType._function,te.TokenType.name)||this.tokens.matches4(te.TokenType._export,te.TokenType._default,te.TokenType._class,te.TokenType.name)||this.tokens.matches5(te.TokenType._export,te.TokenType._default,te.TokenType._abstract,te.TokenType._class,te.TokenType.name);if(!b&&this.reactHotLoaderTransformer){const b=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${b}; export`);this.tokens.copyToken();this.tokens.appendCode(` ${b} =`);this.reactHotLoaderTransformer.setExtractedDefaultExportName(b);return true}return false}processNamedExports(){if(!this.isTypeScriptTransformEnabled){return false}this.tokens.copyExpectedToken(te.TokenType._export);this.tokens.copyExpectedToken(te.TokenType.braceL);while(!this.tokens.matches1(te.TokenType.braceR)){if(!this.tokens.matches1(te.TokenType.name)){throw new Error("Expected identifier at the start of named export.")}if(this.shouldElideExportedName(this.tokens.identifierName())){while(!this.tokens.matches1(te.TokenType.comma)&&!this.tokens.matches1(te.TokenType.braceR)&&!this.tokens.isAtEnd()){this.tokens.removeToken()}if(this.tokens.matches1(te.TokenType.comma)){this.tokens.removeToken()}}else{while(!this.tokens.matches1(te.TokenType.comma)&&!this.tokens.matches1(te.TokenType.braceR)&&!this.tokens.isAtEnd()){this.tokens.copyToken()}if(this.tokens.matches1(te.TokenType.comma)){this.tokens.copyToken()}}}this.tokens.copyExpectedToken(te.TokenType.braceR);return true}shouldElideExportedName(b){return this.isTypeScriptTransformEnabled&&this.declarationInfo.typeDeclarations.has(b)&&!this.declarationInfo.valueDeclarations.has(b)}}S["default"]=ESMImportTransformer},74367:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(79638);var te=_interopRequireDefault(ee);class FlowTransformer extends te.default{constructor(b,S){super();this.rootTransformer=b;this.tokens=S}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()}}S["default"]=FlowTransformer},19497:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(32970);var te=_interopRequireDefault(ee);var re=J(58256);var ne=J(38824);var ie=J(65651);var oe=_interopRequireDefault(ie);var se=J(79638);var ae=_interopRequireDefault(se);const ue=/^[\da-fA-F]+$/;const ce=/^\d+$/;class JSXTransformer extends ae.default{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}constructor(b,S,J,ee,te){super();this.rootTransformer=b;this.tokens=S;this.importProcessor=J;this.nameManager=ee;this.options=te;JSXTransformer.prototype.__init.call(this);JSXTransformer.prototype.__init2.call(this);JSXTransformer.prototype.__init3.call(this);this.jsxPragmaInfo=oe.default.call(void 0,te)}process(){if(this.tokens.matches1(re.TokenType.jsxTagStart)){this.processJSXTag();return true}return false}getPrefixCode(){if(this.filenameVarName){return`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`}else{return""}}getLineNumberForIndex(b){const S=this.tokens.code;while(this.lastIndex<b&&this.lastIndex<S.length){if(S[this.lastIndex]==="\n"){this.lastLineNumber++}this.lastIndex++}return this.lastLineNumber}getFilenameVarName(){if(!this.filenameVarName){this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")}return this.filenameVarName}processProps(b){const S=this.getLineNumberForIndex(b);const J=this.options.production?"":`__self: this, __source: {fileName: ${this.getFilenameVarName()}, lineNumber: ${S}}`;if(!this.tokens.matches1(re.TokenType.jsxName)&&!this.tokens.matches1(re.TokenType.braceL)){if(J){this.tokens.appendCode(`, {${J}}`)}else{this.tokens.appendCode(`, null`)}return}this.tokens.appendCode(`, {`);while(true){if(this.tokens.matches2(re.TokenType.jsxName,re.TokenType.eq)){this.processPropKeyName();this.tokens.replaceToken(": ");if(this.tokens.matches1(re.TokenType.braceL)){this.tokens.replaceToken("");this.rootTransformer.processBalancedCode();this.tokens.replaceToken("")}else if(this.tokens.matches1(re.TokenType.jsxTagStart)){this.processJSXTag()}else{this.processStringPropValue()}}else if(this.tokens.matches1(re.TokenType.jsxName)){this.processPropKeyName();this.tokens.appendCode(": true")}else if(this.tokens.matches1(re.TokenType.braceL)){this.tokens.replaceToken("");this.rootTransformer.processBalancedCode();this.tokens.replaceToken("")}else{break}this.tokens.appendCode(",")}if(J){this.tokens.appendCode(` ${J}}`)}else{this.tokens.appendCode("}")}}processPropKeyName(){const b=this.tokens.identifierName();if(b.includes("-")){this.tokens.replaceToken(`'${b}'`)}else{this.tokens.copyToken()}}processStringPropValue(){const b=this.tokens.currentToken();const S=this.tokens.code.slice(b.start+1,b.end-1);const J=formatJSXTextReplacement(S);const ee=formatJSXStringValueLiteral(S);this.tokens.replaceToken(ee+J)}processTagIntro(){let b=this.tokens.currentIndex()+1;while(this.tokens.tokens[b].isType||!this.tokens.matches2AtIndex(b-1,re.TokenType.jsxName,re.TokenType.jsxName)&&!this.tokens.matches2AtIndex(b-1,re.TokenType.greaterThan,re.TokenType.jsxName)&&!this.tokens.matches1AtIndex(b,re.TokenType.braceL)&&!this.tokens.matches1AtIndex(b,re.TokenType.jsxTagEnd)&&!this.tokens.matches2AtIndex(b,re.TokenType.slash,re.TokenType.jsxTagEnd)){b++}if(b===this.tokens.currentIndex()+1){const b=this.tokens.identifierName();if(startsWithLowerCase(b)){this.tokens.replaceToken(`'${b}'`)}}while(this.tokens.currentIndex()<b){this.rootTransformer.processToken()}}processChildren(){while(true){if(this.tokens.matches2(re.TokenType.jsxTagStart,re.TokenType.slash)){return}if(this.tokens.matches1(re.TokenType.braceL)){if(this.tokens.matches2(re.TokenType.braceL,re.TokenType.braceR)){this.tokens.replaceToken("");this.tokens.replaceToken("")}else{this.tokens.replaceToken(", ");this.rootTransformer.processBalancedCode();this.tokens.replaceToken("")}}else if(this.tokens.matches1(re.TokenType.jsxTagStart)){this.tokens.appendCode(", ");this.processJSXTag()}else if(this.tokens.matches1(re.TokenType.jsxText)){this.processChildTextElement()}else{throw new Error("Unexpected token when processing JSX children.")}}}processChildTextElement(){const b=this.tokens.currentToken();const S=this.tokens.code.slice(b.start,b.end);const J=formatJSXTextReplacement(S);const ee=formatJSXTextLiteral(S);if(ee==='""'){this.tokens.replaceToken(J)}else{this.tokens.replaceToken(`, ${ee}${J}`)}}processJSXTag(){const{jsxPragmaInfo:b}=this;const S=this.importProcessor?this.importProcessor.getIdentifierReplacement(b.base)||b.base:b.base;const J=this.tokens.currentToken().start;this.tokens.replaceToken(`${S}${b.suffix}(`);if(this.tokens.matches1(re.TokenType.jsxTagEnd)){const S=this.importProcessor?this.importProcessor.getIdentifierReplacement(b.fragmentBase)||b.fragmentBase:b.fragmentBase;this.tokens.replaceToken(`${S}${b.fragmentSuffix}, null`);this.processChildren();while(!this.tokens.matches1(re.TokenType.jsxTagEnd)){this.tokens.replaceToken("")}this.tokens.replaceToken(")")}else{this.processTagIntro();this.processProps(J);if(this.tokens.matches2(re.TokenType.slash,re.TokenType.jsxTagEnd)){this.tokens.replaceToken("");this.tokens.replaceToken(")")}else if(this.tokens.matches1(re.TokenType.jsxTagEnd)){this.tokens.replaceToken("");this.processChildren();while(!this.tokens.matches1(re.TokenType.jsxTagEnd)){this.tokens.replaceToken("")}this.tokens.replaceToken(")")}else{throw new Error("Expected either /> or > at the end of the tag.")}}}}S["default"]=JSXTransformer;function startsWithLowerCase(b){const S=b.charCodeAt(0);return S>=ne.charCodes.lowercaseA&&S<=ne.charCodes.lowercaseZ}S.startsWithLowerCase=startsWithLowerCase;function formatJSXTextLiteral(b){let S="";let J="";let ee=false;let te=false;for(let re=0;re<b.length;re++){const ne=b[re];if(ne===" "||ne==="\t"||ne==="\r"){if(!ee){J+=ne}}else if(ne==="\n"){J="";ee=true}else{if(te&&ee){S+=" "}S+=J;J="";if(ne==="&"){const{entity:J,newI:ee}=processEntity(b,re+1);re=ee-1;S+=J}else{S+=ne}te=true;ee=false}}if(!ee){S+=J}return JSON.stringify(S)}function formatJSXTextReplacement(b){let S=0;let J=0;for(const ee of b){if(ee==="\n"){S++;J=0}else if(ee===" "){J++}}return"\n".repeat(S)+" ".repeat(J)}function formatJSXStringValueLiteral(b){let S="";for(let J=0;J<b.length;J++){const ee=b[J];if(ee==="\n"){if(/\s/.test(b[J+1])){S+=" ";while(J<b.length&&/\s/.test(b[J+1])){J++}}else{S+="\n"}}else if(ee==="&"){const{entity:ee,newI:te}=processEntity(b,J+1);S+=ee;J=te-1}else{S+=ee}}return JSON.stringify(S)}function processEntity(b,S){let J="";let ee=0;let re;let ne=S;while(ne<b.length&&ee++<10){const S=b[ne];ne++;if(S===";"){if(J[0]==="#"){if(J[1]==="x"){J=J.substr(2);if(ue.test(J)){re=String.fromCodePoint(parseInt(J,16))}}else{J=J.substr(1);if(ce.test(J)){re=String.fromCodePoint(parseInt(J,10))}}}else{re=te.default[J]}break}J+=S}if(!re){return{entity:"&",newI:S}}return{entity:re,newI:ne}}},31329:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function _optionalChain(b){let S=undefined;let J=b[0];let ee=1;while(ee<b.length){const te=b[ee];const re=b[ee+1];ee+=2;if((te==="optionalAccess"||te==="optionalCall")&&J==null){return undefined}if(te==="access"||te==="optionalAccess"){S=J;J=re(J)}else if(te==="call"||te==="optionalCall"){J=re(((...b)=>J.call(S,...b)));S=undefined}}return J}var ee=J(58256);var te=J(79638);var re=_interopRequireDefault(te);const ne="jest";const ie=["mock","unmock","enableAutomock","disableAutomock"];class JestHoistTransformer extends re.default{__init(){this.hoistedFunctionNames=[]}constructor(b,S,J,ee){super();this.rootTransformer=b;this.tokens=S;this.nameManager=J;this.importProcessor=ee;JestHoistTransformer.prototype.__init.call(this)}process(){if(this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(ee.TokenType.name,ee.TokenType.dot,ee.TokenType.name,ee.TokenType.parenL)&&this.tokens.identifierName()===ne){if(_optionalChain([this,"access",b=>b.importProcessor,"optionalAccess",b=>b.getGlobalNames,"call",b=>b(),"optionalAccess",b=>b.has,"call",b=>b(ne)])){return false}return this.extractHoistedCalls()}return false}getHoistedCode(){if(this.hoistedFunctionNames.length>0){return this.hoistedFunctionNames.map((b=>`${b}();`)).join("")}return""}extractHoistedCalls(){this.tokens.removeToken();let b=false;while(this.tokens.matches3(ee.TokenType.dot,ee.TokenType.name,ee.TokenType.parenL)){const S=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);const J=ie.includes(S);if(J){const S=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(S);this.tokens.replaceToken(`function ${S}(){${ne}.`);this.tokens.copyToken();this.tokens.copyToken();this.rootTransformer.processBalancedCode();this.tokens.copyExpectedToken(ee.TokenType.parenR);this.tokens.appendCode(";}");b=false}else{if(b){this.tokens.copyToken()}else{this.tokens.replaceToken(`${ne}.`)}this.tokens.copyToken();this.tokens.copyToken();this.rootTransformer.processBalancedCode();this.tokens.copyExpectedToken(ee.TokenType.parenR);b=true}}return true}}S["default"]=JestHoistTransformer},93133:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(58256);var te=J(79638);var re=_interopRequireDefault(te);class NumericSeparatorTransformer extends re.default{constructor(b){super();this.tokens=b}process(){if(this.tokens.matches1(ee.TokenType.num)){const b=this.tokens.currentTokenCode();if(b.includes("_")){this.tokens.replaceToken(b.replace(/_/g,""));return true}}return false}}S["default"]=NumericSeparatorTransformer},72674:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(58256);var te=J(79638);var re=_interopRequireDefault(te);class OptionalCatchBindingTransformer extends re.default{constructor(b,S){super();this.tokens=b;this.nameManager=S}process(){if(this.tokens.matches2(ee.TokenType._catch,ee.TokenType.braceL)){this.tokens.copyToken();this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`);return true}return false}}S["default"]=OptionalCatchBindingTransformer},4807:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(58256);var te=J(79638);var re=_interopRequireDefault(te);class OptionalChainingNullishTransformer extends re.default{constructor(b,S){super();this.tokens=b;this.nameManager=S}process(){if(this.tokens.matches1(ee.TokenType.nullishCoalescing)){const b=this.tokens.currentToken();if(this.tokens.tokens[b.nullishStartIndex].isAsyncOperation){this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => (")}else{this.tokens.replaceTokenTrimmingLeftWhitespace(", () => (")}return true}if(this.tokens.matches1(ee.TokenType._delete)){const b=this.tokens.tokenAtRelativeIndex(1);if(b.isOptionalChainStart){this.tokens.removeInitialToken();return true}}const b=this.tokens.currentToken();const S=b.subscriptStartIndex;if(S!=null&&this.tokens.tokens[S].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==ee.TokenType._super){const b=this.nameManager.claimFreeName("_");let J;if(S>0&&this.tokens.matches1AtIndex(S-1,ee.TokenType._delete)&&this.isLastSubscriptInChain()){J=`${b} => delete ${b}`}else{J=`${b} => ${b}`}if(this.tokens.tokens[S].isAsyncOperation){J=`async ${J}`}if(this.tokens.matches2(ee.TokenType.questionDot,ee.TokenType.parenL)||this.tokens.matches2(ee.TokenType.questionDot,ee.TokenType.lessThan)){if(this.justSkippedSuper()){this.tokens.appendCode(".bind(this)")}this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${J}`)}else if(this.tokens.matches2(ee.TokenType.questionDot,ee.TokenType.bracketL)){this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${J}`)}else if(this.tokens.matches1(ee.TokenType.questionDot)){this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${J}.`)}else if(this.tokens.matches1(ee.TokenType.dot)){this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${J}.`)}else if(this.tokens.matches1(ee.TokenType.bracketL)){this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${J}[`)}else if(this.tokens.matches1(ee.TokenType.parenL)){if(this.justSkippedSuper()){this.tokens.appendCode(".bind(this)")}this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${J}(`)}else{throw new Error("Unexpected subscript operator in optional chain.")}return true}return false}isLastSubscriptInChain(){let b=0;for(let S=this.tokens.currentIndex()+1;;S++){if(S>=this.tokens.tokens.length){throw new Error("Reached the end of the code while finding the end of the access chain.")}if(this.tokens.tokens[S].isOptionalChainStart){b++}else if(this.tokens.tokens[S].isOptionalChainEnd){b--}if(b<0){return true}if(b===0&&this.tokens.tokens[S].subscriptStartIndex!=null){return false}}}justSkippedSuper(){let b=0;let S=this.tokens.currentIndex()-1;while(true){if(S<0){throw new Error("Reached the start of the code while finding the start of the access chain.")}if(this.tokens.tokens[S].isOptionalChainStart){b--}else if(this.tokens.tokens[S].isOptionalChainEnd){b++}if(b<0){return false}if(b===0&&this.tokens.tokens[S].subscriptStartIndex!=null){return this.tokens.tokens[S-1].type===ee.TokenType._super}S--}}}S["default"]=OptionalChainingNullishTransformer},52904:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(92740);var te=J(58256);var re=J(79638);var ne=_interopRequireDefault(re);class ReactDisplayNameTransformer extends ne.default{constructor(b,S,J,ee){super();this.rootTransformer=b;this.tokens=S;this.importProcessor=J;this.options=ee}process(){const b=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const S=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");if(S){this.tokens.replaceToken(`(0, ${S})`)}else{this.tokens.copyToken()}this.tryProcessCreateClassCall(b);return true}if(this.tokens.matches3(te.TokenType.name,te.TokenType.dot,te.TokenType.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const S=this.importProcessor?this.importProcessor.getIdentifierReplacement("React")||"React":"React";if(S){this.tokens.replaceToken(S);this.tokens.copyToken();this.tokens.copyToken()}else{this.tokens.copyToken();this.tokens.copyToken();this.tokens.copyToken()}this.tryProcessCreateClassCall(b);return true}return false}tryProcessCreateClassCall(b){const S=this.findDisplayName(b);if(!S){return}if(this.classNeedsDisplayName()){this.tokens.copyExpectedToken(te.TokenType.parenL);this.tokens.copyExpectedToken(te.TokenType.braceL);this.tokens.appendCode(`displayName: '${S}',`);this.rootTransformer.processBalancedCode();this.tokens.copyExpectedToken(te.TokenType.braceR);this.tokens.copyExpectedToken(te.TokenType.parenR)}}findDisplayName(b){if(b<2){return null}if(this.tokens.matches2AtIndex(b-2,te.TokenType.name,te.TokenType.eq)){return this.tokens.identifierNameAtIndex(b-2)}if(b>=2&&this.tokens.tokens[b-2].identifierRole===ee.IdentifierRole.ObjectKey){return this.tokens.identifierNameAtIndex(b-2)}if(this.tokens.matches2AtIndex(b-2,te.TokenType._export,te.TokenType._default)){return this.getDisplayNameFromFilename()}return null}getDisplayNameFromFilename(){const b=this.options.filePath||"unknown";const S=b.split("/");const J=S[S.length-1];const ee=J.lastIndexOf(".");const te=ee===-1?J:J.slice(0,ee);if(te==="index"&&S[S.length-2]){return S[S.length-2]}else{return te}}classNeedsDisplayName(){let b=this.tokens.currentIndex();if(!this.tokens.matches2(te.TokenType.parenL,te.TokenType.braceL)){return false}const S=b+1;const J=this.tokens.tokens[S].contextId;if(J==null){throw new Error("Expected non-null context ID on object open-brace.")}for(;b<this.tokens.tokens.length;b++){const S=this.tokens.tokens[b];if(S.type===te.TokenType.braceR&&S.contextId===J){b++;break}if(this.tokens.identifierNameAtIndex(b)==="displayName"&&this.tokens.tokens[b].identifierRole===ee.IdentifierRole.ObjectKey&&S.contextId===J){return false}}if(b===this.tokens.tokens.length){throw new Error("Unexpected end of input when processing React class.")}return this.tokens.matches1AtIndex(b,te.TokenType.parenR)||this.tokens.matches2AtIndex(b,te.TokenType.comma,te.TokenType.parenR)}}S["default"]=ReactDisplayNameTransformer},89730:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(92740);var te=J(79638);var re=_interopRequireDefault(te);class ReactHotLoaderTransformer extends re.default{__init(){this.extractedDefaultExportName=null}constructor(b,S){super();this.tokens=b;this.filePath=S;ReactHotLoaderTransformer.prototype.__init.call(this)}setExtractedDefaultExportName(b){this.extractedDefaultExportName=b}getPrefixCode(){return`\n (function () {\n var enterModule = require('react-hot-loader').enterModule;\n enterModule && enterModule(module);\n })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const b=new Set;for(const S of this.tokens.tokens){if(!S.isType&&ee.isTopLevelDeclaration.call(void 0,S)&&S.identifierRole!==ee.IdentifierRole.ImportDeclaration){b.add(this.tokens.identifierNameForToken(S))}}const S=Array.from(b).map((b=>({variableName:b,uniqueLocalName:b})));if(this.extractedDefaultExportName){S.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"})}return`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${S.map((({variableName:b,uniqueLocalName:S})=>` reactHotLoader.register(${b}, "${S}", ${JSON.stringify(this.filePath||"")});`)).join("\n")}\n leaveModule(module);\n})();`}process(){return false}}S["default"]=ReactHotLoaderTransformer},83455:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(61346);var te=J(58256);var re=J(22249);var ne=_interopRequireDefault(re);var ie=J(87043);var oe=_interopRequireDefault(ie);var se=J(98245);var ae=_interopRequireDefault(se);var ue=J(74367);var ce=_interopRequireDefault(ue);var le=J(31329);var pe=_interopRequireDefault(le);var fe=J(19497);var de=_interopRequireDefault(fe);var he=J(93133);var me=_interopRequireDefault(he);var ge=J(72674);var ye=_interopRequireDefault(ge);var ve=J(4807);var Te=_interopRequireDefault(ve);var be=J(52904);var Ee=_interopRequireDefault(be);var Ae=J(89730);var we=_interopRequireDefault(Ae);var _e=J(59258);var xe=_interopRequireDefault(_e);class RootTransformer{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(b,S,J,ee){RootTransformer.prototype.__init.call(this);RootTransformer.prototype.__init2.call(this);this.nameManager=b.nameManager;this.helperManager=b.helperManager;const{tokenProcessor:te,importProcessor:re}=b;this.tokens=te;this.isImportsTransformEnabled=S.includes("imports");this.isReactHotLoaderTransformEnabled=S.includes("react-hot-loader");this.disableESTransforms=Boolean(ee.disableESTransforms);if(!ee.disableESTransforms){this.transformers.push(new(0,Te.default)(te,this.nameManager));this.transformers.push(new(0,me.default)(te));this.transformers.push(new(0,ye.default)(te,this.nameManager))}if(S.includes("jsx")){this.transformers.push(new(0,de.default)(this,te,re,this.nameManager,ee));this.transformers.push(new(0,Ee.default)(this,te,re,ee))}let ne=null;if(S.includes("react-hot-loader")){if(!ee.filePath){throw new Error("filePath is required when using the react-hot-loader transform.")}ne=new(0,we.default)(te,ee.filePath);this.transformers.push(ne)}if(S.includes("imports")){if(re===null){throw new Error("Expected non-null importProcessor with imports transform enabled.")}this.transformers.push(new(0,oe.default)(this,te,re,this.nameManager,ne,J,S.includes("typescript")))}else{this.transformers.push(new(0,ae.default)(te,this.nameManager,ne,S.includes("typescript"),ee))}if(S.includes("flow")){this.transformers.push(new(0,ce.default)(this,te))}if(S.includes("typescript")){this.transformers.push(new(0,xe.default)(this,te,S.includes("imports")))}if(S.includes("jest")){this.transformers.push(new(0,pe.default)(this,te,this.nameManager,re))}}transform(){this.tokens.reset();this.processBalancedCode();const b=this.isImportsTransformEnabled;let S=b?'"use strict";':"";for(const b of this.transformers){S+=b.getPrefixCode()}S+=this.helperManager.emitHelpers();S+=this.generatedVariables.map((b=>` var ${b};`)).join("");for(const b of this.transformers){S+=b.getHoistedCode()}let J="";for(const b of this.transformers){J+=b.getSuffixCode()}let ee=this.tokens.finish();if(ee.startsWith("#!")){let b=ee.indexOf("\n");if(b===-1){b=ee.length;ee+="\n"}return ee.slice(0,b+1)+S+ee.slice(b+1)+J}else{return S+this.tokens.finish()+J}}processBalancedCode(){let b=0;let S=0;while(!this.tokens.isAtEnd()){if(this.tokens.matches1(te.TokenType.braceL)||this.tokens.matches1(te.TokenType.dollarBraceL)){b++}else if(this.tokens.matches1(te.TokenType.braceR)){if(b===0){return}b--}if(this.tokens.matches1(te.TokenType.parenL)){S++}else if(this.tokens.matches1(te.TokenType.parenR)){if(S===0){return}S--}this.processToken()}}processToken(){if(this.tokens.matches1(te.TokenType._class)){this.processClass();return}for(const b of this.transformers){const S=b.process();if(S){return}}this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(te.TokenType._class,te.TokenType.name)){throw new Error("Expected identifier for exported class name.")}const b=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);this.processClass();return b}processClass(){const b=ne.default.call(void 0,this,this.tokens,this.nameManager,this.disableESTransforms);const S=b.headerInfo.isExpression&&b.staticInitializerNames.length+b.instanceInitializerNames.length>0;let J=b.headerInfo.className;if(S){J=this.nameManager.claimFreeName("_class");this.generatedVariables.push(J);this.tokens.appendCode(` (${J} =`)}const ee=this.tokens.currentToken();const re=ee.contextId;if(re==null){throw new Error("Expected class to have a context ID.")}this.tokens.copyExpectedToken(te.TokenType._class);while(!this.tokens.matchesContextIdAndLabel(te.TokenType.braceL,re)){this.processToken()}this.processClassBody(b,J);const ie=b.staticInitializerNames.map((b=>`${J}.${b}()`));if(S){this.tokens.appendCode(`, ${ie.map((b=>`${b}, `)).join("")}${J})`)}else if(b.staticInitializerNames.length>0){this.tokens.appendCode(` ${ie.map((b=>`${b};`)).join(" ")}`)}}processClassBody(b,S){const{headerInfo:J,constructorInsertPos:ee,constructorInitializerStatements:re,fields:ne,instanceInitializerNames:ie,rangesToRemove:oe}=b;let se=0;let ae=0;const ue=this.tokens.currentToken().contextId;if(ue==null){throw new Error("Expected non-null context ID on class.")}this.tokens.copyExpectedToken(te.TokenType.braceL);if(this.isReactHotLoaderTransformEnabled){this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}")}const ce=re.length+ie.length>0;if(ee===null&&ce){const b=this.makeConstructorInitCode(re,ie,S);if(J.hasSuperclass){const S=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${S}) { super(...${S}); ${b}; }`)}else{this.tokens.appendCode(`constructor() { ${b}; }`)}}while(!this.tokens.matchesContextIdAndLabel(te.TokenType.braceR,ue)){if(se<ne.length&&this.tokens.currentIndex()===ne[se].start){let b=false;if(this.tokens.matches1(te.TokenType.bracketL)){this.tokens.copyTokenWithPrefix(`${ne[se].initializerName}() {this`)}else if(this.tokens.matches1(te.TokenType.string)||this.tokens.matches1(te.TokenType.num)){this.tokens.copyTokenWithPrefix(`${ne[se].initializerName}() {this[`);b=true}else{this.tokens.copyTokenWithPrefix(`${ne[se].initializerName}() {this.`)}while(this.tokens.currentIndex()<ne[se].end){if(b&&this.tokens.currentIndex()===ne[se].equalsIndex){this.tokens.appendCode("]")}this.processToken()}this.tokens.appendCode("}");se++}else if(ae<oe.length&&this.tokens.currentIndex()>=oe[ae].start){if(this.tokens.currentIndex()<oe[ae].end){this.tokens.removeInitialToken()}while(this.tokens.currentIndex()<oe[ae].end){this.tokens.removeToken()}ae++}else if(this.tokens.currentIndex()===ee){this.tokens.copyToken();if(ce){this.tokens.appendCode(`;${this.makeConstructorInitCode(re,ie,S)};`)}this.processToken()}else{this.processToken()}}this.tokens.copyExpectedToken(te.TokenType.braceR)}makeConstructorInitCode(b,S,J){return[...b,...S.map((b=>`${J}.prototype.${b}.call(this)`))].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(te.TokenType.parenR,te.TokenType.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let b=this.tokens.currentIndex()+1;while(this.tokens.tokens[b].isType){b++}if(this.tokens.matches1AtIndex(b,te.TokenType.arrow)){this.tokens.removeInitialToken();while(this.tokens.currentIndex()<b){this.tokens.removeToken()}this.tokens.replaceTokenTrimmingLeftWhitespace(") =>");return true}}return false}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(ee.ContextualKeyword._async)&&!this.tokens.matches1(te.TokenType._async)){return false}const b=this.tokens.tokenAtRelativeIndex(1);if(b.type!==te.TokenType.lessThan||!b.isType){return false}let S=this.tokens.currentIndex()+1;while(this.tokens.tokens[S].isType){S++}if(this.tokens.matches1AtIndex(S,te.TokenType.parenL)){this.tokens.replaceToken("async (");this.tokens.removeInitialToken();while(this.tokens.currentIndex()<S){this.tokens.removeToken()}this.tokens.removeToken();this.processBalancedCode();this.processToken();return true}return false}processPossibleTypeRange(){if(this.tokens.currentToken().isType){this.tokens.removeInitialToken();while(this.tokens.currentToken().isType){this.tokens.removeToken()}return true}return false}}S["default"]=RootTransformer},79638:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});class Transformer{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}S["default"]=Transformer},59258:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(58256);var te=J(16197);var re=_interopRequireDefault(te);var ne=J(79638);var ie=_interopRequireDefault(ne);class TypeScriptTransformer extends ie.default{constructor(b,S,J){super();this.rootTransformer=b;this.tokens=S;this.isImportsTransformEnabled=J}process(){if(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()){return true}if(this.tokens.matches1(ee.TokenType._public)||this.tokens.matches1(ee.TokenType._protected)||this.tokens.matches1(ee.TokenType._private)||this.tokens.matches1(ee.TokenType._abstract)||this.tokens.matches1(ee.TokenType._readonly)||this.tokens.matches1(ee.TokenType._override)||this.tokens.matches1(ee.TokenType.nonNullAssertion)){this.tokens.removeInitialToken();return true}if(this.tokens.matches1(ee.TokenType._enum)||this.tokens.matches2(ee.TokenType._const,ee.TokenType._enum)){this.processEnum();return true}if(this.tokens.matches2(ee.TokenType._export,ee.TokenType._enum)||this.tokens.matches3(ee.TokenType._export,ee.TokenType._const,ee.TokenType._enum)){this.processEnum(true);return true}return false}processEnum(b=false){this.tokens.removeInitialToken();while(this.tokens.matches1(ee.TokenType._const)||this.tokens.matches1(ee.TokenType._enum)){this.tokens.removeToken()}const S=this.tokens.identifierName();this.tokens.removeToken();if(b&&!this.isImportsTransformEnabled){this.tokens.appendCode("export ")}this.tokens.appendCode(`var ${S}; (function (${S})`);this.tokens.copyExpectedToken(ee.TokenType.braceL);this.processEnumBody(S);this.tokens.copyExpectedToken(ee.TokenType.braceR);if(b&&this.isImportsTransformEnabled){this.tokens.appendCode(`)(${S} || (exports.${S} = ${S} = {}));`)}else{this.tokens.appendCode(`)(${S} || (${S} = {}));`)}}processEnumBody(b){let S=null;while(true){if(this.tokens.matches1(ee.TokenType.braceR)){break}const{nameStringCode:J,variableName:te}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken();if(this.tokens.matches3(ee.TokenType.eq,ee.TokenType.string,ee.TokenType.comma)||this.tokens.matches3(ee.TokenType.eq,ee.TokenType.string,ee.TokenType.braceR)){this.processStringLiteralEnumMember(b,J,te)}else if(this.tokens.matches1(ee.TokenType.eq)){this.processExplicitValueEnumMember(b,J,te)}else{this.processImplicitValueEnumMember(b,J,te,S)}if(this.tokens.matches1(ee.TokenType.comma)){this.tokens.removeToken()}if(te!=null){S=te}else{S=`${b}[${J}]`}}}extractEnumKeyInfo(b){if(b.type===ee.TokenType.name){const S=this.tokens.identifierNameForToken(b);return{nameStringCode:`"${S}"`,variableName:re.default.call(void 0,S)?S:null}}else if(b.type===ee.TokenType.string){const S=this.tokens.stringValueForToken(b);return{nameStringCode:this.tokens.code.slice(b.start,b.end),variableName:re.default.call(void 0,S)?S:null}}else{throw new Error("Expected name or string at beginning of enum element.")}}processStringLiteralEnumMember(b,S,J){if(J!=null){this.tokens.appendCode(`const ${J}`);this.tokens.copyToken();this.tokens.copyToken();this.tokens.appendCode(`; ${b}[${S}] = ${J};`)}else{this.tokens.appendCode(`${b}[${S}]`);this.tokens.copyToken();this.tokens.copyToken();this.tokens.appendCode(";")}}processExplicitValueEnumMember(b,S,J){const ee=this.tokens.currentToken().rhsEndIndex;if(ee==null){throw new Error("Expected rhsEndIndex on enum assign.")}if(J!=null){this.tokens.appendCode(`const ${J}`);this.tokens.copyToken();while(this.tokens.currentIndex()<ee){this.rootTransformer.processToken()}this.tokens.appendCode(`; ${b}[${b}[${S}] = ${J}] = ${S};`)}else{this.tokens.appendCode(`${b}[${b}[${S}]`);this.tokens.copyToken();while(this.tokens.currentIndex()<ee){this.rootTransformer.processToken()}this.tokens.appendCode(`] = ${S};`)}}processImplicitValueEnumMember(b,S,J,ee){let te=ee!=null?`${ee} + 1`:"0";if(J!=null){this.tokens.appendCode(`const ${J} = ${te}; `);te=J}this.tokens.appendCode(`${b}[${b}[${S}] = ${te}] = ${S};`)}}S["default"]=TypeScriptTransformer},27127:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(58256);function elideImportEquals(b){b.removeInitialToken();b.removeToken();b.removeToken();b.removeToken();if(b.matches1(ee.TokenType.parenL)){b.removeToken();b.removeToken();b.removeToken()}else{while(b.matches1(ee.TokenType.dot)){b.removeToken();b.removeToken()}}}S["default"]=elideImportEquals},40498:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(26356);var te=_interopRequireDefault(ee);var re=J(58256);function formatTokens(b,S){if(S.length===0){return""}const J=Object.keys(S[0]).filter((b=>b!=="type"&&b!=="value"&&b!=="start"&&b!=="end"&&b!=="loc"));const ee=Object.keys(S[0].type).filter((b=>b!=="label"&&b!=="keyword"));const ne=["Location","Label","Raw",...J,...ee];const ie=new(0,te.default)(b);const oe=[ne,...S.map(getTokenComponents)];const se=ne.map((()=>0));for(const b of oe){for(let S=0;S<b.length;S++){se[S]=Math.max(se[S],b[S].length)}}return oe.map((b=>b.map(((b,S)=>b.padEnd(se[S]))).join(" "))).join("\n");function getTokenComponents(S){const te=b.slice(S.start,S.end);return[formatRange(S.start,S.end),re.formatTokenType.call(void 0,S.type),truncate(String(te),14),...J.map((b=>formatValue(S[b],b))),...ee.map((b=>formatValue(S.type[b],b)))]}function formatValue(b,S){if(b===true){return S}else if(b===false||b===null){return""}else{return String(b)}}function formatRange(b,S){return`${formatPos(b)}-${formatPos(S)}`}function formatPos(b){const S=ie.locationForIndex(b);if(!S){return"Unknown"}else{return`${S.line+1}:${S.column+1}`}}}S["default"]=formatTokens;function truncate(b,S){if(b.length>S){return`${b.slice(0,S-3)}...`}else{return b}}},22249:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(61346);var te=J(58256);function getClassInfo(b,S,J,re){const ne=S.snapshot();const ie=processClassHeader(S);let oe=[];const se=[];const ae=[];let ue=null;const ce=[];const le=[];const pe=S.currentToken().contextId;if(pe==null){throw new Error("Expected non-null class context ID on class open-brace.")}S.nextToken();while(!S.matchesContextIdAndLabel(te.TokenType.braceR,pe)){if(S.matchesContextual(ee.ContextualKeyword._constructor)&&!S.currentToken().isType){({constructorInitializerStatements:oe,constructorInsertPos:ue}=processConstructor(S))}else if(S.matches1(te.TokenType.semi)){if(!re){le.push({start:S.currentIndex(),end:S.currentIndex()+1})}S.nextToken()}else if(S.currentToken().isType){S.nextToken()}else{const ne=S.currentIndex();let ie=false;let fe=false;let de=false;while(isAccessModifier(S.currentToken())){if(S.matches1(te.TokenType._static)){ie=true}if(S.matches1(te.TokenType.hash)){fe=true}if(S.matches1(te.TokenType._declare)){de=true}S.nextToken()}if(ie&&S.matches1(te.TokenType.braceL)){skipToNextClassElement(S,pe);continue}if(fe){skipToNextClassElement(S,pe);continue}if(S.matchesContextual(ee.ContextualKeyword._constructor)&&!S.currentToken().isType){({constructorInitializerStatements:oe,constructorInsertPos:ue}=processConstructor(S));continue}const he=S.currentIndex();skipFieldName(S);if(S.matches1(te.TokenType.lessThan)||S.matches1(te.TokenType.parenL)){skipToNextClassElement(S,pe);continue}while(S.currentToken().isType){S.nextToken()}if(S.matches1(te.TokenType.eq)){const ee=S.currentIndex();const te=S.currentToken().rhsEndIndex;if(te==null){throw new Error("Expected rhsEndIndex on class field assignment.")}S.nextToken();while(S.currentIndex()<te){b.processToken()}let re;if(ie){re=J.claimFreeName("__initStatic");ae.push(re)}else{re=J.claimFreeName("__init");se.push(re)}ce.push({initializerName:re,equalsIndex:ee,start:he,end:S.currentIndex()})}else if(!re||de){le.push({start:ne,end:S.currentIndex()})}}}S.restoreToSnapshot(ne);if(re){return{headerInfo:ie,constructorInitializerStatements:oe,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:ue,fields:[],rangesToRemove:le}}else{return{headerInfo:ie,constructorInitializerStatements:oe,instanceInitializerNames:se,staticInitializerNames:ae,constructorInsertPos:ue,fields:ce,rangesToRemove:le}}}S["default"]=getClassInfo;function skipToNextClassElement(b,S){b.nextToken();while(b.currentToken().contextId!==S){b.nextToken()}while(isAccessModifier(b.tokenAtRelativeIndex(-1))){b.previousToken()}}function processClassHeader(b){const S=b.currentToken();const J=S.contextId;if(J==null){throw new Error("Expected context ID on class token.")}const ee=S.isExpression;if(ee==null){throw new Error("Expected isExpression on class token.")}let re=null;let ne=false;b.nextToken();if(b.matches1(te.TokenType.name)){re=b.identifierName()}while(!b.matchesContextIdAndLabel(te.TokenType.braceL,J)){if(b.matches1(te.TokenType._extends)&&!b.currentToken().isType){ne=true}b.nextToken()}return{isExpression:ee,className:re,hasSuperclass:ne}}function processConstructor(b){const S=[];b.nextToken();const J=b.currentToken().contextId;if(J==null){throw new Error("Expected context ID on open-paren starting constructor params.")}while(!b.matchesContextIdAndLabel(te.TokenType.parenR,J)){if(b.currentToken().contextId===J){b.nextToken();if(isAccessModifier(b.currentToken())){b.nextToken();while(isAccessModifier(b.currentToken())){b.nextToken()}const J=b.currentToken();if(J.type!==te.TokenType.name){throw new Error("Expected identifier after access modifiers in constructor arg.")}const ee=b.identifierNameForToken(J);S.push(`this.${ee} = ${ee}`)}}else{b.nextToken()}}b.nextToken();let ee=b.currentIndex();let re=false;while(!b.matchesContextIdAndLabel(te.TokenType.braceR,J)){if(!re&&b.matches2(te.TokenType._super,te.TokenType.parenL)){b.nextToken();const S=b.currentToken().contextId;if(S==null){throw new Error("Expected a context ID on the super call")}while(!b.matchesContextIdAndLabel(te.TokenType.parenR,S)){b.nextToken()}ee=b.currentIndex();re=true}b.nextToken()}b.nextToken();return{constructorInitializerStatements:S,constructorInsertPos:ee}}function isAccessModifier(b){return[te.TokenType._async,te.TokenType._get,te.TokenType._set,te.TokenType.plus,te.TokenType.minus,te.TokenType._readonly,te.TokenType._static,te.TokenType._public,te.TokenType._private,te.TokenType._protected,te.TokenType._override,te.TokenType._abstract,te.TokenType.star,te.TokenType._declare,te.TokenType.hash].includes(b.type)}function skipFieldName(b){if(b.matches1(te.TokenType.bracketL)){const S=b.currentToken();const J=S.contextId;if(J==null){throw new Error("Expected class context ID on computed name open bracket.")}while(!b.matchesContextIdAndLabel(te.TokenType.bracketR,J)){b.nextToken()}b.nextToken()}else{b.nextToken()}}},17189:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(92740);var te=J(58256);const re={typeDeclarations:new Set,valueDeclarations:new Set};S.EMPTY_DECLARATION_INFO=re;function getDeclarationInfo(b){const S=new Set;const J=new Set;for(let re=0;re<b.tokens.length;re++){const ne=b.tokens[re];if(ne.type===te.TokenType.name&&ee.isTopLevelDeclaration.call(void 0,ne)){if(ne.isType){S.add(b.identifierNameForToken(ne))}else{J.add(b.identifierNameForToken(ne))}}}return{typeDeclarations:S,valueDeclarations:J}}S["default"]=getDeclarationInfo},19666:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(58256);function getIdentifierNames(b,S){const J=[];for(const te of S){if(te.type===ee.TokenType.name){J.push(b.slice(te.start,te.end))}}return J}S["default"]=getIdentifierNames},65651:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function getJSXPragmaInfo(b){const[S,J]=splitPragma(b.jsxPragma||"React.createElement");const[ee,te]=splitPragma(b.jsxFragmentPragma||"React.Fragment");return{base:S,suffix:J,fragmentBase:ee,fragmentSuffix:te}}S["default"]=getJSXPragmaInfo;function splitPragma(b){let S=b.indexOf(".");if(S===-1){S=b.length}return[b.slice(0,S),b.slice(S)]}},89416:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var ee=J(92740);var te=J(58256);var re=J(19497);var ne=J(65651);var ie=_interopRequireDefault(ne);function getNonTypeIdentifiers(b,S){const J=ie.default.call(void 0,S);const ne=new Set;for(let S=0;S<b.tokens.length;S++){const ie=b.tokens[S];if(ie.type===te.TokenType.name&&!ie.isType&&(ie.identifierRole===ee.IdentifierRole.Access||ie.identifierRole===ee.IdentifierRole.ObjectShorthand||ie.identifierRole===ee.IdentifierRole.ExportAccess)&&!ie.shadowsGlobal){ne.add(b.identifierNameForToken(ie))}if(ie.type===te.TokenType.jsxTagStart){ne.add(J.base)}if(ie.type===te.TokenType.jsxTagStart&&S+1<b.tokens.length&&b.tokens[S+1].type===te.TokenType.jsxTagEnd){ne.add(J.base);ne.add(J.fragmentBase)}if(ie.type===te.TokenType.jsxName&&ie.identifierRole===ee.IdentifierRole.Access){const J=b.identifierNameForToken(ie);if(!re.startsWithLowerCase.call(void 0,J)||b.tokens[S+1].type===te.TokenType.dot){ne.add(b.identifierNameForToken(ie))}}}return ne}S.getNonTypeIdentifiers=getNonTypeIdentifiers},81973:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(61346);var te=J(58256);function getTSImportedNames(b){const S=new Set;for(let J=0;J<b.tokens.length;J++){if(b.matches1AtIndex(J,te.TokenType._import)&&!b.matches3AtIndex(J,te.TokenType._import,te.TokenType.name,te.TokenType.eq)){collectNamesForImport(b,J,S)}}return S}S["default"]=getTSImportedNames;function collectNamesForImport(b,S,J){S++;if(b.matches1AtIndex(S,te.TokenType.parenL)){return}if(b.matches1AtIndex(S,te.TokenType.name)){J.add(b.identifierNameAtIndex(S));S++;if(b.matches1AtIndex(S,te.TokenType.comma)){S++}}if(b.matches1AtIndex(S,te.TokenType.star)){S+=2;J.add(b.identifierNameAtIndex(S));S++}if(b.matches1AtIndex(S,te.TokenType.braceL)){S++;collectNamesForNamedImport(b,S,J)}}function collectNamesForNamedImport(b,S,J){while(true){if(b.matches1AtIndex(S,te.TokenType.braceR)){return}let re=b.identifierNameAtIndex(S);S++;if(b.matchesContextualAtIndex(S,ee.ContextualKeyword._as)){S++;re=b.identifierNameAtIndex(S);S++}J.add(re);if(b.matches2AtIndex(S,te.TokenType.comma,te.TokenType.braceR)){return}else if(b.matches1AtIndex(S,te.TokenType.braceR)){return}else if(b.matches1AtIndex(S,te.TokenType.comma)){S++}else{throw new Error(`Unexpected token: ${JSON.stringify(b.tokens[S])}`)}}}},77995:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(61346);function isAsyncOperation(b){let S=b.currentIndex();let J=0;const te=b.currentToken();do{const re=b.tokens[S];if(re.isOptionalChainStart){J++}if(re.isOptionalChainEnd){J--}J+=re.numNullishCoalesceStarts;J-=re.numNullishCoalesceEnds;if(re.contextualKeyword===ee.ContextualKeyword._await&&re.identifierRole==null&&re.scopeDepth===te.scopeDepth){return true}S+=1}while(J>0&&S<b.tokens.length);return false}S["default"]=isAsyncOperation},16197:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(91795);const te=new Set(["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","yield","enum","implements","interface","let","package","private","protected","public","static","await"]);function isIdentifier(b){if(b.length===0){return false}if(!ee.IS_IDENTIFIER_START[b.charCodeAt(0)]){return false}for(let S=1;S<b.length;S++){if(!ee.IS_IDENTIFIER_CHAR[b.charCodeAt(S)]){return false}}return!te.has(b)}S["default"]=isIdentifier},49105:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee=J(58256);function shouldElideDefaultExport(b,S,J){if(!b){return false}const te=S.currentToken();if(te.rhsEndIndex==null){throw new Error("Expected non-null rhsEndIndex on export token.")}const re=te.rhsEndIndex-S.currentIndex();if(re!==3&&!(re===4&&S.matches1AtIndex(te.rhsEndIndex-1,ee.TokenType.semi))){return false}const ne=S.tokenAtRelativeIndex(2);if(ne.type!==ee.TokenType.name){return false}const ie=S.identifierNameForToken(ne);return J.typeDeclarations.has(ie)&&!J.valueDeclarations.has(ie)}S["default"]=shouldElideDefaultExport},75667:(b,S,J)=>{var ee={child:J(32081),crypto:J(6113),fs:J(57147),os:J(22037),path:J(71017),process:process,util:J(73837)};function Attempt(b,S){var J=ee.process.platform;if(J==="darwin")return Mac(b,S);if(J==="linux")return Linux(b,S);if(J==="win32")return Windows(b,S);S(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(b){if(typeof b!=="string")throw new Error("Expected a string.");return b.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var b=arguments[0];var S={};var end=function(){};if(typeof b!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(ee.util.isObject(arguments[1])){S=arguments[1]}else if(ee.util.isFunction(arguments[1])){end=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(ee.util.isObject(arguments[1])){S=arguments[1]}else{throw new Error("Expected options to be an object.")}if(ee.util.isFunction(arguments[2])){end=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(b)){return end(new Error('Command should not be prefixed with "sudo".'))}if(typeof S.name==="undefined"){var J=ee.process.title;if(ValidName(J)){S.name=J}else{return end(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(S.name)){var te="";te+="options.name must be alphanumeric only ";te+="(spaces are allowed) and <= 70 characters.";return end(new Error(te))}if(typeof S.icns!=="undefined"){if(typeof S.icns!=="string"){return end(new Error("options.icns must be a string if provided."))}else if(S.icns.trim().length===0){return end(new Error("options.icns must not be empty if provided."))}}if(typeof S.env!=="undefined"){if(typeof S.env!=="object"){return end(new Error("options.env must be an object if provided."))}else if(Object.keys(S.env).length===0){return end(new Error("options.env must not be empty if provided."))}else{for(var re in S.env){var ne=S.env[re];if(typeof re!=="string"||typeof ne!=="string"){return end(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(re)){return end(new Error("options.env has an invalid environment variable name: "+JSON.stringify(re)))}if(/[\r\n]/.test(ne)){return end(new Error("options.env has an invalid environment variable value: "+JSON.stringify(ne)))}}}}var ie=ee.process.platform;if(ie!=="darwin"&&ie!=="linux"&&ie!=="win32"){return end(new Error("Platform not yet supported."))}var oe={command:b,options:S,uuid:undefined,path:undefined};Attempt(oe,end)}function Linux(b,S){LinuxBinary(b,(function(J,te){if(J)return S(J);var oe=[];oe.push('cd "'+EscapeDoubleQuotes(ee.process.cwd())+'";');for(var se in b.options.env){var ae=b.options.env[se];oe.push("export "+se+'="'+EscapeDoubleQuotes(ae)+'";')}oe.push('"'+EscapeDoubleQuotes(te)+'"');if(/kdesudo/i.test(te)){oe.push("--comment",'"'+b.options.name+" wants to make changes. "+'Enter your password to allow this."');oe.push("-d");oe.push("--")}else if(/pkexec/i.test(te)){oe.push("--disable-internal-agent")}var ue="SUDOPROMPT\n";oe.push('/bin/bash -c "echo '+EscapeDoubleQuotes(ue.trim())+"; "+EscapeDoubleQuotes(b.command)+'"');oe=oe.join(" ");ee.child.exec(oe,{encoding:"utf-8",maxBuffer:ie},(function(b,J,ee){var te=J&&J.slice(0,ue.length)===ue;if(te)J=J.slice(ue.length);if(b&&!te){if(/No authentication agent found/.test(ee)){b.message=ne}else{b.message=re}}S(b,J,ee)}))}))}function LinuxBinary(b,S){var J=0;var te=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(J===te.length){return S(new Error("Unable to find pkexec or kdesudo."))}var b=te[J++];ee.fs.stat(b,(function(J){if(J){if(J.code==="ENOTDIR")return test();if(J.code==="ENOENT")return test();S(J)}else{S(undefined,b)}}))}test()}function Mac(b,S){var J=ee.os.tmpdir();if(!J)return S(new Error("os.tmpdir() not defined."));var te=ee.process.env.USER;if(!te)return S(new Error("env['USER'] not defined."));UUID(b,(function(te,re){if(te)return S(te);b.uuid=re;b.path=ee.path.join(J,b.uuid,b.options.name+".app");function end(J,te,re){Remove(ee.path.dirname(b.path),(function(b){if(J)return S(J);if(b)return S(b);S(undefined,te,re)}))}MacApplet(b,(function(S,J,ee){if(S)return end(S,J,ee);MacIcon(b,(function(S){if(S)return end(S);MacPropertyList(b,(function(S,J,ee){if(S)return end(S,J,ee);MacCommand(b,(function(S){if(S)return end(S);MacOpen(b,(function(S,J,ee){if(S)return end(S,J,ee);MacResult(b,end)}))}))}))}))}))}))}function MacApplet(b,S){var J=ee.path.dirname(b.path);ee.fs.mkdir(J,(function(re){if(re)return S(re);var ne=ee.path.join(J,"sudo-prompt-applet.zip");ee.fs.writeFile(ne,te,"base64",(function(J){if(J)return S(J);var te=[];te.push("/usr/bin/unzip");te.push("-o");te.push('"'+EscapeDoubleQuotes(ne)+'"');te.push('-d "'+EscapeDoubleQuotes(b.path)+'"');te=te.join(" ");ee.child.exec(te,{encoding:"utf-8"},S)}))}))}function MacCommand(b,S){var J=ee.path.join(b.path,"Contents","MacOS","sudo-prompt-command");var te=[];te.push('cd "'+EscapeDoubleQuotes(ee.process.cwd())+'"');for(var re in b.options.env){var ne=b.options.env[re];te.push("export "+re+'="'+EscapeDoubleQuotes(ne)+'"')}te.push(b.command);te=te.join("\n");ee.fs.writeFile(J,te,"utf-8",S)}function MacIcon(b,S){if(!b.options.icns)return S();ee.fs.readFile(b.options.icns,(function(J,te){if(J)return S(J);var re=ee.path.join(b.path,"Contents","Resources","applet.icns");ee.fs.writeFile(re,te,S)}))}function MacOpen(b,S){var J=ee.path.join(b.path,"Contents","MacOS","applet");var te={cwd:ee.path.dirname(J),encoding:"utf-8"};ee.child.exec("./"+ee.path.basename(J),te,S)}function MacPropertyList(b,S){var J=ee.path.join(b.path,"Contents","Info.plist");var te=EscapeDoubleQuotes(J);var re=EscapeDoubleQuotes("CFBundleName");var ne=b.options.name+" Password Prompt";if(/'/.test(ne)){return S(new Error("Value should not contain single quotes."))}var ie=[];ie.push("/usr/bin/defaults");ie.push("write");ie.push('"'+te+'"');ie.push('"'+re+'"');ie.push("'"+ne+"'");ie=ie.join(" ");ee.child.exec(ie,{encoding:"utf-8"},S)}function MacResult(b,S){var J=ee.path.join(b.path,"Contents","MacOS");ee.fs.readFile(ee.path.join(J,"code"),"utf-8",(function(te,ne){if(te){if(te.code==="ENOENT")return S(new Error(re));S(te)}else{ee.fs.readFile(ee.path.join(J,"stdout"),"utf-8",(function(te,re){if(te)return S(te);ee.fs.readFile(ee.path.join(J,"stderr"),"utf-8",(function(J,ee){if(J)return S(J);ne=parseInt(ne.trim(),10);if(ne===0){S(undefined,re,ee)}else{J=new Error("Command failed: "+b.command+"\n"+ee);J.code=ne;S(J,re,ee)}}))}))}}))}function Remove(b,S){if(typeof b!=="string"||!b.trim()){return S(new Error("Argument path not defined."))}var J=[];if(ee.process.platform==="win32"){if(/"/.test(b)){return S(new Error("Argument path cannot contain double-quotes."))}J.push('rmdir /s /q "'+b+'"')}else{J.push("/bin/rm");J.push("-rf");J.push('"'+EscapeDoubleQuotes(ee.path.normalize(b))+'"')}J=J.join(" ");ee.child.exec(J,{encoding:"utf-8"},S)}function UUID(b,S){ee.crypto.randomBytes(256,(function(J,te){if(J)te=Date.now()+""+Math.random();var re=ee.crypto.createHash("SHA256");re.update("sudo-prompt-3");re.update(b.options.name);re.update(b.command);re.update(te);var ne=re.digest("hex").slice(-32);if(!ne||typeof ne!=="string"||ne.length!==32){return S(new Error("Expected a valid UUID."))}S(undefined,ne)}))}function ValidName(b){if(!/^[a-z0-9 ]+$/i.test(b))return false;if(b.trim().length===0)return false;if(b.length>70)return false;return true}function Windows(b,S){var J=ee.os.tmpdir();if(!J)return S(new Error("os.tmpdir() not defined."));UUID(b,(function(te,re){if(te)return S(te);b.uuid=re;b.path=ee.path.join(J,b.uuid);if(/"/.test(b.path)){return S(new Error("instance.path cannot contain double-quotes."))}b.pathElevate=ee.path.join(b.path,"elevate.vbs");b.pathExecute=ee.path.join(b.path,"execute.bat");b.pathCommand=ee.path.join(b.path,"command.bat");b.pathStdout=ee.path.join(b.path,"stdout");b.pathStderr=ee.path.join(b.path,"stderr");b.pathStatus=ee.path.join(b.path,"status");ee.fs.mkdir(b.path,(function(J){if(J)return S(J);function end(J,ee,te){Remove(b.path,(function(b){if(J)return S(J);if(b)return S(b);S(undefined,ee,te)}))}WindowsWriteExecuteScript(b,(function(S){if(S)return end(S);WindowsWriteCommandScript(b,(function(S){if(S)return end(S);WindowsElevate(b,(function(S,J,ee){if(S)return end(S,J,ee);WindowsWaitForStatus(b,(function(S){if(S)return end(S);WindowsResult(b,end)}))}))}))}))}))}))}function WindowsElevate(b,S){var J=[];J.push("powershell.exe");J.push("Start-Process");J.push("-FilePath");J.push("\"'"+b.pathExecute.replace(/'/g,"`'")+"'\"");J.push("-WindowStyle hidden");J.push("-Verb runAs");J=J.join(" ");var te=ee.child.exec(J,{encoding:"utf-8"},(function(b,J,ee){if(b)return S(new Error(re),J,ee);S()}));te.stdin.end()}function WindowsResult(b,S){ee.fs.readFile(b.pathStatus,"utf-8",(function(J,te){if(J)return S(J);ee.fs.readFile(b.pathStdout,"utf-8",(function(J,re){if(J)return S(J);ee.fs.readFile(b.pathStderr,"utf-8",(function(J,ee){if(J)return S(J);te=parseInt(te.trim(),10);if(te===0){S(undefined,re,ee)}else{J=new Error("Command failed: "+b.command+"\r\n"+ee);J.code=te;S(J,re,ee)}}))}))}))}function WindowsWaitForStatus(b,S){ee.fs.stat(b.pathStatus,(function(J,te){if(J&&J.code==="ENOENT"||te.size<2){setTimeout((function(){ee.fs.stat(b.pathStdout,(function(J){if(J)return S(new Error(re));WindowsWaitForStatus(b,S)}))}),1e3)}else if(J){S(J)}else{S()}}))}function WindowsWriteCommandScript(b,S){var J=ee.process.cwd();if(/"/.test(J)){return S(new Error("process.cwd() cannot contain double-quotes."))}var te=[];te.push("@echo off");te.push("chcp 65001>nul");te.push('cd /d "'+J+'"');for(var re in b.options.env){var ne=b.options.env[re];te.push("set "+re+"="+ne.replace(/([<>\\|&^])/g,"^$1"))}te.push(b.command);te=te.join("\r\n");ee.fs.writeFile(b.pathCommand,te,"utf-8",S)}function WindowsWriteElevateScript(b,S){}function WindowsWriteExecuteScript(b,S){var J=[];J.push("@echo off");J.push('call "'+b.pathCommand+'"'+' > "'+b.pathStdout+'" 2> "'+b.pathStderr+'"');J.push('(echo %ERRORLEVEL%) > "'+b.pathStatus+'"');J=J.join("\r\n");ee.fs.writeFile(b.pathExecute,J,"utf-8",S)}b.exports.exec=Exec;var te="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var re="User did not grant permission.";var ne="No polkit authentication agent found.";var ie=134217728},30395:(b,S,J)=>{"use strict";const ee=J(22037);const te=J(76224);const re=J(76738);const{env:ne}=process;let ie;if(re("no-color")||re("no-colors")||re("color=false")||re("color=never")){ie=0}else if(re("color")||re("colors")||re("color=true")||re("color=always")){ie=1}if("FORCE_COLOR"in ne){if(ne.FORCE_COLOR==="true"){ie=1}else if(ne.FORCE_COLOR==="false"){ie=0}else{ie=ne.FORCE_COLOR.length===0?1:Math.min(parseInt(ne.FORCE_COLOR,10),3)}}function translateLevel(b){if(b===0){return false}return{level:b,hasBasic:true,has256:b>=2,has16m:b>=3}}function supportsColor(b,S){if(ie===0){return 0}if(re("color=16m")||re("color=full")||re("color=truecolor")){return 3}if(re("color=256")){return 2}if(b&&!S&&ie===undefined){return 0}const J=ie||0;if(ne.TERM==="dumb"){return J}if(process.platform==="win32"){const b=ee.release().split(".");if(Number(b[0])>=10&&Number(b[2])>=10586){return Number(b[2])>=14931?3:2}return 1}if("CI"in ne){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((b=>b in ne))||ne.CI_NAME==="codeship"){return 1}return J}if("TEAMCITY_VERSION"in ne){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in ne){return 1}if(ne.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in ne){const b=parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return b>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ne.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)){return 1}if("COLORTERM"in ne){return 1}return J}function getSupportLevel(b){const S=supportsColor(b,b&&b.isTTY);return translateLevel(S)}b.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,te.isatty(1))),stderr:translateLevel(supportsColor(true,te.isatty(2)))}},11746:(b,S,J)=>{var ee=J(12781);S=b.exports=through;through.through=through;function through(b,S,J){b=b||function(b){this.queue(b)};S=S||function(){this.queue(null)};var te=false,re=false,ne=[],ie=false;var oe=new ee;oe.readable=oe.writable=true;oe.paused=false;oe.autoDestroy=!(J&&J.autoDestroy===false);oe.write=function(S){b.call(this,S);return!oe.paused};function drain(){while(ne.length&&!oe.paused){var b=ne.shift();if(null===b)return oe.emit("end");else oe.emit("data",b)}}oe.queue=oe.push=function(b){if(ie)return oe;if(b===null)ie=true;ne.push(b);drain();return oe};oe.on("end",(function(){oe.readable=false;if(!oe.writable&&oe.autoDestroy)process.nextTick((function(){oe.destroy()}))}));function _end(){oe.writable=false;S.call(oe);if(!oe.readable&&oe.autoDestroy)oe.destroy()}oe.end=function(b){if(te)return;te=true;if(arguments.length)oe.write(b);_end();return oe};oe.destroy=function(){if(re)return;re=true;te=true;ne.length=0;oe.writable=oe.readable=false;oe.emit("close");return oe};oe.pause=function(){if(oe.paused)return;oe.paused=true;return oe};oe.resume=function(){if(oe.paused){oe.paused=false;oe.emit("resume")}drain();if(!oe.paused)oe.emit("drain");return oe};return oe}},98674:function(b,S,J){"use strict";var ee=this&&this.__spreadArrays||function(){for(var b=0,S=0,J=arguments.length;S<J;S++)b+=arguments[S].length;for(var ee=Array(b),te=0,S=0;S<J;S++)for(var re=arguments[S],ne=0,ie=re.length;ne<ie;ne++,te++)ee[te]=re[ne];return ee};Object.defineProperty(S,"__esModule",{value:true});S.Checker=S.createCheckers=void 0;var te=J(4871);var re=J(63576);var ne=J(4871);Object.defineProperty(S,"TArray",{enumerable:true,get:function(){return ne.TArray}});Object.defineProperty(S,"TEnumType",{enumerable:true,get:function(){return ne.TEnumType}});Object.defineProperty(S,"TEnumLiteral",{enumerable:true,get:function(){return ne.TEnumLiteral}});Object.defineProperty(S,"TFunc",{enumerable:true,get:function(){return ne.TFunc}});Object.defineProperty(S,"TIface",{enumerable:true,get:function(){return ne.TIface}});Object.defineProperty(S,"TLiteral",{enumerable:true,get:function(){return ne.TLiteral}});Object.defineProperty(S,"TName",{enumerable:true,get:function(){return ne.TName}});Object.defineProperty(S,"TOptional",{enumerable:true,get:function(){return ne.TOptional}});Object.defineProperty(S,"TParam",{enumerable:true,get:function(){return ne.TParam}});Object.defineProperty(S,"TParamList",{enumerable:true,get:function(){return ne.TParamList}});Object.defineProperty(S,"TProp",{enumerable:true,get:function(){return ne.TProp}});Object.defineProperty(S,"TTuple",{enumerable:true,get:function(){return ne.TTuple}});Object.defineProperty(S,"TType",{enumerable:true,get:function(){return ne.TType}});Object.defineProperty(S,"TUnion",{enumerable:true,get:function(){return ne.TUnion}});Object.defineProperty(S,"TIntersection",{enumerable:true,get:function(){return ne.TIntersection}});Object.defineProperty(S,"array",{enumerable:true,get:function(){return ne.array}});Object.defineProperty(S,"enumlit",{enumerable:true,get:function(){return ne.enumlit}});Object.defineProperty(S,"enumtype",{enumerable:true,get:function(){return ne.enumtype}});Object.defineProperty(S,"func",{enumerable:true,get:function(){return ne.func}});Object.defineProperty(S,"iface",{enumerable:true,get:function(){return ne.iface}});Object.defineProperty(S,"lit",{enumerable:true,get:function(){return ne.lit}});Object.defineProperty(S,"name",{enumerable:true,get:function(){return ne.name}});Object.defineProperty(S,"opt",{enumerable:true,get:function(){return ne.opt}});Object.defineProperty(S,"param",{enumerable:true,get:function(){return ne.param}});Object.defineProperty(S,"tuple",{enumerable:true,get:function(){return ne.tuple}});Object.defineProperty(S,"union",{enumerable:true,get:function(){return ne.union}});Object.defineProperty(S,"intersection",{enumerable:true,get:function(){return ne.intersection}});Object.defineProperty(S,"BasicType",{enumerable:true,get:function(){return ne.BasicType}});var ie=J(63576);Object.defineProperty(S,"VError",{enumerable:true,get:function(){return ie.VError}});function createCheckers(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}var J=Object.assign.apply(Object,ee([{},te.basicTypes],b));var re={};for(var ne=0,ie=b;ne<ie.length;ne++){var se=ie[ne];for(var ae=0,ue=Object.keys(se);ae<ue.length;ae++){var ce=ue[ae];re[ce]=new oe(J,se[ce])}}return re}S.createCheckers=createCheckers;var oe=function(){function Checker(b,S,J){if(J===void 0){J="value"}this.suite=b;this.ttype=S;this._path=J;this.props=new Map;if(S instanceof te.TIface){for(var ee=0,re=S.props;ee<re.length;ee++){var ne=re[ee];this.props.set(ne.name,ne.ttype)}}this.checkerPlain=this.ttype.getChecker(b,false);this.checkerStrict=this.ttype.getChecker(b,true)}Checker.prototype.setReportedPath=function(b){this._path=b};Checker.prototype.check=function(b){return this._doCheck(this.checkerPlain,b)};Checker.prototype.test=function(b){return this.checkerPlain(b,new re.NoopContext)};Checker.prototype.validate=function(b){return this._doValidate(this.checkerPlain,b)};Checker.prototype.strictCheck=function(b){return this._doCheck(this.checkerStrict,b)};Checker.prototype.strictTest=function(b){return this.checkerStrict(b,new re.NoopContext)};Checker.prototype.strictValidate=function(b){return this._doValidate(this.checkerStrict,b)};Checker.prototype.getProp=function(b){var S=this.props.get(b);if(!S){throw new Error("Type has no property "+b)}return new Checker(this.suite,S,this._path+"."+b)};Checker.prototype.methodArgs=function(b){var S=this._getMethod(b);return new Checker(this.suite,S.paramList)};Checker.prototype.methodResult=function(b){var S=this._getMethod(b);return new Checker(this.suite,S.result)};Checker.prototype.getArgs=function(){if(!(this.ttype instanceof te.TFunc)){throw new Error("getArgs() applied to non-function")}return new Checker(this.suite,this.ttype.paramList)};Checker.prototype.getResult=function(){if(!(this.ttype instanceof te.TFunc)){throw new Error("getResult() applied to non-function")}return new Checker(this.suite,this.ttype.result)};Checker.prototype.getType=function(){return this.ttype};Checker.prototype._doCheck=function(b,S){var J=new re.NoopContext;if(!b(S,J)){var ee=new re.DetailContext;b(S,ee);throw ee.getError(this._path)}};Checker.prototype._doValidate=function(b,S){var J=new re.NoopContext;if(b(S,J)){return null}var ee=new re.DetailContext;b(S,ee);return ee.getErrorDetail(this._path)};Checker.prototype._getMethod=function(b){var S=this.props.get(b);if(!S){throw new Error("Type has no property "+b)}if(!(S instanceof te.TFunc)){throw new Error("Property "+b+" is not a method")}return S};return Checker}();S.Checker=oe},4871:function(b,S,J){"use strict";var ee=this&&this.__extends||function(){var extendStatics=function(b,S){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)if(S.hasOwnProperty(J))b[J]=S[J]};return extendStatics(b,S)};return function(b,S){extendStatics(b,S);function __(){this.constructor=b}b.prototype=S===null?Object.create(S):(__.prototype=S.prototype,new __)}}();Object.defineProperty(S,"__esModule",{value:true});S.basicTypes=S.BasicType=S.TParamList=S.TParam=S.param=S.TFunc=S.func=S.TProp=S.TOptional=S.opt=S.TIface=S.iface=S.TEnumLiteral=S.enumlit=S.TEnumType=S.enumtype=S.TIntersection=S.intersection=S.TUnion=S.union=S.TTuple=S.tuple=S.TArray=S.array=S.TLiteral=S.lit=S.TName=S.name=S.TType=void 0;var te=J(63576);var re=function(){function TType(){}return TType}();S.TType=re;function parseSpec(b){return typeof b==="string"?name(b):b}function getNamedType(b,S){var J=b[S];if(!J){throw new Error("Unknown type "+S)}return J}function name(b){return new ne(b)}S.name=name;var ne=function(b){ee(TName,b);function TName(S){var J=b.call(this)||this;J.name=S;J._failMsg="is not a "+S;return J}TName.prototype.getChecker=function(b,S,J){var ee=this;var te=getNamedType(b,this.name);var re=te.getChecker(b,S,J);if(te instanceof ye||te instanceof TName){return re}return function(b,S){return re(b,S)?true:S.fail(null,ee._failMsg,0)}};return TName}(re);S.TName=ne;function lit(b){return new ie(b)}S.lit=lit;var ie=function(b){ee(TLiteral,b);function TLiteral(S){var J=b.call(this)||this;J.value=S;J.name=JSON.stringify(S);J._failMsg="is not "+J.name;return J}TLiteral.prototype.getChecker=function(b,S){var J=this;return function(b,S){return b===J.value?true:S.fail(null,J._failMsg,-1)}};return TLiteral}(re);S.TLiteral=ie;function array(b){return new oe(parseSpec(b))}S.array=array;var oe=function(b){ee(TArray,b);function TArray(S){var J=b.call(this)||this;J.ttype=S;return J}TArray.prototype.getChecker=function(b,S){var J=this.ttype.getChecker(b,S);return function(b,S){if(!Array.isArray(b)){return S.fail(null,"is not an array",0)}for(var ee=0;ee<b.length;ee++){var te=J(b[ee],S);if(!te){return S.fail(ee,null,1)}}return true}};return TArray}(re);S.TArray=oe;function tuple(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}return new se(b.map((function(b){return parseSpec(b)})))}S.tuple=tuple;var se=function(b){ee(TTuple,b);function TTuple(S){var J=b.call(this)||this;J.ttypes=S;return J}TTuple.prototype.getChecker=function(b,S){var J=this.ttypes.map((function(J){return J.getChecker(b,S)}));var checker=function(b,S){if(!Array.isArray(b)){return S.fail(null,"is not an array",0)}for(var ee=0;ee<J.length;ee++){var te=J[ee](b[ee],S);if(!te){return S.fail(ee,null,1)}}return true};if(!S){return checker}return function(b,S){if(!checker(b,S)){return false}return b.length<=J.length?true:S.fail(J.length,"is extraneous",2)}};return TTuple}(re);S.TTuple=se;function union(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}return new ae(b.map((function(b){return parseSpec(b)})))}S.union=union;var ae=function(b){ee(TUnion,b);function TUnion(S){var J=b.call(this)||this;J.ttypes=S;var ee=S.map((function(b){return b instanceof ne||b instanceof ie?b.name:null})).filter((function(b){return b}));var te=S.length-ee.length;if(ee.length){if(te>0){ee.push(te+" more")}J._failMsg="is none of "+ee.join(", ")}else{J._failMsg="is none of "+te+" types"}return J}TUnion.prototype.getChecker=function(b,S){var J=this;var ee=this.ttypes.map((function(J){return J.getChecker(b,S)}));return function(b,S){var te=S.unionResolver();for(var re=0;re<ee.length;re++){var ne=ee[re](b,te.createContext());if(ne){return true}}S.resolveUnion(te);return S.fail(null,J._failMsg,0)}};return TUnion}(re);S.TUnion=ae;function intersection(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}return new ue(b.map((function(b){return parseSpec(b)})))}S.intersection=intersection;var ue=function(b){ee(TIntersection,b);function TIntersection(S){var J=b.call(this)||this;J.ttypes=S;return J}TIntersection.prototype.getChecker=function(b,S){var J=new Set;var ee=this.ttypes.map((function(ee){return ee.getChecker(b,S,J)}));return function(b,S){var J=ee.every((function(J){return J(b,S)}));if(J){return true}return S.fail(null,null,0)}};return TIntersection}(re);S.TIntersection=ue;function enumtype(b){return new ce(b)}S.enumtype=enumtype;var ce=function(b){ee(TEnumType,b);function TEnumType(S){var J=b.call(this)||this;J.members=S;J.validValues=new Set;J._failMsg="is not a valid enum value";J.validValues=new Set(Object.keys(S).map((function(b){return S[b]})));return J}TEnumType.prototype.getChecker=function(b,S){var J=this;return function(b,S){return J.validValues.has(b)?true:S.fail(null,J._failMsg,0)}};return TEnumType}(re);S.TEnumType=ce;function enumlit(b,S){return new le(b,S)}S.enumlit=enumlit;var le=function(b){ee(TEnumLiteral,b);function TEnumLiteral(S,J){var ee=b.call(this)||this;ee.enumName=S;ee.prop=J;ee._failMsg="is not "+S+"."+J;return ee}TEnumLiteral.prototype.getChecker=function(b,S){var J=this;var ee=getNamedType(b,this.enumName);if(!(ee instanceof ce)){throw new Error("Type "+this.enumName+" used in enumlit is not an enum type")}var te=ee.members[this.prop];if(!ee.members.hasOwnProperty(this.prop)){throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit")}return function(b,S){return b===te?true:S.fail(null,J._failMsg,-1)}};return TEnumLiteral}(re);S.TEnumLiteral=le;function makeIfaceProps(b){return Object.keys(b).map((function(S){return makeIfaceProp(S,b[S])}))}function makeIfaceProp(b,S){return S instanceof fe?new de(b,S.ttype,true):new de(b,parseSpec(S),false)}function iface(b,S){return new pe(b,makeIfaceProps(S))}S.iface=iface;var pe=function(b){ee(TIface,b);function TIface(S,J){var ee=b.call(this)||this;ee.bases=S;ee.props=J;ee.propSet=new Set(J.map((function(b){return b.name})));return ee}TIface.prototype.getChecker=function(b,S,J){var ee=this;var re=this.bases.map((function(J){return getNamedType(b,J).getChecker(b,S)}));var ne=this.props.map((function(J){return J.ttype.getChecker(b,S)}));var ie=new te.NoopContext;var oe=this.props.map((function(b,S){return!b.isOpt&&!ne[S](undefined,ie)}));var checker=function(b,S){if(typeof b!=="object"||b===null){return S.fail(null,"is not an object",0)}for(var J=0;J<re.length;J++){if(!re[J](b,S)){return false}}for(var J=0;J<ne.length;J++){var te=ee.props[J].name;var ie=b[te];if(ie===undefined){if(oe[J]){return S.fail(te,"is missing",1)}}else{var se=ne[J](ie,S);if(!se){return S.fail(te,null,1)}}}return true};if(!S){return checker}var se=this.propSet;if(J){this.propSet.forEach((function(b){return J.add(b)}));se=J}return function(b,S){if(!checker(b,S)){return false}for(var J in b){if(!se.has(J)){return S.fail(J,"is extraneous",2)}}return true}};return TIface}(re);S.TIface=pe;function opt(b){return new fe(parseSpec(b))}S.opt=opt;var fe=function(b){ee(TOptional,b);function TOptional(S){var J=b.call(this)||this;J.ttype=S;return J}TOptional.prototype.getChecker=function(b,S){var J=this.ttype.getChecker(b,S);return function(b,S){return b===undefined||J(b,S)}};return TOptional}(re);S.TOptional=fe;var de=function(){function TProp(b,S,J){this.name=b;this.ttype=S;this.isOpt=J}return TProp}();S.TProp=de;function func(b){var S=[];for(var J=1;J<arguments.length;J++){S[J-1]=arguments[J]}return new he(new ge(S),parseSpec(b))}S.func=func;var he=function(b){ee(TFunc,b);function TFunc(S,J){var ee=b.call(this)||this;ee.paramList=S;ee.result=J;return ee}TFunc.prototype.getChecker=function(b,S){return function(b,S){return typeof b==="function"?true:S.fail(null,"is not a function",0)}};return TFunc}(re);S.TFunc=he;function param(b,S,J){return new me(b,parseSpec(S),Boolean(J))}S.param=param;var me=function(){function TParam(b,S,J){this.name=b;this.ttype=S;this.isOpt=J}return TParam}();S.TParam=me;var ge=function(b){ee(TParamList,b);function TParamList(S){var J=b.call(this)||this;J.params=S;return J}TParamList.prototype.getChecker=function(b,S){var J=this;var ee=this.params.map((function(J){return J.ttype.getChecker(b,S)}));var re=new te.NoopContext;var ne=this.params.map((function(b,S){return!b.isOpt&&!ee[S](undefined,re)}));var checker=function(b,S){if(!Array.isArray(b)){return S.fail(null,"is not an array",0)}for(var te=0;te<ee.length;te++){var re=J.params[te];if(b[te]===undefined){if(ne[te]){return S.fail(re.name,"is missing",1)}}else{var ie=ee[te](b[te],S);if(!ie){return S.fail(re.name,null,1)}}}return true};if(!S){return checker}return function(b,S){if(!checker(b,S)){return false}return b.length<=ee.length?true:S.fail(ee.length,"is extraneous",2)}};return TParamList}(re);S.TParamList=ge;var ye=function(b){ee(BasicType,b);function BasicType(S,J){var ee=b.call(this)||this;ee.validator=S;ee.message=J;return ee}BasicType.prototype.getChecker=function(b,S){var J=this;return function(b,S){return J.validator(b)?true:S.fail(null,J.message,0)}};return BasicType}(re);S.BasicType=ye;S.basicTypes={any:new ye((function(b){return true}),"is invalid"),number:new ye((function(b){return typeof b==="number"}),"is not a number"),object:new ye((function(b){return typeof b==="object"&&b}),"is not an object"),boolean:new ye((function(b){return typeof b==="boolean"}),"is not a boolean"),string:new ye((function(b){return typeof b==="string"}),"is not a string"),symbol:new ye((function(b){return typeof b==="symbol"}),"is not a symbol"),void:new ye((function(b){return b==null}),"is not void"),undefined:new ye((function(b){return b===undefined}),"is not undefined"),null:new ye((function(b){return b===null}),"is not null"),never:new ye((function(b){return false}),"is unexpected"),Date:new ye(getIsNativeChecker("[object Date]"),"is not a Date"),RegExp:new ye(getIsNativeChecker("[object RegExp]"),"is not a RegExp")};var ve=Object.prototype.toString;function getIsNativeChecker(b){return function(S){return typeof S==="object"&&S&&ve.call(S)===b}}if(typeof Buffer!=="undefined"){S.basicTypes.Buffer=new ye((function(b){return Buffer.isBuffer(b)}),"is not a Buffer")}var _loop_1=function(b){S.basicTypes[b.name]=new ye((function(S){return S instanceof b}),"is not a "+b.name)};for(var Te=0,be=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Te<be.length;Te++){var Ee=be[Te];_loop_1(Ee)}},63576:function(b,S){"use strict";var J=this&&this.__extends||function(){var extendStatics=function(b,S){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)if(S.hasOwnProperty(J))b[J]=S[J]};return extendStatics(b,S)};return function(b,S){extendStatics(b,S);function __(){this.constructor=b}b.prototype=S===null?Object.create(S):(__.prototype=S.prototype,new __)}}();Object.defineProperty(S,"__esModule",{value:true});S.DetailContext=S.NoopContext=S.VError=void 0;var ee=function(b){J(VError,b);function VError(S,J){var ee=b.call(this,J)||this;ee.path=S;Object.setPrototypeOf(ee,VError.prototype);return ee}return VError}(Error);S.VError=ee;var te=function(){function NoopContext(){}NoopContext.prototype.fail=function(b,S,J){return false};NoopContext.prototype.unionResolver=function(){return this};NoopContext.prototype.createContext=function(){return this};NoopContext.prototype.resolveUnion=function(b){};return NoopContext}();S.NoopContext=te;var re=function(){function DetailContext(){this._propNames=[""];this._messages=[null];this._score=0}DetailContext.prototype.fail=function(b,S,J){this._propNames.push(b);this._messages.push(S);this._score+=J;return false};DetailContext.prototype.unionResolver=function(){return new ne};DetailContext.prototype.resolveUnion=function(b){var S,J;var ee=b;var te=null;for(var re=0,ne=ee.contexts;re<ne.length;re++){var ie=ne[re];if(!te||ie._score>=te._score){te=ie}}if(te&&te._score>0){(S=this._propNames).push.apply(S,te._propNames);(J=this._messages).push.apply(J,te._messages)}};DetailContext.prototype.getError=function(b){var S=[];for(var J=this._propNames.length-1;J>=0;J--){var te=this._propNames[J];b+=typeof te==="number"?"["+te+"]":te?"."+te:"";var re=this._messages[J];if(re){S.push(b+" "+re)}}return new ee(b,S.join("; "))};DetailContext.prototype.getErrorDetail=function(b){var S=[];for(var J=this._propNames.length-1;J>=0;J--){var ee=this._propNames[J];b+=typeof ee==="number"?"["+ee+"]":ee?"."+ee:"";var te=this._messages[J];if(te){S.push({path:b,message:te})}}var re=null;for(var J=S.length-1;J>=0;J--){if(re){S[J].nested=[re]}re=S[J]}return re};return DetailContext}();S.DetailContext=re;var ne=function(){function DetailUnionResolver(){this.contexts=[]}DetailUnionResolver.prototype.createContext=function(){var b=new re;this.contexts.push(b);return b};return DetailUnionResolver}()},45880:(b,S,J)=>{"use strict";var ee=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var te=J(55462);var re=["node_modules","favicon.ico"];var ne=b.exports=function(b){var S=[];var J=[];if(b===null){J.push("name cannot be null");return done(S,J)}if(b===undefined){J.push("name cannot be undefined");return done(S,J)}if(typeof b!=="string"){J.push("name must be a string");return done(S,J)}if(!b.length){J.push("name length must be greater than zero")}if(b.match(/^\./)){J.push("name cannot start with a period")}if(b.match(/^_/)){J.push("name cannot start with an underscore")}if(b.trim()!==b){J.push("name cannot contain leading or trailing spaces")}re.forEach((function(S){if(b.toLowerCase()===S){J.push(S+" is a blacklisted name")}}));te.forEach((function(J){if(b.toLowerCase()===J){S.push(J+" is a core module name")}}));if(b.length>214){S.push("name can no longer contain more than 214 characters")}if(b.toLowerCase()!==b){S.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(b.split("/").slice(-1)[0])){S.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(b)!==b){var ne=b.match(ee);if(ne){var ie=ne[1];var oe=ne[2];if(encodeURIComponent(ie)===ie&&encodeURIComponent(oe)===oe){return done(S,J)}}J.push("name can only contain URL-friendly characters")}return done(S,J)};ne.scopedPackagePattern=ee;var done=function(b,S){var J={validForNewPackages:S.length===0&&b.length===0,validForOldPackages:S.length===0,warnings:b,errors:S};if(!J.warnings.length)delete J.warnings;if(!J.errors.length)delete J.errors;return J}},84586:b=>{b.exports=wrappy;function wrappy(b,S){if(b&&S)return wrappy(b)(S);if(typeof b!=="function")throw new TypeError("need wrapper function");Object.keys(b).forEach((function(S){wrapper[S]=b[S]}));return wrapper;function wrapper(){var S=new Array(arguments.length);for(var J=0;J<S.length;J++){S[J]=arguments[J]}var ee=b.apply(this,S);var te=S[S.length-1];if(typeof ee==="function"&&ee!==te){Object.keys(te).forEach((function(b){ee[b]=te[b]}))}return ee}}},50460:(b,S,J)=>{"use strict";b.exports=writeFile;b.exports.sync=writeFileSync;b.exports._getTmpname=getTmpname;b.exports._cleanupOnExit=cleanupOnExit;var ee=J(90552);var te=J(95091);var re=J(52028);var ne=J(71017);var ie={};var oe=function getId(){try{var b=J(71267);return b.threadId}catch(b){return 0}}();var se=0;function getTmpname(b){return b+"."+te(__filename).hash(String(process.pid)).hash(String(oe)).hash(String(++se)).result()}function cleanupOnExit(b){return function(){try{ee.unlinkSync(typeof b==="function"?b():b)}catch(b){}}}function writeFile(b,S,J,te){if(J){if(J instanceof Function){te=J;J={}}else if(typeof J==="string"){J={encoding:J}}}else{J={}}var oe=J.Promise||global.Promise;var se;var ae;var ue;var ce=re(cleanupOnExit((()=>ue)));var le=ne.resolve(b);new oe((function serializeSameFile(b){if(!ie[le])ie[le]=[];ie[le].push(b);if(ie[le].length===1)b()})).then((function getRealPath(){return new oe((function(S){ee.realpath(b,(function(J,ee){se=ee||b;ue=getTmpname(se);S()}))}))})).then((function stat(){return new oe((function stat(b){if(J.mode&&J.chown)b();else{ee.stat(se,(function(S,ee){if(S||!ee)b();else{J=Object.assign({},J);if(J.mode==null){J.mode=ee.mode}if(J.chown==null&&process.getuid){J.chown={uid:ee.uid,gid:ee.gid}}b()}}))}}))})).then((function thenWriteFile(){return new oe((function(b,S){ee.open(ue,"w",J.mode,(function(J,ee){ae=ee;if(J)S(J);else b()}))}))})).then((function write(){return new oe((function(b,te){if(Buffer.isBuffer(S)){ee.write(ae,S,0,S.length,0,(function(S){if(S)te(S);else b()}))}else if(S!=null){ee.write(ae,String(S),0,String(J.encoding||"utf8"),(function(S){if(S)te(S);else b()}))}else b()}))})).then((function syncAndClose(){return new oe((function(b,S){if(J.fsync!==false){ee.fsync(ae,(function(J){if(J)ee.close(ae,(()=>S(J)));else ee.close(ae,b)}))}else{ee.close(ae,b)}}))})).then((function chown(){ae=null;if(J.chown){return new oe((function(b,S){ee.chown(ue,J.chown.uid,J.chown.gid,(function(J){if(J)S(J);else b()}))}))}})).then((function chmod(){if(J.mode){return new oe((function(b,S){ee.chmod(ue,J.mode,(function(J){if(J)S(J);else b()}))}))}})).then((function rename(){return new oe((function(b,S){ee.rename(ue,se,(function(J){if(J)S(J);else b()}))}))})).then((function success(){ce();te()}),(function fail(b){return new oe((b=>ae?ee.close(ae,b):b())).then((()=>{ce();ee.unlink(ue,(function(){te(b)}))}))})).then((function checkQueue(){ie[le].shift();if(ie[le].length>0){ie[le][0]()}else delete ie[le]}))}function writeFileSync(b,S,J){if(typeof J==="string")J={encoding:J};else if(!J)J={};try{b=ee.realpathSync(b)}catch(b){}var te=getTmpname(b);if(!J.mode||!J.chown){try{var ne=ee.statSync(b);J=Object.assign({},J);if(!J.mode){J.mode=ne.mode}if(!J.chown&&process.getuid){J.chown={uid:ne.uid,gid:ne.gid}}}catch(b){}}var ie;var oe=cleanupOnExit(te);var se=re(oe);try{ie=ee.openSync(te,"w",J.mode);if(Buffer.isBuffer(S)){ee.writeSync(ie,S,0,S.length,0)}else if(S!=null){ee.writeSync(ie,String(S),0,String(J.encoding||"utf8"))}if(J.fsync!==false){ee.fsyncSync(ie)}ee.closeSync(ie);if(J.chown)ee.chownSync(te,J.chown.uid,J.chown.gid);if(J.mode)ee.chmodSync(te,J.mode);ee.renameSync(te,b);se()}catch(b){if(ie){try{ee.closeSync(ie)}catch(b){}}se();oe();throw b}}},49658:(b,S,J)=>{S.project=J(3854)},11521:b=>{"use strict";function peg$subclass(b,S){function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor}function peg$SyntaxError(b,S,J,ee){this.message=b;this.expected=S;this.found=J;this.location=ee;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(b,S){var J={literal:function(b){return'"'+literalEscape(b.text)+'"'},class:function(b){var S="",J;for(J=0;J<b.parts.length;J++){S+=b.parts[J]instanceof Array?classEscape(b.parts[J][0])+"-"+classEscape(b.parts[J][1]):classEscape(b.parts[J])}return"["+(b.inverted?"^":"")+S+"]"},any:function(b){return"any character"},end:function(b){return"end of input"},other:function(b){return b.description}};function hex(b){return b.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(b){return b.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(b){return"\\x0"+hex(b)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(b){return"\\x"+hex(b)}))}function classEscape(b){return b.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(b){return"\\x0"+hex(b)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(b){return"\\x"+hex(b)}))}function describeExpectation(b){return J[b.type](b)}function describeExpected(b){var S=new Array(b.length),J,ee;for(J=0;J<b.length;J++){S[J]=describeExpectation(b[J])}S.sort();if(S.length>0){for(J=1,ee=1;J<S.length;J++){if(S[J-1]!==S[J]){S[ee]=S[J];ee++}}S.length=ee}switch(S.length){case 1:return S[0];case 2:return S[0]+" or "+S[1];default:return S.slice(0,-1).join(", ")+", or "+S[S.length-1]}}function describeFound(b){return b?'"'+literalEscape(b)+'"':"end of input"}return"Expected "+describeExpected(b)+" but "+describeFound(S)+" found."};function peg$parse(b,S){S=S!==void 0?S:{};var J={},ee={Project:peg$parseProject},te=peg$parseProject,peg$c0=function(b,S){var J=Object.create(null);J.project=S;if(b){J.headComment=b}return J},re="{",ne=peg$literalExpectation("{",false),ie="}",oe=peg$literalExpectation("}",false),peg$c5=function(b){return b},peg$c6=function(){return Object.create(null)},peg$c7=function(b){var S=b[0][0];for(var J=1;J<b.length;J++){var ee=b[J][0];S=Object.assign(S,ee)}return S},se="=",ae=peg$literalExpectation("=",false),ue=";",ce=peg$literalExpectation(";",false),peg$c12=function(b,S){var J=Object.create(null);J[b]=S;return J},peg$c13=function(b,S){var J=Object.create(null),ee=b.id+"_comment";J[b.id]=S;J[ee]=b[ee];return J},peg$c14=function(b,S){var J=Object.create(null);J[b]=S.value;J[b+"_comment"]=S.comment;return J},peg$c15=function(b,S){var J=Object.create(null);J.id=b;J[b+"_comment"]=S.trim();return J},peg$c16=function(b,S){var J=Object.create(null);J.comment=S.trim();J.value=b.trim();return J},le=/^[^*]/,pe=peg$classExpectation(["*"],true,false),peg$c19=function(b){return b.join("")},fe="/*",de=peg$literalExpectation("/*",false),he="*/",me=peg$literalExpectation("*/",false),peg$c24=function(b,S){var J=Object.create(null);J[b.name]=S;return J},ge="/* Begin ",ye=peg$literalExpectation("/* Begin ",false),ve=" section */",Te=peg$literalExpectation(" section */",false),peg$c29=function(b){return{name:b}},be="/* End ",Ee=peg$literalExpectation("/* End ",false),Ae="(",we=peg$literalExpectation("(",false),_e=")",xe=peg$literalExpectation(")",false),peg$c36=function(b){return b},peg$c37=function(){return[]},peg$c38=function(b,S){if(S){S.unshift(b);return S}else{return[b]}},peg$c39=function(b){return b},peg$c40=function(b,S){var J=Object.create(null);J.value=b.trim();J.comment=S.trim();return J},Pe=",",Ce=peg$literalExpectation(",",false),ke=/^[A-Za-z0-9_.]/,Se=peg$classExpectation([["A","Z"],["a","z"],["0","9"],"_","."],false,false),peg$c45=function(b){return b.join("")},De=".",Ie=peg$literalExpectation(".",false),peg$c48=function(b){return b.join("")},peg$c49=function(b){return parseInt(b.join(""),10)},peg$c50=function(b){return'"'+b+'"'},peg$c51=function(b){return b.join("")},Oe=peg$anyExpectation(),peg$c53=function(b){return b},Re="\\",Ne=peg$literalExpectation("\\",false),peg$c56=function(){return'\\"'},peg$c57=function(b){return b.join("")},Me=/^[^;,\n]/,Fe=peg$classExpectation([";",",","\n"],true,false),Le="//",je=peg$literalExpectation("//",false),peg$c62=function(b){return b},peg$c63=function(b){return b.join("")},Be=/^[0-9]/,$e=peg$classExpectation([["0","9"]],false,false),Ue=/^[A-Za-z]/,Xe=peg$classExpectation([["A","Z"],["a","z"]],false,false),Ge='"',Ve=peg$literalExpectation('"',false),We=peg$otherExpectation("whitespace"),qe=/^[\t ]/,He=peg$classExpectation(["\t"," "],false,false),Ke=/^[\n\r]/,Ye=peg$classExpectation(["\n","\r"],false,false),ze=0,Je=0,Qe=[{line:1,column:1}],Ze=0,et=[],rt=0,nt;if("startRule"in S){if(!(S.startRule in ee)){throw new Error("Can't start parsing from rule \""+S.startRule+'".')}te=ee[S.startRule]}function text(){return b.substring(Je,ze)}function location(){return peg$computeLocation(Je,ze)}function expected(S,J){J=J!==void 0?J:peg$computeLocation(Je,ze);throw peg$buildStructuredError([peg$otherExpectation(S)],b.substring(Je,ze),J)}function error(b,S){S=S!==void 0?S:peg$computeLocation(Je,ze);throw peg$buildSimpleError(b,S)}function peg$literalExpectation(b,S){return{type:"literal",text:b,ignoreCase:S}}function peg$classExpectation(b,S,J){return{type:"class",parts:b,inverted:S,ignoreCase:J}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(b){return{type:"other",description:b}}function peg$computePosDetails(S){var J=Qe[S],ee;if(J){return J}else{ee=S-1;while(!Qe[ee]){ee--}J=Qe[ee];J={line:J.line,column:J.column};while(ee<S){if(b.charCodeAt(ee)===10){J.line++;J.column=1}else{J.column++}ee++}Qe[S]=J;return J}}function peg$computeLocation(b,S){var J=peg$computePosDetails(b),ee=peg$computePosDetails(S);return{start:{offset:b,line:J.line,column:J.column},end:{offset:S,line:ee.line,column:ee.column}}}function peg$fail(b){if(ze<Ze){return}if(ze>Ze){Ze=ze;et=[]}et.push(b)}function peg$buildSimpleError(b,S){return new peg$SyntaxError(b,null,null,S)}function peg$buildStructuredError(b,S,J){return new peg$SyntaxError(peg$SyntaxError.buildMessage(b,S),b,S,J)}function peg$parseProject(){var b,S,ee,te,re,ne,ie;b=ze;S=peg$parseSingleLineComment();if(S===J){S=null}if(S!==J){ee=peg$parseInlineComment();if(ee===J){ee=null}if(ee!==J){te=peg$parse_();if(te!==J){re=peg$parseObject();if(re!==J){ne=peg$parseNewLine();if(ne!==J){ie=peg$parse_();if(ie!==J){Je=b;S=peg$c0(S,re);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseObject(){var S,ee,te,se;S=ze;if(b.charCodeAt(ze)===123){ee=re;ze++}else{ee=J;if(rt===0){peg$fail(ne)}}if(ee!==J){te=peg$parseAssignmentList();if(te===J){te=peg$parseEmptyBody()}if(te!==J){if(b.charCodeAt(ze)===125){se=ie;ze++}else{se=J;if(rt===0){peg$fail(oe)}}if(se!==J){Je=S;ee=peg$c5(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseEmptyBody(){var b,S;b=ze;S=peg$parse_();if(S!==J){Je=b;S=peg$c6()}b=S;return b}function peg$parseAssignmentList(){var b,S,ee,te,re,ne;b=ze;S=peg$parse_();if(S!==J){ee=[];te=ze;re=peg$parseAssignment();if(re===J){re=peg$parseDelimitedSection()}if(re!==J){ne=peg$parse_();if(ne!==J){re=[re,ne];te=re}else{ze=te;te=J}}else{ze=te;te=J}if(te!==J){while(te!==J){ee.push(te);te=ze;re=peg$parseAssignment();if(re===J){re=peg$parseDelimitedSection()}if(re!==J){ne=peg$parse_();if(ne!==J){re=[re,ne];te=re}else{ze=te;te=J}}else{ze=te;te=J}}}else{ee=J}if(ee!==J){Je=b;S=peg$c7(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseAssignment(){var b;b=peg$parseSimpleAssignment();if(b===J){b=peg$parseCommentedAssignment()}return b}function peg$parseSimpleAssignment(){var S,ee,te,re,ne,ie,oe;S=ze;ee=peg$parseIdentifier();if(ee!==J){te=peg$parse_();if(te!==J){if(b.charCodeAt(ze)===61){re=se;ze++}else{re=J;if(rt===0){peg$fail(ae)}}if(re!==J){ne=peg$parse_();if(ne!==J){ie=peg$parseValue();if(ie!==J){if(b.charCodeAt(ze)===59){oe=ue;ze++}else{oe=J;if(rt===0){peg$fail(ce)}}if(oe!==J){Je=S;ee=peg$c12(ee,ie);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseCommentedAssignment(){var S,ee,te,re,ne,ie,oe;S=ze;ee=peg$parseCommentedIdentifier();if(ee!==J){te=peg$parse_();if(te!==J){if(b.charCodeAt(ze)===61){re=se;ze++}else{re=J;if(rt===0){peg$fail(ae)}}if(re!==J){ne=peg$parse_();if(ne!==J){ie=peg$parseValue();if(ie!==J){if(b.charCodeAt(ze)===59){oe=ue;ze++}else{oe=J;if(rt===0){peg$fail(ce)}}if(oe!==J){Je=S;ee=peg$c13(ee,ie);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}if(S===J){S=ze;ee=peg$parseIdentifier();if(ee!==J){te=peg$parse_();if(te!==J){if(b.charCodeAt(ze)===61){re=se;ze++}else{re=J;if(rt===0){peg$fail(ae)}}if(re!==J){ne=peg$parse_();if(ne!==J){ie=peg$parseCommentedValue();if(ie!==J){if(b.charCodeAt(ze)===59){oe=ue;ze++}else{oe=J;if(rt===0){peg$fail(ce)}}if(oe!==J){Je=S;ee=peg$c14(ee,ie);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}return S}function peg$parseCommentedIdentifier(){var b,S,ee,te;b=ze;S=peg$parseIdentifier();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseInlineComment();if(te!==J){Je=b;S=peg$c15(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseCommentedValue(){var b,S,ee,te;b=ze;S=peg$parseValue();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseInlineComment();if(te!==J){Je=b;S=peg$c16(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseInlineComment(){var S,ee,te,re;S=ze;ee=peg$parseInlineCommentOpen();if(ee!==J){te=[];if(le.test(b.charAt(ze))){re=b.charAt(ze);ze++}else{re=J;if(rt===0){peg$fail(pe)}}if(re!==J){while(re!==J){te.push(re);if(le.test(b.charAt(ze))){re=b.charAt(ze);ze++}else{re=J;if(rt===0){peg$fail(pe)}}}}else{te=J}if(te!==J){re=peg$parseInlineCommentClose();if(re!==J){Je=S;ee=peg$c19(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseInlineCommentOpen(){var S;if(b.substr(ze,2)===fe){S=fe;ze+=2}else{S=J;if(rt===0){peg$fail(de)}}return S}function peg$parseInlineCommentClose(){var S;if(b.substr(ze,2)===he){S=he;ze+=2}else{S=J;if(rt===0){peg$fail(me)}}return S}function peg$parseDelimitedSection(){var b,S,ee,te,re,ne;b=ze;S=peg$parseDelimitedSectionBegin();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseAssignmentList();if(te===J){te=peg$parseEmptyBody()}if(te!==J){re=peg$parse_();if(re!==J){ne=peg$parseDelimitedSectionEnd();if(ne!==J){Je=b;S=peg$c24(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseDelimitedSectionBegin(){var S,ee,te,re,ne;S=ze;if(b.substr(ze,9)===ge){ee=ge;ze+=9}else{ee=J;if(rt===0){peg$fail(ye)}}if(ee!==J){te=peg$parseIdentifier();if(te!==J){if(b.substr(ze,11)===ve){re=ve;ze+=11}else{re=J;if(rt===0){peg$fail(Te)}}if(re!==J){ne=peg$parseNewLine();if(ne!==J){Je=S;ee=peg$c29(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseDelimitedSectionEnd(){var S,ee,te,re,ne;S=ze;if(b.substr(ze,7)===be){ee=be;ze+=7}else{ee=J;if(rt===0){peg$fail(Ee)}}if(ee!==J){te=peg$parseIdentifier();if(te!==J){if(b.substr(ze,11)===ve){re=ve;ze+=11}else{re=J;if(rt===0){peg$fail(Te)}}if(re!==J){ne=peg$parseNewLine();if(ne!==J){Je=S;ee=peg$c29(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseArray(){var S,ee,te,re;S=ze;if(b.charCodeAt(ze)===40){ee=Ae;ze++}else{ee=J;if(rt===0){peg$fail(we)}}if(ee!==J){te=peg$parseArrayBody();if(te===J){te=peg$parseEmptyArray()}if(te!==J){if(b.charCodeAt(ze)===41){re=_e;ze++}else{re=J;if(rt===0){peg$fail(xe)}}if(re!==J){Je=S;ee=peg$c36(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseEmptyArray(){var b,S;b=ze;S=peg$parse_();if(S!==J){Je=b;S=peg$c37()}b=S;return b}function peg$parseArrayBody(){var b,S,ee,te,re,ne;b=ze;S=peg$parse_();if(S!==J){ee=peg$parseArrayEntry();if(ee!==J){te=peg$parse_();if(te!==J){re=peg$parseArrayBody();if(re===J){re=null}if(re!==J){ne=peg$parse_();if(ne!==J){Je=b;S=peg$c38(ee,re);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseArrayEntry(){var b;b=peg$parseSimpleArrayEntry();if(b===J){b=peg$parseCommentedArrayEntry()}return b}function peg$parseSimpleArrayEntry(){var b,S,ee;b=ze;S=peg$parseValue();if(S!==J){ee=peg$parseEndArrayEntry();if(ee!==J){Je=b;S=peg$c39(S);b=S}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseCommentedArrayEntry(){var b,S,ee,te,re;b=ze;S=peg$parseValue();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseInlineComment();if(te!==J){re=peg$parseEndArrayEntry();if(re!==J){Je=b;S=peg$c40(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseEndArrayEntry(){var S,ee,te,re;if(b.charCodeAt(ze)===44){S=Pe;ze++}else{S=J;if(rt===0){peg$fail(Ce)}}if(S===J){S=ze;ee=peg$parse_();if(ee!==J){te=ze;rt++;if(b.charCodeAt(ze)===41){re=_e;ze++}else{re=J;if(rt===0){peg$fail(xe)}}rt--;if(re!==J){ze=te;te=void 0}else{te=J}if(te!==J){ee=[ee,te];S=ee}else{ze=S;S=J}}else{ze=S;S=J}}return S}function peg$parseIdentifier(){var S,ee,te;S=ze;ee=[];if(ke.test(b.charAt(ze))){te=b.charAt(ze);ze++}else{te=J;if(rt===0){peg$fail(Se)}}if(te!==J){while(te!==J){ee.push(te);if(ke.test(b.charAt(ze))){te=b.charAt(ze);ze++}else{te=J;if(rt===0){peg$fail(Se)}}}}else{ee=J}if(ee!==J){Je=S;ee=peg$c45(ee)}S=ee;if(S===J){S=peg$parseQuotedString()}return S}function peg$parseValue(){var b;b=peg$parseObject();if(b===J){b=peg$parseArray();if(b===J){b=peg$parseNumberValue();if(b===J){b=peg$parseStringValue()}}}return b}function peg$parseNumberValue(){var b;b=peg$parseDecimalValue();if(b===J){b=peg$parseIntegerValue()}return b}function peg$parseDecimalValue(){var S,ee,te,re,ne;S=ze;ee=ze;te=peg$parseIntegerValue();if(te!==J){if(b.charCodeAt(ze)===46){re=De;ze++}else{re=J;if(rt===0){peg$fail(Ie)}}if(re!==J){ne=peg$parseIntegerValue();if(ne!==J){te=[te,re,ne];ee=te}else{ze=ee;ee=J}}else{ze=ee;ee=J}}else{ze=ee;ee=J}if(ee!==J){Je=S;ee=peg$c48(ee)}S=ee;return S}function peg$parseIntegerValue(){var b,S,ee,te,re;b=ze;S=ze;rt++;ee=peg$parseAlpha();rt--;if(ee===J){S=void 0}else{ze=S;S=J}if(S!==J){ee=[];te=peg$parseDigit();if(te!==J){while(te!==J){ee.push(te);te=peg$parseDigit()}}else{ee=J}if(ee!==J){te=ze;rt++;re=peg$parseNonTerminator();rt--;if(re===J){te=void 0}else{ze=te;te=J}if(te!==J){Je=b;S=peg$c49(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseStringValue(){var b;b=peg$parseQuotedString();if(b===J){b=peg$parseLiteralString()}return b}function peg$parseQuotedString(){var b,S,ee,te;b=ze;S=peg$parseDoubleQuote();if(S!==J){ee=peg$parseQuotedBody();if(ee!==J){te=peg$parseDoubleQuote();if(te!==J){Je=b;S=peg$c50(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseQuotedBody(){var b,S,ee;b=ze;S=[];ee=peg$parseNonQuote();if(ee!==J){while(ee!==J){S.push(ee);ee=peg$parseNonQuote()}}else{S=J}if(S!==J){Je=b;S=peg$c51(S)}b=S;return b}function peg$parseNonQuote(){var S,ee,te;S=peg$parseEscapedQuote();if(S===J){S=ze;ee=ze;rt++;te=peg$parseDoubleQuote();rt--;if(te===J){ee=void 0}else{ze=ee;ee=J}if(ee!==J){if(b.length>ze){te=b.charAt(ze);ze++}else{te=J;if(rt===0){peg$fail(Oe)}}if(te!==J){Je=S;ee=peg$c53(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}return S}function peg$parseEscapedQuote(){var S,ee,te;S=ze;if(b.charCodeAt(ze)===92){ee=Re;ze++}else{ee=J;if(rt===0){peg$fail(Ne)}}if(ee!==J){te=peg$parseDoubleQuote();if(te!==J){Je=S;ee=peg$c56();S=ee}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseLiteralString(){var b,S,ee;b=ze;S=[];ee=peg$parseLiteralChar();if(ee!==J){while(ee!==J){S.push(ee);ee=peg$parseLiteralChar()}}else{S=J}if(S!==J){Je=b;S=peg$c57(S)}b=S;return b}function peg$parseLiteralChar(){var b,S,ee,te;b=ze;S=ze;rt++;ee=peg$parseInlineCommentOpen();rt--;if(ee===J){S=void 0}else{ze=S;S=J}if(S!==J){ee=ze;rt++;te=peg$parseLineTerminator();rt--;if(te===J){ee=void 0}else{ze=ee;ee=J}if(ee!==J){te=peg$parseNonTerminator();if(te!==J){Je=b;S=peg$c53(te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseNonTerminator(){var S;if(Me.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Fe)}}return S}function peg$parseSingleLineComment(){var S,ee,te,re,ne;S=ze;if(b.substr(ze,2)===Le){ee=Le;ze+=2}else{ee=J;if(rt===0){peg$fail(je)}}if(ee!==J){te=peg$parse_();if(te!==J){re=peg$parseOneLineString();if(re!==J){ne=peg$parseNewLine();if(ne!==J){Je=S;ee=peg$c62(re);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseOneLineString(){var b,S,ee;b=ze;S=[];ee=peg$parseNonLine();while(ee!==J){S.push(ee);ee=peg$parseNonLine()}if(S!==J){Je=b;S=peg$c63(S)}b=S;return b}function peg$parseDigit(){var S;if(Be.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail($e)}}return S}function peg$parseAlpha(){var S;if(Ue.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Xe)}}return S}function peg$parseDoubleQuote(){var S;if(b.charCodeAt(ze)===34){S=Ge;ze++}else{S=J;if(rt===0){peg$fail(Ve)}}return S}function peg$parse_(){var b,S;rt++;b=[];S=peg$parsewhitespace();while(S!==J){b.push(S);S=peg$parsewhitespace()}rt--;if(b===J){S=J;if(rt===0){peg$fail(We)}}return b}function peg$parsewhitespace(){var S;S=peg$parseNewLine();if(S===J){if(qe.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(He)}}}return S}function peg$parseNonLine(){var b,S,ee;b=ze;S=ze;rt++;ee=peg$parseNewLine();rt--;if(ee===J){S=void 0}else{ze=S;S=J}if(S!==J){ee=peg$parseChar();if(ee!==J){Je=b;S=peg$c53(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseLineTerminator(){var S;S=peg$parseNewLine();if(S===J){if(b.charCodeAt(ze)===59){S=ue;ze++}else{S=J;if(rt===0){peg$fail(ce)}}}return S}function peg$parseNewLine(){var S;if(Ke.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Ye)}}return S}function peg$parseChar(){var S;if(b.length>ze){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Oe)}}return S}nt=te();if(nt!==J&&ze===b.length){return nt}else{if(nt!==J&&ze<b.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(et,Ze<b.length?b.charAt(Ze):null,Ze<b.length?peg$computeLocation(Ze,Ze+1):peg$computeLocation(Ze,Ze))}}b.exports={SyntaxError:peg$SyntaxError,parse:peg$parse}},42470:(b,S,J)=>{var ee=J(71017),te=J(73837);var re='"<group>"',ne="BUILT_PRODUCTS_DIR",ie=4,oe="Resources",se="unknown";var ae={a:"archive.ar",app:"wrapper.application",appex:"wrapper.app-extension",bundle:"wrapper.plug-in",dylib:"compiled.mach-o.dylib",framework:"wrapper.framework",h:"sourcecode.c.h",m:"sourcecode.c.objc",markdown:"text",mdimporter:"wrapper.cfbundle",octest:"wrapper.cfbundle",pch:"sourcecode.c.h",plist:"text.plist.xml",sh:"text.script.sh",swift:"sourcecode.swift",tbd:"sourcecode.text-based-dylib-definition",xcassets:"folder.assetcatalog",xcconfig:"text.xcconfig",xcdatamodel:"wrapper.xcdatamodel",xcodeproj:"wrapper.pb-project",xctest:"wrapper.cfbundle",xib:"file.xib",strings:"text.plist.strings"},ue={"archive.ar":"Frameworks","compiled.mach-o.dylib":"Frameworks","sourcecode.text-based-dylib-definition":"Frameworks","wrapper.framework":"Frameworks","embedded.framework":"Embed Frameworks","sourcecode.c.h":"Resources","sourcecode.c.objc":"Sources","sourcecode.swift":"Sources"},ce={"compiled.mach-o.dylib":"usr/lib/","sourcecode.text-based-dylib-definition":"usr/lib/","wrapper.framework":"System/Library/Frameworks/"},le={"compiled.mach-o.dylib":"SDKROOT","sourcecode.text-based-dylib-definition":"SDKROOT","wrapper.framework":"SDKROOT"},pe={"sourcecode.c.h":4,"sourcecode.c.h":4,"sourcecode.c.objc":4,"sourcecode.swift":4,text:4,"text.plist.xml":4,"text.script.sh":4,"text.xcconfig":4,"text.plist.strings":4};function unquoted(b){return b==null?"":b.replace(/(^")|("$)/g,"")}function detectType(b){var S=ee.extname(b).substring(1),J=ae[unquoted(S)];if(!J){return se}return J}function defaultExtension(b){var S=b.lastKnownFileType&&b.lastKnownFileType!=se?b.lastKnownFileType:b.explicitFileType;for(var J in ae){if(ae.hasOwnProperty(unquoted(J))){if(ae[unquoted(J)]===unquoted(S))return J}}}function defaultEncoding(b){var S=b.lastKnownFileType||b.explicitFileType,J=pe[unquoted(S)];if(J){return J}}function detectGroup(b,S){var J=ee.extname(b.basename).substring(1),te=b.lastKnownFileType||b.explicitFileType,re=ue[unquoted(te)];if(J==="xcdatamodeld"){return"Sources"}if(S.customFramework&&S.embed){return ue["embedded.framework"]}if(!re){return oe}return re}function detectSourcetree(b){var S=b.lastKnownFileType||b.explicitFileType,J=le[unquoted(S)];if(b.explicitFileType){return ne}if(b.customFramework){return re}if(!J){return re}return J}function defaultPath(b,S){var J=b.lastKnownFileType||b.explicitFileType,te=ce[unquoted(J)];if(b.customFramework){return S}if(te){return ee.join(te,ee.basename(S))}return S}function defaultGroup(b){var S=ue[b.lastKnownFileType];if(!S){return oe}return defaultGroup}function pbxFile(b,S){var S=S||{};this.basename=ee.basename(b);this.lastKnownFileType=S.lastKnownFileType||detectType(b);this.group=detectGroup(this,S);if(S.customFramework==true){this.customFramework=true;this.dirname=ee.dirname(b).replace(/\\/g,"/")}this.path=defaultPath(this,b).replace(/\\/g,"/");this.fileEncoding=this.defaultEncoding=S.defaultEncoding||defaultEncoding(this);if(S.explicitFileType){this.explicitFileType=S.explicitFileType;this.basename=this.basename+"."+defaultExtension(this);delete this.path;delete this.lastKnownFileType;delete this.group;delete this.defaultEncoding}this.sourceTree=S.sourceTree||detectSourcetree(this);this.includeInIndex=0;if(S.weak&&S.weak===true)this.settings={ATTRIBUTES:["Weak"]};if(S.compilerFlags){if(!this.settings)this.settings={};this.settings.COMPILER_FLAGS=te.format('"%s"',S.compilerFlags)}if(S.embed&&S.sign){if(!this.settings)this.settings={};if(!this.settings.ATTRIBUTES)this.settings.ATTRIBUTES=[];this.settings.ATTRIBUTES.push("CodeSignOnCopy")}}b.exports=pbxFile},3854:(b,S,J)=>{var ee=J(73837),te=ee.format,re=J(82361).EventEmitter,ne=J(71017),ie=J(87265),oe=J(32081).fork,se=J(32704),ae=J(42470),ue=J(57147),ce=J(11521),le=J(51735),pe=/_comment$/;function pbxProject(b){if(!(this instanceof pbxProject))return new pbxProject(b);this.filepath=ne.resolve(b)}ee.inherits(pbxProject,re);pbxProject.prototype.parse=function(b){var S=oe(J.ab+"parseJob.js",[this.filepath]);S.on("message",function(b){if(b.name=="SyntaxError"||b.code){this.emit("error",b)}else{this.hash=b;this.emit("end",null,b)}}.bind(this));if(b){this.on("error",b);this.on("end",b)}return this};pbxProject.prototype.parseSync=function(){var b=ue.readFileSync(this.filepath,"utf-8");this.hash=ce.parse(b);return this};pbxProject.prototype.writeSync=function(b){this.writer=new se(this.hash,b);return this.writer.writeSync()};pbxProject.prototype.allUuids=function(){var b=this.hash.project.objects,S=[],J;for(key in b){J=b[key];S=S.concat(Object.keys(J))}S=S.filter((function(b){return!pe.test(b)&&b.length==24}));return S};pbxProject.prototype.generateUuid=function(){var b=ie.v4().replace(/-/g,"").substr(0,24).toUpperCase();if(this.allUuids().indexOf(b)>=0){return this.generateUuid()}else{return b}};pbxProject.prototype.addPluginFile=function(b,S){var J=new ae(b,S);J.plugin=true;correctForPluginsPath(J,this);if(this.hasFile(J.path))return null;J.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(J);this.addToPluginsPbxGroup(J);return J};pbxProject.prototype.removePluginFile=function(b,S){var J=new ae(b,S);correctForPluginsPath(J,this);this.removeFromPbxFileReferenceSection(J);this.removeFromPluginsPbxGroup(J);return J};pbxProject.prototype.addProductFile=function(b,S){var J=new ae(b,S);J.includeInIndex=0;J.fileRef=this.generateUuid();J.target=S?S.target:undefined;J.group=S?S.group:undefined;J.uuid=this.generateUuid();J.path=J.basename;this.addToPbxFileReferenceSection(J);this.addToProductsPbxGroup(J);return J};pbxProject.prototype.removeProductFile=function(b,S){var J=new ae(b,S);this.removeFromProductsPbxGroup(J);return J};pbxProject.prototype.addSourceFile=function(b,S,J){var ee;if(J){ee=this.addFile(b,J,S)}else{ee=this.addPluginFile(b,S)}if(!ee)return false;ee.target=S?S.target:undefined;ee.uuid=this.generateUuid();this.addToPbxBuildFileSection(ee);this.addToPbxSourcesBuildPhase(ee);return ee};pbxProject.prototype.removeSourceFile=function(b,S,J){var ee;if(J){ee=this.removeFile(b,J,S)}else{ee=this.removePluginFile(b,S)}ee.target=S?S.target:undefined;this.removeFromPbxBuildFileSection(ee);this.removeFromPbxSourcesBuildPhase(ee);return ee};pbxProject.prototype.addHeaderFile=function(b,S,J){if(J){return this.addFile(b,J,S)}else{return this.addPluginFile(b,S)}};pbxProject.prototype.removeHeaderFile=function(b,S,J){if(J){return this.removeFile(b,J,S)}else{return this.removePluginFile(b,S)}};pbxProject.prototype.addResourceFile=function(b,S,J){S=S||{};var ee;if(S.plugin){ee=this.addPluginFile(b,S);if(!ee)return false}else{ee=new ae(b,S);if(this.hasFile(ee.path))return false}ee.uuid=this.generateUuid();ee.target=S?S.target:undefined;if(!S.plugin){correctForResourcesPath(ee,this);ee.fileRef=this.generateUuid()}if(!S.variantGroup){this.addToPbxBuildFileSection(ee);this.addToPbxResourcesBuildPhase(ee)}if(!S.plugin){this.addToPbxFileReferenceSection(ee);if(J){if(this.getPBXGroupByKey(J)){this.addToPbxGroup(ee,J)}else if(this.getPBXVariantGroupByKey(J)){this.addToPbxVariantGroup(ee,J)}}else{this.addToResourcesPbxGroup(ee)}}return ee};pbxProject.prototype.removeResourceFile=function(b,S,J){var ee=new ae(b,S);ee.target=S?S.target:undefined;correctForResourcesPath(ee,this);this.removeFromPbxBuildFileSection(ee);this.removeFromPbxFileReferenceSection(ee);if(J){if(this.getPBXGroupByKey(J)){this.removeFromPbxGroup(ee,J)}else if(this.getPBXVariantGroupByKey(J)){this.removeFromPbxVariantGroup(ee,J)}}else{this.removeFromResourcesPbxGroup(ee)}this.removeFromPbxResourcesBuildPhase(ee);return ee};pbxProject.prototype.addFramework=function(b,S){var J=S&&S.customFramework==true;var ee=!S||(S.link==undefined||S.link);var te=S&&S.embed;if(S){delete S.embed}var re=new ae(b,S);re.uuid=this.generateUuid();re.fileRef=this.generateUuid();re.target=S?S.target:undefined;if(this.hasFile(re.path))return false;this.addToPbxBuildFileSection(re);this.addToPbxFileReferenceSection(re);this.addToFrameworksPbxGroup(re);if(ee){this.addToPbxFrameworksBuildPhase(re)}if(J){this.addToFrameworkSearchPaths(re);if(te){S.embed=te;var ne=new ae(b,S);ne.uuid=this.generateUuid();ne.fileRef=re.fileRef;this.addToPbxBuildFileSection(ne);this.addToPbxEmbedFrameworksBuildPhase(ne);return ne}}return re};pbxProject.prototype.removeFramework=function(b,S){var J=S&&S.embed;if(S){delete S.embed}var ee=new ae(b,S);ee.target=S?S.target:undefined;this.removeFromPbxBuildFileSection(ee);this.removeFromPbxFileReferenceSection(ee);this.removeFromFrameworksPbxGroup(ee);this.removeFromPbxFrameworksBuildPhase(ee);if(S&&S.customFramework){this.removeFromFrameworkSearchPaths(ee)}S=S||{};S.embed=true;var te=new ae(b,S);te.fileRef=ee.fileRef;this.removeFromPbxBuildFileSection(te);this.removeFromPbxEmbedFrameworksBuildPhase(te);return ee};pbxProject.prototype.addCopyfile=function(b,S){var J=new ae(b,S);if(this.hasFile(J.path)){J=this.hasFile(J.path)}J.fileRef=J.uuid=this.generateUuid();J.target=S?S.target:undefined;this.addToPbxBuildFileSection(J);this.addToPbxFileReferenceSection(J);this.addToPbxCopyfilesBuildPhase(J);return J};pbxProject.prototype.pbxCopyfilesBuildPhaseObj=function(b){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",b)};pbxProject.prototype.addToPbxCopyfilesBuildPhase=function(b){var S=this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeCopyfile=function(b,S){var J=new ae(b,S);J.target=S?S.target:undefined;this.removeFromPbxBuildFileSection(J);this.removeFromPbxFileReferenceSection(J);this.removeFromPbxCopyfilesBuildPhase(J);return J};pbxProject.prototype.removeFromPbxCopyfilesBuildPhase=function(b){var S=this.pbxCopyfilesBuildPhaseObj(b.target);for(i in S.files){if(S.files[i].comment==longComment(b)){S.files.splice(i,1);break}}};pbxProject.prototype.addStaticLibrary=function(b,S){S=S||{};var J;if(S.plugin){J=this.addPluginFile(b,S);if(!J)return false}else{J=new ae(b,S);if(this.hasFile(J.path))return false}J.uuid=this.generateUuid();J.target=S?S.target:undefined;if(!S.plugin){J.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(J)}this.addToPbxBuildFileSection(J);this.addToPbxFrameworksBuildPhase(J);this.addToLibrarySearchPaths(J);return J};pbxProject.prototype.addToPbxBuildFileSection=function(b){var S=te("%s_comment",b.uuid);this.pbxBuildFileSection()[b.uuid]=pbxBuildFileObj(b);this.pbxBuildFileSection()[S]=pbxBuildFileComment(b)};pbxProject.prototype.removeFromPbxBuildFileSection=function(b){var S;for(S in this.pbxBuildFileSection()){if(this.pbxBuildFileSection()[S].fileRef_comment==b.basename){b.uuid=S;delete this.pbxBuildFileSection()[S];var J=te("%s_comment",S);delete this.pbxBuildFileSection()[J]}}};pbxProject.prototype.addPbxGroup=function(b,S,J,ee){var re=this.hash.project.objects["PBXGroup"],ne=this.generateUuid(),ie=te("%s_comment",ne),oe={isa:"PBXGroup",children:[],name:S,path:J,sourceTree:ee?ee:'"<group>"'},se=this.pbxFileReferenceSection(),ue={};for(var ce in se){if(!pe.test(ce))continue;var le=ce.split(pe)[0],fe=se[le];ue[fe.path]={fileRef:le,basename:se[ce]}}for(var de=0;de<b.length;de++){var he=b[de],me='"'+he+'"';if(ue[he]){oe.children.push(pbxGroupChild(ue[he]));continue}else if(ue[me]){oe.children.push(pbxGroupChild(ue[me]));continue}var ge=new ae(he);ge.uuid=this.generateUuid();ge.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(ge);this.addToPbxBuildFileSection(ge);oe.children.push(pbxGroupChild(ge))}if(re){re[ne]=oe;re[ie]=S}return{uuid:ne,pbxGroup:oe}};pbxProject.prototype.removePbxGroup=function(b){var S=this.hash.project.objects["PBXGroup"],J,ee;for(J in S){if(!pe.test(J))continue;if(S[J]==b){ee=J.split(pe)[0];delete S[ee]}}};pbxProject.prototype.addToPbxProjectSection=function(b){var S={value:b.uuid,comment:pbxNativeTargetComment(b.pbxNativeTarget)};this.pbxProjectSection()[this.getFirstProject()["uuid"]]["targets"].push(S)};pbxProject.prototype.addToPbxNativeTargetSection=function(b){var S=te("%s_comment",b.uuid);this.pbxNativeTargetSection()[b.uuid]=b.pbxNativeTarget;this.pbxNativeTargetSection()[S]=b.pbxNativeTarget.name};pbxProject.prototype.addToPbxFileReferenceSection=function(b){var S=te("%s_comment",b.fileRef);this.pbxFileReferenceSection()[b.fileRef]=pbxFileReferenceObj(b);this.pbxFileReferenceSection()[S]=pbxFileReferenceComment(b)};pbxProject.prototype.removeFromPbxFileReferenceSection=function(b){var S;var J=pbxFileReferenceObj(b);for(S in this.pbxFileReferenceSection()){if(this.pbxFileReferenceSection()[S].name==J.name||'"'+this.pbxFileReferenceSection()[S].name+'"'==J.name||this.pbxFileReferenceSection()[S].path==J.path||'"'+this.pbxFileReferenceSection()[S].path+'"'==J.path){b.fileRef=b.uuid=S;delete this.pbxFileReferenceSection()[S];break}}var ee=te("%s_comment",b.fileRef);if(this.pbxFileReferenceSection()[ee]!=undefined){delete this.pbxFileReferenceSection()[ee]}return b};pbxProject.prototype.addToXcVersionGroupSection=function(b){if(!b.models||!b.currentModel){throw new Error("Cannot create a XCVersionGroup section from not a data model document file")}var S=te("%s_comment",b.fileRef);if(!this.xcVersionGroupSection()[b.fileRef]){this.xcVersionGroupSection()[b.fileRef]={isa:"XCVersionGroup",children:b.models.map((function(b){return b.fileRef})),currentVersion:b.currentModel.fileRef,name:ne.basename(b.path),path:b.path,sourceTree:'"<group>"',versionGroupType:"wrapper.xcdatamodel"};this.xcVersionGroupSection()[S]=ne.basename(b.path)}};pbxProject.prototype.addToPluginsPbxGroup=function(b){var S=this.pbxGroupByName("Plugins");if(!S){this.addPbxGroup([b.path],"Plugins")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromPluginsPbxGroup=function(b){if(!this.pbxGroupByName("Plugins")){return null}var S=this.pbxGroupByName("Plugins").children,J;for(J in S){if(pbxGroupChild(b).value==S[J].value&&pbxGroupChild(b).comment==S[J].comment){S.splice(J,1);break}}};pbxProject.prototype.addToResourcesPbxGroup=function(b){var S=this.pbxGroupByName("Resources");if(!S){this.addPbxGroup([b.path],"Resources")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromResourcesPbxGroup=function(b){if(!this.pbxGroupByName("Resources")){return null}var S=this.pbxGroupByName("Resources").children,J;for(J in S){if(pbxGroupChild(b).value==S[J].value&&pbxGroupChild(b).comment==S[J].comment){S.splice(J,1);break}}};pbxProject.prototype.addToFrameworksPbxGroup=function(b){var S=this.pbxGroupByName("Frameworks");if(!S){this.addPbxGroup([b.path],"Frameworks")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromFrameworksPbxGroup=function(b){if(!this.pbxGroupByName("Frameworks")){return null}var S=this.pbxGroupByName("Frameworks").children;for(i in S){if(pbxGroupChild(b).value==S[i].value&&pbxGroupChild(b).comment==S[i].comment){S.splice(i,1);break}}};pbxProject.prototype.addToPbxEmbedFrameworksBuildPhase=function(b){var S=this.pbxEmbedFrameworksBuildPhaseObj(b.target);if(S){S.files.push(pbxBuildPhaseObj(b))}};pbxProject.prototype.removeFromPbxEmbedFrameworksBuildPhase=function(b){var S=this.pbxEmbedFrameworksBuildPhaseObj(b.target);if(S){var J=[];for(i in S.files){if(S.files[i].comment!=longComment(b)){J.push(S.files[i])}}S.files=J}};pbxProject.prototype.addToProductsPbxGroup=function(b){var S=this.pbxGroupByName("Products");if(!S){this.addPbxGroup([b.path],"Products")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromProductsPbxGroup=function(b){if(!this.pbxGroupByName("Products")){return null}var S=this.pbxGroupByName("Products").children,J;for(J in S){if(pbxGroupChild(b).value==S[J].value&&pbxGroupChild(b).comment==S[J].comment){S.splice(J,1);break}}};pbxProject.prototype.addToPbxSourcesBuildPhase=function(b){var S=this.pbxSourcesBuildPhaseObj(b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeFromPbxSourcesBuildPhase=function(b){var S=this.pbxSourcesBuildPhaseObj(b.target),J;for(J in S.files){if(S.files[J].comment==longComment(b)){S.files.splice(J,1);break}}};pbxProject.prototype.addToPbxResourcesBuildPhase=function(b){var S=this.pbxResourcesBuildPhaseObj(b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeFromPbxResourcesBuildPhase=function(b){var S=this.pbxResourcesBuildPhaseObj(b.target),J;for(J in S.files){if(S.files[J].comment==longComment(b)){S.files.splice(J,1);break}}};pbxProject.prototype.addToPbxFrameworksBuildPhase=function(b){var S=this.pbxFrameworksBuildPhaseObj(b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeFromPbxFrameworksBuildPhase=function(b){var S=this.pbxFrameworksBuildPhaseObj(b.target);for(i in S.files){if(S.files[i].comment==longComment(b)){S.files.splice(i,1);break}}};pbxProject.prototype.addXCConfigurationList=function(b,S,J){var ee=this.pbxXCBuildConfigurationSection(),re=this.pbxXCConfigurationList(),ne=this.generateUuid(),ie=te("%s_comment",ne),oe={isa:"XCConfigurationList",buildConfigurations:[],defaultConfigurationIsVisible:0,defaultConfigurationName:S};for(var se=0;se<b.length;se++){var ae=b[se],ue=this.generateUuid(),ce=te("%s_comment",ue);ee[ue]=ae;ee[ce]=ae.name;oe.buildConfigurations.push({value:ue,comment:ae.name})}if(re){re[ne]=oe;re[ie]=J}return{uuid:ne,xcConfigurationList:oe}};pbxProject.prototype.addTargetDependency=function(b,S){if(!b)return undefined;var J=this.pbxNativeTargetSection();if(typeof J[b]=="undefined")throw new Error("Invalid target: "+b);for(var ee=0;ee<S.length;ee++){var re=S[ee];if(typeof J[re]=="undefined")throw new Error("Invalid target: "+re)}var ne="PBXTargetDependency",ie="PBXContainerItemProxy",oe=this.hash.project.objects[ne],se=this.hash.project.objects[ie];for(var ee=0;ee<S.length;ee++){var ae=S[ee],ue=te("%s_comment",ae),ce=this.generateUuid(),le=te("%s_comment",ce),pe=this.generateUuid(),fe=te("%s_comment",pe),de={isa:ie,containerPortal:this.hash.project["rootObject"],containerPortal_comment:this.hash.project["rootObject_comment"],proxyType:1,remoteGlobalIDString:ae,remoteInfo:J[ae].name},he={isa:ne,target:ae,target_comment:J[ue],targetProxy:pe,targetProxy_comment:ie};if(se&&oe){se[pe]=de;se[fe]=ie;oe[ce]=he;oe[le]=ne;J[b].dependencies.push({value:ce,comment:ne})}}return{uuid:b,target:J[b]}};pbxProject.prototype.addBuildPhase=function(b,S,J,ee,re,ne){var ie,oe=this.pbxFileReferenceSection(),se=this.pbxBuildFileSection(),ue=this.generateUuid(),ce=ee||this.getFirstTarget().uuid,le=te("%s_comment",ue),fe={isa:S,buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},de={};if(S==="PBXCopyFilesBuildPhase"){fe=pbxCopyFilesBuildPhaseObj(fe,re,ne,J)}else if(S==="PBXShellScriptBuildPhase"){fe=pbxShellScriptBuildPhaseObj(fe,re,J)}if(!this.hash.project.objects[S]){this.hash.project.objects[S]=new Object}if(!this.hash.project.objects[S][ue]){this.hash.project.objects[S][ue]=fe;this.hash.project.objects[S][le]=J}if(this.hash.project.objects["PBXNativeTarget"][ce]["buildPhases"]){this.hash.project.objects["PBXNativeTarget"][ce]["buildPhases"].push({value:ue,comment:J})}for(var he in se){if(!pe.test(he))continue;var me=he.split(pe)[0],ge=se[me];fileReference=oe[ge.fileRef];if(!fileReference)continue;var ye=new ae(fileReference.path);de[fileReference.path]={uuid:me,basename:ye.basename,group:ye.group}}for(var ve=0;ve<b.length;ve++){var Te=b[ve],be='"'+Te+'"',Ee=new ae(Te);if(de[Te]){fe.files.push(pbxBuildPhaseObj(de[Te]));continue}else if(de[be]){fe.files.push(pbxBuildPhaseObj(de[be]));continue}Ee.uuid=this.generateUuid();Ee.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(Ee);this.addToPbxBuildFileSection(Ee);fe.files.push(pbxBuildPhaseObj(Ee))}if(ie){ie[ue]=fe;ie[le]=J}return{uuid:ue,buildPhase:fe}};pbxProject.prototype.pbxProjectSection=function(){return this.hash.project.objects["PBXProject"]};pbxProject.prototype.pbxBuildFileSection=function(){return this.hash.project.objects["PBXBuildFile"]};pbxProject.prototype.pbxXCBuildConfigurationSection=function(){return this.hash.project.objects["XCBuildConfiguration"]};pbxProject.prototype.pbxFileReferenceSection=function(){return this.hash.project.objects["PBXFileReference"]};pbxProject.prototype.pbxNativeTargetSection=function(){return this.hash.project.objects["PBXNativeTarget"]};pbxProject.prototype.xcVersionGroupSection=function(){if(typeof this.hash.project.objects["XCVersionGroup"]!=="object"){this.hash.project.objects["XCVersionGroup"]={}}return this.hash.project.objects["XCVersionGroup"]};pbxProject.prototype.pbxXCConfigurationList=function(){return this.hash.project.objects["XCConfigurationList"]};pbxProject.prototype.pbxGroupByName=function(b){var S=this.hash.project.objects["PBXGroup"],J,ee;for(J in S){if(!pe.test(J))continue;if(S[J]==b){ee=J.split(pe)[0];return S[ee]}}return null};pbxProject.prototype.pbxTargetByName=function(b){return this.pbxItemByComment(b,"PBXNativeTarget")};pbxProject.prototype.findTargetKey=function(b){var S=this.hash.project.objects["PBXNativeTarget"];for(var J in S){if(pe.test(J))continue;var ee=S[J];if(ee.name===b){return J}}return null};pbxProject.prototype.pbxItemByComment=function(b,S){var J=this.hash.project.objects[S],ee,te;for(ee in J){if(!pe.test(ee))continue;if(J[ee]==b){te=ee.split(pe)[0];return J[te]}}return null};pbxProject.prototype.pbxSourcesBuildPhaseObj=function(b){return this.buildPhaseObject("PBXSourcesBuildPhase","Sources",b)};pbxProject.prototype.pbxResourcesBuildPhaseObj=function(b){return this.buildPhaseObject("PBXResourcesBuildPhase","Resources",b)};pbxProject.prototype.pbxFrameworksBuildPhaseObj=function(b){return this.buildPhaseObject("PBXFrameworksBuildPhase","Frameworks",b)};pbxProject.prototype.pbxEmbedFrameworksBuildPhaseObj=function(b){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Embed Frameworks",b)};pbxProject.prototype.buildPhase=function(b,S){if(!S)return undefined;var J=this.pbxNativeTargetSection();if(typeof J[S]=="undefined")throw new Error("Invalid target: "+S);var ee=J[S];var te=ee.buildPhases;for(var re in te){var ne=te[re];if(ne.comment==b)return ne.value+"_comment"}};pbxProject.prototype.buildPhaseObject=function(b,S,J){var ee=this.hash.project.objects[b],te,re,ne;var ie=this.buildPhase(S,J);for(ne in ee){if(!pe.test(ne))continue;if(ie&&ie!=ne)continue;if(ee[ne]==S){re=ne.split(pe)[0];return ee[re]}}return null};pbxProject.prototype.addBuildProperty=function(b,S,J){var ee=nonComments(this.pbxXCBuildConfigurationSection()),te,re;for(te in ee){re=ee[te];if(!J||re.name===J){re.buildSettings[b]=S}}};pbxProject.prototype.removeBuildProperty=function(b,S){var J=nonComments(this.pbxXCBuildConfigurationSection()),ee,te;for(ee in J){te=J[ee];if(te.buildSettings[b]&&!S||te.name===S){delete te.buildSettings[b]}}};pbxProject.prototype.updateBuildProperty=function(b,S,J,ee){let te=[];if(ee){const b=this.pbxTargetByName(ee);const S=b&&b.buildConfigurationList;const J=this.pbxXCConfigurationList();for(const b in J){if(!pe.test(b)&&S===b){const S=J[b].buildConfigurations;for(const b of S){te.push(b.value)}break}}}var re=this.pbxXCBuildConfigurationSection();for(var ne in re){if(!pe.test(ne)){if(ee&&!te.includes(ne))continue;var ie=re[ne];if(J&&ie.name===J||!J){ie.buildSettings[b]=S}}}};pbxProject.prototype.updateProductName=function(b){this.updateBuildProperty("PRODUCT_NAME",'"'+b+'"')};pbxProject.prototype.removeFromFrameworkSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="FRAMEWORK_SEARCH_PATHS",te,re,ne;var ie=searchPathForFile(b,this);for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;ne=re[ee];if(ne&&Array.isArray(ne)){var oe=ne.filter((function(b){return b.indexOf(ie)>-1}));oe.forEach((function(b){var S=ne.indexOf(b);ne.splice(S,1)}))}}};pbxProject.prototype.addToFrameworkSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee,te,re;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName)continue;if(!te["FRAMEWORK_SEARCH_PATHS"]||te["FRAMEWORK_SEARCH_PATHS"]===J){te["FRAMEWORK_SEARCH_PATHS"]=[J]}te["FRAMEWORK_SEARCH_PATHS"].push(searchPathForFile(b,this))}};pbxProject.prototype.removeFromLibrarySearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="LIBRARY_SEARCH_PATHS",te,re,ne;var ie=searchPathForFile(b,this);for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;ne=re[ee];if(ne&&Array.isArray(ne)){var oe=ne.filter((function(b){return b.indexOf(ie)>-1}));oe.forEach((function(b){var S=ne.indexOf(b);ne.splice(S,1)}))}}};pbxProject.prototype.addToLibrarySearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee,te,re;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName)continue;if(!te["LIBRARY_SEARCH_PATHS"]||te["LIBRARY_SEARCH_PATHS"]===J){te["LIBRARY_SEARCH_PATHS"]=[J]}if(typeof b==="string"){te["LIBRARY_SEARCH_PATHS"].push(b)}else{te["LIBRARY_SEARCH_PATHS"].push(searchPathForFile(b,this))}}};pbxProject.prototype.removeFromHeaderSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="HEADER_SEARCH_PATHS",te,re,ne;var ie=searchPathForFile(b,this);for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;if(re[ee]){var oe=re[ee].filter((function(b){return b.indexOf(ie)>-1}));oe.forEach((function(b){var S=re[ee].indexOf(b);re[ee].splice(S,1)}))}}};pbxProject.prototype.addToHeaderSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee,te,re;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName)continue;if(!te["HEADER_SEARCH_PATHS"]){te["HEADER_SEARCH_PATHS"]=[J]}if(typeof b==="string"){te["HEADER_SEARCH_PATHS"].push(b)}else{te["HEADER_SEARCH_PATHS"].push(searchPathForFile(b,this))}}};pbxProject.prototype.addToOtherLinkerFlags=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="OTHER_LDFLAGS",te,re;for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;if(!re[ee]||re[ee]===J){re[ee]=[J]}re[ee].push(b)}};pbxProject.prototype.removeFromOtherLinkerFlags=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J="OTHER_LDFLAGS",ee,te;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName){continue}if(te[J]){var re=te[J].filter((function(S){return S.indexOf(b)>-1}));re.forEach((function(b){var S=te[J].indexOf(b);te[J].splice(S,1)}))}}};pbxProject.prototype.addToBuildSettings=function(b,S){var J=nonComments(this.pbxXCBuildConfigurationSection()),ee,te;for(ee in J){te=J[ee].buildSettings;te[b]=S}};pbxProject.prototype.removeFromBuildSettings=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J,ee;for(J in S){ee=S[J].buildSettings;if(ee[b]){delete ee[b]}}};pbxProject.prototype.__defineGetter__("productName",(function(){var b=nonComments(this.pbxXCBuildConfigurationSection()),S,J;for(S in b){J=b[S].buildSettings["PRODUCT_NAME"];if(J){return unquote(J)}}}));pbxProject.prototype.hasFile=function(b){var S=nonComments(this.pbxFileReferenceSection()),J,ee;for(ee in S){J=S[ee];if(J.path==b||J.path=='"'+b+'"'){return J}}return false};pbxProject.prototype.addTarget=function(b,S,J,ee){var te=this.generateUuid(),re=S,ie=J||b,oe=b.trim(),se=ee;if(!oe){throw new Error("Target name missing.")}if(!re){throw new Error("Target type missing.")}if(!producttypeForTargettype(re)){throw new Error("Target type invalid: "+re)}var ae=[{name:"Debug",isa:"XCBuildConfiguration",buildSettings:{GCC_PREPROCESSOR_DEFINITIONS:['"DEBUG=1"','"$(inherited)"'],INFOPLIST_FILE:'"'+ne.join(ie,ie+"-Info.plist"+'"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+oe+'"',SKIP_INSTALL:"YES"}},{name:"Release",isa:"XCBuildConfiguration",buildSettings:{INFOPLIST_FILE:'"'+ne.join(ie,ie+"-Info.plist"+'"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+oe+'"',SKIP_INSTALL:"YES"}}];if(se){ae=ae.map((b=>{b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER='"'+se+'"';return b}))}var ue=this.addXCConfigurationList(ae,"Release",'Build configuration list for PBXNativeTarget "'+oe+'"');var ce=oe,le=producttypeForTargettype(re),pe=filetypeForProducttype(le),fe=this.addProductFile(ce,{group:"Copy Files",target:te,explicitFileType:pe}),de=fe.basename;this.addToPbxBuildFileSection(fe);var he={uuid:te,pbxNativeTarget:{isa:"PBXNativeTarget",name:'"'+oe+'"',productName:'"'+oe+'"',productReference:fe.fileRef,productType:'"'+producttypeForTargettype(re)+'"',buildConfigurationList:ue.uuid,buildPhases:[],buildRules:[],dependencies:[]}};this.addToPbxNativeTargetSection(he);if(re==="app_extension"){this.addBuildPhase([],"PBXCopyFilesBuildPhase","Copy Files",this.getFirstTarget().uuid,re);this.addToPbxCopyfilesBuildPhase(fe)}else if(re==="watch2_app"){this.addBuildPhase([oe+".app"],"PBXCopyFilesBuildPhase","Embed Watch Content",this.getFirstTarget().uuid,re,'"$(CONTENTS_FOLDER_PATH)/Watch"')}else if(re==="watch2_extension"){var me=this.getTarget(producttypeForTargettype("watch2_app"));if(me){this.addBuildPhase([oe+".appex"],"PBXCopyFilesBuildPhase","Embed App Extensions",me.uuid,re)}}this.addToPbxProjectSection(he);if(re==="watch2_extension"){var me=this.getTarget(producttypeForTargettype("watch2_app"));if(me){this.addTargetDependency(me.uuid,[he.uuid])}}else{this.addTargetDependency(this.getFirstTarget().uuid,[he.uuid])}return he};function pbxBuildFileObj(b){var S=Object.create(null);S.isa="PBXBuildFile";S.fileRef=b.fileRef;S.fileRef_comment=b.basename;if(b.settings)S.settings=b.settings;return S}function pbxFileReferenceObj(b){var S={isa:"PBXFileReference",name:'"'+b.basename+'"',path:'"'+b.path.replace(/\\/g,"/")+'"',sourceTree:b.sourceTree,fileEncoding:b.fileEncoding,lastKnownFileType:b.lastKnownFileType,explicitFileType:b.explicitFileType,includeInIndex:b.includeInIndex};return S}function pbxGroupChild(b){var S=Object.create(null);S.value=b.fileRef;S.comment=b.basename;return S}function pbxBuildPhaseObj(b){var S=Object.create(null);S.value=b.uuid;S.comment=longComment(b);return S}function pbxCopyFilesBuildPhaseObj(b,S,J,ee){var te={application:"wrapper",app_extension:"plugins",bundle:"wrapper",command_line_tool:"wrapper",dynamic_library:"products_directory",framework:"shared_frameworks",frameworks:"frameworks",static_library:"products_directory",unit_test_bundle:"wrapper",watch_app:"wrapper",watch2_app:"products_directory",watch_extension:"plugins",watch2_extension:"plugins"};var re={absolute_path:0,executables:6,frameworks:10,java_resources:15,plugins:13,products_directory:16,resources:7,shared_frameworks:11,shared_support:12,wrapper:1,xpc_services:0};b.name='"'+ee+'"';b.dstPath=J||'""';b.dstSubfolderSpec=re[te[S]];return b}function pbxShellScriptBuildPhaseObj(b,S,J){b.name='"'+J+'"';b.inputPaths=S.inputPaths||[];b.outputPaths=S.outputPaths||[];b.shellPath=S.shellPath;b.shellScript='"'+S.shellScript.replace(/"/g,'\\"')+'"';return b}function pbxBuildFileComment(b){return longComment(b)}function pbxFileReferenceComment(b){return b.basename||ne.basename(b.path)}function pbxNativeTargetComment(b){return b.name}function longComment(b){return te("%s in %s",b.basename,b.group)}function correctForPluginsPath(b,S){return correctForPath(b,S,"Plugins")}function correctForResourcesPath(b,S){return correctForPath(b,S,"Resources")}function correctForFrameworksPath(b,S){return correctForPath(b,S,"Frameworks")}function correctForPath(b,S,J){var ee=new RegExp("^"+J+"[\\\\/]");if(S.pbxGroupByName(J).path)b.path=b.path.replace(ee,"");return b}function searchPathForFile(b,S){var J=S.pbxGroupByName("Plugins"),ee=J?J.path:null,te=ne.dirname(b.path);if(te=="."){te=""}else{te="/"+te}if(b.plugin&&ee){return'"\\"$(SRCROOT)/'+unquote(ee)+'\\""'}else if(b.customFramework&&b.dirname){return'"\\"'+b.dirname+'\\""'}else{return'"\\"$(SRCROOT)/'+S.productName+te+'\\""'}}function nonComments(b){var S=Object.keys(b),J={},ee=0;for(ee;ee<S.length;ee++){if(!pe.test(S[ee])){J[S[ee]]=b[S[ee]]}}return J}function unquote(b){if(b)return b.replace(/^"(.*)"$/,"$1")}function buildPhaseNameForIsa(b){BUILDPHASENAME_BY_ISA={PBXCopyFilesBuildPhase:"Copy Files",PBXResourcesBuildPhase:"Resources",PBXSourcesBuildPhase:"Sources",PBXFrameworksBuildPhase:"Frameworks"};return BUILDPHASENAME_BY_ISA[b]}function producttypeForTargettype(b){PRODUCTTYPE_BY_TARGETTYPE={application:"com.apple.product-type.application",app_extension:"com.apple.product-type.app-extension",bundle:"com.apple.product-type.bundle",command_line_tool:"com.apple.product-type.tool",dynamic_library:"com.apple.product-type.library.dynamic",framework:"com.apple.product-type.framework",static_library:"com.apple.product-type.library.static",unit_test_bundle:"com.apple.product-type.bundle.unit-test",watch_app:"com.apple.product-type.application.watchapp",watch2_app:"com.apple.product-type.application.watchapp2",watch_extension:"com.apple.product-type.watchkit-extension",watch2_extension:"com.apple.product-type.watchkit2-extension"};return PRODUCTTYPE_BY_TARGETTYPE[b]}function filetypeForProducttype(b){FILETYPE_BY_PRODUCTTYPE={"com.apple.product-type.application":'"wrapper.application"',"com.apple.product-type.app-extension":'"wrapper.app-extension"',"com.apple.product-type.bundle":'"wrapper.plug-in"',"com.apple.product-type.tool":'"compiled.mach-o.dylib"',"com.apple.product-type.library.dynamic":'"compiled.mach-o.dylib"',"com.apple.product-type.framework":'"wrapper.framework"',"com.apple.product-type.library.static":'"archive.ar"',"com.apple.product-type.bundle.unit-test":'"wrapper.cfbundle"',"com.apple.product-type.application.watchapp":'"wrapper.application"',"com.apple.product-type.application.watchapp2":'"wrapper.application"',"com.apple.product-type.watchkit-extension":'"wrapper.app-extension"',"com.apple.product-type.watchkit2-extension":'"wrapper.app-extension"'};return FILETYPE_BY_PRODUCTTYPE[b]}pbxProject.prototype.getFirstProject=function(){var b=this.pbxProjectSection();var S=Object.keys(b)[0];var J=b[S];return{uuid:S,firstProject:J}};pbxProject.prototype.getFirstTarget=function(){var b=this.getFirstProject()["firstProject"]["targets"][0].value;var S=this.pbxNativeTargetSection()[b];return{uuid:b,firstTarget:S}};pbxProject.prototype.getTarget=function(b){var S=this.getFirstProject()["firstProject"]["targets"];var J=this.pbxNativeTargetSection();for(var ee=0;ee<S.length;ee++){var te=S[ee];var re=te.value;if(J[re]["productType"]==='"'+b+'"'){var ne=this.pbxNativeTargetSection()[re];return{uuid:re,target:ne}}}return null};pbxProject.prototype.addToPbxGroupType=function(b,S,J){var ee=this.getPBXGroupByKeyAndType(S,J);if(ee&&ee.children!==undefined){if(typeof b==="string"){var te={value:b};if(this.getPBXGroupByKey(b)){te.comment=this.getPBXGroupByKey(b).name}else if(this.getPBXVariantGroupByKey(b)){te.comment=this.getPBXVariantGroupByKey(b).name}ee.children.push(te)}else{ee.children.push(pbxGroupChild(b))}}};pbxProject.prototype.addToPbxVariantGroup=function(b,S){this.addToPbxGroupType(b,S,"PBXVariantGroup")};pbxProject.prototype.addToPbxGroup=function(b,S){this.addToPbxGroupType(b,S,"PBXGroup")};pbxProject.prototype.pbxCreateGroupWithType=function(b,S,J){var ee={isa:'"'+J+'"',children:[],name:b,sourceTree:'"<group>"'};if(S)ee.path=S;var te=this.generateUuid();var re=te+"_comment";var ne=this.hash.project.objects[J];if(!ne){ne=this.hash.project.objects[J]=new Object}ne[re]=b;ne[te]=ee;return te};pbxProject.prototype.pbxCreateVariantGroup=function(b){return this.pbxCreateGroupWithType(b,undefined,"PBXVariantGroup")};pbxProject.prototype.pbxCreateGroup=function(b,S){return this.pbxCreateGroupWithType(b,S,"PBXGroup")};pbxProject.prototype.removeFromPbxGroupAndType=function(b,S,J){var ee=this.getPBXGroupByKeyAndType(S,J);if(ee){var te=ee.children,re;for(re in te){if(pbxGroupChild(b).value==te[re].value&&pbxGroupChild(b).comment==te[re].comment){te.splice(re,1);break}}}};pbxProject.prototype.removeFromPbxGroup=function(b,S){this.removeFromPbxGroupAndType(b,S,"PBXGroup")};pbxProject.prototype.removeFromPbxVariantGroup=function(b,S){this.removeFromPbxGroupAndType(b,S,"PBXVariantGroup")};pbxProject.prototype.getPBXGroupByKeyAndType=function(b,S){return this.hash.project.objects[S][b]};pbxProject.prototype.getPBXGroupByKey=function(b){return this.hash.project.objects["PBXGroup"][b]};pbxProject.prototype.getPBXVariantGroupByKey=function(b){return this.hash.project.objects["PBXVariantGroup"][b]};pbxProject.prototype.findPBXGroupKeyAndType=function(b,S){var J=this.hash.project.objects[S];var ee;for(var te in J){if(pe.test(te))continue;var re=J[te];if(b&&b.path&&b.name){if(b.path===re.path&&b.name===re.name){ee=te;break}}else if(b&&b.path){if(b.path===re.path){ee=te;break}}else if(b&&b.name){if(b.name===re.name){ee=te;break}}}return ee};pbxProject.prototype.findPBXGroupKey=function(b){return this.findPBXGroupKeyAndType(b,"PBXGroup")};pbxProject.prototype.findPBXVariantGroupKey=function(b){return this.findPBXGroupKeyAndType(b,"PBXVariantGroup")};pbxProject.prototype.addLocalizationVariantGroup=function(b){var S=this.pbxCreateVariantGroup(b);var J=this.findPBXGroupKey({name:"Resources"});this.addToPbxGroup(S,J);var ee={uuid:this.generateUuid(),fileRef:S,basename:b};this.addToPbxBuildFileSection(ee);this.addToPbxResourcesBuildPhase(ee);return ee};pbxProject.prototype.addKnownRegion=function(b){if(!this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"]){this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"]=[]}if(!this.hasKnownRegion(b)){this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"].push(b)}};pbxProject.prototype.removeKnownRegion=function(b){var S=this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"];if(S){for(var J=0;J<S.length;J++){if(S[J]===b){S.splice(J,1);break}}this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"]=S}};pbxProject.prototype.hasKnownRegion=function(b){var S=this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"];if(S){for(var J in S){if(S[J]===b){return true}}}return false};pbxProject.prototype.getPBXObject=function(b){return this.hash.project.objects[b]};pbxProject.prototype.addFile=function(b,S,J){var ee=new ae(b,J);if(this.hasFile(ee.path))return null;ee.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(ee);if(this.getPBXGroupByKey(S)){this.addToPbxGroup(ee,S)}else if(this.getPBXVariantGroupByKey(S)){this.addToPbxVariantGroup(ee,S)}return ee};pbxProject.prototype.removeFile=function(b,S,J){var ee=new ae(b,J);this.removeFromPbxFileReferenceSection(ee);if(this.getPBXGroupByKey(S)){this.removeFromPbxGroup(ee,S)}else if(this.getPBXVariantGroupByKey(S)){this.removeFromPbxVariantGroup(ee,S)}return ee};pbxProject.prototype.getBuildProperty=function(b,S,J){var ee;let te=[];if(J){const b=this.pbxTargetByName(J);const S=b&&b.buildConfigurationList;const ee=this.pbxXCConfigurationList();for(const b in ee){if(!pe.test(b)&&S===b){const S=ee[b].buildConfigurations;for(const b of S){te.push(b.value)}break}}}var re=this.pbxXCBuildConfigurationSection();for(var ne in re){if(!pe.test(ne)){if(J&&!te.includes(ne))continue;var ie=re[ne];if(S&&ie.name===S||S===undefined){if(ie.buildSettings[b]!==undefined){ee=ie.buildSettings[b]}}}}return ee};pbxProject.prototype.getBuildConfigByName=function(b){var S={};var J=this.pbxXCBuildConfigurationSection();for(var ee in J){if(!pe.test(ee)){var te=J[ee];if(te.name===b){S[ee]=te}}}return S};pbxProject.prototype.addDataModelDocument=function(b,S,J){if(!S){S="Resources"}if(!this.getPBXGroupByKey(S)){S=this.findPBXGroupKey({name:S})}var ee=new ae(b,J);if(!ee||this.hasFile(ee.path))return null;ee.fileRef=this.generateUuid();this.addToPbxGroup(ee,S);if(!ee)return false;ee.target=J?J.target:undefined;ee.uuid=this.generateUuid();this.addToPbxBuildFileSection(ee);this.addToPbxSourcesBuildPhase(ee);ee.models=[];var te;var re=ue.readdirSync(ee.path);for(var ie in re){var oe=re[ie];var se=ne.join(b,oe);if(oe==".xccurrentversion"){te=le.readFileSync(se)._XCCurrentVersionName;continue}var ce=new ae(se);ce.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(ce);ee.models.push(ce);if(te&&te===oe){ee.currentModel=ce}}if(!ee.currentModel){ee.currentModel=ee.models[0]}this.addToXcVersionGroupSection(ee);return ee};pbxProject.prototype.addTargetAttribute=function(b,S,J){var ee=this.getFirstProject()["firstProject"]["attributes"];if(ee["TargetAttributes"]===undefined){ee["TargetAttributes"]={}}J=J||this.getFirstTarget();if(ee["TargetAttributes"][J.uuid]===undefined){ee["TargetAttributes"][J.uuid]={}}ee["TargetAttributes"][J.uuid][b]=S};pbxProject.prototype.removeTargetAttribute=function(b,S){var J=this.getFirstProject()["firstProject"]["attributes"];S=S||this.getFirstTarget();if(J["TargetAttributes"]&&J["TargetAttributes"][S.uuid]){delete J["TargetAttributes"][S.uuid][b]}};b.exports=pbxProject},32704:(b,S,J)=>{var ee=J(3854),te=J(73837),re=te.format,ne="\t",ie=/_comment$/,oe=/^"(.*)"$/,se=J(82361).EventEmitter;function i(b){if(b<=0)return"";else return ne+i(b-1)}function comment(b,S){var J=S[b+"_comment"];if(J)return J;else return null}function isObject(b){return b===Object(b)}function isArray(b){return Array.isArray(b)}function pbxWriter(b,S){if(!S){S={}}if(S.omitEmptyValues===undefined){S.omitEmptyValues=false}this.contents=b;this.sync=false;this.indentLevel=0;this.omitEmptyValues=S.omitEmptyValues}te.inherits(pbxWriter,se);pbxWriter.prototype.write=function(b){var S=re.apply(null,arguments);if(this.sync){this.buffer+=re("%s%s",i(this.indentLevel),S)}else{}};pbxWriter.prototype.writeFlush=function(b){var S=this.indentLevel;this.indentLevel=0;this.write.apply(this,arguments);this.indentLevel=S};pbxWriter.prototype.writeSync=function(){this.sync=true;this.buffer="";this.writeHeadComment();this.writeProject();return this.buffer};pbxWriter.prototype.writeHeadComment=function(){if(this.contents.headComment){this.write("// %s\n",this.contents.headComment)}};pbxWriter.prototype.writeProject=function(){var b=this.contents.project,S,J,ee;this.write("{\n");if(b){this.indentLevel++;for(S in b){if(ie.test(S))continue;J=comment(S,b);ee=b[S];if(isArray(ee)){this.writeArray(ee,S)}else if(isObject(ee)){this.write("%s = {\n",S);this.indentLevel++;if(S==="objects"){this.writeObjectsSections(ee)}else{this.writeObject(ee)}this.indentLevel--;this.write("};\n")}else if(this.omitEmptyValues&&(ee===undefined||ee===null)){continue}else if(J){this.write("%s = %s /* %s */;\n",S,ee,J)}else{this.write("%s = %s;\n",S,ee)}}this.indentLevel--}this.write("}\n")};pbxWriter.prototype.writeObject=function(b){var S,J,ee;for(S in b){if(ie.test(S))continue;ee=comment(S,b);J=b[S];if(isArray(J)){this.writeArray(J,S)}else if(isObject(J)){this.write("%s = {\n",S);this.indentLevel++;this.writeObject(J);this.indentLevel--;this.write("};\n")}else{if(this.omitEmptyValues&&(J===undefined||J===null)){continue}else if(ee){this.write("%s = %s /* %s */;\n",S,J,ee)}else{this.write("%s = %s;\n",S,J)}}}};pbxWriter.prototype.writeObjectsSections=function(b){var S,J;for(S in b){this.writeFlush("\n");J=b[S];if(isObject(J)){this.writeSectionComment(S,true);this.writeSection(J);this.writeSectionComment(S,false)}}};pbxWriter.prototype.writeArray=function(b,S){var J,ee;this.write("%s = (\n",S);this.indentLevel++;for(J=0;J<b.length;J++){ee=b[J];if(ee.value&&ee.comment){this.write("%s /* %s */,\n",ee.value,ee.comment)}else if(isObject(ee)){this.write("{\n");this.indentLevel++;this.writeObject(ee);this.indentLevel--;this.write("},\n")}else{this.write("%s,\n",ee)}}this.indentLevel--;this.write(");\n")};pbxWriter.prototype.writeSectionComment=function(b,S){if(S){this.writeFlush("/* Begin %s section */\n",b)}else{this.writeFlush("/* End %s section */\n",b)}};pbxWriter.prototype.writeSection=function(b){var S,J,ee;for(S in b){if(ie.test(S))continue;ee=comment(S,b);J=b[S];if(J.isa=="PBXBuildFile"||J.isa=="PBXFileReference"){this.writeInlineObject(S,ee,J)}else{if(ee){this.write("%s /* %s */ = {\n",S,ee)}else{this.write("%s = {\n",S)}this.indentLevel++;this.writeObject(J);this.indentLevel--;this.write("};\n")}}};pbxWriter.prototype.writeInlineObject=function(b,S,J){var ee=[];var te=this;var inlineObjectHelper=function(b,S,J){var ne,oe,se;if(S){ee.push(re("%s /* %s */ = {",b,S))}else{ee.push(re("%s = {",b))}for(ne in J){if(ie.test(ne))continue;oe=comment(ne,J);se=J[ne];if(isArray(se)){ee.push(re("%s = (",ne));for(var ae=0;ae<se.length;ae++){ee.push(re("%s, ",se[ae]))}ee.push("); ")}else if(isObject(se)){inlineObjectHelper(ne,oe,se)}else if(te.omitEmptyValues&&(se===undefined||se===null)){continue}else if(oe){ee.push(re("%s = %s /* %s */; ",ne,se,oe))}else{ee.push(re("%s = %s; ",ne,se))}}ee.push("}; ")};inlineObjectHelper(b,S,J);this.write("%s\n",ee.join("").trim())};b.exports=pbxWriter},74913:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var J=[];for(var ee=0;ee<256;++ee){J[ee]=(ee+256).toString(16).substr(1)}function bytesToUuid(b,S){var ee=S||0;var te=J;return[te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]]].join("")}var te=bytesToUuid;S["default"]=te;b.exports=S.default},87265:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"v1",{enumerable:true,get:function(){return ee.default}});Object.defineProperty(S,"v3",{enumerable:true,get:function(){return te.default}});Object.defineProperty(S,"v4",{enumerable:true,get:function(){return re.default}});Object.defineProperty(S,"v5",{enumerable:true,get:function(){return ne.default}});var ee=_interopRequireDefault(J(82289));var te=_interopRequireDefault(J(68104));var re=_interopRequireDefault(J(91384));var ne=_interopRequireDefault(J(20092));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}},58349:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(6113));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function md5(b){if(Array.isArray(b)){b=Buffer.from(b)}else if(typeof b==="string"){b=Buffer.from(b,"utf8")}return ee.default.createHash("md5").update(b).digest()}var te=md5;S["default"]=te;b.exports=S.default},77788:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=rng;var ee=_interopRequireDefault(J(6113));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function rng(){return ee.default.randomBytes(16)}b.exports=S.default},25925:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(6113));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function sha1(b){if(Array.isArray(b)){b=Buffer.from(b)}else if(typeof b==="string"){b=Buffer.from(b,"utf8")}return ee.default.createHash("sha1").update(b).digest()}var te=sha1;S["default"]=te;b.exports=S.default},82289:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(77788));var te=_interopRequireDefault(J(74913));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var re;var ne;var ie=0;var oe=0;function v1(b,S,J){var se=S&&J||0;var ae=S||[];b=b||{};var ue=b.node||re;var ce=b.clockseq!==undefined?b.clockseq:ne;if(ue==null||ce==null){var le=b.random||(b.rng||ee.default)();if(ue==null){ue=re=[le[0]|1,le[1],le[2],le[3],le[4],le[5]]}if(ce==null){ce=ne=(le[6]<<8|le[7])&16383}}var pe=b.msecs!==undefined?b.msecs:(new Date).getTime();var fe=b.nsecs!==undefined?b.nsecs:oe+1;var de=pe-ie+(fe-oe)/1e4;if(de<0&&b.clockseq===undefined){ce=ce+1&16383}if((de<0||pe>ie)&&b.nsecs===undefined){fe=0}if(fe>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}ie=pe;oe=fe;ne=ce;pe+=122192928e5;var he=((pe&268435455)*1e4+fe)%4294967296;ae[se++]=he>>>24&255;ae[se++]=he>>>16&255;ae[se++]=he>>>8&255;ae[se++]=he&255;var me=pe/4294967296*1e4&268435455;ae[se++]=me>>>8&255;ae[se++]=me&255;ae[se++]=me>>>24&15|16;ae[se++]=me>>>16&255;ae[se++]=ce>>>8|128;ae[se++]=ce&255;for(var ge=0;ge<6;++ge){ae[se+ge]=ue[ge]}return S?S:(0,te.default)(ae)}var se=v1;S["default"]=se;b.exports=S.default},68104:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(66165));var te=_interopRequireDefault(J(58349));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const re=(0,ee.default)("v3",48,te.default);var ne=re;S["default"]=ne;b.exports=S.default},66165:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=_default;S.URL=S.DNS=void 0;var ee=_interopRequireDefault(J(74913));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function uuidToBytes(b){var S=[];b.replace(/[a-fA-F0-9]{2}/g,(function(b){S.push(parseInt(b,16))}));return S}function stringToBytes(b){b=unescape(encodeURIComponent(b));var S=new Array(b.length);for(var J=0;J<b.length;J++){S[J]=b.charCodeAt(J)}return S}const te="6ba7b810-9dad-11d1-80b4-00c04fd430c8";S.DNS=te;const re="6ba7b811-9dad-11d1-80b4-00c04fd430c8";S.URL=re;function _default(b,S,J){var generateUUID=function(b,te,re,ne){var ie=re&&ne||0;if(typeof b=="string")b=stringToBytes(b);if(typeof te=="string")te=uuidToBytes(te);if(!Array.isArray(b))throw TypeError("value must be an array of bytes");if(!Array.isArray(te)||te.length!==16)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var oe=J(te.concat(b));oe[6]=oe[6]&15|S;oe[8]=oe[8]&63|128;if(re){for(var se=0;se<16;++se){re[ie+se]=oe[se]}}return re||(0,ee.default)(oe)};try{generateUUID.name=b}catch(b){}generateUUID.DNS=te;generateUUID.URL=re;return generateUUID}},91384:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(77788));var te=_interopRequireDefault(J(74913));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function v4(b,S,J){var re=S&&J||0;if(typeof b=="string"){S=b==="binary"?new Array(16):null;b=null}b=b||{};var ne=b.random||(b.rng||ee.default)();ne[6]=ne[6]&15|64;ne[8]=ne[8]&63|128;if(S){for(var ie=0;ie<16;++ie){S[re+ie]=ne[ie]}}return S||(0,te.default)(ne)}var re=v4;S["default"]=re;b.exports=S.default},20092:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(66165));var te=_interopRequireDefault(J(25925));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const re=(0,ee.default)("v5",80,te.default);var ne=re;S["default"]=ne;b.exports=S.default},40504:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__exportStar||function(b,S){for(var J in b)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(S,J))ee(S,b,J)};Object.defineProperty(S,"__esModule",{value:true});S.build=S.parse=void 0;const ie=re(J(62902));const oe=J(62540);const se=J(9128);function parse(b){const S=ie.parse(b);const J=new oe.ContextVisitor;J.visit(S);return J.context}S.parse=parse;function build(b){return new se.Writer(b).getResults()}S.build=build;ne(J(99348),S)},41791:function(b){"use strict";
|
|
34
|
-
/*! For license information please see chevrotain.min.js.LICENSE.txt */!function(S,J){true?b.exports=J():0}("undefined"!=typeof self?self:this,(function(){return(()=>{var b={9515:(b,S,J)=>{var ee=J(8761)(J(7772),"DataView");b.exports=ee},9612:(b,S,J)=>{var ee=J(2118),te=J(6909),re=J(8138),ne=J(4174),ie=J(7942);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},235:(b,S,J)=>{var ee=J(3945),te=J(1846),re=J(8028),ne=J(2344),ie=J(4769);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},326:(b,S,J)=>{var ee=J(8761)(J(7772),"Map");b.exports=ee},6738:(b,S,J)=>{var ee=J(2411),te=J(6417),re=J(6928),ne=J(9493),ie=J(4150);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},2760:(b,S,J)=>{var ee=J(8761)(J(7772),"Promise");b.exports=ee},2143:(b,S,J)=>{var ee=J(8761)(J(7772),"Set");b.exports=ee},5386:(b,S,J)=>{var ee=J(6738),te=J(2842),re=J(2482);function a(b){var S=-1,J=null==b?0:b.length;for(this.__data__=new ee;++S<J;)this.add(b[S])}a.prototype.add=a.prototype.push=te,a.prototype.has=re,b.exports=a},6571:(b,S,J)=>{var ee=J(235),te=J(5243),re=J(2858),ne=J(4417),ie=J(8605),oe=J(1418);function c(b){var S=this.__data__=new ee(b);this.size=S.size}c.prototype.clear=te,c.prototype.delete=re,c.prototype.get=ne,c.prototype.has=ie,c.prototype.set=oe,b.exports=c},857:(b,S,J)=>{var ee=J(7772).Symbol;b.exports=ee},9162:(b,S,J)=>{var ee=J(7772).Uint8Array;b.exports=ee},3215:(b,S,J)=>{var ee=J(8761)(J(7772),"WeakMap");b.exports=ee},9432:b=>{b.exports=function(b,S,J){switch(J.length){case 0:return b.call(S);case 1:return b.call(S,J[0]);case 2:return b.call(S,J[0],J[1]);case 3:return b.call(S,J[0],J[1],J[2])}return b.apply(S,J)}},5338:b=>{b.exports=function(b,S,J,ee){for(var te=-1,re=null==b?0:b.length;++te<re;){var ne=b[te];S(ee,ne,J(ne),b)}return ee}},2517:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee&&!1!==S(b[J],J,b););return b}},7603:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(!S(b[J],J,b))return!1;return!0}},7552:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=0,re=[];++J<ee;){var ne=b[J];S(ne,J,b)&&(re[te++]=ne)}return re}},8333:(b,S,J)=>{var ee=J(7832);b.exports=function(b,S){return!(null==b||!b.length)&&ee(b,S,0)>-1}},4893:b=>{b.exports=function(b,S,J){for(var ee=-1,te=null==b?0:b.length;++ee<te;)if(J(S,b[ee]))return!0;return!1}},1634:(b,S,J)=>{var ee=J(6473),te=J(9631),re=J(6152),ne=J(3226),ie=J(9045),oe=J(7598),se=Object.prototype.hasOwnProperty;b.exports=function(b,S){var J=re(b),ae=!J&&te(b),ue=!J&&!ae&&ne(b),ce=!J&&!ae&&!ue&&oe(b),le=J||ae||ue||ce,pe=le?ee(b.length,String):[],fe=pe.length;for(var de in b)!S&&!se.call(b,de)||le&&("length"==de||ue&&("offset"==de||"parent"==de)||ce&&("buffer"==de||"byteLength"==de||"byteOffset"==de)||ie(de,fe))||pe.push(de);return pe}},343:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=Array(ee);++J<ee;)te[J]=S(b[J],J,b);return te}},5067:b=>{b.exports=function(b,S){for(var J=-1,ee=S.length,te=b.length;++J<ee;)b[te+J]=S[J];return b}},1207:b=>{b.exports=function(b,S,J,ee){var te=-1,re=null==b?0:b.length;for(ee&&re&&(J=b[++te]);++te<re;)J=S(J,b[te],te,b);return J}},7064:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(S(b[J],J,b))return!0;return!1}},217:b=>{b.exports=function(b){return b.split("")}},91:(b,S,J)=>{var ee=J(3940),te=J(1225),re=Object.prototype.hasOwnProperty;b.exports=function(b,S,J){var ne=b[S];re.call(b,S)&&te(ne,J)&&(void 0!==J||S in b)||ee(b,S,J)}},2218:(b,S,J)=>{var ee=J(1225);b.exports=function(b,S){for(var J=b.length;J--;)if(ee(b[J][0],S))return J;return-1}},2825:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S,J,te){return ee(b,(function(b,ee,re){S(te,b,J(b),re)})),te}},7993:(b,S,J)=>{var ee=J(752),te=J(249);b.exports=function(b,S){return b&&ee(S,te(S),b)}},5906:(b,S,J)=>{var ee=J(752),te=J(8582);b.exports=function(b,S){return b&&ee(S,te(S),b)}},3940:(b,S,J)=>{var ee=J(3043);b.exports=function(b,S,J){"__proto__"==S&&ee?ee(b,S,{configurable:!0,enumerable:!0,value:J,writable:!0}):b[S]=J}},8874:(b,S,J)=>{var ee=J(6571),te=J(2517),re=J(91),ne=J(7993),ie=J(5906),oe=J(2175),se=J(1522),ae=J(7680),ue=J(9987),ce=J(3483),le=J(6939),pe=J(940),fe=J(9917),de=J(8222),he=J(8725),me=J(6152),ge=J(3226),ye=J(4714),ve=J(9259),Te=J(3679),be=J(249),Ee=J(8582),Ae="[object Arguments]",we="[object Function]",_e="[object Object]",xe={};xe[Ae]=xe["[object Array]"]=xe["[object ArrayBuffer]"]=xe["[object DataView]"]=xe["[object Boolean]"]=xe["[object Date]"]=xe["[object Float32Array]"]=xe["[object Float64Array]"]=xe["[object Int8Array]"]=xe["[object Int16Array]"]=xe["[object Int32Array]"]=xe["[object Map]"]=xe["[object Number]"]=xe[_e]=xe["[object RegExp]"]=xe["[object Set]"]=xe["[object String]"]=xe["[object Symbol]"]=xe["[object Uint8Array]"]=xe["[object Uint8ClampedArray]"]=xe["[object Uint16Array]"]=xe["[object Uint32Array]"]=!0,xe["[object Error]"]=xe[we]=xe["[object WeakMap]"]=!1,b.exports=function t(b,S,J,Pe,Ce,ke){var Se,De=1&S,Ie=2&S,Oe=4&S;if(J&&(Se=Ce?J(b,Pe,Ce,ke):J(b)),void 0!==Se)return Se;if(!ve(b))return b;var Re=me(b);if(Re){if(Se=fe(b),!De)return se(b,Se)}else{var Ne=pe(b),Me=Ne==we||"[object GeneratorFunction]"==Ne;if(ge(b))return oe(b,De);if(Ne==_e||Ne==Ae||Me&&!Ce){if(Se=Ie||Me?{}:he(b),!De)return Ie?ue(b,ie(Se,b)):ae(b,ne(Se,b))}else{if(!xe[Ne])return Ce?b:{};Se=de(b,Ne,De)}}ke||(ke=new ee);var Fe=ke.get(b);if(Fe)return Fe;ke.set(b,Se),Te(b)?b.forEach((function(ee){Se.add(t(ee,S,J,ee,b,ke))})):ye(b)&&b.forEach((function(ee,te){Se.set(te,t(ee,S,J,te,b,ke))}));var Le=Re?void 0:(Oe?Ie?le:ce:Ie?Ee:be)(b);return te(Le||b,(function(ee,te){Le&&(ee=b[te=ee]),re(Se,te,t(ee,S,J,te,b,ke))})),Se}},9413:(b,S,J)=>{var ee=J(9259),te=Object.create,re=function(){function t(){}return function(b){if(!ee(b))return{};if(te)return te(b);t.prototype=b;var S=new t;return t.prototype=void 0,S}}();b.exports=re},5246:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(343),ie=J(7826),oe=J(9950);b.exports=function(b,S,J,se){var ae=-1,ue=te,ce=!0,le=b.length,pe=[],fe=S.length;if(!le)return pe;J&&(S=ne(S,ie(J))),se?(ue=re,ce=!1):S.length>=200&&(ue=oe,ce=!1,S=new ee(S));e:for(;++ae<le;){var de=b[ae],he=null==J?de:J(de);if(de=se||0!==de?de:0,ce&&he==he){for(var me=fe;me--;)if(S[me]===he)continue e;pe.push(de)}else ue(S,he,se)||pe.push(de)}return pe}},4303:(b,S,J)=>{var ee=J(6548),te=J(2019)(ee);b.exports=te},80:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=!0;return ee(b,(function(b,ee,te){return J=!!S(b,ee,te)})),J}},8043:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=[];return ee(b,(function(b,ee,te){S(b,ee,te)&&J.push(b)})),J}},1359:b=>{b.exports=function(b,S,J,ee){for(var te=b.length,re=J+(ee?1:-1);ee?re--:++re<te;)if(S(b[re],re,b))return re;return-1}},2034:(b,S,J)=>{var ee=J(5067),te=J(5882);b.exports=function t(b,S,J,re,ne){var ie=-1,oe=b.length;for(J||(J=te),ne||(ne=[]);++ie<oe;){var se=b[ie];S>0&&J(se)?S>1?t(se,S-1,J,re,ne):ee(ne,se):re||(ne[ne.length]=se)}return ne}},5308:(b,S,J)=>{var ee=J(5463)();b.exports=ee},6548:(b,S,J)=>{var ee=J(5308),te=J(249);b.exports=function(b,S){return b&&ee(b,S,te)}},3324:(b,S,J)=>{var ee=J(7297),te=J(3812);b.exports=function(b,S){for(var J=0,re=(S=ee(S,b)).length;null!=b&&J<re;)b=b[te(S[J++])];return J&&J==re?b:void 0}},1897:(b,S,J)=>{var ee=J(5067),te=J(6152);b.exports=function(b,S,J){var re=S(b);return te(b)?re:ee(re,J(b))}},3366:(b,S,J)=>{var ee=J(857),te=J(2107),re=J(7157),ne=ee?ee.toStringTag:void 0;b.exports=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":ne&&ne in Object(b)?te(b):re(b)}},2726:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b,J){return null!=b&&S.call(b,J)}},187:b=>{b.exports=function(b,S){return null!=b&&S in Object(b)}},7832:(b,S,J)=>{var ee=J(1359),te=J(2195),re=J(6024);b.exports=function(b,S,J){return S==S?re(b,S,J):ee(b,te,J)}},5183:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object Arguments]"==ee(b)}},8746:(b,S,J)=>{var ee=J(1952),te=J(5125);b.exports=function t(b,S,J,re,ne){return b===S||(null==b||null==S||!te(b)&&!te(S)?b!=b&&S!=S:ee(b,S,J,re,t,ne))}},1952:(b,S,J)=>{var ee=J(6571),te=J(4871),re=J(1491),ne=J(7416),ie=J(940),oe=J(6152),se=J(3226),ae=J(7598),ue="[object Arguments]",ce="[object Array]",le="[object Object]",pe=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,fe,de,he){var me=oe(b),ge=oe(S),ye=me?ce:ie(b),ve=ge?ce:ie(S),Te=(ye=ye==ue?le:ye)==le,be=(ve=ve==ue?le:ve)==le,Ee=ye==ve;if(Ee&&se(b)){if(!se(S))return!1;me=!0,Te=!1}if(Ee&&!Te)return he||(he=new ee),me||ae(b)?te(b,S,J,fe,de,he):re(b,S,ye,J,fe,de,he);if(!(1&J)){var Ae=Te&&pe.call(b,"__wrapped__"),we=be&&pe.call(S,"__wrapped__");if(Ae||we){var _e=Ae?b.value():b,xe=we?S.value():S;return he||(he=new ee),de(_e,xe,J,fe,he)}}return!!Ee&&(he||(he=new ee),ne(b,S,J,fe,de,he))}},4511:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Map]"==ee(b)}},7036:(b,S,J)=>{var ee=J(6571),te=J(8746);b.exports=function(b,S,J,re){var ne=J.length,ie=ne,oe=!re;if(null==b)return!ie;for(b=Object(b);ne--;){var se=J[ne];if(oe&&se[2]?se[1]!==b[se[0]]:!(se[0]in b))return!1}for(;++ne<ie;){var ae=(se=J[ne])[0],ue=b[ae],ce=se[1];if(oe&&se[2]){if(void 0===ue&&!(ae in b))return!1}else{var le=new ee;if(re)var pe=re(ue,ce,ae,b,S,le);if(!(void 0===pe?te(ce,ue,3,re,le):pe))return!1}}return!0}},2195:b=>{b.exports=function(b){return b!=b}},6840:(b,S,J)=>{var ee=J(1049),te=J(7394),re=J(9259),ne=J(7035),ie=/^\[object .+?Constructor\]$/,oe=Function.prototype,se=Object.prototype,ae=oe.toString,ue=se.hasOwnProperty,ce=RegExp("^"+ae.call(ue).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");b.exports=function(b){return!(!re(b)||te(b))&&(ee(b)?ce:ie).test(ne(b))}},4333:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object RegExp]"==ee(b)}},8436:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Set]"==ee(b)}},5522:(b,S,J)=>{var ee=J(3366),te=J(1158),re=J(5125),ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne["[object Arguments]"]=ne["[object Array]"]=ne["[object ArrayBuffer]"]=ne["[object Boolean]"]=ne["[object DataView]"]=ne["[object Date]"]=ne["[object Error]"]=ne["[object Function]"]=ne["[object Map]"]=ne["[object Number]"]=ne["[object Object]"]=ne["[object RegExp]"]=ne["[object Set]"]=ne["[object String]"]=ne["[object WeakMap]"]=!1,b.exports=function(b){return re(b)&&te(b.length)&&!!ne[ee(b)]}},8286:(b,S,J)=>{var ee=J(6423),te=J(4716),re=J(3059),ne=J(6152),ie=J(5798);b.exports=function(b){return"function"==typeof b?b:null==b?re:"object"==typeof b?ne(b)?te(b[0],b[1]):ee(b):ie(b)}},6411:(b,S,J)=>{var ee=J(6001),te=J(4248),re=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return te(b);var S=[];for(var J in Object(b))re.call(b,J)&&"constructor"!=J&&S.push(J);return S}},8390:(b,S,J)=>{var ee=J(9259),te=J(6001),re=J(2966),ne=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return re(b);var S=te(b),J=[];for(var ie in b)("constructor"!=ie||!S&&ne.call(b,ie))&&J.push(ie);return J}},3401:(b,S,J)=>{var ee=J(4303),te=J(7878);b.exports=function(b,S){var J=-1,re=te(b)?Array(b.length):[];return ee(b,(function(b,ee,te){re[++J]=S(b,ee,te)})),re}},6423:(b,S,J)=>{var ee=J(7036),te=J(9882),re=J(3477);b.exports=function(b){var S=te(b);return 1==S.length&&S[0][2]?re(S[0][0],S[0][1]):function(J){return J===b||ee(J,b,S)}}},4716:(b,S,J)=>{var ee=J(8746),te=J(2579),re=J(5041),ne=J(1401),ie=J(8792),oe=J(3477),se=J(3812);b.exports=function(b,S){return ne(b)&&ie(S)?oe(se(b),S):function(J){var ne=te(J,b);return void 0===ne&&ne===S?re(J,b):ee(S,ne,3)}}},3759:(b,S,J)=>{var ee=J(3324),te=J(2857),re=J(7297);b.exports=function(b,S,J){for(var ne=-1,ie=S.length,oe={};++ne<ie;){var se=S[ne],ae=ee(b,se);J(ae,se)&&te(oe,re(se,b),ae)}return oe}},256:b=>{b.exports=function(b){return function(S){return null==S?void 0:S[b]}}},2952:(b,S,J)=>{var ee=J(3324);b.exports=function(b){return function(S){return ee(S,b)}}},5877:b=>{b.exports=function(b,S,J,ee,te){return te(b,(function(b,te,re){J=ee?(ee=!1,b):S(J,b,te,re)})),J}},6060:(b,S,J)=>{var ee=J(3059),te=J(3114),re=J(5251);b.exports=function(b,S){return re(te(b,S,ee),b+"")}},2857:(b,S,J)=>{var ee=J(91),te=J(7297),re=J(9045),ne=J(9259),ie=J(3812);b.exports=function(b,S,J,oe){if(!ne(b))return b;for(var se=-1,ae=(S=te(S,b)).length,ue=ae-1,ce=b;null!=ce&&++se<ae;){var le=ie(S[se]),pe=J;if("__proto__"===le||"constructor"===le||"prototype"===le)return b;if(se!=ue){var fe=ce[le];void 0===(pe=oe?oe(fe,le,ce):void 0)&&(pe=ne(fe)?fe:re(S[se+1])?[]:{})}ee(ce,le,pe),ce=ce[le]}return b}},6532:(b,S,J)=>{var ee=J(6874),te=J(3043),re=J(3059),ne=te?function(b,S){return te(b,"toString",{configurable:!0,enumerable:!1,value:ee(S),writable:!0})}:re;b.exports=ne},9872:b=>{b.exports=function(b,S,J){var ee=-1,te=b.length;S<0&&(S=-S>te?0:te+S),(J=J>te?te:J)<0&&(J+=te),te=S>J?0:J-S>>>0,S>>>=0;for(var re=Array(te);++ee<te;)re[ee]=b[ee+S];return re}},4751:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J;return ee(b,(function(b,ee,te){return!(J=S(b,ee,te))})),!!J}},6473:b=>{b.exports=function(b,S){for(var J=-1,ee=Array(b);++J<b;)ee[J]=S(J);return ee}},1054:(b,S,J)=>{var ee=J(857),te=J(343),re=J(6152),ne=J(4795),ie=ee?ee.prototype:void 0,oe=ie?ie.toString:void 0;b.exports=function t(b){if("string"==typeof b)return b;if(re(b))return te(b,t)+"";if(ne(b))return oe?oe.call(b):"";var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},1704:(b,S,J)=>{var ee=J(2153),te=/^\s+/;b.exports=function(b){return b?b.slice(0,ee(b)+1).replace(te,""):b}},7826:b=>{b.exports=function(b){return function(S){return b(S)}}},7326:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(9950),ie=J(8803),oe=J(4207);b.exports=function(b,S,J){var se=-1,ae=te,ue=b.length,ce=!0,le=[],pe=le;if(J)ce=!1,ae=re;else if(ue>=200){var fe=S?null:ie(b);if(fe)return oe(fe);ce=!1,ae=ne,pe=new ee}else pe=S?[]:le;e:for(;++se<ue;){var de=b[se],he=S?S(de):de;if(de=J||0!==de?de:0,ce&&he==he){for(var me=pe.length;me--;)if(pe[me]===he)continue e;S&&pe.push(he),le.push(de)}else ae(pe,he,J)||(pe!==le&&pe.push(he),le.push(de))}return le}},753:(b,S,J)=>{var ee=J(343);b.exports=function(b,S){return ee(S,(function(S){return b[S]}))}},9950:b=>{b.exports=function(b,S){return b.has(S)}},9419:(b,S,J)=>{var ee=J(3059);b.exports=function(b){return"function"==typeof b?b:ee}},7297:(b,S,J)=>{var ee=J(6152),te=J(1401),re=J(4452),ne=J(6188);b.exports=function(b,S){return ee(b)?b:te(b,S)?[b]:re(ne(b))}},3895:(b,S,J)=>{var ee=J(9872);b.exports=function(b,S,J){var te=b.length;return J=void 0===J?te:J,!S&&J>=te?b:ee(b,S,J)}},897:(b,S,J)=>{var ee=J(9162);b.exports=function(b){var S=new b.constructor(b.byteLength);return new ee(S).set(new ee(b)),S}},2175:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te?ee.Buffer:void 0,ie=ne?ne.allocUnsafe:void 0;b.exports=function(b,S){if(S)return b.slice();var J=b.length,ee=ie?ie(J):new b.constructor(J);return b.copy(ee),ee}},4727:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.byteLength)}},6058:b=>{var S=/\w*$/;b.exports=function(b){var J=new b.constructor(b.source,S.exec(b));return J.lastIndex=b.lastIndex,J}},169:(b,S,J)=>{var ee=J(857),te=ee?ee.prototype:void 0,re=te?te.valueOf:void 0;b.exports=function(b){return re?Object(re.call(b)):{}}},6190:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.length)}},1522:b=>{b.exports=function(b,S){var J=-1,ee=b.length;for(S||(S=Array(ee));++J<ee;)S[J]=b[J];return S}},752:(b,S,J)=>{var ee=J(91),te=J(3940);b.exports=function(b,S,J,re){var ne=!J;J||(J={});for(var ie=-1,oe=S.length;++ie<oe;){var se=S[ie],ae=re?re(J[se],b[se],se,J,b):void 0;void 0===ae&&(ae=b[se]),ne?te(J,se,ae):ee(J,se,ae)}return J}},7680:(b,S,J)=>{var ee=J(752),te=J(633);b.exports=function(b,S){return ee(b,te(b),S)}},9987:(b,S,J)=>{var ee=J(752),te=J(2680);b.exports=function(b,S){return ee(b,te(b),S)}},4019:(b,S,J)=>{var ee=J(7772)["__core-js_shared__"];b.exports=ee},6740:(b,S,J)=>{var ee=J(5338),te=J(2825),re=J(8286),ne=J(6152);b.exports=function(b,S){return function(J,ie){var oe=ne(J)?ee:te,se=S?S():{};return oe(J,b,re(ie,2),se)}}},7263:(b,S,J)=>{var ee=J(6060),te=J(2406);b.exports=function(b){return ee((function(S,J){var ee=-1,re=J.length,ne=re>1?J[re-1]:void 0,ie=re>2?J[2]:void 0;for(ne=b.length>3&&"function"==typeof ne?(re--,ne):void 0,ie&&te(J[0],J[1],ie)&&(ne=re<3?void 0:ne,re=1),S=Object(S);++ee<re;){var oe=J[ee];oe&&b(S,oe,ee,ne)}return S}))}},2019:(b,S,J)=>{var ee=J(7878);b.exports=function(b,S){return function(J,te){if(null==J)return J;if(!ee(J))return b(J,te);for(var re=J.length,ne=S?re:-1,ie=Object(J);(S?ne--:++ne<re)&&!1!==te(ie[ne],ne,ie););return J}}},5463:b=>{b.exports=function(b){return function(S,J,ee){for(var te=-1,re=Object(S),ne=ee(S),ie=ne.length;ie--;){var oe=ne[b?ie:++te];if(!1===J(re[oe],oe,re))break}return S}}},3126:(b,S,J)=>{var ee=J(3895),te=J(3880),re=J(8435),ne=J(6188);b.exports=function(b){return function(S){S=ne(S);var J=te(S)?re(S):void 0,ie=J?J[0]:S.charAt(0),oe=J?ee(J,1).join(""):S.slice(1);return ie[b]()+oe}}},8776:(b,S,J)=>{var ee=J(8286),te=J(7878),re=J(249);b.exports=function(b){return function(S,J,ne){var ie=Object(S);if(!te(S)){var oe=ee(J,3);S=re(S),J=function(b){return oe(ie[b],b,ie)}}var se=b(S,J,ne);return se>-1?ie[oe?S[se]:se]:void 0}}},8803:(b,S,J)=>{var ee=J(2143),te=J(4291),re=J(4207),ne=ee&&1/re(new ee([,-0]))[1]==1/0?function(b){return new ee(b)}:te;b.exports=ne},3043:(b,S,J)=>{var ee=J(8761),te=function(){try{var b=ee(Object,"defineProperty");return b({},"",{}),b}catch(b){}}();b.exports=te},4871:(b,S,J)=>{var ee=J(5386),te=J(7064),re=J(9950);b.exports=function(b,S,J,ne,ie,oe){var se=1&J,ae=b.length,ue=S.length;if(ae!=ue&&!(se&&ue>ae))return!1;var ce=oe.get(b),le=oe.get(S);if(ce&&le)return ce==S&&le==b;var pe=-1,fe=!0,de=2&J?new ee:void 0;for(oe.set(b,S),oe.set(S,b);++pe<ae;){var he=b[pe],me=S[pe];if(ne)var ge=se?ne(me,he,pe,S,b,oe):ne(he,me,pe,b,S,oe);if(void 0!==ge){if(ge)continue;fe=!1;break}if(de){if(!te(S,(function(b,S){if(!re(de,S)&&(he===b||ie(he,b,J,ne,oe)))return de.push(S)}))){fe=!1;break}}else if(he!==me&&!ie(he,me,J,ne,oe)){fe=!1;break}}return oe.delete(b),oe.delete(S),fe}},1491:(b,S,J)=>{var ee=J(857),te=J(9162),re=J(1225),ne=J(4871),ie=J(5179),oe=J(4207),se=ee?ee.prototype:void 0,ae=se?se.valueOf:void 0;b.exports=function(b,S,J,ee,se,ue,ce){switch(J){case"[object DataView]":if(b.byteLength!=S.byteLength||b.byteOffset!=S.byteOffset)return!1;b=b.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(b.byteLength!=S.byteLength||!ue(new te(b),new te(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return re(+b,+S);case"[object Error]":return b.name==S.name&&b.message==S.message;case"[object RegExp]":case"[object String]":return b==S+"";case"[object Map]":var le=ie;case"[object Set]":var pe=1ⅇif(le||(le=oe),b.size!=S.size&&!pe)return!1;var fe=ce.get(b);if(fe)return fe==S;ee|=2,ce.set(b,S);var de=ne(le(b),le(S),ee,se,ue,ce);return ce.delete(b),de;case"[object Symbol]":if(ae)return ae.call(b)==ae.call(S)}return!1}},7416:(b,S,J)=>{var ee=J(3483),te=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,re,ne,ie){var oe=1&J,se=ee(b),ae=se.length;if(ae!=ee(S).length&&!oe)return!1;for(var ue=ae;ue--;){var ce=se[ue];if(!(oe?ce in S:te.call(S,ce)))return!1}var le=ie.get(b),pe=ie.get(S);if(le&&pe)return le==S&&pe==b;var fe=!0;ie.set(b,S),ie.set(S,b);for(var de=oe;++ue<ae;){var he=b[ce=se[ue]],me=S[ce];if(re)var ge=oe?re(me,he,ce,S,b,ie):re(he,me,ce,b,S,ie);if(!(void 0===ge?he===me||ne(he,me,J,re,ie):ge)){fe=!1;break}de||(de="constructor"==ce)}if(fe&&!de){var ye=b.constructor,ve=S.constructor;ye==ve||!("constructor"in b)||!("constructor"in S)||"function"==typeof ye&&ye instanceof ye&&"function"==typeof ve&&ve instanceof ve||(fe=!1)}return ie.delete(b),ie.delete(S),fe}},1242:(b,S,J)=>{var ee="object"==typeof J.g&&J.g&&J.g.Object===Object&&J.g;b.exports=ee},3483:(b,S,J)=>{var ee=J(1897),te=J(633),re=J(249);b.exports=function(b){return ee(b,re,te)}},6939:(b,S,J)=>{var ee=J(1897),te=J(2680),re=J(8582);b.exports=function(b){return ee(b,re,te)}},7937:(b,S,J)=>{var ee=J(8304);b.exports=function(b,S){var J=b.__data__;return ee(S)?J["string"==typeof S?"string":"hash"]:J.map}},9882:(b,S,J)=>{var ee=J(8792),te=J(249);b.exports=function(b){for(var S=te(b),J=S.length;J--;){var re=S[J],ne=b[re];S[J]=[re,ne,ee(ne)]}return S}},8761:(b,S,J)=>{var ee=J(6840),te=J(8109);b.exports=function(b,S){var J=te(b,S);return ee(J)?J:void 0}},7353:(b,S,J)=>{var ee=J(241)(Object.getPrototypeOf,Object);b.exports=ee},2107:(b,S,J)=>{var ee=J(857),te=Object.prototype,re=te.hasOwnProperty,ne=te.toString,ie=ee?ee.toStringTag:void 0;b.exports=function(b){var S=re.call(b,ie),J=b[ie];try{b[ie]=void 0;var ee=!0}catch(b){}var te=ne.call(b);return ee&&(S?b[ie]=J:delete b[ie]),te}},633:(b,S,J)=>{var ee=J(7552),te=J(981),re=Object.prototype.propertyIsEnumerable,ne=Object.getOwnPropertySymbols,ie=ne?function(b){return null==b?[]:(b=Object(b),ee(ne(b),(function(S){return re.call(b,S)})))}:te;b.exports=ie},2680:(b,S,J)=>{var ee=J(5067),te=J(7353),re=J(633),ne=J(981),ie=Object.getOwnPropertySymbols?function(b){for(var S=[];b;)ee(S,re(b)),b=te(b);return S}:ne;b.exports=ie},940:(b,S,J)=>{var ee=J(9515),te=J(326),re=J(2760),ne=J(2143),ie=J(3215),oe=J(3366),se=J(7035),ae="[object Map]",ue="[object Promise]",ce="[object Set]",le="[object WeakMap]",pe="[object DataView]",fe=se(ee),de=se(te),he=se(re),me=se(ne),ge=se(ie),ye=oe;(ee&&ye(new ee(new ArrayBuffer(1)))!=pe||te&&ye(new te)!=ae||re&&ye(re.resolve())!=ue||ne&&ye(new ne)!=ce||ie&&ye(new ie)!=le)&&(ye=function(b){var S=oe(b),J="[object Object]"==S?b.constructor:void 0,ee=J?se(J):"";if(ee)switch(ee){case fe:return pe;case de:return ae;case he:return ue;case me:return ce;case ge:return le}return S}),b.exports=ye},8109:b=>{b.exports=function(b,S){return null==b?void 0:b[S]}},1369:(b,S,J)=>{var ee=J(7297),te=J(9631),re=J(6152),ne=J(9045),ie=J(1158),oe=J(3812);b.exports=function(b,S,J){for(var se=-1,ae=(S=ee(S,b)).length,ue=!1;++se<ae;){var ce=oe(S[se]);if(!(ue=null!=b&&J(b,ce)))break;b=b[ce]}return ue||++se!=ae?ue:!!(ae=null==b?0:b.length)&&ie(ae)&&ne(ce,ae)&&(re(b)||te(b))}},3880:b=>{var S=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");b.exports=function(b){return S.test(b)}},2118:(b,S,J)=>{var ee=J(9191);b.exports=function(){this.__data__=ee?ee(null):{},this.size=0}},6909:b=>{b.exports=function(b){var S=this.has(b)&&delete this.__data__[b];return this.size-=S?1:0,S}},8138:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;if(ee){var J=S[b];return"__lodash_hash_undefined__"===J?void 0:J}return te.call(S,b)?S[b]:void 0}},4174:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;return ee?void 0!==S[b]:te.call(S,b)}},7942:(b,S,J)=>{var ee=J(9191);b.exports=function(b,S){var J=this.__data__;return this.size+=this.has(b)?0:1,J[b]=ee&&void 0===S?"__lodash_hash_undefined__":S,this}},9917:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b){var J=b.length,ee=new b.constructor(J);return J&&"string"==typeof b[0]&&S.call(b,"index")&&(ee.index=b.index,ee.input=b.input),ee}},8222:(b,S,J)=>{var ee=J(897),te=J(4727),re=J(6058),ne=J(169),ie=J(6190);b.exports=function(b,S,J){var oe=b.constructor;switch(S){case"[object ArrayBuffer]":return ee(b);case"[object Boolean]":case"[object Date]":return new oe(+b);case"[object DataView]":return te(b,J);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ie(b,J);case"[object Map]":return new oe;case"[object Number]":case"[object String]":return new oe(b);case"[object RegExp]":return re(b);case"[object Set]":return new oe;case"[object Symbol]":return ne(b)}}},8725:(b,S,J)=>{var ee=J(9413),te=J(7353),re=J(6001);b.exports=function(b){return"function"!=typeof b.constructor||re(b)?{}:ee(te(b))}},5882:(b,S,J)=>{var ee=J(857),te=J(9631),re=J(6152),ne=ee?ee.isConcatSpreadable:void 0;b.exports=function(b){return re(b)||te(b)||!!(ne&&b&&b[ne])}},9045:b=>{var S=/^(?:0|[1-9]\d*)$/;b.exports=function(b,J){var ee=typeof b;return!!(J=null==J?9007199254740991:J)&&("number"==ee||"symbol"!=ee&&S.test(b))&&b>-1&&b%1==0&&b<J}},2406:(b,S,J)=>{var ee=J(1225),te=J(7878),re=J(9045),ne=J(9259);b.exports=function(b,S,J){if(!ne(J))return!1;var ie=typeof S;return!!("number"==ie?te(J)&&re(S,J.length):"string"==ie&&S in J)&&ee(J[S],b)}},1401:(b,S,J)=>{var ee=J(6152),te=J(4795),re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/;b.exports=function(b,S){if(ee(b))return!1;var J=typeof b;return!("number"!=J&&"symbol"!=J&&"boolean"!=J&&null!=b&&!te(b))||ne.test(b)||!re.test(b)||null!=S&&b in Object(S)}},8304:b=>{b.exports=function(b){var S=typeof b;return"string"==S||"number"==S||"symbol"==S||"boolean"==S?"__proto__"!==b:null===b}},7394:(b,S,J)=>{var ee,te=J(4019),re=(ee=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"";b.exports=function(b){return!!re&&re in b}},6001:b=>{var S=Object.prototype;b.exports=function(b){var J=b&&b.constructor;return b===("function"==typeof J&&J.prototype||S)}},8792:(b,S,J)=>{var ee=J(9259);b.exports=function(b){return b==b&&!ee(b)}},3945:b=>{b.exports=function(){this.__data__=[],this.size=0}},1846:(b,S,J)=>{var ee=J(2218),te=Array.prototype.splice;b.exports=function(b){var S=this.__data__,J=ee(S,b);return!(J<0||(J==S.length-1?S.pop():te.call(S,J,1),--this.size,0))}},8028:(b,S,J)=>{var ee=J(2218);b.exports=function(b){var S=this.__data__,J=ee(S,b);return J<0?void 0:S[J][1]}},2344:(b,S,J)=>{var ee=J(2218);b.exports=function(b){return ee(this.__data__,b)>-1}},4769:(b,S,J)=>{var ee=J(2218);b.exports=function(b,S){var J=this.__data__,te=ee(J,b);return te<0?(++this.size,J.push([b,S])):J[te][1]=S,this}},2411:(b,S,J)=>{var ee=J(9612),te=J(235),re=J(326);b.exports=function(){this.size=0,this.__data__={hash:new ee,map:new(re||te),string:new ee}}},6417:(b,S,J)=>{var ee=J(7937);b.exports=function(b){var S=ee(this,b).delete(b);return this.size-=S?1:0,S}},6928:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).get(b)}},9493:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).has(b)}},4150:(b,S,J)=>{var ee=J(7937);b.exports=function(b,S){var J=ee(this,b),te=J.size;return J.set(b,S),this.size+=J.size==te?0:1,this}},5179:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b,ee){J[++S]=[ee,b]})),J}},3477:b=>{b.exports=function(b,S){return function(J){return null!=J&&J[b]===S&&(void 0!==S||b in Object(J))}}},7777:(b,S,J)=>{var ee=J(733);b.exports=function(b){var S=ee(b,(function(b){return 500===J.size&&J.clear(),b})),J=S.cache;return S}},9191:(b,S,J)=>{var ee=J(8761)(Object,"create");b.exports=ee},4248:(b,S,J)=>{var ee=J(241)(Object.keys,Object);b.exports=ee},2966:b=>{b.exports=function(b){var S=[];if(null!=b)for(var J in Object(b))S.push(J);return S}},4146:(b,S,J)=>{b=J.nmd(b);var ee=J(1242),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te&&ee.process,ie=function(){try{return re&&re.require&&re.require("util").types||ne&&ne.binding&&ne.binding("util")}catch(b){}}();b.exports=ie},7157:b=>{var S=Object.prototype.toString;b.exports=function(b){return S.call(b)}},241:b=>{b.exports=function(b,S){return function(J){return b(S(J))}}},3114:(b,S,J)=>{var ee=J(9432),te=Math.max;b.exports=function(b,S,J){return S=te(void 0===S?b.length-1:S,0),function(){for(var re=arguments,ne=-1,ie=te(re.length-S,0),oe=Array(ie);++ne<ie;)oe[ne]=re[S+ne];ne=-1;for(var se=Array(S+1);++ne<S;)se[ne]=re[ne];return se[S]=J(oe),ee(b,this,se)}}},7772:(b,S,J)=>{var ee=J(1242),te="object"==typeof self&&self&&self.Object===Object&&self,re=ee||te||Function("return this")();b.exports=re},2842:b=>{b.exports=function(b){return this.__data__.set(b,"__lodash_hash_undefined__"),this}},2482:b=>{b.exports=function(b){return this.__data__.has(b)}},4207:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b){J[++S]=b})),J}},5251:(b,S,J)=>{var ee=J(6532),te=J(7787)(ee);b.exports=te},7787:b=>{var S=Date.now;b.exports=function(b){var J=0,ee=0;return function(){var te=S(),re=16-(te-ee);if(ee=te,re>0){if(++J>=800)return arguments[0]}else J=0;return b.apply(void 0,arguments)}}},5243:(b,S,J)=>{var ee=J(235);b.exports=function(){this.__data__=new ee,this.size=0}},2858:b=>{b.exports=function(b){var S=this.__data__,J=S.delete(b);return this.size=S.size,J}},4417:b=>{b.exports=function(b){return this.__data__.get(b)}},8605:b=>{b.exports=function(b){return this.__data__.has(b)}},1418:(b,S,J)=>{var ee=J(235),te=J(326),re=J(6738);b.exports=function(b,S){var J=this.__data__;if(J instanceof ee){var ne=J.__data__;if(!te||ne.length<199)return ne.push([b,S]),this.size=++J.size,this;J=this.__data__=new re(ne)}return J.set(b,S),this.size=J.size,this}},6024:b=>{b.exports=function(b,S,J){for(var ee=J-1,te=b.length;++ee<te;)if(b[ee]===S)return ee;return-1}},8435:(b,S,J)=>{var ee=J(217),te=J(3880),re=J(3344);b.exports=function(b){return te(b)?re(b):ee(b)}},4452:(b,S,J)=>{var ee=J(7777),te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/\\(\\)?/g,ne=ee((function(b){var S=[];return 46===b.charCodeAt(0)&&S.push(""),b.replace(te,(function(b,J,ee,te){S.push(ee?te.replace(re,"$1"):J||b)})),S}));b.exports=ne},3812:(b,S,J)=>{var ee=J(4795);b.exports=function(b){if("string"==typeof b||ee(b))return b;var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},7035:b=>{var S=Function.prototype.toString;b.exports=function(b){if(null!=b){try{return S.call(b)}catch(b){}try{return b+""}catch(b){}}return""}},2153:b=>{var S=/\s/;b.exports=function(b){for(var J=b.length;J--&&S.test(b.charAt(J)););return J}},3344:b=>{var S="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",J="\\ud83c[\\udffb-\\udfff]",ee="[^\\ud800-\\udfff]",te="(?:\\ud83c[\\udde6-\\uddff]){2}",re="[\\ud800-\\udbff][\\udc00-\\udfff]",ne="(?:"+S+"|"+J+")?",ie="[\\ufe0e\\ufe0f]?",oe=ie+ne+"(?:\\u200d(?:"+[ee,te,re].join("|")+")"+ie+ne+")*",se="(?:"+[ee+S+"?",S,te,re,"[\\ud800-\\udfff]"].join("|")+")",ae=RegExp(J+"(?="+J+")|"+se+oe,"g");b.exports=function(b){return b.match(ae)||[]}},19:(b,S,J)=>{var ee=J(91),te=J(752),re=J(7263),ne=J(7878),ie=J(6001),oe=J(249),se=Object.prototype.hasOwnProperty,ae=re((function(b,S){if(ie(S)||ne(S))te(S,oe(S),b);else for(var J in S)se.call(S,J)&&ee(b,J,S[J])}));b.exports=ae},4004:(b,S,J)=>{var ee=J(8874);b.exports=function(b){return ee(b,4)}},417:b=>{b.exports=function(b){for(var S=-1,J=null==b?0:b.length,ee=0,te=[];++S<J;){var re=b[S];re&&(te[ee++]=re)}return te}},6874:b=>{b.exports=function(b){return function(){return b}}},4573:(b,S,J)=>{var ee=J(6060),te=J(1225),re=J(2406),ne=J(8582),ie=Object.prototype,oe=ie.hasOwnProperty,se=ee((function(b,S){b=Object(b);var J=-1,ee=S.length,se=ee>2?S[2]:void 0;for(se&&re(S[0],S[1],se)&&(ee=1);++J<ee;)for(var ae=S[J],ue=ne(ae),ce=-1,le=ue.length;++ce<le;){var pe=ue[ce],fe=b[pe];(void 0===fe||te(fe,ie[pe])&&!oe.call(b,pe))&&(b[pe]=ae[pe])}return b}));b.exports=se},7335:(b,S,J)=>{var ee=J(5246),te=J(2034),re=J(6060),ne=J(3746),ie=re((function(b,S){return ne(b)?ee(b,te(S,1,ne,!0)):[]}));b.exports=ie},7264:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,S<0?0:S,re)):[]}},4934:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,0,(S=re-S)<0?0:S)):[]}},1225:b=>{b.exports=function(b,S){return b===S||b!=b&&S!=S}},9794:(b,S,J)=>{var ee=J(7603),te=J(80),re=J(8286),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:te;return J&&ie(b,S,J)&&(S=void 0),oe(b,re(S,3))}},882:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S,3))}},5281:(b,S,J)=>{var ee=J(8776)(J(2982));b.exports=ee},2982:(b,S,J)=>{var ee=J(1359),te=J(8286),re=J(8101),ne=Math.max;b.exports=function(b,S,J){var ie=null==b?0:b.length;if(!ie)return-1;var oe=null==J?0:re(J);return oe<0&&(oe=ne(ie+oe,0)),ee(b,te(S,3),oe)}},3237:(b,S,J)=>{b.exports=J(1092)},5838:(b,S,J)=>{var ee=J(2034),te=J(6760);b.exports=function(b,S){return ee(te(b,S),1)}},5676:(b,S,J)=>{var ee=J(2034);b.exports=function(b){return null!=b&&b.length?ee(b,1):[]}},9756:(b,S,J)=>{var ee=J(2517),te=J(4303),re=J(9419),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S))}},2579:(b,S,J)=>{var ee=J(3324);b.exports=function(b,S,J){var te=null==b?void 0:ee(b,S);return void 0===te?J:te}},3440:(b,S,J)=>{var ee=J(3940),te=J(6740),re=Object.prototype.hasOwnProperty,ne=te((function(b,S,J){re.call(b,J)?b[J].push(S):ee(b,J,[S])}));b.exports=ne},3352:(b,S,J)=>{var ee=J(2726),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},5041:(b,S,J)=>{var ee=J(187),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},1092:b=>{b.exports=function(b){return b&&b.length?b[0]:void 0}},3059:b=>{b.exports=function(b){return b}},1886:(b,S,J)=>{var ee=J(7832),te=J(7878),re=J(5505),ne=J(8101),ie=J(8346),oe=Math.max;b.exports=function(b,S,J,se){b=te(b)?b:ie(b),J=J&&!se?ne(J):0;var ae=b.length;return J<0&&(J=oe(ae+J,0)),re(b)?J<=ae&&b.indexOf(S,J)>-1:!!ae&&ee(b,S,J)>-1}},3493:(b,S,J)=>{var ee=J(7832),te=J(8101),re=Math.max;b.exports=function(b,S,J){var ne=null==b?0:b.length;if(!ne)return-1;var ie=null==J?0:te(J);return ie<0&&(ie=re(ne+ie,0)),ee(b,S,ie)}},9631:(b,S,J)=>{var ee=J(5183),te=J(5125),re=Object.prototype,ne=re.hasOwnProperty,ie=re.propertyIsEnumerable,oe=ee(function(){return arguments}())?ee:function(b){return te(b)&&ne.call(b,"callee")&&!ie.call(b,"callee")};b.exports=oe},6152:b=>{var S=Array.isArray;b.exports=S},7878:(b,S,J)=>{var ee=J(1049),te=J(1158);b.exports=function(b){return null!=b&&te(b.length)&&!ee(b)}},3746:(b,S,J)=>{var ee=J(7878),te=J(5125);b.exports=function(b){return te(b)&&ee(b)}},3226:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=J(6330),re=S&&!S.nodeType&&S,ne=re&&b&&!b.nodeType&&b,ie=ne&&ne.exports===re?ee.Buffer:void 0,oe=(ie?ie.isBuffer:void 0)||te;b.exports=oe},5455:(b,S,J)=>{var ee=J(6411),te=J(940),re=J(9631),ne=J(6152),ie=J(7878),oe=J(3226),se=J(6001),ae=J(7598),ue=Object.prototype.hasOwnProperty;b.exports=function(b){if(null==b)return!0;if(ie(b)&&(ne(b)||"string"==typeof b||"function"==typeof b.splice||oe(b)||ae(b)||re(b)))return!b.length;var S=te(b);if("[object Map]"==S||"[object Set]"==S)return!b.size;if(se(b))return!ee(b).length;for(var J in b)if(ue.call(b,J))return!1;return!0}},1049:(b,S,J)=>{var ee=J(3366),te=J(9259);b.exports=function(b){if(!te(b))return!1;var S=ee(b);return"[object Function]"==S||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}},1158:b=>{b.exports=function(b){return"number"==typeof b&&b>-1&&b%1==0&&b<=9007199254740991}},4714:(b,S,J)=>{var ee=J(4511),te=J(7826),re=J(4146),ne=re&&re.isMap,ie=ne?te(ne):ee;b.exports=ie},9259:b=>{b.exports=function(b){var S=typeof b;return null!=b&&("object"==S||"function"==S)}},5125:b=>{b.exports=function(b){return null!=b&&"object"==typeof b}},859:(b,S,J)=>{var ee=J(4333),te=J(7826),re=J(4146),ne=re&&re.isRegExp,ie=ne?te(ne):ee;b.exports=ie},3679:(b,S,J)=>{var ee=J(8436),te=J(7826),re=J(4146),ne=re&&re.isSet,ie=ne?te(ne):ee;b.exports=ie},5505:(b,S,J)=>{var ee=J(3366),te=J(6152),re=J(5125);b.exports=function(b){return"string"==typeof b||!te(b)&&re(b)&&"[object String]"==ee(b)}},4795:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return"symbol"==typeof b||te(b)&&"[object Symbol]"==ee(b)}},7598:(b,S,J)=>{var ee=J(5522),te=J(7826),re=J(4146),ne=re&&re.isTypedArray,ie=ne?te(ne):ee;b.exports=ie},4336:b=>{b.exports=function(b){return void 0===b}},249:(b,S,J)=>{var ee=J(1634),te=J(6411),re=J(7878);b.exports=function(b){return re(b)?ee(b):te(b)}},8582:(b,S,J)=>{var ee=J(1634),te=J(8390),re=J(7878);b.exports=function(b){return re(b)?ee(b,!0):te(b)}},6974:b=>{b.exports=function(b){var S=null==b?0:b.length;return S?b[S-1]:void 0}},6760:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3401),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:re)(b,te(S,3))}},733:(b,S,J)=>{var ee=J(6738);function o(b,S){if("function"!=typeof b||null!=S&&"function"!=typeof S)throw new TypeError("Expected a function");var r=function(){var J=arguments,ee=S?S.apply(this,J):J[0],te=r.cache;if(te.has(ee))return te.get(ee);var re=b.apply(this,J);return r.cache=te.set(ee,re)||te,re};return r.cache=new(o.Cache||ee),r}o.Cache=ee,b.exports=o},1570:b=>{b.exports=function(b){if("function"!=typeof b)throw new TypeError("Expected a function");return function(){var S=arguments;switch(S.length){case 0:return!b.call(this);case 1:return!b.call(this,S[0]);case 2:return!b.call(this,S[0],S[1]);case 3:return!b.call(this,S[0],S[1],S[2])}return!b.apply(this,S)}}},4291:b=>{b.exports=function(){}},2208:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3759),ne=J(6939);b.exports=function(b,S){if(null==b)return{};var J=ee(ne(b),(function(b){return[b]}));return S=te(S),re(b,J,(function(b,J){return S(b,J[0])}))}},5798:(b,S,J)=>{var ee=J(256),te=J(2952),re=J(1401),ne=J(3812);b.exports=function(b){return re(b)?ee(ne(b)):te(b)}},8215:(b,S,J)=>{var ee=J(1207),te=J(4303),re=J(8286),ne=J(5877),ie=J(6152);b.exports=function(b,S,J){var oe=ie(b)?ee:ne,se=arguments.length<3;return oe(b,re(S,4),J,se,te)}},2070:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152),ie=J(1570);b.exports=function(b,S){return(ne(b)?ee:te)(b,ie(re(S,3)))}},1525:(b,S,J)=>{var ee=J(7064),te=J(8286),re=J(4751),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:re;return J&&ie(b,S,J)&&(S=void 0),oe(b,te(S,3))}},981:b=>{b.exports=function(){return[]}},6330:b=>{b.exports=function(){return!1}},5707:(b,S,J)=>{var ee=J(7642);b.exports=function(b){return b?Infinity===(b=ee(b))||b===-1/0?17976931348623157e292*(b<0?-1:1):b==b?b:0:0===b?b:0}},8101:(b,S,J)=>{var ee=J(5707);b.exports=function(b){var S=ee(b),J=S%1;return S==S?J?S-J:S:0}},7642:(b,S,J)=>{var ee=J(1704),te=J(9259),re=J(4795),ne=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^0o[0-7]+$/i,se=parseInt;b.exports=function(b){if("number"==typeof b)return b;if(re(b))return NaN;if(te(b)){var S="function"==typeof b.valueOf?b.valueOf():b;b=te(S)?S+"":S}if("string"!=typeof b)return 0===b?b:+b;b=ee(b);var J=ie.test(b);return J||oe.test(b)?se(b.slice(2),J?2:8):ne.test(b)?NaN:+b}},6188:(b,S,J)=>{var ee=J(1054);b.exports=function(b){return null==b?"":ee(b)}},5652:(b,S,J)=>{var ee=J(7326);b.exports=function(b){return b&&b.length?ee(b):[]}},3779:(b,S,J)=>{var ee=J(3126)("toUpperCase");b.exports=ee},8346:(b,S,J)=>{var ee=J(753),te=J(249);b.exports=function(b){return null==b?[]:ee(b,te(b))}},4844:function(b,S){var J,ee;"undefined"!=typeof self&&self,void 0===(ee="function"==typeof(J=function(){function t(){}t.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},t.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},t.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var S=this.disjunction();this.consumeChar("/");for(var J={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(J,"global");break;case"i":s(J,"ignoreCase");break;case"m":s(J,"multiLine");break;case"u":s(J,"unicode");break;case"y":s(J,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:J,value:S,loc:this.loc(0)}},t.prototype.disjunction=function(){var b=[],S=this.idx;for(b.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(S)}},t.prototype.alternative=function(){for(var b=[],S=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(S)}},t.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},t.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":var S;switch(this.consumeChar("?"),this.popChar()){case"=":S="Lookahead";break;case"!":S="NegativeLookahead"}u(S);var J=this.disjunction();return this.consumeChar(")"),{type:S,value:J,loc:this.loc(b)}}!function(){throw Error("Internal Error - Should never get here!")}()},t.prototype.quantifier=function(b){var S,J=this.idx;switch(this.popChar()){case"*":S={atLeast:0,atMost:1/0};break;case"+":S={atLeast:1,atMost:1/0};break;case"?":S={atLeast:0,atMost:1};break;case"{":var ee=this.integerIncludingZero();switch(this.popChar()){case"}":S={atLeast:ee,atMost:ee};break;case",":S=this.isDigit()?{atLeast:ee,atMost:this.integerIncludingZero()}:{atLeast:ee,atMost:1/0},this.consumeChar("}")}if(!0===b&&void 0===S)return;u(S)}if(!0!==b||void 0!==S)return u(S),"?"===this.peekChar(0)?(this.consumeChar("?"),S.greedy=!1):S.greedy=!0,S.type="Quantifier",S.loc=this.loc(J),S},t.prototype.atom=function(){var b,S=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group()}return void 0===b&&this.isPatternCharacter()&&(b=this.patternCharacter()),u(b),b.loc=this.loc(S),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},t.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},t.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},t.prototype.characterClassEscape=function(){var b,S=!1;switch(this.popChar()){case"d":b=te;break;case"D":b=te,S=!0;break;case"s":b=ne;break;case"S":b=ne,S=!0;break;case"w":b=re;break;case"W":b=re,S=!0}return u(b),{type:"Set",value:b,complement:S}},t.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=i("\f");break;case"n":b=i("\n");break;case"r":b=i("\r");break;case"t":b=i("\t");break;case"v":b=i("\v")}return u(b),{type:"Character",value:b}},t.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(!1===/[a-zA-Z]/.test(b))throw Error("Invalid ");return{type:"Character",value:b.toUpperCase().charCodeAt(0)-64}},t.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},t.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},t.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},t.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},t.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},t.prototype.characterClass=function(){var b=[],S=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),S=!0);this.isClassAtom();){var J=this.classAtom();if("Character"===J.type&&this.isRangeDash()){this.consumeChar("-");var ee=this.classAtom();if("Character"===ee.type){if(ee.value<J.value)throw Error("Range out of order in character class");b.push({from:J.value,to:ee.value})}else a(J.value,b),b.push(i("-")),a(ee.value,b)}else a(J.value,b)}return this.consumeChar("]"),{type:"Set",complement:S,value:b}},t.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},t.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++}var S=this.disjunction();this.consumeChar(")");var J={type:"Group",capturing:b,value:S};return b&&(J.idx=this.groupIdx),J},t.prototype.positiveInteger=function(){var b=this.popChar();if(!1===ee.test(b))throw Error("Expecting a positive integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.integerIncludingZero=function(){var b=this.popChar();if(!1===J.test(b))throw Error("Expecting an integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.patternCharacter=function(){var b=this.popChar();switch(b){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(b)}}},t.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},t.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},t.prototype.isDigit=function(){return J.test(this.peekChar(0))},t.prototype.isClassAtom=function(b){switch(void 0===b&&(b=0),this.peekChar(b)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},t.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},t.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},t.prototype.isQuantifier=function(){var b=this.saveState();try{return void 0!==this.quantifier(!0)}catch(b){return!1}finally{this.restoreState(b)}},t.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.parseHexDigits=function(b){for(var J="",ee=0;ee<b;ee++){var te=this.popChar();if(!1===S.test(te))throw Error("Expecting a HexDecimal digits");J+=te}return{type:"Character",value:parseInt(J,16)}},t.prototype.peekChar=function(b){return void 0===b&&(b=0),this.input[this.idx+b]},t.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},t.prototype.consumeChar=function(b){if(void 0!==b&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(b){return{begin:b,end:this.idx}};var b,S=/[0-9a-fA-F]/,J=/[0-9]/,ee=/[1-9]/;function i(b){return b.charCodeAt(0)}function a(b,S){void 0!==b.length?b.forEach((function(b){S.push(b)})):S.push(b)}function s(b,S){if(!0===b[S])throw"duplicate flag "+S;b[S]=!0}function u(b){if(void 0===b)throw Error("Internal Error - Should never get here!")}var te=[];for(b=i("0");b<=i("9");b++)te.push(b);var re=[i("_")].concat(te);for(b=i("a");b<=i("z");b++)re.push(b);for(b=i("A");b<=i("Z");b++)re.push(b);var ne=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(b){for(var S in b){var J=b[S];b.hasOwnProperty(S)&&(void 0!==J.type?this.visit(J):Array.isArray(J)&&J.forEach((function(b){this.visit(b)}),this))}},p.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b)}this.visitChildren(b)},p.prototype.visitPattern=function(b){},p.prototype.visitFlags=function(b){},p.prototype.visitDisjunction=function(b){},p.prototype.visitAlternative=function(b){},p.prototype.visitStartAnchor=function(b){},p.prototype.visitEndAnchor=function(b){},p.prototype.visitWordBoundary=function(b){},p.prototype.visitNonWordBoundary=function(b){},p.prototype.visitLookahead=function(b){},p.prototype.visitNegativeLookahead=function(b){},p.prototype.visitCharacter=function(b){},p.prototype.visitSet=function(b){},p.prototype.visitGroup=function(b){},p.prototype.visitGroupBackReference=function(b){},p.prototype.visitQuantifier=function(b){},{RegExpParser:t,BaseRegExpVisitor:p,VERSION:"0.5.0"}})?J.apply(S,[]):J)||(b.exports=ee)},5781:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.createSyntaxDiagramsCode=void 0;var ee=J(7979);S.createSyntaxDiagramsCode=function(b,S){var J=void 0===S?{}:S,te=J.resourceBase,re=void 0===te?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/"):te,ne=J.css,ie=void 0===ne?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/diagrams.css"):ne;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+"\n<link rel='stylesheet' href='".concat(ie,"'>\n")+"\n<script src='".concat(re,"vendor/railroad-diagrams.js'><\/script>\n<script src='").concat(re,"src/diagrams_builder.js'><\/script>\n<script src='").concat(re,"src/diagrams_behavior.js'><\/script>\n<script src='").concat(re,"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+"\n<script>\n window.serializedGrammar = ".concat(JSON.stringify(b,null," "),";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},4105:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defineNameProp=void 0,S.defineNameProp=function(b,S){Object.defineProperty(b,"name",{enumerable:!1,configurable:!0,writable:!1,value:S})}},3710:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.IN=void 0,S.IN="_~IN~_"},7485:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.addNoneTerminalToCst=S.addTerminalToCst=S.setNodeLocationFull=S.setNodeLocationOnlyOffset=void 0,S.setNodeLocationOnlyOffset=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.endOffset=S.endOffset):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset)},S.setNodeLocationFull=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.startColumn=S.startColumn,b.startLine=S.startLine,b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine)},S.addTerminalToCst=function(b,S,J){void 0===b.children[J]?b.children[J]=[S]:b.children[J].push(S)},S.addNoneTerminalToCst=function(b,S,J){void 0===b.children[S]?b.children[S]=[J]:b.children[S].push(J)}},8169:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateRedundantMethods=S.validateMissingCstMethods=S.validateVisitor=S.CstVisitorDefinitionError=S.createBaseVisitorConstructorWithDefaults=S.createBaseSemanticVisitorConstructor=S.defaultVisit=void 0;var te,re=ee(J(5455)),ne=ee(J(417)),ie=ee(J(6152)),oe=ee(J(6760)),se=ee(J(9756)),ae=ee(J(882)),ue=ee(J(249)),ce=ee(J(1049)),le=ee(J(4336)),pe=ee(J(1886)),fe=J(4105);function y(b,S){for(var J=(0,ue.default)(b),ee=J.length,te=0;te<ee;te++)for(var re=b[J[te]],ne=re.length,ie=0;ie<ne;ie++){var oe=re[ie];void 0===oe.tokenTypeIdx&&this[oe.name](oe.children,S)}}function m(b,S){var J=T(b,S),ee=_(b,S);return J.concat(ee)}function T(b,S){var J=(0,ae.default)(S,(function(S){return!1===(0,ce.default)(b[S])})),ee=(0,oe.default)(J,(function(S){return{msg:"Missing visitor method: <".concat(S,"> on ").concat(b.constructor.name," CST Visitor."),type:te.MISSING_METHOD,methodName:S}}));return(0,ne.default)(ee)}S.defaultVisit=y,S.createBaseSemanticVisitorConstructor=function(b,S){var r=function(){};return(0,fe.defineNameProp)(r,b+"BaseSemantics"),(r.prototype={visit:function(b,S){if((0,ie.default)(b)&&(b=b[0]),!(0,le.default)(b))return this[b.name](b.children,S)},validateVisitor:function(){var b=m(this,S);if(!(0,re.default)(b)){var J=(0,oe.default)(b,(function(b){return b.msg}));throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name,">:\n\t")+"".concat(J.join("\n\n").replace(/\n/g,"\n\t")))}}}).constructor=r,r._RULE_NAMES=S,r},S.createBaseVisitorConstructorWithDefaults=function(b,S,J){var n=function(){};(0,fe.defineNameProp)(n,b+"BaseSemanticsWithDefaults");var ee=Object.create(J.prototype);return(0,se.default)(S,(function(b){ee[b]=y})),(n.prototype=ee).constructor=n,n},function(b){b[b.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",b[b.MISSING_METHOD=1]="MISSING_METHOD"}(te=S.CstVisitorDefinitionError||(S.CstVisitorDefinitionError={})),S.validateVisitor=m,S.validateMissingCstMethods=T;var de=["constructor","visit","validateVisitor"];function _(b,S){var J=[];for(var ee in b)!(0,ce.default)(b[ee])||(0,pe.default)(de,ee)||(0,pe.default)(S,ee)||J.push({msg:"Redundant visitor method: <".concat(ee,"> on ").concat(b.constructor.name," CST Visitor\n")+"There is no Grammar Rule corresponding to this method's name.\n",type:te.REDUNDANT_METHOD,methodName:ee});return J}S.validateRedundantMethods=_},1007:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.defaultGrammarValidatorErrorProvider=S.defaultGrammarResolverErrorProvider=S.defaultParserErrorProvider=void 0;var te=J(6736),re=ee(J(3237)),ne=ee(J(6760)),ie=ee(J(8215)),oe=J(7729),se=J(7729);S.defaultParserErrorProvider={buildMismatchTokenMessage:function(b){var S=b.expected,J=b.actual,ee=(b.previous,b.ruleName,(0,te.hasTokenLabel)(S)?"--\x3e ".concat((0,te.tokenLabel)(S)," <--"):"token of type --\x3e ".concat(S.name," <--"));return"Expecting ".concat(ee," but found --\x3e '").concat(J.image,"' <--")},buildNotAllInputParsedMessage:function(b){var S=b.firstRedundant;return b.ruleName,"Redundant input, expecting EOF but found: "+S.image},buildNoViableAltMessage:function(b){var S=b.expectedPathsPerAlt,J=b.actual,ee=(b.previous,b.customUserDescription),oe=(b.ruleName,"Expecting: "),se="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return oe+ee+se;var ae=(0,ie.default)(S,(function(b,S){return b.concat(S)}),[]),ue=(0,ne.default)(ae,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(", "),"]")})),ce=(0,ne.default)(ue,(function(b,S){return" ".concat(S+1,". ").concat(b)}));return oe+"one of these possible Token sequences:\n".concat(ce.join("\n"))+se},buildEarlyExitMessage:function(b){var S=b.expectedIterationPaths,J=b.actual,ee=b.customUserDescription,ie=(b.ruleName,"Expecting: "),oe="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return ie+ee+oe;var se=(0,ne.default)(S,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(","),"]")}));return ie+"expecting at least one iteration which starts with one of these possible Token sequences::\n "+"<".concat(se.join(" ,"),">")+oe}},Object.freeze(S.defaultParserErrorProvider),S.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(b,S){return"Invalid grammar, reference to a rule which is not defined: ->"+S.nonTerminalName+"<-\ninside top level rule: ->"+b.name+"<-"}},S.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(b,S){var J,ee=b.name,te=(0,re.default)(S),ne=te.idx,ie=(0,se.getProductionDslName)(te),ae=(J=te)instanceof oe.Terminal?J.terminalType.name:J instanceof oe.NonTerminal?J.nonTerminalName:"",ue=ne>0,ce="->".concat(ie).concat(ue?ne:"","<- ").concat(ae?"with argument: ->".concat(ae,"<-"):"","\n appears more than once (").concat(S.length," times) in the top level rule: ->").concat(ee,"<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n ");return(ce=ce.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:function(b){return"Namespace conflict found in grammar.\n"+"The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(b.name,">.\n")+"To resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous alternatives: <".concat(b.ambiguityIndices.join(" ,"),"> due to common lookahead prefix\n")+"in <OR".concat(J,"> inside <").concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous Alternatives Detected: <".concat(b.ambiguityIndices.join(" ,"),"> in <OR").concat(J,">")+" inside <".concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(b){var S=(0,se.getProductionDslName)(b.repetition);return 0!==b.repetition.idx&&(S+=b.repetition.idx),"The repetition <".concat(S,"> within Rule <").concat(b.topLevelRule.name,"> can never consume any tokens.\n")+"This could lead to an infinite loop."},buildTokenNameError:function(b){return"deprecated"},buildEmptyAlternationError:function(b){return"Ambiguous empty alternative: <".concat(b.emptyChoiceIdx+1,">")+" in <OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n")+"Only the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(b){return"An Alternation cannot have more than 256 alternatives:\n"+"<OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n has ").concat(b.alternation.definition.length+1," alternatives.")},buildLeftRecursionError:function(b){var S=b.topLevelRule.name,J=(0,ne.default)(b.leftRecursionPath,(function(b){return b.name})),ee="".concat(S," --\x3e ").concat(J.concat([S]).join(" --\x3e "));return"Left Recursion found in grammar.\n"+"rule: <".concat(S,"> can be invoked from itself (directly or indirectly)\n")+"without consuming any Tokens. The grammar path that causes this is: \n ".concat(ee,"\n")+" To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."},buildInvalidRuleNameError:function(b){return"deprecated"},buildDuplicateRuleNameError:function(b){var S;return S=b.topLevelRule instanceof oe.Rule?b.topLevelRule.name:b.topLevelRule,"Duplicate definition, rule: ->".concat(S,"<- is already defined in the grammar: ->").concat(b.grammarName,"<-")}}},643:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EarlyExitException=S.NotAllInputParsedException=S.NoViableAltException=S.MismatchedTokenException=S.isRecognitionException=void 0;var ne=re(J(1886)),ie="MismatchedTokenException",oe="NoViableAltException",se="EarlyExitException",ae="NotAllInputParsedException",ue=[ie,oe,se,ae];Object.freeze(ue),S.isRecognitionException=function(b){return(0,ne.default)(ue,b.name)};var ce=function(b){function e(S,J){var ee=this.constructor,te=b.call(this,S)||this;return te.token=J,te.resyncedTokens=[],Object.setPrototypeOf(te,ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(te,te.constructor),te}return te(e,b),e}(Error),le=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=ie,te}return te(e,b),e}(ce);S.MismatchedTokenException=le;var pe=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=oe,te}return te(e,b),e}(ce);S.NoViableAltException=pe;var fe=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.name=ae,ee}return te(e,b),e}(ce);S.NotAllInputParsedException=fe;var de=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=se,te}return te(e,b),e}(ce);S.EarlyExitException=de},3870:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.checkPrefixAlternativesAmbiguities=S.validateSomeNonEmptyLookaheadPath=S.validateTooManyAlts=S.RepetitionCollector=S.validateAmbiguousAlternationAlternatives=S.validateEmptyOrAlternative=S.getFirstNoneTerminal=S.validateNoLeftRecursion=S.validateRuleIsOverridden=S.validateRuleDoesNotAlreadyExist=S.OccurrenceValidationCollector=S.identifyProductionForDuplicates=S.validateGrammar=void 0;var ne=re(J(3237)),ie=re(J(5455)),oe=re(J(7264)),se=re(J(5676)),ae=re(J(882)),ue=re(J(2070)),ce=re(J(7335)),le=re(J(6760)),pe=re(J(9756)),fe=re(J(3440)),de=re(J(8215)),he=re(J(2208)),me=re(J(8346)),ge=re(J(1886)),ye=re(J(5838)),ve=re(J(4004)),Te=J(2941),be=J(7729),Ee=J(4677),Ae=J(9985),we=J(7729),_e=J(7729),xe=re(J(4934)),Pe=re(J(417)),Ce=J(1201);function k(b){return"".concat((0,be.getProductionDslName)(b),"_#_").concat(b.idx,"_#_").concat(L(b))}function L(b){return b instanceof we.Terminal?b.terminalType.name:b instanceof we.NonTerminal?b.nonTerminalName:""}S.validateGrammar=function(b,S,J,ee,te){var re=(0,ye.default)(b,(function(b){return function(b,S){var J=new ke;b.accept(J);var ee=J.allProductions,te=(0,fe.default)(ee,k),re=(0,he.default)(te,(function(b){return b.length>1}));return(0,le.default)((0,me.default)(re),(function(J){var ee=(0,ne.default)(J),te=S.buildDuplicateFoundError(b,J),re=(0,be.getProductionDslName)(ee),ie={message:te,type:Te.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:b.name,dslName:re,occurrence:ee.idx},oe=L(ee);return oe&&(ie.parameter=oe),ie}))}(b,ee)})),oe=(0,ye.default)(b,(function(b){return D(b,b,ee)})),se=[],ae=[],ue=[];(0,ie.default)(oe)&&(se=(0,ye.default)(b,(function(b){return j(b,ee)})),ae=(0,ye.default)(b,(function(b){return U(b,S,ee)})),ue=W(b,S,ee));var ce=function(b,S,J){var ee=[],te=(0,le.default)(S,(function(b){return b.name}));return(0,pe.default)(b,(function(b){var S=b.name;if((0,ge.default)(te,S)){var re=J.buildNamespaceConflictError(b);ee.push({message:re,type:Te.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:S})}})),ee}(b,J,ee),de=(0,ye.default)(b,(function(b){return G(b,ee)})),ve=(0,ye.default)(b,(function(S){return M(S,b,te,ee)}));return re.concat(ue,oe,se,ae,ce,de,ve)},S.identifyProductionForDuplicates=k;var ke=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitNonTerminal=function(b){this.allProductions.push(b)},e.prototype.visitOption=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e.prototype.visitAlternation=function(b){this.allProductions.push(b)},e.prototype.visitTerminal=function(b){this.allProductions.push(b)},e}(_e.GAstVisitor);function M(b,S,J,ee){var te=[];if((0,de.default)(S,(function(S,J){return J.name===b.name?S+1:S}),0)>1){var re=ee.buildDuplicateRuleNameError({topLevelRule:b,grammarName:J});te.push({message:re,type:Te.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b.name})}return te}function D(b,S,J,ee){void 0===ee&&(ee=[]);var te=[],re=w(S.definition);if((0,ie.default)(re))return[];var ne=b.name;(0,ge.default)(re,b)&&te.push({message:J.buildLeftRecursionError({topLevelRule:b,leftRecursionPath:ee}),type:Te.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:ne});var oe=(0,ce.default)(re,ee.concat([b])),se=(0,ye.default)(oe,(function(S){var te=(0,ve.default)(ee);return te.push(S),D(b,S,J,te)}));return te.concat(se)}function w(b){var S=[];if((0,ie.default)(b))return S;var J=(0,ne.default)(b);if(J instanceof we.NonTerminal)S.push(J.referencedRule);else if(J instanceof we.Alternative||J instanceof we.Option||J instanceof we.RepetitionMandatory||J instanceof we.RepetitionMandatoryWithSeparator||J instanceof we.RepetitionWithSeparator||J instanceof we.Repetition)S=S.concat(w(J.definition));else if(J instanceof we.Alternation)S=(0,se.default)((0,le.default)(J.definition,(function(b){return w(b.definition)})));else if(!(J instanceof we.Terminal))throw Error("non exhaustive match");var ee=(0,be.isOptionalProd)(J),te=b.length>1;if(ee&&te){var re=(0,oe.default)(b);return S.concat(w(re))}return S}S.OccurrenceValidationCollector=ke,S.validateRuleDoesNotAlreadyExist=M,S.validateRuleIsOverridden=function(b,S,J){var ee,te=[];return(0,ge.default)(S,b)||(ee="Invalid rule override, rule: ->".concat(b,"<- cannot be overridden in the grammar: ->").concat(J,"<-")+"as it is not defined in any of the super grammars ",te.push({message:ee,type:Te.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:b})),te},S.validateNoLeftRecursion=D,S.getFirstNoneTerminal=w;var Se=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.alternations=[],S}return te(e,b),e.prototype.visitAlternation=function(b){this.alternations.push(b)},e}(_e.GAstVisitor);function j(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){var ee=(0,xe.default)(J.definition);return(0,ye.default)(ee,(function(ee,te){var re=(0,Ae.nextPossibleTokensAfter)([ee],[],Ce.tokenStructuredMatcher,1);return(0,ie.default)(re)?[{message:S.buildEmptyAlternationError({topLevelRule:b,alternation:J,emptyChoiceIdx:te}),type:Te.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:b.name,occurrence:J.idx,alternative:te+1}]:[]}))}))}function U(b,S,J){var ee=new Se;b.accept(ee);var te=ee.alternations;return te=(0,ue.default)(te,(function(b){return!0===b.ignoreAmbiguities})),(0,ye.default)(te,(function(ee){var te=ee.idx,re=ee.maxLookahead||S,ne=(0,Ee.getLookaheadPathsForOr)(te,b,re,ee),ie=function(b,S,J,ee){var te=[],re=(0,de.default)(b,(function(J,ee,re){return!0===S.definition[re].ignoreAmbiguities||(0,pe.default)(ee,(function(ee){var ne=[re];(0,pe.default)(b,(function(b,J){re!==J&&(0,Ee.containsPath)(b,ee)&&!0!==S.definition[J].ignoreAmbiguities&&ne.push(J)})),ne.length>1&&!(0,Ee.containsPath)(te,ee)&&(te.push(ee),J.push({alts:ne,path:ee}))})),J}),[]);return(0,le.default)(re,(function(b){var te=(0,le.default)(b.alts,(function(b){return b+1}));return{message:ee.buildAlternationAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:J.name,occurrence:S.idx,alternatives:b.alts}}))}(ne,ee,b,J),oe=V(ne,ee,b,J);return ie.concat(oe)}))}S.validateEmptyOrAlternative=j,S.validateAmbiguousAlternationAlternatives=U;var De=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e}(_e.GAstVisitor);function G(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){return J.definition.length>255?[{message:S.buildTooManyAlternativesError({topLevelRule:b,alternation:J}),type:Te.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:b.name,occurrence:J.idx}]:[]}))}function W(b,S,J){var ee=[];return(0,pe.default)(b,(function(b){var te=new De;b.accept(te);var re=te.allProductions;(0,pe.default)(re,(function(te){var re=(0,Ee.getProdType)(te),ne=te.maxLookahead||S,oe=te.idx,ae=(0,Ee.getLookaheadPathsForOptionalProd)(oe,b,re,ne)[0];if((0,ie.default)((0,se.default)(ae))){var ue=J.buildEmptyRepetitionError({topLevelRule:b,repetition:te});ee.push({message:ue,type:Te.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:b.name})}}))})),ee}function V(b,S,J,ee){var te=(0,de.default)(b,(function(b,S,J){var ee=(0,le.default)(S,(function(b){return{idx:J,path:b}}));return b.concat(ee)}),[]);return(0,Pe.default)((0,ye.default)(te,(function(b){if(!0===S.definition[b.idx].ignoreAmbiguities)return[];var re=b.idx,ne=b.path,ie=(0,ae.default)(te,(function(b){return!0!==S.definition[b.idx].ignoreAmbiguities&&b.idx<re&&(0,Ee.isStrictPrefixOfPath)(b.path,ne)}));return(0,le.default)(ie,(function(b){var te=[b.idx+1,re+1],ne=0===S.idx?"":S.idx;return{message:ee.buildAlternationPrefixAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:J.name,occurrence:ne,alternatives:te}}))})))}S.RepetitionCollector=De,S.validateTooManyAlts=G,S.validateSomeNonEmptyLookaheadPath=W,S.checkPrefixAlternativesAmbiguities=V},8052:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.firstForTerminal=S.firstForBranching=S.firstForSequence=S.first=void 0;var te=ee(J(5676)),re=ee(J(5652)),ne=ee(J(6760)),ie=J(7729),oe=J(7729);function c(b){if(b instanceof ie.NonTerminal)return c(b.referencedRule);if(b instanceof ie.Terminal)return p(b);if((0,oe.isSequenceProd)(b))return l(b);if((0,oe.isBranchingProd)(b))return f(b);throw Error("non exhaustive match")}function l(b){for(var S,J=[],ee=b.definition,te=0,ne=ee.length>te,ie=!0;ne&&ie;)S=ee[te],ie=(0,oe.isOptionalProd)(S),J=J.concat(c(S)),te+=1,ne=ee.length>te;return(0,re.default)(J)}function f(b){var S=(0,ne.default)(b.definition,(function(b){return c(b)}));return(0,re.default)((0,te.default)(S))}function p(b){return[b.terminalType]}S.first=c,S.firstForSequence=l,S.firstForBranching=f,S.firstForTerminal=p},4917:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildInProdFollowPrefix=S.buildBetweenProdsFollowPrefix=S.computeAllProdsFollows=S.ResyncFollowsWalker=void 0;var ne=J(8567),ie=J(8052),oe=re(J(9756)),se=re(J(19)),ae=J(3710),ue=J(7729),ce=function(b){function e(S){var J=b.call(this)||this;return J.topProd=S,J.follows={},J}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(b,S,J){},e.prototype.walkProdRef=function(b,S,J){var ee=d(b.referencedRule,b.idx)+this.topProd.name,te=S.concat(J),re=new ue.Alternative({definition:te}),ne=(0,ie.first)(re);this.follows[ee]=ne},e}(ne.RestWalker);function d(b,S){return b.name+S+ae.IN}S.ResyncFollowsWalker=ce,S.computeAllProdsFollows=function(b){var S={};return(0,oe.default)(b,(function(b){var J=new ce(b).startWalking();(0,se.default)(S,J)})),S},S.buildBetweenProdsFollowPrefix=d,S.buildInProdFollowPrefix=function(b){return b.terminalType.name+b.idx+ae.IN}},1665:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateGrammar=S.resolveGrammar=void 0;var te=ee(J(9756)),re=ee(J(4573)),ne=J(6304),ie=J(3870),oe=J(1007);S.resolveGrammar=function(b){var S=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarResolverErrorProvider}),J={};return(0,te.default)(b.rules,(function(b){J[b.name]=b})),(0,ne.resolveGrammar)(J,S.errMsgProvider)},S.validateGrammar=function(b){return b=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarValidatorErrorProvider}),(0,ie.validateGrammar)(b.rules,b.maxLookahead,b.tokenTypes,b.errMsgProvider,b.grammarName)}},9985:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.nextPossibleTokensAfter=S.possiblePathsFrom=S.NextTerminalAfterAtLeastOneSepWalker=S.NextTerminalAfterAtLeastOneWalker=S.NextTerminalAfterManySepWalker=S.NextTerminalAfterManyWalker=S.AbstractNextTerminalAfterProductionWalker=S.NextAfterTokenWalker=S.AbstractNextPossibleTokensWalker=void 0;var ne=J(8567),ie=re(J(3237)),oe=re(J(5455)),se=re(J(4934)),ae=re(J(7264)),ue=re(J(6974)),ce=re(J(9756)),le=re(J(4004)),pe=J(8052),fe=J(7729),de=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topProd=S,ee.path=J,ee.possibleTokTypes=[],ee.nextProductionName="",ee.nextProductionOccurrence=0,ee.found=!1,ee.isAtEndOfPath=!1,ee}return te(e,b),e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,le.default)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,le.default)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(S,J){void 0===J&&(J=[]),this.found||b.prototype.walk.call(this,S,J)},e.prototype.walkProdRef=function(b,S,J){if(b.referencedRule.name===this.nextProductionName&&b.idx===this.nextProductionOccurrence){var ee=S.concat(J);this.updateExpectedNext(),this.walk(b.referencedRule,ee)}},e.prototype.updateExpectedNext=function(){(0,oe.default)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(ne.RestWalker);S.AbstractNextPossibleTokensWalker=de;var he=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.path=J,ee.nextTerminalName="",ee.nextTerminalOccurrence=0,ee.nextTerminalName=ee.path.lastTok.name,ee.nextTerminalOccurrence=ee.path.lastTokOccurrence,ee}return te(e,b),e.prototype.walkTerminal=function(b,S,J){if(this.isAtEndOfPath&&b.terminalType.name===this.nextTerminalName&&b.idx===this.nextTerminalOccurrence&&!this.found){var ee=S.concat(J),te=new fe.Alternative({definition:ee});this.possibleTokTypes=(0,pe.first)(te),this.found=!0}},e}(de);S.NextAfterTokenWalker=he;var me=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topRule=S,ee.occurrence=J,ee.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},ee}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(ne.RestWalker);S.AbstractNextTerminalAfterProductionWalker=me;var ge=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkMany=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkMany.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManyWalker=ge;var ye=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkManySep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkManySep.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManySepWalker=ye;var ve=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOne=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOne.call(this,S,J,ee)},e}(me);S.NextTerminalAfterAtLeastOneWalker=ve;var Te=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOneSep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOneSep.call(this,S,J,ee)},e}(me);function R(b,S,J,ee){var te=(0,le.default)(J);te.push(b.name);var re=(0,le.default)(ee);return re.push(1),{idx:S,def:b.definition,ruleStack:te,occurrenceStack:re}}S.NextTerminalAfterAtLeastOneSepWalker=Te,S.possiblePathsFrom=function t(b,S,J){void 0===J&&(J=[]),J=(0,le.default)(J);var ee=[],te=0;function a(re){var ne=t(re.concat((0,ae.default)(b,te+1)),S,J);return ee.concat(ne)}for(;J.length<S&&te<b.length;){var re=b[te];if(re instanceof fe.Alternative)return a(re.definition);if(re instanceof fe.NonTerminal)return a(re.definition);if(re instanceof fe.Option)ee=a(re.definition);else{if(re instanceof fe.RepetitionMandatory)return a(ne=re.definition.concat([new fe.Repetition({definition:re.definition})]));if(re instanceof fe.RepetitionMandatoryWithSeparator)return a(ne=[new fe.Alternative({definition:re.definition}),new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);if(re instanceof fe.RepetitionWithSeparator){var ne=re.definition.concat([new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);ee=a(ne)}else if(re instanceof fe.Repetition)ne=re.definition.concat([new fe.Repetition({definition:re.definition})]),ee=a(ne);else{if(re instanceof fe.Alternation)return(0,ce.default)(re.definition,(function(b){!1===(0,oe.default)(b.definition)&&(ee=a(b.definition))})),ee;if(!(re instanceof fe.Terminal))throw Error("non exhaustive match");J.push(re.terminalType)}}te++}return ee.push({partialPath:J,suffixDef:(0,ae.default)(b,te)}),ee},S.nextPossibleTokensAfter=function(b,S,J,ee){var te="EXIT_NONE_TERMINAL",re=[te],ne="EXIT_ALTERNATIVE",ie=!1,ce=S.length,pe=ce-ee-1,de=[],he=[];for(he.push({idx:-1,def:b,ruleStack:[],occurrenceStack:[]});!(0,oe.default)(he);){var me=he.pop();if(me!==ne){var ge=me.def,ye=me.idx,ve=me.ruleStack,Te=me.occurrenceStack;if(!(0,oe.default)(ge)){var be=ge[0];if(be===te){var Ee={idx:ye,def:(0,ae.default)(ge),ruleStack:(0,se.default)(ve),occurrenceStack:(0,se.default)(Te)};he.push(Ee)}else if(be instanceof fe.Terminal)if(ye<ce-1){var Ae=ye+1;J(S[Ae],be.terminalType)&&(Ee={idx:Ae,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(Ee))}else{if(ye!==ce-1)throw Error("non exhaustive match");de.push({nextTokenType:be.terminalType,nextTokenOccurrence:be.idx,ruleStack:ve,occurrenceStack:Te}),ie=!0}else if(be instanceof fe.NonTerminal){var we=(0,le.default)(ve);we.push(be.nonTerminalName);var _e=(0,le.default)(Te);_e.push(be.idx),Ee={idx:ye,def:be.definition.concat(re,(0,ae.default)(ge)),ruleStack:we,occurrenceStack:_e},he.push(Ee)}else if(be instanceof fe.Option){var xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te};he.push(xe),he.push(ne);var Pe={idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(Pe)}else if(be instanceof fe.RepetitionMandatory){var Ce=new fe.Repetition({definition:be.definition,idx:be.idx});Ee={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Ee)}else if(be instanceof fe.RepetitionMandatoryWithSeparator){var ke=new fe.Terminal({terminalType:be.separator});Ce=new fe.Repetition({definition:[ke].concat(be.definition),idx:be.idx}),Ee={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Ee)}else if(be instanceof fe.RepetitionWithSeparator){xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),ke=new fe.Terminal({terminalType:be.separator});var Se=new fe.Repetition({definition:[ke].concat(be.definition),idx:be.idx});Pe={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Pe)}else if(be instanceof fe.Repetition)xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),Se=new fe.Repetition({definition:be.definition,idx:be.idx}),Pe={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Pe);else if(be instanceof fe.Alternation)for(var De=be.definition.length-1;De>=0;De--){var Ie={idx:ye,def:be.definition[De].definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(Ie),he.push(ne)}else if(be instanceof fe.Alternative)he.push({idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te});else{if(!(be instanceof fe.Rule))throw Error("non exhaustive match");he.push(R(be,ye,ve,Te))}}}else ie&&(0,ue.default)(he).idx<=pe&&he.pop()}return de}},8209:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getKeyForAutomaticLookahead=S.AT_LEAST_ONE_SEP_IDX=S.MANY_SEP_IDX=S.AT_LEAST_ONE_IDX=S.MANY_IDX=S.OPTION_IDX=S.OR_IDX=S.BITS_FOR_ALT_IDX=S.BITS_FOR_RULE_IDX=S.BITS_FOR_OCCURRENCE_IDX=S.BITS_FOR_METHOD_TYPE=void 0,S.BITS_FOR_METHOD_TYPE=4,S.BITS_FOR_OCCURRENCE_IDX=8,S.BITS_FOR_RULE_IDX=12,S.BITS_FOR_ALT_IDX=8,S.OR_IDX=1<<S.BITS_FOR_OCCURRENCE_IDX,S.OPTION_IDX=2<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_IDX=3<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_IDX=4<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_SEP_IDX=5<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_SEP_IDX=6<<S.BITS_FOR_OCCURRENCE_IDX,S.getKeyForAutomaticLookahead=function(b,S,J){return J|S|b},S.BITS_FOR_ALT_IDX},4677:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.areTokenCategoriesNotUsed=S.isStrictPrefixOfPath=S.containsPath=S.getLookaheadPathsForOptionalProd=S.getLookaheadPathsForOr=S.lookAheadSequenceFromAlternatives=S.buildSingleAlternativeLookaheadFunction=S.buildAlternativesLookAheadFunc=S.buildLookaheadFuncForOptionalProd=S.buildLookaheadFuncForOr=S.getProdType=S.PROD_TYPE=void 0;var ne,ie=re(J(5455)),oe=re(J(5676)),se=re(J(9794)),ae=re(J(6760)),ue=re(J(9756)),ce=re(J(3352)),le=re(J(8215)),pe=J(9985),fe=J(8567),de=J(1201),he=J(7729),me=J(7729);!function(b){b[b.OPTION=0]="OPTION",b[b.REPETITION=1]="REPETITION",b[b.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",b[b.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",b[b.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",b[b.ALTERNATION=5]="ALTERNATION"}(ne=S.PROD_TYPE||(S.PROD_TYPE={})),S.getProdType=function(b){if(b instanceof he.Option)return ne.OPTION;if(b instanceof he.Repetition)return ne.REPETITION;if(b instanceof he.RepetitionMandatory)return ne.REPETITION_MANDATORY;if(b instanceof he.RepetitionMandatoryWithSeparator)return ne.REPETITION_MANDATORY_WITH_SEPARATOR;if(b instanceof he.RepetitionWithSeparator)return ne.REPETITION_WITH_SEPARATOR;if(b instanceof he.Alternation)return ne.ALTERNATION;throw Error("non exhaustive match")},S.buildLookaheadFuncForOr=function(b,S,J,ee,te,re){var ne=I(b,S,J);return re(ne,ee,P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher,te)},S.buildLookaheadFuncForOptionalProd=function(b,S,J,ee,te,re){var ne=x(b,S,te,J),ie=P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher;return re(ne[0],ie,ee)},S.buildAlternativesLookAheadFunc=function(b,S,J,ee){var te=b.length,re=(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return 1===b.length}))}));if(S)return function(S){for(var ee=(0,ae.default)(S,(function(b){return b.GATE})),re=0;re<te;re++){var ne=b[re],ie=ne.length,oe=ee[re];if(void 0===oe||!1!==oe.call(this))e:for(var se=0;se<ie;se++){for(var ue=ne[se],ce=ue.length,le=0;le<ce;le++){var pe=this.LA(le+1);if(!1===J(pe,ue[le]))continue e}return re}}};if(re&&!ee){var ne=(0,ae.default)(b,(function(b){return(0,oe.default)(b)})),ie=(0,le.default)(ne,(function(b,S,J){return(0,ue.default)(S,(function(S){(0,ce.default)(b,S.tokenTypeIdx)||(b[S.tokenTypeIdx]=J),(0,ue.default)(S.categoryMatches,(function(S){(0,ce.default)(b,S)||(b[S]=J)}))})),b}),{});return function(){var b=this.LA(1);return ie[b.tokenTypeIdx]}}return function(){for(var S=0;S<te;S++){var ee=b[S],re=ee.length;e:for(var ne=0;ne<re;ne++){for(var ie=ee[ne],oe=ie.length,se=0;se<oe;se++){var ae=this.LA(se+1);if(!1===J(ae,ie[se]))continue e}return S}}}},S.buildSingleAlternativeLookaheadFunction=function(b,S,J){var ee=(0,se.default)(b,(function(b){return 1===b.length})),te=b.length;if(ee&&!J){var re=(0,oe.default)(b);if(1===re.length&&(0,ie.default)(re[0].categoryMatches)){var ne=re[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===ne}}var ae=(0,le.default)(re,(function(b,S,J){return b[S.tokenTypeIdx]=!0,(0,ue.default)(S.categoryMatches,(function(S){b[S]=!0})),b}),[]);return function(){var b=this.LA(1);return!0===ae[b.tokenTypeIdx]}}return function(){e:for(var J=0;J<te;J++){for(var ee=b[J],re=ee.length,ne=0;ne<re;ne++){var ie=this.LA(ne+1);if(!1===S(ie,ee[ne]))continue e}return!0}return!1}};var ge=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.topProd=S,te.targetOccurrence=J,te.targetProdType=ee,te}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},e.prototype.checkIsTarget=function(b,S,J,ee){return b.idx===this.targetOccurrence&&this.targetProdType===S&&(this.restDef=J.concat(ee),!0)},e.prototype.walkOption=function(S,J,ee){this.checkIsTarget(S,ne.OPTION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOne=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOneSep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkMany=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkManySep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e}(fe.RestWalker),ye=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.targetOccurrence=S,te.targetProdType=J,te.targetRef=ee,te.result=[],te}return te(e,b),e.prototype.checkIsTarget=function(b,S){b.idx!==this.targetOccurrence||this.targetProdType!==S||void 0!==this.targetRef&&b!==this.targetRef||(this.result=b.definition)},e.prototype.visitOption=function(b){this.checkIsTarget(b,ne.OPTION)},e.prototype.visitRepetition=function(b){this.checkIsTarget(b,ne.REPETITION)},e.prototype.visitRepetitionMandatory=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY_WITH_SEPARATOR)},e.prototype.visitRepetitionWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_WITH_SEPARATOR)},e.prototype.visitAlternation=function(b){this.checkIsTarget(b,ne.ALTERNATION)},e}(me.GAstVisitor);function g(b){for(var S=new Array(b),J=0;J<b;J++)S[J]=[];return S}function O(b){for(var S=[""],J=0;J<b.length;J++){for(var ee=b[J],te=[],re=0;re<S.length;re++){var ne=S[re];te.push(ne+"_"+ee.tokenTypeIdx);for(var ie=0;ie<ee.categoryMatches.length;ie++){var oe="_"+ee.categoryMatches[ie];te.push(ne+oe)}}S=te}return S}function R(b,S,J){for(var ee=0;ee<b.length;ee++)if(ee!==J)for(var te=b[ee],re=0;re<S.length;re++)if(!0===te[S[re]])return!1;return!0}function A(b,S){for(var J=(0,ae.default)(b,(function(b){return(0,pe.possiblePathsFrom)([b],1)})),ee=g(J.length),te=(0,ae.default)(J,(function(b){var S={};return(0,ue.default)(b,(function(b){var J=O(b.partialPath);(0,ue.default)(J,(function(b){S[b]=!0}))})),S})),re=J,ne=1;ne<=S;ne++){var oe=re;re=g(oe.length);for(var c=function(b){for(var J=oe[b],se=0;se<J.length;se++){var ae=J[se].partialPath,ce=J[se].suffixDef,le=O(ae);if(R(te,le,b)||(0,ie.default)(ce)||ae.length===S){var fe=ee[b];if(!1===N(fe,ae)){fe.push(ae);for(var de=0;de<le.length;de++){var he=le[de];te[b][he]=!0}}}else{var me=(0,pe.possiblePathsFrom)(ce,ne+1,ae);re[b]=re[b].concat(me),(0,ue.default)(me,(function(S){var J=O(S.partialPath);(0,ue.default)(J,(function(S){te[b][S]=!0}))}))}}},se=0;se<oe.length;se++)c(se)}return ee}function I(b,S,J,ee){var te=new ye(b,ne.ALTERNATION,ee);return S.accept(te),A(te.result,J)}function x(b,S,J,ee){var te=new ye(b,J);S.accept(te);var re=te.result,ne=new ge(S,b,J).startWalking();return A([new he.Alternative({definition:re}),new he.Alternative({definition:ne})],ee)}function N(b,S){e:for(var J=0;J<b.length;J++){var ee=b[J];if(ee.length===S.length){for(var te=0;te<ee.length;te++){var re=S[te],ne=ee[te];if(!1==(re===ne||void 0!==ne.categoryMatchesMap[re.tokenTypeIdx]))continue e}return!0}}return!1}function P(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,ie.default)(b.categoryMatches)}))}))}))}S.lookAheadSequenceFromAlternatives=A,S.getLookaheadPathsForOr=I,S.getLookaheadPathsForOptionalProd=x,S.containsPath=N,S.isStrictPrefixOfPath=function(b,S){return b.length<S.length&&(0,se.default)(b,(function(b,J){var ee=S[J];return b===ee||ee.categoryMatchesMap[b.tokenTypeIdx]}))},S.areTokenCategoriesNotUsed=P},6304:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRefResolverVisitor=S.resolveGrammar=void 0;var ne=J(2941),ie=re(J(9756)),oe=re(J(8346)),se=J(7729);S.resolveGrammar=function(b,S){var J=new ae(b,S);return J.resolveRefs(),J.errors};var ae=function(b){function e(S,J){var ee=b.call(this)||this;return ee.nameToTopRule=S,ee.errMsgProvider=J,ee.errors=[],ee}return te(e,b),e.prototype.resolveRefs=function(){var b=this;(0,ie.default)((0,oe.default)(this.nameToTopRule),(function(S){b.currTopLevel=S,S.accept(b)}))},e.prototype.visitNonTerminal=function(b){var S=this.nameToTopRule[b.nonTerminalName];if(S)b.referencedRule=S;else{var J=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,b);this.errors.push({message:J,type:ne.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:b.nonTerminalName})}},e}(se.GAstVisitor);S.GastRefResolverVisitor=ae},8567:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RestWalker=void 0;var te=ee(J(7264)),re=ee(J(9756)),ne=J(7729),ie=function(){function t(){}return t.prototype.walk=function(b,S){var J=this;void 0===S&&(S=[]),(0,re.default)(b.definition,(function(ee,re){var ie=(0,te.default)(b.definition,re+1);if(ee instanceof ne.NonTerminal)J.walkProdRef(ee,ie,S);else if(ee instanceof ne.Terminal)J.walkTerminal(ee,ie,S);else if(ee instanceof ne.Alternative)J.walkFlat(ee,ie,S);else if(ee instanceof ne.Option)J.walkOption(ee,ie,S);else if(ee instanceof ne.RepetitionMandatory)J.walkAtLeastOne(ee,ie,S);else if(ee instanceof ne.RepetitionMandatoryWithSeparator)J.walkAtLeastOneSep(ee,ie,S);else if(ee instanceof ne.RepetitionWithSeparator)J.walkManySep(ee,ie,S);else if(ee instanceof ne.Repetition)J.walkMany(ee,ie,S);else{if(!(ee instanceof ne.Alternation))throw Error("non exhaustive match");J.walkOr(ee,ie,S)}}))},t.prototype.walkTerminal=function(b,S,J){},t.prototype.walkProdRef=function(b,S,J){},t.prototype.walkFlat=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkOption=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkAtLeastOne=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkAtLeastOneSep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkMany=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkManySep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkOr=function(b,S,J){var ee=this,te=S.concat(J);(0,re.default)(b.definition,(function(b){var S=new ne.Alternative({definition:[b]});ee.walk(S,te)}))},t}();function u(b,S,J){return[new ne.Option({definition:[new ne.Terminal({terminalType:b.separator})].concat(b.definition)})].concat(S,J)}S.RestWalker=ie},2941:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EmbeddedActionsParser=S.CstParser=S.Parser=S.EMPTY_ALT=S.ParserDefinitionErrorType=S.DEFAULT_RULE_CONFIG=S.DEFAULT_PARSER_CONFIG=S.END_OF_FILE=void 0;var ne,ie=re(J(5455)),oe=re(J(6760)),se=re(J(9756)),ae=re(J(8346)),ue=re(J(3352)),ce=re(J(4004)),le=J(7146),pe=J(4917),fe=J(6736),de=J(1007),he=J(1665),me=J(9992),ge=J(161),ye=J(3225),ve=J(598),Te=J(8503),be=J(3273),Ee=J(9464),Ae=J(1625),we=J(6688),_e=J(146),xe=J(4803);S.END_OF_FILE=(0,fe.createTokenInstance)(fe.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(S.END_OF_FILE),S.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:de.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),S.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0}),(ne=S.ParserDefinitionErrorType||(S.ParserDefinitionErrorType={}))[ne.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",ne[ne.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",ne[ne.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",ne[ne.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",ne[ne.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",ne[ne.LEFT_RECURSION=5]="LEFT_RECURSION",ne[ne.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",ne[ne.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",ne[ne.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",ne[ne.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",ne[ne.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",ne[ne.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",ne[ne.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",S.EMPTY_ALT=function(b){return void 0===b&&(b=void 0),function(){return b}};var Pe=function(){function t(b,J){this.definitionErrors=[],this.selfAnalysisDone=!1;var ee=this;if(ee.initErrorHandler(J),ee.initLexerAdapter(),ee.initLooksAhead(J),ee.initRecognizerEngine(b,J),ee.initRecoverable(J),ee.initTreeBuilder(J),ee.initContentAssist(),ee.initGastRecorder(J),ee.initPerformanceTracer(J),(0,ue.default)(J,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=(0,ue.default)(J,"skipValidations")?J.skipValidations:S.DEFAULT_PARSER_CONFIG.skipValidations}return t.performSelfAnalysis=function(b){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")},t.prototype.performSelfAnalysis=function(){var b=this;this.TRACE_INIT("performSelfAnalysis",(function(){var S;b.selfAnalysisDone=!0;var J=b.className;b.TRACE_INIT("toFastProps",(function(){(0,le.toFastProperties)(b)})),b.TRACE_INIT("Grammar Recording",(function(){try{b.enableRecording(),(0,se.default)(b.definedRulesNames,(function(S){var J,ee=b[S].originalGrammarAction;b.TRACE_INIT("".concat(S," Rule"),(function(){J=b.topLevelRuleRecord(S,ee)})),b.gastProductionsCache[S]=J}))}finally{b.disableRecording()}}));var ee=[];if(b.TRACE_INIT("Grammar Resolving",(function(){ee=(0,he.resolveGrammar)({rules:(0,ae.default)(b.gastProductionsCache)}),b.definitionErrors=b.definitionErrors.concat(ee)})),b.TRACE_INIT("Grammar Validations",(function(){if((0,ie.default)(ee)&&!1===b.skipValidations){var S=(0,he.validateGrammar)({rules:(0,ae.default)(b.gastProductionsCache),maxLookahead:b.maxLookahead,tokenTypes:(0,ae.default)(b.tokensMap),errMsgProvider:de.defaultGrammarValidatorErrorProvider,grammarName:J});b.definitionErrors=b.definitionErrors.concat(S)}})),(0,ie.default)(b.definitionErrors)&&(b.recoveryEnabled&&b.TRACE_INIT("computeAllProdsFollows",(function(){var S=(0,pe.computeAllProdsFollows)((0,ae.default)(b.gastProductionsCache));b.resyncFollows=S})),b.TRACE_INIT("ComputeLookaheadFunctions",(function(){b.preComputeLookaheadFunctions((0,ae.default)(b.gastProductionsCache))}))),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,ie.default)(b.definitionErrors))throw S=(0,oe.default)(b.definitionErrors,(function(b){return b.message})),new Error("Parser Definition Errors detected:\n ".concat(S.join("\n-------------------------------\n")))}))},t.DEFER_DEFINITION_ERRORS_HANDLING=!1,t}();S.Parser=Pe,(0,xe.applyMixins)(Pe,[me.Recoverable,ge.LooksAhead,ye.TreeBuilder,ve.LexerAdapter,be.RecognizerEngine,Te.RecognizerApi,Ee.ErrorHandler,Ae.ContentAssist,we.GastRecorder,_e.PerformanceTracer]);var Ce=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!0,b.call(this,J,te)||this}return te(r,b),r}(Pe);S.CstParser=Ce;var ke=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!1,b.call(this,J,te)||this}return te(r,b),r}(Pe);S.EmbeddedActionsParser=ke},1625:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ContentAssist=void 0;var te=J(9985),re=ee(J(3237)),ne=ee(J(4336)),ie=function(){function t(){}return t.prototype.initContentAssist=function(){},t.prototype.computeContentAssist=function(b,S){var J=this.gastProductionsCache[b];if((0,ne.default)(J))throw Error("Rule ->".concat(b,"<- does not exist in this grammar."));return(0,te.nextPossibleTokensAfter)([J],S,this.tokenMatcher,this.maxLookahead)},t.prototype.getNextPossibleTokenTypes=function(b){var S=(0,re.default)(b.ruleStack),J=this.getGAstProductions()[S];return new te.NextAfterTokenWalker(J,b).startWalking()},t}();S.ContentAssist=ie},9464:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ErrorHandler=void 0;var te=J(643),re=ee(J(3352)),ne=ee(J(4004)),ie=J(4677),oe=J(2941),se=function(){function t(){}return t.prototype.initErrorHandler=function(b){this._errors=[],this.errorMessageProvider=(0,re.default)(b,"errorMessageProvider")?b.errorMessageProvider:oe.DEFAULT_PARSER_CONFIG.errorMessageProvider},t.prototype.SAVE_ERROR=function(b){if((0,te.isRecognitionException)(b))return b.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,ne.default)(this.RULE_OCCURRENCE_STACK)},this._errors.push(b),b;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(t.prototype,"errors",{get:function(){return(0,ne.default)(this._errors)},set:function(b){this._errors=b},enumerable:!1,configurable:!0}),t.prototype.raiseEarlyExitException=function(b,S,J){for(var ee=this.getCurrRuleFullName(),re=this.getGAstProductions()[ee],ne=(0,ie.getLookaheadPathsForOptionalProd)(b,re,S,this.maxLookahead)[0],oe=[],se=1;se<=this.maxLookahead;se++)oe.push(this.LA(se));var ae=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:ne,actual:oe,previous:this.LA(0),customUserDescription:J,ruleName:ee});throw this.SAVE_ERROR(new te.EarlyExitException(ae,this.LA(1),this.LA(0)))},t.prototype.raiseNoAltException=function(b,S){for(var J=this.getCurrRuleFullName(),ee=this.getGAstProductions()[J],re=(0,ie.getLookaheadPathsForOr)(b,ee,this.maxLookahead),ne=[],oe=1;oe<=this.maxLookahead;oe++)ne.push(this.LA(oe));var se=this.LA(0),ae=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:re,actual:ne,previous:se,customUserDescription:S,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new te.NoViableAltException(ae,this.LA(1),se))},t}();S.ErrorHandler=se},6688:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRecorder=void 0;var te=ee(J(6974)),re=ee(J(6152)),ne=ee(J(1525)),ie=ee(J(9756)),oe=ee(J(1049)),se=ee(J(3352)),ae=J(7729),ue=J(9027),ce=J(1201),le=J(6736),pe=J(2941),fe=J(8209),de={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(de);var he=Math.pow(2,fe.BITS_FOR_OCCURRENCE_IDX)-1,me=(0,le.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:ue.Lexer.NA});(0,ce.augmentTokenTypes)([me]);var ge=(0,le.createTokenInstance)(me,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(ge);var ye={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},ve=function(){function t(){}return t.prototype.initGastRecorder=function(b){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var b=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var e=function(S){var J=S>0?S:"";b["CONSUME".concat(J)]=function(b,J){return this.consumeInternalRecord(b,S,J)},b["SUBRULE".concat(J)]=function(b,J){return this.subruleInternalRecord(b,S,J)},b["OPTION".concat(J)]=function(b){return this.optionInternalRecord(b,S)},b["OR".concat(J)]=function(b){return this.orInternalRecord(b,S)},b["MANY".concat(J)]=function(b){this.manyInternalRecord(S,b)},b["MANY_SEP".concat(J)]=function(b){this.manySepFirstInternalRecord(S,b)},b["AT_LEAST_ONE".concat(J)]=function(b){this.atLeastOneInternalRecord(S,b)},b["AT_LEAST_ONE_SEP".concat(J)]=function(b){this.atLeastOneSepFirstInternalRecord(S,b)}},S=0;S<10;S++)e(S);b.consume=function(b,S,J){return this.consumeInternalRecord(S,b,J)},b.subrule=function(b,S,J){return this.subruleInternalRecord(S,b,J)},b.option=function(b,S){return this.optionInternalRecord(S,b)},b.or=function(b,S){return this.orInternalRecord(S,b)},b.many=function(b,S){this.manyInternalRecord(b,S)},b.atLeastOne=function(b,S){this.atLeastOneInternalRecord(b,S)},b.ACTION=b.ACTION_RECORD,b.BACKTRACK=b.BACKTRACK_RECORD,b.LA=b.LA_RECORD}))},t.prototype.disableRecording=function(){var b=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var S=b,J=0;J<10;J++){var ee=J>0?J:"";delete S["CONSUME".concat(ee)],delete S["SUBRULE".concat(ee)],delete S["OPTION".concat(ee)],delete S["OR".concat(ee)],delete S["MANY".concat(ee)],delete S["MANY_SEP".concat(ee)],delete S["AT_LEAST_ONE".concat(ee)],delete S["AT_LEAST_ONE_SEP".concat(ee)]}delete S.consume,delete S.subrule,delete S.option,delete S.or,delete S.many,delete S.atLeastOne,delete S.ACTION,delete S.BACKTRACK,delete S.LA}))},t.prototype.ACTION_RECORD=function(b){},t.prototype.BACKTRACK_RECORD=function(b,S){return function(){return!0}},t.prototype.LA_RECORD=function(b){return pe.END_OF_FILE},t.prototype.topLevelRuleRecord=function(b,S){try{var J=new ae.Rule({definition:[],name:b});return J.name=b,this.recordingProdStack.push(J),S.call(this),this.recordingProdStack.pop(),J}catch(b){if(!0!==b.KNOWN_RECORDER_ERROR)try{b.message=b.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(S){throw b}throw b}},t.prototype.optionInternalRecord=function(b,S){return O.call(this,ae.Option,b,S)},t.prototype.atLeastOneInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatory,S,b)},t.prototype.atLeastOneSepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatoryWithSeparator,S,b,!0)},t.prototype.manyInternalRecord=function(b,S){O.call(this,ae.Repetition,S,b)},t.prototype.manySepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionWithSeparator,S,b,!0)},t.prototype.orInternalRecord=function(b,S){return R.call(this,b,S)},t.prototype.subruleInternalRecord=function(b,S,J){if(I(S),!b||!1===(0,se.default)(b,"ruleName")){var ee=new Error("<SUBRULE".concat(A(S),"> argument is invalid")+" expecting a Parser method reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=b.ruleName,ie=new ae.NonTerminal({idx:S,nonTerminalName:ne,label:null==J?void 0:J.LABEL,referencedRule:void 0});return re.definition.push(ie),this.outputCst?ye:de},t.prototype.consumeInternalRecord=function(b,S,J){if(I(S),!(0,ce.hasShortKeyProperty)(b)){var ee=new Error("<CONSUME".concat(A(S),"> argument is invalid")+" expecting a TokenType reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=new ae.Terminal({idx:S,terminalType:b,label:null==J?void 0:J.LABEL});return re.definition.push(ne),ge},t}();function O(b,S,J,ee){void 0===ee&&(ee=!1),I(J);var re=(0,te.default)(this.recordingProdStack),ne=(0,oe.default)(S)?S:S.DEF,ie=new b({definition:[],idx:J});return ee&&(ie.separator=S.SEP),(0,se.default)(S,"MAX_LOOKAHEAD")&&(ie.maxLookahead=S.MAX_LOOKAHEAD),this.recordingProdStack.push(ie),ne.call(this),re.definition.push(ie),this.recordingProdStack.pop(),de}function R(b,S){var J=this;I(S);var ee=(0,te.default)(this.recordingProdStack),ue=!1===(0,re.default)(b),ce=!1===ue?b:b.DEF,le=new ae.Alternation({definition:[],idx:S,ignoreAmbiguities:ue&&!0===b.IGNORE_AMBIGUITIES});(0,se.default)(b,"MAX_LOOKAHEAD")&&(le.maxLookahead=b.MAX_LOOKAHEAD);var pe=(0,ne.default)(ce,(function(b){return(0,oe.default)(b.GATE)}));return le.hasPredicates=pe,ee.definition.push(le),(0,ie.default)(ce,(function(b){var S=new ae.Alternative({definition:[]});le.definition.push(S),(0,se.default)(b,"IGNORE_AMBIGUITIES")?S.ignoreAmbiguities=b.IGNORE_AMBIGUITIES:(0,se.default)(b,"GATE")&&(S.ignoreAmbiguities=!0),J.recordingProdStack.push(S),b.ALT.call(J),J.recordingProdStack.pop()})),de}function A(b){return 0===b?"":"".concat(b)}function I(b){if(b<0||b>he){var S=new Error("Invalid DSL Method idx value: <".concat(b,">\n\t")+"Idx value must be a none negative value smaller than ".concat(he+1));throw S.KNOWN_RECORDER_ERROR=!0,S}}S.GastRecorder=ve},598:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.LexerAdapter=void 0;var ee=J(2941),te=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(b){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=b,this.tokVectorLength=b.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ee.END_OF_FILE},t.prototype.LA=function(b){var S=this.currIdx+b;return S<0||this.tokVectorLength<=S?ee.END_OF_FILE:this.tokVector[S]},t.prototype.consumeToken=function(){this.currIdx++},t.prototype.exportLexerState=function(){return this.currIdx},t.prototype.importLexerState=function(b){this.currIdx=b},t.prototype.resetLexerState=function(){this.currIdx=-1},t.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},t.prototype.getLexerPosition=function(){return this.exportLexerState()},t}();S.LexerAdapter=te},161:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.collectMethods=S.LooksAhead=void 0;var ne=J(4677),ie=re(J(9756)),oe=re(J(3352)),se=J(2941),ae=J(8209),ue=J(7729),ce=J(7729),le=function(){function t(){}return t.prototype.initLooksAhead=function(b){this.dynamicTokensEnabled=(0,oe.default)(b,"dynamicTokensEnabled")?b.dynamicTokensEnabled:se.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,oe.default)(b,"maxLookahead")?b.maxLookahead:se.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=new Map},t.prototype.preComputeLookaheadFunctions=function(b){var S=this;(0,ie.default)(b,(function(b){S.TRACE_INIT("".concat(b.name," Rule Lookahead"),(function(){var J=v(b),ee=J.alternation,te=J.repetition,re=J.option,oe=J.repetitionMandatory,se=J.repetitionMandatoryWithSeparator,ue=J.repetitionWithSeparator;(0,ie.default)(ee,(function(J){var ee=0===J.idx?"":J.idx;S.TRACE_INIT("".concat((0,ce.getProductionDslName)(J)).concat(ee),(function(){var ee=(0,ne.buildLookaheadFuncForOr)(J.idx,b,J.maxLookahead||S.maxLookahead,J.hasPredicates,S.dynamicTokensEnabled,S.lookAheadBuilderForAlternatives),te=(0,ae.getKeyForAutomaticLookahead)(S.fullRuleNameToShort[b.name],ae.OR_IDX,J.idx);S.setLaFuncCache(te,ee)}))})),(0,ie.default)(te,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_IDX,ne.PROD_TYPE.REPETITION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(re,(function(J){S.computeLookaheadFunc(b,J.idx,ae.OPTION_IDX,ne.PROD_TYPE.OPTION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(oe,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_IDX,ne.PROD_TYPE.REPETITION_MANDATORY,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(se,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_SEP_IDX,ne.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(ue,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_SEP_IDX,ne.PROD_TYPE.REPETITION_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))}))}))}))},t.prototype.computeLookaheadFunc=function(b,S,J,ee,te,re){var ie=this;this.TRACE_INIT("".concat(re).concat(0===S?"":S),(function(){var re=(0,ne.buildLookaheadFuncForOptionalProd)(S,b,te||ie.maxLookahead,ie.dynamicTokensEnabled,ee,ie.lookAheadBuilderForOptional),oe=(0,ae.getKeyForAutomaticLookahead)(ie.fullRuleNameToShort[b.name],J,S);ie.setLaFuncCache(oe,re)}))},t.prototype.lookAheadBuilderForOptional=function(b,S,J){return(0,ne.buildSingleAlternativeLookaheadFunction)(b,S,J)},t.prototype.lookAheadBuilderForAlternatives=function(b,S,J,ee){return(0,ne.buildAlternativesLookAheadFunc)(b,S,J,ee)},t.prototype.getKeyForAutomaticLookahead=function(b,S){var J=this.getLastExplicitRuleShortName();return(0,ae.getKeyForAutomaticLookahead)(J,b,S)},t.prototype.getLaFuncFromCache=function(b){return this.lookAheadFuncsCache.get(b)},t.prototype.setLaFuncCache=function(b,S){this.lookAheadFuncsCache.set(b,S)},t}();S.LooksAhead=le;var pe=new(function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},S}return te(e,b),e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitOption=function(b){this.dslMethods.option.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.dslMethods.repetitionWithSeparator.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.dslMethods.repetitionMandatory.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.dslMethods.repetitionMandatoryWithSeparator.push(b)},e.prototype.visitRepetition=function(b){this.dslMethods.repetition.push(b)},e.prototype.visitAlternation=function(b){this.dslMethods.alternation.push(b)},e}(ue.GAstVisitor));function v(b){pe.reset(),b.accept(pe);var S=pe.dslMethods;return pe.reset(),S}S.collectMethods=v},146:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.PerformanceTracer=void 0;var te=ee(J(3352)),re=J(7146),ne=J(2941),ie=function(){function t(){}return t.prototype.initPerformanceTracer=function(b){if((0,te.default)(b,"traceInitPerf")){var S=b.traceInitPerf,J="number"==typeof S;this.traceInitMaxIdent=J?S:1/0,this.traceInitPerf=J?S>0:S}else this.traceInitMaxIdent=0,this.traceInitPerf=ne.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(b,S){if(!0===this.traceInitPerf){this.traceInitIndent++;var J=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log("".concat(J,"--\x3e <").concat(b,">"));var ee=(0,re.timer)(S),te=ee.time,ne=ee.value,ie=te>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&ie("".concat(J,"<-- <").concat(b,"> time: ").concat(te,"ms")),this.traceInitIndent--,ne}return S()},t}();S.PerformanceTracer=ie},8503:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerApi=void 0;var te=ee(J(8346)),re=ee(J(1886)),ne=J(643),ie=J(2941),oe=J(1007),se=J(3870),ae=J(7729),ue=function(){function t(){}return t.prototype.ACTION=function(b){return b.call(this)},t.prototype.consume=function(b,S,J){return this.consumeInternal(S,b,J)},t.prototype.subrule=function(b,S,J){return this.subruleInternal(S,b,J)},t.prototype.option=function(b,S){return this.optionInternal(S,b)},t.prototype.or=function(b,S){return this.orInternal(S,b)},t.prototype.many=function(b,S){return this.manyInternal(b,S)},t.prototype.atLeastOne=function(b,S){return this.atLeastOneInternal(b,S)},t.prototype.CONSUME=function(b,S){return this.consumeInternal(b,0,S)},t.prototype.CONSUME1=function(b,S){return this.consumeInternal(b,1,S)},t.prototype.CONSUME2=function(b,S){return this.consumeInternal(b,2,S)},t.prototype.CONSUME3=function(b,S){return this.consumeInternal(b,3,S)},t.prototype.CONSUME4=function(b,S){return this.consumeInternal(b,4,S)},t.prototype.CONSUME5=function(b,S){return this.consumeInternal(b,5,S)},t.prototype.CONSUME6=function(b,S){return this.consumeInternal(b,6,S)},t.prototype.CONSUME7=function(b,S){return this.consumeInternal(b,7,S)},t.prototype.CONSUME8=function(b,S){return this.consumeInternal(b,8,S)},t.prototype.CONSUME9=function(b,S){return this.consumeInternal(b,9,S)},t.prototype.SUBRULE=function(b,S){return this.subruleInternal(b,0,S)},t.prototype.SUBRULE1=function(b,S){return this.subruleInternal(b,1,S)},t.prototype.SUBRULE2=function(b,S){return this.subruleInternal(b,2,S)},t.prototype.SUBRULE3=function(b,S){return this.subruleInternal(b,3,S)},t.prototype.SUBRULE4=function(b,S){return this.subruleInternal(b,4,S)},t.prototype.SUBRULE5=function(b,S){return this.subruleInternal(b,5,S)},t.prototype.SUBRULE6=function(b,S){return this.subruleInternal(b,6,S)},t.prototype.SUBRULE7=function(b,S){return this.subruleInternal(b,7,S)},t.prototype.SUBRULE8=function(b,S){return this.subruleInternal(b,8,S)},t.prototype.SUBRULE9=function(b,S){return this.subruleInternal(b,9,S)},t.prototype.OPTION=function(b){return this.optionInternal(b,0)},t.prototype.OPTION1=function(b){return this.optionInternal(b,1)},t.prototype.OPTION2=function(b){return this.optionInternal(b,2)},t.prototype.OPTION3=function(b){return this.optionInternal(b,3)},t.prototype.OPTION4=function(b){return this.optionInternal(b,4)},t.prototype.OPTION5=function(b){return this.optionInternal(b,5)},t.prototype.OPTION6=function(b){return this.optionInternal(b,6)},t.prototype.OPTION7=function(b){return this.optionInternal(b,7)},t.prototype.OPTION8=function(b){return this.optionInternal(b,8)},t.prototype.OPTION9=function(b){return this.optionInternal(b,9)},t.prototype.OR=function(b){return this.orInternal(b,0)},t.prototype.OR1=function(b){return this.orInternal(b,1)},t.prototype.OR2=function(b){return this.orInternal(b,2)},t.prototype.OR3=function(b){return this.orInternal(b,3)},t.prototype.OR4=function(b){return this.orInternal(b,4)},t.prototype.OR5=function(b){return this.orInternal(b,5)},t.prototype.OR6=function(b){return this.orInternal(b,6)},t.prototype.OR7=function(b){return this.orInternal(b,7)},t.prototype.OR8=function(b){return this.orInternal(b,8)},t.prototype.OR9=function(b){return this.orInternal(b,9)},t.prototype.MANY=function(b){this.manyInternal(0,b)},t.prototype.MANY1=function(b){this.manyInternal(1,b)},t.prototype.MANY2=function(b){this.manyInternal(2,b)},t.prototype.MANY3=function(b){this.manyInternal(3,b)},t.prototype.MANY4=function(b){this.manyInternal(4,b)},t.prototype.MANY5=function(b){this.manyInternal(5,b)},t.prototype.MANY6=function(b){this.manyInternal(6,b)},t.prototype.MANY7=function(b){this.manyInternal(7,b)},t.prototype.MANY8=function(b){this.manyInternal(8,b)},t.prototype.MANY9=function(b){this.manyInternal(9,b)},t.prototype.MANY_SEP=function(b){this.manySepFirstInternal(0,b)},t.prototype.MANY_SEP1=function(b){this.manySepFirstInternal(1,b)},t.prototype.MANY_SEP2=function(b){this.manySepFirstInternal(2,b)},t.prototype.MANY_SEP3=function(b){this.manySepFirstInternal(3,b)},t.prototype.MANY_SEP4=function(b){this.manySepFirstInternal(4,b)},t.prototype.MANY_SEP5=function(b){this.manySepFirstInternal(5,b)},t.prototype.MANY_SEP6=function(b){this.manySepFirstInternal(6,b)},t.prototype.MANY_SEP7=function(b){this.manySepFirstInternal(7,b)},t.prototype.MANY_SEP8=function(b){this.manySepFirstInternal(8,b)},t.prototype.MANY_SEP9=function(b){this.manySepFirstInternal(9,b)},t.prototype.AT_LEAST_ONE=function(b){this.atLeastOneInternal(0,b)},t.prototype.AT_LEAST_ONE1=function(b){return this.atLeastOneInternal(1,b)},t.prototype.AT_LEAST_ONE2=function(b){this.atLeastOneInternal(2,b)},t.prototype.AT_LEAST_ONE3=function(b){this.atLeastOneInternal(3,b)},t.prototype.AT_LEAST_ONE4=function(b){this.atLeastOneInternal(4,b)},t.prototype.AT_LEAST_ONE5=function(b){this.atLeastOneInternal(5,b)},t.prototype.AT_LEAST_ONE6=function(b){this.atLeastOneInternal(6,b)},t.prototype.AT_LEAST_ONE7=function(b){this.atLeastOneInternal(7,b)},t.prototype.AT_LEAST_ONE8=function(b){this.atLeastOneInternal(8,b)},t.prototype.AT_LEAST_ONE9=function(b){this.atLeastOneInternal(9,b)},t.prototype.AT_LEAST_ONE_SEP=function(b){this.atLeastOneSepFirstInternal(0,b)},t.prototype.AT_LEAST_ONE_SEP1=function(b){this.atLeastOneSepFirstInternal(1,b)},t.prototype.AT_LEAST_ONE_SEP2=function(b){this.atLeastOneSepFirstInternal(2,b)},t.prototype.AT_LEAST_ONE_SEP3=function(b){this.atLeastOneSepFirstInternal(3,b)},t.prototype.AT_LEAST_ONE_SEP4=function(b){this.atLeastOneSepFirstInternal(4,b)},t.prototype.AT_LEAST_ONE_SEP5=function(b){this.atLeastOneSepFirstInternal(5,b)},t.prototype.AT_LEAST_ONE_SEP6=function(b){this.atLeastOneSepFirstInternal(6,b)},t.prototype.AT_LEAST_ONE_SEP7=function(b){this.atLeastOneSepFirstInternal(7,b)},t.prototype.AT_LEAST_ONE_SEP8=function(b){this.atLeastOneSepFirstInternal(8,b)},t.prototype.AT_LEAST_ONE_SEP9=function(b){this.atLeastOneSepFirstInternal(9,b)},t.prototype.RULE=function(b,S,J){if(void 0===J&&(J=ie.DEFAULT_RULE_CONFIG),(0,re.default)(this.definedRulesNames,b)){var ee={message:oe.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:b,grammarName:this.className}),type:ie.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b};this.definitionErrors.push(ee)}this.definedRulesNames.push(b);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.OVERRIDE_RULE=function(b,S,J){void 0===J&&(J=ie.DEFAULT_RULE_CONFIG);var ee=(0,se.validateRuleIsOverridden)(b,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(ee);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.BACKTRACK=function(b,S){return function(){this.isBackTrackingStack.push(1);var J=this.saveRecogState();try{return b.apply(this,S),!0}catch(b){if((0,ne.isRecognitionException)(b))return!1;throw b}finally{this.reloadRecogState(J),this.isBackTrackingStack.pop()}}},t.prototype.getGAstProductions=function(){return this.gastProductionsCache},t.prototype.getSerializedGastProductions=function(){return(0,ae.serializeGrammar)((0,te.default)(this.gastProductionsCache))},t}();S.RecognizerApi=ue},3273:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerEngine=void 0;var te=ee(J(5455)),re=ee(J(6152)),ne=ee(J(5676)),ie=ee(J(9794)),oe=ee(J(5652)),se=ee(J(9259)),ae=ee(J(3352)),ue=ee(J(8346)),ce=ee(J(8215)),le=ee(J(4004)),pe=J(8209),fe=J(643),de=J(4677),he=J(9985),me=J(2941),ge=J(9992),ye=J(6736),ve=J(1201),Te=function(){function t(){}return t.prototype.initRecognizerEngine=function(b,S){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ve.tokenStructuredMatcherNoCategories,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,ae.default)(S,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if((0,re.default)(b)){if((0,te.default)(b))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof b[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if((0,re.default)(b))this.tokensMap=(0,ce.default)(b,(function(b,S){return b[S.name]=S,b}),{});else if((0,ae.default)(b,"modes")&&(0,ie.default)((0,ne.default)((0,ue.default)(b.modes)),ve.isTokenType)){var J=(0,ne.default)((0,ue.default)(b.modes)),ee=(0,oe.default)(J);this.tokensMap=(0,ce.default)(ee,(function(b,S){return b[S.name]=S,b}),{})}else{if(!(0,se.default)(b))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=(0,le.default)(b)}this.tokensMap.EOF=ye.EOF;var pe=(0,ae.default)(b,"modes")?(0,ne.default)((0,ue.default)(b.modes)):(0,ue.default)(b),fe=(0,ie.default)(pe,(function(b){return(0,te.default)(b.categoryMatches)}));this.tokenMatcher=fe?ve.tokenStructuredMatcherNoCategories:ve.tokenStructuredMatcher,(0,ve.augmentTokenTypes)((0,ue.default)(this.tokensMap))},t.prototype.defineRule=function(b,S,J){if(this.selfAnalysisDone)throw Error("Grammar rule <".concat(b,"> may not be defined after the 'performSelfAnalysis' method has been called'\n")+"Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var ee,te=(0,ae.default)(J,"resyncEnabled")?J.resyncEnabled:me.DEFAULT_RULE_CONFIG.resyncEnabled,re=(0,ae.default)(J,"recoveryValueFunc")?J.recoveryValueFunc:me.DEFAULT_RULE_CONFIG.recoveryValueFunc,ne=this.ruleShortNameIdx<<pe.BITS_FOR_METHOD_TYPE+pe.BITS_FOR_OCCURRENCE_IDX;return this.ruleShortNameIdx++,this.shortRuleNameToFull[ne]=b,this.fullRuleNameToShort[b]=ne,ee=!0===this.outputCst?function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J);var ie=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(ie),ie}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}}:function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{return this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J)}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}},Object.assign(ee,{ruleName:b,originalGrammarAction:S})},t.prototype.invokeRuleCatch=function(b,S,J){var ee=1===this.RULE_STACK.length,te=S&&!this.isBackTracking()&&this.recoveryEnabled;if((0,fe.isRecognitionException)(b)){var re=b;if(te){var ne,ie=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(ie))return re.resyncedTokens=this.reSyncTo(ie),this.outputCst?((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,ne):J();throw this.outputCst&&((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,re.partialCstResult=ne),re}if(ee)return this.moveToTerminatedState(),J();throw re}throw b},t.prototype.optionInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OPTION_IDX,S);return this.optionInternalLogic(b,S,J)},t.prototype.optionInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof b){ee=b.DEF;var ne=b.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=b;if(!0===re.call(this))return ee.call(this)},t.prototype.atLeastOneInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_IDX,b);return this.atLeastOneInternalLogic(b,S,J)},t.prototype.atLeastOneInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;if(!0!==re.call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY,S.ERR_MSG);for(var oe=this.doSingleRepetition(ee);!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[b,S],re,pe.AT_LEAST_ONE_IDX,b,he.NextTerminalAfterAtLeastOneWalker)},t.prototype.atLeastOneSepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_SEP_IDX,b);this.atLeastOneSepFirstInternalLogic(b,S,J)},t.prototype.atLeastOneSepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0!==this.getLaFuncFromCache(J).call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,S.ERR_MSG);te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterAtLeastOneSepWalker],a,pe.AT_LEAST_ONE_SEP_IDX,b,he.NextTerminalAfterAtLeastOneSepWalker)},t.prototype.manyInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_IDX,b);return this.manyInternalLogic(b,S,J)},t.prototype.manyInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;for(var oe=!0;!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.manyInternal,[b,S],re,pe.MANY_IDX,b,he.NextTerminalAfterManyWalker,oe)},t.prototype.manySepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_SEP_IDX,b);this.manySepFirstInternalLogic(b,S,J)},t.prototype.manySepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0===this.getLaFuncFromCache(J).call(this)){te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterManySepWalker],a,pe.MANY_SEP_IDX,b,he.NextTerminalAfterManySepWalker)}},t.prototype.repetitionSepSecondInternal=function(b,S,J,ee,te){for(;J();)this.CONSUME(S),ee.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,S,J,ee,te],J,pe.AT_LEAST_ONE_SEP_IDX,b,te)},t.prototype.doSingleRepetition=function(b){var S=this.getLexerPosition();return b.call(this),this.getLexerPosition()>S},t.prototype.orInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OR_IDX,S),ee=(0,re.default)(b)?b:b.DEF,te=this.getLaFuncFromCache(J).call(this,ee);if(void 0!==te)return ee[te].ALT.call(this);this.raiseNoAltException(S,b.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var b=this.LA(1),S=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:b,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new fe.NotAllInputParsedException(S,b))}},t.prototype.subruleInternal=function(b,S,J){var ee;try{var te=void 0!==J?J.ARGS:void 0;return this.subruleIdx=S,ee=b.apply(this,te),this.cstPostNonTerminal(ee,void 0!==J&&void 0!==J.LABEL?J.LABEL:b.ruleName),ee}catch(S){throw this.subruleInternalError(S,J,b.ruleName)}},t.prototype.subruleInternalError=function(b,S,J){throw(0,fe.isRecognitionException)(b)&&void 0!==b.partialCstResult&&(this.cstPostNonTerminal(b.partialCstResult,void 0!==S&&void 0!==S.LABEL?S.LABEL:J),delete b.partialCstResult),b},t.prototype.consumeInternal=function(b,S,J){var ee;try{var te=this.LA(1);!0===this.tokenMatcher(te,b)?(this.consumeToken(),ee=te):this.consumeInternalError(b,te,J)}catch(J){ee=this.consumeInternalRecovery(b,S,J)}return this.cstPostTerminal(void 0!==J&&void 0!==J.LABEL?J.LABEL:b.name,ee),ee},t.prototype.consumeInternalError=function(b,S,J){var ee,te=this.LA(0);throw ee=void 0!==J&&J.ERR_MSG?J.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:b,actual:S,previous:te,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new fe.MismatchedTokenException(ee,S,te))},t.prototype.consumeInternalRecovery=function(b,S,J){if(!this.recoveryEnabled||"MismatchedTokenException"!==J.name||this.isBackTracking())throw J;var ee=this.getFollowsForInRuleRecovery(b,S);try{return this.tryInRuleRecovery(b,ee)}catch(b){throw b.name===ge.IN_RULE_RECOVERY_EXCEPTION?J:b}},t.prototype.saveRecogState=function(){var b=this.errors,S=(0,le.default)(this.RULE_STACK);return{errors:b,lexerState:this.exportLexerState(),RULE_STACK:S,CST_STACK:this.CST_STACK}},t.prototype.reloadRecogState=function(b){this.errors=b.errors,this.importLexerState(b.lexerState),this.RULE_STACK=b.RULE_STACK},t.prototype.ruleInvocationStateUpdate=function(b,S,J){this.RULE_OCCURRENCE_STACK.push(J),this.RULE_STACK.push(b),this.cstInvocationStateUpdate(S)},t.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},t.prototype.getCurrRuleFullName=function(){var b=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[b]},t.prototype.shortRuleNameToFullName=function(b){return this.shortRuleNameToFull[b]},t.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),ye.EOF)},t.prototype.reset=function(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},t}();S.RecognizerEngine=Te},9992:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.attemptInRepetitionRecovery=S.Recoverable=S.InRuleRecoveryException=S.IN_RULE_RECOVERY_EXCEPTION=S.EOF_FOLLOW_KEY=void 0;var ne=J(6736),ie=re(J(5455)),oe=re(J(4934)),se=re(J(5676)),ae=re(J(6760)),ue=re(J(5281)),ce=re(J(3352)),le=re(J(1886)),pe=re(J(4004)),fe=J(643),de=J(3710),he=J(2941);S.EOF_FOLLOW_KEY={},S.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";var me=function(b){function r(J){var ee=b.call(this,J)||this;return ee.name=S.IN_RULE_RECOVERY_EXCEPTION,ee}return te(r,b),r}(Error);S.InRuleRecoveryException=me;var ge=function(){function t(){}return t.prototype.initRecoverable=function(b){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,ce.default)(b,"recoveryEnabled")?b.recoveryEnabled:he.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=_)},t.prototype.getTokenToInsert=function(b){var S=(0,ne.createTokenInstance)(b,"",NaN,NaN,NaN,NaN,NaN,NaN);return S.isInsertedInRecovery=!0,S},t.prototype.canTokenTypeBeInsertedInRecovery=function(b){return!0},t.prototype.canTokenTypeBeDeletedInRecovery=function(b){return!0},t.prototype.tryInRepetitionRecovery=function(b,S,J,ee){for(var te=this,re=this.findReSyncTokenType(),ne=this.exportLexerState(),ie=[],se=!1,ae=this.LA(1),ue=this.LA(1),p=function(){var b=te.LA(0),S=te.errorMessageProvider.buildMismatchTokenMessage({expected:ee,actual:ae,previous:b,ruleName:te.getCurrRuleFullName()}),J=new fe.MismatchedTokenException(S,ae,te.LA(0));J.resyncedTokens=(0,oe.default)(ie),te.SAVE_ERROR(J)};!se;){if(this.tokenMatcher(ue,ee))return void p();if(J.call(this))return p(),void b.apply(this,S);this.tokenMatcher(ue,re)?se=!0:(ue=this.SKIP_TOKEN(),this.addToResyncTokens(ue,ie))}this.importLexerState(ne)},t.prototype.shouldInRepetitionRecoveryBeTried=function(b,S,J){return!1!==J&&!this.tokenMatcher(this.LA(1),b)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(b,this.getFollowsForInRuleRecovery(b,S))},t.prototype.getFollowsForInRuleRecovery=function(b,S){var J=this.getCurrentGrammarPath(b,S);return this.getNextPossibleTokenTypes(J)},t.prototype.tryInRuleRecovery=function(b,S){if(this.canRecoverWithSingleTokenInsertion(b,S))return this.getTokenToInsert(b);if(this.canRecoverWithSingleTokenDeletion(b)){var J=this.SKIP_TOKEN();return this.consumeToken(),J}throw new me("sad sad panda")},t.prototype.canPerformInRuleRecovery=function(b,S){return this.canRecoverWithSingleTokenInsertion(b,S)||this.canRecoverWithSingleTokenDeletion(b)},t.prototype.canRecoverWithSingleTokenInsertion=function(b,S){var J=this;if(!this.canTokenTypeBeInsertedInRecovery(b))return!1;if((0,ie.default)(S))return!1;var ee=this.LA(1);return void 0!==(0,ue.default)(S,(function(b){return J.tokenMatcher(ee,b)}))},t.prototype.canRecoverWithSingleTokenDeletion=function(b){return!!this.canTokenTypeBeDeletedInRecovery(b)&&this.tokenMatcher(this.LA(2),b)},t.prototype.isInCurrentRuleReSyncSet=function(b){var S=this.getCurrFollowKey(),J=this.getFollowSetFromFollowKey(S);return(0,le.default)(J,b)},t.prototype.findReSyncTokenType=function(){for(var b=this.flattenFollowSet(),S=this.LA(1),J=2;;){var ee=(0,ue.default)(b,(function(b){return(0,ne.tokenMatcher)(S,b)}));if(void 0!==ee)return ee;S=this.LA(J),J++}},t.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return S.EOF_FOLLOW_KEY;var b=this.getLastExplicitRuleShortName(),J=this.getLastExplicitRuleOccurrenceIndex(),ee=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(b),idxInCallingRule:J,inRule:this.shortRuleNameToFullName(ee)}},t.prototype.buildFullFollowKeyStack=function(){var b=this,J=this.RULE_STACK,ee=this.RULE_OCCURRENCE_STACK;return(0,ae.default)(J,(function(te,re){return 0===re?S.EOF_FOLLOW_KEY:{ruleName:b.shortRuleNameToFullName(te),idxInCallingRule:ee[re],inRule:b.shortRuleNameToFullName(J[re-1])}}))},t.prototype.flattenFollowSet=function(){var b=this,S=(0,ae.default)(this.buildFullFollowKeyStack(),(function(S){return b.getFollowSetFromFollowKey(S)}));return(0,se.default)(S)},t.prototype.getFollowSetFromFollowKey=function(b){if(b===S.EOF_FOLLOW_KEY)return[ne.EOF];var J=b.ruleName+b.idxInCallingRule+de.IN+b.inRule;return this.resyncFollows[J]},t.prototype.addToResyncTokens=function(b,S){return this.tokenMatcher(b,ne.EOF)||S.push(b),S},t.prototype.reSyncTo=function(b){for(var S=[],J=this.LA(1);!1===this.tokenMatcher(J,b);)J=this.SKIP_TOKEN(),this.addToResyncTokens(J,S);return(0,oe.default)(S)},t.prototype.attemptInRepetitionRecovery=function(b,S,J,ee,te,re,ne){},t.prototype.getCurrentGrammarPath=function(b,S){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,pe.default)(this.RULE_OCCURRENCE_STACK),lastTok:b,lastTokOccurrence:S}},t.prototype.getHumanReadableRuleStack=function(){var b=this;return(0,ae.default)(this.RULE_STACK,(function(S){return b.shortRuleNameToFullName(S)}))},t}();function _(b,S,J,ee,te,re,ie){var oe=this.getKeyForAutomaticLookahead(ee,te),se=this.firstAfterRepMap[oe];if(void 0===se){var ae=this.getCurrRuleFullName();se=new re(this.getGAstProductions()[ae],te).startWalking(),this.firstAfterRepMap[oe]=se}var ue=se.token,ce=se.occurrence,le=se.isEndOfRule;1===this.RULE_STACK.length&&le&&void 0===ue&&(ue=ne.EOF,ce=1),void 0!==ue&&void 0!==ce&&this.shouldInRepetitionRecoveryBeTried(ue,ce,ie)&&this.tryInRepetitionRecovery(b,S,J,ue)}S.Recoverable=ge,S.attemptInRepetitionRecovery=_},3225:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.TreeBuilder=void 0;var te=J(7485),re=ee(J(4291)),ne=ee(J(3352)),ie=ee(J(249)),oe=ee(J(4336)),se=J(8169),ae=J(2941),ue=function(){function t(){}return t.prototype.initTreeBuilder=function(b){if(this.CST_STACK=[],this.outputCst=b.outputCst,this.nodeLocationTracking=(0,ne.default)(b,"nodeLocationTracking")?b.nodeLocationTracking:ae.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationFull,this.setNodeLocationFromNode=te.setNodeLocationFull,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=te.setNodeLocationOnlyOffset,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'.concat(b.nodeLocationTracking,'"'));this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=re.default,this.setInitialNodeLocation=re.default}else this.cstInvocationStateUpdate=re.default,this.cstFinallyStateUpdate=re.default,this.cstPostTerminal=re.default,this.cstPostNonTerminal=re.default,this.cstPostRule=re.default},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(b){b.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(b){b.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(b){b.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(b){var S=this.LA(1);b.location={startOffset:S.startOffset,startLine:S.startLine,startColumn:S.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(b){var S={name:b,children:Object.create(null)};this.setInitialNodeLocation(S),this.CST_STACK.push(S)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?(J.endOffset=S.endOffset,J.endLine=S.endLine,J.endColumn=S.endColumn):(J.startOffset=NaN,J.startLine=NaN,J.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?J.endOffset=S.endOffset:J.startOffset=NaN},t.prototype.cstPostTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addTerminalToCst)(J,S,b),this.setNodeLocationFromToken(J.location,S)},t.prototype.cstPostNonTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addNoneTerminalToCst)(J,S,b),this.setNodeLocationFromNode(J.location,b.location)},t.prototype.getBaseCstVisitorConstructor=function(){if((0,oe.default)(this.baseCstVisitorConstructor)){var b=(0,se.createBaseSemanticVisitorConstructor)(this.className,(0,ie.default)(this.gastProductionsCache));return this.baseCstVisitorConstructor=b,b}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,oe.default)(this.baseCstVisitorWithDefaultsConstructor)){var b=(0,se.createBaseVisitorConstructorWithDefaults)(this.className,(0,ie.default)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=b,b}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var b=this.RULE_OCCURRENCE_STACK;return b[b.length-1]},t}();S.TreeBuilder=ue},4803:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.applyMixins=void 0,S.applyMixins=function(b,S){S.forEach((function(S){var J=S.prototype;Object.getOwnPropertyNames(J).forEach((function(ee){if("constructor"!==ee){var te=Object.getOwnPropertyDescriptor(J,ee);te&&(te.get||te.set)?Object.defineProperty(b.prototype,ee,te):b.prototype[ee]=S.prototype[ee]}}))}))}},6178:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.charCodeToOptimizedIndex=S.minOptimizationVal=S.buildLineBreakIssueMessage=S.LineTerminatorOptimizedTester=S.isShortPattern=S.isCustomPattern=S.cloneEmptyGroups=S.performWarningRuntimeChecks=S.performRuntimeChecks=S.addStickyFlag=S.addStartOfInput=S.findUnreachablePatterns=S.findModesThatDoNotExist=S.findInvalidGroupType=S.findDuplicatePatterns=S.findUnsupportedFlags=S.findStartOfInputAnchor=S.findEmptyMatchRegExps=S.findEndOfInputAnchor=S.findInvalidPatterns=S.findMissingPatterns=S.validatePatterns=S.analyzeTokenTypes=S.enableSticky=S.disableSticky=S.SUPPORT_STICKY=S.MODES=S.DEFAULT_MODE=void 0;var ne=J(4844),ie=J(9027),oe=re(J(3237)),se=re(J(5455)),ae=re(J(417)),ue=re(J(6152)),ce=re(J(8346)),le=re(J(5676)),pe=re(J(2070)),fe=re(J(7335)),de=re(J(3493)),he=re(J(6760)),me=re(J(9756)),ge=re(J(5505)),ye=re(J(1049)),ve=re(J(4336)),Te=re(J(5281)),be=re(J(3352)),Ee=re(J(249)),Ae=re(J(859)),we=re(J(882)),_e=re(J(4573)),xe=re(J(8215)),Pe=re(J(1886)),Ce=J(7146),ke=J(1480),Se=J(3067);function C(b){var S=(0,we.default)(b,(function(b){return!(0,be.default)(b,"PATTERN")}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- missing static 'PATTERN' property",type:ie.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}function M(b){var S=(0,we.default)(b,(function(b){var S=b.PATTERN;return!((0,Ae.default)(S)||(0,ye.default)(S)||(0,be.default)(S,"exec")||(0,ge.default)(S))}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ie.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}S.DEFAULT_MODE="defaultMode",S.MODES="modes",S.SUPPORT_STICKY="boolean"==typeof new RegExp("(?:)").sticky,S.disableSticky=function(){S.SUPPORT_STICKY=!1},S.enableSticky=function(){S.SUPPORT_STICKY=!0},S.analyzeTokenTypes=function(b,J){var ee,te=(J=(0,_e.default)(J,{useSticky:S.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(b,S){return S()}})).tracer;te("initCharCodeToOptimizedIndexMap",(function(){!function(){if((0,se.default)(Oe)){Oe=new Array(65536);for(var b=0;b<65536;b++)Oe[b]=b>255?255+~~(b/255):b}}()})),te("Reject Lexer.NA",(function(){ee=(0,pe.default)(b,(function(b){return b.PATTERN===ie.Lexer.NA}))}));var re,ne,oe,ae,ce,le,fe,Te,Ee,we,Se,De=!1;te("Transform Patterns",(function(){De=!1,re=(0,he.default)(ee,(function(b){var S=b.PATTERN;if((0,Ae.default)(S)){var ee=S.source;return 1!==ee.length||"^"===ee||"$"===ee||"."===ee||S.ignoreCase?2!==ee.length||"\\"!==ee[0]||(0,Pe.default)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ee[1])?J.useSticky?Y(S):K(S):ee[1]:ee}if((0,ye.default)(S))return De=!0,{exec:S};if("object"==typeof S)return De=!0,S;if("string"==typeof S){if(1===S.length)return S;var te=S.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(te);return J.useSticky?Y(re):K(re)}throw Error("non exhaustive match")}))})),te("misc mapping",(function(){ne=(0,he.default)(ee,(function(b){return b.tokenTypeIdx})),oe=(0,he.default)(ee,(function(b){var S=b.GROUP;if(S!==ie.Lexer.SKIPPED){if((0,ge.default)(S))return S;if((0,ve.default)(S))return!1;throw Error("non exhaustive match")}})),ae=(0,he.default)(ee,(function(b){var S=b.LONGER_ALT;if(S)return(0,ue.default)(S)?(0,he.default)(S,(function(b){return(0,de.default)(ee,b)})):[(0,de.default)(ee,S)]})),ce=(0,he.default)(ee,(function(b){return b.PUSH_MODE})),le=(0,he.default)(ee,(function(b){return(0,be.default)(b,"POP_MODE")}))})),te("Line Terminator Handling",(function(){var b=Q(J.lineTerminatorCharacters);fe=(0,he.default)(ee,(function(b){return!1})),"onlyOffset"!==J.positionTracking&&(fe=(0,he.default)(ee,(function(S){return(0,be.default)(S,"LINE_BREAKS")?!!S.LINE_BREAKS:!1===q(S,b)&&(0,ke.canMatchCharCode)(b,S.PATTERN)})))})),te("Misc Mapping #2",(function(){Te=(0,he.default)(ee,H),Ee=(0,he.default)(re,X),we=(0,xe.default)(ee,(function(b,S){var J=S.GROUP;return(0,ge.default)(J)&&J!==ie.Lexer.SKIPPED&&(b[J]=[]),b}),{}),Se=(0,he.default)(re,(function(b,S){return{pattern:re[S],longerAlt:ae[S],canLineTerminator:fe[S],isCustom:Te[S],short:Ee[S],group:oe[S],push:ce[S],pop:le[S],tokenTypeIdx:ne[S],tokenType:ee[S]}}))}));var Ie=!0,Re=[];return J.safeMode||te("First Char Optimization",(function(){Re=(0,xe.default)(ee,(function(b,S,ee){if("string"==typeof S.PATTERN){var te=tt(S.PATTERN.charCodeAt(0));Z(b,te,Se[ee])}else if((0,ue.default)(S.START_CHARS_HINT)){var re;(0,me.default)(S.START_CHARS_HINT,(function(S){var J=tt("string"==typeof S?S.charCodeAt(0):S);re!==J&&(re=J,Z(b,J,Se[ee]))}))}else if((0,Ae.default)(S.PATTERN))if(S.PATTERN.unicode)Ie=!1,J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(ke.failedOptimizationPrefixMsg)+"\tUnable to analyze < ".concat(S.PATTERN.toString()," > pattern.\n")+"\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var ne=(0,ke.getOptimizedStartCodesIndices)(S.PATTERN,J.ensureOptimizations);(0,se.default)(ne)&&(Ie=!1),(0,me.default)(ne,(function(S){Z(b,S,Se[ee])}))}else J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(ke.failedOptimizationPrefixMsg)+"\tTokenType: <".concat(S.name,"> is using a custom token pattern without providing <start_chars_hint> parameter.\n")+"\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),Ie=!1;return b}),[])})),{emptyGroups:we,patternIdxToConfig:Se,charCodeToPatternIdxToConfig:Re,hasCustom:De,canBeOptimized:Ie}},S.validatePatterns=function(b,S){var J=[],ee=C(b);J=J.concat(ee.errors);var te=M(ee.valid),re=te.valid;return(J=(J=(J=(J=J.concat(te.errors)).concat(function(b){var S=[],J=(0,we.default)(b,(function(b){return(0,Ae.default)(b.PATTERN)}));return(S=(S=(S=(S=S.concat(w(J))).concat(U(J))).concat(B(J))).concat(G(J))).concat(F(J))}(re))).concat(W(re))).concat(V(re,S))).concat(z(re))},S.findMissingPatterns=C,S.findInvalidPatterns=M;var De=/[^\\][$]/;function w(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitEndAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,we.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return De.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function F(b){var S=(0,we.default)(b,(function(b){return b.PATTERN.test("")}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' must not match an empty string",type:ie.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[b]}}))}S.findEndOfInputAnchor=w,S.findEmptyMatchRegExps=F;var Ie=/[^\\[][\^]|^\^/;function U(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitStartAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,we.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return Ie.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function B(b){var S=(0,we.default)(b,(function(b){var S=b.PATTERN;return S instanceof RegExp&&(S.multiline||S.global)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ie.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[b]}}))}function G(b){var S=[],J=(0,he.default)(b,(function(J){return(0,xe.default)(b,(function(b,ee){return J.PATTERN.source!==ee.PATTERN.source||(0,Pe.default)(S,ee)||ee.PATTERN===ie.Lexer.NA||(S.push(ee),b.push(ee)),b}),[])}));J=(0,ae.default)(J);var ee=(0,we.default)(J,(function(b){return b.length>1}));return(0,he.default)(ee,(function(b){var S=(0,he.default)(b,(function(b){return b.name})),J=(0,oe.default)(b).PATTERN;return{message:"The same RegExp pattern ->".concat(J,"<-")+"has been used in all of the following Token Types: ".concat(S.join(", ")," <-"),type:ie.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:b}}))}function W(b){var S=(0,we.default)(b,(function(b){if(!(0,be.default)(b,"GROUP"))return!1;var S=b.GROUP;return S!==ie.Lexer.SKIPPED&&S!==ie.Lexer.NA&&!(0,ge.default)(S)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ie.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[b]}}))}function V(b,S){var J=(0,we.default)(b,(function(b){return void 0!==b.PUSH_MODE&&!(0,Pe.default)(S,b.PUSH_MODE)}));return(0,he.default)(J,(function(b){return{message:"Token Type: ->".concat(b.name,"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(b.PUSH_MODE,"<-")+"which does not exist",type:ie.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[b]}}))}function z(b){var S=[],J=(0,xe.default)(b,(function(b,S,J){var ee,te,re=S.PATTERN;return re===ie.Lexer.NA||((0,ge.default)(re)?b.push({str:re,idx:J,tokenType:S}):(0,Ae.default)(re)&&(ee=re,te=[".","\\","[","]","|","^","$","(",")","?","*","+","{"],void 0===(0,Te.default)(te,(function(b){return-1!==ee.source.indexOf(b)})))&&b.push({str:re.source,idx:J,tokenType:S})),b}),[]);return(0,me.default)(b,(function(b,ee){(0,me.default)(J,(function(J){var te=J.str,re=J.idx,ne=J.tokenType;if(ee<re&&function(b,S){if((0,Ae.default)(S)){var J=S.exec(b);return null!==J&&0===J.index}if((0,ye.default)(S))return S(b,0,[],{});if((0,be.default)(S,"exec"))return S.exec(b,0,[],{});if("string"==typeof S)return S===b;throw Error("non exhaustive match")}(te,b.PATTERN)){var oe="Token: ->".concat(ne.name,"<- can never be matched.\n")+"Because it appears AFTER the Token Type ->".concat(b.name,"<-")+"in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE";S.push({message:oe,type:ie.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[b,ne]})}}))})),S}function K(b){var S=b.ignoreCase?"i":"";return new RegExp("^(?:".concat(b.source,")"),S)}function Y(b){var S=b.ignoreCase?"iy":"y";return new RegExp("".concat(b.source),S)}function H(b){var S=b.PATTERN;if((0,Ae.default)(S))return!1;if((0,ye.default)(S))return!0;if((0,be.default)(S,"exec"))return!0;if((0,ge.default)(S))return!1;throw Error("non exhaustive match")}function X(b){return!(!(0,ge.default)(b)||1!==b.length)&&b.charCodeAt(0)}function q(b,S){if((0,be.default)(b,"LINE_BREAKS"))return!1;if((0,Ae.default)(b.PATTERN)){try{(0,ke.canMatchCharCode)(S,b.PATTERN)}catch(b){return{issue:ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:b.message}}return!1}if((0,ge.default)(b.PATTERN))return!1;if(H(b))return{issue:ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function $(b,S){if(S.issue===ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\t Root cause: ".concat(S.errMsg,".\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(S.issue===ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function Q(b){return(0,he.default)(b,(function(b){return(0,ge.default)(b)?b.charCodeAt(0):b}))}function Z(b,S,J){void 0===b[S]?b[S]=[J]:b[S].push(J)}S.findStartOfInputAnchor=U,S.findUnsupportedFlags=B,S.findDuplicatePatterns=G,S.findInvalidGroupType=W,S.findModesThatDoNotExist=V,S.findUnreachablePatterns=z,S.addStartOfInput=K,S.addStickyFlag=Y,S.performRuntimeChecks=function(b,J,ee){var te=[];return(0,be.default)(b,S.DEFAULT_MODE)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.DEFAULT_MODE+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,be.default)(b,S.MODES)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.MODES+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,be.default)(b,S.MODES)&&(0,be.default)(b,S.DEFAULT_MODE)&&!(0,be.default)(b.modes,b.defaultMode)&&te.push({message:"A MultiMode Lexer cannot be initialized with a ".concat(S.DEFAULT_MODE,": <").concat(b.defaultMode,">")+"which does not exist\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,be.default)(b,S.MODES)&&(0,me.default)(b.modes,(function(b,S){(0,me.default)(b,(function(b,J){(0,ve.default)(b)&&te.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+"<".concat(S,"> at index: <").concat(J,">\n"),type:ie.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),te},S.performWarningRuntimeChecks=function(b,S,J){var ee=[],te=!1,re=(0,ae.default)((0,le.default)((0,ce.default)(b.modes))),ne=(0,pe.default)(re,(function(b){return b.PATTERN===ie.Lexer.NA})),oe=Q(J);return S&&(0,me.default)(ne,(function(b){var S=q(b,oe);if(!1!==S){var J={message:$(b,S),type:S.issue,tokenType:b};ee.push(J)}else(0,be.default)(b,"LINE_BREAKS")?!0===b.LINE_BREAKS&&(te=!0):(0,ke.canMatchCharCode)(oe,b.PATTERN)&&(te=!0)})),S&&!te&&ee.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:ie.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),ee},S.cloneEmptyGroups=function(b){var S={},J=(0,Ee.default)(b);return(0,me.default)(J,(function(J){var ee=b[J];if(!(0,ue.default)(ee))throw Error("non exhaustive match");S[J]=[]})),S},S.isCustomPattern=H,S.isShortPattern=X,S.LineTerminatorOptimizedTester={test:function(b){for(var S=b.length,J=this.lastIndex;J<S;J++){var ee=b.charCodeAt(J);if(10===ee)return this.lastIndex=J+1,!0;if(13===ee)return 10===b.charCodeAt(J+1)?this.lastIndex=J+2:this.lastIndex=J+1,!0}return!1},lastIndex:0},S.buildLineBreakIssueMessage=$,S.minOptimizationVal=256;var Oe=[];function tt(b){return b<S.minOptimizationVal?b:Oe[b]}S.charCodeToOptimizedIndex=tt},495:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defaultLexerErrorProvider=void 0,S.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(b){return"Unable to pop Lexer Mode after encountering Token ->".concat(b.image,"<- The Mode Stack is empty")},buildUnexpectedCharactersMessage:function(b,S,J,ee,te){return"unexpected character: ->".concat(b.charAt(S),"<- at offset: ").concat(S,",")+" skipped ".concat(J," characters.")}}},9027:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.Lexer=S.LexerDefinitionErrorType=void 0;var te,re=J(6178),ne=ee(J(4291)),ie=ee(J(5455)),oe=ee(J(6152)),se=ee(J(6974)),ae=ee(J(2070)),ue=ee(J(6760)),ce=ee(J(9756)),le=ee(J(249)),pe=ee(J(4336)),fe=ee(J(3059)),de=ee(J(19)),he=ee(J(8215)),me=ee(J(4004)),ge=J(7146),ye=J(1201),ve=J(495),Te=J(3067);(te=S.LexerDefinitionErrorType||(S.LexerDefinitionErrorType={}))[te.MISSING_PATTERN=0]="MISSING_PATTERN",te[te.INVALID_PATTERN=1]="INVALID_PATTERN",te[te.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",te[te.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",te[te.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",te[te.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",te[te.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",te[te.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",te[te.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",te[te.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",te[te.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",te[te.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",te[te.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",te[te.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",te[te.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",te[te.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",te[te.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK";var be={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ve.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(be);var Ee=function(){function t(b,S){void 0===S&&(S=be);var J=this;if(this.lexerDefinition=b,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=function(b,S){if(!0===J.traceInitPerf){J.traceInitIndent++;var ee=new Array(J.traceInitIndent+1).join("\t");J.traceInitIndent<J.traceInitMaxIdent&&console.log("".concat(ee,"--\x3e <").concat(b,">"));var te=(0,ge.timer)(S),re=te.time,ne=te.value,ie=re>10?console.warn:console.log;return J.traceInitIndent<J.traceInitMaxIdent&&ie("".concat(ee,"<-- <").concat(b,"> time: ").concat(re,"ms")),J.traceInitIndent--,ne}return S()},"boolean"==typeof S)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=(0,de.default)({},be,S);var ee=this.config.traceInitPerf;!0===ee?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof ee&&(this.traceInitMaxIdent=ee,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var ee,te=!0;J.TRACE_INIT("Lexer Config handling",(function(){if(J.config.lineTerminatorsPattern===be.lineTerminatorsPattern)J.config.lineTerminatorsPattern=re.LineTerminatorOptimizedTester;else if(J.config.lineTerminatorCharacters===be.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(S.safeMode&&S.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');J.trackStartLines=/full|onlyStart/i.test(J.config.positionTracking),J.trackEndLines=/full/i.test(J.config.positionTracking),(0,oe.default)(b)?ee={modes:{defaultMode:(0,me.default)(b)},defaultMode:re.DEFAULT_MODE}:(te=!1,ee=(0,me.default)(b))})),!1===J.config.skipValidations&&(J.TRACE_INIT("performRuntimeChecks",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.performRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))})),J.TRACE_INIT("performWarningRuntimeChecks",(function(){J.lexerDefinitionWarning=J.lexerDefinitionWarning.concat((0,re.performWarningRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))}))),ee.modes=ee.modes?ee.modes:{},(0,ce.default)(ee.modes,(function(b,S){ee.modes[S]=(0,ae.default)(b,(function(b){return(0,pe.default)(b)}))}));var se=(0,le.default)(ee.modes);if((0,ce.default)(ee.modes,(function(b,ee){J.TRACE_INIT("Mode: <".concat(ee,"> processing"),(function(){var te;J.modes.push(ee),!1===J.config.skipValidations&&J.TRACE_INIT("validatePatterns",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.validatePatterns)(b,se))})),(0,ie.default)(J.lexerDefinitionErrors)&&((0,ye.augmentTokenTypes)(b),J.TRACE_INIT("analyzeTokenTypes",(function(){te=(0,re.analyzeTokenTypes)(b,{lineTerminatorCharacters:J.config.lineTerminatorCharacters,positionTracking:S.positionTracking,ensureOptimizations:S.ensureOptimizations,safeMode:S.safeMode,tracer:J.TRACE_INIT})})),J.patternIdxToConfig[ee]=te.patternIdxToConfig,J.charCodeToPatternIdxToConfig[ee]=te.charCodeToPatternIdxToConfig,J.emptyGroups=(0,de.default)({},J.emptyGroups,te.emptyGroups),J.hasCustom=te.hasCustom||J.hasCustom,J.canModeBeOptimized[ee]=te.canBeOptimized)}))})),J.defaultMode=ee.defaultMode,!(0,ie.default)(J.lexerDefinitionErrors)&&!J.config.deferDefinitionErrorsHandling){var ve=(0,ue.default)(J.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+ve)}(0,ce.default)(J.lexerDefinitionWarning,(function(b){(0,ge.PRINT_WARNING)(b.message)})),J.TRACE_INIT("Choosing sub-methods implementations",(function(){if(re.SUPPORT_STICKY?(J.chopInput=fe.default,J.match=J.matchWithTest):(J.updateLastIndex=ne.default,J.match=J.matchWithExec),te&&(J.handleModes=ne.default),!1===J.trackStartLines&&(J.computeNewColumn=fe.default),!1===J.trackEndLines&&(J.updateTokenEndLineColumnLocation=ne.default),/full/i.test(J.config.positionTracking))J.createTokenInstance=J.createFullToken;else if(/onlyStart/i.test(J.config.positionTracking))J.createTokenInstance=J.createStartOnlyToken;else{if(!/onlyOffset/i.test(J.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'.concat(J.config.positionTracking,'"'));J.createTokenInstance=J.createOffsetOnlyToken}J.hasCustom?(J.addToken=J.addTokenUsingPush,J.handlePayload=J.handlePayloadWithCustom):(J.addToken=J.addTokenUsingMemberAccess,J.handlePayload=J.handlePayloadNoCustom)})),J.TRACE_INIT("Failed Optimization Warnings",(function(){var b=(0,he.default)(J.canModeBeOptimized,(function(b,S,J){return!1===S&&b.push(J),b}),[]);if(S.ensureOptimizations&&!(0,ie.default)(b))throw Error("Lexer Modes: < ".concat(b.join(", ")," > cannot be optimized.\n")+'\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),J.TRACE_INIT("clearRegExpParserCache",(function(){(0,Te.clearRegExpParserCache)()})),J.TRACE_INIT("toFastProperties",(function(){(0,ge.toFastProperties)(J)}))}))}return t.prototype.tokenize=function(b,S){if(void 0===S&&(S=this.defaultMode),!(0,ie.default)(this.lexerDefinitionErrors)){var J=(0,ue.default)(this.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+J)}return this.tokenizeInternal(b,S)},t.prototype.tokenizeInternal=function(b,S){var J,ee,te,ne,ie,oe,ae,ue,ce,le,pe,fe,de,he,me,ge,ye=this,ve=b,Te=ve.length,be=0,Ee=0,Ae=this.hasCustom?0:Math.floor(b.length/10),we=new Array(Ae),_e=[],xe=this.trackStartLines?1:void 0,Pe=this.trackStartLines?1:void 0,Ce=(0,re.cloneEmptyGroups)(this.emptyGroups),ke=this.trackStartLines,Se=this.config.lineTerminatorsPattern,De=0,Ie=[],Oe=[],Re=[],Ne=[];function j(){return Ie}function U(b){var S=(0,re.charCodeToOptimizedIndex)(b),J=Oe[S];return void 0===J?Ne:J}Object.freeze(Ne);var Me,G=function(b){if(1===Re.length&&void 0===b.tokenType.PUSH_MODE){var S=ye.config.errorMessageProvider.buildUnableToPopLexerModeMessage(b);_e.push({offset:b.startOffset,line:b.startLine,column:b.startColumn,length:b.image.length,message:S})}else{Re.pop();var J=(0,se.default)(Re);Ie=ye.patternIdxToConfig[J],Oe=ye.charCodeToPatternIdxToConfig[J],De=Ie.length;var ee=ye.canModeBeOptimized[J]&&!1===ye.config.safeMode;ge=Oe&&ee?U:j}};function W(b){Re.push(b),Oe=this.charCodeToPatternIdxToConfig[b],Ie=this.patternIdxToConfig[b],De=Ie.length,De=Ie.length;var S=this.canModeBeOptimized[b]&&!1===this.config.safeMode;ge=Oe&&S?U:j}for(W.call(this,S);be<Te;){oe=null;var Fe=ve.charCodeAt(be),Le=ge(Fe),je=Le.length;for(J=0;J<je;J++){var Be=(Me=Le[J]).pattern;if(ae=null,!1!==(ze=Me.short)?Fe===ze&&(oe=Be):!0===Me.isCustom?null!==(me=Be.exec(ve,be,we,Ce))?(oe=me[0],void 0!==me.payload&&(ae=me.payload)):oe=null:(this.updateLastIndex(Be,be),oe=this.match(Be,b,be)),null!==oe){if(void 0!==(ie=Me.longerAlt)){var $e=ie.length;for(te=0;te<$e;te++){var Ue=Ie[ie[te]],Xe=Ue.pattern;if(ue=null,!0===Ue.isCustom?null!==(me=Xe.exec(ve,be,we,Ce))?(ne=me[0],void 0!==me.payload&&(ue=me.payload)):ne=null:(this.updateLastIndex(Xe,be),ne=this.match(Xe,b,be)),ne&&ne.length>oe.length){oe=ne,ae=ue,Me=Ue;break}}}break}}if(null!==oe){if(ce=oe.length,void 0!==(le=Me.group)&&(pe=Me.tokenTypeIdx,fe=this.createTokenInstance(oe,be,pe,Me.tokenType,xe,Pe,ce),this.handlePayload(fe,ae),!1===le?Ee=this.addToken(we,Ee,fe):Ce[le].push(fe)),b=this.chopInput(b,ce),be+=ce,Pe=this.computeNewColumn(Pe,ce),!0===ke&&!0===Me.canLineTerminator){var Ge=0,Ve=void 0,We=void 0;Se.lastIndex=0;do{!0===(Ve=Se.test(oe))&&(We=Se.lastIndex-1,Ge++)}while(!0===Ve);0!==Ge&&(xe+=Ge,Pe=ce-We,this.updateTokenEndLineColumnLocation(fe,le,We,Ge,xe,Pe,ce))}this.handleModes(Me,G,W,fe)}else{for(var qe=be,He=xe,Ke=Pe,Ye=!1;!Ye&&be<Te;)for(ve.charCodeAt(be),b=this.chopInput(b,1),be++,ee=0;ee<De;ee++){var ze,Je=Ie[ee];if(Be=Je.pattern,!1!==(ze=Je.short)?ve.charCodeAt(be)===ze&&(Ye=!0):!0===Je.isCustom?Ye=null!==Be.exec(ve,be,we,Ce):(this.updateLastIndex(Be,be),Ye=null!==Be.exec(b)),!0===Ye)break}de=be-qe,he=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(ve,qe,de,He,Ke),_e.push({offset:qe,line:He,column:Ke,length:de,message:he})}}return this.hasCustom||(we.length=Ee),{tokens:we,groups:Ce,errors:_e}},t.prototype.handleModes=function(b,S,J,ee){if(!0===b.pop){var te=b.push;S(ee),void 0!==te&&J.call(this,te)}else void 0!==b.push&&J.call(this,b.push)},t.prototype.chopInput=function(b,S){return b.substring(S)},t.prototype.updateLastIndex=function(b,S){b.lastIndex=S},t.prototype.updateTokenEndLineColumnLocation=function(b,S,J,ee,te,re,ne){var ie,oe;void 0!==S&&(oe=(ie=J===ne-1)?-1:0,1===ee&&!0===ie||(b.endLine=te+oe,b.endColumn=re-1-oe))},t.prototype.computeNewColumn=function(b,S){return b+S},t.prototype.createOffsetOnlyToken=function(b,S,J,ee){return{image:b,startOffset:S,tokenTypeIdx:J,tokenType:ee}},t.prototype.createStartOnlyToken=function(b,S,J,ee,te,re){return{image:b,startOffset:S,startLine:te,startColumn:re,tokenTypeIdx:J,tokenType:ee}},t.prototype.createFullToken=function(b,S,J,ee,te,re,ne){return{image:b,startOffset:S,endOffset:S+ne-1,startLine:te,endLine:te,startColumn:re,endColumn:re+ne-1,tokenTypeIdx:J,tokenType:ee}},t.prototype.addTokenUsingPush=function(b,S,J){return b.push(J),S},t.prototype.addTokenUsingMemberAccess=function(b,S,J){return b[S]=J,++S},t.prototype.handlePayloadNoCustom=function(b,S){},t.prototype.handlePayloadWithCustom=function(b,S){null!==S&&(b.payload=S)},t.prototype.matchWithTest=function(b,S,J){return!0===b.test(S)?S.substring(J,b.lastIndex):null},t.prototype.matchWithExec=function(b,S){var J=b.exec(S);return null!==J?J[0]:null},t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",t.NA=/NOT_APPLICABLE/,t}();S.Lexer=Ee},1480:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.canMatchCharCode=S.firstCharOptimizedIndices=S.getOptimizedStartCodesIndices=S.failedOptimizationPrefixMsg=void 0;var ne=J(4844),ie=re(J(6152)),oe=re(J(9794)),se=re(J(9756)),ae=re(J(5281)),ue=re(J(8346)),ce=re(J(1886)),le=J(7146),pe=J(3067),fe=J(6178),de="Complement Sets are not supported for first char optimization";function m(b,S,J){switch(b.type){case"Disjunction":for(var ee=0;ee<b.value.length;ee++)m(b.value[ee],S,J);break;case"Alternative":var te=b.value;for(ee=0;ee<te.length;ee++){var re=te[ee];switch(re.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var ne=re;switch(ne.type){case"Character":T(ne.value,S,J);break;case"Set":if(!0===ne.complement)throw Error(de);(0,se.default)(ne.value,(function(b){if("number"==typeof b)T(b,S,J);else{var ee=b;if(!0===J)for(var te=ee.from;te<=ee.to;te++)T(te,S,J);else{for(te=ee.from;te<=ee.to&&te<fe.minOptimizationVal;te++)T(te,S,J);if(ee.to>=fe.minOptimizationVal)for(var re=ee.from>=fe.minOptimizationVal?ee.from:fe.minOptimizationVal,ne=ee.to,ie=(0,fe.charCodeToOptimizedIndex)(re),oe=(0,fe.charCodeToOptimizedIndex)(ne),se=ie;se<=oe;se++)S[se]=se}}}));break;case"Group":m(ne.value,S,J);break;default:throw Error("Non Exhaustive Match")}var ie=void 0!==ne.quantifier&&0===ne.quantifier.atLeast;if("Group"===ne.type&&!1===_(ne)||"Group"!==ne.type&&!1===ie)break}break;default:throw Error("non exhaustive match!")}return(0,ue.default)(S)}function T(b,S,J){var ee=(0,fe.charCodeToOptimizedIndex)(b);S[ee]=ee,!0===J&&function(b,S){var J=String.fromCharCode(b),ee=J.toUpperCase();if(ee!==J)S[te=(0,fe.charCodeToOptimizedIndex)(ee.charCodeAt(0))]=te;else{var te,re=J.toLowerCase();re!==J&&(S[te=(0,fe.charCodeToOptimizedIndex)(re.charCodeAt(0))]=te)}}(b,S)}function E(b,S){return(0,ae.default)(b.value,(function(b){if("number"==typeof b)return(0,ce.default)(S,b);var J=b;return void 0!==(0,ae.default)(S,(function(b){return J.from<=b&&b<=J.to}))}))}function _(b){var S=b.quantifier;return!(!S||0!==S.atLeast)||!!b.value&&((0,ie.default)(b.value)?(0,oe.default)(b.value,_):_(b.value))}S.failedOptimizationPrefixMsg='Unable to use "first char" lexer optimizations:\n',S.getOptimizedStartCodesIndices=function(b,J){void 0===J&&(J=!1);try{var ee=(0,pe.getRegExpAst)(b);return m(ee.value,{},ee.flags.ignoreCase)}catch(ee){if(ee.message===de)J&&(0,le.PRINT_WARNING)("".concat(S.failedOptimizationPrefixMsg)+"\tUnable to optimize: < ".concat(b.toString()," >\n")+"\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var te="";J&&(te="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),(0,le.PRINT_ERROR)("".concat(S.failedOptimizationPrefixMsg,"\n")+"\tFailed parsing: < ".concat(b.toString()," >\n")+"\tUsing the regexp-to-ast library version: ".concat(ne.VERSION,"\n")+"\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+te)}}return[]},S.firstCharOptimizedIndices=m;var he=function(b){function e(S){var J=b.call(this)||this;return J.targetCharCodes=S,J.found=!1,J}return te(e,b),e.prototype.visitChildren=function(S){if(!0!==this.found){switch(S.type){case"Lookahead":return void this.visitLookahead(S);case"NegativeLookahead":return void this.visitNegativeLookahead(S)}b.prototype.visitChildren.call(this,S)}},e.prototype.visitCharacter=function(b){(0,ce.default)(this.targetCharCodes,b.value)&&(this.found=!0)},e.prototype.visitSet=function(b){b.complement?void 0===E(b,this.targetCharCodes)&&(this.found=!0):void 0!==E(b,this.targetCharCodes)&&(this.found=!0)},e}(ne.BaseRegExpVisitor);S.canMatchCharCode=function(b,S){if(S instanceof RegExp){var J=(0,pe.getRegExpAst)(S),ee=new he(b);return ee.visit(J),ee.found}return void 0!==(0,ae.default)(S,(function(S){return(0,ce.default)(b,S.charCodeAt(0))}))}},3067:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.clearRegExpParserCache=S.getRegExpAst=void 0;var ee=J(4844),te={},re=new ee.RegExpParser;S.getRegExpAst=function(b){var S=b.toString();if(te.hasOwnProperty(S))return te[S];var J=re.pattern(S);return te[S]=J,J},S.clearRegExpParserCache=function(){te={}}},1201:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.isTokenType=S.hasExtendingTokensTypesMapProperty=S.hasExtendingTokensTypesProperty=S.hasCategoriesProperty=S.hasShortKeyProperty=S.singleAssignCategoriesToksMap=S.assignCategoriesMapProp=S.assignCategoriesTokensProp=S.assignTokenDefaultProps=S.expandCategories=S.augmentTokenTypes=S.tokenIdxToClass=S.tokenShortNameIdx=S.tokenStructuredMatcherNoCategories=S.tokenStructuredMatcher=void 0;var te=ee(J(5455)),re=ee(J(417)),ne=ee(J(6152)),ie=ee(J(5676)),oe=ee(J(7335)),se=ee(J(6760)),ae=ee(J(9756)),ue=ee(J(3352)),ce=ee(J(1886)),le=ee(J(4004));function h(b){for(var S=(0,le.default)(b),J=b,ee=!0;ee;){J=(0,re.default)((0,ie.default)((0,se.default)(J,(function(b){return b.CATEGORIES}))));var ne=(0,oe.default)(J,S);S=S.concat(ne),(0,te.default)(ne)?ee=!1:J=ne}return S}function v(b){(0,ae.default)(b,(function(b){E(b)||(S.tokenIdxToClass[S.tokenShortNameIdx]=b,b.tokenTypeIdx=S.tokenShortNameIdx++),_(b)&&!(0,ne.default)(b.CATEGORIES)&&(b.CATEGORIES=[b.CATEGORIES]),_(b)||(b.CATEGORIES=[]),g(b)||(b.categoryMatches=[]),O(b)||(b.categoryMatchesMap={})}))}function y(b){(0,ae.default)(b,(function(b){b.categoryMatches=[],(0,ae.default)(b.categoryMatchesMap,(function(J,ee){b.categoryMatches.push(S.tokenIdxToClass[ee].tokenTypeIdx)}))}))}function m(b){(0,ae.default)(b,(function(b){T([],b)}))}function T(b,S){(0,ae.default)(b,(function(b){S.categoryMatchesMap[b.tokenTypeIdx]=!0})),(0,ae.default)(S.CATEGORIES,(function(J){var ee=b.concat(S);(0,ce.default)(ee,J)||T(ee,J)}))}function E(b){return(0,ue.default)(b,"tokenTypeIdx")}function _(b){return(0,ue.default)(b,"CATEGORIES")}function g(b){return(0,ue.default)(b,"categoryMatches")}function O(b){return(0,ue.default)(b,"categoryMatchesMap")}S.tokenStructuredMatcher=function(b,S){var J=b.tokenTypeIdx;return J===S.tokenTypeIdx||!0===S.isParent&&!0===S.categoryMatchesMap[J]},S.tokenStructuredMatcherNoCategories=function(b,S){return b.tokenTypeIdx===S.tokenTypeIdx},S.tokenShortNameIdx=1,S.tokenIdxToClass={},S.augmentTokenTypes=function(b){var S=h(b);v(S),m(S),y(S),(0,ae.default)(S,(function(b){b.isParent=b.categoryMatches.length>0}))},S.expandCategories=h,S.assignTokenDefaultProps=v,S.assignCategoriesTokensProp=y,S.assignCategoriesMapProp=m,S.singleAssignCategoriesToksMap=T,S.hasShortKeyProperty=E,S.hasCategoriesProperty=_,S.hasExtendingTokensTypesProperty=g,S.hasExtendingTokensTypesMapProperty=O,S.isTokenType=function(b){return(0,ue.default)(b,"tokenTypeIdx")}},6736:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.tokenMatcher=S.createTokenInstance=S.EOF=S.createToken=S.hasTokenLabel=S.tokenName=S.tokenLabel=void 0;var te=ee(J(5505)),re=ee(J(3352)),ne=ee(J(4336)),ie=J(9027),oe=J(1201);function c(b){return(0,te.default)(b.LABEL)&&""!==b.LABEL}S.tokenLabel=function(b){return c(b)?b.LABEL:b.name},S.tokenName=function(b){return b.name},S.hasTokenLabel=c;function l(b){return function(b){var S=b.pattern,J={};if(J.name=b.name,(0,ne.default)(S)||(J.PATTERN=S),(0,re.default)(b,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,re.default)(b,"categories")&&(J.CATEGORIES=b.categories),(0,oe.augmentTokenTypes)([J]),(0,re.default)(b,"label")&&(J.LABEL=b.label),(0,re.default)(b,"group")&&(J.GROUP=b.group),(0,re.default)(b,"pop_mode")&&(J.POP_MODE=b.pop_mode),(0,re.default)(b,"push_mode")&&(J.PUSH_MODE=b.push_mode),(0,re.default)(b,"longer_alt")&&(J.LONGER_ALT=b.longer_alt),(0,re.default)(b,"line_breaks")&&(J.LINE_BREAKS=b.line_breaks),(0,re.default)(b,"start_chars_hint")&&(J.START_CHARS_HINT=b.start_chars_hint),J}(b)}S.createToken=l,S.EOF=l({name:"EOF",pattern:ie.Lexer.NA}),(0,oe.augmentTokenTypes)([S.EOF]),S.createTokenInstance=function(b,S,J,ee,te,re,ne,ie){return{image:S,startOffset:J,endOffset:ee,startLine:te,endLine:re,startColumn:ne,endColumn:ie,tokenTypeIdx:b.tokenTypeIdx,tokenType:b}},S.tokenMatcher=function(b,S){return(0,oe.tokenStructuredMatcher)(b,S)}},7979:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.VERSION=void 0,S.VERSION="10.1.2"},8962:function(b,S,J){"use strict";var ee=this&&this.__assign||function(){return(ee=Object.assign||function(b){for(var S,J=1,ee=arguments.length;J<ee;J++)for(var te in S=arguments[J])Object.prototype.hasOwnProperty.call(S,te)&&(b[te]=S[te]);return b}).apply(this,arguments)};Object.defineProperty(S,"__esModule",{value:!0}),S.generateCstDts=void 0;var te=J(7842),re=J(1871),ne={includeVisitorInterface:!0,visitorInterfaceName:"ICstNodeVisitor"};S.generateCstDts=function(b,S){var J=ee(ee({},ne),S),ie=(0,te.buildModel)(b);return(0,re.genDts)(ie,J)}},1871:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.genDts=void 0;var te=ee(J(5676)),re=ee(J(6152)),ne=ee(J(6760)),ie=ee(J(8215)),oe=ee(J(5652)),se=ee(J(3779));function l(b){return"token"===b.kind?"IToken":f(b.name)}function f(b){return(0,se.default)(b)+"CstNode"}function p(b){return(0,se.default)(b)+"CstChildren"}S.genDts=function(b,S){var J,ee,se=[];return se=(se=se.concat('import type { CstNode, ICstVisitor, IToken } from "chevrotain";')).concat((0,te.default)((0,ne.default)(b,(function(b){return function(b){return[function(b){var S=f(b.name),J=p(b.name);return"export interface ".concat(S,' extends CstNode {\n name: "').concat(b.name,'";\n children: ').concat(J,";\n}")}(b),function(b){var S=p(b.name);return"export type ".concat(S," = {\n ").concat((0,ne.default)(b.properties,(function(b){return function(b){var S=function(b){if((0,re.default)(b)){var S=(0,oe.default)((0,ne.default)(b,(function(b){return l(b)})));return"("+(0,ie.default)(S,(function(b,S){return b+" | "+S}))+")"}return l(b)}(b.type);return"".concat(b.name).concat(b.optional?"?":"",": ").concat(S,"[];")}(b)})).join("\n "),"\n};")}(b)]}(b)})))),S.includeVisitorInterface&&(se=se.concat((J=S.visitorInterfaceName,ee=b,"export interface ".concat(J,"<IN, OUT> extends ICstVisitor<IN, OUT> {\n ").concat((0,ne.default)(ee,(function(b){return function(b){var S=p(b.name);return"".concat(b.name,"(children: ").concat(S,", param?: IN): OUT;")}(b)})).join("\n "),"\n}")))),se.join("\n\n")+"\n"}},7842:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildModel=void 0;var ne=J(7729),ie=re(J(6760)),oe=re(J(5676)),se=re(J(8346)),ae=re(J(1525)),ue=re(J(3440)),ce=re(J(19));S.buildModel=function(b){var S=new le,J=(0,se.default)(b);return(0,ie.default)(J,(function(b){return S.visitRule(b)}))};var le=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.visitRule=function(b){var S=this.visitEach(b.definition),J=(0,ue.default)(S,(function(b){return b.propertyName})),ee=(0,ie.default)(J,(function(b,S){var J=!(0,ae.default)(b,(function(b){return!b.canBeNull})),ee=b[0].type;return b.length>1&&(ee=(0,ie.default)(b,(function(b){return b.type}))),{name:S,type:ee,optional:J}}));return{name:b.name,properties:ee}},e.prototype.visitAlternative=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitOption=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetition=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetitionMandatory=function(b){return this.visitEach(b.definition)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){return this.visitEach(b.definition).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitRepetitionWithSeparator=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0}).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitAlternation=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitTerminal=function(b){return[{propertyName:b.label||b.terminalType.name,canBeNull:!1,type:h(b)}]},e.prototype.visitNonTerminal=function(b){return[{propertyName:b.label||b.nonTerminalName,canBeNull:!1,type:h(b)}]},e.prototype.visitEachAndOverrideWith=function(b,S){return(0,ie.default)(this.visitEach(b),(function(b){return(0,ce.default)({},b,S)}))},e.prototype.visitEach=function(b){var S=this;return(0,oe.default)((0,ie.default)(b,(function(b){return S.visit(b)})))},e}(ne.GAstVisitor);function h(b){return b instanceof ne.NonTerminal?{kind:"rule",name:b.referencedRule.name}:{kind:"token"}}},7729:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isSequenceProd=S.isBranchingProd=S.isOptionalProd=S.getProductionDslName=S.GAstVisitor=S.serializeProduction=S.serializeGrammar=S.Alternative=S.Alternation=S.RepetitionWithSeparator=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Repetition=S.Option=S.NonTerminal=S.Terminal=S.Rule=void 0;var ee=J(5700);Object.defineProperty(S,"Rule",{enumerable:!0,get:function(){return ee.Rule}}),Object.defineProperty(S,"Terminal",{enumerable:!0,get:function(){return ee.Terminal}}),Object.defineProperty(S,"NonTerminal",{enumerable:!0,get:function(){return ee.NonTerminal}}),Object.defineProperty(S,"Option",{enumerable:!0,get:function(){return ee.Option}}),Object.defineProperty(S,"Repetition",{enumerable:!0,get:function(){return ee.Repetition}}),Object.defineProperty(S,"RepetitionMandatory",{enumerable:!0,get:function(){return ee.RepetitionMandatory}}),Object.defineProperty(S,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionMandatoryWithSeparator}}),Object.defineProperty(S,"RepetitionWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionWithSeparator}}),Object.defineProperty(S,"Alternation",{enumerable:!0,get:function(){return ee.Alternation}}),Object.defineProperty(S,"Alternative",{enumerable:!0,get:function(){return ee.Alternative}}),Object.defineProperty(S,"serializeGrammar",{enumerable:!0,get:function(){return ee.serializeGrammar}}),Object.defineProperty(S,"serializeProduction",{enumerable:!0,get:function(){return ee.serializeProduction}});var te=J(7694);Object.defineProperty(S,"GAstVisitor",{enumerable:!0,get:function(){return te.GAstVisitor}});var re=J(2515);Object.defineProperty(S,"getProductionDslName",{enumerable:!0,get:function(){return re.getProductionDslName}}),Object.defineProperty(S,"isOptionalProd",{enumerable:!0,get:function(){return re.isOptionalProd}}),Object.defineProperty(S,"isBranchingProd",{enumerable:!0,get:function(){return re.isBranchingProd}}),Object.defineProperty(S,"isSequenceProd",{enumerable:!0,get:function(){return re.isSequenceProd}})},2515:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.getProductionDslName=S.isBranchingProd=S.isOptionalProd=S.isSequenceProd=void 0;var te=ee(J(1525)),re=ee(J(9794)),ne=ee(J(1886)),ie=J(5700);S.isSequenceProd=function(b){return b instanceof ie.Alternative||b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionMandatory||b instanceof ie.RepetitionMandatoryWithSeparator||b instanceof ie.RepetitionWithSeparator||b instanceof ie.Terminal||b instanceof ie.Rule},S.isOptionalProd=function t(b,S){return void 0===S&&(S=[]),!!(b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionWithSeparator)||(b instanceof ie.Alternation?(0,te.default)(b.definition,(function(b){return t(b,S)})):!(b instanceof ie.NonTerminal&&(0,ne.default)(S,b))&&b instanceof ie.AbstractProduction&&(b instanceof ie.NonTerminal&&S.push(b),(0,re.default)(b.definition,(function(b){return t(b,S)}))))},S.isBranchingProd=function(b){return b instanceof ie.Alternation},S.getProductionDslName=function(b){if(b instanceof ie.NonTerminal)return"SUBRULE";if(b instanceof ie.Option)return"OPTION";if(b instanceof ie.Alternation)return"OR";if(b instanceof ie.RepetitionMandatory)return"AT_LEAST_ONE";if(b instanceof ie.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(b instanceof ie.RepetitionWithSeparator)return"MANY_SEP";if(b instanceof ie.Repetition)return"MANY";if(b instanceof ie.Terminal)return"CONSUME";throw Error("non exhaustive match")}},5700:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.serializeProduction=S.serializeGrammar=S.Terminal=S.Alternation=S.RepetitionWithSeparator=S.Repetition=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Option=S.Alternative=S.Rule=S.NonTerminal=S.AbstractProduction=void 0;var ne=re(J(6760)),ie=re(J(9756)),oe=re(J(5505)),se=re(J(859)),ae=re(J(2208)),ue=re(J(19));var ce=function(){function t(b){this._definition=b}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),t.prototype.accept=function(b){b.visit(this),(0,ie.default)(this.definition,(function(S){S.accept(b)}))},t}();S.AbstractProduction=ce;var le=function(b){function e(S){var J=b.call(this,[])||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(b){},enumerable:!1,configurable:!0}),e.prototype.accept=function(b){b.visit(this)},e}(ce);S.NonTerminal=le;var pe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.orgText="",(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Rule=pe;var fe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.ignoreAmbiguities=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Alternative=fe;var de=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Option=de;var he=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatory=he;var me=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatoryWithSeparator=me;var ge=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Repetition=ge;var ye=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionWithSeparator=ye;var ve=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,J.ignoreAmbiguities=!1,J.hasPredicates=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),e}(ce);S.Alternation=ve;var Te=function(){function t(b){this.idx=1,(0,ue.default)(this,(0,ae.default)(b,(function(b){return void 0!==b})))}return t.prototype.accept=function(b){b.visit(this)},t}();function R(b){function e(b){return(0,ne.default)(b,R)}if(b instanceof le){var S={type:"NonTerminal",name:b.nonTerminalName,idx:b.idx};return(0,oe.default)(b.label)&&(S.label=b.label),S}if(b instanceof fe)return{type:"Alternative",definition:e(b.definition)};if(b instanceof de)return{type:"Option",idx:b.idx,definition:e(b.definition)};if(b instanceof he)return{type:"RepetitionMandatory",idx:b.idx,definition:e(b.definition)};if(b instanceof me)return{type:"RepetitionMandatoryWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ye)return{type:"RepetitionWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ge)return{type:"Repetition",idx:b.idx,definition:e(b.definition)};if(b instanceof ve)return{type:"Alternation",idx:b.idx,definition:e(b.definition)};if(b instanceof Te){var J={type:"Terminal",name:b.terminalType.name,label:(te=b.terminalType,re=te,(0,oe.default)(re.LABEL)&&""!==re.LABEL?te.LABEL:te.name),idx:b.idx};(0,oe.default)(b.label)&&(J.terminalLabel=b.label);var ee=b.terminalType.PATTERN;return b.terminalType.PATTERN&&(J.pattern=(0,se.default)(ee)?ee.source:ee),J}var te,re;if(b instanceof pe)return{type:"Rule",name:b.name,orgText:b.orgText,definition:e(b.definition)};throw Error("non exhaustive match")}S.Terminal=Te,S.serializeGrammar=function(b){return(0,ne.default)(b,R)},S.serializeProduction=R},7694:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.GAstVisitor=void 0;var ee=J(5700),te=function(){function t(){}return t.prototype.visit=function(b){var S=b;switch(S.constructor){case ee.NonTerminal:return this.visitNonTerminal(S);case ee.Alternative:return this.visitAlternative(S);case ee.Option:return this.visitOption(S);case ee.RepetitionMandatory:return this.visitRepetitionMandatory(S);case ee.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(S);case ee.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(S);case ee.Repetition:return this.visitRepetition(S);case ee.Alternation:return this.visitAlternation(S);case ee.Terminal:return this.visitTerminal(S);case ee.Rule:return this.visitRule(S);default:throw Error("non exhaustive match")}},t.prototype.visitNonTerminal=function(b){},t.prototype.visitAlternative=function(b){},t.prototype.visitOption=function(b){},t.prototype.visitRepetition=function(b){},t.prototype.visitRepetitionMandatory=function(b){},t.prototype.visitRepetitionMandatoryWithSeparator=function(b){},t.prototype.visitRepetitionWithSeparator=function(b){},t.prototype.visitAlternation=function(b){},t.prototype.visitTerminal=function(b){},t.prototype.visitRule=function(b){},t}();S.GAstVisitor=te},7146:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=S.timer=S.PRINT_ERROR=S.PRINT_WARNING=void 0;var ee=J(6910);Object.defineProperty(S,"PRINT_WARNING",{enumerable:!0,get:function(){return ee.PRINT_WARNING}}),Object.defineProperty(S,"PRINT_ERROR",{enumerable:!0,get:function(){return ee.PRINT_ERROR}});var te=J(150);Object.defineProperty(S,"timer",{enumerable:!0,get:function(){return te.timer}});var re=J(4470);Object.defineProperty(S,"toFastProperties",{enumerable:!0,get:function(){return re.toFastProperties}})},6910:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PRINT_WARNING=S.PRINT_ERROR=void 0,S.PRINT_ERROR=function(b){console&&console.error&&console.error("Error: ".concat(b))},S.PRINT_WARNING=function(b){console&&console.warn&&console.warn("Warning: ".concat(b))}},150:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.timer=void 0,S.timer=function(b){var S=(new Date).getTime(),J=b();return{time:(new Date).getTime()-S,value:J}}},4470:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=void 0,S.toFastProperties=function(b){function e(){}e.prototype=b;var S=new e;function n(){return typeof S.bar}return n(),n(),b}}},S={};function r(J){var ee=S[J];if(void 0!==ee)return ee.exports;var te=S[J]={id:J,loaded:!1,exports:{}};return b[J].call(te.exports,te,te.exports,r),te.loaded=!0,te.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(b){if("object"==typeof window)return window}}(),r.nmd=b=>(b.paths=[],b.children||(b.children=[]),b);var J={};return(()=>{"use strict";var b=J;Object.defineProperty(b,"__esModule",{value:!0}),b.Parser=b.createSyntaxDiagramsCode=b.clearCache=b.generateCstDts=b.GAstVisitor=b.serializeProduction=b.serializeGrammar=b.Terminal=b.Rule=b.RepetitionWithSeparator=b.RepetitionMandatoryWithSeparator=b.RepetitionMandatory=b.Repetition=b.Option=b.NonTerminal=b.Alternative=b.Alternation=b.defaultLexerErrorProvider=b.NoViableAltException=b.NotAllInputParsedException=b.MismatchedTokenException=b.isRecognitionException=b.EarlyExitException=b.defaultParserErrorProvider=b.tokenName=b.tokenMatcher=b.tokenLabel=b.EOF=b.createTokenInstance=b.createToken=b.LexerDefinitionErrorType=b.Lexer=b.EMPTY_ALT=b.ParserDefinitionErrorType=b.EmbeddedActionsParser=b.CstParser=b.VERSION=void 0;var S=r(7979);Object.defineProperty(b,"VERSION",{enumerable:!0,get:function(){return S.VERSION}});var ee=r(2941);Object.defineProperty(b,"CstParser",{enumerable:!0,get:function(){return ee.CstParser}}),Object.defineProperty(b,"EmbeddedActionsParser",{enumerable:!0,get:function(){return ee.EmbeddedActionsParser}}),Object.defineProperty(b,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return ee.ParserDefinitionErrorType}}),Object.defineProperty(b,"EMPTY_ALT",{enumerable:!0,get:function(){return ee.EMPTY_ALT}});var te=r(9027);Object.defineProperty(b,"Lexer",{enumerable:!0,get:function(){return te.Lexer}}),Object.defineProperty(b,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return te.LexerDefinitionErrorType}});var re=r(6736);Object.defineProperty(b,"createToken",{enumerable:!0,get:function(){return re.createToken}}),Object.defineProperty(b,"createTokenInstance",{enumerable:!0,get:function(){return re.createTokenInstance}}),Object.defineProperty(b,"EOF",{enumerable:!0,get:function(){return re.EOF}}),Object.defineProperty(b,"tokenLabel",{enumerable:!0,get:function(){return re.tokenLabel}}),Object.defineProperty(b,"tokenMatcher",{enumerable:!0,get:function(){return re.tokenMatcher}}),Object.defineProperty(b,"tokenName",{enumerable:!0,get:function(){return re.tokenName}});var ne=r(1007);Object.defineProperty(b,"defaultParserErrorProvider",{enumerable:!0,get:function(){return ne.defaultParserErrorProvider}});var ie=r(643);Object.defineProperty(b,"EarlyExitException",{enumerable:!0,get:function(){return ie.EarlyExitException}}),Object.defineProperty(b,"isRecognitionException",{enumerable:!0,get:function(){return ie.isRecognitionException}}),Object.defineProperty(b,"MismatchedTokenException",{enumerable:!0,get:function(){return ie.MismatchedTokenException}}),Object.defineProperty(b,"NotAllInputParsedException",{enumerable:!0,get:function(){return ie.NotAllInputParsedException}}),Object.defineProperty(b,"NoViableAltException",{enumerable:!0,get:function(){return ie.NoViableAltException}});var oe=r(495);Object.defineProperty(b,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return oe.defaultLexerErrorProvider}});var se=r(7729);Object.defineProperty(b,"Alternation",{enumerable:!0,get:function(){return se.Alternation}}),Object.defineProperty(b,"Alternative",{enumerable:!0,get:function(){return se.Alternative}}),Object.defineProperty(b,"NonTerminal",{enumerable:!0,get:function(){return se.NonTerminal}}),Object.defineProperty(b,"Option",{enumerable:!0,get:function(){return se.Option}}),Object.defineProperty(b,"Repetition",{enumerable:!0,get:function(){return se.Repetition}}),Object.defineProperty(b,"RepetitionMandatory",{enumerable:!0,get:function(){return se.RepetitionMandatory}}),Object.defineProperty(b,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return se.RepetitionMandatoryWithSeparator}}),Object.defineProperty(b,"RepetitionWithSeparator",{enumerable:!0,get:function(){return se.RepetitionWithSeparator}}),Object.defineProperty(b,"Rule",{enumerable:!0,get:function(){return se.Rule}}),Object.defineProperty(b,"Terminal",{enumerable:!0,get:function(){return se.Terminal}});var ae=r(7729);Object.defineProperty(b,"serializeGrammar",{enumerable:!0,get:function(){return ae.serializeGrammar}}),Object.defineProperty(b,"serializeProduction",{enumerable:!0,get:function(){return ae.serializeProduction}}),Object.defineProperty(b,"GAstVisitor",{enumerable:!0,get:function(){return ae.GAstVisitor}});var ue=r(8962);Object.defineProperty(b,"generateCstDts",{enumerable:!0,get:function(){return ue.generateCstDts}}),b.clearCache=function(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")};var ce=r(5781);Object.defineProperty(b,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return ce.createSyntaxDiagramsCode}});b.Parser=function(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\nSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0")}})(),J})()}))},23836:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.MultipleLineComment=S.Comment=S.WhiteSpace=S.StringLiteral=S.QuotedString=S.DataLiteral=S.Colon=S.Separator=S.Terminator=S.ArrayEnd=S.ArrayStart=S.ObjectEnd=S.ObjectStart=void 0;const ee=J(41791);const te=J(17024);S.ObjectStart=(0,ee.createToken)({name:"OpenBracket",pattern:/{/});S.ObjectEnd=(0,ee.createToken)({name:"CloseBracket",pattern:/}/});S.ArrayStart=(0,ee.createToken)({name:"ArrayStart",pattern:/\(/});S.ArrayEnd=(0,ee.createToken)({name:"ArrayEnd",pattern:/\)/});S.Terminator=(0,ee.createToken)({name:"Terminator",pattern:/;/});S.Separator=(0,ee.createToken)({name:"Separator",pattern:/,/});S.Colon=(0,ee.createToken)({name:"Colon",pattern:/=/});function matchQuotedString(b,S){let J=b.charAt(S);if(J!==`'`&&J!==`"`){return null}const ee=new RegExp(`${J}(?:[^\\\\${J}]|\\\\(?:[bfnrtv${J}\\\\/]|u[0-9a-fA-F]{4}))*${J}`,"y");ee.lastIndex=S;const re=ee.exec(b);if(re!==null){const b=re[0];const S=(0,te.stripQuotes)(b.substring(1,b.length-1));re.payload=S}return re}const re=/<[0-9a-fA-F\s]+>/y;function matchData(b,S){if(b.charAt(S)!==`<`){return null}re.lastIndex=S;const J=re.exec(b);if(J!==null){const b=J[0];const S=b.substring(1,b.length-2).trim();J.payload=Buffer.from(S)}return J}S.DataLiteral=(0,ee.createToken)({name:"DataLiteral",pattern:{exec:matchData},line_breaks:false,start_chars_hint:[`<`]});S.QuotedString=(0,ee.createToken)({name:"QuotedString",pattern:{exec:matchQuotedString},line_breaks:false,start_chars_hint:[`"`,`'`]});S.StringLiteral=(0,ee.createToken)({name:"StringLiteral",pattern:/[\w_$/:.-]+/,line_breaks:false});S.WhiteSpace=(0,ee.createToken)({name:"WhiteSpace",pattern:/[ \t\n\r]+/u,group:ee.Lexer.SKIPPED});const ne=(0,ee.createToken)({name:"AbsComment",pattern:ee.Lexer.NA});S.Comment=(0,ee.createToken)({name:"Comment",pattern:/\/\/.*/,categories:ne,group:ee.Lexer.SKIPPED});S.MultipleLineComment=(0,ee.createToken)({name:"MultipleLineComment",pattern:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//,categories:ne,line_breaks:true,group:ee.Lexer.SKIPPED});S.ObjectStart.LABEL="'{'";S.ObjectEnd.LABEL="'}'";S.ArrayStart.LABEL="'('";S.ArrayEnd.LABEL="')'";S.Terminator.LABEL="';'";S.Colon.LABEL="'='";S.Separator.LABEL="','";S["default"]=[S.WhiteSpace,S.Comment,S.MultipleLineComment,S.ObjectStart,S.ObjectEnd,S.ArrayStart,S.ArrayEnd,S.Terminator,S.Separator,S.Colon,S.DataLiteral,S.QuotedString,S.StringLiteral]},44239:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.lexer=S.tokens=S.tokenVocabulary=void 0;const te=J(41791);const re=ee(J(23836));S.tokenVocabulary={};S.tokens=[...re.default];S.lexer=new te.Lexer(S.tokens);S.tokens.forEach((b=>{S.tokenVocabulary[b.name]=b}))},62902:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.parse=S.htmlText=S.serializedGrammar=S.BaseVisitor=S.PbxprojParser=S.CommentCstParser=void 0;const ee=J(41791);const te=J(23836);const re=J(44239);class CommentCstParser extends ee.CstParser{LA(b){while((0,ee.tokenMatcher)(super.LA(b),te.Comment)){super.consumeToken()}return super.LA(b)}cstPostTerminal(b,S){super.cstPostTerminal(b,S);let J=-1;let re=super.LA(J);while((0,ee.tokenMatcher)(re,te.Comment)){super.cstPostTerminal(te.Comment.name,re);J--;re=super.LA(J)}}}S.CommentCstParser=CommentCstParser;class PbxprojParser extends CommentCstParser{constructor(){super(re.tokens,{recoveryEnabled:false});this.head=this.RULE("head",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.SUBRULE(this.object)}])}));this.array=this.RULE("array",(()=>{this.CONSUME(te.ArrayStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.value);this.OPTION2((()=>this.CONSUME(te.Separator)))}))}));this.CONSUME(te.ArrayEnd)}));this.object=this.RULE("object",(()=>{this.CONSUME(te.ObjectStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.objectItem)}))}));this.CONSUME(te.ObjectEnd)}));this.objectItem=this.RULE("objectItem",(()=>{this.SUBRULE(this.identifier);this.CONSUME(te.Colon);this.SUBRULE(this.value);this.CONSUME(te.Terminator)}));this.identifier=this.RULE("identifier",(()=>{this.OR([{ALT:()=>this.CONSUME(te.QuotedString)},{ALT:()=>this.CONSUME(te.StringLiteral)}])}));this.value=this.RULE("value",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.object)},{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.CONSUME(te.DataLiteral)},{ALT:()=>this.SUBRULE(this.identifier)}])}));this.performSelfAnalysis()}}S.PbxprojParser=PbxprojParser;const ne=new PbxprojParser;S.BaseVisitor=ne.getBaseCstVisitorConstructorWithDefaults();S.serializedGrammar=ne.getSerializedGastProductions();S.htmlText=(0,ee.createSyntaxDiagramsCode)(S.serializedGrammar);function parse(b){const S=re.lexer.tokenize(b);if(S.errors.length){throw new Error(`Parsing errors: ${S.errors[0].message}`)}ne.input=S.tokens;const J=ne.head();if(ne.errors.length){throw new Error(`Parsing errors: ${ne.errors[0].message}`)}return J}S.parse=parse},61202:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isPBXFileReference=S.isPBXBuildFile=S.createReferenceList=void 0;function createReferenceList(b){const S=false;const J=b?.objects??{};const ee={};function getXCConfigurationListComment(b){for(const[S,ee]of Object.entries(J)){if(ee.buildConfigurationList===b){let b=ee.name??ee.path??ee.productName;if(!b){b=J[ee.targets?.[0]]?.name;if(!b){const ee=Object.values(J).find((b=>b.isa==="PBXContainerItemProxy"&&b.containerPortal===S));b=ee?.remoteInfo}}return`Build configuration list for ${ee.isa} "${b}"`}}return`Build configuration list for [unknown]`}function getBuildPhaseNameContainingFile(b){const S=Object.values(J).find((S=>S.files?.includes(b)));return S?getBuildPhaseName(S):null}function getPBXBuildFileComment(b,S){const ee=getBuildPhaseNameContainingFile(b)??"[missing build phase]";const te=getCommentForObject(S.fileRef,J[S.fileRef]);return`${te} in ${ee}`}function getCommentForObject(b,S){if(!S?.isa){return null}if(b in ee){return ee[b]}if(isPBXBuildFile(S)){ee[b]=getPBXBuildFileComment(b,S)}else if(isXCConfigurationList(S)){ee[b]=getXCConfigurationListComment(b)}else if(isPBXProject(S)){ee[b]="Project object"}else if(S.isa?.endsWith("BuildPhase")){ee[b]=getBuildPhaseName(S)??""}else{ee[b]=S.name??S.path??S.isa??null}return ee[b]??null}Object.entries(J).forEach((([J,ee])=>{if(J===b.rootObject){return}if(!getCommentForObject(J,ee)){if(S)throw new Error("Failed to find comment reference for ID: "+J+", isa: "+ee.isa)}}));return ee}S.createReferenceList=createReferenceList;function isPBXProject(b){return b?.isa==="PBXProject"}function isPBXBuildFile(b){return b?.isa==="PBXBuildFile"}S.isPBXBuildFile=isPBXBuildFile;function isPBXFileReference(b){return b?.isa==="PBXFileReference"}S.isPBXFileReference=isPBXFileReference;function isXCConfigurationList(b){return b?.isa==="XCConfigurationList"}function getBuildPhaseName(b){return b.name??getDefaultBuildPhaseName(b.isa)}function getDefaultBuildPhaseName(b){return b.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}},99348:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ISA=void 0;var J;(function(b){b["PBXBuildFile"]="PBXBuildFile";b["PBXBuildPhase"]="PBXBuildPhase";b["PBXAppleScriptBuildPhase"]="PBXAppleScriptBuildPhase";b["PBXCopyFilesBuildPhase"]="PBXCopyFilesBuildPhase";b["PBXFrameworksBuildPhase"]="PBXFrameworksBuildPhase";b["PBXHeadersBuildPhase"]="PBXHeadersBuildPhase";b["PBXResourcesBuildPhase"]="PBXResourcesBuildPhase";b["PBXShellScriptBuildPhase"]="PBXShellScriptBuildPhase";b["PBXSourcesBuildPhase"]="PBXSourcesBuildPhase";b["PBXContainerItemProxy"]="PBXContainerItemProxy";b["PBXFileElement"]="PBXFileElement";b["PBXFileReference"]="PBXFileReference";b["PBXGroup"]="PBXGroup";b["PBXVariantGroup"]="PBXVariantGroup";b["PBXTarget"]="PBXTarget";b["PBXAggregateTarget"]="PBXAggregateTarget";b["PBXLegacyTarget"]="PBXLegacyTarget";b["PBXNativeTarget"]="PBXNativeTarget";b["PBXProject"]="PBXProject";b["PBXTargetDependency"]="PBXTargetDependency";b["XCBuildConfiguration"]="XCBuildConfiguration";b["XCConfigurationList"]="XCConfigurationList"})(J=S.ISA||(S.ISA={}))},87964:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.NEXT_STEP_MAPPING=void 0;S.NEXT_STEP_MAPPING=Object.freeze({[128]:160,[129]:192,[130]:193,[131]:194,[132]:195,[133]:196,[134]:197,[135]:199,[136]:200,[137]:201,[138]:202,[139]:203,[140]:204,[141]:205,[142]:206,[143]:207,[144]:208,[145]:209,[146]:210,[147]:211,[148]:212,[149]:213,[150]:214,[151]:217,[152]:218,[153]:219,[154]:220,[155]:221,[156]:222,[157]:181,[158]:215,[159]:247,[160]:169,[161]:161,[162]:162,[163]:163,[164]:8260,[165]:165,[166]:402,[167]:167,[168]:164,[169]:8217,[170]:8220,[171]:171,[172]:8249,[173]:8250,[174]:64257,[175]:64258,[176]:174,[177]:8211,[178]:8224,[179]:8225,[180]:183,[181]:166,[182]:182,[183]:8226,[184]:8218,[185]:8222,[186]:8221,[187]:187,[188]:8230,[189]:8240,[190]:172,[191]:191,[192]:185,[193]:715,[194]:180,[195]:710,[196]:732,[197]:175,[198]:728,[199]:729,[200]:168,[201]:178,[202]:730,[203]:184,[204]:179,[205]:733,[206]:731,[207]:711,[208]:8212,[209]:177,[210]:188,[211]:189,[212]:190,[213]:224,[214]:225,[215]:226,[216]:227,[217]:228,[218]:229,[219]:231,[220]:232,[221]:233,[222]:234,[223]:235,[224]:236,[225]:198,[226]:237,[227]:170,[228]:238,[229]:239,[230]:240,[231]:241,[232]:321,[233]:216,[234]:338,[235]:186,[236]:242,[237]:243,[238]:244,[239]:245,[240]:246,[241]:230,[242]:249,[243]:250,[244]:251,[245]:305,[246]:252,[247]:253,[248]:322,[249]:248,[250]:339,[251]:223,[252]:254,[253]:255,[254]:65533,[255]:65533})},15409:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.QUOTE_REGEXP=S.UNQUOTE_MAP=S.QUOTE_MAP=void 0;S.QUOTE_MAP=Object.freeze({[`a`]:"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':'\\"',"\\":"\\\\","\0":"\\U0000","":"\\U0001","":"\\U0002","":"\\U0003","":"\\U0004","":"\\U0005","":"\\U0006","":"\\U000e","":"\\U000f","":"\\U0010","":"\\U0011","":"\\U0012","":"\\U0013","":"\\U0014","":"\\U0015","":"\\U0016","":"\\U0017","":"\\U0018","":"\\U0019","":"\\U001a",[`e`]:"\\U001b","":"\\U001c","":"\\U001d","":"\\U001e","":"\\U001f"});S.UNQUOTE_MAP=Object.freeze({a:`a`,b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","\n":"\n",'"':`"`,"'":`'`,"\\":"\\"});S.QUOTE_REGEXP=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g},17024:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.stripQuotes=S.addQuotes=void 0;const ee=J(87964);const te=J(15409);function addQuotes(b){return b.replace(te.QUOTE_REGEXP,(b=>te.QUOTE_MAP[b]))}S.addQuotes=addQuotes;const re="01234567".split("");const ne=[...re,"a","b","f","n","r","t","v",`"`,"\n","U","\\"];function stripQuotes(b){let S="";let J=b;let ie=b.length;let oe=0;while(oe<ie){let b=J[oe];if(b===`\\`){let ie=J[oe+1];if(ne.includes(ie)){oe++;if(te.UNQUOTE_MAP[ie]){S+=te.UNQUOTE_MAP[ie]}else if(ie==="U"){const b=oe+1;const ee=b+4;const te=J.slice(b,ee);for(const b in te.split("")){oe+=1;if(!isHexNumber(b)){throw new Error(`Unicode '\\U' escape sequence terminated without 4 following hex characters`)}S+=String.fromCharCode(parseInt(te,16))}}else if(re.includes(ie)){const b=J.slice(oe-1,3);if(/\\A[0-7]{3}\\z/.test(b)){let b=oe;let te=b+1;for(let S=0;S<3;S++){let ee=b+S;let ne=J[ee];if(re.includes(ne)){te+=1}}let ne=J.slice(b,te);let ie=parseInt(ne,8);if(ie>=128){ie=ee.NEXT_STEP_MAPPING[ie]}S+=String.fromCharCode(ie)}else{S+=ie}}else{throw new Error(`Failed to handle ${ie} which is in the list of possible escapes`)}}else{S+=b;oe++;S+=ie}}else{S+=b}oe++}return S}S.stripQuotes=stripQuotes;function isHexNumber(b){return/^[0-9a-fA-F]$/.test(b)}},62540:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ContextVisitor=void 0;const ee=J(62902);class ContextVisitor extends ee.BaseVisitor{constructor(){super();this.context={};this.validateVisitor()}head(b){if(b.array){this.context=this.visit(b.array)}else if(b.object){this.context=this.visit(b.object)}}object(b){return b.objectItem?.reduce(((b,S)=>({...b,...this.visit(S)})),{})??{}}array(b){return b.value?.map((b=>this.visit(b)))??[]}objectItem(b){return{[this.visit(b.identifier)]:this.visit(b.value)}}identifier(b){if(b.QuotedString){return b.QuotedString[0].payload??b.QuotedString[0].image}else if(b.StringLiteral){return b.StringLiteral[0].payload??b.StringLiteral[0].image}throw new Error("unhandled: "+b)}value(b){if(b.identifier){return this.visit(b.identifier)}else if(b.DataLiteral){return b.DataLiteral[0].payload??b.DataLiteral[0].image}else if(b.object){return this.visit(b.object)}else if(b.array){return this.visit(b.array)}throw new Error("unhandled: "+b)}}S.ContextVisitor=ContextVisitor},9128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Writer=void 0;const ee=J(61202);const te=J(17024);let re="\n";try{re=J(22037).EOL}catch{}function isObject(b){return typeof b==="object"&&b!==null&&!(b instanceof Buffer)}function ensureQuotes(b){b=(0,te.addQuotes)(b);if(/^[\w_$/:.]+$/.test(b)){return b}return`"${b}"`}function formatData(b){return`<${b.toString()}>`}function getSortedObjects(b){const S={};Object.entries(b).forEach((([b,J])=>{if(!S[J.isa]){S[J.isa]=[]}S[J.isa].push([b,J])}));return Object.entries(S).sort()}class Writer{constructor(b,S={}){this.project=b;this.options=S;this.indent=0;this.contents="";this.comments={};this.comments=(0,ee.createReferenceList)(b);this.writeShebang();this.writeProject()}pad(b){const S=this.options.tab??"\t";return b>0?S+this.pad(b-1):""}getResults(){return this.contents}println(b){this.contents+=this.pad(this.indent);this.contents+=b;this.contents+=re}write(b){this.contents+=this.pad(this.indent);this.contents+=b}printAssignLn(b,S){return this.println(b+" = "+S+";")}flush(b){const S=this.indent;this.indent=0;this.write(b);this.indent=S}writeShebang(){const b=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${b}`)}formatId(b,S=this.comments[b]){if(S){return`${b} /* ${S} */`}return ensureQuotes(b)}writeProject(){this.println("{");if(this.project){this.indent++;this.writeObject(this.project,true);this.indent--}this.println("}")}writeObject(b,S){Object.entries(b).forEach((([b,J])=>{if(this.options.skipNullishValues&&J==null){return}else if(J instanceof Buffer){this.printAssignLn(ensureQuotes(b),formatData(J))}else if(Array.isArray(J)){this.writeArray(b,J)}else if(isObject(J)){if(!S&&!Object.keys(J).length){this.println(ensureQuotes(b)+" = {};");return}this.println(ensureQuotes(b)+" = {");this.indent++;if(S&&b==="objects"){this.writePbxObjects(J)}else{this.writeObject(J,S)}this.indent--;this.println("};")}else{this.printAssignLn(ensureQuotes(b),b==="remoteGlobalIDString"?ensureQuotes(J):this.formatId(J))}}))}writePbxObjects(b){getSortedObjects(b).forEach((([b,S])=>{this.flush(re);this.flush(`/* Begin ${b} section */`+re);S.forEach((([b,S])=>this.writeObjectInclusive(b,S)));this.flush(`/* End ${b} section */`+re)}))}writeArray(b,S){this.println(ensureQuotes(b)+" = (");this.indent++;S.forEach((b=>{if(b instanceof Buffer){this.println(formatData(b)+",")}else if(b==null){return}else if(isObject(b)){this.println("{");if(b){this.indent++;this.writeObject(b);this.indent--}this.println("},")}else{this.println(this.formatId(String(b))+",")}}));this.indent--;this.println(");")}writeObjectInclusive(b,S){if((0,ee.isPBXBuildFile)(S)||(0,ee.isPBXFileReference)(S)){return this.writeObjectWithoutIndent(b,S)}this.println(this.formatId(b)+" = {");this.indent++;this.writeObject(S);this.indent--;this.println("};")}writeObjectWithoutIndent(b,S){const J=[];const buildInline=(b,S)=>{J.push(this.formatId(b)+" = {");Object.entries(S).forEach((([b,S])=>{if(this.options.skipNullishValues&&S==null){return}else if(S instanceof Buffer){J.push(ensureQuotes(b)+" = "+formatData(S)+"; ")}else if(Array.isArray(S)){J.push(ensureQuotes(b)+" = (");S.forEach((b=>J.push(ensureQuotes(b)+", ")));J.push("); ")}else if(isObject(S)){buildInline(b,S)}else{J.push(ensureQuotes(b)+" = "+this.formatId(S)+"; ")}}));J.push("}; ")};buildInline(b,S);this.println(J.join("").trim())}}S.Writer=Writer},4604:function(b,S){(function(){"use strict";S.stripBOM=function(b){if(b[0]==="\ufeff"){return b.substring(1)}else{return b}}}).call(this)},11002:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie={}.hasOwnProperty;b=J(83131);ee=J(9498).defaults;re=function(b){return typeof b==="string"&&(b.indexOf("&")>=0||b.indexOf(">")>=0||b.indexOf("<")>=0)};ne=function(b){return"<![CDATA["+te(b)+"]]>"};te=function(b){return b.replace("]]>","]]]]><![CDATA[>")};S.Builder=function(){function Builder(b){var S,J,te;this.options={};J=ee["0.2"];for(S in J){if(!ie.call(J,S))continue;te=J[S];this.options[S]=te}for(S in b){if(!ie.call(b,S))continue;te=b[S];this.options[S]=te}}Builder.prototype.buildObject=function(S){var J,te,oe,se,ae;J=this.options.attrkey;te=this.options.charkey;if(Object.keys(S).length===1&&this.options.rootName===ee["0.2"].rootName){ae=Object.keys(S)[0];S=S[ae]}else{ae=this.options.rootName}oe=function(b){return function(S,ee){var se,ae,ue,ce,le,pe;if(typeof ee!=="object"){if(b.options.cdata&&re(ee)){S.raw(ne(ee))}else{S.txt(ee)}}else if(Array.isArray(ee)){for(ce in ee){if(!ie.call(ee,ce))continue;ae=ee[ce];for(le in ae){ue=ae[le];S=oe(S.ele(le),ue).up()}}}else{for(le in ee){if(!ie.call(ee,le))continue;ae=ee[le];if(le===J){if(typeof ae==="object"){for(se in ae){pe=ae[se];S=S.att(se,pe)}}}else if(le===te){if(b.options.cdata&&re(ae)){S=S.raw(ne(ae))}else{S=S.txt(ae)}}else if(Array.isArray(ae)){for(ce in ae){if(!ie.call(ae,ce))continue;ue=ae[ce];if(typeof ue==="string"){if(b.options.cdata&&re(ue)){S=S.ele(le).raw(ne(ue)).up()}else{S=S.ele(le,ue).up()}}else{S=oe(S.ele(le),ue).up()}}}else if(typeof ae==="object"){S=oe(S.ele(le),ae).up()}else{if(typeof ae==="string"&&b.options.cdata&&re(ae)){S=S.ele(le).raw(ne(ae)).up()}else{if(ae==null){ae=""}S=S.ele(le,ae.toString()).up()}}}}return S}}(this);se=b.create(ae,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return oe(se,S).end(this.options.renderOpts)};return Builder}()}).call(this)},9498:function(b,S){(function(){S.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},67426:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie,oe,se,bind=function(b,S){return function(){return b.apply(S,arguments)}},extend=function(b,S){for(var J in S){if(ae.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ae={}.hasOwnProperty;oe=J(79746);te=J(82361);b=J(4604);ie=J(49068);se=J(39512).setImmediate;ee=J(9498).defaults;re=function(b){return typeof b==="object"&&b!=null&&Object.keys(b).length===0};ne=function(b,S,J){var ee,te,re;for(ee=0,te=b.length;ee<te;ee++){re=b[ee];S=re(S,J)}return S};S.Parser=function(J){extend(Parser,J);function Parser(b){this.parseStringPromise=bind(this.parseStringPromise,this);this.parseString=bind(this.parseString,this);this.reset=bind(this.reset,this);this.assignOrPush=bind(this.assignOrPush,this);this.processAsync=bind(this.processAsync,this);var J,te,re;if(!(this instanceof S.Parser)){return new S.Parser(b)}this.options={};te=ee["0.2"];for(J in te){if(!ae.call(te,J))continue;re=te[J];this.options[J]=re}for(J in b){if(!ae.call(b,J))continue;re=b[J];this.options[J]=re}if(this.options.xmlns){this.options.xmlnskey=this.options.attrkey+"ns"}if(this.options.normalizeTags){if(!this.options.tagNameProcessors){this.options.tagNameProcessors=[]}this.options.tagNameProcessors.unshift(ie.normalize)}this.reset()}Parser.prototype.processAsync=function(){var b,S;try{if(this.remaining.length<=this.options.chunkSize){b=this.remaining;this.remaining="";this.saxParser=this.saxParser.write(b);return this.saxParser.close()}else{b=this.remaining.substr(0,this.options.chunkSize);this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length);this.saxParser=this.saxParser.write(b);return se(this.processAsync)}}catch(b){S=b;if(!this.saxParser.errThrown){this.saxParser.errThrown=true;return this.emit(S)}}};Parser.prototype.assignOrPush=function(b,S,J){if(!(S in b)){if(!this.options.explicitArray){return b[S]=J}else{return b[S]=[J]}}else{if(!(b[S]instanceof Array)){b[S]=[b[S]]}return b[S].push(J)}};Parser.prototype.reset=function(){var b,S,J,ee;this.removeAllListeners();this.saxParser=oe.parser(this.options.strict,{trim:false,normalize:false,xmlns:this.options.xmlns});this.saxParser.errThrown=false;this.saxParser.onerror=function(b){return function(S){b.saxParser.resume();if(!b.saxParser.errThrown){b.saxParser.errThrown=true;return b.emit("error",S)}}}(this);this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended){b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);this.saxParser.ended=false;this.EXPLICIT_CHARKEY=this.options.explicitCharkey;this.resultObject=null;ee=[];b=this.options.attrkey;S=this.options.charkey;this.saxParser.onopentag=function(J){return function(te){var re,ie,oe,se,ue;oe={};oe[S]="";if(!J.options.ignoreAttrs){ue=te.attributes;for(re in ue){if(!ae.call(ue,re))continue;if(!(b in oe)&&!J.options.mergeAttrs){oe[b]={}}ie=J.options.attrValueProcessors?ne(J.options.attrValueProcessors,te.attributes[re],re):te.attributes[re];se=J.options.attrNameProcessors?ne(J.options.attrNameProcessors,re):re;if(J.options.mergeAttrs){J.assignOrPush(oe,se,ie)}else{oe[b][se]=ie}}}oe["#name"]=J.options.tagNameProcessors?ne(J.options.tagNameProcessors,te.name):te.name;if(J.options.xmlns){oe[J.options.xmlnskey]={uri:te.uri,local:te.local}}return ee.push(oe)}}(this);this.saxParser.onclosetag=function(b){return function(){var J,te,ie,oe,se,ue,ce,le,pe,fe;ue=ee.pop();se=ue["#name"];if(!b.options.explicitChildren||!b.options.preserveChildrenOrder){delete ue["#name"]}if(ue.cdata===true){J=ue.cdata;delete ue.cdata}pe=ee[ee.length-1];if(ue[S].match(/^\s*$/)&&!J){te=ue[S];delete ue[S]}else{if(b.options.trim){ue[S]=ue[S].trim()}if(b.options.normalize){ue[S]=ue[S].replace(/\s{2,}/g," ").trim()}ue[S]=b.options.valueProcessors?ne(b.options.valueProcessors,ue[S],se):ue[S];if(Object.keys(ue).length===1&&S in ue&&!b.EXPLICIT_CHARKEY){ue=ue[S]}}if(re(ue)){ue=b.options.emptyTag!==""?b.options.emptyTag:te}if(b.options.validator!=null){fe="/"+function(){var b,S,J;J=[];for(b=0,S=ee.length;b<S;b++){oe=ee[b];J.push(oe["#name"])}return J}().concat(se).join("/");(function(){var S;try{return ue=b.options.validator(fe,pe&&pe[se],ue)}catch(J){S=J;return b.emit("error",S)}})()}if(b.options.explicitChildren&&!b.options.mergeAttrs&&typeof ue==="object"){if(!b.options.preserveChildrenOrder){oe={};if(b.options.attrkey in ue){oe[b.options.attrkey]=ue[b.options.attrkey];delete ue[b.options.attrkey]}if(!b.options.charsAsChildren&&b.options.charkey in ue){oe[b.options.charkey]=ue[b.options.charkey];delete ue[b.options.charkey]}if(Object.getOwnPropertyNames(ue).length>0){oe[b.options.childkey]=ue}ue=oe}else if(pe){pe[b.options.childkey]=pe[b.options.childkey]||[];ce={};for(ie in ue){if(!ae.call(ue,ie))continue;ce[ie]=ue[ie]}pe[b.options.childkey].push(ce);delete ue["#name"];if(Object.keys(ue).length===1&&S in ue&&!b.EXPLICIT_CHARKEY){ue=ue[S]}}}if(ee.length>0){return b.assignOrPush(pe,se,ue)}else{if(b.options.explicitRoot){le=ue;ue={};ue[se]=le}b.resultObject=ue;b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);J=function(b){return function(J){var te,re;re=ee[ee.length-1];if(re){re[S]+=J;if(b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||J.replace(/\\n/g,"").trim()!=="")){re[b.options.childkey]=re[b.options.childkey]||[];te={"#name":"__text__"};te[S]=J;if(b.options.normalize){te[S]=te[S].replace(/\s{2,}/g," ").trim()}re[b.options.childkey].push(te)}return re}}}(this);this.saxParser.ontext=J;return this.saxParser.oncdata=function(b){return function(b){var S;S=J(b);if(S){return S.cdata=true}}}(this)};Parser.prototype.parseString=function(S,J){var ee;if(J!=null&&typeof J==="function"){this.on("end",(function(b){this.reset();return J(null,b)}));this.on("error",(function(b){this.reset();return J(b)}))}try{S=S.toString();if(S.trim()===""){this.emit("end",null);return true}S=b.stripBOM(S);if(this.options.async){this.remaining=S;se(this.processAsync);return this.saxParser}return this.saxParser.write(S).close()}catch(b){ee=b;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",ee);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw ee}}};Parser.prototype.parseStringPromise=function(b){return new Promise(function(S){return function(J,ee){return S.parseString(b,(function(b,S){if(b){return ee(b)}else{return J(S)}}))}}(this))};return Parser}(te);S.parseString=function(b,J,ee){var te,re,ne;if(ee!=null){if(typeof ee==="function"){te=ee}if(typeof J==="object"){re=J}}else{if(typeof J==="function"){te=J}re={}}ne=new S.Parser(re);return ne.parseString(b,te)};S.parseStringPromise=function(b,J){var ee,te;if(typeof J==="object"){ee=J}te=new S.Parser(ee);return te.parseStringPromise(b)}}).call(this)},49068:function(b,S){(function(){"use strict";var b;b=new RegExp(/(?!xmlns)^.*:/);S.normalize=function(b){return b.toLowerCase()};S.firstCharLowerCase=function(b){return b.charAt(0).toLowerCase()+b.slice(1)};S.stripPrefix=function(S){return S.replace(b,"")};S.parseNumbers=function(b){if(!isNaN(b)){b=b%1===0?parseInt(b,10):parseFloat(b)}return b};S.parseBooleans=function(b){if(/^(?:true|false)$/i.test(b)){b=b.toLowerCase()==="true"}return b}}).call(this)},27013:function(b,S,J){(function(){"use strict";var b,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;ee=J(9498);b=J(11002);te=J(67426);re=J(49068);S.defaults=ee.defaults;S.processors=re;S.ValidationError=function(b){extend(ValidationError,b);function ValidationError(b){this.message=b}return ValidationError}(Error);S.Builder=b.Builder;S.Parser=te.Parser;S.parseString=te.parseString;S.parseStringPromise=te.parseStringPromise}).call(this)},22346:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},4128:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},52629:function(b){(function(){var S,J,ee,te,re,ne,ie,oe=[].slice,se={}.hasOwnProperty;S=function(){var b,S,J,ee,te,ne;ne=arguments[0],te=2<=arguments.length?oe.call(arguments,1):[];if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(b=0,J=te.length;b<J;b++){ee=te[b];if(ee!=null){for(S in ee){if(!se.call(ee,S))continue;ne[S]=ee[S]}}}}return ne};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!se.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},58413:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},49525:function(b,S,J){(function(){var S,ee,te;S=J(4128);te=J(98064);b.exports=ee=function(){function XMLAttribute(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});XMLAttribute.prototype.clone=function(){return Object.create(this)};XMLAttribute.prototype.toString=function(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))};XMLAttribute.prototype.debugInfo=function(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},66789:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);te=J(63527);b.exports=ee=function(b){extend(XMLCData,b);function XMLCData(b,J){XMLCData.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))};return XMLCData}(te)}).call(this)},63527:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(98064);b.exports=S=function(b){extend(XMLCharacterData,b);function XMLCharacterData(b){XMLCharacterData.__super__.constructor.call(this,b);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(b){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.data!==this.data){return false}return true};return XMLCharacterData}(ee)}).call(this)},34593:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLComment,b);function XMLComment(b,J){XMLComment.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))};return XMLComment}(ee)}).call(this)},64196:function(b,S,J){(function(){var S,ee,te;ee=J(57850);te=J(35132);b.exports=S=function(){function XMLDOMConfiguration(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(b,S){return true};XMLDOMConfiguration.prototype.setParameter=function(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}};return XMLDOMConfiguration}()}).call(this)},57850:function(b){(function(){var S;b.exports=S=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(b){throw new Error(b)};return XMLDOMErrorHandler}()}).call(this)},99490:function(b){(function(){var S;b.exports=S=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(b,S){return true};XMLDOMImplementation.prototype.createDocumentType=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(b){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},35132:function(b){(function(){var S;b.exports=S=function(){function XMLDOMStringList(b){this.arr=b||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(b){return this.arr[b]||null};XMLDOMStringList.prototype.contains=function(b){return this.arr.indexOf(b)!==-1};return XMLDOMStringList}()}).call(this)},71066:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDAttList,b);function XMLDTDAttList(b,J,ee,te,re,ne){XMLDTDAttList.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}XMLDTDAttList.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))};return XMLDTDAttList}(te)}).call(this)},23584:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDElement,b);function XMLDTDElement(b,J,ee){XMLDTDElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}XMLDTDElement.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))};return XMLDTDElement}(te)}).call(this)},9346:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDEntity,b);function XMLDTDEntity(b,J,ee,te){XMLDTDEntity.__super__.constructor.call(this,b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))};return XMLDTDEntity}(te)}).call(this)},30853:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDNotation,b);function XMLDTDNotation(b,J,ee){XMLDTDNotation.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))};return XMLDTDNotation}(te)}).call(this)},24972:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDeclaration,b);function XMLDeclaration(b,J,ee,te){var ne;XMLDeclaration.__super__.constructor.call(this,b);if(re(J)){ne=J,J=ne.version,ee=ne.encoding,te=ne.standalone}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}XMLDeclaration.prototype.toString=function(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))};return XMLDeclaration}(te)}).call(this)},19025:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629).isObject;se=J(98064);S=J(4128);ee=J(71066);re=J(9346);te=J(23584);ne=J(30853);oe=J(78339);b.exports=ie=function(b){extend(XMLDocType,b);function XMLDocType(b,J,ee){var te,re,ne,ie,oe,se;XMLDocType.__super__.constructor.call(this,b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){oe=J,J=oe.pubID,ee=oe.sysID}if(ee==null){se=[J,ee],ee=se[0],J=se[1]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLDocType.prototype.element=function(b,S){var J;J=new te(this,b,S);this.children.push(J);return this};XMLDocType.prototype.attList=function(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this};XMLDocType.prototype.entity=function(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this};XMLDocType.prototype.pEntity=function(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this};XMLDocType.prototype.notation=function(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this};XMLDocType.prototype.toString=function(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))};XMLDocType.prototype.ele=function(b,S){return this.element(b,S)};XMLDocType.prototype.att=function(b,S,J,ee,te){return this.attList(b,S,J,ee,te)};XMLDocType.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocType.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocType.prototype.not=function(b,S){return this.notation(b,S)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};XMLDocType.prototype.isEqualNode=function(b){if(!XMLDocType.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true};return XMLDocType}(se)}).call(this)},3315:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,extend=function(b,S){for(var J in S){if(ae.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ae={}.hasOwnProperty;se=J(52629).isPlainObject;te=J(99490);ee=J(64196);ne=J(98064);S=J(4128);oe=J(20916);ie=J(56939);b.exports=re=function(b){extend(XMLDocument,b);function XMLDocument(b){XMLDocument.__super__.constructor.call(this,null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});XMLDocument.prototype.end=function(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))};XMLDocument.prototype.toString=function(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))};XMLDocument.prototype.createElement=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTextNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createComment=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createCDATASection=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createProcessingInstruction=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttribute=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEntityReference=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.importNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createElementNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementById=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.adoptNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.renameNode=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEvent=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createNodeIterator=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTreeWalker=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLDocument}(ne)}).call(this)},11523:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,Ee,Ae,we={}.hasOwnProperty;Ae=J(52629),be=Ae.isObject,Te=Ae.isFunction,Ee=Ae.isPlainObject,ve=Ae.getValue;S=J(4128);le=J(3315);fe=J(37370);re=J(66789);ne=J(34593);he=J(10363);ye=J(28854);de=J(93234);ue=J(24972);ce=J(19025);ie=J(71066);se=J(9346);oe=J(23584);ae=J(30853);te=J(49525);ge=J(20916);me=J(56939);ee=J(58413);b.exports=pe=function(){function XMLDocumentCB(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(Ee(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.createChildNode=function(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!we.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this};XMLDocumentCB.prototype.dummy=function(){return this};XMLDocumentCB.prototype.node=function(b,S,J){var ee;if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){ee=[S,J],J=ee[0],S=ee[1]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this};XMLDocumentCB.prototype.element=function(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement.apply(this,arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this};XMLDocumentCB.prototype.attribute=function(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!we.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this};XMLDocumentCB.prototype.text=function(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.cdata=function(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.comment=function(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.raw=function(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.instruction=function(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!we.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this};XMLDocumentCB.prototype.declaration=function(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.doctype=function(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this};XMLDocumentCB.prototype.dtdElement=function(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.attList=function(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.entity=function(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.pEntity=function(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.notation=function(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.up=function(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this};XMLDocumentCB.prototype.end=function(){while(this.currentLevel>=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!we.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}};XMLDocumentCB.prototype.onData=function(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(b){if(b==null){return""}else{return"node: <"+b+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.txt=function(b){return this.text(b)};XMLDocumentCB.prototype.dat=function(b){return this.cdata(b)};XMLDocumentCB.prototype.com=function(b){return this.comment(b)};XMLDocumentCB.prototype.ins=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLDocumentCB.prototype.dtd=function(b,S,J){return this.doctype(b,S,J)};XMLDocumentCB.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLDocumentCB.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.t=function(b){return this.text(b)};XMLDocumentCB.prototype.d=function(b){return this.cdata(b)};XMLDocumentCB.prototype.c=function(b){return this.comment(b)};XMLDocumentCB.prototype.r=function(b){return this.raw(b)};XMLDocumentCB.prototype.i=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocumentCB.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocumentCB.prototype.not=function(b,S){return this.notation(b,S)};return XMLDocumentCB}()}).call(this)},3288:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDummy,b);function XMLDummy(b){XMLDummy.__super__.constructor.call(this,b);this.type=S.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(b){return""};return XMLDummy}(te)}).call(this)},37370:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629),se=ae.isObject,oe=ae.isFunction,ie=ae.getValue;ne=J(98064);S=J(4128);ee=J(49525);re=J(78339);b.exports=te=function(b){extend(XMLElement,b);function XMLElement(b,J,ee){var te,re,ne,ie;XMLElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});XMLElement.prototype.clone=function(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ue.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J};XMLElement.prototype.attribute=function(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ue.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this};XMLElement.prototype.removeAttribute=function(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this};XMLElement.prototype.toString=function(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))};XMLElement.prototype.att=function(b,S){return this.attribute(b,S)};XMLElement.prototype.a=function(b,S){return this.attribute(b,S)};XMLElement.prototype.getAttribute=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}};XMLElement.prototype.setAttribute=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNode=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}};XMLElement.prototype.setAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNodeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNodeNS=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.hasAttribute=function(b){return this.attribs.hasOwnProperty(b)};XMLElement.prototype.hasAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttribute=function(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}};XMLElement.prototype.setIdAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttributeNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.isEqualNode=function(b){var S,J,ee;if(!XMLElement.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true};return XMLElement}(ne)}).call(this)},78339:function(b){(function(){var S;b.exports=S=function(){function XMLNamedNodeMap(b){this.nodes=b}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(b){return this.nodes[b]};XMLNamedNodeMap.prototype.setNamedItem=function(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null};XMLNamedNodeMap.prototype.removeNamedItem=function(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null};XMLNamedNodeMap.prototype.item=function(b){return this.nodes[Object.keys(this.nodes)[b]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(b){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},98064:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve={}.hasOwnProperty;ye=J(52629),ge=ye.isObject,me=ye.isFunction,he=ye.isEmpty,de=ye.getValue;se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){function XMLNode(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(37370);te=J(66789);re=J(34593);ne=J(24972);ie=J(19025);pe=J(10363);fe=J(28854);le=J(93234);oe=J(3288);ee=J(4128);ce=J(57209);ae=J(78339);S=J(22346)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLNode.prototype.setParent=function(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re};XMLNode.prototype.element=function(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue,ce,le;oe=null;if(S===null&&J==null){ue=[{},null],S=ue[0],J=ue[1]}if(S==null){S={}}S=de(S);if(!ge(S)){ce=[S,J],J=ce[0],S=ce[1]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ve.call(b,ie))continue;le=b[ie];if(me(le)){le=le.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),le)}else if(!this.options.separateArrayItems&&Array.isArray(le)&&he(le)){oe=this.dummy()}else if(ge(le)&&he(le)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&le==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(le)){for(ne=0,ae=le.length;ne<ae;ne++){te=le[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(le)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(le)}else{oe=this.element(ie);oe.element(le)}}else{oe=this.element(ie,le)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe};XMLNode.prototype.insertBefore=function(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}};XMLNode.prototype.insertAfter=function(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee};XMLNode.prototype.remove=function(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent};XMLNode.prototype.node=function(b,S,J){var ee,te;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){te=[S,J],J=te[0],S=te[1]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee};XMLNode.prototype.text=function(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this};XMLNode.prototype.cdata=function(b){var S;S=new te(this,b);this.children.push(S);return this};XMLNode.prototype.comment=function(b){var S;S=new re(this,b);this.children.push(S);return this};XMLNode.prototype.commentBefore=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.commentAfter=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.raw=function(b){var S;S=new pe(this,b);this.children.push(S);return this};XMLNode.prototype.dummy=function(){var b;b=new oe(this);return b};XMLNode.prototype.instruction=function(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ve.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this};XMLNode.prototype.instructionBefore=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.instructionAfter=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.declaration=function(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te};XMLNode.prototype.dtd=function(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re};XMLNode.prototype.up=function(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent};XMLNode.prototype.root=function(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}};XMLNode.prototype.document=function(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}};XMLNode.prototype.end=function(b){return this.document().end(b)};XMLNode.prototype.prev=function(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]};XMLNode.prototype.next=function(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]};XMLNode.prototype.importDocument=function(b){var S;S=b.root().clone();S.parent=this;S.isRoot=false;this.children.push(S);return this};XMLNode.prototype.debugInfo=function(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.txt=function(b){return this.text(b)};XMLNode.prototype.dat=function(b){return this.cdata(b)};XMLNode.prototype.com=function(b){return this.comment(b)};XMLNode.prototype.ins=function(b,S){return this.instruction(b,S)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLNode.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.t=function(b){return this.text(b)};XMLNode.prototype.d=function(b){return this.cdata(b)};XMLNode.prototype.c=function(b){return this.comment(b)};XMLNode.prototype.r=function(b){return this.raw(b)};XMLNode.prototype.i=function(b,S){return this.instruction(b,S)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(b){return this.importDocument(b)};XMLNode.prototype.replaceChild=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(b,S){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}};XMLNode.prototype.isSameNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true};XMLNode.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(b){if(!b){return false}return b===this||this.isDescendant(b)};XMLNode.prototype.isDescendant=function(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false};XMLNode.prototype.isAncestor=function(b){return b.isDescendant(this)};XMLNode.prototype.isPreceding=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}};XMLNode.prototype.isFollowing=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}};XMLNode.prototype.treePosition=function(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}};XMLNode.prototype.foreachTreeNode=function(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}};return XMLNode}()}).call(this)},57209:function(b){(function(){var S;b.exports=S=function(){function XMLNodeList(b){this.nodes=b}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});XMLNodeList.prototype.clone=function(){return this.nodes=null};XMLNodeList.prototype.item=function(b){return this.nodes[b]||null};return XMLNodeList}()}).call(this)},93234:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLProcessingInstruction,b);function XMLProcessingInstruction(b,J,ee){XMLProcessingInstruction.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))};XMLProcessingInstruction.prototype.isEqualNode=function(b){if(!XMLProcessingInstruction.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.target!==this.target){return false}return true};return XMLProcessingInstruction}(ee)}).call(this)},10363:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(98064);b.exports=te=function(b){extend(XMLRaw,b);function XMLRaw(b,J){XMLRaw.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))};return XMLRaw}(ee)}).call(this)},30359:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;S=J(4128);re=J(8126);ee=J(58413);b.exports=te=function(b){extend(XMLStreamWriter,b);function XMLStreamWriter(b,S){this.stream=b;XMLStreamWriter.__super__.constructor.call(this,S)}XMLStreamWriter.prototype.endline=function(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return XMLStreamWriter.__super__.endline.call(this,b,S,J)}};XMLStreamWriter.prototype.document=function(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae};XMLStreamWriter.prototype.attribute=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.attribute.call(this,b,S,J))};XMLStreamWriter.prototype.cdata=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.cdata.call(this,b,S,J))};XMLStreamWriter.prototype.comment=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.comment.call(this,b,S,J))};XMLStreamWriter.prototype.declaration=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.declaration.call(this,b,S,J))};XMLStreamWriter.prototype.docType=function(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)};XMLStreamWriter.prototype.element=function(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;this.stream.write(this.indent(b,J,te)+"<"+b.name);pe=b.attribs;for(ce in pe){if(!ne.call(pe,ce))continue;re=pe[ce];this.attribute(re,J,te)}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;le=true;this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;le=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;fe=b.children;for(ae=0,ue=fe.length;ae<ue;ae++){ie=fe[ae];this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)};XMLStreamWriter.prototype.processingInstruction=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,b,S,J))};XMLStreamWriter.prototype.raw=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,b,S,J))};XMLStreamWriter.prototype.text=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.text.call(this,b,S,J))};XMLStreamWriter.prototype.dtdAttList=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,b,S,J))};XMLStreamWriter.prototype.dtdElement=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,b,S,J))};XMLStreamWriter.prototype.dtdEntity=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,b,S,J))};XMLStreamWriter.prototype.dtdNotation=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,b,S,J))};return XMLStreamWriter}(re)}).call(this)},56939:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(8126);b.exports=S=function(b){extend(XMLStringWriter,b);function XMLStringWriter(b){XMLStringWriter.__super__.constructor.call(this,b)}XMLStringWriter.prototype.document=function(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re};return XMLStringWriter}(ee)}).call(this)},20916:function(b){(function(){var S,bind=function(b,S){return function(){return b.apply(S,arguments)}},J={}.hasOwnProperty;b.exports=S=function(){function XMLStringifier(b){this.assertLegalName=bind(this.assertLegalName,this);this.assertLegalChar=bind(this.assertLegalChar,this);var S,ee,te;b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}XMLStringifier.prototype.name=function(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")};XMLStringifier.prototype.text=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))};XMLStringifier.prototype.cdata=function(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)};XMLStringifier.prototype.comment=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.raw=function(b){if(this.options.noValidation){return b}return""+b||""};XMLStringifier.prototype.attValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))};XMLStringifier.prototype.insTarget=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.insValue=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlVersion=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b};XMLStringifier.prototype.xmlEncoding=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlStandalone=function(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdSysID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdElementValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttType=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttDefault=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdEntityValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdNData=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}return b};XMLStringifier.prototype.assertLegalName=function(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b};XMLStringifier.prototype.textEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};XMLStringifier.prototype.attEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};return XMLStringifier}()}).call(this)},28854:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLText,b);function XMLText(b,J){XMLText.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))};XMLText.prototype.splitText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLText.prototype.replaceWholeText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLText}(ee)}).call(this)},8126:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;me=J(52629).assign;S=J(4128);ae=J(24972);ue=J(19025);te=J(66789);re=J(34593);le=J(37370);fe=J(10363);de=J(28854);pe=J(93234);ce=J(3288);ne=J(71066);ie=J(23584);oe=J(9346);se=J(30853);ee=J(58413);b.exports=he=function(){function XMLWriterBase(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}XMLWriterBase.prototype.filterOptions=function(b){var S,J,te,re,ne,ie,oe,se;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.dontPrettyTextNodes=(ne=(ie=b.dontPrettyTextNodes)!=null?ie:b.dontprettytextnodes)!=null?ne:0;S.spaceBeforeSlash=(oe=(se=b.spaceBeforeSlash)!=null?se:b.spacebeforeslash)!=null?oe:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S};XMLWriterBase.prototype.indent=function(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""};XMLWriterBase.prototype.endline=function(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}};XMLWriterBase.prototype.attribute=function(b,S,J){var ee;this.openAttribute(b,S,J);ee=" "+b.name+'="'+b.value+'"';this.closeAttribute(b,S,J);return ee};XMLWriterBase.prototype.cdata=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.comment=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.declaration=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.docType=function(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie};XMLWriterBase.prototype.element=function(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me;te||(te=0);pe=false;fe="";this.openNode(b,J,te);J.state=ee.OpenTag;fe+=this.indent(b,J,te)+"<"+b.name;de=b.attribs;for(le in de){if(!ge.call(de,le))continue;re=de[le];fe+=this.attribute(re,J,te)}ie=b.children.length;oe=ie===0?null:b.children[0];if(ie===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){fe+=">";J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;fe+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&ie===1&&(oe.type===S.Text||oe.type===S.Raw)&&oe.value!=null){fe+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;pe=true;fe+=this.writeChildNode(oe,J,te+1);J.suppressPrettyCount--;pe=false;J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){he=b.children;for(se=0,ue=he.length;se<ue;se++){ne=he[se];if((ne.type===S.Text||ne.type===S.Raw)&&ne.value!=null){J.suppressPrettyCount++;pe=true;break}}}fe+=">"+this.endline(b,J,te);J.state=ee.InsideTag;me=b.children;for(ae=0,ce=me.length;ae<ce;ae++){ne=me[ae];fe+=this.writeChildNode(ne,J,te+1)}J.state=ee.CloseTag;fe+=this.indent(b,J,te)+"</"+b.name+">";if(pe){J.suppressPrettyCount--}fe+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return fe};XMLWriterBase.prototype.writeChildNode=function(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.raw=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.text=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdAttList=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdElement=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdEntity=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdNotation=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.openNode=function(b,S,J){};XMLWriterBase.prototype.closeNode=function(b,S,J){};XMLWriterBase.prototype.openAttribute=function(b,S,J){};XMLWriterBase.prototype.closeAttribute=function(b,S,J){};return XMLWriterBase}()}).call(this)},83131:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue;ue=J(52629),se=ue.assign,ae=ue.isFunction;te=J(99490);re=J(3315);ne=J(11523);oe=J(56939);ie=J(30359);S=J(4128);ee=J(58413);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){var ee;if(ae(b)){ee=[b,S],S=ee[0],J=ee[1];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},144:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},7762:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},20983:function(b){(function(){var S,J,ee,te,re,ne,ie,oe={}.hasOwnProperty;S=function(b,...S){var J,ee,te,ne;if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(J=0,te=S.length;J<te;J++){ne=S[J];if(ne!=null){for(ee in ne){if(!oe.call(ne,ee))continue;b[ee]=ne[ee]}}}}return b};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!oe.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},80140:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},1395:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(5089);b.exports=ee=function(){class XMLAttribute{constructor(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))}debugInfo(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}}isEqualNode(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true}}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});return XMLAttribute}.call(this)}).call(this)},45261:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(44765);b.exports=ee=class XMLCData extends te{constructor(b,J){super(b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))}}}).call(this)},44765:function(b,S,J){(function(){var S,ee;ee=J(5089);b.exports=S=function(){class XMLCharacterData extends ee{constructor(b){super(b);this.value=""}clone(){return Object.create(this)}substringData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.data!==this.data){return false}return true}}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});return XMLCharacterData}.call(this)}).call(this)},20360:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLComment extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))}}}).call(this)},25675:function(b,S,J){(function(){var S,ee,te;ee=J(70121);te=J(38207);b.exports=S=function(){class XMLDOMConfiguration{constructor(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}getParameter(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}}canSetParameter(b,S){return true}setParameter(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}}}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});return XMLDOMConfiguration}.call(this)}).call(this)},70121:function(b){(function(){var S;b.exports=S=class XMLDOMErrorHandler{constructor(){}handleError(b){throw new Error(b)}}}).call(this)},32692:function(b){(function(){var S;b.exports=S=class XMLDOMImplementation{hasFeature(b,S){return true}createDocumentType(b,S,J){throw new Error("This DOM method is not implemented.")}createDocument(b,S,J){throw new Error("This DOM method is not implemented.")}createHTMLDocument(b){throw new Error("This DOM method is not implemented.")}getFeature(b,S){throw new Error("This DOM method is not implemented.")}}}).call(this)},38207:function(b){(function(){var S;b.exports=S=function(){class XMLDOMStringList{constructor(b){this.arr=b||[]}item(b){return this.arr[b]||null}contains(b){return this.arr.indexOf(b)!==-1}}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});return XMLDOMStringList}.call(this)}).call(this)},12529:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDAttList extends te{constructor(b,J,ee,te,re,ne){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}toString(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))}}}).call(this)},87486:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDElement extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}toString(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))}}}).call(this)},69252:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDEntity extends te{constructor(b,J,ee,te){super(b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}toString(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});return XMLDTDEntity}.call(this)}).call(this)},84848:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDNotation extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}toString(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});return XMLDTDNotation}.call(this)}).call(this)},16645:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=class XMLDeclaration extends te{constructor(b,J,ee,te){super(b);if(re(J)){({version:J,encoding:ee,standalone:te}=J)}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}toString(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))}}}).call(this)},58873:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({isObject:ae}=J(20983));se=J(5089);S=J(7762);ee=J(12529);re=J(69252);te=J(87486);ne=J(84848);oe=J(92076);b.exports=ie=function(){class XMLDocType extends se{constructor(b,J,ee){var te,re,ne,ie;super(b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){({pubID:J,sysID:ee}=J)}if(ee==null){[ee,J]=[J,ee]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}element(b,S){var J;J=new te(this,b,S);this.children.push(J);return this}attList(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this}entity(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this}pEntity(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this}notation(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this}toString(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))}ele(b,S){return this.element(b,S)}att(b,S,J,ee,te){return this.attList(b,S,J,ee,te)}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}up(){return this.root()||this.documentObject}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLDocType}.call(this)}).call(this)},31582:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se;({isPlainObject:se}=J(20983));te=J(32692);ee=J(25675);ne=J(5089);S=J(7762);oe=J(90645);ie=J(37834);b.exports=re=function(){class XMLDocument extends ne{constructor(b){super(null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}end(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))}toString(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))}createElement(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});return XMLDocument}.call(this)}).call(this)},2871:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,Ee,Ae={}.hasOwnProperty;({isObject:be,isFunction:Te,isPlainObject:Ee,getValue:ve}=J(20983));S=J(7762);le=J(31582);fe=J(16484);re=J(45261);ne=J(20360);he=J(68732);ye=J(22275);de=J(98947);ue=J(16645);ce=J(58873);ie=J(12529);se=J(69252);oe=J(87486);ae=J(84848);te=J(1395);ge=J(90645);me=J(37834);ee=J(80140);b.exports=pe=class XMLDocumentCB{constructor(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(Ee(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}createChildNode(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!Ae.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this}dummy(){return this}node(b,S,J){if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){[J,S]=[S,J]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this}element(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement(...arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this}attribute(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!Ae.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this}text(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}cdata(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}comment(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}raw(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}instruction(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!Ae.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this}declaration(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}doctype(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this}dtdElement(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}attList(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}entity(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}pEntity(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}notation(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}up(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this}end(){while(this.currentLevel>=0){this.up()}return this.onEnd()}openCurrent(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}}openNode(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!Ae.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}}closeNode(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}}onData(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)}onEnd(){this.documentCompleted=true;return this.onEndCallback()}debugInfo(b){if(b==null){return""}else{return"node: <"+b+">"}}ele(){return this.element(...arguments)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}dec(b,S,J){return this.declaration(b,S,J)}dtd(b,S,J){return this.doctype(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}att(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}a(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}}}).call(this)},80706:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDummy extends te{constructor(b){super(b);this.type=S.Dummy}clone(){return Object.create(this)}toString(b){return""}}}).call(this)},16484:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae={}.hasOwnProperty;({isObject:se,isFunction:oe,getValue:ie}=J(20983));ne=J(5089);S=J(7762);ee=J(1395);re=J(92076);b.exports=te=function(){class XMLElement extends ne{constructor(b,J,ee){var te,re,ne,ie;super(b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}clone(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ae.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J}attribute(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ae.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this}removeAttribute(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this}toString(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}getAttribute(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}}setAttribute(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}}setAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(b){return this.attribs.hasOwnProperty(b)}hasAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}}setIdAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(!super.isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});return XMLElement}.call(this)}).call(this)},92076:function(b){(function(){var S;b.exports=S=function(){class XMLNamedNodeMap{constructor(b){this.nodes=b}clone(){return this.nodes=null}getNamedItem(b){return this.nodes[b]}setNamedItem(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null}removeNamedItem(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null}item(b){return this.nodes[Object.keys(this.nodes)[b]]||null}getNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}setNamedItemNS(b){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});return XMLNamedNodeMap}.call(this)}).call(this)},5089:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye={}.hasOwnProperty,ve=[].splice;({isObject:ge,isFunction:me,isEmpty:he,getValue:de}=J(20983));se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){class XMLNode{constructor(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(16484);te=J(45261);re=J(20360);ne=J(16645);ie=J(58873);pe=J(68732);fe=J(22275);le=J(98947);oe=J(80706);ee=J(7762);ce=J(49908);ae=J(92076);S=J(144)}}setParent(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re}element(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue;oe=null;if(S===null&&J==null){[S,J]=[{},null]}if(S==null){S={}}S=de(S);if(!ge(S)){[J,S]=[S,J]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ye.call(b,ie))continue;ue=b[ie];if(me(ue)){ue=ue.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),ue)}else if(!this.options.separateArrayItems&&Array.isArray(ue)&&he(ue)){oe=this.dummy()}else if(ge(ue)&&he(ue)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&ue==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(ue)){for(ne=0,ae=ue.length;ne<ae;ne++){te=ue[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(ue)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(ue)}else{oe=this.element(ie);oe.element(ue)}}else{oe=this.element(ie,ue)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe}insertBefore(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}}insertAfter(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee}remove(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);ve.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent}node(b,S,J){var ee;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){[J,S]=[S,J]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee}text(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this}cdata(b){var S;S=new te(this,b);this.children.push(S);return this}comment(b){var S;S=new re(this,b);this.children.push(S);return this}commentBefore(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}commentAfter(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}raw(b){var S;S=new pe(this,b);this.children.push(S);return this}dummy(){var b;b=new oe(this);return b}instruction(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ye.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this}instructionBefore(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}instructionAfter(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}declaration(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te}dtd(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re}up(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent}root(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}}document(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}}end(b){return this.document().end(b)}prev(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]}next(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]}importDocument(b){var S,J,te,re,ne;J=b.root().clone();J.parent=this;J.isRoot=false;this.children.push(J);if(this.type===ee.Document){J.isRoot=true;J.documentObject=this;this.rootObject=J;if(this.children){ne=this.children;for(te=0,re=ne.length;te<re;te++){S=ne[te];if(S.type===ee.DocType){S.name=J.name;break}}}}return this}debugInfo(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}}ele(b,S,J){return this.element(b,S,J)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}doc(){return this.document()}dec(b,S,J){return this.declaration(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}u(){return this.up()}importXMLBuilder(b){return this.importDocument(b)}attribute(b,S){throw new Error("attribute() applies to element nodes only.")}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}removeAttribute(b){throw new Error("attribute() applies to element nodes only.")}replaceChild(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(b,S){return true}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}}isSameNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true}getFeature(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(b){if(!b){return false}return b===this||this.isDescendant(b)}isDescendant(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false}isAncestor(b){return b.isDescendant(this)}isPreceding(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}}isFollowing(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}}treePosition(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}}foreachTreeNode(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLNode}.call(this)}).call(this)},49908:function(b){(function(){var S;b.exports=S=function(){class XMLNodeList{constructor(b){this.nodes=b}clone(){return this.nodes=null}item(b){return this.nodes[b]||null}}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});return XMLNodeList}.call(this)}).call(this)},98947:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLProcessingInstruction extends ee{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}clone(){return Object.create(this)}toString(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.target!==this.target){return false}return true}}}).call(this)},68732:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(5089);b.exports=te=class XMLRaw extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))}}}).call(this)},55922:function(b,S,J){(function(){var S,ee,te,re,ne={}.hasOwnProperty;S=J(7762);re=J(16670);ee=J(80140);b.exports=te=class XMLStreamWriter extends re{constructor(b,S){super(S);this.stream=b}endline(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return super.endline(b,S,J)}}document(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae}cdata(b,S,J){return this.stream.write(super.cdata(b,S,J))}comment(b,S,J){return this.stream.write(super.comment(b,S,J))}declaration(b,S,J){return this.stream.write(super.declaration(b,S,J))}docType(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)}element(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;de=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=de.length;me=b.attribs;for(pe in me){if(!ne.call(me,pe))continue;re=me[pe];he=this.attribute(re,J,te);ie=he.length;if(ce+ie>J.width){ve=this.indent(b,J,te+1)+he;de+=this.endline(b,J,te)+ve;ce=ve.length}else{ve=" "+he;de+=ve;ce+=ve.length}}}else{ge=b.attribs;for(pe in ge){if(!ne.call(ge,pe))continue;re=ge[pe];de+=this.attribute(re,J,te)}}this.stream.write(de);se=b.children.length;ae=se===0?null:b.children[0];if(se===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&se===1&&(ae.type===S.Text||ae.type===S.Raw)&&ae.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;fe=true;this.writeChildNode(ae,J,te+1);J.suppressPrettyCount--;fe=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;ye=b.children;for(ue=0,le=ye.length;ue<le;ue++){oe=ye[ue];this.writeChildNode(oe,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)}processingInstruction(b,S,J){return this.stream.write(super.processingInstruction(b,S,J))}raw(b,S,J){return this.stream.write(super.raw(b,S,J))}text(b,S,J){return this.stream.write(super.text(b,S,J))}dtdAttList(b,S,J){return this.stream.write(super.dtdAttList(b,S,J))}dtdElement(b,S,J){return this.stream.write(super.dtdElement(b,S,J))}dtdEntity(b,S,J){return this.stream.write(super.dtdEntity(b,S,J))}dtdNotation(b,S,J){return this.stream.write(super.dtdNotation(b,S,J))}}}).call(this)},37834:function(b,S,J){(function(){var S,ee;ee=J(16670);b.exports=S=class XMLStringWriter extends ee{constructor(b){super(b)}document(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re}}}).call(this)},90645:function(b){(function(){var S,J={}.hasOwnProperty;b.exports=S=function(){class XMLStringifier{constructor(b){var S,ee,te;this.assertLegalChar=this.assertLegalChar.bind(this);this.assertLegalName=this.assertLegalName.bind(this);b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}name(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")}text(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))}cdata(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)}comment(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)}raw(b){if(this.options.noValidation){return b}return""+b||""}attValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))}insTarget(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}insValue(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)}xmlVersion(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b}xmlEncoding(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)}xmlStandalone(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}}dtdPubID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdSysID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdElementValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttType(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttDefault(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdEntityValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdNData(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}assertLegalChar(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}return b}assertLegalName(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b}textEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")}attEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")}}XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";return XMLStringifier}.call(this)}).call(this)},22275:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=function(){class XMLText extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))}splitText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});return XMLText}.call(this)}).call(this)},16670:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;({assign:me}=J(20983));S=J(7762);ae=J(16645);ue=J(58873);te=J(45261);re=J(20360);le=J(16484);fe=J(68732);de=J(22275);pe=J(98947);ce=J(80706);ne=J(12529);ie=J(87486);oe=J(69252);se=J(84848);ee=J(80140);b.exports=he=class XMLWriterBase{constructor(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}filterOptions(b){var S,J,te,re,ne,ie,oe,se,ae;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.width=(ne=b.width)!=null?ne:0;S.dontPrettyTextNodes=(ie=(oe=b.dontPrettyTextNodes)!=null?oe:b.dontprettytextnodes)!=null?ie:0;S.spaceBeforeSlash=(se=(ae=b.spaceBeforeSlash)!=null?ae:b.spacebeforeslash)!=null?se:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S}indent(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""}endline(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}}attribute(b,S,J){var ee;this.openAttribute(b,S,J);if(S.pretty&&S.width>0){ee=b.name+'="'+b.value+'"'}else{ee=" "+b.name+'="'+b.value+'"'}this.closeAttribute(b,S,J);return ee}cdata(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}comment(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}declaration(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}docType(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie}element(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ye,ve,Te,be,Ee;te||(te=0);de=false;this.openNode(b,J,te);J.state=ee.OpenTag;he=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=he.length;ye=b.attribs;for(fe in ye){if(!ge.call(ye,fe))continue;re=ye[fe];me=this.attribute(re,J,te);ne=me.length;if(ce+ne>J.width){Ee=this.indent(b,J,te+1)+me;he+=this.endline(b,J,te)+Ee;ce=Ee.length}else{Ee=" "+me;he+=Ee;ce+=Ee.length}}}else{ve=b.attribs;for(fe in ve){if(!ge.call(ve,fe))continue;re=ve[fe];he+=this.attribute(re,J,te)}}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){he+=">";J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;he+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){he+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;de=true;he+=this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;de=false;J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){Te=b.children;for(ae=0,le=Te.length;ae<le;ae++){ie=Te[ae];if((ie.type===S.Text||ie.type===S.Raw)&&ie.value!=null){J.suppressPrettyCount++;de=true;break}}}he+=">"+this.endline(b,J,te);J.state=ee.InsideTag;be=b.children;for(ue=0,pe=be.length;ue<pe;ue++){ie=be[ue];he+=this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;he+=this.indent(b,J,te)+"</"+b.name+">";if(de){J.suppressPrettyCount--}he+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return he}writeChildNode(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}}processingInstruction(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}raw(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}text(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdAttList(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdElement(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdEntity(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdNotation(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}openNode(b,S,J){}closeNode(b,S,J){}openAttribute(b,S,J){}closeAttribute(b,S,J){}}}).call(this)},65769:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({assign:se,isFunction:ae}=J(20983));te=J(32692);re=J(31582);ne=J(2871);oe=J(37834);ie=J(55922);S=J(7762);ee=J(80140);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){if(ae(b)){[S,J]=[b,S];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},61389:b=>{"use strict";b.exports=function(b){b.prototype[Symbol.iterator]=function*(){for(let b=this.head;b;b=b.next){yield b.value}}}},4461:(b,S,J)=>{"use strict";b.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(b){var S=this;if(!(S instanceof Yallist)){S=new Yallist}S.tail=null;S.head=null;S.length=0;if(b&&typeof b.forEach==="function"){b.forEach((function(b){S.push(b)}))}else if(arguments.length>0){for(var J=0,ee=arguments.length;J<ee;J++){S.push(arguments[J])}}return S}Yallist.prototype.removeNode=function(b){if(b.list!==this){throw new Error("removing node which does not belong to this list")}var S=b.next;var J=b.prev;if(S){S.prev=J}if(J){J.next=S}if(b===this.head){this.head=S}if(b===this.tail){this.tail=J}b.list.length--;b.next=null;b.prev=null;b.list=null;return S};Yallist.prototype.unshiftNode=function(b){if(b===this.head){return}if(b.list){b.list.removeNode(b)}var S=this.head;b.list=this;b.next=S;if(S){S.prev=b}this.head=b;if(!this.tail){this.tail=b}this.length++};Yallist.prototype.pushNode=function(b){if(b===this.tail){return}if(b.list){b.list.removeNode(b)}var S=this.tail;b.list=this;b.prev=S;if(S){S.next=b}this.tail=b;if(!this.head){this.head=b}this.length++};Yallist.prototype.push=function(){for(var b=0,S=arguments.length;b<S;b++){push(this,arguments[b])}return this.length};Yallist.prototype.unshift=function(){for(var b=0,S=arguments.length;b<S;b++){unshift(this,arguments[b])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var b=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return b};Yallist.prototype.shift=function(){if(!this.head){return undefined}var b=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return b};Yallist.prototype.forEach=function(b,S){S=S||this;for(var J=this.head,ee=0;J!==null;ee++){b.call(S,J.value,ee,this);J=J.next}};Yallist.prototype.forEachReverse=function(b,S){S=S||this;for(var J=this.tail,ee=this.length-1;J!==null;ee--){b.call(S,J.value,ee,this);J=J.prev}};Yallist.prototype.get=function(b){for(var S=0,J=this.head;J!==null&&S<b;S++){J=J.next}if(S===b&&J!==null){return J.value}};Yallist.prototype.getReverse=function(b){for(var S=0,J=this.tail;J!==null&&S<b;S++){J=J.prev}if(S===b&&J!==null){return J.value}};Yallist.prototype.map=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.head;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.next}return J};Yallist.prototype.mapReverse=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.tail;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.prev}return J};Yallist.prototype.reduce=function(b,S){var J;var ee=this.head;if(arguments.length>1){J=S}else if(this.head){ee=this.head.next;J=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=0;ee!==null;te++){J=b(J,ee.value,te);ee=ee.next}return J};Yallist.prototype.reduceReverse=function(b,S){var J;var ee=this.tail;if(arguments.length>1){J=S}else if(this.tail){ee=this.tail.prev;J=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=this.length-1;ee!==null;te--){J=b(J,ee.value,te);ee=ee.prev}return J};Yallist.prototype.toArray=function(){var b=new Array(this.length);for(var S=0,J=this.head;J!==null;S++){b[S]=J.value;J=J.next}return b};Yallist.prototype.toArrayReverse=function(){var b=new Array(this.length);for(var S=0,J=this.tail;J!==null;S++){b[S]=J.value;J=J.prev}return b};Yallist.prototype.slice=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}for(;te!==null&&ee<S;ee++,te=te.next){J.push(te.value)}return J};Yallist.prototype.sliceReverse=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=this.length,te=this.tail;te!==null&&ee>S;ee--){te=te.prev}for(;te!==null&&ee>b;ee--,te=te.prev){J.push(te.value)}return J};Yallist.prototype.splice=function(b,S,...J){if(b>this.length){b=this.length-1}if(b<0){b=this.length+b}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}var re=[];for(var ee=0;te&&ee<S;ee++){re.push(te.value);te=this.removeNode(te)}if(te===null){te=this.tail}if(te!==this.head&&te!==this.tail){te=te.prev}for(var ee=0;ee<J.length;ee++){te=insert(this,te,J[ee])}return re};Yallist.prototype.reverse=function(){var b=this.head;var S=this.tail;for(var J=b;J!==null;J=J.prev){var ee=J.prev;J.prev=J.next;J.next=ee}this.head=S;this.tail=b;return this};function insert(b,S,J){var ee=S===b.head?new Node(J,null,S,b):new Node(J,S,S.next,b);if(ee.next===null){b.tail=ee}if(ee.prev===null){b.head=ee}b.length++;return ee}function push(b,S){b.tail=new Node(S,b.tail,null,b);if(!b.head){b.head=b.tail}b.length++}function unshift(b,S){b.head=new Node(S,null,b.head,b);if(!b.tail){b.tail=b.head}b.length++}function Node(b,S,J,ee){if(!(this instanceof Node)){return new Node(b,S,J,ee)}this.list=ee;this.value=b;if(S){S.next=this;this.prev=S}else{this.prev=null}if(J){J.prev=this;this.next=J}else{this.next=null}}try{J(61389)(Yallist)}catch(b){}},8138:(b,S,J)=>{var ee=J(82361).EventEmitter;var te=J(32081).spawn;var re=J(71017);var ne=re.dirname;var ie=re.basename;var oe=J(57147);J(73837).inherits(Command,ee);S=b.exports=new Command;S.Command=Command;S.Option=Option;function Option(b,S){this.flags=b;this.required=b.indexOf("<")>=0;this.optional=b.indexOf("[")>=0;this.bool=b.indexOf("-no-")===-1;b=b.split(/[ ,|]+/);if(b.length>1&&!/^[[<]/.test(b[1]))this.short=b.shift();this.long=b.shift();this.description=S||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(b){return this.short===b||this.long===b};function Command(b){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=b||""}Command.prototype.command=function(b,S,J){if(typeof S==="object"&&S!==null){J=S;S=null}J=J||{};var ee=b.split(/ +/);var te=new Command(ee.shift());if(S){te.description(S);this.executables=true;this._execs[te._name]=true;if(J.isDefault)this.defaultExecutable=te._name}te._noHelp=!!J.noHelp;this.commands.push(te);te.parseExpectedArgs(ee);te.parent=this;if(S)return this;return te};Command.prototype.arguments=function(b){return this.parseExpectedArgs(b.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(b){if(!b.length)return;var S=this;b.forEach((function(b){var J={required:false,name:"",variadic:false};switch(b[0]){case"<":J.required=true;J.name=b.slice(1,-1);break;case"[":J.name=b.slice(1,-1);break}if(J.name.length>3&&J.name.slice(-3)==="..."){J.variadic=true;J.name=J.name.slice(0,-3)}if(J.name){S._args.push(J)}}));return this};Command.prototype.action=function(b){var S=this;var listener=function(J,ee){J=J||[];ee=ee||[];var te=S.parseOptions(ee);outputHelpIfNecessary(S,te.unknown);if(te.unknown.length>0){S.unknownOption(te.unknown[0])}if(te.args.length)J=te.args.concat(J);S._args.forEach((function(b,ee){if(b.required&&J[ee]==null){S.missingArgument(b.name)}else if(b.variadic){if(ee!==S._args.length-1){S.variadicArgNotLast(b.name)}J[ee]=J.splice(ee)}}));if(S._args.length){J[S._args.length]=S}else{J.push(S)}b.apply(S,J)};var J=this.parent||this;var ee=J===this?"*":this._name;J.on("command:"+ee,listener);if(this._alias)J.on("command:"+this._alias,listener);return this};Command.prototype.option=function(b,S,J,ee){var te=this,re=new Option(b,S),ne=re.name(),ie=re.attributeName();if(typeof J!=="function"){if(J instanceof RegExp){var oe=J;J=function(b,S){var J=oe.exec(b);return J?J[0]:S}}else{ee=J;J=null}}if(!re.bool||re.optional||re.required){if(!re.bool)ee=true;if(ee!==undefined){te[ie]=ee;re.defaultValue=ee}}this.options.push(re);this.on("option:"+ne,(function(b){if(b!==null&&J){b=J(b,te[ie]===undefined?ee:te[ie])}if(typeof te[ie]==="boolean"||typeof te[ie]==="undefined"){if(b==null){te[ie]=re.bool?ee||true:false}else{te[ie]=b}}else if(b!==null){te[ie]=b}}));return this};Command.prototype.allowUnknownOption=function(b){this._allowUnknownOption=arguments.length===0||b;return this};Command.prototype.parse=function(b){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=b;this._name=this._name||ie(b[1],".js");if(this.executables&&b.length<3&&!this.defaultExecutable){b.push("--help")}var S=this.parseOptions(this.normalize(b.slice(2)));var J=this.args=S.args;var ee=this.parseArgs(this.args,S.unknown);var te=ee.args[0];var re=null;if(te){re=this.commands.filter((function(b){return b.alias()===te}))[0]}if(this._execs[te]&&typeof this._execs[te]!=="function"){return this.executeSubCommand(b,J,S.unknown)}else if(re){J[0]=re._name;return this.executeSubCommand(b,J,S.unknown)}else if(this.defaultExecutable){J.unshift(this.defaultExecutable);return this.executeSubCommand(b,J,S.unknown)}return ee};Command.prototype.executeSubCommand=function(b,S,J){S=S.concat(J);if(!S.length)this.help();if(S[0]==="help"&&S.length===1)this.help();if(S[0]==="help"){S[0]=S[1];S[1]="--help"}var ee=b[1];var se=ie(ee,re.extname(ee))+"-"+S[0];var ae;var ue=oe.realpathSync(ee);ae=ne(ue);var ce=re.join(ae,se);var le=false;if(exists(ce+".js")){se=ce+".js";le=true}else if(exists(ce+".ts")){se=ce+".ts";le=true}else if(exists(ce)){se=ce}S=S.slice(1);var pe;if(process.platform!=="win32"){if(le){S.unshift(se);S=(process.execArgv||[]).concat(S);pe=te(process.argv[0],S,{stdio:"inherit",customFds:[0,1,2]})}else{pe=te(se,S,{stdio:"inherit",customFds:[0,1,2]})}}else{S.unshift(se);pe=te(process.execPath,S,{stdio:"inherit"})}var fe=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];fe.forEach((function(b){process.on(b,(function(){if(pe.killed===false&&pe.exitCode===null){pe.kill(b)}}))}));pe.on("close",process.exit.bind(process));pe.on("error",(function(b){if(b.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",se)}else if(b.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",se)}process.exit(1)}));this.runningCommand=pe};Command.prototype.normalize=function(b){var S=[],J,ee,te;for(var re=0,ne=b.length;re<ne;++re){J=b[re];if(re>0){ee=this.optionFor(b[re-1])}if(J==="--"){S=S.concat(b.slice(re));break}else if(ee&&ee.required){S.push(J)}else if(J.length>1&&J[0]==="-"&&J[1]!=="-"){J.slice(1).split("").forEach((function(b){S.push("-"+b)}))}else if(/^--/.test(J)&&~(te=J.indexOf("="))){S.push(J.slice(0,te),J.slice(te+1))}else{S.push(J)}}return S};Command.prototype.parseArgs=function(b,S){var J;if(b.length){J=b[0];if(this.listeners("command:"+J).length){this.emit("command:"+b.shift(),b,S)}else{this.emit("command:*",b)}}else{outputHelpIfNecessary(this,S);if(S.length>0){this.unknownOption(S[0])}if(this.commands.length===0&&this._args.filter((function(b){return b.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(b){for(var S=0,J=this.options.length;S<J;++S){if(this.options[S].is(b)){return this.options[S]}}};Command.prototype.parseOptions=function(b){var S=[],J=b.length,ee,te,re;var ne=[];for(var ie=0;ie<J;++ie){re=b[ie];if(ee){S.push(re);continue}if(re==="--"){ee=true;continue}te=this.optionFor(re);if(te){if(te.required){re=b[++ie];if(re==null)return this.optionMissingArgument(te);this.emit("option:"+te.name(),re)}else if(te.optional){re=b[ie+1];if(re==null||re[0]==="-"&&re!=="-"){re=null}else{++ie}this.emit("option:"+te.name(),re)}else{this.emit("option:"+te.name())}continue}if(re.length>1&&re[0]==="-"){ne.push(re);if(ie+1<b.length&&b[ie+1][0]!=="-"){ne.push(b[++ie])}continue}S.push(re)}return{args:S,unknown:ne}};Command.prototype.opts=function(){var b={},S=this.options.length;for(var J=0;J<S;J++){var ee=this.options[J].attributeName();b[ee]=ee===this._versionOptionName?this._version:this[ee]}return b};Command.prototype.missingArgument=function(b){console.error("error: missing required argument `%s'",b);process.exit(1)};Command.prototype.optionMissingArgument=function(b,S){if(S){console.error("error: option `%s' argument missing, got `%s'",b.flags,S)}else{console.error("error: option `%s' argument missing",b.flags)}process.exit(1)};Command.prototype.unknownOption=function(b){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",b);process.exit(1)};Command.prototype.variadicArgNotLast=function(b){console.error("error: variadic arguments must be last `%s'",b);process.exit(1)};Command.prototype.version=function(b,S){if(arguments.length===0)return this._version;this._version=b;S=S||"-V, --version";var J=new Option(S,"output the version number");this._versionOptionName=J.long.substr(2)||"version";this.options.push(J);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(b+"\n");process.exit(0)}));return this};Command.prototype.description=function(b,S){if(arguments.length===0)return this._description;this._description=b;this._argsDescription=S;return this};Command.prototype.alias=function(b){var S=this;if(this.commands.length!==0){S=this.commands[this.commands.length-1]}if(arguments.length===0)return S._alias;if(b===S._name)throw new Error("Command alias can't be the same as its name");S._alias=b;return this};Command.prototype.usage=function(b){var S=this._args.map((function(b){return humanReadableArgName(b)}));var J="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+S.join(" "):"");if(arguments.length===0)return this._usage||J;this._usage=b;return this};Command.prototype.name=function(b){if(arguments.length===0)return this._name;this._name=b;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(b){return!b._noHelp})).map((function(b){var S=b._args.map((function(b){return humanReadableArgName(b)})).join(" ");return[b._name+(b._alias?"|"+b._alias:"")+(b.options.length?" [options]":"")+(S?" "+S:""),b._description]}))};Command.prototype.largestCommandLength=function(){var b=this.prepareCommands();return b.reduce((function(b,S){return Math.max(b,S[0].length)}),0)};Command.prototype.largestOptionLength=function(){var b=[].slice.call(this.options);b.push({flags:"-h, --help"});return b.reduce((function(b,S){return Math.max(b,S.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(b,S){return Math.max(b,S.name.length)}),0)};Command.prototype.padWidth=function(){var b=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>b){b=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>b){b=this.largestCommandLength()}}return b};Command.prototype.optionHelp=function(){var b=this.padWidth();return this.options.map((function(S){return pad(S.flags,b)+" "+S.description+(S.bool&&S.defaultValue!==undefined?" (default: "+JSON.stringify(S.defaultValue)+")":"")})).concat([pad("-h, --help",b)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var b=this.prepareCommands();var S=this.padWidth();return["Commands:",b.map((function(b){var J=b[1]?" "+b[1]:"";return(J?pad(b[0],S):b[0])+J})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var b=[];if(this._description){b=[this._description,""];var S=this._argsDescription;if(S&&this._args.length){var J=this.padWidth();b.push("Arguments:");b.push("");this._args.forEach((function(ee){b.push(" "+pad(ee.name,J)+" "+S[ee.name])}));b.push("")}}var ee=this._name;if(this._alias){ee=ee+"|"+this._alias}var te=["Usage: "+ee+" "+this.usage(),""];var re=[];var ne=this.commandHelp();if(ne)re=[ne];var ie=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return te.concat(b).concat(ie).concat(re).join("\n")};Command.prototype.outputHelp=function(b){if(!b){b=function(b){return b}}process.stdout.write(b(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(b){this.outputHelp(b);process.exit()};function camelcase(b){return b.split("-").reduce((function(b,S){return b+S[0].toUpperCase()+S.slice(1)}))}function pad(b,S){var J=Math.max(0,S-b.length);return b+Array(J+1).join(" ")}function outputHelpIfNecessary(b,S){S=S||[];for(var J=0;J<S.length;J++){if(S[J]==="--help"||S[J]==="-h"){b.outputHelp();process.exit(0)}}}function humanReadableArgName(b){var S=b.name+(b.variadic===true?"...":"");return b.required?"<"+S+">":"["+S+"]"}function exists(b){try{if(oe.statSync(b).isFile()){return true}}catch(b){return false}}},53544:(b,S,J)=>{const ee=Symbol("SemVer ANY");class Comparator{static get ANY(){return ee}constructor(b,S){if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof Comparator){if(b.loose===!!S.loose){return b}else{b=b.value}}ie("comparator",b,S);this.options=S;this.loose=!!S.loose;this.parse(b);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}ie("comp",this)}parse(b){const S=this.options.loose?te[re.COMPARATORLOOSE]:te[re.COMPARATOR];const J=b.match(S);if(!J){throw new TypeError(`Invalid comparator: ${b}`)}this.operator=J[1]!==undefined?J[1]:"";if(this.operator==="="){this.operator=""}if(!J[2]){this.semver=ee}else{this.semver=new oe(J[2],this.options.loose)}}toString(){return this.value}test(b){ie("Comparator.test",b,this.options.loose);if(this.semver===ee||b===ee){return true}if(typeof b==="string"){try{b=new oe(b,this.options)}catch(b){return false}}return ne(b,this.operator,this.semver,this.options)}intersects(b,S){if(!(b instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new se(b.value,S).test(this.value)}else if(b.operator===""){if(b.value===""){return true}return new se(this.value,S).test(b.semver)}const J=(this.operator===">="||this.operator===">")&&(b.operator===">="||b.operator===">");const ee=(this.operator==="<="||this.operator==="<")&&(b.operator==="<="||b.operator==="<");const te=this.semver.version===b.semver.version;const re=(this.operator===">="||this.operator==="<=")&&(b.operator===">="||b.operator==="<=");const ie=ne(this.semver,"<",b.semver,S)&&(this.operator===">="||this.operator===">")&&(b.operator==="<="||b.operator==="<");const oe=ne(this.semver,">",b.semver,S)&&(this.operator==="<="||this.operator==="<")&&(b.operator===">="||b.operator===">");return J||ee||te&&re||ie||oe}}b.exports=Comparator;const{re:te,t:re}=J(21962);const ne=J(75344);const ie=J(53023);const oe=J(22828);const se=J(9349)},9349:(b,S,J)=>{class Range{constructor(b,S){if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof Range){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{return new Range(b.raw,S)}}if(b instanceof ee){this.raw=b.value;this.set=[[b]];this.format();return this}this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;this.raw=b;this.set=b.split(/\s*\|\|\s*/).map((b=>this.parseRange(b.trim()))).filter((b=>b.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${b}`)}this.format()}format(){this.range=this.set.map((b=>b.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(b){const S=this.options.loose;b=b.trim();const J=S?ne[ie.HYPHENRANGELOOSE]:ne[ie.HYPHENRANGE];b=b.replace(J,hyphenReplace(this.options.includePrerelease));te("hyphen replace",b);b=b.replace(ne[ie.COMPARATORTRIM],oe);te("comparator trim",b,ne[ie.COMPARATORTRIM]);b=b.replace(ne[ie.TILDETRIM],se);b=b.replace(ne[ie.CARETTRIM],ae);b=b.split(/\s+/).join(" ");const re=S?ne[ie.COMPARATORLOOSE]:ne[ie.COMPARATOR];return b.split(" ").map((b=>parseComparator(b,this.options))).join(" ").split(/\s+/).map((b=>replaceGTE0(b,this.options))).filter(this.options.loose?b=>!!b.match(re):()=>true).map((b=>new ee(b,this.options)))}intersects(b,S){if(!(b instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((J=>isSatisfiable(J,S)&&b.set.some((b=>isSatisfiable(b,S)&&J.every((J=>b.every((b=>J.intersects(b,S)))))))))}test(b){if(!b){return false}if(typeof b==="string"){try{b=new re(b,this.options)}catch(b){return false}}for(let S=0;S<this.set.length;S++){if(testSet(this.set[S],b,this.options)){return true}}return false}}b.exports=Range;const ee=J(53544);const te=J(53023);const re=J(22828);const{re:ne,t:ie,comparatorTrimReplace:oe,tildeTrimReplace:se,caretTrimReplace:ae}=J(21962);const isSatisfiable=(b,S)=>{let J=true;const ee=b.slice();let te=ee.pop();while(J&&ee.length){J=ee.every((b=>te.intersects(b,S)));te=ee.pop()}return J};const parseComparator=(b,S)=>{te("comp",b,S);b=replaceCarets(b,S);te("caret",b);b=replaceTildes(b,S);te("tildes",b);b=replaceXRanges(b,S);te("xrange",b);b=replaceStars(b,S);te("stars",b);return b};const isX=b=>!b||b.toLowerCase()==="x"||b==="*";const replaceTildes=(b,S)=>b.trim().split(/\s+/).map((b=>replaceTilde(b,S))).join(" ");const replaceTilde=(b,S)=>{const J=S.loose?ne[ie.TILDELOOSE]:ne[ie.TILDE];return b.replace(J,((S,J,ee,re,ne)=>{te("tilde",b,S,J,ee,re,ne);let ie;if(isX(J)){ie=""}else if(isX(ee)){ie=`>=${J}.0.0 <${+J+1}.0.0-0`}else if(isX(re)){ie=`>=${J}.${ee}.0 <${J}.${+ee+1}.0-0`}else if(ne){te("replaceTilde pr",ne);ie=`>=${J}.${ee}.${re}-${ne} <${J}.${+ee+1}.0-0`}else{ie=`>=${J}.${ee}.${re} <${J}.${+ee+1}.0-0`}te("tilde return",ie);return ie}))};const replaceCarets=(b,S)=>b.trim().split(/\s+/).map((b=>replaceCaret(b,S))).join(" ");const replaceCaret=(b,S)=>{te("caret",b,S);const J=S.loose?ne[ie.CARETLOOSE]:ne[ie.CARET];const ee=S.includePrerelease?"-0":"";return b.replace(J,((S,J,re,ne,ie)=>{te("caret",b,S,J,re,ne,ie);let oe;if(isX(J)){oe=""}else if(isX(re)){oe=`>=${J}.0.0${ee} <${+J+1}.0.0-0`}else if(isX(ne)){if(J==="0"){oe=`>=${J}.${re}.0${ee} <${J}.${+re+1}.0-0`}else{oe=`>=${J}.${re}.0${ee} <${+J+1}.0.0-0`}}else if(ie){te("replaceCaret pr",ie);if(J==="0"){if(re==="0"){oe=`>=${J}.${re}.${ne}-${ie} <${J}.${re}.${+ne+1}-0`}else{oe=`>=${J}.${re}.${ne}-${ie} <${J}.${+re+1}.0-0`}}else{oe=`>=${J}.${re}.${ne}-${ie} <${+J+1}.0.0-0`}}else{te("no pr");if(J==="0"){if(re==="0"){oe=`>=${J}.${re}.${ne}${ee} <${J}.${re}.${+ne+1}-0`}else{oe=`>=${J}.${re}.${ne}${ee} <${J}.${+re+1}.0-0`}}else{oe=`>=${J}.${re}.${ne} <${+J+1}.0.0-0`}}te("caret return",oe);return oe}))};const replaceXRanges=(b,S)=>{te("replaceXRanges",b,S);return b.split(/\s+/).map((b=>replaceXRange(b,S))).join(" ")};const replaceXRange=(b,S)=>{b=b.trim();const J=S.loose?ne[ie.XRANGELOOSE]:ne[ie.XRANGE];return b.replace(J,((J,ee,re,ne,ie,oe)=>{te("xRange",b,J,ee,re,ne,ie,oe);const se=isX(re);const ae=se||isX(ne);const ue=ae||isX(ie);const ce=ue;if(ee==="="&&ce){ee=""}oe=S.includePrerelease?"-0":"";if(se){if(ee===">"||ee==="<"){J="<0.0.0-0"}else{J="*"}}else if(ee&&ce){if(ae){ne=0}ie=0;if(ee===">"){ee=">=";if(ae){re=+re+1;ne=0;ie=0}else{ne=+ne+1;ie=0}}else if(ee==="<="){ee="<";if(ae){re=+re+1}else{ne=+ne+1}}if(ee==="<")oe="-0";J=`${ee+re}.${ne}.${ie}${oe}`}else if(ae){J=`>=${re}.0.0${oe} <${+re+1}.0.0-0`}else if(ue){J=`>=${re}.${ne}.0${oe} <${re}.${+ne+1}.0-0`}te("xRange return",J);return J}))};const replaceStars=(b,S)=>{te("replaceStars",b,S);return b.trim().replace(ne[ie.STAR],"")};const replaceGTE0=(b,S)=>{te("replaceGTE0",b,S);return b.trim().replace(ne[S.includePrerelease?ie.GTE0PRE:ie.GTE0],"")};const hyphenReplace=b=>(S,J,ee,te,re,ne,ie,oe,se,ae,ue,ce,le)=>{if(isX(ee)){J=""}else if(isX(te)){J=`>=${ee}.0.0${b?"-0":""}`}else if(isX(re)){J=`>=${ee}.${te}.0${b?"-0":""}`}else if(ne){J=`>=${J}`}else{J=`>=${J}${b?"-0":""}`}if(isX(se)){oe=""}else if(isX(ae)){oe=`<${+se+1}.0.0-0`}else if(isX(ue)){oe=`<${se}.${+ae+1}.0-0`}else if(ce){oe=`<=${se}.${ae}.${ue}-${ce}`}else if(b){oe=`<${se}.${ae}.${+ue+1}-0`}else{oe=`<=${oe}`}return`${J} ${oe}`.trim()};const testSet=(b,S,J)=>{for(let J=0;J<b.length;J++){if(!b[J].test(S)){return false}}if(S.prerelease.length&&!J.includePrerelease){for(let J=0;J<b.length;J++){te(b[J].semver);if(b[J].semver===ee.ANY){continue}if(b[J].semver.prerelease.length>0){const ee=b[J].semver;if(ee.major===S.major&&ee.minor===S.minor&&ee.patch===S.patch){return true}}}return false}return true}},22828:(b,S,J)=>{const ee=J(53023);const{MAX_LENGTH:te,MAX_SAFE_INTEGER:re}=J(85585);const{re:ne,t:ie}=J(21962);const{compareIdentifiers:oe}=J(88143);class SemVer{constructor(b,S){if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof SemVer){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{b=b.version}}else if(typeof b!=="string"){throw new TypeError(`Invalid Version: ${b}`)}if(b.length>te){throw new TypeError(`version is longer than ${te} characters`)}ee("SemVer",b,S);this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;const J=b.trim().match(S.loose?ne[ie.LOOSE]:ne[ie.FULL]);if(!J){throw new TypeError(`Invalid Version: ${b}`)}this.raw=b;this.major=+J[1];this.minor=+J[2];this.patch=+J[3];if(this.major>re||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>re||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>re||this.patch<0){throw new TypeError("Invalid patch version")}if(!J[4]){this.prerelease=[]}else{this.prerelease=J[4].split(".").map((b=>{if(/^[0-9]+$/.test(b)){const S=+b;if(S>=0&&S<re){return S}}return b}))}this.build=J[5]?J[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(b){ee("SemVer.compare",this.version,this.options,b);if(!(b instanceof SemVer)){if(typeof b==="string"&&b===this.version){return 0}b=new SemVer(b,this.options)}if(b.version===this.version){return 0}return this.compareMain(b)||this.comparePre(b)}compareMain(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}return oe(this.major,b.major)||oe(this.minor,b.minor)||oe(this.patch,b.patch)}comparePre(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}if(this.prerelease.length&&!b.prerelease.length){return-1}else if(!this.prerelease.length&&b.prerelease.length){return 1}else if(!this.prerelease.length&&!b.prerelease.length){return 0}let S=0;do{const J=this.prerelease[S];const te=b.prerelease[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return oe(J,te)}}while(++S)}compareBuild(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}let S=0;do{const J=this.build[S];const te=b.build[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return oe(J,te)}}while(++S)}inc(b,S){switch(b){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",S);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",S);break;case"prepatch":this.prerelease.length=0;this.inc("patch",S);this.inc("pre",S);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",S)}this.inc("pre",S);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let b=this.prerelease.length;while(--b>=0){if(typeof this.prerelease[b]==="number"){this.prerelease[b]++;b=-2}}if(b===-1){this.prerelease.push(0)}}if(S){if(this.prerelease[0]===S){if(isNaN(this.prerelease[1])){this.prerelease=[S,0]}}else{this.prerelease=[S,0]}}break;default:throw new Error(`invalid increment argument: ${b}`)}this.format();this.raw=this.version;return this}}b.exports=SemVer},3413:(b,S,J)=>{const ee=J(2473);const clean=(b,S)=>{const J=ee(b.trim().replace(/^[=v]+/,""),S);return J?J.version:null};b.exports=clean},75344:(b,S,J)=>{const ee=J(47498);const te=J(88873);const re=J(60245);const ne=J(89537);const ie=J(71927);const oe=J(99818);const cmp=(b,S,J,se)=>{switch(S){case"===":if(typeof b==="object")b=b.version;if(typeof J==="object")J=J.version;return b===J;case"!==":if(typeof b==="object")b=b.version;if(typeof J==="object")J=J.version;return b!==J;case"":case"=":case"==":return ee(b,J,se);case"!=":return te(b,J,se);case">":return re(b,J,se);case">=":return ne(b,J,se);case"<":return ie(b,J,se);case"<=":return oe(b,J,se);default:throw new TypeError(`Invalid operator: ${S}`)}};b.exports=cmp},99886:(b,S,J)=>{const ee=J(22828);const te=J(2473);const{re:re,t:ne}=J(21962);const coerce=(b,S)=>{if(b instanceof ee){return b}if(typeof b==="number"){b=String(b)}if(typeof b!=="string"){return null}S=S||{};let J=null;if(!S.rtl){J=b.match(re[ne.COERCE])}else{let S;while((S=re[ne.COERCERTL].exec(b))&&(!J||J.index+J[0].length!==b.length)){if(!J||S.index+S[0].length!==J.index+J[0].length){J=S}re[ne.COERCERTL].lastIndex=S.index+S[1].length+S[2].length}re[ne.COERCERTL].lastIndex=-1}if(J===null)return null;return te(`${J[2]}.${J[3]||"0"}.${J[4]||"0"}`,S)};b.exports=coerce},43868:(b,S,J)=>{const ee=J(22828);const compareBuild=(b,S,J)=>{const te=new ee(b,J);const re=new ee(S,J);return te.compare(re)||te.compareBuild(re)};b.exports=compareBuild},31526:(b,S,J)=>{const ee=J(56419);const compareLoose=(b,S)=>ee(b,S,true);b.exports=compareLoose},56419:(b,S,J)=>{const ee=J(22828);const compare=(b,S,J)=>new ee(b,J).compare(new ee(S,J));b.exports=compare},20213:(b,S,J)=>{const ee=J(2473);const te=J(47498);const diff=(b,S)=>{if(te(b,S)){return null}else{const J=ee(b);const te=ee(S);const re=J.prerelease.length||te.prerelease.length;const ne=re?"pre":"";const ie=re?"prerelease":"";for(const b in J){if(b==="major"||b==="minor"||b==="patch"){if(J[b]!==te[b]){return ne+b}}}return ie}};b.exports=diff},47498:(b,S,J)=>{const ee=J(56419);const eq=(b,S,J)=>ee(b,S,J)===0;b.exports=eq},60245:(b,S,J)=>{const ee=J(56419);const gt=(b,S,J)=>ee(b,S,J)>0;b.exports=gt},89537:(b,S,J)=>{const ee=J(56419);const gte=(b,S,J)=>ee(b,S,J)>=0;b.exports=gte},56767:(b,S,J)=>{const ee=J(22828);const inc=(b,S,J,te)=>{if(typeof J==="string"){te=J;J=undefined}try{return new ee(b,J).inc(S,te).version}catch(b){return null}};b.exports=inc},71927:(b,S,J)=>{const ee=J(56419);const lt=(b,S,J)=>ee(b,S,J)<0;b.exports=lt},99818:(b,S,J)=>{const ee=J(56419);const lte=(b,S,J)=>ee(b,S,J)<=0;b.exports=lte},61941:(b,S,J)=>{const ee=J(22828);const major=(b,S)=>new ee(b,S).major;b.exports=major},56770:(b,S,J)=>{const ee=J(22828);const minor=(b,S)=>new ee(b,S).minor;b.exports=minor},88873:(b,S,J)=>{const ee=J(56419);const neq=(b,S,J)=>ee(b,S,J)!==0;b.exports=neq},2473:(b,S,J)=>{const{MAX_LENGTH:ee}=J(85585);const{re:te,t:re}=J(21962);const ne=J(22828);const parse=(b,S)=>{if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof ne){return b}if(typeof b!=="string"){return null}if(b.length>ee){return null}const J=S.loose?te[re.LOOSE]:te[re.FULL];if(!J.test(b)){return null}try{return new ne(b,S)}catch(b){return null}};b.exports=parse},56952:(b,S,J)=>{const ee=J(22828);const patch=(b,S)=>new ee(b,S).patch;b.exports=patch},4359:(b,S,J)=>{const ee=J(2473);const prerelease=(b,S)=>{const J=ee(b,S);return J&&J.prerelease.length?J.prerelease:null};b.exports=prerelease},79995:(b,S,J)=>{const ee=J(56419);const rcompare=(b,S,J)=>ee(S,b,J);b.exports=rcompare},78405:(b,S,J)=>{const ee=J(43868);const rsort=(b,S)=>b.sort(((b,J)=>ee(J,b,S)));b.exports=rsort},90244:(b,S,J)=>{const ee=J(9349);const satisfies=(b,S,J)=>{try{S=new ee(S,J)}catch(b){return false}return S.test(b)};b.exports=satisfies},24893:(b,S,J)=>{const ee=J(43868);const sort=(b,S)=>b.sort(((b,J)=>ee(b,J,S)));b.exports=sort},52410:(b,S,J)=>{const ee=J(2473);const valid=(b,S)=>{const J=ee(b,S);return J?J.version:null};b.exports=valid},92901:(b,S,J)=>{const ee=J(21962);b.exports={re:ee.re,src:ee.src,tokens:ee.t,SEMVER_SPEC_VERSION:J(85585).SEMVER_SPEC_VERSION,SemVer:J(22828),compareIdentifiers:J(88143).compareIdentifiers,rcompareIdentifiers:J(88143).rcompareIdentifiers,parse:J(2473),valid:J(52410),clean:J(3413),inc:J(56767),diff:J(20213),major:J(61941),minor:J(56770),patch:J(56952),prerelease:J(4359),compare:J(56419),rcompare:J(79995),compareLoose:J(31526),compareBuild:J(43868),sort:J(24893),rsort:J(78405),gt:J(60245),lt:J(71927),eq:J(47498),neq:J(88873),gte:J(89537),lte:J(99818),cmp:J(75344),coerce:J(99886),Comparator:J(53544),Range:J(9349),satisfies:J(90244),toComparators:J(32579),maxSatisfying:J(1126),minSatisfying:J(18260),minVersion:J(12037),validRange:J(17981),outside:J(85409),gtr:J(5401),ltr:J(84856),intersects:J(33186),simplifyRange:J(35151),subset:J(99318)}},85585:b=>{const S="2.0.0";const J=256;const ee=Number.MAX_SAFE_INTEGER||9007199254740991;const te=16;b.exports={SEMVER_SPEC_VERSION:S,MAX_LENGTH:J,MAX_SAFE_INTEGER:ee,MAX_SAFE_COMPONENT_LENGTH:te}},53023:b=>{const S=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...b)=>console.error("SEMVER",...b):()=>{};b.exports=S},88143:b=>{const S=/^[0-9]+$/;const compareIdentifiers=(b,J)=>{const ee=S.test(b);const te=S.test(J);if(ee&&te){b=+b;J=+J}return b===J?0:ee&&!te?-1:te&&!ee?1:b<J?-1:1};const rcompareIdentifiers=(b,S)=>compareIdentifiers(S,b);b.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},21962:(b,S,J)=>{const{MAX_SAFE_COMPONENT_LENGTH:ee}=J(85585);const te=J(53023);S=b.exports={};const re=S.re=[];const ne=S.src=[];const ie=S.t={};let oe=0;const createToken=(b,S,J)=>{const ee=oe++;te(ee,S);ie[b]=ee;ne[ee]=S;re[ee]=new RegExp(S,J?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${ne[ie.NUMERICIDENTIFIER]})\\.`+`(${ne[ie.NUMERICIDENTIFIER]})\\.`+`(${ne[ie.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${ne[ie.NUMERICIDENTIFIERLOOSE]})\\.`+`(${ne[ie.NUMERICIDENTIFIERLOOSE]})\\.`+`(${ne[ie.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${ne[ie.NUMERICIDENTIFIER]}|${ne[ie.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${ne[ie.NUMERICIDENTIFIERLOOSE]}|${ne[ie.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${ne[ie.PRERELEASEIDENTIFIER]}(?:\\.${ne[ie.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${ne[ie.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ne[ie.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${ne[ie.BUILDIDENTIFIER]}(?:\\.${ne[ie.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${ne[ie.MAINVERSION]}${ne[ie.PRERELEASE]}?${ne[ie.BUILD]}?`);createToken("FULL",`^${ne[ie.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${ne[ie.MAINVERSIONLOOSE]}${ne[ie.PRERELEASELOOSE]}?${ne[ie.BUILD]}?`);createToken("LOOSE",`^${ne[ie.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${ne[ie.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${ne[ie.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${ne[ie.XRANGEIDENTIFIER]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIER]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIER]})`+`(?:${ne[ie.PRERELEASE]})?${ne[ie.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${ne[ie.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIERLOOSE]})`+`(?:${ne[ie.PRERELEASELOOSE]})?${ne[ie.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${ne[ie.GTLT]}\\s*${ne[ie.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${ne[ie.GTLT]}\\s*${ne[ie.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${ee}})`+`(?:\\.(\\d{1,${ee}}))?`+`(?:\\.(\\d{1,${ee}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",ne[ie.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${ne[ie.LONETILDE]}\\s+`,true);S.tildeTrimReplace="$1~";createToken("TILDE",`^${ne[ie.LONETILDE]}${ne[ie.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${ne[ie.LONETILDE]}${ne[ie.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${ne[ie.LONECARET]}\\s+`,true);S.caretTrimReplace="$1^";createToken("CARET",`^${ne[ie.LONECARET]}${ne[ie.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${ne[ie.LONECARET]}${ne[ie.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${ne[ie.GTLT]}\\s*(${ne[ie.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${ne[ie.GTLT]}\\s*(${ne[ie.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${ne[ie.GTLT]}\\s*(${ne[ie.LOOSEPLAIN]}|${ne[ie.XRANGEPLAIN]})`,true);S.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${ne[ie.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${ne[ie.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${ne[ie.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${ne[ie.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},5401:(b,S,J)=>{const ee=J(85409);const gtr=(b,S,J)=>ee(b,S,">",J);b.exports=gtr},33186:(b,S,J)=>{const ee=J(9349);const intersects=(b,S,J)=>{b=new ee(b,J);S=new ee(S,J);return b.intersects(S)};b.exports=intersects},84856:(b,S,J)=>{const ee=J(85409);const ltr=(b,S,J)=>ee(b,S,"<",J);b.exports=ltr},1126:(b,S,J)=>{const ee=J(22828);const te=J(9349);const maxSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===-1){re=b;ne=new ee(re,J)}}}));return re};b.exports=maxSatisfying},18260:(b,S,J)=>{const ee=J(22828);const te=J(9349);const minSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===1){re=b;ne=new ee(re,J)}}}));return re};b.exports=minSatisfying},12037:(b,S,J)=>{const ee=J(22828);const te=J(9349);const re=J(60245);const minVersion=(b,S)=>{b=new te(b,S);let J=new ee("0.0.0");if(b.test(J)){return J}J=new ee("0.0.0-0");if(b.test(J)){return J}J=null;for(let S=0;S<b.set.length;++S){const te=b.set[S];te.forEach((b=>{const S=new ee(b.semver.version);switch(b.operator){case">":if(S.prerelease.length===0){S.patch++}else{S.prerelease.push(0)}S.raw=S.format();case"":case">=":if(!J||re(J,S)){J=S}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${b.operator}`)}}))}if(J&&b.test(J)){return J}return null};b.exports=minVersion},85409:(b,S,J)=>{const ee=J(22828);const te=J(53544);const{ANY:re}=te;const ne=J(9349);const ie=J(90244);const oe=J(60245);const se=J(71927);const ae=J(99818);const ue=J(89537);const outside=(b,S,J,ce)=>{b=new ee(b,ce);S=new ne(S,ce);let le,pe,fe,de,he;switch(J){case">":le=oe;pe=ae;fe=se;de=">";he=">=";break;case"<":le=se;pe=ue;fe=oe;de="<";he="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ie(b,S,ce)){return false}for(let J=0;J<S.set.length;++J){const ee=S.set[J];let ne=null;let ie=null;ee.forEach((b=>{if(b.semver===re){b=new te(">=0.0.0")}ne=ne||b;ie=ie||b;if(le(b.semver,ne.semver,ce)){ne=b}else if(fe(b.semver,ie.semver,ce)){ie=b}}));if(ne.operator===de||ne.operator===he){return false}if((!ie.operator||ie.operator===de)&&pe(b,ie.semver)){return false}else if(ie.operator===he&&fe(b,ie.semver)){return false}}return true};b.exports=outside},35151:(b,S,J)=>{const ee=J(90244);const te=J(56419);b.exports=(b,S,J)=>{const re=[];let ne=null;let ie=null;const oe=b.sort(((b,S)=>te(b,S,J)));for(const b of oe){const te=ee(b,S,J);if(te){ie=b;if(!ne)ne=b}else{if(ie){re.push([ne,ie])}ie=null;ne=null}}if(ne)re.push([ne,null]);const se=[];for(const[b,S]of re){if(b===S)se.push(b);else if(!S&&b===oe[0])se.push("*");else if(!S)se.push(`>=${b}`);else if(b===oe[0])se.push(`<=${S}`);else se.push(`${b} - ${S}`)}const ae=se.join(" || ");const ue=typeof S.raw==="string"?S.raw:String(S);return ae.length<ue.length?ae:S}},99318:(b,S,J)=>{const ee=J(9349);const{ANY:te}=J(53544);const re=J(90244);const ne=J(56419);const subset=(b,S,J)=>{b=new ee(b,J);S=new ee(S,J);let te=false;e:for(const ee of b.set){for(const b of S.set){const S=simpleSubset(ee,b,J);te=te||S!==null;if(S)continue e}if(te)return false}return true};const simpleSubset=(b,S,J)=>{if(b.length===1&&b[0].semver===te)return S.length===1&&S[0].semver===te;const ee=new Set;let ie,oe;for(const S of b){if(S.operator===">"||S.operator===">=")ie=higherGT(ie,S,J);else if(S.operator==="<"||S.operator==="<=")oe=lowerLT(oe,S,J);else ee.add(S.semver)}if(ee.size>1)return null;let se;if(ie&&oe){se=ne(ie.semver,oe.semver,J);if(se>0)return null;else if(se===0&&(ie.operator!==">="||oe.operator!=="<="))return null}for(const b of ee){if(ie&&!re(b,String(ie),J))return null;if(oe&&!re(b,String(oe),J))return null;for(const ee of S){if(!re(b,String(ee),J))return false}return true}let ae,ue;let ce,le;for(const b of S){le=le||b.operator===">"||b.operator===">=";ce=ce||b.operator==="<"||b.operator==="<=";if(ie){if(b.operator===">"||b.operator===">="){ae=higherGT(ie,b,J);if(ae===b)return false}else if(ie.operator===">="&&!re(ie.semver,String(b),J))return false}if(oe){if(b.operator==="<"||b.operator==="<="){ue=lowerLT(oe,b,J);if(ue===b)return false}else if(oe.operator==="<="&&!re(oe.semver,String(b),J))return false}if(!b.operator&&(oe||ie)&&se!==0)return false}if(ie&&ce&&!oe&&se!==0)return false;if(oe&&le&&!ie&&se!==0)return false;return true};const higherGT=(b,S,J)=>{if(!b)return S;const ee=ne(b.semver,S.semver,J);return ee>0?b:ee<0?S:S.operator===">"&&b.operator===">="?S:b};const lowerLT=(b,S,J)=>{if(!b)return S;const ee=ne(b.semver,S.semver,J);return ee<0?b:ee>0?S:S.operator==="<"&&b.operator==="<="?S:b};b.exports=subset},32579:(b,S,J)=>{const ee=J(9349);const toComparators=(b,S)=>new ee(b,S).set.map((b=>b.map((b=>b.value)).join(" ").trim().split(" ")));b.exports=toComparators},17981:(b,S,J)=>{const ee=J(9349);const validRange=(b,S)=>{try{return new ee(b,S).range||"*"}catch(b){return null}};b.exports=validRange},2855:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});const te=J(85665);const re=J(24456);const ne=ee(J(68746));const ie=J(8138);const oe=ee(J(41112));const se=J(84221);const ae=J(2554);const ue=J(70639);const ce=J(25823);const le=J(70026);const pe=J(88139);const fe=J(30443);const de=J(4147);let he="";const me=new ie.Command(de.name).version(de.version).arguments("<project-directory>").usage(`${ne.default.green("<project-directory>")} [options]`).description("Install expo-modules into your project").option("-s, --sdk-version <version>","Install specified expo-modules sdk version").option("--non-interactive","Disable interactive prompts").action((b=>he=b)).parse(process.argv);function getSdkVersionInfo(){const{sdkVersion:b}=me;if(b){const S=(0,le.getVersionInfo)(b);if(!S){throw new Error(`Unsupported sdkVersion: ${b}`)}return S}return(0,le.getDefaultSdkVersion)(he)}async function promptUpgradeIosDeployTargetAsync(b,S){if(!await(0,ae.shouldUpdateDeployTargetPodfileAsync)(b,S)){return true}const J=`Expo modules minimum iOS requirement is ${S}. This tool will change your iOS deployment target to ${S}.`;if(me.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function runAsync(b){he=(0,fe.normalizeProjectRoot)(he);const{expoSdkVersion:S,iosDeploymentTarget:J}=getSdkVersionInfo();if(!await promptUpgradeIosDeployTargetAsync(he,J)){return}const ee=["android","ios"];let{exp:ie}=(0,te.getConfig)(he,{skipSDKVersionRequirement:true,isModdedConfig:true});ie.sdkVersion=S;ie=(0,se.withAndroidModules)(ie);ie=(0,ue.withIosModules)(ie);ie=(0,ae.withIosDeploymentTarget)(ie,{deploymentTarget:J});ie=(0,ce.withXCParseXcodeProjectBaseMod)(ie);console.log("› Updating your project...");await(0,re.compileModsAsync)(ie,{projectRoot:he,platforms:ee});console.log("› Installing expo packages...");await(0,pe.installExpoPackageAsync)(he,S);console.log("› Installing ios pods...");await(0,pe.installPodsAsync)(he);console.log(ne.default.bold("› Installation completed!"))}(async()=>{me.parse(process.argv);try{await runAsync(de.name)}catch(b){console.error("Uncaught Error",b);process.exit(1)}})()},84221:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withAndroidModules=void 0;const ee=J(24456);const te=J(51595);const re=J(67776);const withAndroidModules=b=>(0,ee.withPlugins)(b,[re.withAndroidModulesMainApplication,te.withAndroidModulesMainActivity,withAndroidModulesSettingGradle]);S.withAndroidModules=withAndroidModules;const withAndroidModulesSettingGradle=b=>(0,ee.withSettingsGradle)(b,(b=>{if(b.modResults.contents.match("useExpoModules()")){return b}const S=b.modResults.language==="groovy";const J=S?['apply from: new File(["node", "--print", "require.resolve(\'expo/package.json\')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")',"useExpoModules()"]:["val pathExpoPackageJson = org.codehaus.groovy.runtime.ProcessGroovyMethods.getText(org.codehaus.groovy.runtime.ProcessGroovyMethods.execute(\"node --print require.resolve('expo/package.json')\", null, rootDir))",'apply(from = File(pathExpoPackageJson.trim(), "../scripts/autolinking.gradle"))','val useExpoModules = extra["useExpoModules"] as groovy.lang.Closure<Any>',"useExpoModules()"];b.modResults.contents=b.modResults.contents+`\n${J.join("\n")}`;return b}))},51595:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainActivity=S.withAndroidModulesMainActivity=void 0;const ee=J(24456);const te=J(6905);const re=J(33970);const withAndroidModulesMainActivity=b=>(0,ee.withMainActivity)(b,(b=>{b.modResults.contents=setModulesMainActivity(b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainActivity=withAndroidModulesMainActivity;function setModulesMainActivity(b,S){const J=S==="java";if(b.match(/\s+ReactActivityDelegateWrapper\(/m)!=null){return b}if(b.match(/\s+createReactActivityDelegate\(\)/m)==null){b=(0,te.addImports)(b,["com.facebook.react.ReactActivityDelegate","expo.modules.ReactActivityDelegateWrapper"],J);const S=J?["\n @Override"," protected ReactActivityDelegate createReactActivityDelegate() {"," return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," new ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"]:["\n override fun createReactActivityDelegate(): ReactActivityDelegate {"," return ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"];b=(0,te.appendContentsInsideDeclarationBlock)(b,"class MainActivity",S.join("\n"))}else if(b.match(/\bDefaultReactActivityDelegate\b/g)){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"DefaultReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find DefaultReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else if(b.match(/\s+MainActivityDelegate\s+extends\s+ReactActivityDelegate\s+\{/)!=null||b.match(/\s+MainActivityDelegate\(.+\)\s+:\s+ReactActivityDelegate.+\{/)!=null){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"MainActivityDelegate",S);if(ee==null){throw new Error("Unable to find MainActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else{b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"ReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find ReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, ${ee.code})`:`ReactActivityDelegateWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}return b}S.setModulesMainActivity=setModulesMainActivity},67776:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainApplication=S.withAndroidModulesMainApplication=void 0;const ee=J(24456);const te=J(6905);const re=J(33970);const withAndroidModulesMainApplication=b=>(0,ee.withMainApplication)(b,(b=>{b.modResults.contents=setModulesMainApplication(b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainApplication=withAndroidModulesMainApplication;function setModulesMainApplication(b,S){const J=S==="java";b=addDefaultReactNativeHostWrapperIfNeeded(b,S,J);b=addReactNativeHostWrapperIfNeeded(b,S,J);b=addReactNativeNewArchHostWrapperIfNeeded(b,S,J);b=addApplicationLifecycleDispatchImportIfNeeded(b,S,J);b=addApplicationCreateIfNeeded(b,S,J);b=addConfigurationChangeIfNeeded(b,S,J);return b}S.setModulesMainApplication=setModulesMainApplication;function addDefaultReactNativeHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.defaults\.DefaultReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*DefaultReactNativeHost\(/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,te.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"DefaultReactNativeHost",S);if(ee==null){throw new Error("Unable to find DefaultReactNativeHost new instance code block.")}const ne=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}function addReactNativeHostWrapperIfNeeded(b,S,J){if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,te.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"ReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const ne=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}function addReactNativeNewArchHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.newarchitecture\.MainApplicationReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*MainApplicationReactNativeHost\(/m)){return b}b=(0,te.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"MainApplicationReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const ne=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}function addApplicationLifecycleDispatchImportIfNeeded(b,S,J){if(b.match(/^import\s+expo\.modules\.ApplicationLifecycleDispatcher;?$/)){return b}return(0,te.addImports)(b,["expo.modules.ApplicationLifecycleDispatcher"],J)}function addApplicationCreateIfNeeded(b,S,J){if(b.match(/\s+ApplicationLifecycleDispatcher\.onApplicationCreate\(/m)){return b}return(0,te.appendContentsInsideDeclarationBlock)(b,"onCreate",` ApplicationLifecycleDispatcher.onApplicationCreate(this)${J?";":""}\n `)}function addConfigurationChangeIfNeeded(b,S,J){if(b.match(/\s+onConfigurationChanged\(/m)==null){b=(0,te.addImports)(b,["android.content.res.Configuration"],J);const S=J?["\n @Override"," public void onConfigurationChanged(Configuration newConfig) {"," super.onConfigurationChanged(newConfig);"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);"," }\n"].join("\n"):["\n override fun onConfigurationChanged(newConfig: Configuration) {"," super.onConfigurationChanged(newConfig)"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)"," }\n"].join("\n");b=(0,te.appendContentsInsideDeclarationBlock)(b,"class MainApplication",S)}else if(b.match(/\s+ApplicationLifecycleDispatcher\.onConfigurationChanged\(/m)==null){b=(0,te.appendContentsInsideDeclarationBlock)(b,"onConfigurationChanged",` ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)${J?";":""}\n `)}return b}},2554:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateDeploymentTargetXcodeProject=S.lookupReactNativeMinIosVersionSupported=S.shouldUpdateDeployTargetPodfileAsync=S.updateDeploymentTargetPodfile=S.withIosDeploymentTarget=void 0;const te=J(24456);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(12753));const oe=ee(J(92901));const se=J(40504);const ae=J(25823);const withIosDeploymentTarget=(b,S)=>{b=withIosDeploymentTargetPodfile(b,S);b=withIosDeploymentTargetXcodeProject(b,S);return b};S.withIosDeploymentTarget=withIosDeploymentTarget;const withIosDeploymentTargetPodfile=(b,S)=>(0,te.withDangerousMod)(b,["ios",async b=>{const J=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let ee=await re.default.promises.readFile(J,"utf8");ee=await updateDeploymentTargetPodfile(b.modRequest.projectRoot,ee,S.deploymentTarget);await re.default.promises.writeFile(J,ee);return b}]);function createPodfilePlatformRegExp(){return/^(\s*platform :ios,\s*)(['"][\d.]+['"]|min_ios_version_supported)/gm}async function parseVersionAsync(b,S){let J;if(S==="min_ios_version_supported"){J=await lookupReactNativeMinIosVersionSupported(b)}else{J=S.replace(/'"/g,"")}return J}async function updateDeploymentTargetPodfile(b,S,J){const ee=createPodfilePlatformRegExp().exec(S);if(ee){const te=await parseVersionAsync(b,ee[2]);if(te&&oe.default.lt(toSemVer(te),toSemVer(J))){return S.replace(createPodfilePlatformRegExp(),((b,S,ee)=>`${S}'${J}'`))}}return S}S.updateDeploymentTargetPodfile=updateDeploymentTargetPodfile;async function shouldUpdateDeployTargetPodfileAsync(b,S){const J=ne.default.join(b,"ios","Podfile");const ee=await re.default.promises.readFile(J,"utf-8");const te=createPodfilePlatformRegExp().exec(ee);if(!te){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}const ie=await parseVersionAsync(b,te[2]);if(!ie){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}return oe.default.lt(toSemVer(ie),toSemVer(S))}S.shouldUpdateDeployTargetPodfileAsync=shouldUpdateDeployTargetPodfileAsync;async function lookupReactNativeMinIosVersionSupported(b){const S=ie.default.silent(b,"react-native/scripts/react_native_pods.rb");if(!S){return null}try{const b=await re.default.promises.readFile(S,"utf-8");const J=/^def min_ios_version_supported\n\s*return\s*['"]([\d.]+)['"]/gm;const ee=J.exec(b);if(ee){return ee[1]}}catch{}return null}S.lookupReactNativeMinIosVersionSupported=lookupReactNativeMinIosVersionSupported;const withIosDeploymentTargetXcodeProject=(b,S)=>(0,ae.withXCParseXcodeProject)(b,(b=>{b.modResults=updateDeploymentTargetXcodeProject(b.modResults,S.deploymentTarget);return b}));function updateDeploymentTargetXcodeProject(b,S){var J;for(const ee of Object.values((J=b.objects)!==null&&J!==void 0?J:{})){if(ee.isa===se.ISA.XCBuildConfiguration){const{buildSettings:b}=ee;const J=b===null||b===void 0?void 0:b.IPHONEOS_DEPLOYMENT_TARGET;if(J&&oe.default.lt(toSemVer(J),toSemVer(S))){b.IPHONEOS_DEPLOYMENT_TARGET=S}}}return b}S.updateDeploymentTargetXcodeProject=updateDeploymentTargetXcodeProject;function toSemVer(b){var S;return(S=oe.default.coerce(b))!==null&&S!==void 0?S:new oe.default.SemVer("0.0.0")}},70639:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withIosModules=void 0;const ee=J(24456);const te=J(61121);const re=J(53753);const withIosModules=b=>(0,ee.withPlugins)(b,[te.withIosModulesAppDelegate,te.withIosModulesAppDelegateObjcHeader,te.withIosModulesSwiftBridgingHeader,re.withIosModulesPodfile]);S.withIosModules=withIosModules},61121:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateModulesAppDelegateSwift=S.updateModulesAppDelegateObjcHeader=S.updateModulesAppDelegateObjcImpl=S.withIosModulesSwiftBridgingHeader=S.withIosModulesAppDelegateObjcHeader=S.withIosModulesAppDelegate=void 0;const te=J(24456);const re=J(39413);const ne=ee(J(57147));const ie=J(63700);const oe=ee(J(92901));const se=J(25823);const withIosModulesAppDelegate=b=>(0,te.withAppDelegate)(b,(b=>{b.modResults.contents=["objc","objcpp"].includes(b.modResults.language)?updateModulesAppDelegateObjcImpl(b.modResults.contents,b.sdkVersion):updateModulesAppDelegateSwift(b.modResults.contents,b.sdkVersion);return b}));S.withIosModulesAppDelegate=withIosModulesAppDelegate;const withIosModulesAppDelegateObjcHeader=b=>(0,te.withDangerousMod)(b,["ios",async b=>{try{const S=te.IOSConfig.Paths.getAppDelegateObjcHeaderFilePath(b.modRequest.projectRoot);let J=await ne.default.promises.readFile(S,"utf8");J=updateModulesAppDelegateObjcHeader(J,b.sdkVersion);await ne.default.promises.writeFile(S,J)}catch{}return b}]);S.withIosModulesAppDelegateObjcHeader=withIosModulesAppDelegateObjcHeader;const withIosModulesSwiftBridgingHeader=b=>(0,se.withXCParseXcodeProject)(b,(async b=>{const S=(0,se.getDesignatedSwiftBridgingHeaderFileReference)(b.modResults);if(!S){return b}const[J]=(0,ie.sync)(`ios/${S.replace(/['"]/g,"")}`,{absolute:true,cwd:b.modRequest.projectRoot});if(!J){return b}let ee=await ne.default.promises.readFile(J,"utf8");if(!ee.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){ee=(0,re.addObjcImports)(ee,["<Expo/Expo.h>"])}await ne.default.promises.writeFile(J,ee);return b}));S.withIosModulesSwiftBridgingHeader=withIosModulesSwiftBridgingHeader;function updateModulesAppDelegateObjcImpl(b,S){const J="[super application:application didFinishLaunchingWithOptions:launchOptions];";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideObjcFunctionBlock)(b,"application:didFinishLaunchingWithOptions:",J,{position:"tailBeforeLastReturn"})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\[\[RCTBridge alloc\] initWithDelegate:/g,"[self.reactDelegate createBridgeWithDelegate:");b=b.replace(/\[\[RCTRootView alloc\] initWithBridge:/g,"[self.reactDelegate createRootViewWithBridge:");b=b.replace(/\bRCTAppSetupDefaultRootView\((.+)\)/g,((b,S)=>{const[J,ee,te]=S.split(",").map((b=>b.trim()));return`[self.reactDelegate createRootViewWithBridge:${J} moduleName:${ee} initialProperties:${te}]`}));b=b.replace(/\[UIViewController new\]/g,"[self.reactDelegate createRootViewController]")}return b}S.updateModulesAppDelegateObjcImpl=updateModulesAppDelegateObjcImpl;function updateModulesAppDelegateObjcHeader(b,S){if(!b.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){b=(0,re.addObjcImports)(b,["<Expo/Expo.h>"])}b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)RCTAppDelegate$/m,"$1EXAppDelegateWrapper");b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)UIResponder(\s+.+)$/m,"$1EXAppDelegateWrapper$2");return b}S.updateModulesAppDelegateObjcHeader=updateModulesAppDelegateObjcHeader;function updateModulesAppDelegateSwift(b,S){b=b.replace(/^(class\s+AppDelegate\s*:\s*)NSObject,\s*UIApplicationDelegate(\W+)/m,"$1AppDelegateWrapper$2");const J="super.application(application, didFinishLaunchingWithOptions: launchOptions)";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideSwiftFunctionBlock)(b,"application(_:didFinishLaunchingWithOptions:)",J,{position:"tailBeforeLastReturn",indent:4})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\bRCTBridge\(delegate:/g,"reactDelegate.createBridge(delegate:");b=b.replace(/\bRCTRootView\(bridge:/g,"reactDelegate.createRootView(bridge:");b=b.replace(/\bUIViewController\(\)/g,"reactDelegate.createRootViewController()")}return b}S.updateModulesAppDelegateSwift=updateModulesAppDelegateSwift},53753:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updatePodfile=S.withIosModulesPodfile=void 0;const te=J(24456);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));const{getProjectName:oe}=te.IOSConfig.XcodeUtils;const withIosModulesPodfile=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let J=await re.default.promises.readFile(S,"utf8");const ee=oe(b.modRequest.projectRoot);J=updatePodfile(J,ee,b.sdkVersion);await re.default.promises.writeFile(S,J);return b}]);S.withIosModulesPodfile=withIosModulesPodfile;function updatePodfile(b,S,J){if(!b.match(/^require.+'expo\/package\.json.+scripts\/autolinking/m)){b=`require File.join(File.dirname(\`node --print "require.resolve('expo/package.json')"\`), "scripts/autolinking")\n${b}`}if(!b.match(/^\s*use_expo_modules!\s*$/m)){const J=new RegExp(`(^\\s*target\\s+['"]${S}['"]\\s+do\\s*$)`,"m");b=b.replace(J,"$1\n use_expo_modules!")}if(J&&ie.default.gte(J,"44.0.0")){if(!b.match(/\bexpo_patch_react_imports!\(installer\)\b/)){const S=/(\bpost_integrate do \|installer\|)/;if(b.match(S)){b=b.replace(S,`$1\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end`)}else{b=b.replace(/(\buse_expo_modules!\n)/gm,`$1 post_integrate do |installer|\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end\n end\n`)}}}return b}S.updatePodfile=updatePodfile},25823:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getDesignatedSwiftBridgingHeaderFileReference=S.withXCParseXcodeProject=S.withXCParseXcodeProjectBaseMod=void 0;const te=J(24456);const re=ee(J(57147));const ne=J(40504);const ie="xcparseXcodeproj";const withXCParseXcodeProjectBaseMod=b=>te.BaseMods.withGeneratedBaseMods(b,{platform:"ios",skipEmptyMod:false,providers:{[ie]:te.BaseMods.provider({getFilePath({modRequest:{projectRoot:b}}){return te.IOSConfig.Paths.getPBXProjectPath(b)},async read(b){const S=await re.default.promises.readFile(b,"utf8");const J=(0,ne.parse)(S);return J},async write(b,{modResults:S}){const J=(0,ne.build)(S);await re.default.promises.writeFile(b,J)}})}});S.withXCParseXcodeProjectBaseMod=withXCParseXcodeProjectBaseMod;const withXCParseXcodeProject=(b,S)=>(0,te.withMod)(b,{platform:"ios",mod:ie,action:S});S.withXCParseXcodeProject=withXCParseXcodeProject;function getDesignatedSwiftBridgingHeaderFileReference(b){var S;for(const J of Object.values((S=b.objects)!==null&&S!==void 0?S:{})){if(J.isa===ne.ISA.XCBuildConfiguration){const b=J;const S=b.buildSettings;if(typeof S.PRODUCT_NAME!=="undefined"&&typeof S.SWIFT_OBJC_BRIDGING_HEADER==="string"&&S.SWIFT_OBJC_BRIDGING_HEADER){return S.SWIFT_OBJC_BRIDGING_HEADER}}}return null}S.getDesignatedSwiftBridgingHeaderFileReference=getDesignatedSwiftBridgingHeaderFileReference},70026:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getVersionInfo=S.getLatestSdkVersion=S.getDefaultSdkVersion=S.ExpoVersionMappings=void 0;const te=ee(J(12753));const re=ee(J(92901));S.ExpoVersionMappings=[{expoSdkVersion:"48.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.71.0"},{expoSdkVersion:"47.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.70.0"},{expoSdkVersion:"46.0.0",iosDeploymentTarget:"12.4",reactNativeVersionRange:">= 0.69.0"},{expoSdkVersion:"45.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:">= 0.65.0"},{expoSdkVersion:"44.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"},{expoSdkVersion:"43.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"}];function getDefaultSdkVersion(b){const J=te.default.silent(b,"react-native/package.json");if(!J){throw new Error(`Unable to find react-native package - projectRoot[${b}]`)}const ee=require(J).version;const ne=S.ExpoVersionMappings.find((b=>re.default.satisfies(ee,b.reactNativeVersionRange)));if(!ne){throw new Error(`Unable to find compatible expo sdk version - reactNativeVersion[${ee}]`)}return ne}S.getDefaultSdkVersion=getDefaultSdkVersion;function getLatestSdkVersion(){return S.ExpoVersionMappings[0]}S.getLatestSdkVersion=getLatestSdkVersion;function getVersionInfo(b){var J;return(J=S.ExpoVersionMappings.find((S=>S.expoSdkVersion===b)))!==null&&J!==void 0?J:null}S.getVersionInfo=getVersionInfo},88139:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.installPodsAsync=S.installExpoPackageAsync=void 0;const ie=re(J(67754));const oe=ne(J(71017));const se=ne(J(92901));function installPackageNonInteractiveAsync(b,S){const J=ie.isUsingYarn(b);const ee=ie.createForProject(b);if(J){return ee.addWithParametersAsync([S],["--non-interactive"])}else{return ee.addAsync(S)}}async function installExpoPackageAsync(b,S){try{await installPackageNonInteractiveAsync(b,`expo@^${S}`)}catch{await installPackageNonInteractiveAsync(b,`expo@>=${S}-0 <${se.default.inc(S,"major")}`)}}S.installExpoPackageAsync=installExpoPackageAsync;async function installPodsAsync(b){const S=new ie.CocoaPodsPackageManager({cwd:oe.default.join(b,"ios")});await S.installAsync()}S.installPodsAsync=installPodsAsync},30443:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.normalizeProjectRoot=void 0;const te=ee(J(39491));const re=ee(J(14823));const ne=ee(J(71017));function findUpPackageJson(b){const S=re.default.sync("package.json",{cwd:b});(0,te.default)(S,`No package.json found for module "${b}"`);return S}function normalizeProjectRoot(b){return ne.default.dirname(findUpPackageJson(b!==null&&b!==void 0?b:process.cwd()))}S.normalizeProjectRoot=normalizeProjectRoot},39491:b=>{"use strict";b.exports=require("assert")},32081:b=>{"use strict";b.exports=require("child_process")},22057:b=>{"use strict";b.exports=require("constants")},6113:b=>{"use strict";b.exports=require("crypto")},9523:b=>{"use strict";b.exports=require("dns")},82361:b=>{"use strict";b.exports=require("events")},57147:b=>{"use strict";b.exports=require("fs")},98188:b=>{"use strict";b.exports=require("module")},22037:b=>{"use strict";b.exports=require("os")},71017:b=>{"use strict";b.exports=require("path")},14521:b=>{"use strict";b.exports=require("readline")},12781:b=>{"use strict";b.exports=require("stream")},71576:b=>{"use strict";b.exports=require("string_decoder")},39512:b=>{"use strict";b.exports=require("timers")},76224:b=>{"use strict";b.exports=require("tty")},57310:b=>{"use strict";b.exports=require("url")},73837:b=>{"use strict";b.exports=require("util")},71267:b=>{"use strict";b.exports=require("worker_threads")},19539:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isIdentifierChar=isIdentifierChar;S.isIdentifierName=isIdentifierName;S.isIdentifierStart=isIdentifierStart;let J="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let ee="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const te=new RegExp("["+J+"]");const re=new RegExp("["+J+ee+"]");J=ee=null;const ne=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191];const ie=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(b,S){let J=65536;for(let ee=0,te=S.length;ee<te;ee+=2){J+=S[ee];if(J>b)return false;J+=S[ee+1];if(J>=b)return true}return false}function isIdentifierStart(b){if(b<65)return b===36;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&te.test(String.fromCharCode(b))}return isInAstralSet(b,ne)}function isIdentifierChar(b){if(b<48)return b===36;if(b<58)return true;if(b<65)return false;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&re.test(String.fromCharCode(b))}return isInAstralSet(b,ne)||isInAstralSet(b,ie)}function isIdentifierName(b){let S=true;for(let J=0;J<b.length;J++){let ee=b.charCodeAt(J);if((ee&64512)===55296&&J+1<b.length){const S=b.charCodeAt(++J);if((S&64512)===56320){ee=65536+((ee&1023)<<10)+(S&1023)}}if(S){S=false;if(!isIdentifierStart(ee)){return false}}else if(!isIdentifierChar(ee)){return false}}return!S}},34679:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"isIdentifierChar",{enumerable:true,get:function(){return ee.isIdentifierChar}});Object.defineProperty(S,"isIdentifierName",{enumerable:true,get:function(){return ee.isIdentifierName}});Object.defineProperty(S,"isIdentifierStart",{enumerable:true,get:function(){return ee.isIdentifierStart}});Object.defineProperty(S,"isKeyword",{enumerable:true,get:function(){return te.isKeyword}});Object.defineProperty(S,"isReservedWord",{enumerable:true,get:function(){return te.isReservedWord}});Object.defineProperty(S,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return te.isStrictBindOnlyReservedWord}});Object.defineProperty(S,"isStrictBindReservedWord",{enumerable:true,get:function(){return te.isStrictBindReservedWord}});Object.defineProperty(S,"isStrictReservedWord",{enumerable:true,get:function(){return te.isStrictReservedWord}});var ee=J(19539);var te=J(60011)},60011:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isKeyword=isKeyword;S.isReservedWord=isReservedWord;S.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;S.isStrictBindReservedWord=isStrictBindReservedWord;S.isStrictReservedWord=isStrictReservedWord;const J={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const ee=new Set(J.keyword);const te=new Set(J.strict);const re=new Set(J.strictBind);function isReservedWord(b,S){return S&&b==="await"||b==="enum"}function isStrictReservedWord(b,S){return isReservedWord(b,S)||te.has(b)}function isStrictBindOnlyReservedWord(b){return re.has(b)}function isStrictBindReservedWord(b,S){return isStrictReservedWord(b,S)||isStrictBindOnlyReservedWord(b)}function isKeyword(b){return ee.has(b)}},40932:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=highlight;S.getChalk=getChalk;S.shouldHighlight=shouldHighlight;var ee=J(48035);var te=J(34679);var re=J(26870);const ne=new Set(["as","async","from","get","of","set"]);function getDefs(b){return{keyword:b.cyan,capitalized:b.yellow,jsxIdentifier:b.yellow,punctuator:b.yellow,number:b.magenta,string:b.green,regex:b.magenta,comment:b.grey,invalid:b.white.bgRed.bold}}const ie=/\r\n|[\n\r\u2028\u2029]/;const oe=/^[()[\]{}]$/;let se;{const b=/^[a-z][\w-]*$/i;const getTokenType=function(S,J,ee){if(S.type==="name"){if((0,te.isKeyword)(S.value)||(0,te.isStrictReservedWord)(S.value,true)||ne.has(S.value)){return"keyword"}if(b.test(S.value)&&(ee[J-1]==="<"||ee.slice(J-2,J)=="</")){return"jsxIdentifier"}if(S.value[0]!==S.value[0].toLowerCase()){return"capitalized"}}if(S.type==="punctuator"&&oe.test(S.value)){return"bracket"}if(S.type==="invalid"&&(S.value==="@"||S.value==="#")){return"punctuator"}return S.type};se=function*(b){let S;while(S=ee.default.exec(b)){const J=ee.matchToToken(S);yield{type:getTokenType(J,S.index,b),value:J.value}}}}function highlightTokens(b,S){let J="";for(const{type:ee,value:te}of se(S)){const S=b[ee];if(S){J+=te.split(ie).map((b=>S(b))).join("\n")}else{J+=te}}return J}function shouldHighlight(b){return!!re.supportsColor||b.forceColor}function getChalk(b){return b.forceColor?new re.constructor({enabled:true,level:1}):re}function highlight(b,S={}){if(b!==""&&shouldHighlight(S)){const J=getChalk(S);const ee=getDefs(J);return highlightTokens(ee,b)}else{return b}}},55462:b=>{"use strict";b.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},92610:b=>{"use strict";b.exports={i8:"3.20.0"}},4147:b=>{"use strict";b.exports=JSON.parse('{"name":"install-expo-modules","version":"0.5.0","description":"Tools to install expo-modules for existing react-native projects","main":"build","scripts":{"watch":"tsc --watch --preserveWatchOutput","watch:ncc":"yarn run build -w","build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"yarn run clean && yarn run build:prod","clean":"rimraf build ./tsconfig.tsbuildinfo","lint":"eslint .","test":"jest"},"bin":{"install-expo-modules":"./build/index.js"},"repository":{"type":"git","url":"https://github.com/expo/expo-cli.git","directory":"packages/install-expo-modules"},"keywords":["expo","expo-modules","npx","react-native","react"],"license":"MIT","bugs":{"url":"https://github.com/expo/expo-cli/issues"},"homepage":"https://github.com/expo/expo-cli/tree/main/packages/install-expo-modules#readme","files":["build","!*/__tests__/*"],"dependencies":{"@expo/config":"6.0.24","@expo/config-plugins":"4.1.5","@expo/package-manager":"0.0.56","chalk":"^4.1.2","commander":"2.20.0","find-up":"^5.0.0","glob":"7.1.6","prompts":"^2.3.2","resolve-from":"^5.0.0","semver":"7.3.2","xcparse":"^0.0.3"},"devDependencies":{"@types/prompts":"^2.0.6","@types/semver":"^6.0.0"},"publishConfig":{"access":"public"}}')}};var S={};function __nccwpck_require__(J){var ee=S[J];if(ee!==undefined){return ee.exports}var te=S[J]={id:J,loaded:false,exports:{}};var re=true;try{b[J].call(te.exports,te,te.exports,__nccwpck_require__);re=false}finally{if(re)delete S[J]}te.loaded=true;return te.exports}(()=>{__nccwpck_require__.nmd=b=>{b.paths=[];if(!b.children)b.children=[];return b}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var J=__nccwpck_require__(2855);module.exports=J})();
|
|
34
|
+
/*! For license information please see chevrotain.min.js.LICENSE.txt */!function(S,J){true?b.exports=J():0}("undefined"!=typeof self?self:this,(function(){return(()=>{var b={9515:(b,S,J)=>{var ee=J(8761)(J(7772),"DataView");b.exports=ee},9612:(b,S,J)=>{var ee=J(2118),te=J(6909),re=J(8138),ne=J(4174),ie=J(7942);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},235:(b,S,J)=>{var ee=J(3945),te=J(1846),re=J(8028),ne=J(2344),ie=J(4769);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},326:(b,S,J)=>{var ee=J(8761)(J(7772),"Map");b.exports=ee},6738:(b,S,J)=>{var ee=J(2411),te=J(6417),re=J(6928),ne=J(9493),ie=J(4150);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},2760:(b,S,J)=>{var ee=J(8761)(J(7772),"Promise");b.exports=ee},2143:(b,S,J)=>{var ee=J(8761)(J(7772),"Set");b.exports=ee},5386:(b,S,J)=>{var ee=J(6738),te=J(2842),re=J(2482);function a(b){var S=-1,J=null==b?0:b.length;for(this.__data__=new ee;++S<J;)this.add(b[S])}a.prototype.add=a.prototype.push=te,a.prototype.has=re,b.exports=a},6571:(b,S,J)=>{var ee=J(235),te=J(5243),re=J(2858),ne=J(4417),ie=J(8605),oe=J(1418);function c(b){var S=this.__data__=new ee(b);this.size=S.size}c.prototype.clear=te,c.prototype.delete=re,c.prototype.get=ne,c.prototype.has=ie,c.prototype.set=oe,b.exports=c},857:(b,S,J)=>{var ee=J(7772).Symbol;b.exports=ee},9162:(b,S,J)=>{var ee=J(7772).Uint8Array;b.exports=ee},3215:(b,S,J)=>{var ee=J(8761)(J(7772),"WeakMap");b.exports=ee},9432:b=>{b.exports=function(b,S,J){switch(J.length){case 0:return b.call(S);case 1:return b.call(S,J[0]);case 2:return b.call(S,J[0],J[1]);case 3:return b.call(S,J[0],J[1],J[2])}return b.apply(S,J)}},5338:b=>{b.exports=function(b,S,J,ee){for(var te=-1,re=null==b?0:b.length;++te<re;){var ne=b[te];S(ee,ne,J(ne),b)}return ee}},2517:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee&&!1!==S(b[J],J,b););return b}},7603:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(!S(b[J],J,b))return!1;return!0}},7552:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=0,re=[];++J<ee;){var ne=b[J];S(ne,J,b)&&(re[te++]=ne)}return re}},8333:(b,S,J)=>{var ee=J(7832);b.exports=function(b,S){return!(null==b||!b.length)&&ee(b,S,0)>-1}},4893:b=>{b.exports=function(b,S,J){for(var ee=-1,te=null==b?0:b.length;++ee<te;)if(J(S,b[ee]))return!0;return!1}},1634:(b,S,J)=>{var ee=J(6473),te=J(9631),re=J(6152),ne=J(3226),ie=J(9045),oe=J(7598),se=Object.prototype.hasOwnProperty;b.exports=function(b,S){var J=re(b),ae=!J&&te(b),ue=!J&&!ae&&ne(b),ce=!J&&!ae&&!ue&&oe(b),le=J||ae||ue||ce,pe=le?ee(b.length,String):[],fe=pe.length;for(var de in b)!S&&!se.call(b,de)||le&&("length"==de||ue&&("offset"==de||"parent"==de)||ce&&("buffer"==de||"byteLength"==de||"byteOffset"==de)||ie(de,fe))||pe.push(de);return pe}},343:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=Array(ee);++J<ee;)te[J]=S(b[J],J,b);return te}},5067:b=>{b.exports=function(b,S){for(var J=-1,ee=S.length,te=b.length;++J<ee;)b[te+J]=S[J];return b}},1207:b=>{b.exports=function(b,S,J,ee){var te=-1,re=null==b?0:b.length;for(ee&&re&&(J=b[++te]);++te<re;)J=S(J,b[te],te,b);return J}},7064:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(S(b[J],J,b))return!0;return!1}},217:b=>{b.exports=function(b){return b.split("")}},91:(b,S,J)=>{var ee=J(3940),te=J(1225),re=Object.prototype.hasOwnProperty;b.exports=function(b,S,J){var ne=b[S];re.call(b,S)&&te(ne,J)&&(void 0!==J||S in b)||ee(b,S,J)}},2218:(b,S,J)=>{var ee=J(1225);b.exports=function(b,S){for(var J=b.length;J--;)if(ee(b[J][0],S))return J;return-1}},2825:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S,J,te){return ee(b,(function(b,ee,re){S(te,b,J(b),re)})),te}},7993:(b,S,J)=>{var ee=J(752),te=J(249);b.exports=function(b,S){return b&&ee(S,te(S),b)}},5906:(b,S,J)=>{var ee=J(752),te=J(8582);b.exports=function(b,S){return b&&ee(S,te(S),b)}},3940:(b,S,J)=>{var ee=J(3043);b.exports=function(b,S,J){"__proto__"==S&&ee?ee(b,S,{configurable:!0,enumerable:!0,value:J,writable:!0}):b[S]=J}},8874:(b,S,J)=>{var ee=J(6571),te=J(2517),re=J(91),ne=J(7993),ie=J(5906),oe=J(2175),se=J(1522),ae=J(7680),ue=J(9987),ce=J(3483),le=J(6939),pe=J(940),fe=J(9917),de=J(8222),he=J(8725),me=J(6152),ge=J(3226),ye=J(4714),ve=J(9259),Te=J(3679),be=J(249),Ee=J(8582),Ae="[object Arguments]",we="[object Function]",_e="[object Object]",xe={};xe[Ae]=xe["[object Array]"]=xe["[object ArrayBuffer]"]=xe["[object DataView]"]=xe["[object Boolean]"]=xe["[object Date]"]=xe["[object Float32Array]"]=xe["[object Float64Array]"]=xe["[object Int8Array]"]=xe["[object Int16Array]"]=xe["[object Int32Array]"]=xe["[object Map]"]=xe["[object Number]"]=xe[_e]=xe["[object RegExp]"]=xe["[object Set]"]=xe["[object String]"]=xe["[object Symbol]"]=xe["[object Uint8Array]"]=xe["[object Uint8ClampedArray]"]=xe["[object Uint16Array]"]=xe["[object Uint32Array]"]=!0,xe["[object Error]"]=xe[we]=xe["[object WeakMap]"]=!1,b.exports=function t(b,S,J,Pe,Ce,ke){var Se,De=1&S,Ie=2&S,Oe=4&S;if(J&&(Se=Ce?J(b,Pe,Ce,ke):J(b)),void 0!==Se)return Se;if(!ve(b))return b;var Re=me(b);if(Re){if(Se=fe(b),!De)return se(b,Se)}else{var Ne=pe(b),Me=Ne==we||"[object GeneratorFunction]"==Ne;if(ge(b))return oe(b,De);if(Ne==_e||Ne==Ae||Me&&!Ce){if(Se=Ie||Me?{}:he(b),!De)return Ie?ue(b,ie(Se,b)):ae(b,ne(Se,b))}else{if(!xe[Ne])return Ce?b:{};Se=de(b,Ne,De)}}ke||(ke=new ee);var Fe=ke.get(b);if(Fe)return Fe;ke.set(b,Se),Te(b)?b.forEach((function(ee){Se.add(t(ee,S,J,ee,b,ke))})):ye(b)&&b.forEach((function(ee,te){Se.set(te,t(ee,S,J,te,b,ke))}));var Le=Re?void 0:(Oe?Ie?le:ce:Ie?Ee:be)(b);return te(Le||b,(function(ee,te){Le&&(ee=b[te=ee]),re(Se,te,t(ee,S,J,te,b,ke))})),Se}},9413:(b,S,J)=>{var ee=J(9259),te=Object.create,re=function(){function t(){}return function(b){if(!ee(b))return{};if(te)return te(b);t.prototype=b;var S=new t;return t.prototype=void 0,S}}();b.exports=re},5246:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(343),ie=J(7826),oe=J(9950);b.exports=function(b,S,J,se){var ae=-1,ue=te,ce=!0,le=b.length,pe=[],fe=S.length;if(!le)return pe;J&&(S=ne(S,ie(J))),se?(ue=re,ce=!1):S.length>=200&&(ue=oe,ce=!1,S=new ee(S));e:for(;++ae<le;){var de=b[ae],he=null==J?de:J(de);if(de=se||0!==de?de:0,ce&&he==he){for(var me=fe;me--;)if(S[me]===he)continue e;pe.push(de)}else ue(S,he,se)||pe.push(de)}return pe}},4303:(b,S,J)=>{var ee=J(6548),te=J(2019)(ee);b.exports=te},80:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=!0;return ee(b,(function(b,ee,te){return J=!!S(b,ee,te)})),J}},8043:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=[];return ee(b,(function(b,ee,te){S(b,ee,te)&&J.push(b)})),J}},1359:b=>{b.exports=function(b,S,J,ee){for(var te=b.length,re=J+(ee?1:-1);ee?re--:++re<te;)if(S(b[re],re,b))return re;return-1}},2034:(b,S,J)=>{var ee=J(5067),te=J(5882);b.exports=function t(b,S,J,re,ne){var ie=-1,oe=b.length;for(J||(J=te),ne||(ne=[]);++ie<oe;){var se=b[ie];S>0&&J(se)?S>1?t(se,S-1,J,re,ne):ee(ne,se):re||(ne[ne.length]=se)}return ne}},5308:(b,S,J)=>{var ee=J(5463)();b.exports=ee},6548:(b,S,J)=>{var ee=J(5308),te=J(249);b.exports=function(b,S){return b&&ee(b,S,te)}},3324:(b,S,J)=>{var ee=J(7297),te=J(3812);b.exports=function(b,S){for(var J=0,re=(S=ee(S,b)).length;null!=b&&J<re;)b=b[te(S[J++])];return J&&J==re?b:void 0}},1897:(b,S,J)=>{var ee=J(5067),te=J(6152);b.exports=function(b,S,J){var re=S(b);return te(b)?re:ee(re,J(b))}},3366:(b,S,J)=>{var ee=J(857),te=J(2107),re=J(7157),ne=ee?ee.toStringTag:void 0;b.exports=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":ne&&ne in Object(b)?te(b):re(b)}},2726:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b,J){return null!=b&&S.call(b,J)}},187:b=>{b.exports=function(b,S){return null!=b&&S in Object(b)}},7832:(b,S,J)=>{var ee=J(1359),te=J(2195),re=J(6024);b.exports=function(b,S,J){return S==S?re(b,S,J):ee(b,te,J)}},5183:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object Arguments]"==ee(b)}},8746:(b,S,J)=>{var ee=J(1952),te=J(5125);b.exports=function t(b,S,J,re,ne){return b===S||(null==b||null==S||!te(b)&&!te(S)?b!=b&&S!=S:ee(b,S,J,re,t,ne))}},1952:(b,S,J)=>{var ee=J(6571),te=J(4871),re=J(1491),ne=J(7416),ie=J(940),oe=J(6152),se=J(3226),ae=J(7598),ue="[object Arguments]",ce="[object Array]",le="[object Object]",pe=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,fe,de,he){var me=oe(b),ge=oe(S),ye=me?ce:ie(b),ve=ge?ce:ie(S),Te=(ye=ye==ue?le:ye)==le,be=(ve=ve==ue?le:ve)==le,Ee=ye==ve;if(Ee&&se(b)){if(!se(S))return!1;me=!0,Te=!1}if(Ee&&!Te)return he||(he=new ee),me||ae(b)?te(b,S,J,fe,de,he):re(b,S,ye,J,fe,de,he);if(!(1&J)){var Ae=Te&&pe.call(b,"__wrapped__"),we=be&&pe.call(S,"__wrapped__");if(Ae||we){var _e=Ae?b.value():b,xe=we?S.value():S;return he||(he=new ee),de(_e,xe,J,fe,he)}}return!!Ee&&(he||(he=new ee),ne(b,S,J,fe,de,he))}},4511:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Map]"==ee(b)}},7036:(b,S,J)=>{var ee=J(6571),te=J(8746);b.exports=function(b,S,J,re){var ne=J.length,ie=ne,oe=!re;if(null==b)return!ie;for(b=Object(b);ne--;){var se=J[ne];if(oe&&se[2]?se[1]!==b[se[0]]:!(se[0]in b))return!1}for(;++ne<ie;){var ae=(se=J[ne])[0],ue=b[ae],ce=se[1];if(oe&&se[2]){if(void 0===ue&&!(ae in b))return!1}else{var le=new ee;if(re)var pe=re(ue,ce,ae,b,S,le);if(!(void 0===pe?te(ce,ue,3,re,le):pe))return!1}}return!0}},2195:b=>{b.exports=function(b){return b!=b}},6840:(b,S,J)=>{var ee=J(1049),te=J(7394),re=J(9259),ne=J(7035),ie=/^\[object .+?Constructor\]$/,oe=Function.prototype,se=Object.prototype,ae=oe.toString,ue=se.hasOwnProperty,ce=RegExp("^"+ae.call(ue).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");b.exports=function(b){return!(!re(b)||te(b))&&(ee(b)?ce:ie).test(ne(b))}},4333:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object RegExp]"==ee(b)}},8436:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Set]"==ee(b)}},5522:(b,S,J)=>{var ee=J(3366),te=J(1158),re=J(5125),ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne["[object Arguments]"]=ne["[object Array]"]=ne["[object ArrayBuffer]"]=ne["[object Boolean]"]=ne["[object DataView]"]=ne["[object Date]"]=ne["[object Error]"]=ne["[object Function]"]=ne["[object Map]"]=ne["[object Number]"]=ne["[object Object]"]=ne["[object RegExp]"]=ne["[object Set]"]=ne["[object String]"]=ne["[object WeakMap]"]=!1,b.exports=function(b){return re(b)&&te(b.length)&&!!ne[ee(b)]}},8286:(b,S,J)=>{var ee=J(6423),te=J(4716),re=J(3059),ne=J(6152),ie=J(5798);b.exports=function(b){return"function"==typeof b?b:null==b?re:"object"==typeof b?ne(b)?te(b[0],b[1]):ee(b):ie(b)}},6411:(b,S,J)=>{var ee=J(6001),te=J(4248),re=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return te(b);var S=[];for(var J in Object(b))re.call(b,J)&&"constructor"!=J&&S.push(J);return S}},8390:(b,S,J)=>{var ee=J(9259),te=J(6001),re=J(2966),ne=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return re(b);var S=te(b),J=[];for(var ie in b)("constructor"!=ie||!S&&ne.call(b,ie))&&J.push(ie);return J}},3401:(b,S,J)=>{var ee=J(4303),te=J(7878);b.exports=function(b,S){var J=-1,re=te(b)?Array(b.length):[];return ee(b,(function(b,ee,te){re[++J]=S(b,ee,te)})),re}},6423:(b,S,J)=>{var ee=J(7036),te=J(9882),re=J(3477);b.exports=function(b){var S=te(b);return 1==S.length&&S[0][2]?re(S[0][0],S[0][1]):function(J){return J===b||ee(J,b,S)}}},4716:(b,S,J)=>{var ee=J(8746),te=J(2579),re=J(5041),ne=J(1401),ie=J(8792),oe=J(3477),se=J(3812);b.exports=function(b,S){return ne(b)&&ie(S)?oe(se(b),S):function(J){var ne=te(J,b);return void 0===ne&&ne===S?re(J,b):ee(S,ne,3)}}},3759:(b,S,J)=>{var ee=J(3324),te=J(2857),re=J(7297);b.exports=function(b,S,J){for(var ne=-1,ie=S.length,oe={};++ne<ie;){var se=S[ne],ae=ee(b,se);J(ae,se)&&te(oe,re(se,b),ae)}return oe}},256:b=>{b.exports=function(b){return function(S){return null==S?void 0:S[b]}}},2952:(b,S,J)=>{var ee=J(3324);b.exports=function(b){return function(S){return ee(S,b)}}},5877:b=>{b.exports=function(b,S,J,ee,te){return te(b,(function(b,te,re){J=ee?(ee=!1,b):S(J,b,te,re)})),J}},6060:(b,S,J)=>{var ee=J(3059),te=J(3114),re=J(5251);b.exports=function(b,S){return re(te(b,S,ee),b+"")}},2857:(b,S,J)=>{var ee=J(91),te=J(7297),re=J(9045),ne=J(9259),ie=J(3812);b.exports=function(b,S,J,oe){if(!ne(b))return b;for(var se=-1,ae=(S=te(S,b)).length,ue=ae-1,ce=b;null!=ce&&++se<ae;){var le=ie(S[se]),pe=J;if("__proto__"===le||"constructor"===le||"prototype"===le)return b;if(se!=ue){var fe=ce[le];void 0===(pe=oe?oe(fe,le,ce):void 0)&&(pe=ne(fe)?fe:re(S[se+1])?[]:{})}ee(ce,le,pe),ce=ce[le]}return b}},6532:(b,S,J)=>{var ee=J(6874),te=J(3043),re=J(3059),ne=te?function(b,S){return te(b,"toString",{configurable:!0,enumerable:!1,value:ee(S),writable:!0})}:re;b.exports=ne},9872:b=>{b.exports=function(b,S,J){var ee=-1,te=b.length;S<0&&(S=-S>te?0:te+S),(J=J>te?te:J)<0&&(J+=te),te=S>J?0:J-S>>>0,S>>>=0;for(var re=Array(te);++ee<te;)re[ee]=b[ee+S];return re}},4751:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J;return ee(b,(function(b,ee,te){return!(J=S(b,ee,te))})),!!J}},6473:b=>{b.exports=function(b,S){for(var J=-1,ee=Array(b);++J<b;)ee[J]=S(J);return ee}},1054:(b,S,J)=>{var ee=J(857),te=J(343),re=J(6152),ne=J(4795),ie=ee?ee.prototype:void 0,oe=ie?ie.toString:void 0;b.exports=function t(b){if("string"==typeof b)return b;if(re(b))return te(b,t)+"";if(ne(b))return oe?oe.call(b):"";var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},1704:(b,S,J)=>{var ee=J(2153),te=/^\s+/;b.exports=function(b){return b?b.slice(0,ee(b)+1).replace(te,""):b}},7826:b=>{b.exports=function(b){return function(S){return b(S)}}},7326:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(9950),ie=J(8803),oe=J(4207);b.exports=function(b,S,J){var se=-1,ae=te,ue=b.length,ce=!0,le=[],pe=le;if(J)ce=!1,ae=re;else if(ue>=200){var fe=S?null:ie(b);if(fe)return oe(fe);ce=!1,ae=ne,pe=new ee}else pe=S?[]:le;e:for(;++se<ue;){var de=b[se],he=S?S(de):de;if(de=J||0!==de?de:0,ce&&he==he){for(var me=pe.length;me--;)if(pe[me]===he)continue e;S&&pe.push(he),le.push(de)}else ae(pe,he,J)||(pe!==le&&pe.push(he),le.push(de))}return le}},753:(b,S,J)=>{var ee=J(343);b.exports=function(b,S){return ee(S,(function(S){return b[S]}))}},9950:b=>{b.exports=function(b,S){return b.has(S)}},9419:(b,S,J)=>{var ee=J(3059);b.exports=function(b){return"function"==typeof b?b:ee}},7297:(b,S,J)=>{var ee=J(6152),te=J(1401),re=J(4452),ne=J(6188);b.exports=function(b,S){return ee(b)?b:te(b,S)?[b]:re(ne(b))}},3895:(b,S,J)=>{var ee=J(9872);b.exports=function(b,S,J){var te=b.length;return J=void 0===J?te:J,!S&&J>=te?b:ee(b,S,J)}},897:(b,S,J)=>{var ee=J(9162);b.exports=function(b){var S=new b.constructor(b.byteLength);return new ee(S).set(new ee(b)),S}},2175:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te?ee.Buffer:void 0,ie=ne?ne.allocUnsafe:void 0;b.exports=function(b,S){if(S)return b.slice();var J=b.length,ee=ie?ie(J):new b.constructor(J);return b.copy(ee),ee}},4727:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.byteLength)}},6058:b=>{var S=/\w*$/;b.exports=function(b){var J=new b.constructor(b.source,S.exec(b));return J.lastIndex=b.lastIndex,J}},169:(b,S,J)=>{var ee=J(857),te=ee?ee.prototype:void 0,re=te?te.valueOf:void 0;b.exports=function(b){return re?Object(re.call(b)):{}}},6190:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.length)}},1522:b=>{b.exports=function(b,S){var J=-1,ee=b.length;for(S||(S=Array(ee));++J<ee;)S[J]=b[J];return S}},752:(b,S,J)=>{var ee=J(91),te=J(3940);b.exports=function(b,S,J,re){var ne=!J;J||(J={});for(var ie=-1,oe=S.length;++ie<oe;){var se=S[ie],ae=re?re(J[se],b[se],se,J,b):void 0;void 0===ae&&(ae=b[se]),ne?te(J,se,ae):ee(J,se,ae)}return J}},7680:(b,S,J)=>{var ee=J(752),te=J(633);b.exports=function(b,S){return ee(b,te(b),S)}},9987:(b,S,J)=>{var ee=J(752),te=J(2680);b.exports=function(b,S){return ee(b,te(b),S)}},4019:(b,S,J)=>{var ee=J(7772)["__core-js_shared__"];b.exports=ee},6740:(b,S,J)=>{var ee=J(5338),te=J(2825),re=J(8286),ne=J(6152);b.exports=function(b,S){return function(J,ie){var oe=ne(J)?ee:te,se=S?S():{};return oe(J,b,re(ie,2),se)}}},7263:(b,S,J)=>{var ee=J(6060),te=J(2406);b.exports=function(b){return ee((function(S,J){var ee=-1,re=J.length,ne=re>1?J[re-1]:void 0,ie=re>2?J[2]:void 0;for(ne=b.length>3&&"function"==typeof ne?(re--,ne):void 0,ie&&te(J[0],J[1],ie)&&(ne=re<3?void 0:ne,re=1),S=Object(S);++ee<re;){var oe=J[ee];oe&&b(S,oe,ee,ne)}return S}))}},2019:(b,S,J)=>{var ee=J(7878);b.exports=function(b,S){return function(J,te){if(null==J)return J;if(!ee(J))return b(J,te);for(var re=J.length,ne=S?re:-1,ie=Object(J);(S?ne--:++ne<re)&&!1!==te(ie[ne],ne,ie););return J}}},5463:b=>{b.exports=function(b){return function(S,J,ee){for(var te=-1,re=Object(S),ne=ee(S),ie=ne.length;ie--;){var oe=ne[b?ie:++te];if(!1===J(re[oe],oe,re))break}return S}}},3126:(b,S,J)=>{var ee=J(3895),te=J(3880),re=J(8435),ne=J(6188);b.exports=function(b){return function(S){S=ne(S);var J=te(S)?re(S):void 0,ie=J?J[0]:S.charAt(0),oe=J?ee(J,1).join(""):S.slice(1);return ie[b]()+oe}}},8776:(b,S,J)=>{var ee=J(8286),te=J(7878),re=J(249);b.exports=function(b){return function(S,J,ne){var ie=Object(S);if(!te(S)){var oe=ee(J,3);S=re(S),J=function(b){return oe(ie[b],b,ie)}}var se=b(S,J,ne);return se>-1?ie[oe?S[se]:se]:void 0}}},8803:(b,S,J)=>{var ee=J(2143),te=J(4291),re=J(4207),ne=ee&&1/re(new ee([,-0]))[1]==1/0?function(b){return new ee(b)}:te;b.exports=ne},3043:(b,S,J)=>{var ee=J(8761),te=function(){try{var b=ee(Object,"defineProperty");return b({},"",{}),b}catch(b){}}();b.exports=te},4871:(b,S,J)=>{var ee=J(5386),te=J(7064),re=J(9950);b.exports=function(b,S,J,ne,ie,oe){var se=1&J,ae=b.length,ue=S.length;if(ae!=ue&&!(se&&ue>ae))return!1;var ce=oe.get(b),le=oe.get(S);if(ce&&le)return ce==S&&le==b;var pe=-1,fe=!0,de=2&J?new ee:void 0;for(oe.set(b,S),oe.set(S,b);++pe<ae;){var he=b[pe],me=S[pe];if(ne)var ge=se?ne(me,he,pe,S,b,oe):ne(he,me,pe,b,S,oe);if(void 0!==ge){if(ge)continue;fe=!1;break}if(de){if(!te(S,(function(b,S){if(!re(de,S)&&(he===b||ie(he,b,J,ne,oe)))return de.push(S)}))){fe=!1;break}}else if(he!==me&&!ie(he,me,J,ne,oe)){fe=!1;break}}return oe.delete(b),oe.delete(S),fe}},1491:(b,S,J)=>{var ee=J(857),te=J(9162),re=J(1225),ne=J(4871),ie=J(5179),oe=J(4207),se=ee?ee.prototype:void 0,ae=se?se.valueOf:void 0;b.exports=function(b,S,J,ee,se,ue,ce){switch(J){case"[object DataView]":if(b.byteLength!=S.byteLength||b.byteOffset!=S.byteOffset)return!1;b=b.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(b.byteLength!=S.byteLength||!ue(new te(b),new te(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return re(+b,+S);case"[object Error]":return b.name==S.name&&b.message==S.message;case"[object RegExp]":case"[object String]":return b==S+"";case"[object Map]":var le=ie;case"[object Set]":var pe=1ⅇif(le||(le=oe),b.size!=S.size&&!pe)return!1;var fe=ce.get(b);if(fe)return fe==S;ee|=2,ce.set(b,S);var de=ne(le(b),le(S),ee,se,ue,ce);return ce.delete(b),de;case"[object Symbol]":if(ae)return ae.call(b)==ae.call(S)}return!1}},7416:(b,S,J)=>{var ee=J(3483),te=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,re,ne,ie){var oe=1&J,se=ee(b),ae=se.length;if(ae!=ee(S).length&&!oe)return!1;for(var ue=ae;ue--;){var ce=se[ue];if(!(oe?ce in S:te.call(S,ce)))return!1}var le=ie.get(b),pe=ie.get(S);if(le&&pe)return le==S&&pe==b;var fe=!0;ie.set(b,S),ie.set(S,b);for(var de=oe;++ue<ae;){var he=b[ce=se[ue]],me=S[ce];if(re)var ge=oe?re(me,he,ce,S,b,ie):re(he,me,ce,b,S,ie);if(!(void 0===ge?he===me||ne(he,me,J,re,ie):ge)){fe=!1;break}de||(de="constructor"==ce)}if(fe&&!de){var ye=b.constructor,ve=S.constructor;ye==ve||!("constructor"in b)||!("constructor"in S)||"function"==typeof ye&&ye instanceof ye&&"function"==typeof ve&&ve instanceof ve||(fe=!1)}return ie.delete(b),ie.delete(S),fe}},1242:(b,S,J)=>{var ee="object"==typeof J.g&&J.g&&J.g.Object===Object&&J.g;b.exports=ee},3483:(b,S,J)=>{var ee=J(1897),te=J(633),re=J(249);b.exports=function(b){return ee(b,re,te)}},6939:(b,S,J)=>{var ee=J(1897),te=J(2680),re=J(8582);b.exports=function(b){return ee(b,re,te)}},7937:(b,S,J)=>{var ee=J(8304);b.exports=function(b,S){var J=b.__data__;return ee(S)?J["string"==typeof S?"string":"hash"]:J.map}},9882:(b,S,J)=>{var ee=J(8792),te=J(249);b.exports=function(b){for(var S=te(b),J=S.length;J--;){var re=S[J],ne=b[re];S[J]=[re,ne,ee(ne)]}return S}},8761:(b,S,J)=>{var ee=J(6840),te=J(8109);b.exports=function(b,S){var J=te(b,S);return ee(J)?J:void 0}},7353:(b,S,J)=>{var ee=J(241)(Object.getPrototypeOf,Object);b.exports=ee},2107:(b,S,J)=>{var ee=J(857),te=Object.prototype,re=te.hasOwnProperty,ne=te.toString,ie=ee?ee.toStringTag:void 0;b.exports=function(b){var S=re.call(b,ie),J=b[ie];try{b[ie]=void 0;var ee=!0}catch(b){}var te=ne.call(b);return ee&&(S?b[ie]=J:delete b[ie]),te}},633:(b,S,J)=>{var ee=J(7552),te=J(981),re=Object.prototype.propertyIsEnumerable,ne=Object.getOwnPropertySymbols,ie=ne?function(b){return null==b?[]:(b=Object(b),ee(ne(b),(function(S){return re.call(b,S)})))}:te;b.exports=ie},2680:(b,S,J)=>{var ee=J(5067),te=J(7353),re=J(633),ne=J(981),ie=Object.getOwnPropertySymbols?function(b){for(var S=[];b;)ee(S,re(b)),b=te(b);return S}:ne;b.exports=ie},940:(b,S,J)=>{var ee=J(9515),te=J(326),re=J(2760),ne=J(2143),ie=J(3215),oe=J(3366),se=J(7035),ae="[object Map]",ue="[object Promise]",ce="[object Set]",le="[object WeakMap]",pe="[object DataView]",fe=se(ee),de=se(te),he=se(re),me=se(ne),ge=se(ie),ye=oe;(ee&&ye(new ee(new ArrayBuffer(1)))!=pe||te&&ye(new te)!=ae||re&&ye(re.resolve())!=ue||ne&&ye(new ne)!=ce||ie&&ye(new ie)!=le)&&(ye=function(b){var S=oe(b),J="[object Object]"==S?b.constructor:void 0,ee=J?se(J):"";if(ee)switch(ee){case fe:return pe;case de:return ae;case he:return ue;case me:return ce;case ge:return le}return S}),b.exports=ye},8109:b=>{b.exports=function(b,S){return null==b?void 0:b[S]}},1369:(b,S,J)=>{var ee=J(7297),te=J(9631),re=J(6152),ne=J(9045),ie=J(1158),oe=J(3812);b.exports=function(b,S,J){for(var se=-1,ae=(S=ee(S,b)).length,ue=!1;++se<ae;){var ce=oe(S[se]);if(!(ue=null!=b&&J(b,ce)))break;b=b[ce]}return ue||++se!=ae?ue:!!(ae=null==b?0:b.length)&&ie(ae)&&ne(ce,ae)&&(re(b)||te(b))}},3880:b=>{var S=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");b.exports=function(b){return S.test(b)}},2118:(b,S,J)=>{var ee=J(9191);b.exports=function(){this.__data__=ee?ee(null):{},this.size=0}},6909:b=>{b.exports=function(b){var S=this.has(b)&&delete this.__data__[b];return this.size-=S?1:0,S}},8138:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;if(ee){var J=S[b];return"__lodash_hash_undefined__"===J?void 0:J}return te.call(S,b)?S[b]:void 0}},4174:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;return ee?void 0!==S[b]:te.call(S,b)}},7942:(b,S,J)=>{var ee=J(9191);b.exports=function(b,S){var J=this.__data__;return this.size+=this.has(b)?0:1,J[b]=ee&&void 0===S?"__lodash_hash_undefined__":S,this}},9917:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b){var J=b.length,ee=new b.constructor(J);return J&&"string"==typeof b[0]&&S.call(b,"index")&&(ee.index=b.index,ee.input=b.input),ee}},8222:(b,S,J)=>{var ee=J(897),te=J(4727),re=J(6058),ne=J(169),ie=J(6190);b.exports=function(b,S,J){var oe=b.constructor;switch(S){case"[object ArrayBuffer]":return ee(b);case"[object Boolean]":case"[object Date]":return new oe(+b);case"[object DataView]":return te(b,J);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ie(b,J);case"[object Map]":return new oe;case"[object Number]":case"[object String]":return new oe(b);case"[object RegExp]":return re(b);case"[object Set]":return new oe;case"[object Symbol]":return ne(b)}}},8725:(b,S,J)=>{var ee=J(9413),te=J(7353),re=J(6001);b.exports=function(b){return"function"!=typeof b.constructor||re(b)?{}:ee(te(b))}},5882:(b,S,J)=>{var ee=J(857),te=J(9631),re=J(6152),ne=ee?ee.isConcatSpreadable:void 0;b.exports=function(b){return re(b)||te(b)||!!(ne&&b&&b[ne])}},9045:b=>{var S=/^(?:0|[1-9]\d*)$/;b.exports=function(b,J){var ee=typeof b;return!!(J=null==J?9007199254740991:J)&&("number"==ee||"symbol"!=ee&&S.test(b))&&b>-1&&b%1==0&&b<J}},2406:(b,S,J)=>{var ee=J(1225),te=J(7878),re=J(9045),ne=J(9259);b.exports=function(b,S,J){if(!ne(J))return!1;var ie=typeof S;return!!("number"==ie?te(J)&&re(S,J.length):"string"==ie&&S in J)&&ee(J[S],b)}},1401:(b,S,J)=>{var ee=J(6152),te=J(4795),re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/;b.exports=function(b,S){if(ee(b))return!1;var J=typeof b;return!("number"!=J&&"symbol"!=J&&"boolean"!=J&&null!=b&&!te(b))||ne.test(b)||!re.test(b)||null!=S&&b in Object(S)}},8304:b=>{b.exports=function(b){var S=typeof b;return"string"==S||"number"==S||"symbol"==S||"boolean"==S?"__proto__"!==b:null===b}},7394:(b,S,J)=>{var ee,te=J(4019),re=(ee=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"";b.exports=function(b){return!!re&&re in b}},6001:b=>{var S=Object.prototype;b.exports=function(b){var J=b&&b.constructor;return b===("function"==typeof J&&J.prototype||S)}},8792:(b,S,J)=>{var ee=J(9259);b.exports=function(b){return b==b&&!ee(b)}},3945:b=>{b.exports=function(){this.__data__=[],this.size=0}},1846:(b,S,J)=>{var ee=J(2218),te=Array.prototype.splice;b.exports=function(b){var S=this.__data__,J=ee(S,b);return!(J<0||(J==S.length-1?S.pop():te.call(S,J,1),--this.size,0))}},8028:(b,S,J)=>{var ee=J(2218);b.exports=function(b){var S=this.__data__,J=ee(S,b);return J<0?void 0:S[J][1]}},2344:(b,S,J)=>{var ee=J(2218);b.exports=function(b){return ee(this.__data__,b)>-1}},4769:(b,S,J)=>{var ee=J(2218);b.exports=function(b,S){var J=this.__data__,te=ee(J,b);return te<0?(++this.size,J.push([b,S])):J[te][1]=S,this}},2411:(b,S,J)=>{var ee=J(9612),te=J(235),re=J(326);b.exports=function(){this.size=0,this.__data__={hash:new ee,map:new(re||te),string:new ee}}},6417:(b,S,J)=>{var ee=J(7937);b.exports=function(b){var S=ee(this,b).delete(b);return this.size-=S?1:0,S}},6928:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).get(b)}},9493:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).has(b)}},4150:(b,S,J)=>{var ee=J(7937);b.exports=function(b,S){var J=ee(this,b),te=J.size;return J.set(b,S),this.size+=J.size==te?0:1,this}},5179:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b,ee){J[++S]=[ee,b]})),J}},3477:b=>{b.exports=function(b,S){return function(J){return null!=J&&J[b]===S&&(void 0!==S||b in Object(J))}}},7777:(b,S,J)=>{var ee=J(733);b.exports=function(b){var S=ee(b,(function(b){return 500===J.size&&J.clear(),b})),J=S.cache;return S}},9191:(b,S,J)=>{var ee=J(8761)(Object,"create");b.exports=ee},4248:(b,S,J)=>{var ee=J(241)(Object.keys,Object);b.exports=ee},2966:b=>{b.exports=function(b){var S=[];if(null!=b)for(var J in Object(b))S.push(J);return S}},4146:(b,S,J)=>{b=J.nmd(b);var ee=J(1242),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te&&ee.process,ie=function(){try{return re&&re.require&&re.require("util").types||ne&&ne.binding&&ne.binding("util")}catch(b){}}();b.exports=ie},7157:b=>{var S=Object.prototype.toString;b.exports=function(b){return S.call(b)}},241:b=>{b.exports=function(b,S){return function(J){return b(S(J))}}},3114:(b,S,J)=>{var ee=J(9432),te=Math.max;b.exports=function(b,S,J){return S=te(void 0===S?b.length-1:S,0),function(){for(var re=arguments,ne=-1,ie=te(re.length-S,0),oe=Array(ie);++ne<ie;)oe[ne]=re[S+ne];ne=-1;for(var se=Array(S+1);++ne<S;)se[ne]=re[ne];return se[S]=J(oe),ee(b,this,se)}}},7772:(b,S,J)=>{var ee=J(1242),te="object"==typeof self&&self&&self.Object===Object&&self,re=ee||te||Function("return this")();b.exports=re},2842:b=>{b.exports=function(b){return this.__data__.set(b,"__lodash_hash_undefined__"),this}},2482:b=>{b.exports=function(b){return this.__data__.has(b)}},4207:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b){J[++S]=b})),J}},5251:(b,S,J)=>{var ee=J(6532),te=J(7787)(ee);b.exports=te},7787:b=>{var S=Date.now;b.exports=function(b){var J=0,ee=0;return function(){var te=S(),re=16-(te-ee);if(ee=te,re>0){if(++J>=800)return arguments[0]}else J=0;return b.apply(void 0,arguments)}}},5243:(b,S,J)=>{var ee=J(235);b.exports=function(){this.__data__=new ee,this.size=0}},2858:b=>{b.exports=function(b){var S=this.__data__,J=S.delete(b);return this.size=S.size,J}},4417:b=>{b.exports=function(b){return this.__data__.get(b)}},8605:b=>{b.exports=function(b){return this.__data__.has(b)}},1418:(b,S,J)=>{var ee=J(235),te=J(326),re=J(6738);b.exports=function(b,S){var J=this.__data__;if(J instanceof ee){var ne=J.__data__;if(!te||ne.length<199)return ne.push([b,S]),this.size=++J.size,this;J=this.__data__=new re(ne)}return J.set(b,S),this.size=J.size,this}},6024:b=>{b.exports=function(b,S,J){for(var ee=J-1,te=b.length;++ee<te;)if(b[ee]===S)return ee;return-1}},8435:(b,S,J)=>{var ee=J(217),te=J(3880),re=J(3344);b.exports=function(b){return te(b)?re(b):ee(b)}},4452:(b,S,J)=>{var ee=J(7777),te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/\\(\\)?/g,ne=ee((function(b){var S=[];return 46===b.charCodeAt(0)&&S.push(""),b.replace(te,(function(b,J,ee,te){S.push(ee?te.replace(re,"$1"):J||b)})),S}));b.exports=ne},3812:(b,S,J)=>{var ee=J(4795);b.exports=function(b){if("string"==typeof b||ee(b))return b;var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},7035:b=>{var S=Function.prototype.toString;b.exports=function(b){if(null!=b){try{return S.call(b)}catch(b){}try{return b+""}catch(b){}}return""}},2153:b=>{var S=/\s/;b.exports=function(b){for(var J=b.length;J--&&S.test(b.charAt(J)););return J}},3344:b=>{var S="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",J="\\ud83c[\\udffb-\\udfff]",ee="[^\\ud800-\\udfff]",te="(?:\\ud83c[\\udde6-\\uddff]){2}",re="[\\ud800-\\udbff][\\udc00-\\udfff]",ne="(?:"+S+"|"+J+")?",ie="[\\ufe0e\\ufe0f]?",oe=ie+ne+"(?:\\u200d(?:"+[ee,te,re].join("|")+")"+ie+ne+")*",se="(?:"+[ee+S+"?",S,te,re,"[\\ud800-\\udfff]"].join("|")+")",ae=RegExp(J+"(?="+J+")|"+se+oe,"g");b.exports=function(b){return b.match(ae)||[]}},19:(b,S,J)=>{var ee=J(91),te=J(752),re=J(7263),ne=J(7878),ie=J(6001),oe=J(249),se=Object.prototype.hasOwnProperty,ae=re((function(b,S){if(ie(S)||ne(S))te(S,oe(S),b);else for(var J in S)se.call(S,J)&&ee(b,J,S[J])}));b.exports=ae},4004:(b,S,J)=>{var ee=J(8874);b.exports=function(b){return ee(b,4)}},417:b=>{b.exports=function(b){for(var S=-1,J=null==b?0:b.length,ee=0,te=[];++S<J;){var re=b[S];re&&(te[ee++]=re)}return te}},6874:b=>{b.exports=function(b){return function(){return b}}},4573:(b,S,J)=>{var ee=J(6060),te=J(1225),re=J(2406),ne=J(8582),ie=Object.prototype,oe=ie.hasOwnProperty,se=ee((function(b,S){b=Object(b);var J=-1,ee=S.length,se=ee>2?S[2]:void 0;for(se&&re(S[0],S[1],se)&&(ee=1);++J<ee;)for(var ae=S[J],ue=ne(ae),ce=-1,le=ue.length;++ce<le;){var pe=ue[ce],fe=b[pe];(void 0===fe||te(fe,ie[pe])&&!oe.call(b,pe))&&(b[pe]=ae[pe])}return b}));b.exports=se},7335:(b,S,J)=>{var ee=J(5246),te=J(2034),re=J(6060),ne=J(3746),ie=re((function(b,S){return ne(b)?ee(b,te(S,1,ne,!0)):[]}));b.exports=ie},7264:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,S<0?0:S,re)):[]}},4934:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,0,(S=re-S)<0?0:S)):[]}},1225:b=>{b.exports=function(b,S){return b===S||b!=b&&S!=S}},9794:(b,S,J)=>{var ee=J(7603),te=J(80),re=J(8286),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:te;return J&&ie(b,S,J)&&(S=void 0),oe(b,re(S,3))}},882:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S,3))}},5281:(b,S,J)=>{var ee=J(8776)(J(2982));b.exports=ee},2982:(b,S,J)=>{var ee=J(1359),te=J(8286),re=J(8101),ne=Math.max;b.exports=function(b,S,J){var ie=null==b?0:b.length;if(!ie)return-1;var oe=null==J?0:re(J);return oe<0&&(oe=ne(ie+oe,0)),ee(b,te(S,3),oe)}},3237:(b,S,J)=>{b.exports=J(1092)},5838:(b,S,J)=>{var ee=J(2034),te=J(6760);b.exports=function(b,S){return ee(te(b,S),1)}},5676:(b,S,J)=>{var ee=J(2034);b.exports=function(b){return null!=b&&b.length?ee(b,1):[]}},9756:(b,S,J)=>{var ee=J(2517),te=J(4303),re=J(9419),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S))}},2579:(b,S,J)=>{var ee=J(3324);b.exports=function(b,S,J){var te=null==b?void 0:ee(b,S);return void 0===te?J:te}},3440:(b,S,J)=>{var ee=J(3940),te=J(6740),re=Object.prototype.hasOwnProperty,ne=te((function(b,S,J){re.call(b,J)?b[J].push(S):ee(b,J,[S])}));b.exports=ne},3352:(b,S,J)=>{var ee=J(2726),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},5041:(b,S,J)=>{var ee=J(187),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},1092:b=>{b.exports=function(b){return b&&b.length?b[0]:void 0}},3059:b=>{b.exports=function(b){return b}},1886:(b,S,J)=>{var ee=J(7832),te=J(7878),re=J(5505),ne=J(8101),ie=J(8346),oe=Math.max;b.exports=function(b,S,J,se){b=te(b)?b:ie(b),J=J&&!se?ne(J):0;var ae=b.length;return J<0&&(J=oe(ae+J,0)),re(b)?J<=ae&&b.indexOf(S,J)>-1:!!ae&&ee(b,S,J)>-1}},3493:(b,S,J)=>{var ee=J(7832),te=J(8101),re=Math.max;b.exports=function(b,S,J){var ne=null==b?0:b.length;if(!ne)return-1;var ie=null==J?0:te(J);return ie<0&&(ie=re(ne+ie,0)),ee(b,S,ie)}},9631:(b,S,J)=>{var ee=J(5183),te=J(5125),re=Object.prototype,ne=re.hasOwnProperty,ie=re.propertyIsEnumerable,oe=ee(function(){return arguments}())?ee:function(b){return te(b)&&ne.call(b,"callee")&&!ie.call(b,"callee")};b.exports=oe},6152:b=>{var S=Array.isArray;b.exports=S},7878:(b,S,J)=>{var ee=J(1049),te=J(1158);b.exports=function(b){return null!=b&&te(b.length)&&!ee(b)}},3746:(b,S,J)=>{var ee=J(7878),te=J(5125);b.exports=function(b){return te(b)&&ee(b)}},3226:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=J(6330),re=S&&!S.nodeType&&S,ne=re&&b&&!b.nodeType&&b,ie=ne&&ne.exports===re?ee.Buffer:void 0,oe=(ie?ie.isBuffer:void 0)||te;b.exports=oe},5455:(b,S,J)=>{var ee=J(6411),te=J(940),re=J(9631),ne=J(6152),ie=J(7878),oe=J(3226),se=J(6001),ae=J(7598),ue=Object.prototype.hasOwnProperty;b.exports=function(b){if(null==b)return!0;if(ie(b)&&(ne(b)||"string"==typeof b||"function"==typeof b.splice||oe(b)||ae(b)||re(b)))return!b.length;var S=te(b);if("[object Map]"==S||"[object Set]"==S)return!b.size;if(se(b))return!ee(b).length;for(var J in b)if(ue.call(b,J))return!1;return!0}},1049:(b,S,J)=>{var ee=J(3366),te=J(9259);b.exports=function(b){if(!te(b))return!1;var S=ee(b);return"[object Function]"==S||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}},1158:b=>{b.exports=function(b){return"number"==typeof b&&b>-1&&b%1==0&&b<=9007199254740991}},4714:(b,S,J)=>{var ee=J(4511),te=J(7826),re=J(4146),ne=re&&re.isMap,ie=ne?te(ne):ee;b.exports=ie},9259:b=>{b.exports=function(b){var S=typeof b;return null!=b&&("object"==S||"function"==S)}},5125:b=>{b.exports=function(b){return null!=b&&"object"==typeof b}},859:(b,S,J)=>{var ee=J(4333),te=J(7826),re=J(4146),ne=re&&re.isRegExp,ie=ne?te(ne):ee;b.exports=ie},3679:(b,S,J)=>{var ee=J(8436),te=J(7826),re=J(4146),ne=re&&re.isSet,ie=ne?te(ne):ee;b.exports=ie},5505:(b,S,J)=>{var ee=J(3366),te=J(6152),re=J(5125);b.exports=function(b){return"string"==typeof b||!te(b)&&re(b)&&"[object String]"==ee(b)}},4795:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return"symbol"==typeof b||te(b)&&"[object Symbol]"==ee(b)}},7598:(b,S,J)=>{var ee=J(5522),te=J(7826),re=J(4146),ne=re&&re.isTypedArray,ie=ne?te(ne):ee;b.exports=ie},4336:b=>{b.exports=function(b){return void 0===b}},249:(b,S,J)=>{var ee=J(1634),te=J(6411),re=J(7878);b.exports=function(b){return re(b)?ee(b):te(b)}},8582:(b,S,J)=>{var ee=J(1634),te=J(8390),re=J(7878);b.exports=function(b){return re(b)?ee(b,!0):te(b)}},6974:b=>{b.exports=function(b){var S=null==b?0:b.length;return S?b[S-1]:void 0}},6760:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3401),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:re)(b,te(S,3))}},733:(b,S,J)=>{var ee=J(6738);function o(b,S){if("function"!=typeof b||null!=S&&"function"!=typeof S)throw new TypeError("Expected a function");var r=function(){var J=arguments,ee=S?S.apply(this,J):J[0],te=r.cache;if(te.has(ee))return te.get(ee);var re=b.apply(this,J);return r.cache=te.set(ee,re)||te,re};return r.cache=new(o.Cache||ee),r}o.Cache=ee,b.exports=o},1570:b=>{b.exports=function(b){if("function"!=typeof b)throw new TypeError("Expected a function");return function(){var S=arguments;switch(S.length){case 0:return!b.call(this);case 1:return!b.call(this,S[0]);case 2:return!b.call(this,S[0],S[1]);case 3:return!b.call(this,S[0],S[1],S[2])}return!b.apply(this,S)}}},4291:b=>{b.exports=function(){}},2208:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3759),ne=J(6939);b.exports=function(b,S){if(null==b)return{};var J=ee(ne(b),(function(b){return[b]}));return S=te(S),re(b,J,(function(b,J){return S(b,J[0])}))}},5798:(b,S,J)=>{var ee=J(256),te=J(2952),re=J(1401),ne=J(3812);b.exports=function(b){return re(b)?ee(ne(b)):te(b)}},8215:(b,S,J)=>{var ee=J(1207),te=J(4303),re=J(8286),ne=J(5877),ie=J(6152);b.exports=function(b,S,J){var oe=ie(b)?ee:ne,se=arguments.length<3;return oe(b,re(S,4),J,se,te)}},2070:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152),ie=J(1570);b.exports=function(b,S){return(ne(b)?ee:te)(b,ie(re(S,3)))}},1525:(b,S,J)=>{var ee=J(7064),te=J(8286),re=J(4751),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:re;return J&&ie(b,S,J)&&(S=void 0),oe(b,te(S,3))}},981:b=>{b.exports=function(){return[]}},6330:b=>{b.exports=function(){return!1}},5707:(b,S,J)=>{var ee=J(7642);b.exports=function(b){return b?Infinity===(b=ee(b))||b===-1/0?17976931348623157e292*(b<0?-1:1):b==b?b:0:0===b?b:0}},8101:(b,S,J)=>{var ee=J(5707);b.exports=function(b){var S=ee(b),J=S%1;return S==S?J?S-J:S:0}},7642:(b,S,J)=>{var ee=J(1704),te=J(9259),re=J(4795),ne=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^0o[0-7]+$/i,se=parseInt;b.exports=function(b){if("number"==typeof b)return b;if(re(b))return NaN;if(te(b)){var S="function"==typeof b.valueOf?b.valueOf():b;b=te(S)?S+"":S}if("string"!=typeof b)return 0===b?b:+b;b=ee(b);var J=ie.test(b);return J||oe.test(b)?se(b.slice(2),J?2:8):ne.test(b)?NaN:+b}},6188:(b,S,J)=>{var ee=J(1054);b.exports=function(b){return null==b?"":ee(b)}},5652:(b,S,J)=>{var ee=J(7326);b.exports=function(b){return b&&b.length?ee(b):[]}},3779:(b,S,J)=>{var ee=J(3126)("toUpperCase");b.exports=ee},8346:(b,S,J)=>{var ee=J(753),te=J(249);b.exports=function(b){return null==b?[]:ee(b,te(b))}},4844:function(b,S){var J,ee;"undefined"!=typeof self&&self,void 0===(ee="function"==typeof(J=function(){function t(){}t.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},t.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},t.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var S=this.disjunction();this.consumeChar("/");for(var J={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(J,"global");break;case"i":s(J,"ignoreCase");break;case"m":s(J,"multiLine");break;case"u":s(J,"unicode");break;case"y":s(J,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:J,value:S,loc:this.loc(0)}},t.prototype.disjunction=function(){var b=[],S=this.idx;for(b.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(S)}},t.prototype.alternative=function(){for(var b=[],S=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(S)}},t.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},t.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":var S;switch(this.consumeChar("?"),this.popChar()){case"=":S="Lookahead";break;case"!":S="NegativeLookahead"}u(S);var J=this.disjunction();return this.consumeChar(")"),{type:S,value:J,loc:this.loc(b)}}!function(){throw Error("Internal Error - Should never get here!")}()},t.prototype.quantifier=function(b){var S,J=this.idx;switch(this.popChar()){case"*":S={atLeast:0,atMost:1/0};break;case"+":S={atLeast:1,atMost:1/0};break;case"?":S={atLeast:0,atMost:1};break;case"{":var ee=this.integerIncludingZero();switch(this.popChar()){case"}":S={atLeast:ee,atMost:ee};break;case",":S=this.isDigit()?{atLeast:ee,atMost:this.integerIncludingZero()}:{atLeast:ee,atMost:1/0},this.consumeChar("}")}if(!0===b&&void 0===S)return;u(S)}if(!0!==b||void 0!==S)return u(S),"?"===this.peekChar(0)?(this.consumeChar("?"),S.greedy=!1):S.greedy=!0,S.type="Quantifier",S.loc=this.loc(J),S},t.prototype.atom=function(){var b,S=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group()}return void 0===b&&this.isPatternCharacter()&&(b=this.patternCharacter()),u(b),b.loc=this.loc(S),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},t.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},t.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},t.prototype.characterClassEscape=function(){var b,S=!1;switch(this.popChar()){case"d":b=te;break;case"D":b=te,S=!0;break;case"s":b=ne;break;case"S":b=ne,S=!0;break;case"w":b=re;break;case"W":b=re,S=!0}return u(b),{type:"Set",value:b,complement:S}},t.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=i("\f");break;case"n":b=i("\n");break;case"r":b=i("\r");break;case"t":b=i("\t");break;case"v":b=i("\v")}return u(b),{type:"Character",value:b}},t.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(!1===/[a-zA-Z]/.test(b))throw Error("Invalid ");return{type:"Character",value:b.toUpperCase().charCodeAt(0)-64}},t.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},t.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},t.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},t.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},t.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},t.prototype.characterClass=function(){var b=[],S=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),S=!0);this.isClassAtom();){var J=this.classAtom();if("Character"===J.type&&this.isRangeDash()){this.consumeChar("-");var ee=this.classAtom();if("Character"===ee.type){if(ee.value<J.value)throw Error("Range out of order in character class");b.push({from:J.value,to:ee.value})}else a(J.value,b),b.push(i("-")),a(ee.value,b)}else a(J.value,b)}return this.consumeChar("]"),{type:"Set",complement:S,value:b}},t.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},t.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++}var S=this.disjunction();this.consumeChar(")");var J={type:"Group",capturing:b,value:S};return b&&(J.idx=this.groupIdx),J},t.prototype.positiveInteger=function(){var b=this.popChar();if(!1===ee.test(b))throw Error("Expecting a positive integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.integerIncludingZero=function(){var b=this.popChar();if(!1===J.test(b))throw Error("Expecting an integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.patternCharacter=function(){var b=this.popChar();switch(b){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(b)}}},t.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},t.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},t.prototype.isDigit=function(){return J.test(this.peekChar(0))},t.prototype.isClassAtom=function(b){switch(void 0===b&&(b=0),this.peekChar(b)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},t.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},t.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},t.prototype.isQuantifier=function(){var b=this.saveState();try{return void 0!==this.quantifier(!0)}catch(b){return!1}finally{this.restoreState(b)}},t.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.parseHexDigits=function(b){for(var J="",ee=0;ee<b;ee++){var te=this.popChar();if(!1===S.test(te))throw Error("Expecting a HexDecimal digits");J+=te}return{type:"Character",value:parseInt(J,16)}},t.prototype.peekChar=function(b){return void 0===b&&(b=0),this.input[this.idx+b]},t.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},t.prototype.consumeChar=function(b){if(void 0!==b&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(b){return{begin:b,end:this.idx}};var b,S=/[0-9a-fA-F]/,J=/[0-9]/,ee=/[1-9]/;function i(b){return b.charCodeAt(0)}function a(b,S){void 0!==b.length?b.forEach((function(b){S.push(b)})):S.push(b)}function s(b,S){if(!0===b[S])throw"duplicate flag "+S;b[S]=!0}function u(b){if(void 0===b)throw Error("Internal Error - Should never get here!")}var te=[];for(b=i("0");b<=i("9");b++)te.push(b);var re=[i("_")].concat(te);for(b=i("a");b<=i("z");b++)re.push(b);for(b=i("A");b<=i("Z");b++)re.push(b);var ne=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(b){for(var S in b){var J=b[S];b.hasOwnProperty(S)&&(void 0!==J.type?this.visit(J):Array.isArray(J)&&J.forEach((function(b){this.visit(b)}),this))}},p.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b)}this.visitChildren(b)},p.prototype.visitPattern=function(b){},p.prototype.visitFlags=function(b){},p.prototype.visitDisjunction=function(b){},p.prototype.visitAlternative=function(b){},p.prototype.visitStartAnchor=function(b){},p.prototype.visitEndAnchor=function(b){},p.prototype.visitWordBoundary=function(b){},p.prototype.visitNonWordBoundary=function(b){},p.prototype.visitLookahead=function(b){},p.prototype.visitNegativeLookahead=function(b){},p.prototype.visitCharacter=function(b){},p.prototype.visitSet=function(b){},p.prototype.visitGroup=function(b){},p.prototype.visitGroupBackReference=function(b){},p.prototype.visitQuantifier=function(b){},{RegExpParser:t,BaseRegExpVisitor:p,VERSION:"0.5.0"}})?J.apply(S,[]):J)||(b.exports=ee)},5781:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.createSyntaxDiagramsCode=void 0;var ee=J(7979);S.createSyntaxDiagramsCode=function(b,S){var J=void 0===S?{}:S,te=J.resourceBase,re=void 0===te?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/"):te,ne=J.css,ie=void 0===ne?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/diagrams.css"):ne;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+"\n<link rel='stylesheet' href='".concat(ie,"'>\n")+"\n<script src='".concat(re,"vendor/railroad-diagrams.js'><\/script>\n<script src='").concat(re,"src/diagrams_builder.js'><\/script>\n<script src='").concat(re,"src/diagrams_behavior.js'><\/script>\n<script src='").concat(re,"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+"\n<script>\n window.serializedGrammar = ".concat(JSON.stringify(b,null," "),";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},4105:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defineNameProp=void 0,S.defineNameProp=function(b,S){Object.defineProperty(b,"name",{enumerable:!1,configurable:!0,writable:!1,value:S})}},3710:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.IN=void 0,S.IN="_~IN~_"},7485:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.addNoneTerminalToCst=S.addTerminalToCst=S.setNodeLocationFull=S.setNodeLocationOnlyOffset=void 0,S.setNodeLocationOnlyOffset=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.endOffset=S.endOffset):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset)},S.setNodeLocationFull=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.startColumn=S.startColumn,b.startLine=S.startLine,b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine)},S.addTerminalToCst=function(b,S,J){void 0===b.children[J]?b.children[J]=[S]:b.children[J].push(S)},S.addNoneTerminalToCst=function(b,S,J){void 0===b.children[S]?b.children[S]=[J]:b.children[S].push(J)}},8169:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateRedundantMethods=S.validateMissingCstMethods=S.validateVisitor=S.CstVisitorDefinitionError=S.createBaseVisitorConstructorWithDefaults=S.createBaseSemanticVisitorConstructor=S.defaultVisit=void 0;var te,re=ee(J(5455)),ne=ee(J(417)),ie=ee(J(6152)),oe=ee(J(6760)),se=ee(J(9756)),ae=ee(J(882)),ue=ee(J(249)),ce=ee(J(1049)),le=ee(J(4336)),pe=ee(J(1886)),fe=J(4105);function y(b,S){for(var J=(0,ue.default)(b),ee=J.length,te=0;te<ee;te++)for(var re=b[J[te]],ne=re.length,ie=0;ie<ne;ie++){var oe=re[ie];void 0===oe.tokenTypeIdx&&this[oe.name](oe.children,S)}}function m(b,S){var J=T(b,S),ee=_(b,S);return J.concat(ee)}function T(b,S){var J=(0,ae.default)(S,(function(S){return!1===(0,ce.default)(b[S])})),ee=(0,oe.default)(J,(function(S){return{msg:"Missing visitor method: <".concat(S,"> on ").concat(b.constructor.name," CST Visitor."),type:te.MISSING_METHOD,methodName:S}}));return(0,ne.default)(ee)}S.defaultVisit=y,S.createBaseSemanticVisitorConstructor=function(b,S){var r=function(){};return(0,fe.defineNameProp)(r,b+"BaseSemantics"),(r.prototype={visit:function(b,S){if((0,ie.default)(b)&&(b=b[0]),!(0,le.default)(b))return this[b.name](b.children,S)},validateVisitor:function(){var b=m(this,S);if(!(0,re.default)(b)){var J=(0,oe.default)(b,(function(b){return b.msg}));throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name,">:\n\t")+"".concat(J.join("\n\n").replace(/\n/g,"\n\t")))}}}).constructor=r,r._RULE_NAMES=S,r},S.createBaseVisitorConstructorWithDefaults=function(b,S,J){var n=function(){};(0,fe.defineNameProp)(n,b+"BaseSemanticsWithDefaults");var ee=Object.create(J.prototype);return(0,se.default)(S,(function(b){ee[b]=y})),(n.prototype=ee).constructor=n,n},function(b){b[b.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",b[b.MISSING_METHOD=1]="MISSING_METHOD"}(te=S.CstVisitorDefinitionError||(S.CstVisitorDefinitionError={})),S.validateVisitor=m,S.validateMissingCstMethods=T;var de=["constructor","visit","validateVisitor"];function _(b,S){var J=[];for(var ee in b)!(0,ce.default)(b[ee])||(0,pe.default)(de,ee)||(0,pe.default)(S,ee)||J.push({msg:"Redundant visitor method: <".concat(ee,"> on ").concat(b.constructor.name," CST Visitor\n")+"There is no Grammar Rule corresponding to this method's name.\n",type:te.REDUNDANT_METHOD,methodName:ee});return J}S.validateRedundantMethods=_},1007:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.defaultGrammarValidatorErrorProvider=S.defaultGrammarResolverErrorProvider=S.defaultParserErrorProvider=void 0;var te=J(6736),re=ee(J(3237)),ne=ee(J(6760)),ie=ee(J(8215)),oe=J(7729),se=J(7729);S.defaultParserErrorProvider={buildMismatchTokenMessage:function(b){var S=b.expected,J=b.actual,ee=(b.previous,b.ruleName,(0,te.hasTokenLabel)(S)?"--\x3e ".concat((0,te.tokenLabel)(S)," <--"):"token of type --\x3e ".concat(S.name," <--"));return"Expecting ".concat(ee," but found --\x3e '").concat(J.image,"' <--")},buildNotAllInputParsedMessage:function(b){var S=b.firstRedundant;return b.ruleName,"Redundant input, expecting EOF but found: "+S.image},buildNoViableAltMessage:function(b){var S=b.expectedPathsPerAlt,J=b.actual,ee=(b.previous,b.customUserDescription),oe=(b.ruleName,"Expecting: "),se="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return oe+ee+se;var ae=(0,ie.default)(S,(function(b,S){return b.concat(S)}),[]),ue=(0,ne.default)(ae,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(", "),"]")})),ce=(0,ne.default)(ue,(function(b,S){return" ".concat(S+1,". ").concat(b)}));return oe+"one of these possible Token sequences:\n".concat(ce.join("\n"))+se},buildEarlyExitMessage:function(b){var S=b.expectedIterationPaths,J=b.actual,ee=b.customUserDescription,ie=(b.ruleName,"Expecting: "),oe="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return ie+ee+oe;var se=(0,ne.default)(S,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(","),"]")}));return ie+"expecting at least one iteration which starts with one of these possible Token sequences::\n "+"<".concat(se.join(" ,"),">")+oe}},Object.freeze(S.defaultParserErrorProvider),S.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(b,S){return"Invalid grammar, reference to a rule which is not defined: ->"+S.nonTerminalName+"<-\ninside top level rule: ->"+b.name+"<-"}},S.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(b,S){var J,ee=b.name,te=(0,re.default)(S),ne=te.idx,ie=(0,se.getProductionDslName)(te),ae=(J=te)instanceof oe.Terminal?J.terminalType.name:J instanceof oe.NonTerminal?J.nonTerminalName:"",ue=ne>0,ce="->".concat(ie).concat(ue?ne:"","<- ").concat(ae?"with argument: ->".concat(ae,"<-"):"","\n appears more than once (").concat(S.length," times) in the top level rule: ->").concat(ee,"<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n ");return(ce=ce.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:function(b){return"Namespace conflict found in grammar.\n"+"The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(b.name,">.\n")+"To resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous alternatives: <".concat(b.ambiguityIndices.join(" ,"),"> due to common lookahead prefix\n")+"in <OR".concat(J,"> inside <").concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous Alternatives Detected: <".concat(b.ambiguityIndices.join(" ,"),"> in <OR").concat(J,">")+" inside <".concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(b){var S=(0,se.getProductionDslName)(b.repetition);return 0!==b.repetition.idx&&(S+=b.repetition.idx),"The repetition <".concat(S,"> within Rule <").concat(b.topLevelRule.name,"> can never consume any tokens.\n")+"This could lead to an infinite loop."},buildTokenNameError:function(b){return"deprecated"},buildEmptyAlternationError:function(b){return"Ambiguous empty alternative: <".concat(b.emptyChoiceIdx+1,">")+" in <OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n")+"Only the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(b){return"An Alternation cannot have more than 256 alternatives:\n"+"<OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n has ").concat(b.alternation.definition.length+1," alternatives.")},buildLeftRecursionError:function(b){var S=b.topLevelRule.name,J=(0,ne.default)(b.leftRecursionPath,(function(b){return b.name})),ee="".concat(S," --\x3e ").concat(J.concat([S]).join(" --\x3e "));return"Left Recursion found in grammar.\n"+"rule: <".concat(S,"> can be invoked from itself (directly or indirectly)\n")+"without consuming any Tokens. The grammar path that causes this is: \n ".concat(ee,"\n")+" To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."},buildInvalidRuleNameError:function(b){return"deprecated"},buildDuplicateRuleNameError:function(b){var S;return S=b.topLevelRule instanceof oe.Rule?b.topLevelRule.name:b.topLevelRule,"Duplicate definition, rule: ->".concat(S,"<- is already defined in the grammar: ->").concat(b.grammarName,"<-")}}},643:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EarlyExitException=S.NotAllInputParsedException=S.NoViableAltException=S.MismatchedTokenException=S.isRecognitionException=void 0;var ne=re(J(1886)),ie="MismatchedTokenException",oe="NoViableAltException",se="EarlyExitException",ae="NotAllInputParsedException",ue=[ie,oe,se,ae];Object.freeze(ue),S.isRecognitionException=function(b){return(0,ne.default)(ue,b.name)};var ce=function(b){function e(S,J){var ee=this.constructor,te=b.call(this,S)||this;return te.token=J,te.resyncedTokens=[],Object.setPrototypeOf(te,ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(te,te.constructor),te}return te(e,b),e}(Error),le=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=ie,te}return te(e,b),e}(ce);S.MismatchedTokenException=le;var pe=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=oe,te}return te(e,b),e}(ce);S.NoViableAltException=pe;var fe=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.name=ae,ee}return te(e,b),e}(ce);S.NotAllInputParsedException=fe;var de=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=se,te}return te(e,b),e}(ce);S.EarlyExitException=de},3870:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.checkPrefixAlternativesAmbiguities=S.validateSomeNonEmptyLookaheadPath=S.validateTooManyAlts=S.RepetitionCollector=S.validateAmbiguousAlternationAlternatives=S.validateEmptyOrAlternative=S.getFirstNoneTerminal=S.validateNoLeftRecursion=S.validateRuleIsOverridden=S.validateRuleDoesNotAlreadyExist=S.OccurrenceValidationCollector=S.identifyProductionForDuplicates=S.validateGrammar=void 0;var ne=re(J(3237)),ie=re(J(5455)),oe=re(J(7264)),se=re(J(5676)),ae=re(J(882)),ue=re(J(2070)),ce=re(J(7335)),le=re(J(6760)),pe=re(J(9756)),fe=re(J(3440)),de=re(J(8215)),he=re(J(2208)),me=re(J(8346)),ge=re(J(1886)),ye=re(J(5838)),ve=re(J(4004)),Te=J(2941),be=J(7729),Ee=J(4677),Ae=J(9985),we=J(7729),_e=J(7729),xe=re(J(4934)),Pe=re(J(417)),Ce=J(1201);function k(b){return"".concat((0,be.getProductionDslName)(b),"_#_").concat(b.idx,"_#_").concat(L(b))}function L(b){return b instanceof we.Terminal?b.terminalType.name:b instanceof we.NonTerminal?b.nonTerminalName:""}S.validateGrammar=function(b,S,J,ee,te){var re=(0,ye.default)(b,(function(b){return function(b,S){var J=new ke;b.accept(J);var ee=J.allProductions,te=(0,fe.default)(ee,k),re=(0,he.default)(te,(function(b){return b.length>1}));return(0,le.default)((0,me.default)(re),(function(J){var ee=(0,ne.default)(J),te=S.buildDuplicateFoundError(b,J),re=(0,be.getProductionDslName)(ee),ie={message:te,type:Te.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:b.name,dslName:re,occurrence:ee.idx},oe=L(ee);return oe&&(ie.parameter=oe),ie}))}(b,ee)})),oe=(0,ye.default)(b,(function(b){return D(b,b,ee)})),se=[],ae=[],ue=[];(0,ie.default)(oe)&&(se=(0,ye.default)(b,(function(b){return j(b,ee)})),ae=(0,ye.default)(b,(function(b){return U(b,S,ee)})),ue=W(b,S,ee));var ce=function(b,S,J){var ee=[],te=(0,le.default)(S,(function(b){return b.name}));return(0,pe.default)(b,(function(b){var S=b.name;if((0,ge.default)(te,S)){var re=J.buildNamespaceConflictError(b);ee.push({message:re,type:Te.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:S})}})),ee}(b,J,ee),de=(0,ye.default)(b,(function(b){return G(b,ee)})),ve=(0,ye.default)(b,(function(S){return M(S,b,te,ee)}));return re.concat(ue,oe,se,ae,ce,de,ve)},S.identifyProductionForDuplicates=k;var ke=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitNonTerminal=function(b){this.allProductions.push(b)},e.prototype.visitOption=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e.prototype.visitAlternation=function(b){this.allProductions.push(b)},e.prototype.visitTerminal=function(b){this.allProductions.push(b)},e}(_e.GAstVisitor);function M(b,S,J,ee){var te=[];if((0,de.default)(S,(function(S,J){return J.name===b.name?S+1:S}),0)>1){var re=ee.buildDuplicateRuleNameError({topLevelRule:b,grammarName:J});te.push({message:re,type:Te.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b.name})}return te}function D(b,S,J,ee){void 0===ee&&(ee=[]);var te=[],re=w(S.definition);if((0,ie.default)(re))return[];var ne=b.name;(0,ge.default)(re,b)&&te.push({message:J.buildLeftRecursionError({topLevelRule:b,leftRecursionPath:ee}),type:Te.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:ne});var oe=(0,ce.default)(re,ee.concat([b])),se=(0,ye.default)(oe,(function(S){var te=(0,ve.default)(ee);return te.push(S),D(b,S,J,te)}));return te.concat(se)}function w(b){var S=[];if((0,ie.default)(b))return S;var J=(0,ne.default)(b);if(J instanceof we.NonTerminal)S.push(J.referencedRule);else if(J instanceof we.Alternative||J instanceof we.Option||J instanceof we.RepetitionMandatory||J instanceof we.RepetitionMandatoryWithSeparator||J instanceof we.RepetitionWithSeparator||J instanceof we.Repetition)S=S.concat(w(J.definition));else if(J instanceof we.Alternation)S=(0,se.default)((0,le.default)(J.definition,(function(b){return w(b.definition)})));else if(!(J instanceof we.Terminal))throw Error("non exhaustive match");var ee=(0,be.isOptionalProd)(J),te=b.length>1;if(ee&&te){var re=(0,oe.default)(b);return S.concat(w(re))}return S}S.OccurrenceValidationCollector=ke,S.validateRuleDoesNotAlreadyExist=M,S.validateRuleIsOverridden=function(b,S,J){var ee,te=[];return(0,ge.default)(S,b)||(ee="Invalid rule override, rule: ->".concat(b,"<- cannot be overridden in the grammar: ->").concat(J,"<-")+"as it is not defined in any of the super grammars ",te.push({message:ee,type:Te.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:b})),te},S.validateNoLeftRecursion=D,S.getFirstNoneTerminal=w;var Se=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.alternations=[],S}return te(e,b),e.prototype.visitAlternation=function(b){this.alternations.push(b)},e}(_e.GAstVisitor);function j(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){var ee=(0,xe.default)(J.definition);return(0,ye.default)(ee,(function(ee,te){var re=(0,Ae.nextPossibleTokensAfter)([ee],[],Ce.tokenStructuredMatcher,1);return(0,ie.default)(re)?[{message:S.buildEmptyAlternationError({topLevelRule:b,alternation:J,emptyChoiceIdx:te}),type:Te.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:b.name,occurrence:J.idx,alternative:te+1}]:[]}))}))}function U(b,S,J){var ee=new Se;b.accept(ee);var te=ee.alternations;return te=(0,ue.default)(te,(function(b){return!0===b.ignoreAmbiguities})),(0,ye.default)(te,(function(ee){var te=ee.idx,re=ee.maxLookahead||S,ne=(0,Ee.getLookaheadPathsForOr)(te,b,re,ee),ie=function(b,S,J,ee){var te=[],re=(0,de.default)(b,(function(J,ee,re){return!0===S.definition[re].ignoreAmbiguities||(0,pe.default)(ee,(function(ee){var ne=[re];(0,pe.default)(b,(function(b,J){re!==J&&(0,Ee.containsPath)(b,ee)&&!0!==S.definition[J].ignoreAmbiguities&&ne.push(J)})),ne.length>1&&!(0,Ee.containsPath)(te,ee)&&(te.push(ee),J.push({alts:ne,path:ee}))})),J}),[]);return(0,le.default)(re,(function(b){var te=(0,le.default)(b.alts,(function(b){return b+1}));return{message:ee.buildAlternationAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:J.name,occurrence:S.idx,alternatives:b.alts}}))}(ne,ee,b,J),oe=V(ne,ee,b,J);return ie.concat(oe)}))}S.validateEmptyOrAlternative=j,S.validateAmbiguousAlternationAlternatives=U;var De=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e}(_e.GAstVisitor);function G(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){return J.definition.length>255?[{message:S.buildTooManyAlternativesError({topLevelRule:b,alternation:J}),type:Te.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:b.name,occurrence:J.idx}]:[]}))}function W(b,S,J){var ee=[];return(0,pe.default)(b,(function(b){var te=new De;b.accept(te);var re=te.allProductions;(0,pe.default)(re,(function(te){var re=(0,Ee.getProdType)(te),ne=te.maxLookahead||S,oe=te.idx,ae=(0,Ee.getLookaheadPathsForOptionalProd)(oe,b,re,ne)[0];if((0,ie.default)((0,se.default)(ae))){var ue=J.buildEmptyRepetitionError({topLevelRule:b,repetition:te});ee.push({message:ue,type:Te.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:b.name})}}))})),ee}function V(b,S,J,ee){var te=(0,de.default)(b,(function(b,S,J){var ee=(0,le.default)(S,(function(b){return{idx:J,path:b}}));return b.concat(ee)}),[]);return(0,Pe.default)((0,ye.default)(te,(function(b){if(!0===S.definition[b.idx].ignoreAmbiguities)return[];var re=b.idx,ne=b.path,ie=(0,ae.default)(te,(function(b){return!0!==S.definition[b.idx].ignoreAmbiguities&&b.idx<re&&(0,Ee.isStrictPrefixOfPath)(b.path,ne)}));return(0,le.default)(ie,(function(b){var te=[b.idx+1,re+1],ne=0===S.idx?"":S.idx;return{message:ee.buildAlternationPrefixAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:J.name,occurrence:ne,alternatives:te}}))})))}S.RepetitionCollector=De,S.validateTooManyAlts=G,S.validateSomeNonEmptyLookaheadPath=W,S.checkPrefixAlternativesAmbiguities=V},8052:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.firstForTerminal=S.firstForBranching=S.firstForSequence=S.first=void 0;var te=ee(J(5676)),re=ee(J(5652)),ne=ee(J(6760)),ie=J(7729),oe=J(7729);function c(b){if(b instanceof ie.NonTerminal)return c(b.referencedRule);if(b instanceof ie.Terminal)return p(b);if((0,oe.isSequenceProd)(b))return l(b);if((0,oe.isBranchingProd)(b))return f(b);throw Error("non exhaustive match")}function l(b){for(var S,J=[],ee=b.definition,te=0,ne=ee.length>te,ie=!0;ne&&ie;)S=ee[te],ie=(0,oe.isOptionalProd)(S),J=J.concat(c(S)),te+=1,ne=ee.length>te;return(0,re.default)(J)}function f(b){var S=(0,ne.default)(b.definition,(function(b){return c(b)}));return(0,re.default)((0,te.default)(S))}function p(b){return[b.terminalType]}S.first=c,S.firstForSequence=l,S.firstForBranching=f,S.firstForTerminal=p},4917:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildInProdFollowPrefix=S.buildBetweenProdsFollowPrefix=S.computeAllProdsFollows=S.ResyncFollowsWalker=void 0;var ne=J(8567),ie=J(8052),oe=re(J(9756)),se=re(J(19)),ae=J(3710),ue=J(7729),ce=function(b){function e(S){var J=b.call(this)||this;return J.topProd=S,J.follows={},J}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(b,S,J){},e.prototype.walkProdRef=function(b,S,J){var ee=d(b.referencedRule,b.idx)+this.topProd.name,te=S.concat(J),re=new ue.Alternative({definition:te}),ne=(0,ie.first)(re);this.follows[ee]=ne},e}(ne.RestWalker);function d(b,S){return b.name+S+ae.IN}S.ResyncFollowsWalker=ce,S.computeAllProdsFollows=function(b){var S={};return(0,oe.default)(b,(function(b){var J=new ce(b).startWalking();(0,se.default)(S,J)})),S},S.buildBetweenProdsFollowPrefix=d,S.buildInProdFollowPrefix=function(b){return b.terminalType.name+b.idx+ae.IN}},1665:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateGrammar=S.resolveGrammar=void 0;var te=ee(J(9756)),re=ee(J(4573)),ne=J(6304),ie=J(3870),oe=J(1007);S.resolveGrammar=function(b){var S=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarResolverErrorProvider}),J={};return(0,te.default)(b.rules,(function(b){J[b.name]=b})),(0,ne.resolveGrammar)(J,S.errMsgProvider)},S.validateGrammar=function(b){return b=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarValidatorErrorProvider}),(0,ie.validateGrammar)(b.rules,b.maxLookahead,b.tokenTypes,b.errMsgProvider,b.grammarName)}},9985:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.nextPossibleTokensAfter=S.possiblePathsFrom=S.NextTerminalAfterAtLeastOneSepWalker=S.NextTerminalAfterAtLeastOneWalker=S.NextTerminalAfterManySepWalker=S.NextTerminalAfterManyWalker=S.AbstractNextTerminalAfterProductionWalker=S.NextAfterTokenWalker=S.AbstractNextPossibleTokensWalker=void 0;var ne=J(8567),ie=re(J(3237)),oe=re(J(5455)),se=re(J(4934)),ae=re(J(7264)),ue=re(J(6974)),ce=re(J(9756)),le=re(J(4004)),pe=J(8052),fe=J(7729),de=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topProd=S,ee.path=J,ee.possibleTokTypes=[],ee.nextProductionName="",ee.nextProductionOccurrence=0,ee.found=!1,ee.isAtEndOfPath=!1,ee}return te(e,b),e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,le.default)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,le.default)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(S,J){void 0===J&&(J=[]),this.found||b.prototype.walk.call(this,S,J)},e.prototype.walkProdRef=function(b,S,J){if(b.referencedRule.name===this.nextProductionName&&b.idx===this.nextProductionOccurrence){var ee=S.concat(J);this.updateExpectedNext(),this.walk(b.referencedRule,ee)}},e.prototype.updateExpectedNext=function(){(0,oe.default)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(ne.RestWalker);S.AbstractNextPossibleTokensWalker=de;var he=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.path=J,ee.nextTerminalName="",ee.nextTerminalOccurrence=0,ee.nextTerminalName=ee.path.lastTok.name,ee.nextTerminalOccurrence=ee.path.lastTokOccurrence,ee}return te(e,b),e.prototype.walkTerminal=function(b,S,J){if(this.isAtEndOfPath&&b.terminalType.name===this.nextTerminalName&&b.idx===this.nextTerminalOccurrence&&!this.found){var ee=S.concat(J),te=new fe.Alternative({definition:ee});this.possibleTokTypes=(0,pe.first)(te),this.found=!0}},e}(de);S.NextAfterTokenWalker=he;var me=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topRule=S,ee.occurrence=J,ee.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},ee}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(ne.RestWalker);S.AbstractNextTerminalAfterProductionWalker=me;var ge=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkMany=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkMany.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManyWalker=ge;var ye=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkManySep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkManySep.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManySepWalker=ye;var ve=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOne=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOne.call(this,S,J,ee)},e}(me);S.NextTerminalAfterAtLeastOneWalker=ve;var Te=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOneSep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOneSep.call(this,S,J,ee)},e}(me);function R(b,S,J,ee){var te=(0,le.default)(J);te.push(b.name);var re=(0,le.default)(ee);return re.push(1),{idx:S,def:b.definition,ruleStack:te,occurrenceStack:re}}S.NextTerminalAfterAtLeastOneSepWalker=Te,S.possiblePathsFrom=function t(b,S,J){void 0===J&&(J=[]),J=(0,le.default)(J);var ee=[],te=0;function a(re){var ne=t(re.concat((0,ae.default)(b,te+1)),S,J);return ee.concat(ne)}for(;J.length<S&&te<b.length;){var re=b[te];if(re instanceof fe.Alternative)return a(re.definition);if(re instanceof fe.NonTerminal)return a(re.definition);if(re instanceof fe.Option)ee=a(re.definition);else{if(re instanceof fe.RepetitionMandatory)return a(ne=re.definition.concat([new fe.Repetition({definition:re.definition})]));if(re instanceof fe.RepetitionMandatoryWithSeparator)return a(ne=[new fe.Alternative({definition:re.definition}),new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);if(re instanceof fe.RepetitionWithSeparator){var ne=re.definition.concat([new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);ee=a(ne)}else if(re instanceof fe.Repetition)ne=re.definition.concat([new fe.Repetition({definition:re.definition})]),ee=a(ne);else{if(re instanceof fe.Alternation)return(0,ce.default)(re.definition,(function(b){!1===(0,oe.default)(b.definition)&&(ee=a(b.definition))})),ee;if(!(re instanceof fe.Terminal))throw Error("non exhaustive match");J.push(re.terminalType)}}te++}return ee.push({partialPath:J,suffixDef:(0,ae.default)(b,te)}),ee},S.nextPossibleTokensAfter=function(b,S,J,ee){var te="EXIT_NONE_TERMINAL",re=[te],ne="EXIT_ALTERNATIVE",ie=!1,ce=S.length,pe=ce-ee-1,de=[],he=[];for(he.push({idx:-1,def:b,ruleStack:[],occurrenceStack:[]});!(0,oe.default)(he);){var me=he.pop();if(me!==ne){var ge=me.def,ye=me.idx,ve=me.ruleStack,Te=me.occurrenceStack;if(!(0,oe.default)(ge)){var be=ge[0];if(be===te){var Ee={idx:ye,def:(0,ae.default)(ge),ruleStack:(0,se.default)(ve),occurrenceStack:(0,se.default)(Te)};he.push(Ee)}else if(be instanceof fe.Terminal)if(ye<ce-1){var Ae=ye+1;J(S[Ae],be.terminalType)&&(Ee={idx:Ae,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(Ee))}else{if(ye!==ce-1)throw Error("non exhaustive match");de.push({nextTokenType:be.terminalType,nextTokenOccurrence:be.idx,ruleStack:ve,occurrenceStack:Te}),ie=!0}else if(be instanceof fe.NonTerminal){var we=(0,le.default)(ve);we.push(be.nonTerminalName);var _e=(0,le.default)(Te);_e.push(be.idx),Ee={idx:ye,def:be.definition.concat(re,(0,ae.default)(ge)),ruleStack:we,occurrenceStack:_e},he.push(Ee)}else if(be instanceof fe.Option){var xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te};he.push(xe),he.push(ne);var Pe={idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(Pe)}else if(be instanceof fe.RepetitionMandatory){var Ce=new fe.Repetition({definition:be.definition,idx:be.idx});Ee={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Ee)}else if(be instanceof fe.RepetitionMandatoryWithSeparator){var ke=new fe.Terminal({terminalType:be.separator});Ce=new fe.Repetition({definition:[ke].concat(be.definition),idx:be.idx}),Ee={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Ee)}else if(be instanceof fe.RepetitionWithSeparator){xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),ke=new fe.Terminal({terminalType:be.separator});var Se=new fe.Repetition({definition:[ke].concat(be.definition),idx:be.idx});Pe={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Pe)}else if(be instanceof fe.Repetition)xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),Se=new fe.Repetition({definition:be.definition,idx:be.idx}),Pe={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(Pe);else if(be instanceof fe.Alternation)for(var De=be.definition.length-1;De>=0;De--){var Ie={idx:ye,def:be.definition[De].definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(Ie),he.push(ne)}else if(be instanceof fe.Alternative)he.push({idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te});else{if(!(be instanceof fe.Rule))throw Error("non exhaustive match");he.push(R(be,ye,ve,Te))}}}else ie&&(0,ue.default)(he).idx<=pe&&he.pop()}return de}},8209:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getKeyForAutomaticLookahead=S.AT_LEAST_ONE_SEP_IDX=S.MANY_SEP_IDX=S.AT_LEAST_ONE_IDX=S.MANY_IDX=S.OPTION_IDX=S.OR_IDX=S.BITS_FOR_ALT_IDX=S.BITS_FOR_RULE_IDX=S.BITS_FOR_OCCURRENCE_IDX=S.BITS_FOR_METHOD_TYPE=void 0,S.BITS_FOR_METHOD_TYPE=4,S.BITS_FOR_OCCURRENCE_IDX=8,S.BITS_FOR_RULE_IDX=12,S.BITS_FOR_ALT_IDX=8,S.OR_IDX=1<<S.BITS_FOR_OCCURRENCE_IDX,S.OPTION_IDX=2<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_IDX=3<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_IDX=4<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_SEP_IDX=5<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_SEP_IDX=6<<S.BITS_FOR_OCCURRENCE_IDX,S.getKeyForAutomaticLookahead=function(b,S,J){return J|S|b},S.BITS_FOR_ALT_IDX},4677:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.areTokenCategoriesNotUsed=S.isStrictPrefixOfPath=S.containsPath=S.getLookaheadPathsForOptionalProd=S.getLookaheadPathsForOr=S.lookAheadSequenceFromAlternatives=S.buildSingleAlternativeLookaheadFunction=S.buildAlternativesLookAheadFunc=S.buildLookaheadFuncForOptionalProd=S.buildLookaheadFuncForOr=S.getProdType=S.PROD_TYPE=void 0;var ne,ie=re(J(5455)),oe=re(J(5676)),se=re(J(9794)),ae=re(J(6760)),ue=re(J(9756)),ce=re(J(3352)),le=re(J(8215)),pe=J(9985),fe=J(8567),de=J(1201),he=J(7729),me=J(7729);!function(b){b[b.OPTION=0]="OPTION",b[b.REPETITION=1]="REPETITION",b[b.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",b[b.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",b[b.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",b[b.ALTERNATION=5]="ALTERNATION"}(ne=S.PROD_TYPE||(S.PROD_TYPE={})),S.getProdType=function(b){if(b instanceof he.Option)return ne.OPTION;if(b instanceof he.Repetition)return ne.REPETITION;if(b instanceof he.RepetitionMandatory)return ne.REPETITION_MANDATORY;if(b instanceof he.RepetitionMandatoryWithSeparator)return ne.REPETITION_MANDATORY_WITH_SEPARATOR;if(b instanceof he.RepetitionWithSeparator)return ne.REPETITION_WITH_SEPARATOR;if(b instanceof he.Alternation)return ne.ALTERNATION;throw Error("non exhaustive match")},S.buildLookaheadFuncForOr=function(b,S,J,ee,te,re){var ne=I(b,S,J);return re(ne,ee,P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher,te)},S.buildLookaheadFuncForOptionalProd=function(b,S,J,ee,te,re){var ne=x(b,S,te,J),ie=P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher;return re(ne[0],ie,ee)},S.buildAlternativesLookAheadFunc=function(b,S,J,ee){var te=b.length,re=(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return 1===b.length}))}));if(S)return function(S){for(var ee=(0,ae.default)(S,(function(b){return b.GATE})),re=0;re<te;re++){var ne=b[re],ie=ne.length,oe=ee[re];if(void 0===oe||!1!==oe.call(this))e:for(var se=0;se<ie;se++){for(var ue=ne[se],ce=ue.length,le=0;le<ce;le++){var pe=this.LA(le+1);if(!1===J(pe,ue[le]))continue e}return re}}};if(re&&!ee){var ne=(0,ae.default)(b,(function(b){return(0,oe.default)(b)})),ie=(0,le.default)(ne,(function(b,S,J){return(0,ue.default)(S,(function(S){(0,ce.default)(b,S.tokenTypeIdx)||(b[S.tokenTypeIdx]=J),(0,ue.default)(S.categoryMatches,(function(S){(0,ce.default)(b,S)||(b[S]=J)}))})),b}),{});return function(){var b=this.LA(1);return ie[b.tokenTypeIdx]}}return function(){for(var S=0;S<te;S++){var ee=b[S],re=ee.length;e:for(var ne=0;ne<re;ne++){for(var ie=ee[ne],oe=ie.length,se=0;se<oe;se++){var ae=this.LA(se+1);if(!1===J(ae,ie[se]))continue e}return S}}}},S.buildSingleAlternativeLookaheadFunction=function(b,S,J){var ee=(0,se.default)(b,(function(b){return 1===b.length})),te=b.length;if(ee&&!J){var re=(0,oe.default)(b);if(1===re.length&&(0,ie.default)(re[0].categoryMatches)){var ne=re[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===ne}}var ae=(0,le.default)(re,(function(b,S,J){return b[S.tokenTypeIdx]=!0,(0,ue.default)(S.categoryMatches,(function(S){b[S]=!0})),b}),[]);return function(){var b=this.LA(1);return!0===ae[b.tokenTypeIdx]}}return function(){e:for(var J=0;J<te;J++){for(var ee=b[J],re=ee.length,ne=0;ne<re;ne++){var ie=this.LA(ne+1);if(!1===S(ie,ee[ne]))continue e}return!0}return!1}};var ge=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.topProd=S,te.targetOccurrence=J,te.targetProdType=ee,te}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},e.prototype.checkIsTarget=function(b,S,J,ee){return b.idx===this.targetOccurrence&&this.targetProdType===S&&(this.restDef=J.concat(ee),!0)},e.prototype.walkOption=function(S,J,ee){this.checkIsTarget(S,ne.OPTION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOne=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOneSep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkMany=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkManySep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e}(fe.RestWalker),ye=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.targetOccurrence=S,te.targetProdType=J,te.targetRef=ee,te.result=[],te}return te(e,b),e.prototype.checkIsTarget=function(b,S){b.idx!==this.targetOccurrence||this.targetProdType!==S||void 0!==this.targetRef&&b!==this.targetRef||(this.result=b.definition)},e.prototype.visitOption=function(b){this.checkIsTarget(b,ne.OPTION)},e.prototype.visitRepetition=function(b){this.checkIsTarget(b,ne.REPETITION)},e.prototype.visitRepetitionMandatory=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY_WITH_SEPARATOR)},e.prototype.visitRepetitionWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_WITH_SEPARATOR)},e.prototype.visitAlternation=function(b){this.checkIsTarget(b,ne.ALTERNATION)},e}(me.GAstVisitor);function g(b){for(var S=new Array(b),J=0;J<b;J++)S[J]=[];return S}function O(b){for(var S=[""],J=0;J<b.length;J++){for(var ee=b[J],te=[],re=0;re<S.length;re++){var ne=S[re];te.push(ne+"_"+ee.tokenTypeIdx);for(var ie=0;ie<ee.categoryMatches.length;ie++){var oe="_"+ee.categoryMatches[ie];te.push(ne+oe)}}S=te}return S}function R(b,S,J){for(var ee=0;ee<b.length;ee++)if(ee!==J)for(var te=b[ee],re=0;re<S.length;re++)if(!0===te[S[re]])return!1;return!0}function A(b,S){for(var J=(0,ae.default)(b,(function(b){return(0,pe.possiblePathsFrom)([b],1)})),ee=g(J.length),te=(0,ae.default)(J,(function(b){var S={};return(0,ue.default)(b,(function(b){var J=O(b.partialPath);(0,ue.default)(J,(function(b){S[b]=!0}))})),S})),re=J,ne=1;ne<=S;ne++){var oe=re;re=g(oe.length);for(var c=function(b){for(var J=oe[b],se=0;se<J.length;se++){var ae=J[se].partialPath,ce=J[se].suffixDef,le=O(ae);if(R(te,le,b)||(0,ie.default)(ce)||ae.length===S){var fe=ee[b];if(!1===N(fe,ae)){fe.push(ae);for(var de=0;de<le.length;de++){var he=le[de];te[b][he]=!0}}}else{var me=(0,pe.possiblePathsFrom)(ce,ne+1,ae);re[b]=re[b].concat(me),(0,ue.default)(me,(function(S){var J=O(S.partialPath);(0,ue.default)(J,(function(S){te[b][S]=!0}))}))}}},se=0;se<oe.length;se++)c(se)}return ee}function I(b,S,J,ee){var te=new ye(b,ne.ALTERNATION,ee);return S.accept(te),A(te.result,J)}function x(b,S,J,ee){var te=new ye(b,J);S.accept(te);var re=te.result,ne=new ge(S,b,J).startWalking();return A([new he.Alternative({definition:re}),new he.Alternative({definition:ne})],ee)}function N(b,S){e:for(var J=0;J<b.length;J++){var ee=b[J];if(ee.length===S.length){for(var te=0;te<ee.length;te++){var re=S[te],ne=ee[te];if(!1==(re===ne||void 0!==ne.categoryMatchesMap[re.tokenTypeIdx]))continue e}return!0}}return!1}function P(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,ie.default)(b.categoryMatches)}))}))}))}S.lookAheadSequenceFromAlternatives=A,S.getLookaheadPathsForOr=I,S.getLookaheadPathsForOptionalProd=x,S.containsPath=N,S.isStrictPrefixOfPath=function(b,S){return b.length<S.length&&(0,se.default)(b,(function(b,J){var ee=S[J];return b===ee||ee.categoryMatchesMap[b.tokenTypeIdx]}))},S.areTokenCategoriesNotUsed=P},6304:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRefResolverVisitor=S.resolveGrammar=void 0;var ne=J(2941),ie=re(J(9756)),oe=re(J(8346)),se=J(7729);S.resolveGrammar=function(b,S){var J=new ae(b,S);return J.resolveRefs(),J.errors};var ae=function(b){function e(S,J){var ee=b.call(this)||this;return ee.nameToTopRule=S,ee.errMsgProvider=J,ee.errors=[],ee}return te(e,b),e.prototype.resolveRefs=function(){var b=this;(0,ie.default)((0,oe.default)(this.nameToTopRule),(function(S){b.currTopLevel=S,S.accept(b)}))},e.prototype.visitNonTerminal=function(b){var S=this.nameToTopRule[b.nonTerminalName];if(S)b.referencedRule=S;else{var J=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,b);this.errors.push({message:J,type:ne.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:b.nonTerminalName})}},e}(se.GAstVisitor);S.GastRefResolverVisitor=ae},8567:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RestWalker=void 0;var te=ee(J(7264)),re=ee(J(9756)),ne=J(7729),ie=function(){function t(){}return t.prototype.walk=function(b,S){var J=this;void 0===S&&(S=[]),(0,re.default)(b.definition,(function(ee,re){var ie=(0,te.default)(b.definition,re+1);if(ee instanceof ne.NonTerminal)J.walkProdRef(ee,ie,S);else if(ee instanceof ne.Terminal)J.walkTerminal(ee,ie,S);else if(ee instanceof ne.Alternative)J.walkFlat(ee,ie,S);else if(ee instanceof ne.Option)J.walkOption(ee,ie,S);else if(ee instanceof ne.RepetitionMandatory)J.walkAtLeastOne(ee,ie,S);else if(ee instanceof ne.RepetitionMandatoryWithSeparator)J.walkAtLeastOneSep(ee,ie,S);else if(ee instanceof ne.RepetitionWithSeparator)J.walkManySep(ee,ie,S);else if(ee instanceof ne.Repetition)J.walkMany(ee,ie,S);else{if(!(ee instanceof ne.Alternation))throw Error("non exhaustive match");J.walkOr(ee,ie,S)}}))},t.prototype.walkTerminal=function(b,S,J){},t.prototype.walkProdRef=function(b,S,J){},t.prototype.walkFlat=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkOption=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkAtLeastOne=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkAtLeastOneSep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkMany=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkManySep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkOr=function(b,S,J){var ee=this,te=S.concat(J);(0,re.default)(b.definition,(function(b){var S=new ne.Alternative({definition:[b]});ee.walk(S,te)}))},t}();function u(b,S,J){return[new ne.Option({definition:[new ne.Terminal({terminalType:b.separator})].concat(b.definition)})].concat(S,J)}S.RestWalker=ie},2941:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EmbeddedActionsParser=S.CstParser=S.Parser=S.EMPTY_ALT=S.ParserDefinitionErrorType=S.DEFAULT_RULE_CONFIG=S.DEFAULT_PARSER_CONFIG=S.END_OF_FILE=void 0;var ne,ie=re(J(5455)),oe=re(J(6760)),se=re(J(9756)),ae=re(J(8346)),ue=re(J(3352)),ce=re(J(4004)),le=J(7146),pe=J(4917),fe=J(6736),de=J(1007),he=J(1665),me=J(9992),ge=J(161),ye=J(3225),ve=J(598),Te=J(8503),be=J(3273),Ee=J(9464),Ae=J(1625),we=J(6688),_e=J(146),xe=J(4803);S.END_OF_FILE=(0,fe.createTokenInstance)(fe.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(S.END_OF_FILE),S.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:de.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),S.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0}),(ne=S.ParserDefinitionErrorType||(S.ParserDefinitionErrorType={}))[ne.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",ne[ne.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",ne[ne.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",ne[ne.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",ne[ne.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",ne[ne.LEFT_RECURSION=5]="LEFT_RECURSION",ne[ne.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",ne[ne.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",ne[ne.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",ne[ne.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",ne[ne.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",ne[ne.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",ne[ne.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",S.EMPTY_ALT=function(b){return void 0===b&&(b=void 0),function(){return b}};var Pe=function(){function t(b,J){this.definitionErrors=[],this.selfAnalysisDone=!1;var ee=this;if(ee.initErrorHandler(J),ee.initLexerAdapter(),ee.initLooksAhead(J),ee.initRecognizerEngine(b,J),ee.initRecoverable(J),ee.initTreeBuilder(J),ee.initContentAssist(),ee.initGastRecorder(J),ee.initPerformanceTracer(J),(0,ue.default)(J,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=(0,ue.default)(J,"skipValidations")?J.skipValidations:S.DEFAULT_PARSER_CONFIG.skipValidations}return t.performSelfAnalysis=function(b){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")},t.prototype.performSelfAnalysis=function(){var b=this;this.TRACE_INIT("performSelfAnalysis",(function(){var S;b.selfAnalysisDone=!0;var J=b.className;b.TRACE_INIT("toFastProps",(function(){(0,le.toFastProperties)(b)})),b.TRACE_INIT("Grammar Recording",(function(){try{b.enableRecording(),(0,se.default)(b.definedRulesNames,(function(S){var J,ee=b[S].originalGrammarAction;b.TRACE_INIT("".concat(S," Rule"),(function(){J=b.topLevelRuleRecord(S,ee)})),b.gastProductionsCache[S]=J}))}finally{b.disableRecording()}}));var ee=[];if(b.TRACE_INIT("Grammar Resolving",(function(){ee=(0,he.resolveGrammar)({rules:(0,ae.default)(b.gastProductionsCache)}),b.definitionErrors=b.definitionErrors.concat(ee)})),b.TRACE_INIT("Grammar Validations",(function(){if((0,ie.default)(ee)&&!1===b.skipValidations){var S=(0,he.validateGrammar)({rules:(0,ae.default)(b.gastProductionsCache),maxLookahead:b.maxLookahead,tokenTypes:(0,ae.default)(b.tokensMap),errMsgProvider:de.defaultGrammarValidatorErrorProvider,grammarName:J});b.definitionErrors=b.definitionErrors.concat(S)}})),(0,ie.default)(b.definitionErrors)&&(b.recoveryEnabled&&b.TRACE_INIT("computeAllProdsFollows",(function(){var S=(0,pe.computeAllProdsFollows)((0,ae.default)(b.gastProductionsCache));b.resyncFollows=S})),b.TRACE_INIT("ComputeLookaheadFunctions",(function(){b.preComputeLookaheadFunctions((0,ae.default)(b.gastProductionsCache))}))),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,ie.default)(b.definitionErrors))throw S=(0,oe.default)(b.definitionErrors,(function(b){return b.message})),new Error("Parser Definition Errors detected:\n ".concat(S.join("\n-------------------------------\n")))}))},t.DEFER_DEFINITION_ERRORS_HANDLING=!1,t}();S.Parser=Pe,(0,xe.applyMixins)(Pe,[me.Recoverable,ge.LooksAhead,ye.TreeBuilder,ve.LexerAdapter,be.RecognizerEngine,Te.RecognizerApi,Ee.ErrorHandler,Ae.ContentAssist,we.GastRecorder,_e.PerformanceTracer]);var Ce=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!0,b.call(this,J,te)||this}return te(r,b),r}(Pe);S.CstParser=Ce;var ke=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!1,b.call(this,J,te)||this}return te(r,b),r}(Pe);S.EmbeddedActionsParser=ke},1625:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ContentAssist=void 0;var te=J(9985),re=ee(J(3237)),ne=ee(J(4336)),ie=function(){function t(){}return t.prototype.initContentAssist=function(){},t.prototype.computeContentAssist=function(b,S){var J=this.gastProductionsCache[b];if((0,ne.default)(J))throw Error("Rule ->".concat(b,"<- does not exist in this grammar."));return(0,te.nextPossibleTokensAfter)([J],S,this.tokenMatcher,this.maxLookahead)},t.prototype.getNextPossibleTokenTypes=function(b){var S=(0,re.default)(b.ruleStack),J=this.getGAstProductions()[S];return new te.NextAfterTokenWalker(J,b).startWalking()},t}();S.ContentAssist=ie},9464:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ErrorHandler=void 0;var te=J(643),re=ee(J(3352)),ne=ee(J(4004)),ie=J(4677),oe=J(2941),se=function(){function t(){}return t.prototype.initErrorHandler=function(b){this._errors=[],this.errorMessageProvider=(0,re.default)(b,"errorMessageProvider")?b.errorMessageProvider:oe.DEFAULT_PARSER_CONFIG.errorMessageProvider},t.prototype.SAVE_ERROR=function(b){if((0,te.isRecognitionException)(b))return b.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,ne.default)(this.RULE_OCCURRENCE_STACK)},this._errors.push(b),b;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(t.prototype,"errors",{get:function(){return(0,ne.default)(this._errors)},set:function(b){this._errors=b},enumerable:!1,configurable:!0}),t.prototype.raiseEarlyExitException=function(b,S,J){for(var ee=this.getCurrRuleFullName(),re=this.getGAstProductions()[ee],ne=(0,ie.getLookaheadPathsForOptionalProd)(b,re,S,this.maxLookahead)[0],oe=[],se=1;se<=this.maxLookahead;se++)oe.push(this.LA(se));var ae=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:ne,actual:oe,previous:this.LA(0),customUserDescription:J,ruleName:ee});throw this.SAVE_ERROR(new te.EarlyExitException(ae,this.LA(1),this.LA(0)))},t.prototype.raiseNoAltException=function(b,S){for(var J=this.getCurrRuleFullName(),ee=this.getGAstProductions()[J],re=(0,ie.getLookaheadPathsForOr)(b,ee,this.maxLookahead),ne=[],oe=1;oe<=this.maxLookahead;oe++)ne.push(this.LA(oe));var se=this.LA(0),ae=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:re,actual:ne,previous:se,customUserDescription:S,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new te.NoViableAltException(ae,this.LA(1),se))},t}();S.ErrorHandler=se},6688:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRecorder=void 0;var te=ee(J(6974)),re=ee(J(6152)),ne=ee(J(1525)),ie=ee(J(9756)),oe=ee(J(1049)),se=ee(J(3352)),ae=J(7729),ue=J(9027),ce=J(1201),le=J(6736),pe=J(2941),fe=J(8209),de={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(de);var he=Math.pow(2,fe.BITS_FOR_OCCURRENCE_IDX)-1,me=(0,le.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:ue.Lexer.NA});(0,ce.augmentTokenTypes)([me]);var ge=(0,le.createTokenInstance)(me,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(ge);var ye={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},ve=function(){function t(){}return t.prototype.initGastRecorder=function(b){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var b=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var e=function(S){var J=S>0?S:"";b["CONSUME".concat(J)]=function(b,J){return this.consumeInternalRecord(b,S,J)},b["SUBRULE".concat(J)]=function(b,J){return this.subruleInternalRecord(b,S,J)},b["OPTION".concat(J)]=function(b){return this.optionInternalRecord(b,S)},b["OR".concat(J)]=function(b){return this.orInternalRecord(b,S)},b["MANY".concat(J)]=function(b){this.manyInternalRecord(S,b)},b["MANY_SEP".concat(J)]=function(b){this.manySepFirstInternalRecord(S,b)},b["AT_LEAST_ONE".concat(J)]=function(b){this.atLeastOneInternalRecord(S,b)},b["AT_LEAST_ONE_SEP".concat(J)]=function(b){this.atLeastOneSepFirstInternalRecord(S,b)}},S=0;S<10;S++)e(S);b.consume=function(b,S,J){return this.consumeInternalRecord(S,b,J)},b.subrule=function(b,S,J){return this.subruleInternalRecord(S,b,J)},b.option=function(b,S){return this.optionInternalRecord(S,b)},b.or=function(b,S){return this.orInternalRecord(S,b)},b.many=function(b,S){this.manyInternalRecord(b,S)},b.atLeastOne=function(b,S){this.atLeastOneInternalRecord(b,S)},b.ACTION=b.ACTION_RECORD,b.BACKTRACK=b.BACKTRACK_RECORD,b.LA=b.LA_RECORD}))},t.prototype.disableRecording=function(){var b=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var S=b,J=0;J<10;J++){var ee=J>0?J:"";delete S["CONSUME".concat(ee)],delete S["SUBRULE".concat(ee)],delete S["OPTION".concat(ee)],delete S["OR".concat(ee)],delete S["MANY".concat(ee)],delete S["MANY_SEP".concat(ee)],delete S["AT_LEAST_ONE".concat(ee)],delete S["AT_LEAST_ONE_SEP".concat(ee)]}delete S.consume,delete S.subrule,delete S.option,delete S.or,delete S.many,delete S.atLeastOne,delete S.ACTION,delete S.BACKTRACK,delete S.LA}))},t.prototype.ACTION_RECORD=function(b){},t.prototype.BACKTRACK_RECORD=function(b,S){return function(){return!0}},t.prototype.LA_RECORD=function(b){return pe.END_OF_FILE},t.prototype.topLevelRuleRecord=function(b,S){try{var J=new ae.Rule({definition:[],name:b});return J.name=b,this.recordingProdStack.push(J),S.call(this),this.recordingProdStack.pop(),J}catch(b){if(!0!==b.KNOWN_RECORDER_ERROR)try{b.message=b.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(S){throw b}throw b}},t.prototype.optionInternalRecord=function(b,S){return O.call(this,ae.Option,b,S)},t.prototype.atLeastOneInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatory,S,b)},t.prototype.atLeastOneSepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatoryWithSeparator,S,b,!0)},t.prototype.manyInternalRecord=function(b,S){O.call(this,ae.Repetition,S,b)},t.prototype.manySepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionWithSeparator,S,b,!0)},t.prototype.orInternalRecord=function(b,S){return R.call(this,b,S)},t.prototype.subruleInternalRecord=function(b,S,J){if(I(S),!b||!1===(0,se.default)(b,"ruleName")){var ee=new Error("<SUBRULE".concat(A(S),"> argument is invalid")+" expecting a Parser method reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=b.ruleName,ie=new ae.NonTerminal({idx:S,nonTerminalName:ne,label:null==J?void 0:J.LABEL,referencedRule:void 0});return re.definition.push(ie),this.outputCst?ye:de},t.prototype.consumeInternalRecord=function(b,S,J){if(I(S),!(0,ce.hasShortKeyProperty)(b)){var ee=new Error("<CONSUME".concat(A(S),"> argument is invalid")+" expecting a TokenType reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=new ae.Terminal({idx:S,terminalType:b,label:null==J?void 0:J.LABEL});return re.definition.push(ne),ge},t}();function O(b,S,J,ee){void 0===ee&&(ee=!1),I(J);var re=(0,te.default)(this.recordingProdStack),ne=(0,oe.default)(S)?S:S.DEF,ie=new b({definition:[],idx:J});return ee&&(ie.separator=S.SEP),(0,se.default)(S,"MAX_LOOKAHEAD")&&(ie.maxLookahead=S.MAX_LOOKAHEAD),this.recordingProdStack.push(ie),ne.call(this),re.definition.push(ie),this.recordingProdStack.pop(),de}function R(b,S){var J=this;I(S);var ee=(0,te.default)(this.recordingProdStack),ue=!1===(0,re.default)(b),ce=!1===ue?b:b.DEF,le=new ae.Alternation({definition:[],idx:S,ignoreAmbiguities:ue&&!0===b.IGNORE_AMBIGUITIES});(0,se.default)(b,"MAX_LOOKAHEAD")&&(le.maxLookahead=b.MAX_LOOKAHEAD);var pe=(0,ne.default)(ce,(function(b){return(0,oe.default)(b.GATE)}));return le.hasPredicates=pe,ee.definition.push(le),(0,ie.default)(ce,(function(b){var S=new ae.Alternative({definition:[]});le.definition.push(S),(0,se.default)(b,"IGNORE_AMBIGUITIES")?S.ignoreAmbiguities=b.IGNORE_AMBIGUITIES:(0,se.default)(b,"GATE")&&(S.ignoreAmbiguities=!0),J.recordingProdStack.push(S),b.ALT.call(J),J.recordingProdStack.pop()})),de}function A(b){return 0===b?"":"".concat(b)}function I(b){if(b<0||b>he){var S=new Error("Invalid DSL Method idx value: <".concat(b,">\n\t")+"Idx value must be a none negative value smaller than ".concat(he+1));throw S.KNOWN_RECORDER_ERROR=!0,S}}S.GastRecorder=ve},598:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.LexerAdapter=void 0;var ee=J(2941),te=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(b){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=b,this.tokVectorLength=b.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ee.END_OF_FILE},t.prototype.LA=function(b){var S=this.currIdx+b;return S<0||this.tokVectorLength<=S?ee.END_OF_FILE:this.tokVector[S]},t.prototype.consumeToken=function(){this.currIdx++},t.prototype.exportLexerState=function(){return this.currIdx},t.prototype.importLexerState=function(b){this.currIdx=b},t.prototype.resetLexerState=function(){this.currIdx=-1},t.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},t.prototype.getLexerPosition=function(){return this.exportLexerState()},t}();S.LexerAdapter=te},161:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.collectMethods=S.LooksAhead=void 0;var ne=J(4677),ie=re(J(9756)),oe=re(J(3352)),se=J(2941),ae=J(8209),ue=J(7729),ce=J(7729),le=function(){function t(){}return t.prototype.initLooksAhead=function(b){this.dynamicTokensEnabled=(0,oe.default)(b,"dynamicTokensEnabled")?b.dynamicTokensEnabled:se.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,oe.default)(b,"maxLookahead")?b.maxLookahead:se.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=new Map},t.prototype.preComputeLookaheadFunctions=function(b){var S=this;(0,ie.default)(b,(function(b){S.TRACE_INIT("".concat(b.name," Rule Lookahead"),(function(){var J=v(b),ee=J.alternation,te=J.repetition,re=J.option,oe=J.repetitionMandatory,se=J.repetitionMandatoryWithSeparator,ue=J.repetitionWithSeparator;(0,ie.default)(ee,(function(J){var ee=0===J.idx?"":J.idx;S.TRACE_INIT("".concat((0,ce.getProductionDslName)(J)).concat(ee),(function(){var ee=(0,ne.buildLookaheadFuncForOr)(J.idx,b,J.maxLookahead||S.maxLookahead,J.hasPredicates,S.dynamicTokensEnabled,S.lookAheadBuilderForAlternatives),te=(0,ae.getKeyForAutomaticLookahead)(S.fullRuleNameToShort[b.name],ae.OR_IDX,J.idx);S.setLaFuncCache(te,ee)}))})),(0,ie.default)(te,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_IDX,ne.PROD_TYPE.REPETITION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(re,(function(J){S.computeLookaheadFunc(b,J.idx,ae.OPTION_IDX,ne.PROD_TYPE.OPTION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(oe,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_IDX,ne.PROD_TYPE.REPETITION_MANDATORY,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(se,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_SEP_IDX,ne.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(ue,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_SEP_IDX,ne.PROD_TYPE.REPETITION_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))}))}))}))},t.prototype.computeLookaheadFunc=function(b,S,J,ee,te,re){var ie=this;this.TRACE_INIT("".concat(re).concat(0===S?"":S),(function(){var re=(0,ne.buildLookaheadFuncForOptionalProd)(S,b,te||ie.maxLookahead,ie.dynamicTokensEnabled,ee,ie.lookAheadBuilderForOptional),oe=(0,ae.getKeyForAutomaticLookahead)(ie.fullRuleNameToShort[b.name],J,S);ie.setLaFuncCache(oe,re)}))},t.prototype.lookAheadBuilderForOptional=function(b,S,J){return(0,ne.buildSingleAlternativeLookaheadFunction)(b,S,J)},t.prototype.lookAheadBuilderForAlternatives=function(b,S,J,ee){return(0,ne.buildAlternativesLookAheadFunc)(b,S,J,ee)},t.prototype.getKeyForAutomaticLookahead=function(b,S){var J=this.getLastExplicitRuleShortName();return(0,ae.getKeyForAutomaticLookahead)(J,b,S)},t.prototype.getLaFuncFromCache=function(b){return this.lookAheadFuncsCache.get(b)},t.prototype.setLaFuncCache=function(b,S){this.lookAheadFuncsCache.set(b,S)},t}();S.LooksAhead=le;var pe=new(function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},S}return te(e,b),e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitOption=function(b){this.dslMethods.option.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.dslMethods.repetitionWithSeparator.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.dslMethods.repetitionMandatory.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.dslMethods.repetitionMandatoryWithSeparator.push(b)},e.prototype.visitRepetition=function(b){this.dslMethods.repetition.push(b)},e.prototype.visitAlternation=function(b){this.dslMethods.alternation.push(b)},e}(ue.GAstVisitor));function v(b){pe.reset(),b.accept(pe);var S=pe.dslMethods;return pe.reset(),S}S.collectMethods=v},146:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.PerformanceTracer=void 0;var te=ee(J(3352)),re=J(7146),ne=J(2941),ie=function(){function t(){}return t.prototype.initPerformanceTracer=function(b){if((0,te.default)(b,"traceInitPerf")){var S=b.traceInitPerf,J="number"==typeof S;this.traceInitMaxIdent=J?S:1/0,this.traceInitPerf=J?S>0:S}else this.traceInitMaxIdent=0,this.traceInitPerf=ne.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(b,S){if(!0===this.traceInitPerf){this.traceInitIndent++;var J=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log("".concat(J,"--\x3e <").concat(b,">"));var ee=(0,re.timer)(S),te=ee.time,ne=ee.value,ie=te>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&ie("".concat(J,"<-- <").concat(b,"> time: ").concat(te,"ms")),this.traceInitIndent--,ne}return S()},t}();S.PerformanceTracer=ie},8503:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerApi=void 0;var te=ee(J(8346)),re=ee(J(1886)),ne=J(643),ie=J(2941),oe=J(1007),se=J(3870),ae=J(7729),ue=function(){function t(){}return t.prototype.ACTION=function(b){return b.call(this)},t.prototype.consume=function(b,S,J){return this.consumeInternal(S,b,J)},t.prototype.subrule=function(b,S,J){return this.subruleInternal(S,b,J)},t.prototype.option=function(b,S){return this.optionInternal(S,b)},t.prototype.or=function(b,S){return this.orInternal(S,b)},t.prototype.many=function(b,S){return this.manyInternal(b,S)},t.prototype.atLeastOne=function(b,S){return this.atLeastOneInternal(b,S)},t.prototype.CONSUME=function(b,S){return this.consumeInternal(b,0,S)},t.prototype.CONSUME1=function(b,S){return this.consumeInternal(b,1,S)},t.prototype.CONSUME2=function(b,S){return this.consumeInternal(b,2,S)},t.prototype.CONSUME3=function(b,S){return this.consumeInternal(b,3,S)},t.prototype.CONSUME4=function(b,S){return this.consumeInternal(b,4,S)},t.prototype.CONSUME5=function(b,S){return this.consumeInternal(b,5,S)},t.prototype.CONSUME6=function(b,S){return this.consumeInternal(b,6,S)},t.prototype.CONSUME7=function(b,S){return this.consumeInternal(b,7,S)},t.prototype.CONSUME8=function(b,S){return this.consumeInternal(b,8,S)},t.prototype.CONSUME9=function(b,S){return this.consumeInternal(b,9,S)},t.prototype.SUBRULE=function(b,S){return this.subruleInternal(b,0,S)},t.prototype.SUBRULE1=function(b,S){return this.subruleInternal(b,1,S)},t.prototype.SUBRULE2=function(b,S){return this.subruleInternal(b,2,S)},t.prototype.SUBRULE3=function(b,S){return this.subruleInternal(b,3,S)},t.prototype.SUBRULE4=function(b,S){return this.subruleInternal(b,4,S)},t.prototype.SUBRULE5=function(b,S){return this.subruleInternal(b,5,S)},t.prototype.SUBRULE6=function(b,S){return this.subruleInternal(b,6,S)},t.prototype.SUBRULE7=function(b,S){return this.subruleInternal(b,7,S)},t.prototype.SUBRULE8=function(b,S){return this.subruleInternal(b,8,S)},t.prototype.SUBRULE9=function(b,S){return this.subruleInternal(b,9,S)},t.prototype.OPTION=function(b){return this.optionInternal(b,0)},t.prototype.OPTION1=function(b){return this.optionInternal(b,1)},t.prototype.OPTION2=function(b){return this.optionInternal(b,2)},t.prototype.OPTION3=function(b){return this.optionInternal(b,3)},t.prototype.OPTION4=function(b){return this.optionInternal(b,4)},t.prototype.OPTION5=function(b){return this.optionInternal(b,5)},t.prototype.OPTION6=function(b){return this.optionInternal(b,6)},t.prototype.OPTION7=function(b){return this.optionInternal(b,7)},t.prototype.OPTION8=function(b){return this.optionInternal(b,8)},t.prototype.OPTION9=function(b){return this.optionInternal(b,9)},t.prototype.OR=function(b){return this.orInternal(b,0)},t.prototype.OR1=function(b){return this.orInternal(b,1)},t.prototype.OR2=function(b){return this.orInternal(b,2)},t.prototype.OR3=function(b){return this.orInternal(b,3)},t.prototype.OR4=function(b){return this.orInternal(b,4)},t.prototype.OR5=function(b){return this.orInternal(b,5)},t.prototype.OR6=function(b){return this.orInternal(b,6)},t.prototype.OR7=function(b){return this.orInternal(b,7)},t.prototype.OR8=function(b){return this.orInternal(b,8)},t.prototype.OR9=function(b){return this.orInternal(b,9)},t.prototype.MANY=function(b){this.manyInternal(0,b)},t.prototype.MANY1=function(b){this.manyInternal(1,b)},t.prototype.MANY2=function(b){this.manyInternal(2,b)},t.prototype.MANY3=function(b){this.manyInternal(3,b)},t.prototype.MANY4=function(b){this.manyInternal(4,b)},t.prototype.MANY5=function(b){this.manyInternal(5,b)},t.prototype.MANY6=function(b){this.manyInternal(6,b)},t.prototype.MANY7=function(b){this.manyInternal(7,b)},t.prototype.MANY8=function(b){this.manyInternal(8,b)},t.prototype.MANY9=function(b){this.manyInternal(9,b)},t.prototype.MANY_SEP=function(b){this.manySepFirstInternal(0,b)},t.prototype.MANY_SEP1=function(b){this.manySepFirstInternal(1,b)},t.prototype.MANY_SEP2=function(b){this.manySepFirstInternal(2,b)},t.prototype.MANY_SEP3=function(b){this.manySepFirstInternal(3,b)},t.prototype.MANY_SEP4=function(b){this.manySepFirstInternal(4,b)},t.prototype.MANY_SEP5=function(b){this.manySepFirstInternal(5,b)},t.prototype.MANY_SEP6=function(b){this.manySepFirstInternal(6,b)},t.prototype.MANY_SEP7=function(b){this.manySepFirstInternal(7,b)},t.prototype.MANY_SEP8=function(b){this.manySepFirstInternal(8,b)},t.prototype.MANY_SEP9=function(b){this.manySepFirstInternal(9,b)},t.prototype.AT_LEAST_ONE=function(b){this.atLeastOneInternal(0,b)},t.prototype.AT_LEAST_ONE1=function(b){return this.atLeastOneInternal(1,b)},t.prototype.AT_LEAST_ONE2=function(b){this.atLeastOneInternal(2,b)},t.prototype.AT_LEAST_ONE3=function(b){this.atLeastOneInternal(3,b)},t.prototype.AT_LEAST_ONE4=function(b){this.atLeastOneInternal(4,b)},t.prototype.AT_LEAST_ONE5=function(b){this.atLeastOneInternal(5,b)},t.prototype.AT_LEAST_ONE6=function(b){this.atLeastOneInternal(6,b)},t.prototype.AT_LEAST_ONE7=function(b){this.atLeastOneInternal(7,b)},t.prototype.AT_LEAST_ONE8=function(b){this.atLeastOneInternal(8,b)},t.prototype.AT_LEAST_ONE9=function(b){this.atLeastOneInternal(9,b)},t.prototype.AT_LEAST_ONE_SEP=function(b){this.atLeastOneSepFirstInternal(0,b)},t.prototype.AT_LEAST_ONE_SEP1=function(b){this.atLeastOneSepFirstInternal(1,b)},t.prototype.AT_LEAST_ONE_SEP2=function(b){this.atLeastOneSepFirstInternal(2,b)},t.prototype.AT_LEAST_ONE_SEP3=function(b){this.atLeastOneSepFirstInternal(3,b)},t.prototype.AT_LEAST_ONE_SEP4=function(b){this.atLeastOneSepFirstInternal(4,b)},t.prototype.AT_LEAST_ONE_SEP5=function(b){this.atLeastOneSepFirstInternal(5,b)},t.prototype.AT_LEAST_ONE_SEP6=function(b){this.atLeastOneSepFirstInternal(6,b)},t.prototype.AT_LEAST_ONE_SEP7=function(b){this.atLeastOneSepFirstInternal(7,b)},t.prototype.AT_LEAST_ONE_SEP8=function(b){this.atLeastOneSepFirstInternal(8,b)},t.prototype.AT_LEAST_ONE_SEP9=function(b){this.atLeastOneSepFirstInternal(9,b)},t.prototype.RULE=function(b,S,J){if(void 0===J&&(J=ie.DEFAULT_RULE_CONFIG),(0,re.default)(this.definedRulesNames,b)){var ee={message:oe.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:b,grammarName:this.className}),type:ie.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b};this.definitionErrors.push(ee)}this.definedRulesNames.push(b);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.OVERRIDE_RULE=function(b,S,J){void 0===J&&(J=ie.DEFAULT_RULE_CONFIG);var ee=(0,se.validateRuleIsOverridden)(b,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(ee);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.BACKTRACK=function(b,S){return function(){this.isBackTrackingStack.push(1);var J=this.saveRecogState();try{return b.apply(this,S),!0}catch(b){if((0,ne.isRecognitionException)(b))return!1;throw b}finally{this.reloadRecogState(J),this.isBackTrackingStack.pop()}}},t.prototype.getGAstProductions=function(){return this.gastProductionsCache},t.prototype.getSerializedGastProductions=function(){return(0,ae.serializeGrammar)((0,te.default)(this.gastProductionsCache))},t}();S.RecognizerApi=ue},3273:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerEngine=void 0;var te=ee(J(5455)),re=ee(J(6152)),ne=ee(J(5676)),ie=ee(J(9794)),oe=ee(J(5652)),se=ee(J(9259)),ae=ee(J(3352)),ue=ee(J(8346)),ce=ee(J(8215)),le=ee(J(4004)),pe=J(8209),fe=J(643),de=J(4677),he=J(9985),me=J(2941),ge=J(9992),ye=J(6736),ve=J(1201),Te=function(){function t(){}return t.prototype.initRecognizerEngine=function(b,S){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ve.tokenStructuredMatcherNoCategories,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,ae.default)(S,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if((0,re.default)(b)){if((0,te.default)(b))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof b[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if((0,re.default)(b))this.tokensMap=(0,ce.default)(b,(function(b,S){return b[S.name]=S,b}),{});else if((0,ae.default)(b,"modes")&&(0,ie.default)((0,ne.default)((0,ue.default)(b.modes)),ve.isTokenType)){var J=(0,ne.default)((0,ue.default)(b.modes)),ee=(0,oe.default)(J);this.tokensMap=(0,ce.default)(ee,(function(b,S){return b[S.name]=S,b}),{})}else{if(!(0,se.default)(b))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=(0,le.default)(b)}this.tokensMap.EOF=ye.EOF;var pe=(0,ae.default)(b,"modes")?(0,ne.default)((0,ue.default)(b.modes)):(0,ue.default)(b),fe=(0,ie.default)(pe,(function(b){return(0,te.default)(b.categoryMatches)}));this.tokenMatcher=fe?ve.tokenStructuredMatcherNoCategories:ve.tokenStructuredMatcher,(0,ve.augmentTokenTypes)((0,ue.default)(this.tokensMap))},t.prototype.defineRule=function(b,S,J){if(this.selfAnalysisDone)throw Error("Grammar rule <".concat(b,"> may not be defined after the 'performSelfAnalysis' method has been called'\n")+"Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var ee,te=(0,ae.default)(J,"resyncEnabled")?J.resyncEnabled:me.DEFAULT_RULE_CONFIG.resyncEnabled,re=(0,ae.default)(J,"recoveryValueFunc")?J.recoveryValueFunc:me.DEFAULT_RULE_CONFIG.recoveryValueFunc,ne=this.ruleShortNameIdx<<pe.BITS_FOR_METHOD_TYPE+pe.BITS_FOR_OCCURRENCE_IDX;return this.ruleShortNameIdx++,this.shortRuleNameToFull[ne]=b,this.fullRuleNameToShort[b]=ne,ee=!0===this.outputCst?function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J);var ie=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(ie),ie}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}}:function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{return this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J)}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}},Object.assign(ee,{ruleName:b,originalGrammarAction:S})},t.prototype.invokeRuleCatch=function(b,S,J){var ee=1===this.RULE_STACK.length,te=S&&!this.isBackTracking()&&this.recoveryEnabled;if((0,fe.isRecognitionException)(b)){var re=b;if(te){var ne,ie=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(ie))return re.resyncedTokens=this.reSyncTo(ie),this.outputCst?((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,ne):J();throw this.outputCst&&((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,re.partialCstResult=ne),re}if(ee)return this.moveToTerminatedState(),J();throw re}throw b},t.prototype.optionInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OPTION_IDX,S);return this.optionInternalLogic(b,S,J)},t.prototype.optionInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof b){ee=b.DEF;var ne=b.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=b;if(!0===re.call(this))return ee.call(this)},t.prototype.atLeastOneInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_IDX,b);return this.atLeastOneInternalLogic(b,S,J)},t.prototype.atLeastOneInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;if(!0!==re.call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY,S.ERR_MSG);for(var oe=this.doSingleRepetition(ee);!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[b,S],re,pe.AT_LEAST_ONE_IDX,b,he.NextTerminalAfterAtLeastOneWalker)},t.prototype.atLeastOneSepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_SEP_IDX,b);this.atLeastOneSepFirstInternalLogic(b,S,J)},t.prototype.atLeastOneSepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0!==this.getLaFuncFromCache(J).call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,S.ERR_MSG);te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterAtLeastOneSepWalker],a,pe.AT_LEAST_ONE_SEP_IDX,b,he.NextTerminalAfterAtLeastOneSepWalker)},t.prototype.manyInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_IDX,b);return this.manyInternalLogic(b,S,J)},t.prototype.manyInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;for(var oe=!0;!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.manyInternal,[b,S],re,pe.MANY_IDX,b,he.NextTerminalAfterManyWalker,oe)},t.prototype.manySepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_SEP_IDX,b);this.manySepFirstInternalLogic(b,S,J)},t.prototype.manySepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0===this.getLaFuncFromCache(J).call(this)){te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterManySepWalker],a,pe.MANY_SEP_IDX,b,he.NextTerminalAfterManySepWalker)}},t.prototype.repetitionSepSecondInternal=function(b,S,J,ee,te){for(;J();)this.CONSUME(S),ee.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,S,J,ee,te],J,pe.AT_LEAST_ONE_SEP_IDX,b,te)},t.prototype.doSingleRepetition=function(b){var S=this.getLexerPosition();return b.call(this),this.getLexerPosition()>S},t.prototype.orInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OR_IDX,S),ee=(0,re.default)(b)?b:b.DEF,te=this.getLaFuncFromCache(J).call(this,ee);if(void 0!==te)return ee[te].ALT.call(this);this.raiseNoAltException(S,b.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var b=this.LA(1),S=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:b,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new fe.NotAllInputParsedException(S,b))}},t.prototype.subruleInternal=function(b,S,J){var ee;try{var te=void 0!==J?J.ARGS:void 0;return this.subruleIdx=S,ee=b.apply(this,te),this.cstPostNonTerminal(ee,void 0!==J&&void 0!==J.LABEL?J.LABEL:b.ruleName),ee}catch(S){throw this.subruleInternalError(S,J,b.ruleName)}},t.prototype.subruleInternalError=function(b,S,J){throw(0,fe.isRecognitionException)(b)&&void 0!==b.partialCstResult&&(this.cstPostNonTerminal(b.partialCstResult,void 0!==S&&void 0!==S.LABEL?S.LABEL:J),delete b.partialCstResult),b},t.prototype.consumeInternal=function(b,S,J){var ee;try{var te=this.LA(1);!0===this.tokenMatcher(te,b)?(this.consumeToken(),ee=te):this.consumeInternalError(b,te,J)}catch(J){ee=this.consumeInternalRecovery(b,S,J)}return this.cstPostTerminal(void 0!==J&&void 0!==J.LABEL?J.LABEL:b.name,ee),ee},t.prototype.consumeInternalError=function(b,S,J){var ee,te=this.LA(0);throw ee=void 0!==J&&J.ERR_MSG?J.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:b,actual:S,previous:te,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new fe.MismatchedTokenException(ee,S,te))},t.prototype.consumeInternalRecovery=function(b,S,J){if(!this.recoveryEnabled||"MismatchedTokenException"!==J.name||this.isBackTracking())throw J;var ee=this.getFollowsForInRuleRecovery(b,S);try{return this.tryInRuleRecovery(b,ee)}catch(b){throw b.name===ge.IN_RULE_RECOVERY_EXCEPTION?J:b}},t.prototype.saveRecogState=function(){var b=this.errors,S=(0,le.default)(this.RULE_STACK);return{errors:b,lexerState:this.exportLexerState(),RULE_STACK:S,CST_STACK:this.CST_STACK}},t.prototype.reloadRecogState=function(b){this.errors=b.errors,this.importLexerState(b.lexerState),this.RULE_STACK=b.RULE_STACK},t.prototype.ruleInvocationStateUpdate=function(b,S,J){this.RULE_OCCURRENCE_STACK.push(J),this.RULE_STACK.push(b),this.cstInvocationStateUpdate(S)},t.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},t.prototype.getCurrRuleFullName=function(){var b=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[b]},t.prototype.shortRuleNameToFullName=function(b){return this.shortRuleNameToFull[b]},t.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),ye.EOF)},t.prototype.reset=function(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},t}();S.RecognizerEngine=Te},9992:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.attemptInRepetitionRecovery=S.Recoverable=S.InRuleRecoveryException=S.IN_RULE_RECOVERY_EXCEPTION=S.EOF_FOLLOW_KEY=void 0;var ne=J(6736),ie=re(J(5455)),oe=re(J(4934)),se=re(J(5676)),ae=re(J(6760)),ue=re(J(5281)),ce=re(J(3352)),le=re(J(1886)),pe=re(J(4004)),fe=J(643),de=J(3710),he=J(2941);S.EOF_FOLLOW_KEY={},S.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";var me=function(b){function r(J){var ee=b.call(this,J)||this;return ee.name=S.IN_RULE_RECOVERY_EXCEPTION,ee}return te(r,b),r}(Error);S.InRuleRecoveryException=me;var ge=function(){function t(){}return t.prototype.initRecoverable=function(b){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,ce.default)(b,"recoveryEnabled")?b.recoveryEnabled:he.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=_)},t.prototype.getTokenToInsert=function(b){var S=(0,ne.createTokenInstance)(b,"",NaN,NaN,NaN,NaN,NaN,NaN);return S.isInsertedInRecovery=!0,S},t.prototype.canTokenTypeBeInsertedInRecovery=function(b){return!0},t.prototype.canTokenTypeBeDeletedInRecovery=function(b){return!0},t.prototype.tryInRepetitionRecovery=function(b,S,J,ee){for(var te=this,re=this.findReSyncTokenType(),ne=this.exportLexerState(),ie=[],se=!1,ae=this.LA(1),ue=this.LA(1),p=function(){var b=te.LA(0),S=te.errorMessageProvider.buildMismatchTokenMessage({expected:ee,actual:ae,previous:b,ruleName:te.getCurrRuleFullName()}),J=new fe.MismatchedTokenException(S,ae,te.LA(0));J.resyncedTokens=(0,oe.default)(ie),te.SAVE_ERROR(J)};!se;){if(this.tokenMatcher(ue,ee))return void p();if(J.call(this))return p(),void b.apply(this,S);this.tokenMatcher(ue,re)?se=!0:(ue=this.SKIP_TOKEN(),this.addToResyncTokens(ue,ie))}this.importLexerState(ne)},t.prototype.shouldInRepetitionRecoveryBeTried=function(b,S,J){return!1!==J&&!this.tokenMatcher(this.LA(1),b)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(b,this.getFollowsForInRuleRecovery(b,S))},t.prototype.getFollowsForInRuleRecovery=function(b,S){var J=this.getCurrentGrammarPath(b,S);return this.getNextPossibleTokenTypes(J)},t.prototype.tryInRuleRecovery=function(b,S){if(this.canRecoverWithSingleTokenInsertion(b,S))return this.getTokenToInsert(b);if(this.canRecoverWithSingleTokenDeletion(b)){var J=this.SKIP_TOKEN();return this.consumeToken(),J}throw new me("sad sad panda")},t.prototype.canPerformInRuleRecovery=function(b,S){return this.canRecoverWithSingleTokenInsertion(b,S)||this.canRecoverWithSingleTokenDeletion(b)},t.prototype.canRecoverWithSingleTokenInsertion=function(b,S){var J=this;if(!this.canTokenTypeBeInsertedInRecovery(b))return!1;if((0,ie.default)(S))return!1;var ee=this.LA(1);return void 0!==(0,ue.default)(S,(function(b){return J.tokenMatcher(ee,b)}))},t.prototype.canRecoverWithSingleTokenDeletion=function(b){return!!this.canTokenTypeBeDeletedInRecovery(b)&&this.tokenMatcher(this.LA(2),b)},t.prototype.isInCurrentRuleReSyncSet=function(b){var S=this.getCurrFollowKey(),J=this.getFollowSetFromFollowKey(S);return(0,le.default)(J,b)},t.prototype.findReSyncTokenType=function(){for(var b=this.flattenFollowSet(),S=this.LA(1),J=2;;){var ee=(0,ue.default)(b,(function(b){return(0,ne.tokenMatcher)(S,b)}));if(void 0!==ee)return ee;S=this.LA(J),J++}},t.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return S.EOF_FOLLOW_KEY;var b=this.getLastExplicitRuleShortName(),J=this.getLastExplicitRuleOccurrenceIndex(),ee=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(b),idxInCallingRule:J,inRule:this.shortRuleNameToFullName(ee)}},t.prototype.buildFullFollowKeyStack=function(){var b=this,J=this.RULE_STACK,ee=this.RULE_OCCURRENCE_STACK;return(0,ae.default)(J,(function(te,re){return 0===re?S.EOF_FOLLOW_KEY:{ruleName:b.shortRuleNameToFullName(te),idxInCallingRule:ee[re],inRule:b.shortRuleNameToFullName(J[re-1])}}))},t.prototype.flattenFollowSet=function(){var b=this,S=(0,ae.default)(this.buildFullFollowKeyStack(),(function(S){return b.getFollowSetFromFollowKey(S)}));return(0,se.default)(S)},t.prototype.getFollowSetFromFollowKey=function(b){if(b===S.EOF_FOLLOW_KEY)return[ne.EOF];var J=b.ruleName+b.idxInCallingRule+de.IN+b.inRule;return this.resyncFollows[J]},t.prototype.addToResyncTokens=function(b,S){return this.tokenMatcher(b,ne.EOF)||S.push(b),S},t.prototype.reSyncTo=function(b){for(var S=[],J=this.LA(1);!1===this.tokenMatcher(J,b);)J=this.SKIP_TOKEN(),this.addToResyncTokens(J,S);return(0,oe.default)(S)},t.prototype.attemptInRepetitionRecovery=function(b,S,J,ee,te,re,ne){},t.prototype.getCurrentGrammarPath=function(b,S){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,pe.default)(this.RULE_OCCURRENCE_STACK),lastTok:b,lastTokOccurrence:S}},t.prototype.getHumanReadableRuleStack=function(){var b=this;return(0,ae.default)(this.RULE_STACK,(function(S){return b.shortRuleNameToFullName(S)}))},t}();function _(b,S,J,ee,te,re,ie){var oe=this.getKeyForAutomaticLookahead(ee,te),se=this.firstAfterRepMap[oe];if(void 0===se){var ae=this.getCurrRuleFullName();se=new re(this.getGAstProductions()[ae],te).startWalking(),this.firstAfterRepMap[oe]=se}var ue=se.token,ce=se.occurrence,le=se.isEndOfRule;1===this.RULE_STACK.length&&le&&void 0===ue&&(ue=ne.EOF,ce=1),void 0!==ue&&void 0!==ce&&this.shouldInRepetitionRecoveryBeTried(ue,ce,ie)&&this.tryInRepetitionRecovery(b,S,J,ue)}S.Recoverable=ge,S.attemptInRepetitionRecovery=_},3225:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.TreeBuilder=void 0;var te=J(7485),re=ee(J(4291)),ne=ee(J(3352)),ie=ee(J(249)),oe=ee(J(4336)),se=J(8169),ae=J(2941),ue=function(){function t(){}return t.prototype.initTreeBuilder=function(b){if(this.CST_STACK=[],this.outputCst=b.outputCst,this.nodeLocationTracking=(0,ne.default)(b,"nodeLocationTracking")?b.nodeLocationTracking:ae.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationFull,this.setNodeLocationFromNode=te.setNodeLocationFull,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=te.setNodeLocationOnlyOffset,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'.concat(b.nodeLocationTracking,'"'));this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=re.default,this.setInitialNodeLocation=re.default}else this.cstInvocationStateUpdate=re.default,this.cstFinallyStateUpdate=re.default,this.cstPostTerminal=re.default,this.cstPostNonTerminal=re.default,this.cstPostRule=re.default},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(b){b.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(b){b.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(b){b.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(b){var S=this.LA(1);b.location={startOffset:S.startOffset,startLine:S.startLine,startColumn:S.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(b){var S={name:b,children:Object.create(null)};this.setInitialNodeLocation(S),this.CST_STACK.push(S)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?(J.endOffset=S.endOffset,J.endLine=S.endLine,J.endColumn=S.endColumn):(J.startOffset=NaN,J.startLine=NaN,J.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?J.endOffset=S.endOffset:J.startOffset=NaN},t.prototype.cstPostTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addTerminalToCst)(J,S,b),this.setNodeLocationFromToken(J.location,S)},t.prototype.cstPostNonTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addNoneTerminalToCst)(J,S,b),this.setNodeLocationFromNode(J.location,b.location)},t.prototype.getBaseCstVisitorConstructor=function(){if((0,oe.default)(this.baseCstVisitorConstructor)){var b=(0,se.createBaseSemanticVisitorConstructor)(this.className,(0,ie.default)(this.gastProductionsCache));return this.baseCstVisitorConstructor=b,b}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,oe.default)(this.baseCstVisitorWithDefaultsConstructor)){var b=(0,se.createBaseVisitorConstructorWithDefaults)(this.className,(0,ie.default)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=b,b}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var b=this.RULE_OCCURRENCE_STACK;return b[b.length-1]},t}();S.TreeBuilder=ue},4803:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.applyMixins=void 0,S.applyMixins=function(b,S){S.forEach((function(S){var J=S.prototype;Object.getOwnPropertyNames(J).forEach((function(ee){if("constructor"!==ee){var te=Object.getOwnPropertyDescriptor(J,ee);te&&(te.get||te.set)?Object.defineProperty(b.prototype,ee,te):b.prototype[ee]=S.prototype[ee]}}))}))}},6178:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.charCodeToOptimizedIndex=S.minOptimizationVal=S.buildLineBreakIssueMessage=S.LineTerminatorOptimizedTester=S.isShortPattern=S.isCustomPattern=S.cloneEmptyGroups=S.performWarningRuntimeChecks=S.performRuntimeChecks=S.addStickyFlag=S.addStartOfInput=S.findUnreachablePatterns=S.findModesThatDoNotExist=S.findInvalidGroupType=S.findDuplicatePatterns=S.findUnsupportedFlags=S.findStartOfInputAnchor=S.findEmptyMatchRegExps=S.findEndOfInputAnchor=S.findInvalidPatterns=S.findMissingPatterns=S.validatePatterns=S.analyzeTokenTypes=S.enableSticky=S.disableSticky=S.SUPPORT_STICKY=S.MODES=S.DEFAULT_MODE=void 0;var ne=J(4844),ie=J(9027),oe=re(J(3237)),se=re(J(5455)),ae=re(J(417)),ue=re(J(6152)),ce=re(J(8346)),le=re(J(5676)),pe=re(J(2070)),fe=re(J(7335)),de=re(J(3493)),he=re(J(6760)),me=re(J(9756)),ge=re(J(5505)),ye=re(J(1049)),ve=re(J(4336)),Te=re(J(5281)),be=re(J(3352)),Ee=re(J(249)),Ae=re(J(859)),we=re(J(882)),_e=re(J(4573)),xe=re(J(8215)),Pe=re(J(1886)),Ce=J(7146),ke=J(1480),Se=J(3067);function C(b){var S=(0,we.default)(b,(function(b){return!(0,be.default)(b,"PATTERN")}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- missing static 'PATTERN' property",type:ie.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}function M(b){var S=(0,we.default)(b,(function(b){var S=b.PATTERN;return!((0,Ae.default)(S)||(0,ye.default)(S)||(0,be.default)(S,"exec")||(0,ge.default)(S))}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ie.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}S.DEFAULT_MODE="defaultMode",S.MODES="modes",S.SUPPORT_STICKY="boolean"==typeof new RegExp("(?:)").sticky,S.disableSticky=function(){S.SUPPORT_STICKY=!1},S.enableSticky=function(){S.SUPPORT_STICKY=!0},S.analyzeTokenTypes=function(b,J){var ee,te=(J=(0,_e.default)(J,{useSticky:S.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(b,S){return S()}})).tracer;te("initCharCodeToOptimizedIndexMap",(function(){!function(){if((0,se.default)(Oe)){Oe=new Array(65536);for(var b=0;b<65536;b++)Oe[b]=b>255?255+~~(b/255):b}}()})),te("Reject Lexer.NA",(function(){ee=(0,pe.default)(b,(function(b){return b.PATTERN===ie.Lexer.NA}))}));var re,ne,oe,ae,ce,le,fe,Te,Ee,we,Se,De=!1;te("Transform Patterns",(function(){De=!1,re=(0,he.default)(ee,(function(b){var S=b.PATTERN;if((0,Ae.default)(S)){var ee=S.source;return 1!==ee.length||"^"===ee||"$"===ee||"."===ee||S.ignoreCase?2!==ee.length||"\\"!==ee[0]||(0,Pe.default)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ee[1])?J.useSticky?Y(S):K(S):ee[1]:ee}if((0,ye.default)(S))return De=!0,{exec:S};if("object"==typeof S)return De=!0,S;if("string"==typeof S){if(1===S.length)return S;var te=S.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(te);return J.useSticky?Y(re):K(re)}throw Error("non exhaustive match")}))})),te("misc mapping",(function(){ne=(0,he.default)(ee,(function(b){return b.tokenTypeIdx})),oe=(0,he.default)(ee,(function(b){var S=b.GROUP;if(S!==ie.Lexer.SKIPPED){if((0,ge.default)(S))return S;if((0,ve.default)(S))return!1;throw Error("non exhaustive match")}})),ae=(0,he.default)(ee,(function(b){var S=b.LONGER_ALT;if(S)return(0,ue.default)(S)?(0,he.default)(S,(function(b){return(0,de.default)(ee,b)})):[(0,de.default)(ee,S)]})),ce=(0,he.default)(ee,(function(b){return b.PUSH_MODE})),le=(0,he.default)(ee,(function(b){return(0,be.default)(b,"POP_MODE")}))})),te("Line Terminator Handling",(function(){var b=Q(J.lineTerminatorCharacters);fe=(0,he.default)(ee,(function(b){return!1})),"onlyOffset"!==J.positionTracking&&(fe=(0,he.default)(ee,(function(S){return(0,be.default)(S,"LINE_BREAKS")?!!S.LINE_BREAKS:!1===q(S,b)&&(0,ke.canMatchCharCode)(b,S.PATTERN)})))})),te("Misc Mapping #2",(function(){Te=(0,he.default)(ee,H),Ee=(0,he.default)(re,X),we=(0,xe.default)(ee,(function(b,S){var J=S.GROUP;return(0,ge.default)(J)&&J!==ie.Lexer.SKIPPED&&(b[J]=[]),b}),{}),Se=(0,he.default)(re,(function(b,S){return{pattern:re[S],longerAlt:ae[S],canLineTerminator:fe[S],isCustom:Te[S],short:Ee[S],group:oe[S],push:ce[S],pop:le[S],tokenTypeIdx:ne[S],tokenType:ee[S]}}))}));var Ie=!0,Re=[];return J.safeMode||te("First Char Optimization",(function(){Re=(0,xe.default)(ee,(function(b,S,ee){if("string"==typeof S.PATTERN){var te=tt(S.PATTERN.charCodeAt(0));Z(b,te,Se[ee])}else if((0,ue.default)(S.START_CHARS_HINT)){var re;(0,me.default)(S.START_CHARS_HINT,(function(S){var J=tt("string"==typeof S?S.charCodeAt(0):S);re!==J&&(re=J,Z(b,J,Se[ee]))}))}else if((0,Ae.default)(S.PATTERN))if(S.PATTERN.unicode)Ie=!1,J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(ke.failedOptimizationPrefixMsg)+"\tUnable to analyze < ".concat(S.PATTERN.toString()," > pattern.\n")+"\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var ne=(0,ke.getOptimizedStartCodesIndices)(S.PATTERN,J.ensureOptimizations);(0,se.default)(ne)&&(Ie=!1),(0,me.default)(ne,(function(S){Z(b,S,Se[ee])}))}else J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(ke.failedOptimizationPrefixMsg)+"\tTokenType: <".concat(S.name,"> is using a custom token pattern without providing <start_chars_hint> parameter.\n")+"\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),Ie=!1;return b}),[])})),{emptyGroups:we,patternIdxToConfig:Se,charCodeToPatternIdxToConfig:Re,hasCustom:De,canBeOptimized:Ie}},S.validatePatterns=function(b,S){var J=[],ee=C(b);J=J.concat(ee.errors);var te=M(ee.valid),re=te.valid;return(J=(J=(J=(J=J.concat(te.errors)).concat(function(b){var S=[],J=(0,we.default)(b,(function(b){return(0,Ae.default)(b.PATTERN)}));return(S=(S=(S=(S=S.concat(w(J))).concat(U(J))).concat(B(J))).concat(G(J))).concat(F(J))}(re))).concat(W(re))).concat(V(re,S))).concat(z(re))},S.findMissingPatterns=C,S.findInvalidPatterns=M;var De=/[^\\][$]/;function w(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitEndAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,we.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return De.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function F(b){var S=(0,we.default)(b,(function(b){return b.PATTERN.test("")}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' must not match an empty string",type:ie.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[b]}}))}S.findEndOfInputAnchor=w,S.findEmptyMatchRegExps=F;var Ie=/[^\\[][\^]|^\^/;function U(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitStartAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,we.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return Ie.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function B(b){var S=(0,we.default)(b,(function(b){var S=b.PATTERN;return S instanceof RegExp&&(S.multiline||S.global)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ie.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[b]}}))}function G(b){var S=[],J=(0,he.default)(b,(function(J){return(0,xe.default)(b,(function(b,ee){return J.PATTERN.source!==ee.PATTERN.source||(0,Pe.default)(S,ee)||ee.PATTERN===ie.Lexer.NA||(S.push(ee),b.push(ee)),b}),[])}));J=(0,ae.default)(J);var ee=(0,we.default)(J,(function(b){return b.length>1}));return(0,he.default)(ee,(function(b){var S=(0,he.default)(b,(function(b){return b.name})),J=(0,oe.default)(b).PATTERN;return{message:"The same RegExp pattern ->".concat(J,"<-")+"has been used in all of the following Token Types: ".concat(S.join(", ")," <-"),type:ie.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:b}}))}function W(b){var S=(0,we.default)(b,(function(b){if(!(0,be.default)(b,"GROUP"))return!1;var S=b.GROUP;return S!==ie.Lexer.SKIPPED&&S!==ie.Lexer.NA&&!(0,ge.default)(S)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ie.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[b]}}))}function V(b,S){var J=(0,we.default)(b,(function(b){return void 0!==b.PUSH_MODE&&!(0,Pe.default)(S,b.PUSH_MODE)}));return(0,he.default)(J,(function(b){return{message:"Token Type: ->".concat(b.name,"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(b.PUSH_MODE,"<-")+"which does not exist",type:ie.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[b]}}))}function z(b){var S=[],J=(0,xe.default)(b,(function(b,S,J){var ee,te,re=S.PATTERN;return re===ie.Lexer.NA||((0,ge.default)(re)?b.push({str:re,idx:J,tokenType:S}):(0,Ae.default)(re)&&(ee=re,te=[".","\\","[","]","|","^","$","(",")","?","*","+","{"],void 0===(0,Te.default)(te,(function(b){return-1!==ee.source.indexOf(b)})))&&b.push({str:re.source,idx:J,tokenType:S})),b}),[]);return(0,me.default)(b,(function(b,ee){(0,me.default)(J,(function(J){var te=J.str,re=J.idx,ne=J.tokenType;if(ee<re&&function(b,S){if((0,Ae.default)(S)){var J=S.exec(b);return null!==J&&0===J.index}if((0,ye.default)(S))return S(b,0,[],{});if((0,be.default)(S,"exec"))return S.exec(b,0,[],{});if("string"==typeof S)return S===b;throw Error("non exhaustive match")}(te,b.PATTERN)){var oe="Token: ->".concat(ne.name,"<- can never be matched.\n")+"Because it appears AFTER the Token Type ->".concat(b.name,"<-")+"in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE";S.push({message:oe,type:ie.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[b,ne]})}}))})),S}function K(b){var S=b.ignoreCase?"i":"";return new RegExp("^(?:".concat(b.source,")"),S)}function Y(b){var S=b.ignoreCase?"iy":"y";return new RegExp("".concat(b.source),S)}function H(b){var S=b.PATTERN;if((0,Ae.default)(S))return!1;if((0,ye.default)(S))return!0;if((0,be.default)(S,"exec"))return!0;if((0,ge.default)(S))return!1;throw Error("non exhaustive match")}function X(b){return!(!(0,ge.default)(b)||1!==b.length)&&b.charCodeAt(0)}function q(b,S){if((0,be.default)(b,"LINE_BREAKS"))return!1;if((0,Ae.default)(b.PATTERN)){try{(0,ke.canMatchCharCode)(S,b.PATTERN)}catch(b){return{issue:ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:b.message}}return!1}if((0,ge.default)(b.PATTERN))return!1;if(H(b))return{issue:ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function $(b,S){if(S.issue===ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\t Root cause: ".concat(S.errMsg,".\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(S.issue===ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function Q(b){return(0,he.default)(b,(function(b){return(0,ge.default)(b)?b.charCodeAt(0):b}))}function Z(b,S,J){void 0===b[S]?b[S]=[J]:b[S].push(J)}S.findStartOfInputAnchor=U,S.findUnsupportedFlags=B,S.findDuplicatePatterns=G,S.findInvalidGroupType=W,S.findModesThatDoNotExist=V,S.findUnreachablePatterns=z,S.addStartOfInput=K,S.addStickyFlag=Y,S.performRuntimeChecks=function(b,J,ee){var te=[];return(0,be.default)(b,S.DEFAULT_MODE)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.DEFAULT_MODE+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,be.default)(b,S.MODES)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.MODES+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,be.default)(b,S.MODES)&&(0,be.default)(b,S.DEFAULT_MODE)&&!(0,be.default)(b.modes,b.defaultMode)&&te.push({message:"A MultiMode Lexer cannot be initialized with a ".concat(S.DEFAULT_MODE,": <").concat(b.defaultMode,">")+"which does not exist\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,be.default)(b,S.MODES)&&(0,me.default)(b.modes,(function(b,S){(0,me.default)(b,(function(b,J){(0,ve.default)(b)&&te.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+"<".concat(S,"> at index: <").concat(J,">\n"),type:ie.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),te},S.performWarningRuntimeChecks=function(b,S,J){var ee=[],te=!1,re=(0,ae.default)((0,le.default)((0,ce.default)(b.modes))),ne=(0,pe.default)(re,(function(b){return b.PATTERN===ie.Lexer.NA})),oe=Q(J);return S&&(0,me.default)(ne,(function(b){var S=q(b,oe);if(!1!==S){var J={message:$(b,S),type:S.issue,tokenType:b};ee.push(J)}else(0,be.default)(b,"LINE_BREAKS")?!0===b.LINE_BREAKS&&(te=!0):(0,ke.canMatchCharCode)(oe,b.PATTERN)&&(te=!0)})),S&&!te&&ee.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:ie.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),ee},S.cloneEmptyGroups=function(b){var S={},J=(0,Ee.default)(b);return(0,me.default)(J,(function(J){var ee=b[J];if(!(0,ue.default)(ee))throw Error("non exhaustive match");S[J]=[]})),S},S.isCustomPattern=H,S.isShortPattern=X,S.LineTerminatorOptimizedTester={test:function(b){for(var S=b.length,J=this.lastIndex;J<S;J++){var ee=b.charCodeAt(J);if(10===ee)return this.lastIndex=J+1,!0;if(13===ee)return 10===b.charCodeAt(J+1)?this.lastIndex=J+2:this.lastIndex=J+1,!0}return!1},lastIndex:0},S.buildLineBreakIssueMessage=$,S.minOptimizationVal=256;var Oe=[];function tt(b){return b<S.minOptimizationVal?b:Oe[b]}S.charCodeToOptimizedIndex=tt},495:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defaultLexerErrorProvider=void 0,S.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(b){return"Unable to pop Lexer Mode after encountering Token ->".concat(b.image,"<- The Mode Stack is empty")},buildUnexpectedCharactersMessage:function(b,S,J,ee,te){return"unexpected character: ->".concat(b.charAt(S),"<- at offset: ").concat(S,",")+" skipped ".concat(J," characters.")}}},9027:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.Lexer=S.LexerDefinitionErrorType=void 0;var te,re=J(6178),ne=ee(J(4291)),ie=ee(J(5455)),oe=ee(J(6152)),se=ee(J(6974)),ae=ee(J(2070)),ue=ee(J(6760)),ce=ee(J(9756)),le=ee(J(249)),pe=ee(J(4336)),fe=ee(J(3059)),de=ee(J(19)),he=ee(J(8215)),me=ee(J(4004)),ge=J(7146),ye=J(1201),ve=J(495),Te=J(3067);(te=S.LexerDefinitionErrorType||(S.LexerDefinitionErrorType={}))[te.MISSING_PATTERN=0]="MISSING_PATTERN",te[te.INVALID_PATTERN=1]="INVALID_PATTERN",te[te.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",te[te.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",te[te.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",te[te.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",te[te.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",te[te.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",te[te.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",te[te.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",te[te.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",te[te.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",te[te.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",te[te.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",te[te.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",te[te.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",te[te.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK";var be={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ve.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(be);var Ee=function(){function t(b,S){void 0===S&&(S=be);var J=this;if(this.lexerDefinition=b,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=function(b,S){if(!0===J.traceInitPerf){J.traceInitIndent++;var ee=new Array(J.traceInitIndent+1).join("\t");J.traceInitIndent<J.traceInitMaxIdent&&console.log("".concat(ee,"--\x3e <").concat(b,">"));var te=(0,ge.timer)(S),re=te.time,ne=te.value,ie=re>10?console.warn:console.log;return J.traceInitIndent<J.traceInitMaxIdent&&ie("".concat(ee,"<-- <").concat(b,"> time: ").concat(re,"ms")),J.traceInitIndent--,ne}return S()},"boolean"==typeof S)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=(0,de.default)({},be,S);var ee=this.config.traceInitPerf;!0===ee?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof ee&&(this.traceInitMaxIdent=ee,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var ee,te=!0;J.TRACE_INIT("Lexer Config handling",(function(){if(J.config.lineTerminatorsPattern===be.lineTerminatorsPattern)J.config.lineTerminatorsPattern=re.LineTerminatorOptimizedTester;else if(J.config.lineTerminatorCharacters===be.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(S.safeMode&&S.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');J.trackStartLines=/full|onlyStart/i.test(J.config.positionTracking),J.trackEndLines=/full/i.test(J.config.positionTracking),(0,oe.default)(b)?ee={modes:{defaultMode:(0,me.default)(b)},defaultMode:re.DEFAULT_MODE}:(te=!1,ee=(0,me.default)(b))})),!1===J.config.skipValidations&&(J.TRACE_INIT("performRuntimeChecks",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.performRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))})),J.TRACE_INIT("performWarningRuntimeChecks",(function(){J.lexerDefinitionWarning=J.lexerDefinitionWarning.concat((0,re.performWarningRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))}))),ee.modes=ee.modes?ee.modes:{},(0,ce.default)(ee.modes,(function(b,S){ee.modes[S]=(0,ae.default)(b,(function(b){return(0,pe.default)(b)}))}));var se=(0,le.default)(ee.modes);if((0,ce.default)(ee.modes,(function(b,ee){J.TRACE_INIT("Mode: <".concat(ee,"> processing"),(function(){var te;J.modes.push(ee),!1===J.config.skipValidations&&J.TRACE_INIT("validatePatterns",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.validatePatterns)(b,se))})),(0,ie.default)(J.lexerDefinitionErrors)&&((0,ye.augmentTokenTypes)(b),J.TRACE_INIT("analyzeTokenTypes",(function(){te=(0,re.analyzeTokenTypes)(b,{lineTerminatorCharacters:J.config.lineTerminatorCharacters,positionTracking:S.positionTracking,ensureOptimizations:S.ensureOptimizations,safeMode:S.safeMode,tracer:J.TRACE_INIT})})),J.patternIdxToConfig[ee]=te.patternIdxToConfig,J.charCodeToPatternIdxToConfig[ee]=te.charCodeToPatternIdxToConfig,J.emptyGroups=(0,de.default)({},J.emptyGroups,te.emptyGroups),J.hasCustom=te.hasCustom||J.hasCustom,J.canModeBeOptimized[ee]=te.canBeOptimized)}))})),J.defaultMode=ee.defaultMode,!(0,ie.default)(J.lexerDefinitionErrors)&&!J.config.deferDefinitionErrorsHandling){var ve=(0,ue.default)(J.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+ve)}(0,ce.default)(J.lexerDefinitionWarning,(function(b){(0,ge.PRINT_WARNING)(b.message)})),J.TRACE_INIT("Choosing sub-methods implementations",(function(){if(re.SUPPORT_STICKY?(J.chopInput=fe.default,J.match=J.matchWithTest):(J.updateLastIndex=ne.default,J.match=J.matchWithExec),te&&(J.handleModes=ne.default),!1===J.trackStartLines&&(J.computeNewColumn=fe.default),!1===J.trackEndLines&&(J.updateTokenEndLineColumnLocation=ne.default),/full/i.test(J.config.positionTracking))J.createTokenInstance=J.createFullToken;else if(/onlyStart/i.test(J.config.positionTracking))J.createTokenInstance=J.createStartOnlyToken;else{if(!/onlyOffset/i.test(J.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'.concat(J.config.positionTracking,'"'));J.createTokenInstance=J.createOffsetOnlyToken}J.hasCustom?(J.addToken=J.addTokenUsingPush,J.handlePayload=J.handlePayloadWithCustom):(J.addToken=J.addTokenUsingMemberAccess,J.handlePayload=J.handlePayloadNoCustom)})),J.TRACE_INIT("Failed Optimization Warnings",(function(){var b=(0,he.default)(J.canModeBeOptimized,(function(b,S,J){return!1===S&&b.push(J),b}),[]);if(S.ensureOptimizations&&!(0,ie.default)(b))throw Error("Lexer Modes: < ".concat(b.join(", ")," > cannot be optimized.\n")+'\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),J.TRACE_INIT("clearRegExpParserCache",(function(){(0,Te.clearRegExpParserCache)()})),J.TRACE_INIT("toFastProperties",(function(){(0,ge.toFastProperties)(J)}))}))}return t.prototype.tokenize=function(b,S){if(void 0===S&&(S=this.defaultMode),!(0,ie.default)(this.lexerDefinitionErrors)){var J=(0,ue.default)(this.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+J)}return this.tokenizeInternal(b,S)},t.prototype.tokenizeInternal=function(b,S){var J,ee,te,ne,ie,oe,ae,ue,ce,le,pe,fe,de,he,me,ge,ye=this,ve=b,Te=ve.length,be=0,Ee=0,Ae=this.hasCustom?0:Math.floor(b.length/10),we=new Array(Ae),_e=[],xe=this.trackStartLines?1:void 0,Pe=this.trackStartLines?1:void 0,Ce=(0,re.cloneEmptyGroups)(this.emptyGroups),ke=this.trackStartLines,Se=this.config.lineTerminatorsPattern,De=0,Ie=[],Oe=[],Re=[],Ne=[];function j(){return Ie}function U(b){var S=(0,re.charCodeToOptimizedIndex)(b),J=Oe[S];return void 0===J?Ne:J}Object.freeze(Ne);var Me,G=function(b){if(1===Re.length&&void 0===b.tokenType.PUSH_MODE){var S=ye.config.errorMessageProvider.buildUnableToPopLexerModeMessage(b);_e.push({offset:b.startOffset,line:b.startLine,column:b.startColumn,length:b.image.length,message:S})}else{Re.pop();var J=(0,se.default)(Re);Ie=ye.patternIdxToConfig[J],Oe=ye.charCodeToPatternIdxToConfig[J],De=Ie.length;var ee=ye.canModeBeOptimized[J]&&!1===ye.config.safeMode;ge=Oe&&ee?U:j}};function W(b){Re.push(b),Oe=this.charCodeToPatternIdxToConfig[b],Ie=this.patternIdxToConfig[b],De=Ie.length,De=Ie.length;var S=this.canModeBeOptimized[b]&&!1===this.config.safeMode;ge=Oe&&S?U:j}for(W.call(this,S);be<Te;){oe=null;var Fe=ve.charCodeAt(be),Le=ge(Fe),je=Le.length;for(J=0;J<je;J++){var Be=(Me=Le[J]).pattern;if(ae=null,!1!==(ze=Me.short)?Fe===ze&&(oe=Be):!0===Me.isCustom?null!==(me=Be.exec(ve,be,we,Ce))?(oe=me[0],void 0!==me.payload&&(ae=me.payload)):oe=null:(this.updateLastIndex(Be,be),oe=this.match(Be,b,be)),null!==oe){if(void 0!==(ie=Me.longerAlt)){var $e=ie.length;for(te=0;te<$e;te++){var Ue=Ie[ie[te]],Xe=Ue.pattern;if(ue=null,!0===Ue.isCustom?null!==(me=Xe.exec(ve,be,we,Ce))?(ne=me[0],void 0!==me.payload&&(ue=me.payload)):ne=null:(this.updateLastIndex(Xe,be),ne=this.match(Xe,b,be)),ne&&ne.length>oe.length){oe=ne,ae=ue,Me=Ue;break}}}break}}if(null!==oe){if(ce=oe.length,void 0!==(le=Me.group)&&(pe=Me.tokenTypeIdx,fe=this.createTokenInstance(oe,be,pe,Me.tokenType,xe,Pe,ce),this.handlePayload(fe,ae),!1===le?Ee=this.addToken(we,Ee,fe):Ce[le].push(fe)),b=this.chopInput(b,ce),be+=ce,Pe=this.computeNewColumn(Pe,ce),!0===ke&&!0===Me.canLineTerminator){var Ge=0,Ve=void 0,We=void 0;Se.lastIndex=0;do{!0===(Ve=Se.test(oe))&&(We=Se.lastIndex-1,Ge++)}while(!0===Ve);0!==Ge&&(xe+=Ge,Pe=ce-We,this.updateTokenEndLineColumnLocation(fe,le,We,Ge,xe,Pe,ce))}this.handleModes(Me,G,W,fe)}else{for(var qe=be,He=xe,Ke=Pe,Ye=!1;!Ye&&be<Te;)for(ve.charCodeAt(be),b=this.chopInput(b,1),be++,ee=0;ee<De;ee++){var ze,Je=Ie[ee];if(Be=Je.pattern,!1!==(ze=Je.short)?ve.charCodeAt(be)===ze&&(Ye=!0):!0===Je.isCustom?Ye=null!==Be.exec(ve,be,we,Ce):(this.updateLastIndex(Be,be),Ye=null!==Be.exec(b)),!0===Ye)break}de=be-qe,he=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(ve,qe,de,He,Ke),_e.push({offset:qe,line:He,column:Ke,length:de,message:he})}}return this.hasCustom||(we.length=Ee),{tokens:we,groups:Ce,errors:_e}},t.prototype.handleModes=function(b,S,J,ee){if(!0===b.pop){var te=b.push;S(ee),void 0!==te&&J.call(this,te)}else void 0!==b.push&&J.call(this,b.push)},t.prototype.chopInput=function(b,S){return b.substring(S)},t.prototype.updateLastIndex=function(b,S){b.lastIndex=S},t.prototype.updateTokenEndLineColumnLocation=function(b,S,J,ee,te,re,ne){var ie,oe;void 0!==S&&(oe=(ie=J===ne-1)?-1:0,1===ee&&!0===ie||(b.endLine=te+oe,b.endColumn=re-1-oe))},t.prototype.computeNewColumn=function(b,S){return b+S},t.prototype.createOffsetOnlyToken=function(b,S,J,ee){return{image:b,startOffset:S,tokenTypeIdx:J,tokenType:ee}},t.prototype.createStartOnlyToken=function(b,S,J,ee,te,re){return{image:b,startOffset:S,startLine:te,startColumn:re,tokenTypeIdx:J,tokenType:ee}},t.prototype.createFullToken=function(b,S,J,ee,te,re,ne){return{image:b,startOffset:S,endOffset:S+ne-1,startLine:te,endLine:te,startColumn:re,endColumn:re+ne-1,tokenTypeIdx:J,tokenType:ee}},t.prototype.addTokenUsingPush=function(b,S,J){return b.push(J),S},t.prototype.addTokenUsingMemberAccess=function(b,S,J){return b[S]=J,++S},t.prototype.handlePayloadNoCustom=function(b,S){},t.prototype.handlePayloadWithCustom=function(b,S){null!==S&&(b.payload=S)},t.prototype.matchWithTest=function(b,S,J){return!0===b.test(S)?S.substring(J,b.lastIndex):null},t.prototype.matchWithExec=function(b,S){var J=b.exec(S);return null!==J?J[0]:null},t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",t.NA=/NOT_APPLICABLE/,t}();S.Lexer=Ee},1480:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.canMatchCharCode=S.firstCharOptimizedIndices=S.getOptimizedStartCodesIndices=S.failedOptimizationPrefixMsg=void 0;var ne=J(4844),ie=re(J(6152)),oe=re(J(9794)),se=re(J(9756)),ae=re(J(5281)),ue=re(J(8346)),ce=re(J(1886)),le=J(7146),pe=J(3067),fe=J(6178),de="Complement Sets are not supported for first char optimization";function m(b,S,J){switch(b.type){case"Disjunction":for(var ee=0;ee<b.value.length;ee++)m(b.value[ee],S,J);break;case"Alternative":var te=b.value;for(ee=0;ee<te.length;ee++){var re=te[ee];switch(re.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var ne=re;switch(ne.type){case"Character":T(ne.value,S,J);break;case"Set":if(!0===ne.complement)throw Error(de);(0,se.default)(ne.value,(function(b){if("number"==typeof b)T(b,S,J);else{var ee=b;if(!0===J)for(var te=ee.from;te<=ee.to;te++)T(te,S,J);else{for(te=ee.from;te<=ee.to&&te<fe.minOptimizationVal;te++)T(te,S,J);if(ee.to>=fe.minOptimizationVal)for(var re=ee.from>=fe.minOptimizationVal?ee.from:fe.minOptimizationVal,ne=ee.to,ie=(0,fe.charCodeToOptimizedIndex)(re),oe=(0,fe.charCodeToOptimizedIndex)(ne),se=ie;se<=oe;se++)S[se]=se}}}));break;case"Group":m(ne.value,S,J);break;default:throw Error("Non Exhaustive Match")}var ie=void 0!==ne.quantifier&&0===ne.quantifier.atLeast;if("Group"===ne.type&&!1===_(ne)||"Group"!==ne.type&&!1===ie)break}break;default:throw Error("non exhaustive match!")}return(0,ue.default)(S)}function T(b,S,J){var ee=(0,fe.charCodeToOptimizedIndex)(b);S[ee]=ee,!0===J&&function(b,S){var J=String.fromCharCode(b),ee=J.toUpperCase();if(ee!==J)S[te=(0,fe.charCodeToOptimizedIndex)(ee.charCodeAt(0))]=te;else{var te,re=J.toLowerCase();re!==J&&(S[te=(0,fe.charCodeToOptimizedIndex)(re.charCodeAt(0))]=te)}}(b,S)}function E(b,S){return(0,ae.default)(b.value,(function(b){if("number"==typeof b)return(0,ce.default)(S,b);var J=b;return void 0!==(0,ae.default)(S,(function(b){return J.from<=b&&b<=J.to}))}))}function _(b){var S=b.quantifier;return!(!S||0!==S.atLeast)||!!b.value&&((0,ie.default)(b.value)?(0,oe.default)(b.value,_):_(b.value))}S.failedOptimizationPrefixMsg='Unable to use "first char" lexer optimizations:\n',S.getOptimizedStartCodesIndices=function(b,J){void 0===J&&(J=!1);try{var ee=(0,pe.getRegExpAst)(b);return m(ee.value,{},ee.flags.ignoreCase)}catch(ee){if(ee.message===de)J&&(0,le.PRINT_WARNING)("".concat(S.failedOptimizationPrefixMsg)+"\tUnable to optimize: < ".concat(b.toString()," >\n")+"\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var te="";J&&(te="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),(0,le.PRINT_ERROR)("".concat(S.failedOptimizationPrefixMsg,"\n")+"\tFailed parsing: < ".concat(b.toString()," >\n")+"\tUsing the regexp-to-ast library version: ".concat(ne.VERSION,"\n")+"\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+te)}}return[]},S.firstCharOptimizedIndices=m;var he=function(b){function e(S){var J=b.call(this)||this;return J.targetCharCodes=S,J.found=!1,J}return te(e,b),e.prototype.visitChildren=function(S){if(!0!==this.found){switch(S.type){case"Lookahead":return void this.visitLookahead(S);case"NegativeLookahead":return void this.visitNegativeLookahead(S)}b.prototype.visitChildren.call(this,S)}},e.prototype.visitCharacter=function(b){(0,ce.default)(this.targetCharCodes,b.value)&&(this.found=!0)},e.prototype.visitSet=function(b){b.complement?void 0===E(b,this.targetCharCodes)&&(this.found=!0):void 0!==E(b,this.targetCharCodes)&&(this.found=!0)},e}(ne.BaseRegExpVisitor);S.canMatchCharCode=function(b,S){if(S instanceof RegExp){var J=(0,pe.getRegExpAst)(S),ee=new he(b);return ee.visit(J),ee.found}return void 0!==(0,ae.default)(S,(function(S){return(0,ce.default)(b,S.charCodeAt(0))}))}},3067:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.clearRegExpParserCache=S.getRegExpAst=void 0;var ee=J(4844),te={},re=new ee.RegExpParser;S.getRegExpAst=function(b){var S=b.toString();if(te.hasOwnProperty(S))return te[S];var J=re.pattern(S);return te[S]=J,J},S.clearRegExpParserCache=function(){te={}}},1201:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.isTokenType=S.hasExtendingTokensTypesMapProperty=S.hasExtendingTokensTypesProperty=S.hasCategoriesProperty=S.hasShortKeyProperty=S.singleAssignCategoriesToksMap=S.assignCategoriesMapProp=S.assignCategoriesTokensProp=S.assignTokenDefaultProps=S.expandCategories=S.augmentTokenTypes=S.tokenIdxToClass=S.tokenShortNameIdx=S.tokenStructuredMatcherNoCategories=S.tokenStructuredMatcher=void 0;var te=ee(J(5455)),re=ee(J(417)),ne=ee(J(6152)),ie=ee(J(5676)),oe=ee(J(7335)),se=ee(J(6760)),ae=ee(J(9756)),ue=ee(J(3352)),ce=ee(J(1886)),le=ee(J(4004));function h(b){for(var S=(0,le.default)(b),J=b,ee=!0;ee;){J=(0,re.default)((0,ie.default)((0,se.default)(J,(function(b){return b.CATEGORIES}))));var ne=(0,oe.default)(J,S);S=S.concat(ne),(0,te.default)(ne)?ee=!1:J=ne}return S}function v(b){(0,ae.default)(b,(function(b){E(b)||(S.tokenIdxToClass[S.tokenShortNameIdx]=b,b.tokenTypeIdx=S.tokenShortNameIdx++),_(b)&&!(0,ne.default)(b.CATEGORIES)&&(b.CATEGORIES=[b.CATEGORIES]),_(b)||(b.CATEGORIES=[]),g(b)||(b.categoryMatches=[]),O(b)||(b.categoryMatchesMap={})}))}function y(b){(0,ae.default)(b,(function(b){b.categoryMatches=[],(0,ae.default)(b.categoryMatchesMap,(function(J,ee){b.categoryMatches.push(S.tokenIdxToClass[ee].tokenTypeIdx)}))}))}function m(b){(0,ae.default)(b,(function(b){T([],b)}))}function T(b,S){(0,ae.default)(b,(function(b){S.categoryMatchesMap[b.tokenTypeIdx]=!0})),(0,ae.default)(S.CATEGORIES,(function(J){var ee=b.concat(S);(0,ce.default)(ee,J)||T(ee,J)}))}function E(b){return(0,ue.default)(b,"tokenTypeIdx")}function _(b){return(0,ue.default)(b,"CATEGORIES")}function g(b){return(0,ue.default)(b,"categoryMatches")}function O(b){return(0,ue.default)(b,"categoryMatchesMap")}S.tokenStructuredMatcher=function(b,S){var J=b.tokenTypeIdx;return J===S.tokenTypeIdx||!0===S.isParent&&!0===S.categoryMatchesMap[J]},S.tokenStructuredMatcherNoCategories=function(b,S){return b.tokenTypeIdx===S.tokenTypeIdx},S.tokenShortNameIdx=1,S.tokenIdxToClass={},S.augmentTokenTypes=function(b){var S=h(b);v(S),m(S),y(S),(0,ae.default)(S,(function(b){b.isParent=b.categoryMatches.length>0}))},S.expandCategories=h,S.assignTokenDefaultProps=v,S.assignCategoriesTokensProp=y,S.assignCategoriesMapProp=m,S.singleAssignCategoriesToksMap=T,S.hasShortKeyProperty=E,S.hasCategoriesProperty=_,S.hasExtendingTokensTypesProperty=g,S.hasExtendingTokensTypesMapProperty=O,S.isTokenType=function(b){return(0,ue.default)(b,"tokenTypeIdx")}},6736:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.tokenMatcher=S.createTokenInstance=S.EOF=S.createToken=S.hasTokenLabel=S.tokenName=S.tokenLabel=void 0;var te=ee(J(5505)),re=ee(J(3352)),ne=ee(J(4336)),ie=J(9027),oe=J(1201);function c(b){return(0,te.default)(b.LABEL)&&""!==b.LABEL}S.tokenLabel=function(b){return c(b)?b.LABEL:b.name},S.tokenName=function(b){return b.name},S.hasTokenLabel=c;function l(b){return function(b){var S=b.pattern,J={};if(J.name=b.name,(0,ne.default)(S)||(J.PATTERN=S),(0,re.default)(b,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,re.default)(b,"categories")&&(J.CATEGORIES=b.categories),(0,oe.augmentTokenTypes)([J]),(0,re.default)(b,"label")&&(J.LABEL=b.label),(0,re.default)(b,"group")&&(J.GROUP=b.group),(0,re.default)(b,"pop_mode")&&(J.POP_MODE=b.pop_mode),(0,re.default)(b,"push_mode")&&(J.PUSH_MODE=b.push_mode),(0,re.default)(b,"longer_alt")&&(J.LONGER_ALT=b.longer_alt),(0,re.default)(b,"line_breaks")&&(J.LINE_BREAKS=b.line_breaks),(0,re.default)(b,"start_chars_hint")&&(J.START_CHARS_HINT=b.start_chars_hint),J}(b)}S.createToken=l,S.EOF=l({name:"EOF",pattern:ie.Lexer.NA}),(0,oe.augmentTokenTypes)([S.EOF]),S.createTokenInstance=function(b,S,J,ee,te,re,ne,ie){return{image:S,startOffset:J,endOffset:ee,startLine:te,endLine:re,startColumn:ne,endColumn:ie,tokenTypeIdx:b.tokenTypeIdx,tokenType:b}},S.tokenMatcher=function(b,S){return(0,oe.tokenStructuredMatcher)(b,S)}},7979:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.VERSION=void 0,S.VERSION="10.1.2"},8962:function(b,S,J){"use strict";var ee=this&&this.__assign||function(){return(ee=Object.assign||function(b){for(var S,J=1,ee=arguments.length;J<ee;J++)for(var te in S=arguments[J])Object.prototype.hasOwnProperty.call(S,te)&&(b[te]=S[te]);return b}).apply(this,arguments)};Object.defineProperty(S,"__esModule",{value:!0}),S.generateCstDts=void 0;var te=J(7842),re=J(1871),ne={includeVisitorInterface:!0,visitorInterfaceName:"ICstNodeVisitor"};S.generateCstDts=function(b,S){var J=ee(ee({},ne),S),ie=(0,te.buildModel)(b);return(0,re.genDts)(ie,J)}},1871:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.genDts=void 0;var te=ee(J(5676)),re=ee(J(6152)),ne=ee(J(6760)),ie=ee(J(8215)),oe=ee(J(5652)),se=ee(J(3779));function l(b){return"token"===b.kind?"IToken":f(b.name)}function f(b){return(0,se.default)(b)+"CstNode"}function p(b){return(0,se.default)(b)+"CstChildren"}S.genDts=function(b,S){var J,ee,se=[];return se=(se=se.concat('import type { CstNode, ICstVisitor, IToken } from "chevrotain";')).concat((0,te.default)((0,ne.default)(b,(function(b){return function(b){return[function(b){var S=f(b.name),J=p(b.name);return"export interface ".concat(S,' extends CstNode {\n name: "').concat(b.name,'";\n children: ').concat(J,";\n}")}(b),function(b){var S=p(b.name);return"export type ".concat(S," = {\n ").concat((0,ne.default)(b.properties,(function(b){return function(b){var S=function(b){if((0,re.default)(b)){var S=(0,oe.default)((0,ne.default)(b,(function(b){return l(b)})));return"("+(0,ie.default)(S,(function(b,S){return b+" | "+S}))+")"}return l(b)}(b.type);return"".concat(b.name).concat(b.optional?"?":"",": ").concat(S,"[];")}(b)})).join("\n "),"\n};")}(b)]}(b)})))),S.includeVisitorInterface&&(se=se.concat((J=S.visitorInterfaceName,ee=b,"export interface ".concat(J,"<IN, OUT> extends ICstVisitor<IN, OUT> {\n ").concat((0,ne.default)(ee,(function(b){return function(b){var S=p(b.name);return"".concat(b.name,"(children: ").concat(S,", param?: IN): OUT;")}(b)})).join("\n "),"\n}")))),se.join("\n\n")+"\n"}},7842:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildModel=void 0;var ne=J(7729),ie=re(J(6760)),oe=re(J(5676)),se=re(J(8346)),ae=re(J(1525)),ue=re(J(3440)),ce=re(J(19));S.buildModel=function(b){var S=new le,J=(0,se.default)(b);return(0,ie.default)(J,(function(b){return S.visitRule(b)}))};var le=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.visitRule=function(b){var S=this.visitEach(b.definition),J=(0,ue.default)(S,(function(b){return b.propertyName})),ee=(0,ie.default)(J,(function(b,S){var J=!(0,ae.default)(b,(function(b){return!b.canBeNull})),ee=b[0].type;return b.length>1&&(ee=(0,ie.default)(b,(function(b){return b.type}))),{name:S,type:ee,optional:J}}));return{name:b.name,properties:ee}},e.prototype.visitAlternative=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitOption=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetition=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetitionMandatory=function(b){return this.visitEach(b.definition)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){return this.visitEach(b.definition).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitRepetitionWithSeparator=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0}).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitAlternation=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitTerminal=function(b){return[{propertyName:b.label||b.terminalType.name,canBeNull:!1,type:h(b)}]},e.prototype.visitNonTerminal=function(b){return[{propertyName:b.label||b.nonTerminalName,canBeNull:!1,type:h(b)}]},e.prototype.visitEachAndOverrideWith=function(b,S){return(0,ie.default)(this.visitEach(b),(function(b){return(0,ce.default)({},b,S)}))},e.prototype.visitEach=function(b){var S=this;return(0,oe.default)((0,ie.default)(b,(function(b){return S.visit(b)})))},e}(ne.GAstVisitor);function h(b){return b instanceof ne.NonTerminal?{kind:"rule",name:b.referencedRule.name}:{kind:"token"}}},7729:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isSequenceProd=S.isBranchingProd=S.isOptionalProd=S.getProductionDslName=S.GAstVisitor=S.serializeProduction=S.serializeGrammar=S.Alternative=S.Alternation=S.RepetitionWithSeparator=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Repetition=S.Option=S.NonTerminal=S.Terminal=S.Rule=void 0;var ee=J(5700);Object.defineProperty(S,"Rule",{enumerable:!0,get:function(){return ee.Rule}}),Object.defineProperty(S,"Terminal",{enumerable:!0,get:function(){return ee.Terminal}}),Object.defineProperty(S,"NonTerminal",{enumerable:!0,get:function(){return ee.NonTerminal}}),Object.defineProperty(S,"Option",{enumerable:!0,get:function(){return ee.Option}}),Object.defineProperty(S,"Repetition",{enumerable:!0,get:function(){return ee.Repetition}}),Object.defineProperty(S,"RepetitionMandatory",{enumerable:!0,get:function(){return ee.RepetitionMandatory}}),Object.defineProperty(S,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionMandatoryWithSeparator}}),Object.defineProperty(S,"RepetitionWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionWithSeparator}}),Object.defineProperty(S,"Alternation",{enumerable:!0,get:function(){return ee.Alternation}}),Object.defineProperty(S,"Alternative",{enumerable:!0,get:function(){return ee.Alternative}}),Object.defineProperty(S,"serializeGrammar",{enumerable:!0,get:function(){return ee.serializeGrammar}}),Object.defineProperty(S,"serializeProduction",{enumerable:!0,get:function(){return ee.serializeProduction}});var te=J(7694);Object.defineProperty(S,"GAstVisitor",{enumerable:!0,get:function(){return te.GAstVisitor}});var re=J(2515);Object.defineProperty(S,"getProductionDslName",{enumerable:!0,get:function(){return re.getProductionDslName}}),Object.defineProperty(S,"isOptionalProd",{enumerable:!0,get:function(){return re.isOptionalProd}}),Object.defineProperty(S,"isBranchingProd",{enumerable:!0,get:function(){return re.isBranchingProd}}),Object.defineProperty(S,"isSequenceProd",{enumerable:!0,get:function(){return re.isSequenceProd}})},2515:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.getProductionDslName=S.isBranchingProd=S.isOptionalProd=S.isSequenceProd=void 0;var te=ee(J(1525)),re=ee(J(9794)),ne=ee(J(1886)),ie=J(5700);S.isSequenceProd=function(b){return b instanceof ie.Alternative||b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionMandatory||b instanceof ie.RepetitionMandatoryWithSeparator||b instanceof ie.RepetitionWithSeparator||b instanceof ie.Terminal||b instanceof ie.Rule},S.isOptionalProd=function t(b,S){return void 0===S&&(S=[]),!!(b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionWithSeparator)||(b instanceof ie.Alternation?(0,te.default)(b.definition,(function(b){return t(b,S)})):!(b instanceof ie.NonTerminal&&(0,ne.default)(S,b))&&b instanceof ie.AbstractProduction&&(b instanceof ie.NonTerminal&&S.push(b),(0,re.default)(b.definition,(function(b){return t(b,S)}))))},S.isBranchingProd=function(b){return b instanceof ie.Alternation},S.getProductionDslName=function(b){if(b instanceof ie.NonTerminal)return"SUBRULE";if(b instanceof ie.Option)return"OPTION";if(b instanceof ie.Alternation)return"OR";if(b instanceof ie.RepetitionMandatory)return"AT_LEAST_ONE";if(b instanceof ie.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(b instanceof ie.RepetitionWithSeparator)return"MANY_SEP";if(b instanceof ie.Repetition)return"MANY";if(b instanceof ie.Terminal)return"CONSUME";throw Error("non exhaustive match")}},5700:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.serializeProduction=S.serializeGrammar=S.Terminal=S.Alternation=S.RepetitionWithSeparator=S.Repetition=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Option=S.Alternative=S.Rule=S.NonTerminal=S.AbstractProduction=void 0;var ne=re(J(6760)),ie=re(J(9756)),oe=re(J(5505)),se=re(J(859)),ae=re(J(2208)),ue=re(J(19));var ce=function(){function t(b){this._definition=b}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),t.prototype.accept=function(b){b.visit(this),(0,ie.default)(this.definition,(function(S){S.accept(b)}))},t}();S.AbstractProduction=ce;var le=function(b){function e(S){var J=b.call(this,[])||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(b){},enumerable:!1,configurable:!0}),e.prototype.accept=function(b){b.visit(this)},e}(ce);S.NonTerminal=le;var pe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.orgText="",(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Rule=pe;var fe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.ignoreAmbiguities=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Alternative=fe;var de=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Option=de;var he=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatory=he;var me=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatoryWithSeparator=me;var ge=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Repetition=ge;var ye=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionWithSeparator=ye;var ve=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,J.ignoreAmbiguities=!1,J.hasPredicates=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),e}(ce);S.Alternation=ve;var Te=function(){function t(b){this.idx=1,(0,ue.default)(this,(0,ae.default)(b,(function(b){return void 0!==b})))}return t.prototype.accept=function(b){b.visit(this)},t}();function R(b){function e(b){return(0,ne.default)(b,R)}if(b instanceof le){var S={type:"NonTerminal",name:b.nonTerminalName,idx:b.idx};return(0,oe.default)(b.label)&&(S.label=b.label),S}if(b instanceof fe)return{type:"Alternative",definition:e(b.definition)};if(b instanceof de)return{type:"Option",idx:b.idx,definition:e(b.definition)};if(b instanceof he)return{type:"RepetitionMandatory",idx:b.idx,definition:e(b.definition)};if(b instanceof me)return{type:"RepetitionMandatoryWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ye)return{type:"RepetitionWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ge)return{type:"Repetition",idx:b.idx,definition:e(b.definition)};if(b instanceof ve)return{type:"Alternation",idx:b.idx,definition:e(b.definition)};if(b instanceof Te){var J={type:"Terminal",name:b.terminalType.name,label:(te=b.terminalType,re=te,(0,oe.default)(re.LABEL)&&""!==re.LABEL?te.LABEL:te.name),idx:b.idx};(0,oe.default)(b.label)&&(J.terminalLabel=b.label);var ee=b.terminalType.PATTERN;return b.terminalType.PATTERN&&(J.pattern=(0,se.default)(ee)?ee.source:ee),J}var te,re;if(b instanceof pe)return{type:"Rule",name:b.name,orgText:b.orgText,definition:e(b.definition)};throw Error("non exhaustive match")}S.Terminal=Te,S.serializeGrammar=function(b){return(0,ne.default)(b,R)},S.serializeProduction=R},7694:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.GAstVisitor=void 0;var ee=J(5700),te=function(){function t(){}return t.prototype.visit=function(b){var S=b;switch(S.constructor){case ee.NonTerminal:return this.visitNonTerminal(S);case ee.Alternative:return this.visitAlternative(S);case ee.Option:return this.visitOption(S);case ee.RepetitionMandatory:return this.visitRepetitionMandatory(S);case ee.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(S);case ee.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(S);case ee.Repetition:return this.visitRepetition(S);case ee.Alternation:return this.visitAlternation(S);case ee.Terminal:return this.visitTerminal(S);case ee.Rule:return this.visitRule(S);default:throw Error("non exhaustive match")}},t.prototype.visitNonTerminal=function(b){},t.prototype.visitAlternative=function(b){},t.prototype.visitOption=function(b){},t.prototype.visitRepetition=function(b){},t.prototype.visitRepetitionMandatory=function(b){},t.prototype.visitRepetitionMandatoryWithSeparator=function(b){},t.prototype.visitRepetitionWithSeparator=function(b){},t.prototype.visitAlternation=function(b){},t.prototype.visitTerminal=function(b){},t.prototype.visitRule=function(b){},t}();S.GAstVisitor=te},7146:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=S.timer=S.PRINT_ERROR=S.PRINT_WARNING=void 0;var ee=J(6910);Object.defineProperty(S,"PRINT_WARNING",{enumerable:!0,get:function(){return ee.PRINT_WARNING}}),Object.defineProperty(S,"PRINT_ERROR",{enumerable:!0,get:function(){return ee.PRINT_ERROR}});var te=J(150);Object.defineProperty(S,"timer",{enumerable:!0,get:function(){return te.timer}});var re=J(4470);Object.defineProperty(S,"toFastProperties",{enumerable:!0,get:function(){return re.toFastProperties}})},6910:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PRINT_WARNING=S.PRINT_ERROR=void 0,S.PRINT_ERROR=function(b){console&&console.error&&console.error("Error: ".concat(b))},S.PRINT_WARNING=function(b){console&&console.warn&&console.warn("Warning: ".concat(b))}},150:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.timer=void 0,S.timer=function(b){var S=(new Date).getTime(),J=b();return{time:(new Date).getTime()-S,value:J}}},4470:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=void 0,S.toFastProperties=function(b){function e(){}e.prototype=b;var S=new e;function n(){return typeof S.bar}return n(),n(),b}}},S={};function r(J){var ee=S[J];if(void 0!==ee)return ee.exports;var te=S[J]={id:J,loaded:!1,exports:{}};return b[J].call(te.exports,te,te.exports,r),te.loaded=!0,te.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(b){if("object"==typeof window)return window}}(),r.nmd=b=>(b.paths=[],b.children||(b.children=[]),b);var J={};return(()=>{"use strict";var b=J;Object.defineProperty(b,"__esModule",{value:!0}),b.Parser=b.createSyntaxDiagramsCode=b.clearCache=b.generateCstDts=b.GAstVisitor=b.serializeProduction=b.serializeGrammar=b.Terminal=b.Rule=b.RepetitionWithSeparator=b.RepetitionMandatoryWithSeparator=b.RepetitionMandatory=b.Repetition=b.Option=b.NonTerminal=b.Alternative=b.Alternation=b.defaultLexerErrorProvider=b.NoViableAltException=b.NotAllInputParsedException=b.MismatchedTokenException=b.isRecognitionException=b.EarlyExitException=b.defaultParserErrorProvider=b.tokenName=b.tokenMatcher=b.tokenLabel=b.EOF=b.createTokenInstance=b.createToken=b.LexerDefinitionErrorType=b.Lexer=b.EMPTY_ALT=b.ParserDefinitionErrorType=b.EmbeddedActionsParser=b.CstParser=b.VERSION=void 0;var S=r(7979);Object.defineProperty(b,"VERSION",{enumerable:!0,get:function(){return S.VERSION}});var ee=r(2941);Object.defineProperty(b,"CstParser",{enumerable:!0,get:function(){return ee.CstParser}}),Object.defineProperty(b,"EmbeddedActionsParser",{enumerable:!0,get:function(){return ee.EmbeddedActionsParser}}),Object.defineProperty(b,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return ee.ParserDefinitionErrorType}}),Object.defineProperty(b,"EMPTY_ALT",{enumerable:!0,get:function(){return ee.EMPTY_ALT}});var te=r(9027);Object.defineProperty(b,"Lexer",{enumerable:!0,get:function(){return te.Lexer}}),Object.defineProperty(b,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return te.LexerDefinitionErrorType}});var re=r(6736);Object.defineProperty(b,"createToken",{enumerable:!0,get:function(){return re.createToken}}),Object.defineProperty(b,"createTokenInstance",{enumerable:!0,get:function(){return re.createTokenInstance}}),Object.defineProperty(b,"EOF",{enumerable:!0,get:function(){return re.EOF}}),Object.defineProperty(b,"tokenLabel",{enumerable:!0,get:function(){return re.tokenLabel}}),Object.defineProperty(b,"tokenMatcher",{enumerable:!0,get:function(){return re.tokenMatcher}}),Object.defineProperty(b,"tokenName",{enumerable:!0,get:function(){return re.tokenName}});var ne=r(1007);Object.defineProperty(b,"defaultParserErrorProvider",{enumerable:!0,get:function(){return ne.defaultParserErrorProvider}});var ie=r(643);Object.defineProperty(b,"EarlyExitException",{enumerable:!0,get:function(){return ie.EarlyExitException}}),Object.defineProperty(b,"isRecognitionException",{enumerable:!0,get:function(){return ie.isRecognitionException}}),Object.defineProperty(b,"MismatchedTokenException",{enumerable:!0,get:function(){return ie.MismatchedTokenException}}),Object.defineProperty(b,"NotAllInputParsedException",{enumerable:!0,get:function(){return ie.NotAllInputParsedException}}),Object.defineProperty(b,"NoViableAltException",{enumerable:!0,get:function(){return ie.NoViableAltException}});var oe=r(495);Object.defineProperty(b,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return oe.defaultLexerErrorProvider}});var se=r(7729);Object.defineProperty(b,"Alternation",{enumerable:!0,get:function(){return se.Alternation}}),Object.defineProperty(b,"Alternative",{enumerable:!0,get:function(){return se.Alternative}}),Object.defineProperty(b,"NonTerminal",{enumerable:!0,get:function(){return se.NonTerminal}}),Object.defineProperty(b,"Option",{enumerable:!0,get:function(){return se.Option}}),Object.defineProperty(b,"Repetition",{enumerable:!0,get:function(){return se.Repetition}}),Object.defineProperty(b,"RepetitionMandatory",{enumerable:!0,get:function(){return se.RepetitionMandatory}}),Object.defineProperty(b,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return se.RepetitionMandatoryWithSeparator}}),Object.defineProperty(b,"RepetitionWithSeparator",{enumerable:!0,get:function(){return se.RepetitionWithSeparator}}),Object.defineProperty(b,"Rule",{enumerable:!0,get:function(){return se.Rule}}),Object.defineProperty(b,"Terminal",{enumerable:!0,get:function(){return se.Terminal}});var ae=r(7729);Object.defineProperty(b,"serializeGrammar",{enumerable:!0,get:function(){return ae.serializeGrammar}}),Object.defineProperty(b,"serializeProduction",{enumerable:!0,get:function(){return ae.serializeProduction}}),Object.defineProperty(b,"GAstVisitor",{enumerable:!0,get:function(){return ae.GAstVisitor}});var ue=r(8962);Object.defineProperty(b,"generateCstDts",{enumerable:!0,get:function(){return ue.generateCstDts}}),b.clearCache=function(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")};var ce=r(5781);Object.defineProperty(b,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return ce.createSyntaxDiagramsCode}});b.Parser=function(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\nSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0")}})(),J})()}))},23836:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.MultipleLineComment=S.Comment=S.WhiteSpace=S.StringLiteral=S.QuotedString=S.DataLiteral=S.Colon=S.Separator=S.Terminator=S.ArrayEnd=S.ArrayStart=S.ObjectEnd=S.ObjectStart=void 0;const ee=J(41791);const te=J(17024);S.ObjectStart=(0,ee.createToken)({name:"OpenBracket",pattern:/{/});S.ObjectEnd=(0,ee.createToken)({name:"CloseBracket",pattern:/}/});S.ArrayStart=(0,ee.createToken)({name:"ArrayStart",pattern:/\(/});S.ArrayEnd=(0,ee.createToken)({name:"ArrayEnd",pattern:/\)/});S.Terminator=(0,ee.createToken)({name:"Terminator",pattern:/;/});S.Separator=(0,ee.createToken)({name:"Separator",pattern:/,/});S.Colon=(0,ee.createToken)({name:"Colon",pattern:/=/});function matchQuotedString(b,S){let J=b.charAt(S);if(J!==`'`&&J!==`"`){return null}const ee=new RegExp(`${J}(?:[^\\\\${J}]|\\\\(?:[bfnrtv${J}\\\\/]|u[0-9a-fA-F]{4}))*${J}`,"y");ee.lastIndex=S;const re=ee.exec(b);if(re!==null){const b=re[0];const S=(0,te.stripQuotes)(b.substring(1,b.length-1));re.payload=S}return re}const re=/<[0-9a-fA-F\s]+>/y;function matchData(b,S){if(b.charAt(S)!==`<`){return null}re.lastIndex=S;const J=re.exec(b);if(J!==null){const b=J[0];const S=b.substring(1,b.length-2).trim();J.payload=Buffer.from(S)}return J}S.DataLiteral=(0,ee.createToken)({name:"DataLiteral",pattern:{exec:matchData},line_breaks:false,start_chars_hint:[`<`]});S.QuotedString=(0,ee.createToken)({name:"QuotedString",pattern:{exec:matchQuotedString},line_breaks:false,start_chars_hint:[`"`,`'`]});S.StringLiteral=(0,ee.createToken)({name:"StringLiteral",pattern:/[\w_$/:.-]+/,line_breaks:false});S.WhiteSpace=(0,ee.createToken)({name:"WhiteSpace",pattern:/[ \t\n\r]+/u,group:ee.Lexer.SKIPPED});const ne=(0,ee.createToken)({name:"AbsComment",pattern:ee.Lexer.NA});S.Comment=(0,ee.createToken)({name:"Comment",pattern:/\/\/.*/,categories:ne,group:ee.Lexer.SKIPPED});S.MultipleLineComment=(0,ee.createToken)({name:"MultipleLineComment",pattern:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//,categories:ne,line_breaks:true,group:ee.Lexer.SKIPPED});S.ObjectStart.LABEL="'{'";S.ObjectEnd.LABEL="'}'";S.ArrayStart.LABEL="'('";S.ArrayEnd.LABEL="')'";S.Terminator.LABEL="';'";S.Colon.LABEL="'='";S.Separator.LABEL="','";S["default"]=[S.WhiteSpace,S.Comment,S.MultipleLineComment,S.ObjectStart,S.ObjectEnd,S.ArrayStart,S.ArrayEnd,S.Terminator,S.Separator,S.Colon,S.DataLiteral,S.QuotedString,S.StringLiteral]},44239:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.lexer=S.tokens=S.tokenVocabulary=void 0;const te=J(41791);const re=ee(J(23836));S.tokenVocabulary={};S.tokens=[...re.default];S.lexer=new te.Lexer(S.tokens);S.tokens.forEach((b=>{S.tokenVocabulary[b.name]=b}))},62902:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.parse=S.htmlText=S.serializedGrammar=S.BaseVisitor=S.PbxprojParser=S.CommentCstParser=void 0;const ee=J(41791);const te=J(23836);const re=J(44239);class CommentCstParser extends ee.CstParser{LA(b){while((0,ee.tokenMatcher)(super.LA(b),te.Comment)){super.consumeToken()}return super.LA(b)}cstPostTerminal(b,S){super.cstPostTerminal(b,S);let J=-1;let re=super.LA(J);while((0,ee.tokenMatcher)(re,te.Comment)){super.cstPostTerminal(te.Comment.name,re);J--;re=super.LA(J)}}}S.CommentCstParser=CommentCstParser;class PbxprojParser extends CommentCstParser{constructor(){super(re.tokens,{recoveryEnabled:false});this.head=this.RULE("head",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.SUBRULE(this.object)}])}));this.array=this.RULE("array",(()=>{this.CONSUME(te.ArrayStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.value);this.OPTION2((()=>this.CONSUME(te.Separator)))}))}));this.CONSUME(te.ArrayEnd)}));this.object=this.RULE("object",(()=>{this.CONSUME(te.ObjectStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.objectItem)}))}));this.CONSUME(te.ObjectEnd)}));this.objectItem=this.RULE("objectItem",(()=>{this.SUBRULE(this.identifier);this.CONSUME(te.Colon);this.SUBRULE(this.value);this.CONSUME(te.Terminator)}));this.identifier=this.RULE("identifier",(()=>{this.OR([{ALT:()=>this.CONSUME(te.QuotedString)},{ALT:()=>this.CONSUME(te.StringLiteral)}])}));this.value=this.RULE("value",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.object)},{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.CONSUME(te.DataLiteral)},{ALT:()=>this.SUBRULE(this.identifier)}])}));this.performSelfAnalysis()}}S.PbxprojParser=PbxprojParser;const ne=new PbxprojParser;S.BaseVisitor=ne.getBaseCstVisitorConstructorWithDefaults();S.serializedGrammar=ne.getSerializedGastProductions();S.htmlText=(0,ee.createSyntaxDiagramsCode)(S.serializedGrammar);function parse(b){const S=re.lexer.tokenize(b);if(S.errors.length){throw new Error(`Parsing errors: ${S.errors[0].message}`)}ne.input=S.tokens;const J=ne.head();if(ne.errors.length){throw new Error(`Parsing errors: ${ne.errors[0].message}`)}return J}S.parse=parse},61202:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isPBXFileReference=S.isPBXBuildFile=S.createReferenceList=void 0;function createReferenceList(b){const S=false;const J=b?.objects??{};const ee={};function getXCConfigurationListComment(b){for(const[S,ee]of Object.entries(J)){if(ee.buildConfigurationList===b){let b=ee.name??ee.path??ee.productName;if(!b){b=J[ee.targets?.[0]]?.name;if(!b){const ee=Object.values(J).find((b=>b.isa==="PBXContainerItemProxy"&&b.containerPortal===S));b=ee?.remoteInfo}}return`Build configuration list for ${ee.isa} "${b}"`}}return`Build configuration list for [unknown]`}function getBuildPhaseNameContainingFile(b){const S=Object.values(J).find((S=>S.files?.includes(b)));return S?getBuildPhaseName(S):null}function getPBXBuildFileComment(b,S){const ee=getBuildPhaseNameContainingFile(b)??"[missing build phase]";const te=getCommentForObject(S.fileRef,J[S.fileRef]);return`${te} in ${ee}`}function getCommentForObject(b,S){if(!S?.isa){return null}if(b in ee){return ee[b]}if(isPBXBuildFile(S)){ee[b]=getPBXBuildFileComment(b,S)}else if(isXCConfigurationList(S)){ee[b]=getXCConfigurationListComment(b)}else if(isPBXProject(S)){ee[b]="Project object"}else if(S.isa?.endsWith("BuildPhase")){ee[b]=getBuildPhaseName(S)??""}else{ee[b]=S.name??S.path??S.isa??null}return ee[b]??null}Object.entries(J).forEach((([J,ee])=>{if(J===b.rootObject){return}if(!getCommentForObject(J,ee)){if(S)throw new Error("Failed to find comment reference for ID: "+J+", isa: "+ee.isa)}}));return ee}S.createReferenceList=createReferenceList;function isPBXProject(b){return b?.isa==="PBXProject"}function isPBXBuildFile(b){return b?.isa==="PBXBuildFile"}S.isPBXBuildFile=isPBXBuildFile;function isPBXFileReference(b){return b?.isa==="PBXFileReference"}S.isPBXFileReference=isPBXFileReference;function isXCConfigurationList(b){return b?.isa==="XCConfigurationList"}function getBuildPhaseName(b){return b.name??getDefaultBuildPhaseName(b.isa)}function getDefaultBuildPhaseName(b){return b.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}},99348:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ISA=void 0;var J;(function(b){b["PBXBuildFile"]="PBXBuildFile";b["PBXBuildPhase"]="PBXBuildPhase";b["PBXAppleScriptBuildPhase"]="PBXAppleScriptBuildPhase";b["PBXCopyFilesBuildPhase"]="PBXCopyFilesBuildPhase";b["PBXFrameworksBuildPhase"]="PBXFrameworksBuildPhase";b["PBXHeadersBuildPhase"]="PBXHeadersBuildPhase";b["PBXResourcesBuildPhase"]="PBXResourcesBuildPhase";b["PBXShellScriptBuildPhase"]="PBXShellScriptBuildPhase";b["PBXSourcesBuildPhase"]="PBXSourcesBuildPhase";b["PBXContainerItemProxy"]="PBXContainerItemProxy";b["PBXFileElement"]="PBXFileElement";b["PBXFileReference"]="PBXFileReference";b["PBXGroup"]="PBXGroup";b["PBXVariantGroup"]="PBXVariantGroup";b["PBXTarget"]="PBXTarget";b["PBXAggregateTarget"]="PBXAggregateTarget";b["PBXLegacyTarget"]="PBXLegacyTarget";b["PBXNativeTarget"]="PBXNativeTarget";b["PBXProject"]="PBXProject";b["PBXTargetDependency"]="PBXTargetDependency";b["XCBuildConfiguration"]="XCBuildConfiguration";b["XCConfigurationList"]="XCConfigurationList"})(J=S.ISA||(S.ISA={}))},87964:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.NEXT_STEP_MAPPING=void 0;S.NEXT_STEP_MAPPING=Object.freeze({[128]:160,[129]:192,[130]:193,[131]:194,[132]:195,[133]:196,[134]:197,[135]:199,[136]:200,[137]:201,[138]:202,[139]:203,[140]:204,[141]:205,[142]:206,[143]:207,[144]:208,[145]:209,[146]:210,[147]:211,[148]:212,[149]:213,[150]:214,[151]:217,[152]:218,[153]:219,[154]:220,[155]:221,[156]:222,[157]:181,[158]:215,[159]:247,[160]:169,[161]:161,[162]:162,[163]:163,[164]:8260,[165]:165,[166]:402,[167]:167,[168]:164,[169]:8217,[170]:8220,[171]:171,[172]:8249,[173]:8250,[174]:64257,[175]:64258,[176]:174,[177]:8211,[178]:8224,[179]:8225,[180]:183,[181]:166,[182]:182,[183]:8226,[184]:8218,[185]:8222,[186]:8221,[187]:187,[188]:8230,[189]:8240,[190]:172,[191]:191,[192]:185,[193]:715,[194]:180,[195]:710,[196]:732,[197]:175,[198]:728,[199]:729,[200]:168,[201]:178,[202]:730,[203]:184,[204]:179,[205]:733,[206]:731,[207]:711,[208]:8212,[209]:177,[210]:188,[211]:189,[212]:190,[213]:224,[214]:225,[215]:226,[216]:227,[217]:228,[218]:229,[219]:231,[220]:232,[221]:233,[222]:234,[223]:235,[224]:236,[225]:198,[226]:237,[227]:170,[228]:238,[229]:239,[230]:240,[231]:241,[232]:321,[233]:216,[234]:338,[235]:186,[236]:242,[237]:243,[238]:244,[239]:245,[240]:246,[241]:230,[242]:249,[243]:250,[244]:251,[245]:305,[246]:252,[247]:253,[248]:322,[249]:248,[250]:339,[251]:223,[252]:254,[253]:255,[254]:65533,[255]:65533})},15409:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.QUOTE_REGEXP=S.UNQUOTE_MAP=S.QUOTE_MAP=void 0;S.QUOTE_MAP=Object.freeze({[`a`]:"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':'\\"',"\\":"\\\\","\0":"\\U0000","":"\\U0001","":"\\U0002","":"\\U0003","":"\\U0004","":"\\U0005","":"\\U0006","":"\\U000e","":"\\U000f","":"\\U0010","":"\\U0011","":"\\U0012","":"\\U0013","":"\\U0014","":"\\U0015","":"\\U0016","":"\\U0017","":"\\U0018","":"\\U0019","":"\\U001a",[`e`]:"\\U001b","":"\\U001c","":"\\U001d","":"\\U001e","":"\\U001f"});S.UNQUOTE_MAP=Object.freeze({a:`a`,b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","\n":"\n",'"':`"`,"'":`'`,"\\":"\\"});S.QUOTE_REGEXP=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g},17024:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.stripQuotes=S.addQuotes=void 0;const ee=J(87964);const te=J(15409);function addQuotes(b){return b.replace(te.QUOTE_REGEXP,(b=>te.QUOTE_MAP[b]))}S.addQuotes=addQuotes;const re="01234567".split("");const ne=[...re,"a","b","f","n","r","t","v",`"`,"\n","U","\\"];function stripQuotes(b){let S="";let J=b;let ie=b.length;let oe=0;while(oe<ie){let b=J[oe];if(b===`\\`){let ie=J[oe+1];if(ne.includes(ie)){oe++;if(te.UNQUOTE_MAP[ie]){S+=te.UNQUOTE_MAP[ie]}else if(ie==="U"){const b=oe+1;const ee=b+4;const te=J.slice(b,ee);for(const b in te.split("")){oe+=1;if(!isHexNumber(b)){throw new Error(`Unicode '\\U' escape sequence terminated without 4 following hex characters`)}S+=String.fromCharCode(parseInt(te,16))}}else if(re.includes(ie)){const b=J.slice(oe-1,3);if(/\\A[0-7]{3}\\z/.test(b)){let b=oe;let te=b+1;for(let S=0;S<3;S++){let ee=b+S;let ne=J[ee];if(re.includes(ne)){te+=1}}let ne=J.slice(b,te);let ie=parseInt(ne,8);if(ie>=128){ie=ee.NEXT_STEP_MAPPING[ie]}S+=String.fromCharCode(ie)}else{S+=ie}}else{throw new Error(`Failed to handle ${ie} which is in the list of possible escapes`)}}else{S+=b;oe++;S+=ie}}else{S+=b}oe++}return S}S.stripQuotes=stripQuotes;function isHexNumber(b){return/^[0-9a-fA-F]$/.test(b)}},62540:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ContextVisitor=void 0;const ee=J(62902);class ContextVisitor extends ee.BaseVisitor{constructor(){super();this.context={};this.validateVisitor()}head(b){if(b.array){this.context=this.visit(b.array)}else if(b.object){this.context=this.visit(b.object)}}object(b){return b.objectItem?.reduce(((b,S)=>({...b,...this.visit(S)})),{})??{}}array(b){return b.value?.map((b=>this.visit(b)))??[]}objectItem(b){return{[this.visit(b.identifier)]:this.visit(b.value)}}identifier(b){if(b.QuotedString){return b.QuotedString[0].payload??b.QuotedString[0].image}else if(b.StringLiteral){return b.StringLiteral[0].payload??b.StringLiteral[0].image}throw new Error("unhandled: "+b)}value(b){if(b.identifier){return this.visit(b.identifier)}else if(b.DataLiteral){return b.DataLiteral[0].payload??b.DataLiteral[0].image}else if(b.object){return this.visit(b.object)}else if(b.array){return this.visit(b.array)}throw new Error("unhandled: "+b)}}S.ContextVisitor=ContextVisitor},9128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Writer=void 0;const ee=J(61202);const te=J(17024);let re="\n";try{re=J(22037).EOL}catch{}function isObject(b){return typeof b==="object"&&b!==null&&!(b instanceof Buffer)}function ensureQuotes(b){b=(0,te.addQuotes)(b);if(/^[\w_$/:.]+$/.test(b)){return b}return`"${b}"`}function formatData(b){return`<${b.toString()}>`}function getSortedObjects(b){const S={};Object.entries(b).forEach((([b,J])=>{if(!S[J.isa]){S[J.isa]=[]}S[J.isa].push([b,J])}));return Object.entries(S).sort()}class Writer{constructor(b,S={}){this.project=b;this.options=S;this.indent=0;this.contents="";this.comments={};this.comments=(0,ee.createReferenceList)(b);this.writeShebang();this.writeProject()}pad(b){const S=this.options.tab??"\t";return b>0?S+this.pad(b-1):""}getResults(){return this.contents}println(b){this.contents+=this.pad(this.indent);this.contents+=b;this.contents+=re}write(b){this.contents+=this.pad(this.indent);this.contents+=b}printAssignLn(b,S){return this.println(b+" = "+S+";")}flush(b){const S=this.indent;this.indent=0;this.write(b);this.indent=S}writeShebang(){const b=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${b}`)}formatId(b,S=this.comments[b]){if(S){return`${b} /* ${S} */`}return ensureQuotes(b)}writeProject(){this.println("{");if(this.project){this.indent++;this.writeObject(this.project,true);this.indent--}this.println("}")}writeObject(b,S){Object.entries(b).forEach((([b,J])=>{if(this.options.skipNullishValues&&J==null){return}else if(J instanceof Buffer){this.printAssignLn(ensureQuotes(b),formatData(J))}else if(Array.isArray(J)){this.writeArray(b,J)}else if(isObject(J)){if(!S&&!Object.keys(J).length){this.println(ensureQuotes(b)+" = {};");return}this.println(ensureQuotes(b)+" = {");this.indent++;if(S&&b==="objects"){this.writePbxObjects(J)}else{this.writeObject(J,S)}this.indent--;this.println("};")}else{this.printAssignLn(ensureQuotes(b),b==="remoteGlobalIDString"?ensureQuotes(J):this.formatId(J))}}))}writePbxObjects(b){getSortedObjects(b).forEach((([b,S])=>{this.flush(re);this.flush(`/* Begin ${b} section */`+re);S.forEach((([b,S])=>this.writeObjectInclusive(b,S)));this.flush(`/* End ${b} section */`+re)}))}writeArray(b,S){this.println(ensureQuotes(b)+" = (");this.indent++;S.forEach((b=>{if(b instanceof Buffer){this.println(formatData(b)+",")}else if(b==null){return}else if(isObject(b)){this.println("{");if(b){this.indent++;this.writeObject(b);this.indent--}this.println("},")}else{this.println(this.formatId(String(b))+",")}}));this.indent--;this.println(");")}writeObjectInclusive(b,S){if((0,ee.isPBXBuildFile)(S)||(0,ee.isPBXFileReference)(S)){return this.writeObjectWithoutIndent(b,S)}this.println(this.formatId(b)+" = {");this.indent++;this.writeObject(S);this.indent--;this.println("};")}writeObjectWithoutIndent(b,S){const J=[];const buildInline=(b,S)=>{J.push(this.formatId(b)+" = {");Object.entries(S).forEach((([b,S])=>{if(this.options.skipNullishValues&&S==null){return}else if(S instanceof Buffer){J.push(ensureQuotes(b)+" = "+formatData(S)+"; ")}else if(Array.isArray(S)){J.push(ensureQuotes(b)+" = (");S.forEach((b=>J.push(ensureQuotes(b)+", ")));J.push("); ")}else if(isObject(S)){buildInline(b,S)}else{J.push(ensureQuotes(b)+" = "+this.formatId(S)+"; ")}}));J.push("}; ")};buildInline(b,S);this.println(J.join("").trim())}}S.Writer=Writer},4604:function(b,S){(function(){"use strict";S.stripBOM=function(b){if(b[0]==="\ufeff"){return b.substring(1)}else{return b}}}).call(this)},11002:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie={}.hasOwnProperty;b=J(83131);ee=J(9498).defaults;re=function(b){return typeof b==="string"&&(b.indexOf("&")>=0||b.indexOf(">")>=0||b.indexOf("<")>=0)};ne=function(b){return"<![CDATA["+te(b)+"]]>"};te=function(b){return b.replace("]]>","]]]]><![CDATA[>")};S.Builder=function(){function Builder(b){var S,J,te;this.options={};J=ee["0.2"];for(S in J){if(!ie.call(J,S))continue;te=J[S];this.options[S]=te}for(S in b){if(!ie.call(b,S))continue;te=b[S];this.options[S]=te}}Builder.prototype.buildObject=function(S){var J,te,oe,se,ae;J=this.options.attrkey;te=this.options.charkey;if(Object.keys(S).length===1&&this.options.rootName===ee["0.2"].rootName){ae=Object.keys(S)[0];S=S[ae]}else{ae=this.options.rootName}oe=function(b){return function(S,ee){var se,ae,ue,ce,le,pe;if(typeof ee!=="object"){if(b.options.cdata&&re(ee)){S.raw(ne(ee))}else{S.txt(ee)}}else if(Array.isArray(ee)){for(ce in ee){if(!ie.call(ee,ce))continue;ae=ee[ce];for(le in ae){ue=ae[le];S=oe(S.ele(le),ue).up()}}}else{for(le in ee){if(!ie.call(ee,le))continue;ae=ee[le];if(le===J){if(typeof ae==="object"){for(se in ae){pe=ae[se];S=S.att(se,pe)}}}else if(le===te){if(b.options.cdata&&re(ae)){S=S.raw(ne(ae))}else{S=S.txt(ae)}}else if(Array.isArray(ae)){for(ce in ae){if(!ie.call(ae,ce))continue;ue=ae[ce];if(typeof ue==="string"){if(b.options.cdata&&re(ue)){S=S.ele(le).raw(ne(ue)).up()}else{S=S.ele(le,ue).up()}}else{S=oe(S.ele(le),ue).up()}}}else if(typeof ae==="object"){S=oe(S.ele(le),ae).up()}else{if(typeof ae==="string"&&b.options.cdata&&re(ae)){S=S.ele(le).raw(ne(ae)).up()}else{if(ae==null){ae=""}S=S.ele(le,ae.toString()).up()}}}}return S}}(this);se=b.create(ae,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return oe(se,S).end(this.options.renderOpts)};return Builder}()}).call(this)},9498:function(b,S){(function(){S.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},67426:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie,oe,se,bind=function(b,S){return function(){return b.apply(S,arguments)}},extend=function(b,S){for(var J in S){if(ae.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ae={}.hasOwnProperty;oe=J(79746);te=J(82361);b=J(4604);ie=J(49068);se=J(39512).setImmediate;ee=J(9498).defaults;re=function(b){return typeof b==="object"&&b!=null&&Object.keys(b).length===0};ne=function(b,S,J){var ee,te,re;for(ee=0,te=b.length;ee<te;ee++){re=b[ee];S=re(S,J)}return S};S.Parser=function(J){extend(Parser,J);function Parser(b){this.parseStringPromise=bind(this.parseStringPromise,this);this.parseString=bind(this.parseString,this);this.reset=bind(this.reset,this);this.assignOrPush=bind(this.assignOrPush,this);this.processAsync=bind(this.processAsync,this);var J,te,re;if(!(this instanceof S.Parser)){return new S.Parser(b)}this.options={};te=ee["0.2"];for(J in te){if(!ae.call(te,J))continue;re=te[J];this.options[J]=re}for(J in b){if(!ae.call(b,J))continue;re=b[J];this.options[J]=re}if(this.options.xmlns){this.options.xmlnskey=this.options.attrkey+"ns"}if(this.options.normalizeTags){if(!this.options.tagNameProcessors){this.options.tagNameProcessors=[]}this.options.tagNameProcessors.unshift(ie.normalize)}this.reset()}Parser.prototype.processAsync=function(){var b,S;try{if(this.remaining.length<=this.options.chunkSize){b=this.remaining;this.remaining="";this.saxParser=this.saxParser.write(b);return this.saxParser.close()}else{b=this.remaining.substr(0,this.options.chunkSize);this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length);this.saxParser=this.saxParser.write(b);return se(this.processAsync)}}catch(b){S=b;if(!this.saxParser.errThrown){this.saxParser.errThrown=true;return this.emit(S)}}};Parser.prototype.assignOrPush=function(b,S,J){if(!(S in b)){if(!this.options.explicitArray){return b[S]=J}else{return b[S]=[J]}}else{if(!(b[S]instanceof Array)){b[S]=[b[S]]}return b[S].push(J)}};Parser.prototype.reset=function(){var b,S,J,ee;this.removeAllListeners();this.saxParser=oe.parser(this.options.strict,{trim:false,normalize:false,xmlns:this.options.xmlns});this.saxParser.errThrown=false;this.saxParser.onerror=function(b){return function(S){b.saxParser.resume();if(!b.saxParser.errThrown){b.saxParser.errThrown=true;return b.emit("error",S)}}}(this);this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended){b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);this.saxParser.ended=false;this.EXPLICIT_CHARKEY=this.options.explicitCharkey;this.resultObject=null;ee=[];b=this.options.attrkey;S=this.options.charkey;this.saxParser.onopentag=function(J){return function(te){var re,ie,oe,se,ue;oe={};oe[S]="";if(!J.options.ignoreAttrs){ue=te.attributes;for(re in ue){if(!ae.call(ue,re))continue;if(!(b in oe)&&!J.options.mergeAttrs){oe[b]={}}ie=J.options.attrValueProcessors?ne(J.options.attrValueProcessors,te.attributes[re],re):te.attributes[re];se=J.options.attrNameProcessors?ne(J.options.attrNameProcessors,re):re;if(J.options.mergeAttrs){J.assignOrPush(oe,se,ie)}else{oe[b][se]=ie}}}oe["#name"]=J.options.tagNameProcessors?ne(J.options.tagNameProcessors,te.name):te.name;if(J.options.xmlns){oe[J.options.xmlnskey]={uri:te.uri,local:te.local}}return ee.push(oe)}}(this);this.saxParser.onclosetag=function(b){return function(){var J,te,ie,oe,se,ue,ce,le,pe,fe;ue=ee.pop();se=ue["#name"];if(!b.options.explicitChildren||!b.options.preserveChildrenOrder){delete ue["#name"]}if(ue.cdata===true){J=ue.cdata;delete ue.cdata}pe=ee[ee.length-1];if(ue[S].match(/^\s*$/)&&!J){te=ue[S];delete ue[S]}else{if(b.options.trim){ue[S]=ue[S].trim()}if(b.options.normalize){ue[S]=ue[S].replace(/\s{2,}/g," ").trim()}ue[S]=b.options.valueProcessors?ne(b.options.valueProcessors,ue[S],se):ue[S];if(Object.keys(ue).length===1&&S in ue&&!b.EXPLICIT_CHARKEY){ue=ue[S]}}if(re(ue)){ue=b.options.emptyTag!==""?b.options.emptyTag:te}if(b.options.validator!=null){fe="/"+function(){var b,S,J;J=[];for(b=0,S=ee.length;b<S;b++){oe=ee[b];J.push(oe["#name"])}return J}().concat(se).join("/");(function(){var S;try{return ue=b.options.validator(fe,pe&&pe[se],ue)}catch(J){S=J;return b.emit("error",S)}})()}if(b.options.explicitChildren&&!b.options.mergeAttrs&&typeof ue==="object"){if(!b.options.preserveChildrenOrder){oe={};if(b.options.attrkey in ue){oe[b.options.attrkey]=ue[b.options.attrkey];delete ue[b.options.attrkey]}if(!b.options.charsAsChildren&&b.options.charkey in ue){oe[b.options.charkey]=ue[b.options.charkey];delete ue[b.options.charkey]}if(Object.getOwnPropertyNames(ue).length>0){oe[b.options.childkey]=ue}ue=oe}else if(pe){pe[b.options.childkey]=pe[b.options.childkey]||[];ce={};for(ie in ue){if(!ae.call(ue,ie))continue;ce[ie]=ue[ie]}pe[b.options.childkey].push(ce);delete ue["#name"];if(Object.keys(ue).length===1&&S in ue&&!b.EXPLICIT_CHARKEY){ue=ue[S]}}}if(ee.length>0){return b.assignOrPush(pe,se,ue)}else{if(b.options.explicitRoot){le=ue;ue={};ue[se]=le}b.resultObject=ue;b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);J=function(b){return function(J){var te,re;re=ee[ee.length-1];if(re){re[S]+=J;if(b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||J.replace(/\\n/g,"").trim()!=="")){re[b.options.childkey]=re[b.options.childkey]||[];te={"#name":"__text__"};te[S]=J;if(b.options.normalize){te[S]=te[S].replace(/\s{2,}/g," ").trim()}re[b.options.childkey].push(te)}return re}}}(this);this.saxParser.ontext=J;return this.saxParser.oncdata=function(b){return function(b){var S;S=J(b);if(S){return S.cdata=true}}}(this)};Parser.prototype.parseString=function(S,J){var ee;if(J!=null&&typeof J==="function"){this.on("end",(function(b){this.reset();return J(null,b)}));this.on("error",(function(b){this.reset();return J(b)}))}try{S=S.toString();if(S.trim()===""){this.emit("end",null);return true}S=b.stripBOM(S);if(this.options.async){this.remaining=S;se(this.processAsync);return this.saxParser}return this.saxParser.write(S).close()}catch(b){ee=b;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",ee);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw ee}}};Parser.prototype.parseStringPromise=function(b){return new Promise(function(S){return function(J,ee){return S.parseString(b,(function(b,S){if(b){return ee(b)}else{return J(S)}}))}}(this))};return Parser}(te);S.parseString=function(b,J,ee){var te,re,ne;if(ee!=null){if(typeof ee==="function"){te=ee}if(typeof J==="object"){re=J}}else{if(typeof J==="function"){te=J}re={}}ne=new S.Parser(re);return ne.parseString(b,te)};S.parseStringPromise=function(b,J){var ee,te;if(typeof J==="object"){ee=J}te=new S.Parser(ee);return te.parseStringPromise(b)}}).call(this)},49068:function(b,S){(function(){"use strict";var b;b=new RegExp(/(?!xmlns)^.*:/);S.normalize=function(b){return b.toLowerCase()};S.firstCharLowerCase=function(b){return b.charAt(0).toLowerCase()+b.slice(1)};S.stripPrefix=function(S){return S.replace(b,"")};S.parseNumbers=function(b){if(!isNaN(b)){b=b%1===0?parseInt(b,10):parseFloat(b)}return b};S.parseBooleans=function(b){if(/^(?:true|false)$/i.test(b)){b=b.toLowerCase()==="true"}return b}}).call(this)},27013:function(b,S,J){(function(){"use strict";var b,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;ee=J(9498);b=J(11002);te=J(67426);re=J(49068);S.defaults=ee.defaults;S.processors=re;S.ValidationError=function(b){extend(ValidationError,b);function ValidationError(b){this.message=b}return ValidationError}(Error);S.Builder=b.Builder;S.Parser=te.Parser;S.parseString=te.parseString;S.parseStringPromise=te.parseStringPromise}).call(this)},22346:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},4128:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},52629:function(b){(function(){var S,J,ee,te,re,ne,ie,oe=[].slice,se={}.hasOwnProperty;S=function(){var b,S,J,ee,te,ne;ne=arguments[0],te=2<=arguments.length?oe.call(arguments,1):[];if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(b=0,J=te.length;b<J;b++){ee=te[b];if(ee!=null){for(S in ee){if(!se.call(ee,S))continue;ne[S]=ee[S]}}}}return ne};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!se.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},58413:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},49525:function(b,S,J){(function(){var S,ee,te;S=J(4128);te=J(98064);b.exports=ee=function(){function XMLAttribute(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});XMLAttribute.prototype.clone=function(){return Object.create(this)};XMLAttribute.prototype.toString=function(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))};XMLAttribute.prototype.debugInfo=function(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},66789:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);te=J(63527);b.exports=ee=function(b){extend(XMLCData,b);function XMLCData(b,J){XMLCData.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))};return XMLCData}(te)}).call(this)},63527:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(98064);b.exports=S=function(b){extend(XMLCharacterData,b);function XMLCharacterData(b){XMLCharacterData.__super__.constructor.call(this,b);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(b){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.data!==this.data){return false}return true};return XMLCharacterData}(ee)}).call(this)},34593:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLComment,b);function XMLComment(b,J){XMLComment.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))};return XMLComment}(ee)}).call(this)},64196:function(b,S,J){(function(){var S,ee,te;ee=J(57850);te=J(35132);b.exports=S=function(){function XMLDOMConfiguration(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(b,S){return true};XMLDOMConfiguration.prototype.setParameter=function(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}};return XMLDOMConfiguration}()}).call(this)},57850:function(b){(function(){var S;b.exports=S=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(b){throw new Error(b)};return XMLDOMErrorHandler}()}).call(this)},99490:function(b){(function(){var S;b.exports=S=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(b,S){return true};XMLDOMImplementation.prototype.createDocumentType=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(b){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},35132:function(b){(function(){var S;b.exports=S=function(){function XMLDOMStringList(b){this.arr=b||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(b){return this.arr[b]||null};XMLDOMStringList.prototype.contains=function(b){return this.arr.indexOf(b)!==-1};return XMLDOMStringList}()}).call(this)},71066:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDAttList,b);function XMLDTDAttList(b,J,ee,te,re,ne){XMLDTDAttList.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}XMLDTDAttList.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))};return XMLDTDAttList}(te)}).call(this)},23584:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDElement,b);function XMLDTDElement(b,J,ee){XMLDTDElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}XMLDTDElement.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))};return XMLDTDElement}(te)}).call(this)},9346:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDEntity,b);function XMLDTDEntity(b,J,ee,te){XMLDTDEntity.__super__.constructor.call(this,b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))};return XMLDTDEntity}(te)}).call(this)},30853:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDNotation,b);function XMLDTDNotation(b,J,ee){XMLDTDNotation.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))};return XMLDTDNotation}(te)}).call(this)},24972:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDeclaration,b);function XMLDeclaration(b,J,ee,te){var ne;XMLDeclaration.__super__.constructor.call(this,b);if(re(J)){ne=J,J=ne.version,ee=ne.encoding,te=ne.standalone}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}XMLDeclaration.prototype.toString=function(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))};return XMLDeclaration}(te)}).call(this)},19025:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629).isObject;se=J(98064);S=J(4128);ee=J(71066);re=J(9346);te=J(23584);ne=J(30853);oe=J(78339);b.exports=ie=function(b){extend(XMLDocType,b);function XMLDocType(b,J,ee){var te,re,ne,ie,oe,se;XMLDocType.__super__.constructor.call(this,b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){oe=J,J=oe.pubID,ee=oe.sysID}if(ee==null){se=[J,ee],ee=se[0],J=se[1]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLDocType.prototype.element=function(b,S){var J;J=new te(this,b,S);this.children.push(J);return this};XMLDocType.prototype.attList=function(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this};XMLDocType.prototype.entity=function(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this};XMLDocType.prototype.pEntity=function(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this};XMLDocType.prototype.notation=function(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this};XMLDocType.prototype.toString=function(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))};XMLDocType.prototype.ele=function(b,S){return this.element(b,S)};XMLDocType.prototype.att=function(b,S,J,ee,te){return this.attList(b,S,J,ee,te)};XMLDocType.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocType.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocType.prototype.not=function(b,S){return this.notation(b,S)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};XMLDocType.prototype.isEqualNode=function(b){if(!XMLDocType.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true};return XMLDocType}(se)}).call(this)},3315:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,extend=function(b,S){for(var J in S){if(ae.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ae={}.hasOwnProperty;se=J(52629).isPlainObject;te=J(99490);ee=J(64196);ne=J(98064);S=J(4128);oe=J(20916);ie=J(56939);b.exports=re=function(b){extend(XMLDocument,b);function XMLDocument(b){XMLDocument.__super__.constructor.call(this,null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});XMLDocument.prototype.end=function(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))};XMLDocument.prototype.toString=function(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))};XMLDocument.prototype.createElement=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTextNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createComment=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createCDATASection=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createProcessingInstruction=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttribute=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEntityReference=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.importNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createElementNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementById=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.adoptNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.renameNode=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEvent=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createNodeIterator=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTreeWalker=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLDocument}(ne)}).call(this)},11523:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,Ee,Ae,we={}.hasOwnProperty;Ae=J(52629),be=Ae.isObject,Te=Ae.isFunction,Ee=Ae.isPlainObject,ve=Ae.getValue;S=J(4128);le=J(3315);fe=J(37370);re=J(66789);ne=J(34593);he=J(10363);ye=J(28854);de=J(93234);ue=J(24972);ce=J(19025);ie=J(71066);se=J(9346);oe=J(23584);ae=J(30853);te=J(49525);ge=J(20916);me=J(56939);ee=J(58413);b.exports=pe=function(){function XMLDocumentCB(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(Ee(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.createChildNode=function(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!we.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this};XMLDocumentCB.prototype.dummy=function(){return this};XMLDocumentCB.prototype.node=function(b,S,J){var ee;if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){ee=[S,J],J=ee[0],S=ee[1]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this};XMLDocumentCB.prototype.element=function(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement.apply(this,arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this};XMLDocumentCB.prototype.attribute=function(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!we.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this};XMLDocumentCB.prototype.text=function(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.cdata=function(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.comment=function(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.raw=function(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.instruction=function(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!we.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this};XMLDocumentCB.prototype.declaration=function(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.doctype=function(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this};XMLDocumentCB.prototype.dtdElement=function(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.attList=function(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.entity=function(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.pEntity=function(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.notation=function(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.up=function(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this};XMLDocumentCB.prototype.end=function(){while(this.currentLevel>=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!we.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}};XMLDocumentCB.prototype.onData=function(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(b){if(b==null){return""}else{return"node: <"+b+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.txt=function(b){return this.text(b)};XMLDocumentCB.prototype.dat=function(b){return this.cdata(b)};XMLDocumentCB.prototype.com=function(b){return this.comment(b)};XMLDocumentCB.prototype.ins=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLDocumentCB.prototype.dtd=function(b,S,J){return this.doctype(b,S,J)};XMLDocumentCB.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLDocumentCB.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.t=function(b){return this.text(b)};XMLDocumentCB.prototype.d=function(b){return this.cdata(b)};XMLDocumentCB.prototype.c=function(b){return this.comment(b)};XMLDocumentCB.prototype.r=function(b){return this.raw(b)};XMLDocumentCB.prototype.i=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocumentCB.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocumentCB.prototype.not=function(b,S){return this.notation(b,S)};return XMLDocumentCB}()}).call(this)},3288:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDummy,b);function XMLDummy(b){XMLDummy.__super__.constructor.call(this,b);this.type=S.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(b){return""};return XMLDummy}(te)}).call(this)},37370:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629),se=ae.isObject,oe=ae.isFunction,ie=ae.getValue;ne=J(98064);S=J(4128);ee=J(49525);re=J(78339);b.exports=te=function(b){extend(XMLElement,b);function XMLElement(b,J,ee){var te,re,ne,ie;XMLElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});XMLElement.prototype.clone=function(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ue.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J};XMLElement.prototype.attribute=function(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ue.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this};XMLElement.prototype.removeAttribute=function(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this};XMLElement.prototype.toString=function(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))};XMLElement.prototype.att=function(b,S){return this.attribute(b,S)};XMLElement.prototype.a=function(b,S){return this.attribute(b,S)};XMLElement.prototype.getAttribute=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}};XMLElement.prototype.setAttribute=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNode=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}};XMLElement.prototype.setAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNodeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNodeNS=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.hasAttribute=function(b){return this.attribs.hasOwnProperty(b)};XMLElement.prototype.hasAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttribute=function(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}};XMLElement.prototype.setIdAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttributeNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.isEqualNode=function(b){var S,J,ee;if(!XMLElement.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true};return XMLElement}(ne)}).call(this)},78339:function(b){(function(){var S;b.exports=S=function(){function XMLNamedNodeMap(b){this.nodes=b}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(b){return this.nodes[b]};XMLNamedNodeMap.prototype.setNamedItem=function(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null};XMLNamedNodeMap.prototype.removeNamedItem=function(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null};XMLNamedNodeMap.prototype.item=function(b){return this.nodes[Object.keys(this.nodes)[b]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(b){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},98064:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve={}.hasOwnProperty;ye=J(52629),ge=ye.isObject,me=ye.isFunction,he=ye.isEmpty,de=ye.getValue;se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){function XMLNode(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(37370);te=J(66789);re=J(34593);ne=J(24972);ie=J(19025);pe=J(10363);fe=J(28854);le=J(93234);oe=J(3288);ee=J(4128);ce=J(57209);ae=J(78339);S=J(22346)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLNode.prototype.setParent=function(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re};XMLNode.prototype.element=function(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue,ce,le;oe=null;if(S===null&&J==null){ue=[{},null],S=ue[0],J=ue[1]}if(S==null){S={}}S=de(S);if(!ge(S)){ce=[S,J],J=ce[0],S=ce[1]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ve.call(b,ie))continue;le=b[ie];if(me(le)){le=le.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),le)}else if(!this.options.separateArrayItems&&Array.isArray(le)&&he(le)){oe=this.dummy()}else if(ge(le)&&he(le)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&le==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(le)){for(ne=0,ae=le.length;ne<ae;ne++){te=le[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(le)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(le)}else{oe=this.element(ie);oe.element(le)}}else{oe=this.element(ie,le)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe};XMLNode.prototype.insertBefore=function(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}};XMLNode.prototype.insertAfter=function(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee};XMLNode.prototype.remove=function(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent};XMLNode.prototype.node=function(b,S,J){var ee,te;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){te=[S,J],J=te[0],S=te[1]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee};XMLNode.prototype.text=function(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this};XMLNode.prototype.cdata=function(b){var S;S=new te(this,b);this.children.push(S);return this};XMLNode.prototype.comment=function(b){var S;S=new re(this,b);this.children.push(S);return this};XMLNode.prototype.commentBefore=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.commentAfter=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.raw=function(b){var S;S=new pe(this,b);this.children.push(S);return this};XMLNode.prototype.dummy=function(){var b;b=new oe(this);return b};XMLNode.prototype.instruction=function(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ve.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this};XMLNode.prototype.instructionBefore=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.instructionAfter=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.declaration=function(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te};XMLNode.prototype.dtd=function(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re};XMLNode.prototype.up=function(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent};XMLNode.prototype.root=function(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}};XMLNode.prototype.document=function(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}};XMLNode.prototype.end=function(b){return this.document().end(b)};XMLNode.prototype.prev=function(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]};XMLNode.prototype.next=function(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]};XMLNode.prototype.importDocument=function(b){var S;S=b.root().clone();S.parent=this;S.isRoot=false;this.children.push(S);return this};XMLNode.prototype.debugInfo=function(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.txt=function(b){return this.text(b)};XMLNode.prototype.dat=function(b){return this.cdata(b)};XMLNode.prototype.com=function(b){return this.comment(b)};XMLNode.prototype.ins=function(b,S){return this.instruction(b,S)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLNode.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.t=function(b){return this.text(b)};XMLNode.prototype.d=function(b){return this.cdata(b)};XMLNode.prototype.c=function(b){return this.comment(b)};XMLNode.prototype.r=function(b){return this.raw(b)};XMLNode.prototype.i=function(b,S){return this.instruction(b,S)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(b){return this.importDocument(b)};XMLNode.prototype.replaceChild=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(b,S){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}};XMLNode.prototype.isSameNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true};XMLNode.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(b){if(!b){return false}return b===this||this.isDescendant(b)};XMLNode.prototype.isDescendant=function(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false};XMLNode.prototype.isAncestor=function(b){return b.isDescendant(this)};XMLNode.prototype.isPreceding=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}};XMLNode.prototype.isFollowing=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}};XMLNode.prototype.treePosition=function(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}};XMLNode.prototype.foreachTreeNode=function(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}};return XMLNode}()}).call(this)},57209:function(b){(function(){var S;b.exports=S=function(){function XMLNodeList(b){this.nodes=b}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});XMLNodeList.prototype.clone=function(){return this.nodes=null};XMLNodeList.prototype.item=function(b){return this.nodes[b]||null};return XMLNodeList}()}).call(this)},93234:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLProcessingInstruction,b);function XMLProcessingInstruction(b,J,ee){XMLProcessingInstruction.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))};XMLProcessingInstruction.prototype.isEqualNode=function(b){if(!XMLProcessingInstruction.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.target!==this.target){return false}return true};return XMLProcessingInstruction}(ee)}).call(this)},10363:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(98064);b.exports=te=function(b){extend(XMLRaw,b);function XMLRaw(b,J){XMLRaw.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))};return XMLRaw}(ee)}).call(this)},30359:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;S=J(4128);re=J(8126);ee=J(58413);b.exports=te=function(b){extend(XMLStreamWriter,b);function XMLStreamWriter(b,S){this.stream=b;XMLStreamWriter.__super__.constructor.call(this,S)}XMLStreamWriter.prototype.endline=function(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return XMLStreamWriter.__super__.endline.call(this,b,S,J)}};XMLStreamWriter.prototype.document=function(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae};XMLStreamWriter.prototype.attribute=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.attribute.call(this,b,S,J))};XMLStreamWriter.prototype.cdata=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.cdata.call(this,b,S,J))};XMLStreamWriter.prototype.comment=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.comment.call(this,b,S,J))};XMLStreamWriter.prototype.declaration=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.declaration.call(this,b,S,J))};XMLStreamWriter.prototype.docType=function(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)};XMLStreamWriter.prototype.element=function(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;this.stream.write(this.indent(b,J,te)+"<"+b.name);pe=b.attribs;for(ce in pe){if(!ne.call(pe,ce))continue;re=pe[ce];this.attribute(re,J,te)}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;le=true;this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;le=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;fe=b.children;for(ae=0,ue=fe.length;ae<ue;ae++){ie=fe[ae];this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)};XMLStreamWriter.prototype.processingInstruction=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,b,S,J))};XMLStreamWriter.prototype.raw=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,b,S,J))};XMLStreamWriter.prototype.text=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.text.call(this,b,S,J))};XMLStreamWriter.prototype.dtdAttList=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,b,S,J))};XMLStreamWriter.prototype.dtdElement=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,b,S,J))};XMLStreamWriter.prototype.dtdEntity=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,b,S,J))};XMLStreamWriter.prototype.dtdNotation=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,b,S,J))};return XMLStreamWriter}(re)}).call(this)},56939:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(8126);b.exports=S=function(b){extend(XMLStringWriter,b);function XMLStringWriter(b){XMLStringWriter.__super__.constructor.call(this,b)}XMLStringWriter.prototype.document=function(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re};return XMLStringWriter}(ee)}).call(this)},20916:function(b){(function(){var S,bind=function(b,S){return function(){return b.apply(S,arguments)}},J={}.hasOwnProperty;b.exports=S=function(){function XMLStringifier(b){this.assertLegalName=bind(this.assertLegalName,this);this.assertLegalChar=bind(this.assertLegalChar,this);var S,ee,te;b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}XMLStringifier.prototype.name=function(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")};XMLStringifier.prototype.text=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))};XMLStringifier.prototype.cdata=function(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)};XMLStringifier.prototype.comment=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.raw=function(b){if(this.options.noValidation){return b}return""+b||""};XMLStringifier.prototype.attValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))};XMLStringifier.prototype.insTarget=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.insValue=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlVersion=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b};XMLStringifier.prototype.xmlEncoding=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlStandalone=function(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdSysID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdElementValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttType=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttDefault=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdEntityValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdNData=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}return b};XMLStringifier.prototype.assertLegalName=function(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b};XMLStringifier.prototype.textEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};XMLStringifier.prototype.attEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};return XMLStringifier}()}).call(this)},28854:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLText,b);function XMLText(b,J){XMLText.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))};XMLText.prototype.splitText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLText.prototype.replaceWholeText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLText}(ee)}).call(this)},8126:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;me=J(52629).assign;S=J(4128);ae=J(24972);ue=J(19025);te=J(66789);re=J(34593);le=J(37370);fe=J(10363);de=J(28854);pe=J(93234);ce=J(3288);ne=J(71066);ie=J(23584);oe=J(9346);se=J(30853);ee=J(58413);b.exports=he=function(){function XMLWriterBase(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}XMLWriterBase.prototype.filterOptions=function(b){var S,J,te,re,ne,ie,oe,se;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.dontPrettyTextNodes=(ne=(ie=b.dontPrettyTextNodes)!=null?ie:b.dontprettytextnodes)!=null?ne:0;S.spaceBeforeSlash=(oe=(se=b.spaceBeforeSlash)!=null?se:b.spacebeforeslash)!=null?oe:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S};XMLWriterBase.prototype.indent=function(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""};XMLWriterBase.prototype.endline=function(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}};XMLWriterBase.prototype.attribute=function(b,S,J){var ee;this.openAttribute(b,S,J);ee=" "+b.name+'="'+b.value+'"';this.closeAttribute(b,S,J);return ee};XMLWriterBase.prototype.cdata=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.comment=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.declaration=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.docType=function(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie};XMLWriterBase.prototype.element=function(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me;te||(te=0);pe=false;fe="";this.openNode(b,J,te);J.state=ee.OpenTag;fe+=this.indent(b,J,te)+"<"+b.name;de=b.attribs;for(le in de){if(!ge.call(de,le))continue;re=de[le];fe+=this.attribute(re,J,te)}ie=b.children.length;oe=ie===0?null:b.children[0];if(ie===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){fe+=">";J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;fe+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&ie===1&&(oe.type===S.Text||oe.type===S.Raw)&&oe.value!=null){fe+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;pe=true;fe+=this.writeChildNode(oe,J,te+1);J.suppressPrettyCount--;pe=false;J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){he=b.children;for(se=0,ue=he.length;se<ue;se++){ne=he[se];if((ne.type===S.Text||ne.type===S.Raw)&&ne.value!=null){J.suppressPrettyCount++;pe=true;break}}}fe+=">"+this.endline(b,J,te);J.state=ee.InsideTag;me=b.children;for(ae=0,ce=me.length;ae<ce;ae++){ne=me[ae];fe+=this.writeChildNode(ne,J,te+1)}J.state=ee.CloseTag;fe+=this.indent(b,J,te)+"</"+b.name+">";if(pe){J.suppressPrettyCount--}fe+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return fe};XMLWriterBase.prototype.writeChildNode=function(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.raw=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.text=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdAttList=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdElement=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdEntity=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdNotation=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.openNode=function(b,S,J){};XMLWriterBase.prototype.closeNode=function(b,S,J){};XMLWriterBase.prototype.openAttribute=function(b,S,J){};XMLWriterBase.prototype.closeAttribute=function(b,S,J){};return XMLWriterBase}()}).call(this)},83131:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue;ue=J(52629),se=ue.assign,ae=ue.isFunction;te=J(99490);re=J(3315);ne=J(11523);oe=J(56939);ie=J(30359);S=J(4128);ee=J(58413);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){var ee;if(ae(b)){ee=[b,S],S=ee[0],J=ee[1];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},144:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},7762:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},20983:function(b){(function(){var S,J,ee,te,re,ne,ie,oe={}.hasOwnProperty;S=function(b,...S){var J,ee,te,ne;if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(J=0,te=S.length;J<te;J++){ne=S[J];if(ne!=null){for(ee in ne){if(!oe.call(ne,ee))continue;b[ee]=ne[ee]}}}}return b};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!oe.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},80140:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},1395:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(5089);b.exports=ee=function(){class XMLAttribute{constructor(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))}debugInfo(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}}isEqualNode(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true}}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});return XMLAttribute}.call(this)}).call(this)},45261:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(44765);b.exports=ee=class XMLCData extends te{constructor(b,J){super(b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))}}}).call(this)},44765:function(b,S,J){(function(){var S,ee;ee=J(5089);b.exports=S=function(){class XMLCharacterData extends ee{constructor(b){super(b);this.value=""}clone(){return Object.create(this)}substringData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.data!==this.data){return false}return true}}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});return XMLCharacterData}.call(this)}).call(this)},20360:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLComment extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))}}}).call(this)},25675:function(b,S,J){(function(){var S,ee,te;ee=J(70121);te=J(38207);b.exports=S=function(){class XMLDOMConfiguration{constructor(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}getParameter(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}}canSetParameter(b,S){return true}setParameter(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}}}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});return XMLDOMConfiguration}.call(this)}).call(this)},70121:function(b){(function(){var S;b.exports=S=class XMLDOMErrorHandler{constructor(){}handleError(b){throw new Error(b)}}}).call(this)},32692:function(b){(function(){var S;b.exports=S=class XMLDOMImplementation{hasFeature(b,S){return true}createDocumentType(b,S,J){throw new Error("This DOM method is not implemented.")}createDocument(b,S,J){throw new Error("This DOM method is not implemented.")}createHTMLDocument(b){throw new Error("This DOM method is not implemented.")}getFeature(b,S){throw new Error("This DOM method is not implemented.")}}}).call(this)},38207:function(b){(function(){var S;b.exports=S=function(){class XMLDOMStringList{constructor(b){this.arr=b||[]}item(b){return this.arr[b]||null}contains(b){return this.arr.indexOf(b)!==-1}}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});return XMLDOMStringList}.call(this)}).call(this)},12529:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDAttList extends te{constructor(b,J,ee,te,re,ne){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}toString(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))}}}).call(this)},87486:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDElement extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}toString(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))}}}).call(this)},69252:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDEntity extends te{constructor(b,J,ee,te){super(b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}toString(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});return XMLDTDEntity}.call(this)}).call(this)},84848:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDNotation extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}toString(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});return XMLDTDNotation}.call(this)}).call(this)},16645:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=class XMLDeclaration extends te{constructor(b,J,ee,te){super(b);if(re(J)){({version:J,encoding:ee,standalone:te}=J)}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}toString(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))}}}).call(this)},58873:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({isObject:ae}=J(20983));se=J(5089);S=J(7762);ee=J(12529);re=J(69252);te=J(87486);ne=J(84848);oe=J(92076);b.exports=ie=function(){class XMLDocType extends se{constructor(b,J,ee){var te,re,ne,ie;super(b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){({pubID:J,sysID:ee}=J)}if(ee==null){[ee,J]=[J,ee]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}element(b,S){var J;J=new te(this,b,S);this.children.push(J);return this}attList(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this}entity(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this}pEntity(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this}notation(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this}toString(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))}ele(b,S){return this.element(b,S)}att(b,S,J,ee,te){return this.attList(b,S,J,ee,te)}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}up(){return this.root()||this.documentObject}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLDocType}.call(this)}).call(this)},31582:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se;({isPlainObject:se}=J(20983));te=J(32692);ee=J(25675);ne=J(5089);S=J(7762);oe=J(90645);ie=J(37834);b.exports=re=function(){class XMLDocument extends ne{constructor(b){super(null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}end(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))}toString(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))}createElement(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});return XMLDocument}.call(this)}).call(this)},2871:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,Ee,Ae={}.hasOwnProperty;({isObject:be,isFunction:Te,isPlainObject:Ee,getValue:ve}=J(20983));S=J(7762);le=J(31582);fe=J(16484);re=J(45261);ne=J(20360);he=J(68732);ye=J(22275);de=J(98947);ue=J(16645);ce=J(58873);ie=J(12529);se=J(69252);oe=J(87486);ae=J(84848);te=J(1395);ge=J(90645);me=J(37834);ee=J(80140);b.exports=pe=class XMLDocumentCB{constructor(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(Ee(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}createChildNode(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!Ae.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this}dummy(){return this}node(b,S,J){if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){[J,S]=[S,J]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this}element(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement(...arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this}attribute(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!Ae.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this}text(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}cdata(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}comment(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}raw(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}instruction(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!Ae.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this}declaration(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}doctype(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this}dtdElement(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}attList(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}entity(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}pEntity(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}notation(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}up(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this}end(){while(this.currentLevel>=0){this.up()}return this.onEnd()}openCurrent(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}}openNode(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!Ae.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}}closeNode(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}}onData(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)}onEnd(){this.documentCompleted=true;return this.onEndCallback()}debugInfo(b){if(b==null){return""}else{return"node: <"+b+">"}}ele(){return this.element(...arguments)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}dec(b,S,J){return this.declaration(b,S,J)}dtd(b,S,J){return this.doctype(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}att(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}a(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}}}).call(this)},80706:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDummy extends te{constructor(b){super(b);this.type=S.Dummy}clone(){return Object.create(this)}toString(b){return""}}}).call(this)},16484:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae={}.hasOwnProperty;({isObject:se,isFunction:oe,getValue:ie}=J(20983));ne=J(5089);S=J(7762);ee=J(1395);re=J(92076);b.exports=te=function(){class XMLElement extends ne{constructor(b,J,ee){var te,re,ne,ie;super(b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}clone(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ae.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J}attribute(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ae.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this}removeAttribute(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this}toString(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}getAttribute(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}}setAttribute(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}}setAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(b){return this.attribs.hasOwnProperty(b)}hasAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}}setIdAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(!super.isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});return XMLElement}.call(this)}).call(this)},92076:function(b){(function(){var S;b.exports=S=function(){class XMLNamedNodeMap{constructor(b){this.nodes=b}clone(){return this.nodes=null}getNamedItem(b){return this.nodes[b]}setNamedItem(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null}removeNamedItem(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null}item(b){return this.nodes[Object.keys(this.nodes)[b]]||null}getNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}setNamedItemNS(b){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});return XMLNamedNodeMap}.call(this)}).call(this)},5089:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye={}.hasOwnProperty,ve=[].splice;({isObject:ge,isFunction:me,isEmpty:he,getValue:de}=J(20983));se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){class XMLNode{constructor(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(16484);te=J(45261);re=J(20360);ne=J(16645);ie=J(58873);pe=J(68732);fe=J(22275);le=J(98947);oe=J(80706);ee=J(7762);ce=J(49908);ae=J(92076);S=J(144)}}setParent(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re}element(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue;oe=null;if(S===null&&J==null){[S,J]=[{},null]}if(S==null){S={}}S=de(S);if(!ge(S)){[J,S]=[S,J]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ye.call(b,ie))continue;ue=b[ie];if(me(ue)){ue=ue.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),ue)}else if(!this.options.separateArrayItems&&Array.isArray(ue)&&he(ue)){oe=this.dummy()}else if(ge(ue)&&he(ue)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&ue==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(ue)){for(ne=0,ae=ue.length;ne<ae;ne++){te=ue[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(ue)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(ue)}else{oe=this.element(ie);oe.element(ue)}}else{oe=this.element(ie,ue)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe}insertBefore(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}}insertAfter(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee}remove(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);ve.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent}node(b,S,J){var ee;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){[J,S]=[S,J]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee}text(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this}cdata(b){var S;S=new te(this,b);this.children.push(S);return this}comment(b){var S;S=new re(this,b);this.children.push(S);return this}commentBefore(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}commentAfter(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}raw(b){var S;S=new pe(this,b);this.children.push(S);return this}dummy(){var b;b=new oe(this);return b}instruction(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ye.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this}instructionBefore(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}instructionAfter(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}declaration(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te}dtd(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re}up(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent}root(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}}document(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}}end(b){return this.document().end(b)}prev(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]}next(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]}importDocument(b){var S,J,te,re,ne;J=b.root().clone();J.parent=this;J.isRoot=false;this.children.push(J);if(this.type===ee.Document){J.isRoot=true;J.documentObject=this;this.rootObject=J;if(this.children){ne=this.children;for(te=0,re=ne.length;te<re;te++){S=ne[te];if(S.type===ee.DocType){S.name=J.name;break}}}}return this}debugInfo(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}}ele(b,S,J){return this.element(b,S,J)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}doc(){return this.document()}dec(b,S,J){return this.declaration(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}u(){return this.up()}importXMLBuilder(b){return this.importDocument(b)}attribute(b,S){throw new Error("attribute() applies to element nodes only.")}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}removeAttribute(b){throw new Error("attribute() applies to element nodes only.")}replaceChild(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(b,S){return true}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}}isSameNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true}getFeature(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(b){if(!b){return false}return b===this||this.isDescendant(b)}isDescendant(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false}isAncestor(b){return b.isDescendant(this)}isPreceding(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}}isFollowing(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}}treePosition(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}}foreachTreeNode(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLNode}.call(this)}).call(this)},49908:function(b){(function(){var S;b.exports=S=function(){class XMLNodeList{constructor(b){this.nodes=b}clone(){return this.nodes=null}item(b){return this.nodes[b]||null}}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});return XMLNodeList}.call(this)}).call(this)},98947:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLProcessingInstruction extends ee{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}clone(){return Object.create(this)}toString(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.target!==this.target){return false}return true}}}).call(this)},68732:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(5089);b.exports=te=class XMLRaw extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))}}}).call(this)},55922:function(b,S,J){(function(){var S,ee,te,re,ne={}.hasOwnProperty;S=J(7762);re=J(16670);ee=J(80140);b.exports=te=class XMLStreamWriter extends re{constructor(b,S){super(S);this.stream=b}endline(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return super.endline(b,S,J)}}document(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae}cdata(b,S,J){return this.stream.write(super.cdata(b,S,J))}comment(b,S,J){return this.stream.write(super.comment(b,S,J))}declaration(b,S,J){return this.stream.write(super.declaration(b,S,J))}docType(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)}element(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;de=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=de.length;me=b.attribs;for(pe in me){if(!ne.call(me,pe))continue;re=me[pe];he=this.attribute(re,J,te);ie=he.length;if(ce+ie>J.width){ve=this.indent(b,J,te+1)+he;de+=this.endline(b,J,te)+ve;ce=ve.length}else{ve=" "+he;de+=ve;ce+=ve.length}}}else{ge=b.attribs;for(pe in ge){if(!ne.call(ge,pe))continue;re=ge[pe];de+=this.attribute(re,J,te)}}this.stream.write(de);se=b.children.length;ae=se===0?null:b.children[0];if(se===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&se===1&&(ae.type===S.Text||ae.type===S.Raw)&&ae.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;fe=true;this.writeChildNode(ae,J,te+1);J.suppressPrettyCount--;fe=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;ye=b.children;for(ue=0,le=ye.length;ue<le;ue++){oe=ye[ue];this.writeChildNode(oe,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)}processingInstruction(b,S,J){return this.stream.write(super.processingInstruction(b,S,J))}raw(b,S,J){return this.stream.write(super.raw(b,S,J))}text(b,S,J){return this.stream.write(super.text(b,S,J))}dtdAttList(b,S,J){return this.stream.write(super.dtdAttList(b,S,J))}dtdElement(b,S,J){return this.stream.write(super.dtdElement(b,S,J))}dtdEntity(b,S,J){return this.stream.write(super.dtdEntity(b,S,J))}dtdNotation(b,S,J){return this.stream.write(super.dtdNotation(b,S,J))}}}).call(this)},37834:function(b,S,J){(function(){var S,ee;ee=J(16670);b.exports=S=class XMLStringWriter extends ee{constructor(b){super(b)}document(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re}}}).call(this)},90645:function(b){(function(){var S,J={}.hasOwnProperty;b.exports=S=function(){class XMLStringifier{constructor(b){var S,ee,te;this.assertLegalChar=this.assertLegalChar.bind(this);this.assertLegalName=this.assertLegalName.bind(this);b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}name(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")}text(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))}cdata(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)}comment(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)}raw(b){if(this.options.noValidation){return b}return""+b||""}attValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))}insTarget(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}insValue(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)}xmlVersion(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b}xmlEncoding(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)}xmlStandalone(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}}dtdPubID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdSysID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdElementValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttType(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttDefault(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdEntityValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdNData(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}assertLegalChar(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}return b}assertLegalName(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b}textEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")}attEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")}}XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";return XMLStringifier}.call(this)}).call(this)},22275:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=function(){class XMLText extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))}splitText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});return XMLText}.call(this)}).call(this)},16670:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;({assign:me}=J(20983));S=J(7762);ae=J(16645);ue=J(58873);te=J(45261);re=J(20360);le=J(16484);fe=J(68732);de=J(22275);pe=J(98947);ce=J(80706);ne=J(12529);ie=J(87486);oe=J(69252);se=J(84848);ee=J(80140);b.exports=he=class XMLWriterBase{constructor(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}filterOptions(b){var S,J,te,re,ne,ie,oe,se,ae;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.width=(ne=b.width)!=null?ne:0;S.dontPrettyTextNodes=(ie=(oe=b.dontPrettyTextNodes)!=null?oe:b.dontprettytextnodes)!=null?ie:0;S.spaceBeforeSlash=(se=(ae=b.spaceBeforeSlash)!=null?ae:b.spacebeforeslash)!=null?se:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S}indent(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""}endline(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}}attribute(b,S,J){var ee;this.openAttribute(b,S,J);if(S.pretty&&S.width>0){ee=b.name+'="'+b.value+'"'}else{ee=" "+b.name+'="'+b.value+'"'}this.closeAttribute(b,S,J);return ee}cdata(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}comment(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}declaration(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}docType(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie}element(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ye,ve,Te,be,Ee;te||(te=0);de=false;this.openNode(b,J,te);J.state=ee.OpenTag;he=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=he.length;ye=b.attribs;for(fe in ye){if(!ge.call(ye,fe))continue;re=ye[fe];me=this.attribute(re,J,te);ne=me.length;if(ce+ne>J.width){Ee=this.indent(b,J,te+1)+me;he+=this.endline(b,J,te)+Ee;ce=Ee.length}else{Ee=" "+me;he+=Ee;ce+=Ee.length}}}else{ve=b.attribs;for(fe in ve){if(!ge.call(ve,fe))continue;re=ve[fe];he+=this.attribute(re,J,te)}}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){he+=">";J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;he+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){he+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;de=true;he+=this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;de=false;J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){Te=b.children;for(ae=0,le=Te.length;ae<le;ae++){ie=Te[ae];if((ie.type===S.Text||ie.type===S.Raw)&&ie.value!=null){J.suppressPrettyCount++;de=true;break}}}he+=">"+this.endline(b,J,te);J.state=ee.InsideTag;be=b.children;for(ue=0,pe=be.length;ue<pe;ue++){ie=be[ue];he+=this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;he+=this.indent(b,J,te)+"</"+b.name+">";if(de){J.suppressPrettyCount--}he+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return he}writeChildNode(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}}processingInstruction(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}raw(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}text(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdAttList(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdElement(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdEntity(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdNotation(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}openNode(b,S,J){}closeNode(b,S,J){}openAttribute(b,S,J){}closeAttribute(b,S,J){}}}).call(this)},65769:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({assign:se,isFunction:ae}=J(20983));te=J(32692);re=J(31582);ne=J(2871);oe=J(37834);ie=J(55922);S=J(7762);ee=J(80140);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){if(ae(b)){[S,J]=[b,S];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},61389:b=>{"use strict";b.exports=function(b){b.prototype[Symbol.iterator]=function*(){for(let b=this.head;b;b=b.next){yield b.value}}}},4461:(b,S,J)=>{"use strict";b.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(b){var S=this;if(!(S instanceof Yallist)){S=new Yallist}S.tail=null;S.head=null;S.length=0;if(b&&typeof b.forEach==="function"){b.forEach((function(b){S.push(b)}))}else if(arguments.length>0){for(var J=0,ee=arguments.length;J<ee;J++){S.push(arguments[J])}}return S}Yallist.prototype.removeNode=function(b){if(b.list!==this){throw new Error("removing node which does not belong to this list")}var S=b.next;var J=b.prev;if(S){S.prev=J}if(J){J.next=S}if(b===this.head){this.head=S}if(b===this.tail){this.tail=J}b.list.length--;b.next=null;b.prev=null;b.list=null;return S};Yallist.prototype.unshiftNode=function(b){if(b===this.head){return}if(b.list){b.list.removeNode(b)}var S=this.head;b.list=this;b.next=S;if(S){S.prev=b}this.head=b;if(!this.tail){this.tail=b}this.length++};Yallist.prototype.pushNode=function(b){if(b===this.tail){return}if(b.list){b.list.removeNode(b)}var S=this.tail;b.list=this;b.prev=S;if(S){S.next=b}this.tail=b;if(!this.head){this.head=b}this.length++};Yallist.prototype.push=function(){for(var b=0,S=arguments.length;b<S;b++){push(this,arguments[b])}return this.length};Yallist.prototype.unshift=function(){for(var b=0,S=arguments.length;b<S;b++){unshift(this,arguments[b])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var b=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return b};Yallist.prototype.shift=function(){if(!this.head){return undefined}var b=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return b};Yallist.prototype.forEach=function(b,S){S=S||this;for(var J=this.head,ee=0;J!==null;ee++){b.call(S,J.value,ee,this);J=J.next}};Yallist.prototype.forEachReverse=function(b,S){S=S||this;for(var J=this.tail,ee=this.length-1;J!==null;ee--){b.call(S,J.value,ee,this);J=J.prev}};Yallist.prototype.get=function(b){for(var S=0,J=this.head;J!==null&&S<b;S++){J=J.next}if(S===b&&J!==null){return J.value}};Yallist.prototype.getReverse=function(b){for(var S=0,J=this.tail;J!==null&&S<b;S++){J=J.prev}if(S===b&&J!==null){return J.value}};Yallist.prototype.map=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.head;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.next}return J};Yallist.prototype.mapReverse=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.tail;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.prev}return J};Yallist.prototype.reduce=function(b,S){var J;var ee=this.head;if(arguments.length>1){J=S}else if(this.head){ee=this.head.next;J=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=0;ee!==null;te++){J=b(J,ee.value,te);ee=ee.next}return J};Yallist.prototype.reduceReverse=function(b,S){var J;var ee=this.tail;if(arguments.length>1){J=S}else if(this.tail){ee=this.tail.prev;J=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=this.length-1;ee!==null;te--){J=b(J,ee.value,te);ee=ee.prev}return J};Yallist.prototype.toArray=function(){var b=new Array(this.length);for(var S=0,J=this.head;J!==null;S++){b[S]=J.value;J=J.next}return b};Yallist.prototype.toArrayReverse=function(){var b=new Array(this.length);for(var S=0,J=this.tail;J!==null;S++){b[S]=J.value;J=J.prev}return b};Yallist.prototype.slice=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}for(;te!==null&&ee<S;ee++,te=te.next){J.push(te.value)}return J};Yallist.prototype.sliceReverse=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=this.length,te=this.tail;te!==null&&ee>S;ee--){te=te.prev}for(;te!==null&&ee>b;ee--,te=te.prev){J.push(te.value)}return J};Yallist.prototype.splice=function(b,S,...J){if(b>this.length){b=this.length-1}if(b<0){b=this.length+b}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}var re=[];for(var ee=0;te&&ee<S;ee++){re.push(te.value);te=this.removeNode(te)}if(te===null){te=this.tail}if(te!==this.head&&te!==this.tail){te=te.prev}for(var ee=0;ee<J.length;ee++){te=insert(this,te,J[ee])}return re};Yallist.prototype.reverse=function(){var b=this.head;var S=this.tail;for(var J=b;J!==null;J=J.prev){var ee=J.prev;J.prev=J.next;J.next=ee}this.head=S;this.tail=b;return this};function insert(b,S,J){var ee=S===b.head?new Node(J,null,S,b):new Node(J,S,S.next,b);if(ee.next===null){b.tail=ee}if(ee.prev===null){b.head=ee}b.length++;return ee}function push(b,S){b.tail=new Node(S,b.tail,null,b);if(!b.head){b.head=b.tail}b.length++}function unshift(b,S){b.head=new Node(S,null,b.head,b);if(!b.tail){b.tail=b.head}b.length++}function Node(b,S,J,ee){if(!(this instanceof Node)){return new Node(b,S,J,ee)}this.list=ee;this.value=b;if(S){S.next=this;this.prev=S}else{this.prev=null}if(J){J.prev=this;this.next=J}else{this.next=null}}try{J(61389)(Yallist)}catch(b){}},8138:(b,S,J)=>{var ee=J(82361).EventEmitter;var te=J(32081).spawn;var re=J(71017);var ne=re.dirname;var ie=re.basename;var oe=J(57147);J(73837).inherits(Command,ee);S=b.exports=new Command;S.Command=Command;S.Option=Option;function Option(b,S){this.flags=b;this.required=b.indexOf("<")>=0;this.optional=b.indexOf("[")>=0;this.bool=b.indexOf("-no-")===-1;b=b.split(/[ ,|]+/);if(b.length>1&&!/^[[<]/.test(b[1]))this.short=b.shift();this.long=b.shift();this.description=S||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(b){return this.short===b||this.long===b};function Command(b){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=b||""}Command.prototype.command=function(b,S,J){if(typeof S==="object"&&S!==null){J=S;S=null}J=J||{};var ee=b.split(/ +/);var te=new Command(ee.shift());if(S){te.description(S);this.executables=true;this._execs[te._name]=true;if(J.isDefault)this.defaultExecutable=te._name}te._noHelp=!!J.noHelp;this.commands.push(te);te.parseExpectedArgs(ee);te.parent=this;if(S)return this;return te};Command.prototype.arguments=function(b){return this.parseExpectedArgs(b.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(b){if(!b.length)return;var S=this;b.forEach((function(b){var J={required:false,name:"",variadic:false};switch(b[0]){case"<":J.required=true;J.name=b.slice(1,-1);break;case"[":J.name=b.slice(1,-1);break}if(J.name.length>3&&J.name.slice(-3)==="..."){J.variadic=true;J.name=J.name.slice(0,-3)}if(J.name){S._args.push(J)}}));return this};Command.prototype.action=function(b){var S=this;var listener=function(J,ee){J=J||[];ee=ee||[];var te=S.parseOptions(ee);outputHelpIfNecessary(S,te.unknown);if(te.unknown.length>0){S.unknownOption(te.unknown[0])}if(te.args.length)J=te.args.concat(J);S._args.forEach((function(b,ee){if(b.required&&J[ee]==null){S.missingArgument(b.name)}else if(b.variadic){if(ee!==S._args.length-1){S.variadicArgNotLast(b.name)}J[ee]=J.splice(ee)}}));if(S._args.length){J[S._args.length]=S}else{J.push(S)}b.apply(S,J)};var J=this.parent||this;var ee=J===this?"*":this._name;J.on("command:"+ee,listener);if(this._alias)J.on("command:"+this._alias,listener);return this};Command.prototype.option=function(b,S,J,ee){var te=this,re=new Option(b,S),ne=re.name(),ie=re.attributeName();if(typeof J!=="function"){if(J instanceof RegExp){var oe=J;J=function(b,S){var J=oe.exec(b);return J?J[0]:S}}else{ee=J;J=null}}if(!re.bool||re.optional||re.required){if(!re.bool)ee=true;if(ee!==undefined){te[ie]=ee;re.defaultValue=ee}}this.options.push(re);this.on("option:"+ne,(function(b){if(b!==null&&J){b=J(b,te[ie]===undefined?ee:te[ie])}if(typeof te[ie]==="boolean"||typeof te[ie]==="undefined"){if(b==null){te[ie]=re.bool?ee||true:false}else{te[ie]=b}}else if(b!==null){te[ie]=b}}));return this};Command.prototype.allowUnknownOption=function(b){this._allowUnknownOption=arguments.length===0||b;return this};Command.prototype.parse=function(b){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=b;this._name=this._name||ie(b[1],".js");if(this.executables&&b.length<3&&!this.defaultExecutable){b.push("--help")}var S=this.parseOptions(this.normalize(b.slice(2)));var J=this.args=S.args;var ee=this.parseArgs(this.args,S.unknown);var te=ee.args[0];var re=null;if(te){re=this.commands.filter((function(b){return b.alias()===te}))[0]}if(this._execs[te]&&typeof this._execs[te]!=="function"){return this.executeSubCommand(b,J,S.unknown)}else if(re){J[0]=re._name;return this.executeSubCommand(b,J,S.unknown)}else if(this.defaultExecutable){J.unshift(this.defaultExecutable);return this.executeSubCommand(b,J,S.unknown)}return ee};Command.prototype.executeSubCommand=function(b,S,J){S=S.concat(J);if(!S.length)this.help();if(S[0]==="help"&&S.length===1)this.help();if(S[0]==="help"){S[0]=S[1];S[1]="--help"}var ee=b[1];var se=ie(ee,re.extname(ee))+"-"+S[0];var ae;var ue=oe.realpathSync(ee);ae=ne(ue);var ce=re.join(ae,se);var le=false;if(exists(ce+".js")){se=ce+".js";le=true}else if(exists(ce+".ts")){se=ce+".ts";le=true}else if(exists(ce)){se=ce}S=S.slice(1);var pe;if(process.platform!=="win32"){if(le){S.unshift(se);S=(process.execArgv||[]).concat(S);pe=te(process.argv[0],S,{stdio:"inherit",customFds:[0,1,2]})}else{pe=te(se,S,{stdio:"inherit",customFds:[0,1,2]})}}else{S.unshift(se);pe=te(process.execPath,S,{stdio:"inherit"})}var fe=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];fe.forEach((function(b){process.on(b,(function(){if(pe.killed===false&&pe.exitCode===null){pe.kill(b)}}))}));pe.on("close",process.exit.bind(process));pe.on("error",(function(b){if(b.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",se)}else if(b.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",se)}process.exit(1)}));this.runningCommand=pe};Command.prototype.normalize=function(b){var S=[],J,ee,te;for(var re=0,ne=b.length;re<ne;++re){J=b[re];if(re>0){ee=this.optionFor(b[re-1])}if(J==="--"){S=S.concat(b.slice(re));break}else if(ee&&ee.required){S.push(J)}else if(J.length>1&&J[0]==="-"&&J[1]!=="-"){J.slice(1).split("").forEach((function(b){S.push("-"+b)}))}else if(/^--/.test(J)&&~(te=J.indexOf("="))){S.push(J.slice(0,te),J.slice(te+1))}else{S.push(J)}}return S};Command.prototype.parseArgs=function(b,S){var J;if(b.length){J=b[0];if(this.listeners("command:"+J).length){this.emit("command:"+b.shift(),b,S)}else{this.emit("command:*",b)}}else{outputHelpIfNecessary(this,S);if(S.length>0){this.unknownOption(S[0])}if(this.commands.length===0&&this._args.filter((function(b){return b.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(b){for(var S=0,J=this.options.length;S<J;++S){if(this.options[S].is(b)){return this.options[S]}}};Command.prototype.parseOptions=function(b){var S=[],J=b.length,ee,te,re;var ne=[];for(var ie=0;ie<J;++ie){re=b[ie];if(ee){S.push(re);continue}if(re==="--"){ee=true;continue}te=this.optionFor(re);if(te){if(te.required){re=b[++ie];if(re==null)return this.optionMissingArgument(te);this.emit("option:"+te.name(),re)}else if(te.optional){re=b[ie+1];if(re==null||re[0]==="-"&&re!=="-"){re=null}else{++ie}this.emit("option:"+te.name(),re)}else{this.emit("option:"+te.name())}continue}if(re.length>1&&re[0]==="-"){ne.push(re);if(ie+1<b.length&&b[ie+1][0]!=="-"){ne.push(b[++ie])}continue}S.push(re)}return{args:S,unknown:ne}};Command.prototype.opts=function(){var b={},S=this.options.length;for(var J=0;J<S;J++){var ee=this.options[J].attributeName();b[ee]=ee===this._versionOptionName?this._version:this[ee]}return b};Command.prototype.missingArgument=function(b){console.error("error: missing required argument `%s'",b);process.exit(1)};Command.prototype.optionMissingArgument=function(b,S){if(S){console.error("error: option `%s' argument missing, got `%s'",b.flags,S)}else{console.error("error: option `%s' argument missing",b.flags)}process.exit(1)};Command.prototype.unknownOption=function(b){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",b);process.exit(1)};Command.prototype.variadicArgNotLast=function(b){console.error("error: variadic arguments must be last `%s'",b);process.exit(1)};Command.prototype.version=function(b,S){if(arguments.length===0)return this._version;this._version=b;S=S||"-V, --version";var J=new Option(S,"output the version number");this._versionOptionName=J.long.substr(2)||"version";this.options.push(J);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(b+"\n");process.exit(0)}));return this};Command.prototype.description=function(b,S){if(arguments.length===0)return this._description;this._description=b;this._argsDescription=S;return this};Command.prototype.alias=function(b){var S=this;if(this.commands.length!==0){S=this.commands[this.commands.length-1]}if(arguments.length===0)return S._alias;if(b===S._name)throw new Error("Command alias can't be the same as its name");S._alias=b;return this};Command.prototype.usage=function(b){var S=this._args.map((function(b){return humanReadableArgName(b)}));var J="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+S.join(" "):"");if(arguments.length===0)return this._usage||J;this._usage=b;return this};Command.prototype.name=function(b){if(arguments.length===0)return this._name;this._name=b;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(b){return!b._noHelp})).map((function(b){var S=b._args.map((function(b){return humanReadableArgName(b)})).join(" ");return[b._name+(b._alias?"|"+b._alias:"")+(b.options.length?" [options]":"")+(S?" "+S:""),b._description]}))};Command.prototype.largestCommandLength=function(){var b=this.prepareCommands();return b.reduce((function(b,S){return Math.max(b,S[0].length)}),0)};Command.prototype.largestOptionLength=function(){var b=[].slice.call(this.options);b.push({flags:"-h, --help"});return b.reduce((function(b,S){return Math.max(b,S.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(b,S){return Math.max(b,S.name.length)}),0)};Command.prototype.padWidth=function(){var b=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>b){b=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>b){b=this.largestCommandLength()}}return b};Command.prototype.optionHelp=function(){var b=this.padWidth();return this.options.map((function(S){return pad(S.flags,b)+" "+S.description+(S.bool&&S.defaultValue!==undefined?" (default: "+JSON.stringify(S.defaultValue)+")":"")})).concat([pad("-h, --help",b)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var b=this.prepareCommands();var S=this.padWidth();return["Commands:",b.map((function(b){var J=b[1]?" "+b[1]:"";return(J?pad(b[0],S):b[0])+J})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var b=[];if(this._description){b=[this._description,""];var S=this._argsDescription;if(S&&this._args.length){var J=this.padWidth();b.push("Arguments:");b.push("");this._args.forEach((function(ee){b.push(" "+pad(ee.name,J)+" "+S[ee.name])}));b.push("")}}var ee=this._name;if(this._alias){ee=ee+"|"+this._alias}var te=["Usage: "+ee+" "+this.usage(),""];var re=[];var ne=this.commandHelp();if(ne)re=[ne];var ie=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return te.concat(b).concat(ie).concat(re).join("\n")};Command.prototype.outputHelp=function(b){if(!b){b=function(b){return b}}process.stdout.write(b(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(b){this.outputHelp(b);process.exit()};function camelcase(b){return b.split("-").reduce((function(b,S){return b+S[0].toUpperCase()+S.slice(1)}))}function pad(b,S){var J=Math.max(0,S-b.length);return b+Array(J+1).join(" ")}function outputHelpIfNecessary(b,S){S=S||[];for(var J=0;J<S.length;J++){if(S[J]==="--help"||S[J]==="-h"){b.outputHelp();process.exit(0)}}}function humanReadableArgName(b){var S=b.name+(b.variadic===true?"...":"");return b.required?"<"+S+">":"["+S+"]"}function exists(b){try{if(oe.statSync(b).isFile()){return true}}catch(b){return false}}},53544:(b,S,J)=>{const ee=Symbol("SemVer ANY");class Comparator{static get ANY(){return ee}constructor(b,S){if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof Comparator){if(b.loose===!!S.loose){return b}else{b=b.value}}ie("comparator",b,S);this.options=S;this.loose=!!S.loose;this.parse(b);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}ie("comp",this)}parse(b){const S=this.options.loose?te[re.COMPARATORLOOSE]:te[re.COMPARATOR];const J=b.match(S);if(!J){throw new TypeError(`Invalid comparator: ${b}`)}this.operator=J[1]!==undefined?J[1]:"";if(this.operator==="="){this.operator=""}if(!J[2]){this.semver=ee}else{this.semver=new oe(J[2],this.options.loose)}}toString(){return this.value}test(b){ie("Comparator.test",b,this.options.loose);if(this.semver===ee||b===ee){return true}if(typeof b==="string"){try{b=new oe(b,this.options)}catch(b){return false}}return ne(b,this.operator,this.semver,this.options)}intersects(b,S){if(!(b instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new se(b.value,S).test(this.value)}else if(b.operator===""){if(b.value===""){return true}return new se(this.value,S).test(b.semver)}const J=(this.operator===">="||this.operator===">")&&(b.operator===">="||b.operator===">");const ee=(this.operator==="<="||this.operator==="<")&&(b.operator==="<="||b.operator==="<");const te=this.semver.version===b.semver.version;const re=(this.operator===">="||this.operator==="<=")&&(b.operator===">="||b.operator==="<=");const ie=ne(this.semver,"<",b.semver,S)&&(this.operator===">="||this.operator===">")&&(b.operator==="<="||b.operator==="<");const oe=ne(this.semver,">",b.semver,S)&&(this.operator==="<="||this.operator==="<")&&(b.operator===">="||b.operator===">");return J||ee||te&&re||ie||oe}}b.exports=Comparator;const{re:te,t:re}=J(21962);const ne=J(75344);const ie=J(53023);const oe=J(22828);const se=J(9349)},9349:(b,S,J)=>{class Range{constructor(b,S){if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof Range){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{return new Range(b.raw,S)}}if(b instanceof ee){this.raw=b.value;this.set=[[b]];this.format();return this}this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;this.raw=b;this.set=b.split(/\s*\|\|\s*/).map((b=>this.parseRange(b.trim()))).filter((b=>b.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${b}`)}this.format()}format(){this.range=this.set.map((b=>b.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(b){const S=this.options.loose;b=b.trim();const J=S?ne[ie.HYPHENRANGELOOSE]:ne[ie.HYPHENRANGE];b=b.replace(J,hyphenReplace(this.options.includePrerelease));te("hyphen replace",b);b=b.replace(ne[ie.COMPARATORTRIM],oe);te("comparator trim",b,ne[ie.COMPARATORTRIM]);b=b.replace(ne[ie.TILDETRIM],se);b=b.replace(ne[ie.CARETTRIM],ae);b=b.split(/\s+/).join(" ");const re=S?ne[ie.COMPARATORLOOSE]:ne[ie.COMPARATOR];return b.split(" ").map((b=>parseComparator(b,this.options))).join(" ").split(/\s+/).map((b=>replaceGTE0(b,this.options))).filter(this.options.loose?b=>!!b.match(re):()=>true).map((b=>new ee(b,this.options)))}intersects(b,S){if(!(b instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((J=>isSatisfiable(J,S)&&b.set.some((b=>isSatisfiable(b,S)&&J.every((J=>b.every((b=>J.intersects(b,S)))))))))}test(b){if(!b){return false}if(typeof b==="string"){try{b=new re(b,this.options)}catch(b){return false}}for(let S=0;S<this.set.length;S++){if(testSet(this.set[S],b,this.options)){return true}}return false}}b.exports=Range;const ee=J(53544);const te=J(53023);const re=J(22828);const{re:ne,t:ie,comparatorTrimReplace:oe,tildeTrimReplace:se,caretTrimReplace:ae}=J(21962);const isSatisfiable=(b,S)=>{let J=true;const ee=b.slice();let te=ee.pop();while(J&&ee.length){J=ee.every((b=>te.intersects(b,S)));te=ee.pop()}return J};const parseComparator=(b,S)=>{te("comp",b,S);b=replaceCarets(b,S);te("caret",b);b=replaceTildes(b,S);te("tildes",b);b=replaceXRanges(b,S);te("xrange",b);b=replaceStars(b,S);te("stars",b);return b};const isX=b=>!b||b.toLowerCase()==="x"||b==="*";const replaceTildes=(b,S)=>b.trim().split(/\s+/).map((b=>replaceTilde(b,S))).join(" ");const replaceTilde=(b,S)=>{const J=S.loose?ne[ie.TILDELOOSE]:ne[ie.TILDE];return b.replace(J,((S,J,ee,re,ne)=>{te("tilde",b,S,J,ee,re,ne);let ie;if(isX(J)){ie=""}else if(isX(ee)){ie=`>=${J}.0.0 <${+J+1}.0.0-0`}else if(isX(re)){ie=`>=${J}.${ee}.0 <${J}.${+ee+1}.0-0`}else if(ne){te("replaceTilde pr",ne);ie=`>=${J}.${ee}.${re}-${ne} <${J}.${+ee+1}.0-0`}else{ie=`>=${J}.${ee}.${re} <${J}.${+ee+1}.0-0`}te("tilde return",ie);return ie}))};const replaceCarets=(b,S)=>b.trim().split(/\s+/).map((b=>replaceCaret(b,S))).join(" ");const replaceCaret=(b,S)=>{te("caret",b,S);const J=S.loose?ne[ie.CARETLOOSE]:ne[ie.CARET];const ee=S.includePrerelease?"-0":"";return b.replace(J,((S,J,re,ne,ie)=>{te("caret",b,S,J,re,ne,ie);let oe;if(isX(J)){oe=""}else if(isX(re)){oe=`>=${J}.0.0${ee} <${+J+1}.0.0-0`}else if(isX(ne)){if(J==="0"){oe=`>=${J}.${re}.0${ee} <${J}.${+re+1}.0-0`}else{oe=`>=${J}.${re}.0${ee} <${+J+1}.0.0-0`}}else if(ie){te("replaceCaret pr",ie);if(J==="0"){if(re==="0"){oe=`>=${J}.${re}.${ne}-${ie} <${J}.${re}.${+ne+1}-0`}else{oe=`>=${J}.${re}.${ne}-${ie} <${J}.${+re+1}.0-0`}}else{oe=`>=${J}.${re}.${ne}-${ie} <${+J+1}.0.0-0`}}else{te("no pr");if(J==="0"){if(re==="0"){oe=`>=${J}.${re}.${ne}${ee} <${J}.${re}.${+ne+1}-0`}else{oe=`>=${J}.${re}.${ne}${ee} <${J}.${+re+1}.0-0`}}else{oe=`>=${J}.${re}.${ne} <${+J+1}.0.0-0`}}te("caret return",oe);return oe}))};const replaceXRanges=(b,S)=>{te("replaceXRanges",b,S);return b.split(/\s+/).map((b=>replaceXRange(b,S))).join(" ")};const replaceXRange=(b,S)=>{b=b.trim();const J=S.loose?ne[ie.XRANGELOOSE]:ne[ie.XRANGE];return b.replace(J,((J,ee,re,ne,ie,oe)=>{te("xRange",b,J,ee,re,ne,ie,oe);const se=isX(re);const ae=se||isX(ne);const ue=ae||isX(ie);const ce=ue;if(ee==="="&&ce){ee=""}oe=S.includePrerelease?"-0":"";if(se){if(ee===">"||ee==="<"){J="<0.0.0-0"}else{J="*"}}else if(ee&&ce){if(ae){ne=0}ie=0;if(ee===">"){ee=">=";if(ae){re=+re+1;ne=0;ie=0}else{ne=+ne+1;ie=0}}else if(ee==="<="){ee="<";if(ae){re=+re+1}else{ne=+ne+1}}if(ee==="<")oe="-0";J=`${ee+re}.${ne}.${ie}${oe}`}else if(ae){J=`>=${re}.0.0${oe} <${+re+1}.0.0-0`}else if(ue){J=`>=${re}.${ne}.0${oe} <${re}.${+ne+1}.0-0`}te("xRange return",J);return J}))};const replaceStars=(b,S)=>{te("replaceStars",b,S);return b.trim().replace(ne[ie.STAR],"")};const replaceGTE0=(b,S)=>{te("replaceGTE0",b,S);return b.trim().replace(ne[S.includePrerelease?ie.GTE0PRE:ie.GTE0],"")};const hyphenReplace=b=>(S,J,ee,te,re,ne,ie,oe,se,ae,ue,ce,le)=>{if(isX(ee)){J=""}else if(isX(te)){J=`>=${ee}.0.0${b?"-0":""}`}else if(isX(re)){J=`>=${ee}.${te}.0${b?"-0":""}`}else if(ne){J=`>=${J}`}else{J=`>=${J}${b?"-0":""}`}if(isX(se)){oe=""}else if(isX(ae)){oe=`<${+se+1}.0.0-0`}else if(isX(ue)){oe=`<${se}.${+ae+1}.0-0`}else if(ce){oe=`<=${se}.${ae}.${ue}-${ce}`}else if(b){oe=`<${se}.${ae}.${+ue+1}-0`}else{oe=`<=${oe}`}return`${J} ${oe}`.trim()};const testSet=(b,S,J)=>{for(let J=0;J<b.length;J++){if(!b[J].test(S)){return false}}if(S.prerelease.length&&!J.includePrerelease){for(let J=0;J<b.length;J++){te(b[J].semver);if(b[J].semver===ee.ANY){continue}if(b[J].semver.prerelease.length>0){const ee=b[J].semver;if(ee.major===S.major&&ee.minor===S.minor&&ee.patch===S.patch){return true}}}return false}return true}},22828:(b,S,J)=>{const ee=J(53023);const{MAX_LENGTH:te,MAX_SAFE_INTEGER:re}=J(85585);const{re:ne,t:ie}=J(21962);const{compareIdentifiers:oe}=J(88143);class SemVer{constructor(b,S){if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof SemVer){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{b=b.version}}else if(typeof b!=="string"){throw new TypeError(`Invalid Version: ${b}`)}if(b.length>te){throw new TypeError(`version is longer than ${te} characters`)}ee("SemVer",b,S);this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;const J=b.trim().match(S.loose?ne[ie.LOOSE]:ne[ie.FULL]);if(!J){throw new TypeError(`Invalid Version: ${b}`)}this.raw=b;this.major=+J[1];this.minor=+J[2];this.patch=+J[3];if(this.major>re||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>re||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>re||this.patch<0){throw new TypeError("Invalid patch version")}if(!J[4]){this.prerelease=[]}else{this.prerelease=J[4].split(".").map((b=>{if(/^[0-9]+$/.test(b)){const S=+b;if(S>=0&&S<re){return S}}return b}))}this.build=J[5]?J[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(b){ee("SemVer.compare",this.version,this.options,b);if(!(b instanceof SemVer)){if(typeof b==="string"&&b===this.version){return 0}b=new SemVer(b,this.options)}if(b.version===this.version){return 0}return this.compareMain(b)||this.comparePre(b)}compareMain(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}return oe(this.major,b.major)||oe(this.minor,b.minor)||oe(this.patch,b.patch)}comparePre(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}if(this.prerelease.length&&!b.prerelease.length){return-1}else if(!this.prerelease.length&&b.prerelease.length){return 1}else if(!this.prerelease.length&&!b.prerelease.length){return 0}let S=0;do{const J=this.prerelease[S];const te=b.prerelease[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return oe(J,te)}}while(++S)}compareBuild(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}let S=0;do{const J=this.build[S];const te=b.build[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return oe(J,te)}}while(++S)}inc(b,S){switch(b){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",S);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",S);break;case"prepatch":this.prerelease.length=0;this.inc("patch",S);this.inc("pre",S);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",S)}this.inc("pre",S);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let b=this.prerelease.length;while(--b>=0){if(typeof this.prerelease[b]==="number"){this.prerelease[b]++;b=-2}}if(b===-1){this.prerelease.push(0)}}if(S){if(this.prerelease[0]===S){if(isNaN(this.prerelease[1])){this.prerelease=[S,0]}}else{this.prerelease=[S,0]}}break;default:throw new Error(`invalid increment argument: ${b}`)}this.format();this.raw=this.version;return this}}b.exports=SemVer},3413:(b,S,J)=>{const ee=J(2473);const clean=(b,S)=>{const J=ee(b.trim().replace(/^[=v]+/,""),S);return J?J.version:null};b.exports=clean},75344:(b,S,J)=>{const ee=J(47498);const te=J(88873);const re=J(60245);const ne=J(89537);const ie=J(71927);const oe=J(99818);const cmp=(b,S,J,se)=>{switch(S){case"===":if(typeof b==="object")b=b.version;if(typeof J==="object")J=J.version;return b===J;case"!==":if(typeof b==="object")b=b.version;if(typeof J==="object")J=J.version;return b!==J;case"":case"=":case"==":return ee(b,J,se);case"!=":return te(b,J,se);case">":return re(b,J,se);case">=":return ne(b,J,se);case"<":return ie(b,J,se);case"<=":return oe(b,J,se);default:throw new TypeError(`Invalid operator: ${S}`)}};b.exports=cmp},99886:(b,S,J)=>{const ee=J(22828);const te=J(2473);const{re:re,t:ne}=J(21962);const coerce=(b,S)=>{if(b instanceof ee){return b}if(typeof b==="number"){b=String(b)}if(typeof b!=="string"){return null}S=S||{};let J=null;if(!S.rtl){J=b.match(re[ne.COERCE])}else{let S;while((S=re[ne.COERCERTL].exec(b))&&(!J||J.index+J[0].length!==b.length)){if(!J||S.index+S[0].length!==J.index+J[0].length){J=S}re[ne.COERCERTL].lastIndex=S.index+S[1].length+S[2].length}re[ne.COERCERTL].lastIndex=-1}if(J===null)return null;return te(`${J[2]}.${J[3]||"0"}.${J[4]||"0"}`,S)};b.exports=coerce},43868:(b,S,J)=>{const ee=J(22828);const compareBuild=(b,S,J)=>{const te=new ee(b,J);const re=new ee(S,J);return te.compare(re)||te.compareBuild(re)};b.exports=compareBuild},31526:(b,S,J)=>{const ee=J(56419);const compareLoose=(b,S)=>ee(b,S,true);b.exports=compareLoose},56419:(b,S,J)=>{const ee=J(22828);const compare=(b,S,J)=>new ee(b,J).compare(new ee(S,J));b.exports=compare},20213:(b,S,J)=>{const ee=J(2473);const te=J(47498);const diff=(b,S)=>{if(te(b,S)){return null}else{const J=ee(b);const te=ee(S);const re=J.prerelease.length||te.prerelease.length;const ne=re?"pre":"";const ie=re?"prerelease":"";for(const b in J){if(b==="major"||b==="minor"||b==="patch"){if(J[b]!==te[b]){return ne+b}}}return ie}};b.exports=diff},47498:(b,S,J)=>{const ee=J(56419);const eq=(b,S,J)=>ee(b,S,J)===0;b.exports=eq},60245:(b,S,J)=>{const ee=J(56419);const gt=(b,S,J)=>ee(b,S,J)>0;b.exports=gt},89537:(b,S,J)=>{const ee=J(56419);const gte=(b,S,J)=>ee(b,S,J)>=0;b.exports=gte},56767:(b,S,J)=>{const ee=J(22828);const inc=(b,S,J,te)=>{if(typeof J==="string"){te=J;J=undefined}try{return new ee(b,J).inc(S,te).version}catch(b){return null}};b.exports=inc},71927:(b,S,J)=>{const ee=J(56419);const lt=(b,S,J)=>ee(b,S,J)<0;b.exports=lt},99818:(b,S,J)=>{const ee=J(56419);const lte=(b,S,J)=>ee(b,S,J)<=0;b.exports=lte},61941:(b,S,J)=>{const ee=J(22828);const major=(b,S)=>new ee(b,S).major;b.exports=major},56770:(b,S,J)=>{const ee=J(22828);const minor=(b,S)=>new ee(b,S).minor;b.exports=minor},88873:(b,S,J)=>{const ee=J(56419);const neq=(b,S,J)=>ee(b,S,J)!==0;b.exports=neq},2473:(b,S,J)=>{const{MAX_LENGTH:ee}=J(85585);const{re:te,t:re}=J(21962);const ne=J(22828);const parse=(b,S)=>{if(!S||typeof S!=="object"){S={loose:!!S,includePrerelease:false}}if(b instanceof ne){return b}if(typeof b!=="string"){return null}if(b.length>ee){return null}const J=S.loose?te[re.LOOSE]:te[re.FULL];if(!J.test(b)){return null}try{return new ne(b,S)}catch(b){return null}};b.exports=parse},56952:(b,S,J)=>{const ee=J(22828);const patch=(b,S)=>new ee(b,S).patch;b.exports=patch},4359:(b,S,J)=>{const ee=J(2473);const prerelease=(b,S)=>{const J=ee(b,S);return J&&J.prerelease.length?J.prerelease:null};b.exports=prerelease},79995:(b,S,J)=>{const ee=J(56419);const rcompare=(b,S,J)=>ee(S,b,J);b.exports=rcompare},78405:(b,S,J)=>{const ee=J(43868);const rsort=(b,S)=>b.sort(((b,J)=>ee(J,b,S)));b.exports=rsort},90244:(b,S,J)=>{const ee=J(9349);const satisfies=(b,S,J)=>{try{S=new ee(S,J)}catch(b){return false}return S.test(b)};b.exports=satisfies},24893:(b,S,J)=>{const ee=J(43868);const sort=(b,S)=>b.sort(((b,J)=>ee(b,J,S)));b.exports=sort},52410:(b,S,J)=>{const ee=J(2473);const valid=(b,S)=>{const J=ee(b,S);return J?J.version:null};b.exports=valid},92901:(b,S,J)=>{const ee=J(21962);b.exports={re:ee.re,src:ee.src,tokens:ee.t,SEMVER_SPEC_VERSION:J(85585).SEMVER_SPEC_VERSION,SemVer:J(22828),compareIdentifiers:J(88143).compareIdentifiers,rcompareIdentifiers:J(88143).rcompareIdentifiers,parse:J(2473),valid:J(52410),clean:J(3413),inc:J(56767),diff:J(20213),major:J(61941),minor:J(56770),patch:J(56952),prerelease:J(4359),compare:J(56419),rcompare:J(79995),compareLoose:J(31526),compareBuild:J(43868),sort:J(24893),rsort:J(78405),gt:J(60245),lt:J(71927),eq:J(47498),neq:J(88873),gte:J(89537),lte:J(99818),cmp:J(75344),coerce:J(99886),Comparator:J(53544),Range:J(9349),satisfies:J(90244),toComparators:J(32579),maxSatisfying:J(1126),minSatisfying:J(18260),minVersion:J(12037),validRange:J(17981),outside:J(85409),gtr:J(5401),ltr:J(84856),intersects:J(33186),simplifyRange:J(35151),subset:J(99318)}},85585:b=>{const S="2.0.0";const J=256;const ee=Number.MAX_SAFE_INTEGER||9007199254740991;const te=16;b.exports={SEMVER_SPEC_VERSION:S,MAX_LENGTH:J,MAX_SAFE_INTEGER:ee,MAX_SAFE_COMPONENT_LENGTH:te}},53023:b=>{const S=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...b)=>console.error("SEMVER",...b):()=>{};b.exports=S},88143:b=>{const S=/^[0-9]+$/;const compareIdentifiers=(b,J)=>{const ee=S.test(b);const te=S.test(J);if(ee&&te){b=+b;J=+J}return b===J?0:ee&&!te?-1:te&&!ee?1:b<J?-1:1};const rcompareIdentifiers=(b,S)=>compareIdentifiers(S,b);b.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},21962:(b,S,J)=>{const{MAX_SAFE_COMPONENT_LENGTH:ee}=J(85585);const te=J(53023);S=b.exports={};const re=S.re=[];const ne=S.src=[];const ie=S.t={};let oe=0;const createToken=(b,S,J)=>{const ee=oe++;te(ee,S);ie[b]=ee;ne[ee]=S;re[ee]=new RegExp(S,J?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${ne[ie.NUMERICIDENTIFIER]})\\.`+`(${ne[ie.NUMERICIDENTIFIER]})\\.`+`(${ne[ie.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${ne[ie.NUMERICIDENTIFIERLOOSE]})\\.`+`(${ne[ie.NUMERICIDENTIFIERLOOSE]})\\.`+`(${ne[ie.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${ne[ie.NUMERICIDENTIFIER]}|${ne[ie.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${ne[ie.NUMERICIDENTIFIERLOOSE]}|${ne[ie.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${ne[ie.PRERELEASEIDENTIFIER]}(?:\\.${ne[ie.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${ne[ie.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ne[ie.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${ne[ie.BUILDIDENTIFIER]}(?:\\.${ne[ie.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${ne[ie.MAINVERSION]}${ne[ie.PRERELEASE]}?${ne[ie.BUILD]}?`);createToken("FULL",`^${ne[ie.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${ne[ie.MAINVERSIONLOOSE]}${ne[ie.PRERELEASELOOSE]}?${ne[ie.BUILD]}?`);createToken("LOOSE",`^${ne[ie.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${ne[ie.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${ne[ie.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${ne[ie.XRANGEIDENTIFIER]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIER]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIER]})`+`(?:${ne[ie.PRERELEASE]})?${ne[ie.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${ne[ie.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${ne[ie.XRANGEIDENTIFIERLOOSE]})`+`(?:${ne[ie.PRERELEASELOOSE]})?${ne[ie.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${ne[ie.GTLT]}\\s*${ne[ie.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${ne[ie.GTLT]}\\s*${ne[ie.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${ee}})`+`(?:\\.(\\d{1,${ee}}))?`+`(?:\\.(\\d{1,${ee}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",ne[ie.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${ne[ie.LONETILDE]}\\s+`,true);S.tildeTrimReplace="$1~";createToken("TILDE",`^${ne[ie.LONETILDE]}${ne[ie.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${ne[ie.LONETILDE]}${ne[ie.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${ne[ie.LONECARET]}\\s+`,true);S.caretTrimReplace="$1^";createToken("CARET",`^${ne[ie.LONECARET]}${ne[ie.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${ne[ie.LONECARET]}${ne[ie.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${ne[ie.GTLT]}\\s*(${ne[ie.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${ne[ie.GTLT]}\\s*(${ne[ie.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${ne[ie.GTLT]}\\s*(${ne[ie.LOOSEPLAIN]}|${ne[ie.XRANGEPLAIN]})`,true);S.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${ne[ie.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${ne[ie.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${ne[ie.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${ne[ie.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},5401:(b,S,J)=>{const ee=J(85409);const gtr=(b,S,J)=>ee(b,S,">",J);b.exports=gtr},33186:(b,S,J)=>{const ee=J(9349);const intersects=(b,S,J)=>{b=new ee(b,J);S=new ee(S,J);return b.intersects(S)};b.exports=intersects},84856:(b,S,J)=>{const ee=J(85409);const ltr=(b,S,J)=>ee(b,S,"<",J);b.exports=ltr},1126:(b,S,J)=>{const ee=J(22828);const te=J(9349);const maxSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===-1){re=b;ne=new ee(re,J)}}}));return re};b.exports=maxSatisfying},18260:(b,S,J)=>{const ee=J(22828);const te=J(9349);const minSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===1){re=b;ne=new ee(re,J)}}}));return re};b.exports=minSatisfying},12037:(b,S,J)=>{const ee=J(22828);const te=J(9349);const re=J(60245);const minVersion=(b,S)=>{b=new te(b,S);let J=new ee("0.0.0");if(b.test(J)){return J}J=new ee("0.0.0-0");if(b.test(J)){return J}J=null;for(let S=0;S<b.set.length;++S){const te=b.set[S];te.forEach((b=>{const S=new ee(b.semver.version);switch(b.operator){case">":if(S.prerelease.length===0){S.patch++}else{S.prerelease.push(0)}S.raw=S.format();case"":case">=":if(!J||re(J,S)){J=S}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${b.operator}`)}}))}if(J&&b.test(J)){return J}return null};b.exports=minVersion},85409:(b,S,J)=>{const ee=J(22828);const te=J(53544);const{ANY:re}=te;const ne=J(9349);const ie=J(90244);const oe=J(60245);const se=J(71927);const ae=J(99818);const ue=J(89537);const outside=(b,S,J,ce)=>{b=new ee(b,ce);S=new ne(S,ce);let le,pe,fe,de,he;switch(J){case">":le=oe;pe=ae;fe=se;de=">";he=">=";break;case"<":le=se;pe=ue;fe=oe;de="<";he="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ie(b,S,ce)){return false}for(let J=0;J<S.set.length;++J){const ee=S.set[J];let ne=null;let ie=null;ee.forEach((b=>{if(b.semver===re){b=new te(">=0.0.0")}ne=ne||b;ie=ie||b;if(le(b.semver,ne.semver,ce)){ne=b}else if(fe(b.semver,ie.semver,ce)){ie=b}}));if(ne.operator===de||ne.operator===he){return false}if((!ie.operator||ie.operator===de)&&pe(b,ie.semver)){return false}else if(ie.operator===he&&fe(b,ie.semver)){return false}}return true};b.exports=outside},35151:(b,S,J)=>{const ee=J(90244);const te=J(56419);b.exports=(b,S,J)=>{const re=[];let ne=null;let ie=null;const oe=b.sort(((b,S)=>te(b,S,J)));for(const b of oe){const te=ee(b,S,J);if(te){ie=b;if(!ne)ne=b}else{if(ie){re.push([ne,ie])}ie=null;ne=null}}if(ne)re.push([ne,null]);const se=[];for(const[b,S]of re){if(b===S)se.push(b);else if(!S&&b===oe[0])se.push("*");else if(!S)se.push(`>=${b}`);else if(b===oe[0])se.push(`<=${S}`);else se.push(`${b} - ${S}`)}const ae=se.join(" || ");const ue=typeof S.raw==="string"?S.raw:String(S);return ae.length<ue.length?ae:S}},99318:(b,S,J)=>{const ee=J(9349);const{ANY:te}=J(53544);const re=J(90244);const ne=J(56419);const subset=(b,S,J)=>{b=new ee(b,J);S=new ee(S,J);let te=false;e:for(const ee of b.set){for(const b of S.set){const S=simpleSubset(ee,b,J);te=te||S!==null;if(S)continue e}if(te)return false}return true};const simpleSubset=(b,S,J)=>{if(b.length===1&&b[0].semver===te)return S.length===1&&S[0].semver===te;const ee=new Set;let ie,oe;for(const S of b){if(S.operator===">"||S.operator===">=")ie=higherGT(ie,S,J);else if(S.operator==="<"||S.operator==="<=")oe=lowerLT(oe,S,J);else ee.add(S.semver)}if(ee.size>1)return null;let se;if(ie&&oe){se=ne(ie.semver,oe.semver,J);if(se>0)return null;else if(se===0&&(ie.operator!==">="||oe.operator!=="<="))return null}for(const b of ee){if(ie&&!re(b,String(ie),J))return null;if(oe&&!re(b,String(oe),J))return null;for(const ee of S){if(!re(b,String(ee),J))return false}return true}let ae,ue;let ce,le;for(const b of S){le=le||b.operator===">"||b.operator===">=";ce=ce||b.operator==="<"||b.operator==="<=";if(ie){if(b.operator===">"||b.operator===">="){ae=higherGT(ie,b,J);if(ae===b)return false}else if(ie.operator===">="&&!re(ie.semver,String(b),J))return false}if(oe){if(b.operator==="<"||b.operator==="<="){ue=lowerLT(oe,b,J);if(ue===b)return false}else if(oe.operator==="<="&&!re(oe.semver,String(b),J))return false}if(!b.operator&&(oe||ie)&&se!==0)return false}if(ie&&ce&&!oe&&se!==0)return false;if(oe&&le&&!ie&&se!==0)return false;return true};const higherGT=(b,S,J)=>{if(!b)return S;const ee=ne(b.semver,S.semver,J);return ee>0?b:ee<0?S:S.operator===">"&&b.operator===">="?S:b};const lowerLT=(b,S,J)=>{if(!b)return S;const ee=ne(b.semver,S.semver,J);return ee<0?b:ee>0?S:S.operator==="<"&&b.operator==="<="?S:b};b.exports=subset},32579:(b,S,J)=>{const ee=J(9349);const toComparators=(b,S)=>new ee(b,S).set.map((b=>b.map((b=>b.value)).join(" ").trim().split(" ")));b.exports=toComparators},17981:(b,S,J)=>{const ee=J(9349);const validRange=(b,S)=>{try{return new ee(b,S).range||"*"}catch(b){return null}};b.exports=validRange},2855:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});const te=J(85665);const re=J(24456);const ne=ee(J(68746));const ie=J(8138);const oe=ee(J(41112));const se=J(83036);const ae=J(84221);const ue=J(2554);const ce=J(70639);const le=J(25823);const pe=J(70026);const fe=J(88139);const de=J(30443);const he=J(4147);let me="";const ge=new ie.Command(he.name).version(he.version).arguments("<project-directory>").usage(`${ne.default.green("<project-directory>")} [options]`).description("Install expo-modules into your project").option("-s, --sdk-version <version>","Install specified expo-modules sdk version").option("--non-interactive","Disable interactive prompts").action((b=>me=b)).parse(process.argv);function getSdkVersionInfo(){const{sdkVersion:b}=ge;if(b){const S=(0,pe.getVersionInfo)(b);if(!S){throw new Error(`Unsupported sdkVersion: ${b}`)}return S}return(0,pe.getDefaultSdkVersion)(me)}async function promptUpgradeAgpVersionAsync(b,S){if(!await(0,se.shouldUpdateAgpVersionAsync)(b,S)){return true}const J=`The minimum Android Gradle Plugin version for Expo modules is ${S}. This tool will change your AGP version to ${S}.`;if(ge.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function promptUpgradeIosDeployTargetAsync(b,S){if(!await(0,ue.shouldUpdateDeployTargetPodfileAsync)(b,S)){return true}const J=`Expo modules minimum iOS requirement is ${S}. This tool will change your iOS deployment target to ${S}.`;if(ge.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function runAsync(b){me=(0,de.normalizeProjectRoot)(me);const{expoSdkVersion:S,iosDeploymentTarget:J,androidAgpVersion:ee}=getSdkVersionInfo();if(ee&&!await promptUpgradeAgpVersionAsync(me,ee)){return}if(!await promptUpgradeIosDeployTargetAsync(me,J)){return}const ie=["android","ios"];let{exp:oe}=(0,te.getConfig)(me,{skipSDKVersionRequirement:true,isModdedConfig:true});oe.sdkVersion=S;if(ee){oe=(0,se.withAndroidGradlePluginVersion)(oe,{androidAgpVersion:ee})}oe=(0,ae.withAndroidModules)(oe);oe=(0,ce.withIosModules)(oe);oe=(0,ue.withIosDeploymentTarget)(oe,{deploymentTarget:J});oe=(0,le.withXCParseXcodeProjectBaseMod)(oe);console.log("› Updating your project...");await(0,re.compileModsAsync)(oe,{projectRoot:me,platforms:ie});console.log("› Installing expo packages...");await(0,fe.installExpoPackageAsync)(me,S);console.log("› Installing ios pods...");await(0,fe.installPodsAsync)(me);console.log(ne.default.bold("› Installation completed!"))}(async()=>{ge.parse(process.argv);try{await runAsync(he.name)}catch(b){console.error("Uncaught Error",b);process.exit(1)}})()},83036:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.withAndroidGradlePluginVersion=S.shouldUpdateAgpVersionAsync=void 0;const te=J(24456);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));function createAgpRegExp(){return/^(\s*classpath[(\s]["']com\.android\.tools\.build:gradle:)(\d+\.\d+\.\d+)(["'][)\s]\s*)$/gm}async function shouldUpdateAgpVersionAsync(b,S){const J=ne.default.join(b,"android","build.gradle");const ee=await re.default.promises.readFile(J,"utf-8");const te=createAgpRegExp().exec(ee);if(!te){console.warn("Unrecognized `android/build.gradle` content, will skip the process to update AGP version.");return false}const oe=te[2];if(!oe){console.warn("Unrecognized `android/build.gradle` content, will skip the process to update AGP version.");return false}return ie.default.lt(toSemVer(oe),toSemVer(S))}S.shouldUpdateAgpVersionAsync=shouldUpdateAgpVersionAsync;const withAndroidGradlePluginVersion=(b,S)=>(0,te.withProjectBuildGradle)(b,(b=>{if(b.modResults.language!=="groovy"){throw new Error("Cannot setup kotlin because the build.gradle is not groovy")}const J=createAgpRegExp().exec(b.modResults.contents);if(J){const ee=J[2];if(ee&&ie.default.lt(toSemVer(ee),toSemVer(S.androidAgpVersion))){b.modResults.contents=b.modResults.contents.replace(createAgpRegExp(),((b,J,ee,te)=>`${J}${S.androidAgpVersion}${te}`))}}return b}));S.withAndroidGradlePluginVersion=withAndroidGradlePluginVersion;function toSemVer(b){var S;return(S=ie.default.coerce(b))!==null&&S!==void 0?S:new ie.default.SemVer("0.0.0")}},84221:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withAndroidModules=void 0;const ee=J(24456);const te=J(51595);const re=J(67776);const withAndroidModules=b=>(0,ee.withPlugins)(b,[re.withAndroidModulesMainApplication,te.withAndroidModulesMainActivity,withAndroidModulesSettingGradle]);S.withAndroidModules=withAndroidModules;const withAndroidModulesSettingGradle=b=>(0,ee.withSettingsGradle)(b,(b=>{if(b.modResults.contents.match("useExpoModules()")){return b}const S=b.modResults.language==="groovy";const J=S?['apply from: new File(["node", "--print", "require.resolve(\'expo/package.json\')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")',"useExpoModules()"]:["val pathExpoPackageJson = org.codehaus.groovy.runtime.ProcessGroovyMethods.getText(org.codehaus.groovy.runtime.ProcessGroovyMethods.execute(\"node --print require.resolve('expo/package.json')\", null, rootDir))",'apply(from = File(pathExpoPackageJson.trim(), "../scripts/autolinking.gradle"))','val useExpoModules = extra["useExpoModules"] as groovy.lang.Closure<Any>',"useExpoModules()"];b.modResults.contents=b.modResults.contents+`\n${J.join("\n")}`;return b}))},51595:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainActivity=S.withAndroidModulesMainActivity=void 0;const ee=J(24456);const te=J(6905);const re=J(33970);const withAndroidModulesMainActivity=b=>(0,ee.withMainActivity)(b,(b=>{b.modResults.contents=setModulesMainActivity(b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainActivity=withAndroidModulesMainActivity;function setModulesMainActivity(b,S){const J=S==="java";if(b.match(/\s+ReactActivityDelegateWrapper\(/m)!=null){return b}if(b.match(/\s+createReactActivityDelegate\(\)/m)==null){b=(0,te.addImports)(b,["com.facebook.react.ReactActivityDelegate","expo.modules.ReactActivityDelegateWrapper"],J);const S=J?["\n @Override"," protected ReactActivityDelegate createReactActivityDelegate() {"," return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," new ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"]:["\n override fun createReactActivityDelegate(): ReactActivityDelegate {"," return ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"];b=(0,te.appendContentsInsideDeclarationBlock)(b,"class MainActivity",S.join("\n"))}else if(b.match(/\bDefaultReactActivityDelegate\b/g)){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"DefaultReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find DefaultReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else if(b.match(/\s+MainActivityDelegate\s+extends\s+ReactActivityDelegate\s+\{/)!=null||b.match(/\s+MainActivityDelegate\(.+\)\s+:\s+ReactActivityDelegate.+\{/)!=null){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"MainActivityDelegate",S);if(ee==null){throw new Error("Unable to find MainActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else{b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"ReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find ReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, ${ee.code})`:`ReactActivityDelegateWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}return b}S.setModulesMainActivity=setModulesMainActivity},67776:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainApplication=S.withAndroidModulesMainApplication=void 0;const ee=J(24456);const te=J(6905);const re=J(33970);const withAndroidModulesMainApplication=b=>(0,ee.withMainApplication)(b,(b=>{b.modResults.contents=setModulesMainApplication(b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainApplication=withAndroidModulesMainApplication;function setModulesMainApplication(b,S){const J=S==="java";b=addDefaultReactNativeHostWrapperIfNeeded(b,S,J);b=addReactNativeHostWrapperIfNeeded(b,S,J);b=addReactNativeNewArchHostWrapperIfNeeded(b,S,J);b=addApplicationLifecycleDispatchImportIfNeeded(b,S,J);b=addApplicationCreateIfNeeded(b,S,J);b=addConfigurationChangeIfNeeded(b,S,J);return b}S.setModulesMainApplication=setModulesMainApplication;function addDefaultReactNativeHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.defaults\.DefaultReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*DefaultReactNativeHost\(/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,te.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"DefaultReactNativeHost",S);if(ee==null){throw new Error("Unable to find DefaultReactNativeHost new instance code block.")}const ne=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}function addReactNativeHostWrapperIfNeeded(b,S,J){if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,te.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"ReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const ne=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}function addReactNativeNewArchHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.newarchitecture\.MainApplicationReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*MainApplicationReactNativeHost\(/m)){return b}b=(0,te.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"MainApplicationReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const ne=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}function addApplicationLifecycleDispatchImportIfNeeded(b,S,J){if(b.match(/^import\s+expo\.modules\.ApplicationLifecycleDispatcher;?$/)){return b}return(0,te.addImports)(b,["expo.modules.ApplicationLifecycleDispatcher"],J)}function addApplicationCreateIfNeeded(b,S,J){if(b.match(/\s+ApplicationLifecycleDispatcher\.onApplicationCreate\(/m)){return b}return(0,te.appendContentsInsideDeclarationBlock)(b,"onCreate",` ApplicationLifecycleDispatcher.onApplicationCreate(this)${J?";":""}\n `)}function addConfigurationChangeIfNeeded(b,S,J){if(b.match(/\s+onConfigurationChanged\(/m)==null){b=(0,te.addImports)(b,["android.content.res.Configuration"],J);const S=J?["\n @Override"," public void onConfigurationChanged(Configuration newConfig) {"," super.onConfigurationChanged(newConfig);"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);"," }\n"].join("\n"):["\n override fun onConfigurationChanged(newConfig: Configuration) {"," super.onConfigurationChanged(newConfig)"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)"," }\n"].join("\n");b=(0,te.appendContentsInsideDeclarationBlock)(b,"class MainApplication",S)}else if(b.match(/\s+ApplicationLifecycleDispatcher\.onConfigurationChanged\(/m)==null){b=(0,te.appendContentsInsideDeclarationBlock)(b,"onConfigurationChanged",` ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)${J?";":""}\n `)}return b}},2554:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateDeploymentTargetXcodeProject=S.lookupReactNativeMinIosVersionSupported=S.shouldUpdateDeployTargetPodfileAsync=S.updateDeploymentTargetPodfile=S.withIosDeploymentTarget=void 0;const te=J(24456);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(12753));const oe=ee(J(92901));const se=J(40504);const ae=J(25823);const withIosDeploymentTarget=(b,S)=>{b=withIosDeploymentTargetPodfile(b,S);b=withIosDeploymentTargetXcodeProject(b,S);return b};S.withIosDeploymentTarget=withIosDeploymentTarget;const withIosDeploymentTargetPodfile=(b,S)=>(0,te.withDangerousMod)(b,["ios",async b=>{const J=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let ee=await re.default.promises.readFile(J,"utf8");ee=await updateDeploymentTargetPodfile(b.modRequest.projectRoot,ee,S.deploymentTarget);await re.default.promises.writeFile(J,ee);return b}]);function createPodfilePlatformRegExp(){return/^(\s*platform :ios,\s*)(['"][\d.]+['"]|min_ios_version_supported)/gm}async function parseVersionAsync(b,S){let J;if(S==="min_ios_version_supported"){J=await lookupReactNativeMinIosVersionSupported(b)}else{J=S.replace(/'"/g,"")}return J}async function updateDeploymentTargetPodfile(b,S,J){const ee=createPodfilePlatformRegExp().exec(S);if(ee){const te=await parseVersionAsync(b,ee[2]);if(te&&oe.default.lt(toSemVer(te),toSemVer(J))){return S.replace(createPodfilePlatformRegExp(),((b,S,ee)=>`${S}'${J}'`))}}return S}S.updateDeploymentTargetPodfile=updateDeploymentTargetPodfile;async function shouldUpdateDeployTargetPodfileAsync(b,S){const J=ne.default.join(b,"ios","Podfile");const ee=await re.default.promises.readFile(J,"utf-8");const te=createPodfilePlatformRegExp().exec(ee);if(!te){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}const ie=await parseVersionAsync(b,te[2]);if(!ie){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}return oe.default.lt(toSemVer(ie),toSemVer(S))}S.shouldUpdateDeployTargetPodfileAsync=shouldUpdateDeployTargetPodfileAsync;async function lookupReactNativeMinIosVersionSupported(b){const S=ie.default.silent(b,"react-native/scripts/react_native_pods.rb");if(!S){return null}try{const b=await re.default.promises.readFile(S,"utf-8");const J=/^def min_ios_version_supported\n\s*return\s*['"]([\d.]+)['"]/gm;const ee=J.exec(b);if(ee){return ee[1]}}catch{}return null}S.lookupReactNativeMinIosVersionSupported=lookupReactNativeMinIosVersionSupported;const withIosDeploymentTargetXcodeProject=(b,S)=>(0,ae.withXCParseXcodeProject)(b,(b=>{b.modResults=updateDeploymentTargetXcodeProject(b.modResults,S.deploymentTarget);return b}));function updateDeploymentTargetXcodeProject(b,S){var J;for(const ee of Object.values((J=b.objects)!==null&&J!==void 0?J:{})){if(ee.isa===se.ISA.XCBuildConfiguration){const{buildSettings:b}=ee;const J=b===null||b===void 0?void 0:b.IPHONEOS_DEPLOYMENT_TARGET;if(J&&oe.default.lt(toSemVer(J),toSemVer(S))){b.IPHONEOS_DEPLOYMENT_TARGET=S}}}return b}S.updateDeploymentTargetXcodeProject=updateDeploymentTargetXcodeProject;function toSemVer(b){var S;return(S=oe.default.coerce(b))!==null&&S!==void 0?S:new oe.default.SemVer("0.0.0")}},70639:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withIosModules=void 0;const ee=J(24456);const te=J(61121);const re=J(53753);const withIosModules=b=>(0,ee.withPlugins)(b,[te.withIosModulesAppDelegate,te.withIosModulesAppDelegateObjcHeader,te.withIosModulesSwiftBridgingHeader,re.withIosModulesPodfile]);S.withIosModules=withIosModules},61121:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateModulesAppDelegateSwift=S.updateModulesAppDelegateObjcHeader=S.updateModulesAppDelegateObjcImpl=S.withIosModulesSwiftBridgingHeader=S.withIosModulesAppDelegateObjcHeader=S.withIosModulesAppDelegate=void 0;const te=J(24456);const re=J(39413);const ne=ee(J(57147));const ie=J(63700);const oe=ee(J(92901));const se=J(25823);const withIosModulesAppDelegate=b=>(0,te.withAppDelegate)(b,(b=>{b.modResults.contents=["objc","objcpp"].includes(b.modResults.language)?updateModulesAppDelegateObjcImpl(b.modResults.contents,b.sdkVersion):updateModulesAppDelegateSwift(b.modResults.contents,b.sdkVersion);return b}));S.withIosModulesAppDelegate=withIosModulesAppDelegate;const withIosModulesAppDelegateObjcHeader=b=>(0,te.withDangerousMod)(b,["ios",async b=>{try{const S=te.IOSConfig.Paths.getAppDelegateObjcHeaderFilePath(b.modRequest.projectRoot);let J=await ne.default.promises.readFile(S,"utf8");J=updateModulesAppDelegateObjcHeader(J,b.sdkVersion);await ne.default.promises.writeFile(S,J)}catch{}return b}]);S.withIosModulesAppDelegateObjcHeader=withIosModulesAppDelegateObjcHeader;const withIosModulesSwiftBridgingHeader=b=>(0,se.withXCParseXcodeProject)(b,(async b=>{const S=(0,se.getDesignatedSwiftBridgingHeaderFileReference)(b.modResults);if(!S){return b}const[J]=(0,ie.sync)(`ios/${S.replace(/['"]/g,"")}`,{absolute:true,cwd:b.modRequest.projectRoot});if(!J){return b}let ee=await ne.default.promises.readFile(J,"utf8");if(!ee.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){ee=(0,re.addObjcImports)(ee,["<Expo/Expo.h>"])}await ne.default.promises.writeFile(J,ee);return b}));S.withIosModulesSwiftBridgingHeader=withIosModulesSwiftBridgingHeader;function updateModulesAppDelegateObjcImpl(b,S){const J="[super application:application didFinishLaunchingWithOptions:launchOptions];";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideObjcFunctionBlock)(b,"application:didFinishLaunchingWithOptions:",J,{position:"tailBeforeLastReturn"})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\[\[RCTBridge alloc\] initWithDelegate:/g,"[self.reactDelegate createBridgeWithDelegate:");b=b.replace(/\[\[RCTRootView alloc\] initWithBridge:/g,"[self.reactDelegate createRootViewWithBridge:");b=b.replace(/\bRCTAppSetupDefaultRootView\((.+)\)/g,((b,S)=>{const[J,ee,te]=S.split(",").map((b=>b.trim()));return`[self.reactDelegate createRootViewWithBridge:${J} moduleName:${ee} initialProperties:${te}]`}));b=b.replace(/\[UIViewController new\]/g,"[self.reactDelegate createRootViewController]")}return b}S.updateModulesAppDelegateObjcImpl=updateModulesAppDelegateObjcImpl;function updateModulesAppDelegateObjcHeader(b,S){if(!b.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){b=(0,re.addObjcImports)(b,["<Expo/Expo.h>"])}b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)RCTAppDelegate$/m,"$1EXAppDelegateWrapper");b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)UIResponder(\s+.+)$/m,"$1EXAppDelegateWrapper$2");return b}S.updateModulesAppDelegateObjcHeader=updateModulesAppDelegateObjcHeader;function updateModulesAppDelegateSwift(b,S){b=b.replace(/^(class\s+AppDelegate\s*:\s*)NSObject,\s*UIApplicationDelegate(\W+)/m,"$1AppDelegateWrapper$2");const J="super.application(application, didFinishLaunchingWithOptions: launchOptions)";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideSwiftFunctionBlock)(b,"application(_:didFinishLaunchingWithOptions:)",J,{position:"tailBeforeLastReturn",indent:4})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\bRCTBridge\(delegate:/g,"reactDelegate.createBridge(delegate:");b=b.replace(/\bRCTRootView\(bridge:/g,"reactDelegate.createRootView(bridge:");b=b.replace(/\bUIViewController\(\)/g,"reactDelegate.createRootViewController()")}return b}S.updateModulesAppDelegateSwift=updateModulesAppDelegateSwift},53753:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updatePodfile=S.withIosModulesPodfile=void 0;const te=J(24456);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));const{getProjectName:oe}=te.IOSConfig.XcodeUtils;const withIosModulesPodfile=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let J=await re.default.promises.readFile(S,"utf8");const ee=oe(b.modRequest.projectRoot);J=updatePodfile(J,ee,b.sdkVersion);await re.default.promises.writeFile(S,J);return b}]);S.withIosModulesPodfile=withIosModulesPodfile;function updatePodfile(b,S,J){if(!b.match(/^require.+'expo\/package\.json.+scripts\/autolinking/m)){b=`require File.join(File.dirname(\`node --print "require.resolve('expo/package.json')"\`), "scripts/autolinking")\n${b}`}if(!b.match(/^\s*use_expo_modules!\s*$/m)){const J=new RegExp(`(^\\s*target\\s+['"]${S}['"]\\s+do\\s*$)`,"m");b=b.replace(J,"$1\n use_expo_modules!")}if(J&&ie.default.gte(J,"44.0.0")){if(!b.match(/\bexpo_patch_react_imports!\(installer\)\b/)){const S=/(\bpost_integrate do \|installer\|)/;if(b.match(S)){b=b.replace(S,`$1\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end`)}else{b=b.replace(/(\buse_expo_modules!\n)/gm,`$1 post_integrate do |installer|\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end\n end\n`)}}}return b}S.updatePodfile=updatePodfile},25823:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getDesignatedSwiftBridgingHeaderFileReference=S.withXCParseXcodeProject=S.withXCParseXcodeProjectBaseMod=void 0;const te=J(24456);const re=ee(J(57147));const ne=J(40504);const ie="xcparseXcodeproj";const withXCParseXcodeProjectBaseMod=b=>te.BaseMods.withGeneratedBaseMods(b,{platform:"ios",skipEmptyMod:false,providers:{[ie]:te.BaseMods.provider({getFilePath({modRequest:{projectRoot:b}}){return te.IOSConfig.Paths.getPBXProjectPath(b)},async read(b){const S=await re.default.promises.readFile(b,"utf8");const J=(0,ne.parse)(S);return J},async write(b,{modResults:S}){const J=(0,ne.build)(S);await re.default.promises.writeFile(b,J)}})}});S.withXCParseXcodeProjectBaseMod=withXCParseXcodeProjectBaseMod;const withXCParseXcodeProject=(b,S)=>(0,te.withMod)(b,{platform:"ios",mod:ie,action:S});S.withXCParseXcodeProject=withXCParseXcodeProject;function getDesignatedSwiftBridgingHeaderFileReference(b){var S;for(const J of Object.values((S=b.objects)!==null&&S!==void 0?S:{})){if(J.isa===ne.ISA.XCBuildConfiguration){const b=J;const S=b.buildSettings;if(typeof S.PRODUCT_NAME!=="undefined"&&typeof S.SWIFT_OBJC_BRIDGING_HEADER==="string"&&S.SWIFT_OBJC_BRIDGING_HEADER){return S.SWIFT_OBJC_BRIDGING_HEADER}}}return null}S.getDesignatedSwiftBridgingHeaderFileReference=getDesignatedSwiftBridgingHeaderFileReference},70026:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getVersionInfo=S.getLatestSdkVersion=S.getDefaultSdkVersion=S.ExpoVersionMappings=void 0;const te=ee(J(12753));const re=ee(J(92901));S.ExpoVersionMappings=[{expoSdkVersion:"48.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.71.0",androidAgpVersion:"7.4.1"},{expoSdkVersion:"47.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.70.0"},{expoSdkVersion:"46.0.0",iosDeploymentTarget:"12.4",reactNativeVersionRange:">= 0.69.0"},{expoSdkVersion:"45.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:">= 0.65.0"},{expoSdkVersion:"44.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"},{expoSdkVersion:"43.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"}];function getDefaultSdkVersion(b){const J=te.default.silent(b,"react-native/package.json");if(!J){throw new Error(`Unable to find react-native package - projectRoot[${b}]`)}const ee=require(J).version;const ne=S.ExpoVersionMappings.find((b=>re.default.satisfies(ee,b.reactNativeVersionRange)));if(!ne){throw new Error(`Unable to find compatible expo sdk version - reactNativeVersion[${ee}]`)}return ne}S.getDefaultSdkVersion=getDefaultSdkVersion;function getLatestSdkVersion(){return S.ExpoVersionMappings[0]}S.getLatestSdkVersion=getLatestSdkVersion;function getVersionInfo(b){var J;return(J=S.ExpoVersionMappings.find((S=>S.expoSdkVersion===b)))!==null&&J!==void 0?J:null}S.getVersionInfo=getVersionInfo},88139:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.installPodsAsync=S.installExpoPackageAsync=void 0;const ie=re(J(67754));const oe=ne(J(71017));const se=ne(J(92901));function installPackageNonInteractiveAsync(b,S){const J=ie.isUsingYarn(b);const ee=ie.createForProject(b);if(J){return ee.addWithParametersAsync([S],["--non-interactive"])}else{return ee.addAsync(S)}}async function installExpoPackageAsync(b,S){try{await installPackageNonInteractiveAsync(b,`expo@^${S}`)}catch{await installPackageNonInteractiveAsync(b,`expo@>=${S}-0 <${se.default.inc(S,"major")}`)}}S.installExpoPackageAsync=installExpoPackageAsync;async function installPodsAsync(b){const S=new ie.CocoaPodsPackageManager({cwd:oe.default.join(b,"ios")});await S.installAsync()}S.installPodsAsync=installPodsAsync},30443:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.normalizeProjectRoot=void 0;const te=ee(J(39491));const re=ee(J(14823));const ne=ee(J(71017));function findUpPackageJson(b){const S=re.default.sync("package.json",{cwd:b});(0,te.default)(S,`No package.json found for module "${b}"`);return S}function normalizeProjectRoot(b){return ne.default.dirname(findUpPackageJson(b!==null&&b!==void 0?b:process.cwd()))}S.normalizeProjectRoot=normalizeProjectRoot},39491:b=>{"use strict";b.exports=require("assert")},32081:b=>{"use strict";b.exports=require("child_process")},22057:b=>{"use strict";b.exports=require("constants")},6113:b=>{"use strict";b.exports=require("crypto")},9523:b=>{"use strict";b.exports=require("dns")},82361:b=>{"use strict";b.exports=require("events")},57147:b=>{"use strict";b.exports=require("fs")},98188:b=>{"use strict";b.exports=require("module")},22037:b=>{"use strict";b.exports=require("os")},71017:b=>{"use strict";b.exports=require("path")},14521:b=>{"use strict";b.exports=require("readline")},12781:b=>{"use strict";b.exports=require("stream")},71576:b=>{"use strict";b.exports=require("string_decoder")},39512:b=>{"use strict";b.exports=require("timers")},76224:b=>{"use strict";b.exports=require("tty")},57310:b=>{"use strict";b.exports=require("url")},73837:b=>{"use strict";b.exports=require("util")},71267:b=>{"use strict";b.exports=require("worker_threads")},19539:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isIdentifierChar=isIdentifierChar;S.isIdentifierName=isIdentifierName;S.isIdentifierStart=isIdentifierStart;let J="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let ee="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const te=new RegExp("["+J+"]");const re=new RegExp("["+J+ee+"]");J=ee=null;const ne=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191];const ie=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(b,S){let J=65536;for(let ee=0,te=S.length;ee<te;ee+=2){J+=S[ee];if(J>b)return false;J+=S[ee+1];if(J>=b)return true}return false}function isIdentifierStart(b){if(b<65)return b===36;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&te.test(String.fromCharCode(b))}return isInAstralSet(b,ne)}function isIdentifierChar(b){if(b<48)return b===36;if(b<58)return true;if(b<65)return false;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&re.test(String.fromCharCode(b))}return isInAstralSet(b,ne)||isInAstralSet(b,ie)}function isIdentifierName(b){let S=true;for(let J=0;J<b.length;J++){let ee=b.charCodeAt(J);if((ee&64512)===55296&&J+1<b.length){const S=b.charCodeAt(++J);if((S&64512)===56320){ee=65536+((ee&1023)<<10)+(S&1023)}}if(S){S=false;if(!isIdentifierStart(ee)){return false}}else if(!isIdentifierChar(ee)){return false}}return!S}},34679:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"isIdentifierChar",{enumerable:true,get:function(){return ee.isIdentifierChar}});Object.defineProperty(S,"isIdentifierName",{enumerable:true,get:function(){return ee.isIdentifierName}});Object.defineProperty(S,"isIdentifierStart",{enumerable:true,get:function(){return ee.isIdentifierStart}});Object.defineProperty(S,"isKeyword",{enumerable:true,get:function(){return te.isKeyword}});Object.defineProperty(S,"isReservedWord",{enumerable:true,get:function(){return te.isReservedWord}});Object.defineProperty(S,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return te.isStrictBindOnlyReservedWord}});Object.defineProperty(S,"isStrictBindReservedWord",{enumerable:true,get:function(){return te.isStrictBindReservedWord}});Object.defineProperty(S,"isStrictReservedWord",{enumerable:true,get:function(){return te.isStrictReservedWord}});var ee=J(19539);var te=J(60011)},60011:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isKeyword=isKeyword;S.isReservedWord=isReservedWord;S.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;S.isStrictBindReservedWord=isStrictBindReservedWord;S.isStrictReservedWord=isStrictReservedWord;const J={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const ee=new Set(J.keyword);const te=new Set(J.strict);const re=new Set(J.strictBind);function isReservedWord(b,S){return S&&b==="await"||b==="enum"}function isStrictReservedWord(b,S){return isReservedWord(b,S)||te.has(b)}function isStrictBindOnlyReservedWord(b){return re.has(b)}function isStrictBindReservedWord(b,S){return isStrictReservedWord(b,S)||isStrictBindOnlyReservedWord(b)}function isKeyword(b){return ee.has(b)}},40932:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=highlight;S.getChalk=getChalk;S.shouldHighlight=shouldHighlight;var ee=J(48035);var te=J(34679);var re=J(26870);const ne=new Set(["as","async","from","get","of","set"]);function getDefs(b){return{keyword:b.cyan,capitalized:b.yellow,jsxIdentifier:b.yellow,punctuator:b.yellow,number:b.magenta,string:b.green,regex:b.magenta,comment:b.grey,invalid:b.white.bgRed.bold}}const ie=/\r\n|[\n\r\u2028\u2029]/;const oe=/^[()[\]{}]$/;let se;{const b=/^[a-z][\w-]*$/i;const getTokenType=function(S,J,ee){if(S.type==="name"){if((0,te.isKeyword)(S.value)||(0,te.isStrictReservedWord)(S.value,true)||ne.has(S.value)){return"keyword"}if(b.test(S.value)&&(ee[J-1]==="<"||ee.slice(J-2,J)=="</")){return"jsxIdentifier"}if(S.value[0]!==S.value[0].toLowerCase()){return"capitalized"}}if(S.type==="punctuator"&&oe.test(S.value)){return"bracket"}if(S.type==="invalid"&&(S.value==="@"||S.value==="#")){return"punctuator"}return S.type};se=function*(b){let S;while(S=ee.default.exec(b)){const J=ee.matchToToken(S);yield{type:getTokenType(J,S.index,b),value:J.value}}}}function highlightTokens(b,S){let J="";for(const{type:ee,value:te}of se(S)){const S=b[ee];if(S){J+=te.split(ie).map((b=>S(b))).join("\n")}else{J+=te}}return J}function shouldHighlight(b){return!!re.supportsColor||b.forceColor}function getChalk(b){return b.forceColor?new re.constructor({enabled:true,level:1}):re}function highlight(b,S={}){if(b!==""&&shouldHighlight(S)){const J=getChalk(S);const ee=getDefs(J);return highlightTokens(ee,b)}else{return b}}},55462:b=>{"use strict";b.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},92610:b=>{"use strict";b.exports={i8:"3.20.0"}},4147:b=>{"use strict";b.exports=JSON.parse('{"name":"install-expo-modules","version":"0.5.1","description":"Tools to install expo-modules for existing react-native projects","main":"build","scripts":{"watch":"tsc --watch --preserveWatchOutput","watch:ncc":"yarn run build -w","build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"yarn run clean && yarn run build:prod","clean":"rimraf build ./tsconfig.tsbuildinfo","lint":"eslint .","test":"jest"},"bin":{"install-expo-modules":"./build/index.js"},"repository":{"type":"git","url":"https://github.com/expo/expo-cli.git","directory":"packages/install-expo-modules"},"keywords":["expo","expo-modules","npx","react-native","react"],"license":"MIT","bugs":{"url":"https://github.com/expo/expo-cli/issues"},"homepage":"https://github.com/expo/expo-cli/tree/main/packages/install-expo-modules#readme","files":["build","!*/__tests__/*"],"dependencies":{"@expo/config":"6.0.24","@expo/config-plugins":"4.1.5","@expo/package-manager":"0.0.56","chalk":"^4.1.2","commander":"2.20.0","find-up":"^5.0.0","glob":"7.1.6","prompts":"^2.3.2","resolve-from":"^5.0.0","semver":"7.3.2","xcparse":"^0.0.3"},"devDependencies":{"@types/prompts":"^2.0.6","@types/semver":"^6.0.0"},"publishConfig":{"access":"public"}}')}};var S={};function __nccwpck_require__(J){var ee=S[J];if(ee!==undefined){return ee.exports}var te=S[J]={id:J,loaded:false,exports:{}};var re=true;try{b[J].call(te.exports,te,te.exports,__nccwpck_require__);re=false}finally{if(re)delete S[J]}te.loaded=true;return te.exports}(()=>{__nccwpck_require__.nmd=b=>{b.paths=[];if(!b.children)b.children=[];return b}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var J=__nccwpck_require__(2855);module.exports=J})();
|