pod-install 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/build/index.js +2 -2
  2. package/package.json +3 -4
package/build/index.js CHANGED
@@ -39,7 +39,7 @@ const r=n(3837);const i=n(1861);const isObject=e=>e!==null&&typeof e==="object"&
39
39
  * Copyright (c) 2014-present, Jon Schlinkert.
40
40
  * Released under the MIT License.
41
41
  */
42
- e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},1917:(e,t,n)=>{var r=n(1161);var i=n(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(6073);e.exports.Schema=n(1082);e.exports.FAILSAFE_SCHEMA=n(8562);e.exports.JSON_SCHEMA=n(1035);e.exports.CORE_SCHEMA=n(2011);e.exports.DEFAULT_SCHEMA=n(8759);e.exports.load=r.load;e.exports.loadAll=r.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=n(8179);e.exports.types={binary:n(7900),float:n(2705),map:n(6150),null:n(721),pairs:n(6860),set:n(9548),timestamp:n(9212),bool:n(4993),int:n(1615),merge:n(6104),omap:n(9046),seq:n(7283),str:n(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var n,r,i,o;if(t){o=Object.keys(t);for(n=0,r=o.length;n<r;n+=1){i=o[n];e[i]=t[i]}}return e}function repeat(e,t){var n="",r;for(r=0;r<t;r+=1){n+=e}return n}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},8866:(e,t,n)=>{var r=n(6829);var i=n(8179);var o=n(8759);var s=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var l=65279;var c=9;var u=10;var f=13;var p=32;var d=33;var h=34;var g=35;var m=37;var y=38;var _=39;var b=42;var A=44;var v=45;var w=58;var E=61;var C=62;var x=63;var O=64;var k=91;var S=93;var R=96;var $=123;var P=124;var I=125;var T={};T[0]="\\0";T[7]="\\a";T[8]="\\b";T[9]="\\t";T[10]="\\n";T[11]="\\v";T[12]="\\f";T[13]="\\r";T[27]="\\e";T[34]='\\"';T[92]="\\\\";T[133]="\\N";T[160]="\\_";T[8232]="\\L";T[8233]="\\P";var L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var M=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var n,r,i,o,s,l,c;if(t===null)return{};n={};r=Object.keys(t);for(i=0,o=r.length;i<o;i+=1){s=r[i];l=String(t[s]);if(s.slice(0,2)==="!!"){s="tag:yaml.org,2002:"+s.slice(2)}c=e.compiledTypeMap["fallback"][s];if(c&&a.call(c.styleAliases,l)){l=c.styleAliases[l]}n[s]=l}return n}function encodeHex(e){var t,n,o;t=e.toString(16).toUpperCase();if(e<=255){n="x";o=2}else if(e<=65535){n="u";o=4}else if(e<=4294967295){n="U";o=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+r.repeat("0",o-t.length)+t}var H=1,N=2;function State(e){this.schema=e["schema"]||o;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=r.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?N:H;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var n=r.repeat(" ",t),i=0,o=-1,s="",a,l=e.length;while(i<l){o=e.indexOf("\n",i);if(o===-1){a=e.slice(i);i=l}else{a=e.slice(i,o+1);i=o+1}if(a.length&&a!=="\n")s+=n;s+=a}return s}function generateNextLine(e,t){return"\n"+r.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===p||e===c}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==l&&e!==f&&e!==u}function isPlainSafe(e,t,n){var r=isNsCharOrWhitespace(e);var i=r&&!isWhitespace(e);return(n?r:r&&e!==A&&e!==k&&e!==S&&e!==$&&e!==I)&&e!==g&&!(t===w&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===w&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==l&&!isWhitespace(e)&&e!==v&&e!==x&&e!==w&&e!==A&&e!==k&&e!==S&&e!==$&&e!==I&&e!==g&&e!==y&&e!==b&&e!==d&&e!==P&&e!==E&&e!==C&&e!==_&&e!==h&&e!==m&&e!==O&&e!==R}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==w}function codePointAt(e,t){var n=e.charCodeAt(t),r;if(n>=55296&&n<=56319&&t+1<e.length){r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var j=1,F=2,B=3,D=4,U=5;function chooseScalarStyle(e,t,n,r,i,o,s,a){var l;var c=0;var f=null;var p=false;var d=false;var h=r!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s){for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(!isPrintable(c)){return U}m=m&&isPlainSafe(c,f,a);f=c}}else{for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(c===u){p=true;if(h){d=d||l-g-1>r&&e[g+1]!==" ";g=l}}else if(!isPrintable(c)){return U}m=m&&isPlainSafe(c,f,a);f=c}d=d||h&&(l-g-1>r&&e[g+1]!==" ")}if(!p&&!d){if(m&&!s&&!i(e)){return j}return o===N?U:F}if(n>9&&needIndentIndicator(e)){return U}if(!s){return d?D:B}return o===N?U:F}function writeScalar(e,t,n,r,o){e.dump=function(){if(t.length===0){return e.quotingType===N?'""':"''"}if(!e.noCompatMode){if(L.indexOf(t)!==-1||M.test(t)){return e.quotingType===N?'"'+t+'"':"'"+t+"'"}}var s=e.indent*Math.max(1,n);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var l=r||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,l,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!r,o)){case j:return t;case F:return"'"+t.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,s));case D:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),s));case U:return'"'+escapeString(t,a)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":r?"":"-";return n+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return foldLine(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var s;while(s=n.exec(e)){var a=s[1],l=s[2];o=l[0]===" ";r+=a+(!i&&!o&&l!==""?"\n":"")+foldLine(l,t);i=o}return r}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,o,s=0,a=0;var l="";while(r=n.exec(e)){a=r.index;if(a-i>t){o=s>i?s:a;l+="\n"+e.slice(i,o);i=o+1}s=a}l+="\n";if(e.length-i>t&&s>i){l+=e.slice(i,s)+"\n"+e.slice(s+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var t="";var n=0;var r;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=codePointAt(e,i);r=T[n];if(!r&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var r="",i=e.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1){a=n[o];if(e.replacer){a=e.replacer.call(n,String(o),a)}if(writeNode(e,t,a,false,false)||typeof a==="undefined"&&writeNode(e,t,null,false,false)){if(r!=="")r+=","+(!e.condenseFlow?" ":"");r+=e.dump}}e.tag=i;e.dump="["+r+"]"}function writeBlockSequence(e,t,n,r){var i="",o=e.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1){l=n[s];if(e.replacer){l=e.replacer.call(n,String(s),l)}if(writeNode(e,t+1,l,true,true,false,true)||typeof l==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!r||i!==""){i+=generateNextLine(e,t)}if(e.dump&&u===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=o;e.dump=i||"[]"}function writeFlowMapping(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1){u="";if(r!=="")u+=", ";if(e.condenseFlow)u+='"';l=o[s];c=n[l];if(e.replacer){c=e.replacer.call(n,l,c)}if(!writeNode(e,t,l,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}u+=e.dump;r+=u}e.tag=i;e.dump="{"+r+"}"}function writeBlockMapping(e,t,n,r){var o="",s=e.tag,a=Object.keys(n),l,c,f,p,d,h;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,c=a.length;l<c;l+=1){h="";if(!r||o!==""){h+=generateNextLine(e,t)}f=a[l];p=n[f];if(e.replacer){p=e.replacer.call(n,f,p)}if(!writeNode(e,t+1,f,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&u===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,d)){continue}if(e.dump&&u===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;o+=h}e.tag=s;e.dump=o||"{}"}function detectType(e,t,n){var r,o,l,c,u,f;o=n?e.explicitTypes:e.implicitTypes;for(l=0,c=o.length;l<c;l+=1){u=o[l];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t==="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(n){if(u.multi&&u.representName){e.tag=u.representName(t)}else{e.tag=u.tag}}else{e.tag="?"}if(u.represent){f=e.styleMap[u.tag]||u.defaultStyle;if(s.call(u.represent)==="[object Function]"){r=u.represent(t,f)}else if(a.call(u.represent,f)){r=u.represent[f](t,f)}else{throw new i("!<"+u.tag+'> tag resolver accepts not "'+f+'" style')}e.dump=r}return true}}return false}function writeNode(e,t,n,r,o,a,l){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var c=s.call(e.dump);var u=r;var f;if(r){r=e.flowLevel<0||e.flowLevel>t}var p=c==="[object Object]"||c==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(n);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){o=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(c==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!l&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,u)}}else if(c==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],r=[],i,o;inspectNode(e,n,r);for(i=0,o=r.length;i<o;i+=1){t.duplicates.push(n[r[i]])}t.usedDuplicates=new Array(o)}function inspectNode(e,t,n){var r,i,o;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,o=e.length;i<o;i+=1){inspectNode(e[i],t,n)}}else{r=Object.keys(e);for(i=0,o=r.length;i<o;i+=1){inspectNode(e[r[i]],t,n)}}}}}function dump(e,t){t=t||{};var n=new State(t);if(!n.noRefs)getDuplicateReferences(e,n);var r=e;if(n.replacer){r=n.replacer.call({"":r},"",r)}if(writeNode(n,0,r,true,true))return n.dump+"\n";return""}e.exports.dump=dump},8179:e=>{function formatError(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,n)=>{var r=n(6829);var i=n(8179);var o=n(6975);var s=n(8759);var a=Object.prototype.hasOwnProperty;var l=1;var c=2;var u=3;var f=4;var p=1;var d=2;var h=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var _=/^(?:!|!!|![a-z\-]+!)$/i;var b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var A=new Array(256);var v=new Array(256);for(var w=0;w<256;w++){A[w]=simpleEscapeSequence(w)?1:0;v[w]=simpleEscapeSequence(w)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||s;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=o(n);return new i(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var E={YAML:function handleYamlDirective(e,t,n){var r,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(r===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(r[1],10);o=parseInt(r[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var r,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}r=n[0];i=n[1];if(!_.test(r)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,r)){throwError(e,'there is a previously declared suffix for "'+r+'" tag handle')}if(!b.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function captureSegment(e,t,n,r){var i,o,s,a;if(t<n){a=e.input.slice(t,n);if(r){for(i=0,o=a.length;i<o;i+=1){s=a.charCodeAt(i);if(!(s===9||32<=s&&s<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(a)){throwError(e,"the stream contains non-printable characters")}e.result+=a}}function mergeMappings(e,t,n,i){var o,s,l,c;if(!r.isObject(n)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}o=Object.keys(n);for(l=0,c=o.length;l<c;l+=1){s=o[l];if(!a.call(t,s)){t[s]=n[s];i[s]=true}}}function storeMappingPair(e,t,n,r,i,o,s,l,c){var u,f;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(u=0,f=i.length;u<f;u+=1){if(Array.isArray(i[u])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[u])==="[object Object]"){i[u]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(r==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(u=0,f=o.length;u<f;u+=1){mergeMappings(e,t,o[u],n)}}else{mergeMappings(e,t,o,n)}}else{if(!e.json&&!a.call(n,i)&&a.call(t,i)){e.line=s||e.line;e.lineStart=l||e.lineStart;e.position=c||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:o})}else{t[i]=o}delete n[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,n){var r=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);r++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&r!==0&&e.lineIndent<n){throwWarning(e,"deficient indentation")}return r}function testDocumentSeparator(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||is_WS_OR_EOL(n)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=r.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var r,i,o,s,a,l,c,u,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=s=e.position;a=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(r)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){l=e.line;c=e.lineStart;u=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=l;e.lineStart=c;e.lineIndent=u;break}}if(a){captureSegment(e,o,s,false);writeFoldedLines(e,e.line-l);o=s=e.position;a=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,r,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,r,i,o,s,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,n,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&A[a]){e.result+=v[a];e.position++}else if((s=escapedHexLen(a))>0){i=s;o=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((s=fromHexCode(a))>=0){o=(o<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}n=r=e.position}else if(is_EOL(a)){captureSegment(e,n,r,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,r,i,o,s=e.tag,a,c=e.anchor,u,f,p,d,h,g=Object.create(null),m,y,_,b;b=e.input.charCodeAt(e.position);if(b===91){f=93;h=false;a=[]}else if(b===123){f=125;h=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===f){e.position++;e.tag=s;e.anchor=c;e.kind=h?"mapping":"sequence";e.result=a;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}y=m=_=null;p=d=false;if(b===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){p=d=true;e.position++;skipSeparationSpace(e,true,t)}}r=e.line;i=e.lineStart;o=e.position;composeNode(e,t,l,false,true);y=e.tag;m=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((d||e.line===r)&&b===58){p=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,l,false,true);_=e.result}if(h){storeMappingPair(e,a,g,y,m,_,r,i,o)}else if(p){a.push(storeMappingPair(e,null,g,y,m,_,r,i,o))}else{a.push(m)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){n=true;b=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o=p,s=false,a=false,l=t,c=0,u=false,f,g;g=e.input.charCodeAt(e.position);if(g===124){i=false}else if(g===62){i=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===o){o=g===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(g))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){l=t+f-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!a||e.lineIndent<l)&&g===32){e.lineIndent++;g=e.input.charCodeAt(++e.position)}if(!a&&e.lineIndent>l){l=e.lineIndent}if(is_EOL(g)){c++;continue}if(e.lineIndent<l){if(o===h){e.result+=r.repeat("\n",s?1+c:c)}else if(o===p){if(s){e.result+="\n"}}break}if(i){if(is_WHITE_SPACE(g)){u=true;e.result+=r.repeat("\n",s?1+c:c)}else if(u){u=false;e.result+=r.repeat("\n",c+1)}else if(c===0){if(s){e.result+=" "}}else{e.result+=r.repeat("\n",c)}}else{e.result+=r.repeat("\n",s?1+c:c)}s=true;a=true;c=0;n=e.position;while(!is_EOL(g)&&g!==0){g=e.input.charCodeAt(++e.position)}captureSegment(e,n,e.position,false)}return true}function readBlockSequence(e,t){var n,r=e.tag,i=e.anchor,o=[],s,a=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=o}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(l!==45){break}s=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(s)){break}a=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){o.push(null);l=e.input.charCodeAt(e.position);continue}}n=e.line;composeNode(e,t,u,false,true);o.push(e.result);skipSeparationSpace(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(a){e.tag=r;e.anchor=i;e.kind="sequence";e.result=o;return true}return false}function readBlockMapping(e,t,n){var r,i,o,s,a,l,u=e.tag,p=e.anchor,d={},h=Object.create(null),g=null,m=null,y=null,_=false,b=false,A;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}A=e.input.charCodeAt(e.position);while(A!==0){if(!_&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}r=e.input.charCodeAt(e.position+1);o=e.line;if((A===63||A===58)&&is_WS_OR_EOL(r)){if(A===63){if(_){storeMappingPair(e,d,h,g,m,null,s,a,l);g=m=y=null}b=true;_=true;i=true}else if(_){_=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;A=r}else{s=e.line;a=e.lineStart;l=e.position;if(!composeNode(e,n,c,false,true)){break}if(e.line===o){A=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(A)){A=e.input.charCodeAt(++e.position)}if(A===58){A=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(A)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(_){storeMappingPair(e,d,h,g,m,null,s,a,l);g=m=y=null}b=true;_=false;i=false;g=e.tag;m=e.result}else if(b){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=u;e.anchor=p;return true}}else if(b){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=u;e.anchor=p;return true}}if(e.line===o||e.lineIndent>t){if(_){s=e.line;a=e.lineStart;l=e.position}if(composeNode(e,t,f,true,i)){if(_){m=e.result}else{y=e.result}}if(!_){storeMappingPair(e,d,h,g,m,y,s,a,l);g=m=y=null}skipSeparationSpace(e,true,-1);A=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&A!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(_){storeMappingPair(e,d,h,g,m,null,s,a,l)}if(b){e.tag=u;e.anchor=p;e.kind="mapping";e.result=d}return b}function readTagProperty(e){var t,n=false,r=false,i,o,s;s=e.input.charCodeAt(e.position);if(s!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}s=e.input.charCodeAt(++e.position);if(s===60){n=true;s=e.input.charCodeAt(++e.position)}else if(s===33){r=true;i="!!";s=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&s!==62);if(e.position<e.length){o=e.input.slice(t,e.position);s=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(s!==0&&!is_WS_OR_EOL(s)){if(s===33){if(!r){i=e.input.slice(t-1,e.position+1);if(!_.test(i)){throwError(e,"named tag handle cannot contain such characters")}r=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}s=e.input.charCodeAt(++e.position)}o=e.input.slice(t,e.position);if(y.test(o)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(o&&!b.test(o)){throwError(e,"tag name cannot contain such characters: "+o)}try{o=decodeURIComponent(o)}catch(t){throwError(e,"tag name is malformed: "+o)}if(n){e.tag=o}else if(a.call(e.tagMap,i)){e.tag=e.tagMap[i]+o}else if(i==="!"){e.tag="!"+o}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+o}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,n,r;r=e.input.charCodeAt(e.position);if(r!==42)return false;r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!a.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,n,r,i){var o,s,p,d=1,h=false,g=false,m,y,_,b,A,v;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;o=s=p=f===n||u===n;if(r){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;p=o;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{p=false}}}if(p){p=h||i}if(d===1||f===n){if(l===n||c===n){A=t}else{A=t+1}v=e.position-e.lineStart;if(d===1){if(p&&(readBlockSequence(e,v)||readBlockMapping(e,v,A))||readFlowCollection(e,A)){g=true}else{if(s&&readBlockScalar(e,A)||readSingleQuotedScalar(e,A)||readDoubleQuotedScalar(e,A)){g=true}else if(readAlias(e)){g=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,A,l===n)){g=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){g=p&&readBlockSequence(e,v)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,y=e.implicitTypes.length;m<y;m+=1){b=e.implicitTypes[m];if(b.resolve(e.result)){e.result=b.construct(e.result);e.tag=b.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(a.call(e.typeMap[e.kind||"fallback"],e.tag)){b=e.typeMap[e.kind||"fallback"][e.tag]}else{b=null;_=e.typeMap.multi[e.kind||"fallback"];for(m=0,y=_.length;m<y;m+=1){if(e.tag.slice(0,_[m].tag.length)===_[m].tag){b=_[m];break}}}if(!b){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&b.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,n,r,i,o=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}o=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(E,r)){E[r](e,r,i)}else{throwWarning(e,'unknown document directive "'+r+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new State(e,t);var r=e.indexOf("\0");if(r!==-1){n.position=r;throwError(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){readDocument(n)}return n.documents}function loadAll(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var r=loadDocuments(e,n);if(typeof t!=="function"){return r}for(var i=0,o=r.length;i<o;i+=1){t(r[i])}}function load(e,t){var n=loadDocuments(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new i("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},1082:(e,t,n)=>{var r=n(8179);var i=n(6073);function compileList(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}}));n[t]=e}));return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var n=[];if(e instanceof i){n.push(e)}else if(Array.isArray(e)){n=n.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)n=n.concat(e.explicit)}else{throw new r("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof i)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));n.forEach((function(e){if(!(e instanceof i)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var o=Object.create(Schema.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(n);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};e.exports=Schema},2011:(e,t,n)=>{e.exports=n(1035)},8759:(e,t,n)=>{e.exports=n(2011).extend({implicit:[n(9212),n(6104)],explicit:[n(7900),n(9046),n(6860),n(9548)]})},8562:(e,t,n)=>{var r=n(1082);e.exports=new r({explicit:[n(3619),n(7283),n(6150)]})},1035:(e,t,n)=>{e.exports=n(8562).extend({implicit:[n(721),n(4993),n(1615),n(2705)]})},6975:(e,t,n)=>{var r=n(6829);function getLine(e,t,n,r,i){var o="";var s="";var a=Math.floor(i/2)-1;if(r-t>a){o=" ... ";t=r-a+o.length}if(n-r>a){s=" ...";n=r+a-s.length}return{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function padStart(e,t){return r.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var i=[0];var o=[];var s;var a=-1;while(s=n.exec(e.buffer)){o.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&a<0){a=i.length-2}}if(a<0)a=i.length-1;var l="",c,u;var f=Math.min(e.line+t.linesAfter,o.length).toString().length;var p=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore;c++){if(a-c<0)break;u=getLine(e.buffer,i[a-c],o[a-c],e.position-(i[a]-i[a-c]),p);l=r.repeat(" ",t.indent)+padStart((e.line-c+1).toString(),f)+" | "+u.str+"\n"+l}u=getLine(e.buffer,i[a],o[a],e.position,p);l+=r.repeat(" ",t.indent)+padStart((e.line+1).toString(),f)+" | "+u.str+"\n";l+=r.repeat("-",t.indent+f+3+u.pos)+"^"+"\n";for(c=1;c<=t.linesAfter;c++){if(a+c>=o.length)break;u=getLine(e.buffer,i[a+c],o[a+c],e.position-(i[a]-i[a+c]),p);l+=r.repeat(" ",t.indent)+padStart((e.line+c+1).toString(),f)+" | "+u.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,t,n)=>{var r=n(8179);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(i.indexOf(t)===-1){throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,t,n)=>{var r=n(6073);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,n,r=0,o=e.length,s=i;for(n=0;n<o;n++){t=s.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;r+=6}return r%8===0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,s=i,a=0,l=[];for(t=0;t<o;t++){if(t%4===0&&t){l.push(a>>16&255);l.push(a>>8&255);l.push(a&255)}a=a<<6|s.indexOf(r.charAt(t))}n=o%4*6;if(n===0){l.push(a>>16&255);l.push(a>>8&255);l.push(a&255)}else if(n===18){l.push(a>>10&255);l.push(a>>2&255)}else if(n===12){l.push(a>>4&255)}return new Uint8Array(l)}function representYamlBinary(e){var t="",n=0,r,o,s=e.length,a=i;for(r=0;r<s;r++){if(r%3===0&&r){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}n=(n<<8)+e[r]}o=s%3;if(o===0){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}else if(o===2){t+=a[n>>10&63];t+=a[n>>4&63];t+=a[n<<2&63];t+=a[64]}else if(o===1){t+=a[n>>2&63];t+=a[n<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,t,n)=>{var r=n(6073);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2705:(e,t,n)=>{var r=n(6829);var i=n(6073);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(r.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,t,n)=>{var r=n(6829);var i=n(6073);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;r=true}return r&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isHexCode(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isOctCode(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isDecCode(e.charCodeAt(n))){return false}r=true}if(!r||i==="_")return false;return true}function constructYamlInteger(e){var t=e,n=1,r;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}r=t[0];if(r==="-"||r==="+"){if(r==="-")n=-1;t=t.slice(1);r=t[0]}if(t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,t,n)=>{var r=n(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,t,n)=>{var r=n(6073);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,t,n)=>{var r=n(6073);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,r,s,a,l,c=e;for(n=0,r=c.length;n<r;n+=1){s=c[n];l=false;if(o.call(s)!=="[object Object]")return false;for(a in s){if(i.call(s,a)){if(!l)l=true;else return false}}if(!l)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(e,t,n)=>{var r=n(6073);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,r,o,s,a=e;s=new Array(a.length);for(t=0,n=a.length;t<n;t+=1){r=a[t];if(i.call(r)!=="[object Object]")return false;o=Object.keys(r);if(o.length!==1)return false;s[t]=[o[0],r[o[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,n,r,i,o,s=e;o=new Array(s.length);for(t=0,n=s.length;t<n;t+=1){r=s[t];i=Object.keys(r);o[t]=[i[0],r[i[0]]]}return o}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,t,n)=>{var r=n(6073);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(i.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,t,n)=>{var r=n(6073);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,r,s,a,l,c,u=0,f=null,p,d,h;t=i.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,s))}a=+t[4];l=+t[5];c=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){p=+t[10];d=+(t[11]||0);f=(p*60+d)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(n,r,s,a,l,c,u));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(e,t,n)=>{const r=n(3837);const i=n(610);const o=n(8569);const s=n(479);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,n)=>{t=[].concat(t);e=[].concat(e);let r=new Set;let i=new Set;let s=new Set;let a=0;let onResult=e=>{s.add(e.output);if(n&&n.onResult){n.onResult(e)}};for(let s=0;s<t.length;s++){let l=o(String(t[s]),{...n,onResult:onResult},true);let c=l.state.negated||l.state.negatedExtglob;if(c)a++;for(let t of e){let e=l(t,true);let n=c?!e.isMatch:e.isMatch;if(!n)continue;if(c){r.add(e.output)}else{r.delete(e.output);i.add(e.output)}}}let l=a===t.length?[...s]:[...i];let c=l.filter((e=>!r.has(e)));if(n&&c.length===0){if(n.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(n.nonull===true||n.nullglob===true){return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return c};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,n)=>o(t,n)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set;let i=[];let onResult=e=>{if(n.onResult)n.onResult(e);i.push(e.output)};let o=new Set(micromatch(e,t,{...n,onResult:onResult}));for(let e of i){if(!o.has(e)){r.add(e)}}return[...r]};micromatch.contains=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,n)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...n,contains:true})};micromatch.matchKeys=(e,t,n)=>{if(!s.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let r=micromatch(Object.keys(e),t,n);let i={};for(let t of r)i[t]=e[t];return i};micromatch.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(r.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(!r.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}return[].concat(t).every((t=>o(t,n)(e)))};micromatch.capture=(e,t,n)=>{let r=s.isWindows(n);let i=o.makeRe(String(e),{...n,capture:true});let a=i.exec(r?s.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[])){for(let e of i(String(r),t)){n.push(o.parse(e,t))}}return n};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return i(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},8569:(e,t,n)=>{e.exports=n(3322)},6099:(e,t,n)=>{const r=n(1017);const i="\\\\/";const o=`[^${i}]`;const s="\\.";const a="\\+";const l="\\?";const c="\\/";const u="(?=.)";const f="[^/]";const p=`(?:${c}|$)`;const d=`(?:^|${c})`;const h=`${s}{1,2}${p}`;const g=`(?!${s})`;const m=`(?!${d}${h})`;const y=`(?!${s}{0,1}${p})`;const _=`(?!${h})`;const b=`[^.${c}]`;const A=`${f}*?`;const v={DOT_LITERAL:s,PLUS_LITERAL:a,QMARK_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:u,QMARK:f,END_ANCHOR:p,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK_NO_DOT:b,STAR:A,START_ANCHOR:d};const w={...v,SLASH_LITERAL:`[${i}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${s}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${i}])${s}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,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:r.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?w:v}}},2139:(e,t,n)=>{const r=n(6099);const i=n(479);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=r;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return n};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=c[e]||e;const n={...t};const u=typeof n.maxLength==="number"?Math.min(o,n.maxLength):o;let f=e.length;if(f>u){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${u}`)}const p={type:"bos",value:"",output:n.prepend||""};const d=[p];const h=n.capture?"":"?:";const g=i.isWindows(t);const m=r.globChars(g);const y=r.extglobChars(m);const{DOT_LITERAL:_,PLUS_LITERAL:b,SLASH_LITERAL:A,ONE_CHAR:v,DOTS_SLASH:w,NO_DOT:E,NO_DOT_SLASH:C,NO_DOTS_SLASH:x,QMARK:O,QMARK_NO_DOT:k,STAR:S,START_ANCHOR:R}=m;const globstar=e=>`(${h}(?:(?!${R}${e.dot?w:_}).)*?)`;const $=n.dot?"":E;const P=n.dot?O:k;let I=n.bash===true?globstar(n):S;if(n.capture){I=`(${I})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const T={input:e,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:d};e=i.removePrefix(e,T);f=e.length;const L=[];const M=[];const H=[];let N=p;let j;const eos=()=>T.index===f-1;const F=T.peek=(t=1)=>e[T.index+t];const B=T.advance=()=>e[++T.index]||"";const remaining=()=>e.slice(T.index+1);const consume=(e="",t=0)=>{T.consumed+=e;T.index+=t};const append=e=>{T.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(F()==="!"&&(F(2)!=="("||F(3)==="?")){B();T.start++;e++}if(e%2===0){return false}T.negated=true;T.start++;return true};const increment=e=>{T[e]++;H.push(e)};const decrement=e=>{T[e]--;H.pop()};const push=e=>{if(N.type==="globstar"){const t=T.braces>0&&(e.type==="comma"||e.type==="brace");const n=e.extglob===true||L.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!n){T.output=T.output.slice(0,-N.output.length);N.type="star";N.value="*";N.output=I;T.output+=N.output}}if(L.length&&e.type!=="paren"){L[L.length-1].inner+=e.value}if(e.value||e.output)append(e);if(N&&N.type==="text"&&e.type==="text"){N.value+=e.value;N.output=(N.output||"")+e.value;return}e.prev=N;d.push(e);N=e};const extglobOpen=(e,t)=>{const r={...y[t],conditions:1,inner:""};r.prev=N;r.parens=T.parens;r.output=T.output;const i=(n.capture?"(":"")+r.open;increment("parens");push({type:e,value:t,output:T.output?"":v});push({type:"paren",extglob:true,value:B(),output:i});L.push(r)};const extglobClose=e=>{let r=e.close+(n.capture?")":"");let i;if(e.type==="negate"){let o=I;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(n)}if(o!==I||eos()||/^\)+$/.test(remaining())){r=e.close=`)$))${o}`}if(e.inner.includes("*")&&(i=remaining())&&/^\.[^\\/.]+$/.test(i)){const n=parse(i,{...t,fastpaths:false}).output;r=e.close=`)${n})${o})`}if(e.prev.type==="bos"){T.negatedExtglob=true}}push({type:"paren",extglob:true,value:j,output:r});decrement("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=false;let o=e.replace(l,((e,t,n,i,o,s)=>{if(i==="\\"){r=true;return e}if(i==="?"){if(t){return t+i+(o?O.repeat(o.length):"")}if(s===0){return P+(o?O.repeat(o.length):"")}return O.repeat(n.length)}if(i==="."){return _.repeat(n.length)}if(i==="*"){if(t){return t+i+(o?I:"")}return I}return t?e:`\\${e}`}));if(r===true){if(n.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&n.contains===true){T.output=e;return T}T.output=i.wrapOutput(o,T,t);return T}while(!eos()){j=B();if(j==="\0"){continue}if(j==="\\"){const e=F();if(e==="/"&&n.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){j+="\\";push({type:"text",value:j});continue}const t=/^\\+/.exec(remaining());let r=0;if(t&&t[0].length>2){r=t[0].length;T.index+=r;if(r%2!==0){j+="\\"}}if(n.unescape===true){j=B()}else{j+=B()}if(T.brackets===0){push({type:"text",value:j});continue}}if(T.brackets>0&&(j!=="]"||N.value==="["||N.value==="[^")){if(n.posix!==false&&j===":"){const e=N.value.slice(1);if(e.includes("[")){N.posix=true;if(e.includes(":")){const e=N.value.lastIndexOf("[");const t=N.value.slice(0,e);const n=N.value.slice(e+2);const r=s[n];if(r){N.value=t+r;T.backtrack=true;B();if(!p.output&&d.indexOf(N)===1){p.output=v}continue}}}}if(j==="["&&F()!==":"||j==="-"&&F()==="]"){j=`\\${j}`}if(j==="]"&&(N.value==="["||N.value==="[^")){j=`\\${j}`}if(n.posix===true&&j==="!"&&N.value==="["){j="^"}N.value+=j;append({value:j});continue}if(T.quotes===1&&j!=='"'){j=i.escapeRegex(j);N.value+=j;append({value:j});continue}if(j==='"'){T.quotes=T.quotes===1?0:1;if(n.keepQuotes===true){push({type:"text",value:j})}continue}if(j==="("){increment("parens");push({type:"paren",value:j});continue}if(j===")"){if(T.parens===0&&n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=L[L.length-1];if(e&&T.parens===e.parens+1){extglobClose(L.pop());continue}push({type:"paren",value:j,output:T.parens?")":"\\)"});decrement("parens");continue}if(j==="["){if(n.nobracket===true||!remaining().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}j=`\\${j}`}else{increment("brackets")}push({type:"bracket",value:j});continue}if(j==="]"){if(n.nobracket===true||N&&N.type==="bracket"&&N.value.length===1){push({type:"text",value:j,output:`\\${j}`});continue}if(T.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:j,output:`\\${j}`});continue}decrement("brackets");const e=N.value.slice(1);if(N.posix!==true&&e[0]==="^"&&!e.includes("/")){j=`/${j}`}N.value+=j;append({value:j});if(n.literalBrackets===false||i.hasRegexChars(e)){continue}const t=i.escapeRegex(N.value);T.output=T.output.slice(0,-N.value.length);if(n.literalBrackets===true){T.output+=t;N.value=t;continue}N.value=`(${h}${t}|${N.value})`;T.output+=N.value;continue}if(j==="{"&&n.nobrace!==true){increment("braces");const e={type:"brace",value:j,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};M.push(e);push(e);continue}if(j==="}"){const e=M[M.length-1];if(n.nobrace===true||!e){push({type:"text",value:j,output:j});continue}let t=")";if(e.dots===true){const e=d.slice();const r=[];for(let t=e.length-1;t>=0;t--){d.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=expandRange(r,n);T.backtrack=true}if(e.comma!==true&&e.dots!==true){const n=T.output.slice(0,e.outputIndex);const r=T.tokens.slice(e.tokensIndex);e.value=e.output="\\{";j=t="\\}";T.output=n;for(const e of r){T.output+=e.output||e.value}}push({type:"brace",value:j,output:t});decrement("braces");M.pop();continue}if(j==="|"){if(L.length>0){L[L.length-1].conditions++}push({type:"text",value:j});continue}if(j===","){let e=j;const t=M[M.length-1];if(t&&H[H.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:j,output:e});continue}if(j==="/"){if(N.type==="dot"&&T.index===T.start+1){T.start=T.index+1;T.consumed="";T.output="";d.pop();N=p;continue}push({type:"slash",value:j,output:A});continue}if(j==="."){if(T.braces>0&&N.type==="dot"){if(N.value===".")N.output=_;const e=M[M.length-1];N.type="dots";N.output+=j;N.value+=j;e.dots=true;continue}if(T.braces+T.parens===0&&N.type!=="bos"&&N.type!=="slash"){push({type:"text",value:j,output:_});continue}push({type:"dot",value:j,output:_});continue}if(j==="?"){const e=N&&N.value==="(";if(!e&&n.noextglob!==true&&F()==="("&&F(2)!=="?"){extglobOpen("qmark",j);continue}if(N&&N.type==="paren"){const e=F();let t=j;if(e==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(N.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${j}`}push({type:"text",value:j,output:t});continue}if(n.dot!==true&&(N.type==="slash"||N.type==="bos")){push({type:"qmark",value:j,output:k});continue}push({type:"qmark",value:j,output:O});continue}if(j==="!"){if(n.noextglob!==true&&F()==="("){if(F(2)!=="?"||!/[!=<:]/.test(F(3))){extglobOpen("negate",j);continue}}if(n.nonegate!==true&&T.index===0){negate();continue}}if(j==="+"){if(n.noextglob!==true&&F()==="("&&F(2)!=="?"){extglobOpen("plus",j);continue}if(N&&N.value==="("||n.regex===false){push({type:"plus",value:j,output:b});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||T.parens>0){push({type:"plus",value:j});continue}push({type:"plus",value:b});continue}if(j==="@"){if(n.noextglob!==true&&F()==="("&&F(2)!=="?"){push({type:"at",extglob:true,value:j,output:""});continue}push({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j=`\\${j}`}const e=a.exec(remaining());if(e){j+=e[0];T.index+=e[0].length}push({type:"text",value:j});continue}if(N&&(N.type==="globstar"||N.star===true)){N.type="star";N.star=true;N.value+=j;N.output=I;T.backtrack=true;T.globstar=true;consume(j);continue}let t=remaining();if(n.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",j);continue}if(N.type==="star"){if(n.noglobstar===true){consume(j);continue}const r=N.prev;const i=r.prev;const o=r.type==="slash"||r.type==="bos";const s=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:j,output:""});continue}const a=T.braces>0&&(r.type==="comma"||r.type==="brace");const l=L.length&&(r.type==="pipe"||r.type==="paren");if(!o&&r.type!=="paren"&&!a&&!l){push({type:"star",value:j,output:""});continue}while(t.slice(0,3)==="/**"){const n=e[T.index+4];if(n&&n!=="/"){break}t=t.slice(3);consume("/**",3)}if(r.type==="bos"&&eos()){N.type="globstar";N.value+=j;N.output=globstar(n);T.output=N.output;T.globstar=true;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!s&&eos()){T.output=T.output.slice(0,-(r.output+N.output).length);r.output=`(?:${r.output}`;N.type="globstar";N.output=globstar(n)+(n.strictSlashes?")":"|$)");N.value+=j;T.globstar=true;T.output+=r.output+N.output;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(r.output+N.output).length);r.output=`(?:${r.output}`;N.type="globstar";N.output=`${globstar(n)}${A}|${A}${e})`;N.value+=j;T.output+=r.output+N.output;T.globstar=true;consume(j+B());push({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&t[0]==="/"){N.type="globstar";N.value+=j;N.output=`(?:^|${A}|${globstar(n)}${A})`;T.output=N.output;T.globstar=true;consume(j+B());push({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-N.output.length);N.type="globstar";N.output=globstar(n);N.value+=j;T.output+=N.output;T.globstar=true;consume(j);continue}const r={type:"star",value:j,output:I};if(n.bash===true){r.output=".*?";if(N.type==="bos"||N.type==="slash"){r.output=$+r.output}push(r);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&n.regex===true){r.output=j;push(r);continue}if(T.index===T.start||N.type==="slash"||N.type==="dot"){if(N.type==="dot"){T.output+=C;N.output+=C}else if(n.dot===true){T.output+=x;N.output+=x}else{T.output+=$;N.output+=$}if(F()!=="*"){T.output+=v;N.output+=v}}push(r)}while(T.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));T.output=i.escapeLast(T.output,"[");decrement("brackets")}while(T.parens>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));T.output=i.escapeLast(T.output,"(");decrement("parens")}while(T.braces>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));T.output=i.escapeLast(T.output,"{");decrement("braces")}if(n.strictSlashes!==true&&(N.type==="star"||N.type==="bracket")){push({type:"maybe_slash",value:"",output:`${A}?`})}if(T.backtrack===true){T.output="";for(const e of T.tokens){T.output+=e.output!=null?e.output:e.value;if(e.suffix){T.output+=e.suffix}}}return T};parse.fastpaths=(e,t)=>{const n={...t};const s=typeof n.maxLength==="number"?Math.min(o,n.maxLength):o;const a=e.length;if(a>s){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`)}e=c[e]||e;const l=i.isWindows(t);const{DOT_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:_}=r.globChars(l);const b=n.dot?g:h;const A=n.dot?m:h;const v=n.capture?"":"?:";const w={negated:false,prefix:""};let E=n.bash===true?".*?":y;if(n.capture){E=`(${E})`}const globstar=e=>{if(e.noglobstar===true)return E;return`(${v}(?:(?!${_}${e.dot?d:u}).)*?)`};const create=e=>{switch(e){case"*":return`${b}${p}${E}`;case".*":return`${u}${p}${E}`;case"*.*":return`${b}${E}${u}${p}${E}`;case"*/*":return`${b}${E}${f}${p}${A}${E}`;case"**":return b+globstar(n);case"**/*":return`(?:${b}${globstar(n)}${f})?${A}${p}${E}`;case"**/*.*":return`(?:${b}${globstar(n)}${f})?${A}${E}${u}${p}${E}`;case"**/.*":return`(?:${b}${globstar(n)}${f})?${u}${p}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=create(t[1]);if(!n)return;return n+u+t[2]}}};const C=i.removePrefix(e,w);let x=create(C);if(x&&n.strictSlashes!==true){x+=`${f}?`}return x};e.exports=parse},3322:(e,t,n)=>{const r=n(1017);const i=n(2429);const o=n(2139);const s=n(479);const a=n(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,n=false)=>{if(Array.isArray(e)){const r=e.map((e=>picomatch(e,t,n)));const arrayMatcher=e=>{for(const t of r){const n=t(e);if(n)return n}return false};return arrayMatcher}const r=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!r){throw new TypeError("Expected pattern to be a non-empty string")}const i=t||{};const o=s.isWindows(t);const a=r?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const l=a.state;delete a.state;let isIgnored=()=>false;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(i.ignore,e,n)}const matcher=(n,r=false)=>{const{isMatch:s,match:c,output:u}=picomatch.test(n,a,t,{glob:e,posix:o});const f={glob:e,state:l,regex:a,posix:o,input:n,output:u,match:c,isMatch:s};if(typeof i.onResult==="function"){i.onResult(f)}if(s===false){f.isMatch=false;return r?f:false}if(isIgnored(n)){if(typeof i.onIgnore==="function"){i.onIgnore(f)}f.isMatch=false;return r?f:false}if(typeof i.onMatch==="function"){i.onMatch(f)}return r?f:true};if(n){matcher.state=l}return matcher};picomatch.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=n||{};const a=o.format||(i?s.toPosixSlashes:null);let l=e===r;let c=l&&a?a(e):e;if(l===false){c=a?a(e):e;l=c===r}if(l===false||o.capture===true){if(o.matchBase===true||o.basename===true){l=picomatch.matchBase(e,t,n,i)}else{l=t.exec(c)}}return{isMatch:Boolean(l),match:l,output:c}};picomatch.matchBase=(e,t,n,i=s.isWindows(n))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,n);return o.test(r.basename(e))};picomatch.isMatch=(e,t,n)=>picomatch(t,n)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>i(e,t);picomatch.compileRe=(e,t,n=false,r=false)=>{if(n===true){return e.output}const i=t||{};const o=i.contains?"":"^";const s=i.contains?"":"$";let a=`${o}(?:${e.output})${s}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const l=picomatch.toRegex(a,t);if(r===true){l.state=e}return l};picomatch.makeRe=(e,t={},n=false,r=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let i={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){i.output=o.fastpaths(e,t)}if(!i.output){i=o(e,t)}return picomatch.compileRe(i,t,n,r)};picomatch.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,n)=>{const r=n(479);const{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:_}=n(6099);const isPathSeparator=e=>e===u||e===s;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const n=t||{};const b=e.length-1;const A=n.parts===true||n.scanToEnd===true;const v=[];const w=[];const E=[];let C=e;let x=-1;let O=0;let k=0;let S=false;let R=false;let $=false;let P=false;let I=false;let T=false;let L=false;let M=false;let H=false;let N=false;let j=0;let F;let B;let D={value:"",depth:0,isGlob:false};const eos=()=>x>=b;const peek=()=>C.charCodeAt(x+1);const advance=()=>{F=B;return C.charCodeAt(++x)};while(x<b){B=advance();let e;if(B===s){L=D.backslashes=true;B=advance();if(B===f){T=true}continue}if(T===true||B===f){j++;while(eos()!==true&&(B=advance())){if(B===s){L=D.backslashes=true;advance();continue}if(B===f){j++;continue}if(T!==true&&B===l&&(B=advance())===l){S=D.isBrace=true;$=D.isGlob=true;N=true;if(A===true){continue}break}if(T!==true&&B===a){S=D.isBrace=true;$=D.isGlob=true;N=true;if(A===true){continue}break}if(B===m){j--;if(j===0){T=false;S=D.isBrace=true;N=true;break}}}if(A===true){continue}break}if(B===u){v.push(x);w.push(D);D={value:"",depth:0,isGlob:false};if(N===true)continue;if(F===l&&x===O+1){O+=2;continue}k=x+1;continue}if(n.noext!==true){const e=B===h||B===o||B===i||B===g||B===c;if(e===true&&peek()===p){$=D.isGlob=true;P=D.isExtglob=true;N=true;if(B===c&&x===O){H=true}if(A===true){while(eos()!==true&&(B=advance())){if(B===s){L=D.backslashes=true;B=advance();continue}if(B===y){$=D.isGlob=true;N=true;break}}continue}break}}if(B===i){if(F===i)I=D.isGlobstar=true;$=D.isGlob=true;N=true;if(A===true){continue}break}if(B===g){$=D.isGlob=true;N=true;if(A===true){continue}break}if(B===d){while(eos()!==true&&(e=advance())){if(e===s){L=D.backslashes=true;advance();continue}if(e===_){R=D.isBracket=true;$=D.isGlob=true;N=true;break}}if(A===true){continue}break}if(n.nonegate!==true&&B===c&&x===O){M=D.negated=true;O++;continue}if(n.noparen!==true&&B===p){$=D.isGlob=true;if(A===true){while(eos()!==true&&(B=advance())){if(B===p){L=D.backslashes=true;B=advance();continue}if(B===y){N=true;break}}continue}break}if($===true){N=true;if(A===true){continue}break}}if(n.noext===true){P=false;$=false}let U=C;let G="";let W="";if(O>0){G=C.slice(0,O);C=C.slice(O);k-=O}if(U&&$===true&&k>0){U=C.slice(0,k);W=C.slice(k)}else if($===true){U="";W=C}else{U=C}if(U&&U!==""&&U!=="/"&&U!==C){if(isPathSeparator(U.charCodeAt(U.length-1))){U=U.slice(0,-1)}}if(n.unescape===true){if(W)W=r.removeBackslashes(W);if(U&&L===true){U=r.removeBackslashes(U)}}const q={prefix:G,input:e,start:O,base:U,glob:W,isBrace:S,isBracket:R,isGlob:$,isExtglob:P,isGlobstar:I,negated:M,negatedExtglob:H};if(n.tokens===true){q.maxDepth=0;if(!isPathSeparator(B)){w.push(D)}q.tokens=w}if(n.parts===true||n.tokens===true){let t;for(let r=0;r<v.length;r++){const i=t?t+1:O;const o=v[r];const s=e.slice(i,o);if(n.tokens){if(r===0&&O!==0){w[r].isPrefix=true;w[r].value=G}else{w[r].value=s}depth(w[r]);q.maxDepth+=w[r].depth}if(r!==0||s!==""){E.push(s)}t=o}if(t&&t+1<e.length){const r=e.slice(t+1);E.push(r);if(n.tokens){w[w.length-1].value=r;depth(w[w.length-1]);q.maxDepth+=w[w.length-1].depth}}q.slashes=v;q.parts=E}return q};e.exports=scan},479:(e,t,n)=>{const r=n(1017);const i=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:l}=n(6099);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(l,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(s,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return i===true||r.sep==="\\"};t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,n,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`};t.removePrefix=(e,t={})=>{let n=e;if(n.startsWith("./")){n=n.slice(2);t.prefix="./"}return n};t.wrapOutput=(e,t={},n={})=>{const r=n.contains?"":"^";const i=n.contains?"":"$";let o=`${r}(?:${e})${i}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},1861:(e,t,n)=>{
42
+ e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},1917:(e,t,n)=>{var r=n(1161);var i=n(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(6073);e.exports.Schema=n(1082);e.exports.FAILSAFE_SCHEMA=n(8562);e.exports.JSON_SCHEMA=n(1035);e.exports.CORE_SCHEMA=n(2011);e.exports.DEFAULT_SCHEMA=n(8759);e.exports.load=r.load;e.exports.loadAll=r.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=n(8179);e.exports.types={binary:n(7900),float:n(2705),map:n(6150),null:n(721),pairs:n(6860),set:n(9548),timestamp:n(9212),bool:n(4993),int:n(1615),merge:n(6104),omap:n(9046),seq:n(7283),str:n(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var n,r,i,o;if(t){o=Object.keys(t);for(n=0,r=o.length;n<r;n+=1){i=o[n];e[i]=t[i]}}return e}function repeat(e,t){var n="",r;for(r=0;r<t;r+=1){n+=e}return n}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},8866:(e,t,n)=>{var r=n(6829);var i=n(8179);var o=n(8759);var s=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var l=65279;var c=9;var u=10;var f=13;var p=32;var d=33;var h=34;var g=35;var m=37;var y=38;var _=39;var b=42;var A=44;var v=45;var w=58;var E=61;var C=62;var x=63;var O=64;var k=91;var S=93;var R=96;var $=123;var P=124;var I=125;var T={};T[0]="\\0";T[7]="\\a";T[8]="\\b";T[9]="\\t";T[10]="\\n";T[11]="\\v";T[12]="\\f";T[13]="\\r";T[27]="\\e";T[34]='\\"';T[92]="\\\\";T[133]="\\N";T[160]="\\_";T[8232]="\\L";T[8233]="\\P";var L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var M=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var n,r,i,o,s,l,c;if(t===null)return{};n={};r=Object.keys(t);for(i=0,o=r.length;i<o;i+=1){s=r[i];l=String(t[s]);if(s.slice(0,2)==="!!"){s="tag:yaml.org,2002:"+s.slice(2)}c=e.compiledTypeMap["fallback"][s];if(c&&a.call(c.styleAliases,l)){l=c.styleAliases[l]}n[s]=l}return n}function encodeHex(e){var t,n,o;t=e.toString(16).toUpperCase();if(e<=255){n="x";o=2}else if(e<=65535){n="u";o=4}else if(e<=4294967295){n="U";o=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+r.repeat("0",o-t.length)+t}var N=1,H=2;function State(e){this.schema=e["schema"]||o;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=r.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?H:N;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var n=r.repeat(" ",t),i=0,o=-1,s="",a,l=e.length;while(i<l){o=e.indexOf("\n",i);if(o===-1){a=e.slice(i);i=l}else{a=e.slice(i,o+1);i=o+1}if(a.length&&a!=="\n")s+=n;s+=a}return s}function generateNextLine(e,t){return"\n"+r.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===p||e===c}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==l&&e!==f&&e!==u}function isPlainSafe(e,t,n){var r=isNsCharOrWhitespace(e);var i=r&&!isWhitespace(e);return(n?r:r&&e!==A&&e!==k&&e!==S&&e!==$&&e!==I)&&e!==g&&!(t===w&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===w&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==l&&!isWhitespace(e)&&e!==v&&e!==x&&e!==w&&e!==A&&e!==k&&e!==S&&e!==$&&e!==I&&e!==g&&e!==y&&e!==b&&e!==d&&e!==P&&e!==E&&e!==C&&e!==_&&e!==h&&e!==m&&e!==O&&e!==R}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==w}function codePointAt(e,t){var n=e.charCodeAt(t),r;if(n>=55296&&n<=56319&&t+1<e.length){r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var j=1,F=2,B=3,D=4,U=5;function chooseScalarStyle(e,t,n,r,i,o,s,a){var l;var c=0;var f=null;var p=false;var d=false;var h=r!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s){for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(!isPrintable(c)){return U}m=m&&isPlainSafe(c,f,a);f=c}}else{for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(c===u){p=true;if(h){d=d||l-g-1>r&&e[g+1]!==" ";g=l}}else if(!isPrintable(c)){return U}m=m&&isPlainSafe(c,f,a);f=c}d=d||h&&(l-g-1>r&&e[g+1]!==" ")}if(!p&&!d){if(m&&!s&&!i(e)){return j}return o===H?U:F}if(n>9&&needIndentIndicator(e)){return U}if(!s){return d?D:B}return o===H?U:F}function writeScalar(e,t,n,r,o){e.dump=function(){if(t.length===0){return e.quotingType===H?'""':"''"}if(!e.noCompatMode){if(L.indexOf(t)!==-1||M.test(t)){return e.quotingType===H?'"'+t+'"':"'"+t+"'"}}var s=e.indent*Math.max(1,n);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var l=r||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,l,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!r,o)){case j:return t;case F:return"'"+t.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,s));case D:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),s));case U:return'"'+escapeString(t,a)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":r?"":"-";return n+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return foldLine(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var s;while(s=n.exec(e)){var a=s[1],l=s[2];o=l[0]===" ";r+=a+(!i&&!o&&l!==""?"\n":"")+foldLine(l,t);i=o}return r}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,o,s=0,a=0;var l="";while(r=n.exec(e)){a=r.index;if(a-i>t){o=s>i?s:a;l+="\n"+e.slice(i,o);i=o+1}s=a}l+="\n";if(e.length-i>t&&s>i){l+=e.slice(i,s)+"\n"+e.slice(s+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var t="";var n=0;var r;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=codePointAt(e,i);r=T[n];if(!r&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var r="",i=e.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1){a=n[o];if(e.replacer){a=e.replacer.call(n,String(o),a)}if(writeNode(e,t,a,false,false)||typeof a==="undefined"&&writeNode(e,t,null,false,false)){if(r!=="")r+=","+(!e.condenseFlow?" ":"");r+=e.dump}}e.tag=i;e.dump="["+r+"]"}function writeBlockSequence(e,t,n,r){var i="",o=e.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1){l=n[s];if(e.replacer){l=e.replacer.call(n,String(s),l)}if(writeNode(e,t+1,l,true,true,false,true)||typeof l==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!r||i!==""){i+=generateNextLine(e,t)}if(e.dump&&u===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=o;e.dump=i||"[]"}function writeFlowMapping(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1){u="";if(r!=="")u+=", ";if(e.condenseFlow)u+='"';l=o[s];c=n[l];if(e.replacer){c=e.replacer.call(n,l,c)}if(!writeNode(e,t,l,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}u+=e.dump;r+=u}e.tag=i;e.dump="{"+r+"}"}function writeBlockMapping(e,t,n,r){var o="",s=e.tag,a=Object.keys(n),l,c,f,p,d,h;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,c=a.length;l<c;l+=1){h="";if(!r||o!==""){h+=generateNextLine(e,t)}f=a[l];p=n[f];if(e.replacer){p=e.replacer.call(n,f,p)}if(!writeNode(e,t+1,f,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&u===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,d)){continue}if(e.dump&&u===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;o+=h}e.tag=s;e.dump=o||"{}"}function detectType(e,t,n){var r,o,l,c,u,f;o=n?e.explicitTypes:e.implicitTypes;for(l=0,c=o.length;l<c;l+=1){u=o[l];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t==="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(n){if(u.multi&&u.representName){e.tag=u.representName(t)}else{e.tag=u.tag}}else{e.tag="?"}if(u.represent){f=e.styleMap[u.tag]||u.defaultStyle;if(s.call(u.represent)==="[object Function]"){r=u.represent(t,f)}else if(a.call(u.represent,f)){r=u.represent[f](t,f)}else{throw new i("!<"+u.tag+'> tag resolver accepts not "'+f+'" style')}e.dump=r}return true}}return false}function writeNode(e,t,n,r,o,a,l){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var c=s.call(e.dump);var u=r;var f;if(r){r=e.flowLevel<0||e.flowLevel>t}var p=c==="[object Object]"||c==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(n);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){o=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(c==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!l&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,u)}}else if(c==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],r=[],i,o;inspectNode(e,n,r);for(i=0,o=r.length;i<o;i+=1){t.duplicates.push(n[r[i]])}t.usedDuplicates=new Array(o)}function inspectNode(e,t,n){var r,i,o;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,o=e.length;i<o;i+=1){inspectNode(e[i],t,n)}}else{r=Object.keys(e);for(i=0,o=r.length;i<o;i+=1){inspectNode(e[r[i]],t,n)}}}}}function dump(e,t){t=t||{};var n=new State(t);if(!n.noRefs)getDuplicateReferences(e,n);var r=e;if(n.replacer){r=n.replacer.call({"":r},"",r)}if(writeNode(n,0,r,true,true))return n.dump+"\n";return""}e.exports.dump=dump},8179:e=>{function formatError(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,n)=>{var r=n(6829);var i=n(8179);var o=n(6975);var s=n(8759);var a=Object.prototype.hasOwnProperty;var l=1;var c=2;var u=3;var f=4;var p=1;var d=2;var h=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var _=/^(?:!|!!|![a-z\-]+!)$/i;var b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var A=new Array(256);var v=new Array(256);for(var w=0;w<256;w++){A[w]=simpleEscapeSequence(w)?1:0;v[w]=simpleEscapeSequence(w)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||s;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=o(n);return new i(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var E={YAML:function handleYamlDirective(e,t,n){var r,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(r===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(r[1],10);o=parseInt(r[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var r,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}r=n[0];i=n[1];if(!_.test(r)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,r)){throwError(e,'there is a previously declared suffix for "'+r+'" tag handle')}if(!b.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function captureSegment(e,t,n,r){var i,o,s,a;if(t<n){a=e.input.slice(t,n);if(r){for(i=0,o=a.length;i<o;i+=1){s=a.charCodeAt(i);if(!(s===9||32<=s&&s<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(a)){throwError(e,"the stream contains non-printable characters")}e.result+=a}}function mergeMappings(e,t,n,i){var o,s,l,c;if(!r.isObject(n)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}o=Object.keys(n);for(l=0,c=o.length;l<c;l+=1){s=o[l];if(!a.call(t,s)){t[s]=n[s];i[s]=true}}}function storeMappingPair(e,t,n,r,i,o,s,l,c){var u,f;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(u=0,f=i.length;u<f;u+=1){if(Array.isArray(i[u])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[u])==="[object Object]"){i[u]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(r==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(u=0,f=o.length;u<f;u+=1){mergeMappings(e,t,o[u],n)}}else{mergeMappings(e,t,o,n)}}else{if(!e.json&&!a.call(n,i)&&a.call(t,i)){e.line=s||e.line;e.lineStart=l||e.lineStart;e.position=c||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:o})}else{t[i]=o}delete n[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,n){var r=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);r++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&r!==0&&e.lineIndent<n){throwWarning(e,"deficient indentation")}return r}function testDocumentSeparator(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||is_WS_OR_EOL(n)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=r.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var r,i,o,s,a,l,c,u,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=s=e.position;a=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(r)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){l=e.line;c=e.lineStart;u=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=l;e.lineStart=c;e.lineIndent=u;break}}if(a){captureSegment(e,o,s,false);writeFoldedLines(e,e.line-l);o=s=e.position;a=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,r,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,r,i,o,s,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,n,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&A[a]){e.result+=v[a];e.position++}else if((s=escapedHexLen(a))>0){i=s;o=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((s=fromHexCode(a))>=0){o=(o<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}n=r=e.position}else if(is_EOL(a)){captureSegment(e,n,r,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,r,i,o,s=e.tag,a,c=e.anchor,u,f,p,d,h,g=Object.create(null),m,y,_,b;b=e.input.charCodeAt(e.position);if(b===91){f=93;h=false;a=[]}else if(b===123){f=125;h=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===f){e.position++;e.tag=s;e.anchor=c;e.kind=h?"mapping":"sequence";e.result=a;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}y=m=_=null;p=d=false;if(b===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){p=d=true;e.position++;skipSeparationSpace(e,true,t)}}r=e.line;i=e.lineStart;o=e.position;composeNode(e,t,l,false,true);y=e.tag;m=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((d||e.line===r)&&b===58){p=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,l,false,true);_=e.result}if(h){storeMappingPair(e,a,g,y,m,_,r,i,o)}else if(p){a.push(storeMappingPair(e,null,g,y,m,_,r,i,o))}else{a.push(m)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){n=true;b=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o=p,s=false,a=false,l=t,c=0,u=false,f,g;g=e.input.charCodeAt(e.position);if(g===124){i=false}else if(g===62){i=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===o){o=g===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(g))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){l=t+f-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!a||e.lineIndent<l)&&g===32){e.lineIndent++;g=e.input.charCodeAt(++e.position)}if(!a&&e.lineIndent>l){l=e.lineIndent}if(is_EOL(g)){c++;continue}if(e.lineIndent<l){if(o===h){e.result+=r.repeat("\n",s?1+c:c)}else if(o===p){if(s){e.result+="\n"}}break}if(i){if(is_WHITE_SPACE(g)){u=true;e.result+=r.repeat("\n",s?1+c:c)}else if(u){u=false;e.result+=r.repeat("\n",c+1)}else if(c===0){if(s){e.result+=" "}}else{e.result+=r.repeat("\n",c)}}else{e.result+=r.repeat("\n",s?1+c:c)}s=true;a=true;c=0;n=e.position;while(!is_EOL(g)&&g!==0){g=e.input.charCodeAt(++e.position)}captureSegment(e,n,e.position,false)}return true}function readBlockSequence(e,t){var n,r=e.tag,i=e.anchor,o=[],s,a=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=o}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(l!==45){break}s=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(s)){break}a=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){o.push(null);l=e.input.charCodeAt(e.position);continue}}n=e.line;composeNode(e,t,u,false,true);o.push(e.result);skipSeparationSpace(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(a){e.tag=r;e.anchor=i;e.kind="sequence";e.result=o;return true}return false}function readBlockMapping(e,t,n){var r,i,o,s,a,l,u=e.tag,p=e.anchor,d={},h=Object.create(null),g=null,m=null,y=null,_=false,b=false,A;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}A=e.input.charCodeAt(e.position);while(A!==0){if(!_&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}r=e.input.charCodeAt(e.position+1);o=e.line;if((A===63||A===58)&&is_WS_OR_EOL(r)){if(A===63){if(_){storeMappingPair(e,d,h,g,m,null,s,a,l);g=m=y=null}b=true;_=true;i=true}else if(_){_=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;A=r}else{s=e.line;a=e.lineStart;l=e.position;if(!composeNode(e,n,c,false,true)){break}if(e.line===o){A=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(A)){A=e.input.charCodeAt(++e.position)}if(A===58){A=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(A)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(_){storeMappingPair(e,d,h,g,m,null,s,a,l);g=m=y=null}b=true;_=false;i=false;g=e.tag;m=e.result}else if(b){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=u;e.anchor=p;return true}}else if(b){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=u;e.anchor=p;return true}}if(e.line===o||e.lineIndent>t){if(_){s=e.line;a=e.lineStart;l=e.position}if(composeNode(e,t,f,true,i)){if(_){m=e.result}else{y=e.result}}if(!_){storeMappingPair(e,d,h,g,m,y,s,a,l);g=m=y=null}skipSeparationSpace(e,true,-1);A=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&A!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(_){storeMappingPair(e,d,h,g,m,null,s,a,l)}if(b){e.tag=u;e.anchor=p;e.kind="mapping";e.result=d}return b}function readTagProperty(e){var t,n=false,r=false,i,o,s;s=e.input.charCodeAt(e.position);if(s!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}s=e.input.charCodeAt(++e.position);if(s===60){n=true;s=e.input.charCodeAt(++e.position)}else if(s===33){r=true;i="!!";s=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&s!==62);if(e.position<e.length){o=e.input.slice(t,e.position);s=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(s!==0&&!is_WS_OR_EOL(s)){if(s===33){if(!r){i=e.input.slice(t-1,e.position+1);if(!_.test(i)){throwError(e,"named tag handle cannot contain such characters")}r=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}s=e.input.charCodeAt(++e.position)}o=e.input.slice(t,e.position);if(y.test(o)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(o&&!b.test(o)){throwError(e,"tag name cannot contain such characters: "+o)}try{o=decodeURIComponent(o)}catch(t){throwError(e,"tag name is malformed: "+o)}if(n){e.tag=o}else if(a.call(e.tagMap,i)){e.tag=e.tagMap[i]+o}else if(i==="!"){e.tag="!"+o}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+o}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,n,r;r=e.input.charCodeAt(e.position);if(r!==42)return false;r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!a.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,n,r,i){var o,s,p,d=1,h=false,g=false,m,y,_,b,A,v;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;o=s=p=f===n||u===n;if(r){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;p=o;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{p=false}}}if(p){p=h||i}if(d===1||f===n){if(l===n||c===n){A=t}else{A=t+1}v=e.position-e.lineStart;if(d===1){if(p&&(readBlockSequence(e,v)||readBlockMapping(e,v,A))||readFlowCollection(e,A)){g=true}else{if(s&&readBlockScalar(e,A)||readSingleQuotedScalar(e,A)||readDoubleQuotedScalar(e,A)){g=true}else if(readAlias(e)){g=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,A,l===n)){g=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){g=p&&readBlockSequence(e,v)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,y=e.implicitTypes.length;m<y;m+=1){b=e.implicitTypes[m];if(b.resolve(e.result)){e.result=b.construct(e.result);e.tag=b.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(a.call(e.typeMap[e.kind||"fallback"],e.tag)){b=e.typeMap[e.kind||"fallback"][e.tag]}else{b=null;_=e.typeMap.multi[e.kind||"fallback"];for(m=0,y=_.length;m<y;m+=1){if(e.tag.slice(0,_[m].tag.length)===_[m].tag){b=_[m];break}}}if(!b){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&b.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,n,r,i,o=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}o=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(E,r)){E[r](e,r,i)}else{throwWarning(e,'unknown document directive "'+r+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new State(e,t);var r=e.indexOf("\0");if(r!==-1){n.position=r;throwError(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){readDocument(n)}return n.documents}function loadAll(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var r=loadDocuments(e,n);if(typeof t!=="function"){return r}for(var i=0,o=r.length;i<o;i+=1){t(r[i])}}function load(e,t){var n=loadDocuments(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new i("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},1082:(e,t,n)=>{var r=n(8179);var i=n(6073);function compileList(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}}));n[t]=e}));return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var n=[];if(e instanceof i){n.push(e)}else if(Array.isArray(e)){n=n.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)n=n.concat(e.explicit)}else{throw new r("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof i)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));n.forEach((function(e){if(!(e instanceof i)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var o=Object.create(Schema.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(n);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};e.exports=Schema},2011:(e,t,n)=>{e.exports=n(1035)},8759:(e,t,n)=>{e.exports=n(2011).extend({implicit:[n(9212),n(6104)],explicit:[n(7900),n(9046),n(6860),n(9548)]})},8562:(e,t,n)=>{var r=n(1082);e.exports=new r({explicit:[n(3619),n(7283),n(6150)]})},1035:(e,t,n)=>{e.exports=n(8562).extend({implicit:[n(721),n(4993),n(1615),n(2705)]})},6975:(e,t,n)=>{var r=n(6829);function getLine(e,t,n,r,i){var o="";var s="";var a=Math.floor(i/2)-1;if(r-t>a){o=" ... ";t=r-a+o.length}if(n-r>a){s=" ...";n=r+a-s.length}return{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function padStart(e,t){return r.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var i=[0];var o=[];var s;var a=-1;while(s=n.exec(e.buffer)){o.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&a<0){a=i.length-2}}if(a<0)a=i.length-1;var l="",c,u;var f=Math.min(e.line+t.linesAfter,o.length).toString().length;var p=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore;c++){if(a-c<0)break;u=getLine(e.buffer,i[a-c],o[a-c],e.position-(i[a]-i[a-c]),p);l=r.repeat(" ",t.indent)+padStart((e.line-c+1).toString(),f)+" | "+u.str+"\n"+l}u=getLine(e.buffer,i[a],o[a],e.position,p);l+=r.repeat(" ",t.indent)+padStart((e.line+1).toString(),f)+" | "+u.str+"\n";l+=r.repeat("-",t.indent+f+3+u.pos)+"^"+"\n";for(c=1;c<=t.linesAfter;c++){if(a+c>=o.length)break;u=getLine(e.buffer,i[a+c],o[a+c],e.position-(i[a]-i[a+c]),p);l+=r.repeat(" ",t.indent)+padStart((e.line+c+1).toString(),f)+" | "+u.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,t,n)=>{var r=n(8179);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(i.indexOf(t)===-1){throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,t,n)=>{var r=n(6073);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,n,r=0,o=e.length,s=i;for(n=0;n<o;n++){t=s.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;r+=6}return r%8===0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,s=i,a=0,l=[];for(t=0;t<o;t++){if(t%4===0&&t){l.push(a>>16&255);l.push(a>>8&255);l.push(a&255)}a=a<<6|s.indexOf(r.charAt(t))}n=o%4*6;if(n===0){l.push(a>>16&255);l.push(a>>8&255);l.push(a&255)}else if(n===18){l.push(a>>10&255);l.push(a>>2&255)}else if(n===12){l.push(a>>4&255)}return new Uint8Array(l)}function representYamlBinary(e){var t="",n=0,r,o,s=e.length,a=i;for(r=0;r<s;r++){if(r%3===0&&r){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}n=(n<<8)+e[r]}o=s%3;if(o===0){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}else if(o===2){t+=a[n>>10&63];t+=a[n>>4&63];t+=a[n<<2&63];t+=a[64]}else if(o===1){t+=a[n>>2&63];t+=a[n<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,t,n)=>{var r=n(6073);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2705:(e,t,n)=>{var r=n(6829);var i=n(6073);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(r.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,t,n)=>{var r=n(6829);var i=n(6073);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;r=true}return r&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isHexCode(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isOctCode(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isDecCode(e.charCodeAt(n))){return false}r=true}if(!r||i==="_")return false;return true}function constructYamlInteger(e){var t=e,n=1,r;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}r=t[0];if(r==="-"||r==="+"){if(r==="-")n=-1;t=t.slice(1);r=t[0]}if(t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,t,n)=>{var r=n(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,t,n)=>{var r=n(6073);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,t,n)=>{var r=n(6073);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,r,s,a,l,c=e;for(n=0,r=c.length;n<r;n+=1){s=c[n];l=false;if(o.call(s)!=="[object Object]")return false;for(a in s){if(i.call(s,a)){if(!l)l=true;else return false}}if(!l)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(e,t,n)=>{var r=n(6073);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,r,o,s,a=e;s=new Array(a.length);for(t=0,n=a.length;t<n;t+=1){r=a[t];if(i.call(r)!=="[object Object]")return false;o=Object.keys(r);if(o.length!==1)return false;s[t]=[o[0],r[o[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,n,r,i,o,s=e;o=new Array(s.length);for(t=0,n=s.length;t<n;t+=1){r=s[t];i=Object.keys(r);o[t]=[i[0],r[i[0]]]}return o}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,t,n)=>{var r=n(6073);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(i.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,t,n)=>{var r=n(6073);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,r,s,a,l,c,u=0,f=null,p,d,h;t=i.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,s))}a=+t[4];l=+t[5];c=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){p=+t[10];d=+(t[11]||0);f=(p*60+d)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(n,r,s,a,l,c,u));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(e,t,n)=>{const r=n(3837);const i=n(610);const o=n(8569);const s=n(479);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,n)=>{t=[].concat(t);e=[].concat(e);let r=new Set;let i=new Set;let s=new Set;let a=0;let onResult=e=>{s.add(e.output);if(n&&n.onResult){n.onResult(e)}};for(let s=0;s<t.length;s++){let l=o(String(t[s]),{...n,onResult:onResult},true);let c=l.state.negated||l.state.negatedExtglob;if(c)a++;for(let t of e){let e=l(t,true);let n=c?!e.isMatch:e.isMatch;if(!n)continue;if(c){r.add(e.output)}else{r.delete(e.output);i.add(e.output)}}}let l=a===t.length?[...s]:[...i];let c=l.filter((e=>!r.has(e)));if(n&&c.length===0){if(n.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(n.nonull===true||n.nullglob===true){return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return c};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,n)=>o(t,n)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set;let i=[];let onResult=e=>{if(n.onResult)n.onResult(e);i.push(e.output)};let o=new Set(micromatch(e,t,{...n,onResult:onResult}));for(let e of i){if(!o.has(e)){r.add(e)}}return[...r]};micromatch.contains=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,n)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...n,contains:true})};micromatch.matchKeys=(e,t,n)=>{if(!s.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let r=micromatch(Object.keys(e),t,n);let i={};for(let t of r)i[t]=e[t];return i};micromatch.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(r.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(!r.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}return[].concat(t).every((t=>o(t,n)(e)))};micromatch.capture=(e,t,n)=>{let r=s.isWindows(n);let i=o.makeRe(String(e),{...n,capture:true});let a=i.exec(r?s.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[])){for(let e of i(String(r),t)){n.push(o.parse(e,t))}}return n};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return i(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},8569:(e,t,n)=>{e.exports=n(3322)},6099:(e,t,n)=>{const r=n(1017);const i="\\\\/";const o=`[^${i}]`;const s="\\.";const a="\\+";const l="\\?";const c="\\/";const u="(?=.)";const f="[^/]";const p=`(?:${c}|$)`;const d=`(?:^|${c})`;const h=`${s}{1,2}${p}`;const g=`(?!${s})`;const m=`(?!${d}${h})`;const y=`(?!${s}{0,1}${p})`;const _=`(?!${h})`;const b=`[^.${c}]`;const A=`${f}*?`;const v={DOT_LITERAL:s,PLUS_LITERAL:a,QMARK_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:u,QMARK:f,END_ANCHOR:p,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK_NO_DOT:b,STAR:A,START_ANCHOR:d};const w={...v,SLASH_LITERAL:`[${i}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${s}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${i}])${s}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,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:r.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?w:v}}},2139:(e,t,n)=>{const r=n(6099);const i=n(479);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=r;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return n};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=c[e]||e;const n={...t};const u=typeof n.maxLength==="number"?Math.min(o,n.maxLength):o;let f=e.length;if(f>u){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${u}`)}const p={type:"bos",value:"",output:n.prepend||""};const d=[p];const h=n.capture?"":"?:";const g=i.isWindows(t);const m=r.globChars(g);const y=r.extglobChars(m);const{DOT_LITERAL:_,PLUS_LITERAL:b,SLASH_LITERAL:A,ONE_CHAR:v,DOTS_SLASH:w,NO_DOT:E,NO_DOT_SLASH:C,NO_DOTS_SLASH:x,QMARK:O,QMARK_NO_DOT:k,STAR:S,START_ANCHOR:R}=m;const globstar=e=>`(${h}(?:(?!${R}${e.dot?w:_}).)*?)`;const $=n.dot?"":E;const P=n.dot?O:k;let I=n.bash===true?globstar(n):S;if(n.capture){I=`(${I})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const T={input:e,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:d};e=i.removePrefix(e,T);f=e.length;const L=[];const M=[];const N=[];let H=p;let j;const eos=()=>T.index===f-1;const F=T.peek=(t=1)=>e[T.index+t];const B=T.advance=()=>e[++T.index]||"";const remaining=()=>e.slice(T.index+1);const consume=(e="",t=0)=>{T.consumed+=e;T.index+=t};const append=e=>{T.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(F()==="!"&&(F(2)!=="("||F(3)==="?")){B();T.start++;e++}if(e%2===0){return false}T.negated=true;T.start++;return true};const increment=e=>{T[e]++;N.push(e)};const decrement=e=>{T[e]--;N.pop()};const push=e=>{if(H.type==="globstar"){const t=T.braces>0&&(e.type==="comma"||e.type==="brace");const n=e.extglob===true||L.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!n){T.output=T.output.slice(0,-H.output.length);H.type="star";H.value="*";H.output=I;T.output+=H.output}}if(L.length&&e.type!=="paren"){L[L.length-1].inner+=e.value}if(e.value||e.output)append(e);if(H&&H.type==="text"&&e.type==="text"){H.value+=e.value;H.output=(H.output||"")+e.value;return}e.prev=H;d.push(e);H=e};const extglobOpen=(e,t)=>{const r={...y[t],conditions:1,inner:""};r.prev=H;r.parens=T.parens;r.output=T.output;const i=(n.capture?"(":"")+r.open;increment("parens");push({type:e,value:t,output:T.output?"":v});push({type:"paren",extglob:true,value:B(),output:i});L.push(r)};const extglobClose=e=>{let r=e.close+(n.capture?")":"");let i;if(e.type==="negate"){let o=I;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(n)}if(o!==I||eos()||/^\)+$/.test(remaining())){r=e.close=`)$))${o}`}if(e.inner.includes("*")&&(i=remaining())&&/^\.[^\\/.]+$/.test(i)){const n=parse(i,{...t,fastpaths:false}).output;r=e.close=`)${n})${o})`}if(e.prev.type==="bos"){T.negatedExtglob=true}}push({type:"paren",extglob:true,value:j,output:r});decrement("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=false;let o=e.replace(l,((e,t,n,i,o,s)=>{if(i==="\\"){r=true;return e}if(i==="?"){if(t){return t+i+(o?O.repeat(o.length):"")}if(s===0){return P+(o?O.repeat(o.length):"")}return O.repeat(n.length)}if(i==="."){return _.repeat(n.length)}if(i==="*"){if(t){return t+i+(o?I:"")}return I}return t?e:`\\${e}`}));if(r===true){if(n.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&n.contains===true){T.output=e;return T}T.output=i.wrapOutput(o,T,t);return T}while(!eos()){j=B();if(j==="\0"){continue}if(j==="\\"){const e=F();if(e==="/"&&n.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){j+="\\";push({type:"text",value:j});continue}const t=/^\\+/.exec(remaining());let r=0;if(t&&t[0].length>2){r=t[0].length;T.index+=r;if(r%2!==0){j+="\\"}}if(n.unescape===true){j=B()}else{j+=B()}if(T.brackets===0){push({type:"text",value:j});continue}}if(T.brackets>0&&(j!=="]"||H.value==="["||H.value==="[^")){if(n.posix!==false&&j===":"){const e=H.value.slice(1);if(e.includes("[")){H.posix=true;if(e.includes(":")){const e=H.value.lastIndexOf("[");const t=H.value.slice(0,e);const n=H.value.slice(e+2);const r=s[n];if(r){H.value=t+r;T.backtrack=true;B();if(!p.output&&d.indexOf(H)===1){p.output=v}continue}}}}if(j==="["&&F()!==":"||j==="-"&&F()==="]"){j=`\\${j}`}if(j==="]"&&(H.value==="["||H.value==="[^")){j=`\\${j}`}if(n.posix===true&&j==="!"&&H.value==="["){j="^"}H.value+=j;append({value:j});continue}if(T.quotes===1&&j!=='"'){j=i.escapeRegex(j);H.value+=j;append({value:j});continue}if(j==='"'){T.quotes=T.quotes===1?0:1;if(n.keepQuotes===true){push({type:"text",value:j})}continue}if(j==="("){increment("parens");push({type:"paren",value:j});continue}if(j===")"){if(T.parens===0&&n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=L[L.length-1];if(e&&T.parens===e.parens+1){extglobClose(L.pop());continue}push({type:"paren",value:j,output:T.parens?")":"\\)"});decrement("parens");continue}if(j==="["){if(n.nobracket===true||!remaining().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}j=`\\${j}`}else{increment("brackets")}push({type:"bracket",value:j});continue}if(j==="]"){if(n.nobracket===true||H&&H.type==="bracket"&&H.value.length===1){push({type:"text",value:j,output:`\\${j}`});continue}if(T.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:j,output:`\\${j}`});continue}decrement("brackets");const e=H.value.slice(1);if(H.posix!==true&&e[0]==="^"&&!e.includes("/")){j=`/${j}`}H.value+=j;append({value:j});if(n.literalBrackets===false||i.hasRegexChars(e)){continue}const t=i.escapeRegex(H.value);T.output=T.output.slice(0,-H.value.length);if(n.literalBrackets===true){T.output+=t;H.value=t;continue}H.value=`(${h}${t}|${H.value})`;T.output+=H.value;continue}if(j==="{"&&n.nobrace!==true){increment("braces");const e={type:"brace",value:j,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};M.push(e);push(e);continue}if(j==="}"){const e=M[M.length-1];if(n.nobrace===true||!e){push({type:"text",value:j,output:j});continue}let t=")";if(e.dots===true){const e=d.slice();const r=[];for(let t=e.length-1;t>=0;t--){d.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=expandRange(r,n);T.backtrack=true}if(e.comma!==true&&e.dots!==true){const n=T.output.slice(0,e.outputIndex);const r=T.tokens.slice(e.tokensIndex);e.value=e.output="\\{";j=t="\\}";T.output=n;for(const e of r){T.output+=e.output||e.value}}push({type:"brace",value:j,output:t});decrement("braces");M.pop();continue}if(j==="|"){if(L.length>0){L[L.length-1].conditions++}push({type:"text",value:j});continue}if(j===","){let e=j;const t=M[M.length-1];if(t&&N[N.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:j,output:e});continue}if(j==="/"){if(H.type==="dot"&&T.index===T.start+1){T.start=T.index+1;T.consumed="";T.output="";d.pop();H=p;continue}push({type:"slash",value:j,output:A});continue}if(j==="."){if(T.braces>0&&H.type==="dot"){if(H.value===".")H.output=_;const e=M[M.length-1];H.type="dots";H.output+=j;H.value+=j;e.dots=true;continue}if(T.braces+T.parens===0&&H.type!=="bos"&&H.type!=="slash"){push({type:"text",value:j,output:_});continue}push({type:"dot",value:j,output:_});continue}if(j==="?"){const e=H&&H.value==="(";if(!e&&n.noextglob!==true&&F()==="("&&F(2)!=="?"){extglobOpen("qmark",j);continue}if(H&&H.type==="paren"){const e=F();let t=j;if(e==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(H.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${j}`}push({type:"text",value:j,output:t});continue}if(n.dot!==true&&(H.type==="slash"||H.type==="bos")){push({type:"qmark",value:j,output:k});continue}push({type:"qmark",value:j,output:O});continue}if(j==="!"){if(n.noextglob!==true&&F()==="("){if(F(2)!=="?"||!/[!=<:]/.test(F(3))){extglobOpen("negate",j);continue}}if(n.nonegate!==true&&T.index===0){negate();continue}}if(j==="+"){if(n.noextglob!==true&&F()==="("&&F(2)!=="?"){extglobOpen("plus",j);continue}if(H&&H.value==="("||n.regex===false){push({type:"plus",value:j,output:b});continue}if(H&&(H.type==="bracket"||H.type==="paren"||H.type==="brace")||T.parens>0){push({type:"plus",value:j});continue}push({type:"plus",value:b});continue}if(j==="@"){if(n.noextglob!==true&&F()==="("&&F(2)!=="?"){push({type:"at",extglob:true,value:j,output:""});continue}push({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j=`\\${j}`}const e=a.exec(remaining());if(e){j+=e[0];T.index+=e[0].length}push({type:"text",value:j});continue}if(H&&(H.type==="globstar"||H.star===true)){H.type="star";H.star=true;H.value+=j;H.output=I;T.backtrack=true;T.globstar=true;consume(j);continue}let t=remaining();if(n.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",j);continue}if(H.type==="star"){if(n.noglobstar===true){consume(j);continue}const r=H.prev;const i=r.prev;const o=r.type==="slash"||r.type==="bos";const s=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:j,output:""});continue}const a=T.braces>0&&(r.type==="comma"||r.type==="brace");const l=L.length&&(r.type==="pipe"||r.type==="paren");if(!o&&r.type!=="paren"&&!a&&!l){push({type:"star",value:j,output:""});continue}while(t.slice(0,3)==="/**"){const n=e[T.index+4];if(n&&n!=="/"){break}t=t.slice(3);consume("/**",3)}if(r.type==="bos"&&eos()){H.type="globstar";H.value+=j;H.output=globstar(n);T.output=H.output;T.globstar=true;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!s&&eos()){T.output=T.output.slice(0,-(r.output+H.output).length);r.output=`(?:${r.output}`;H.type="globstar";H.output=globstar(n)+(n.strictSlashes?")":"|$)");H.value+=j;T.globstar=true;T.output+=r.output+H.output;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(r.output+H.output).length);r.output=`(?:${r.output}`;H.type="globstar";H.output=`${globstar(n)}${A}|${A}${e})`;H.value+=j;T.output+=r.output+H.output;T.globstar=true;consume(j+B());push({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&t[0]==="/"){H.type="globstar";H.value+=j;H.output=`(?:^|${A}|${globstar(n)}${A})`;T.output=H.output;T.globstar=true;consume(j+B());push({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-H.output.length);H.type="globstar";H.output=globstar(n);H.value+=j;T.output+=H.output;T.globstar=true;consume(j);continue}const r={type:"star",value:j,output:I};if(n.bash===true){r.output=".*?";if(H.type==="bos"||H.type==="slash"){r.output=$+r.output}push(r);continue}if(H&&(H.type==="bracket"||H.type==="paren")&&n.regex===true){r.output=j;push(r);continue}if(T.index===T.start||H.type==="slash"||H.type==="dot"){if(H.type==="dot"){T.output+=C;H.output+=C}else if(n.dot===true){T.output+=x;H.output+=x}else{T.output+=$;H.output+=$}if(F()!=="*"){T.output+=v;H.output+=v}}push(r)}while(T.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));T.output=i.escapeLast(T.output,"[");decrement("brackets")}while(T.parens>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));T.output=i.escapeLast(T.output,"(");decrement("parens")}while(T.braces>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));T.output=i.escapeLast(T.output,"{");decrement("braces")}if(n.strictSlashes!==true&&(H.type==="star"||H.type==="bracket")){push({type:"maybe_slash",value:"",output:`${A}?`})}if(T.backtrack===true){T.output="";for(const e of T.tokens){T.output+=e.output!=null?e.output:e.value;if(e.suffix){T.output+=e.suffix}}}return T};parse.fastpaths=(e,t)=>{const n={...t};const s=typeof n.maxLength==="number"?Math.min(o,n.maxLength):o;const a=e.length;if(a>s){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`)}e=c[e]||e;const l=i.isWindows(t);const{DOT_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:_}=r.globChars(l);const b=n.dot?g:h;const A=n.dot?m:h;const v=n.capture?"":"?:";const w={negated:false,prefix:""};let E=n.bash===true?".*?":y;if(n.capture){E=`(${E})`}const globstar=e=>{if(e.noglobstar===true)return E;return`(${v}(?:(?!${_}${e.dot?d:u}).)*?)`};const create=e=>{switch(e){case"*":return`${b}${p}${E}`;case".*":return`${u}${p}${E}`;case"*.*":return`${b}${E}${u}${p}${E}`;case"*/*":return`${b}${E}${f}${p}${A}${E}`;case"**":return b+globstar(n);case"**/*":return`(?:${b}${globstar(n)}${f})?${A}${p}${E}`;case"**/*.*":return`(?:${b}${globstar(n)}${f})?${A}${E}${u}${p}${E}`;case"**/.*":return`(?:${b}${globstar(n)}${f})?${u}${p}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=create(t[1]);if(!n)return;return n+u+t[2]}}};const C=i.removePrefix(e,w);let x=create(C);if(x&&n.strictSlashes!==true){x+=`${f}?`}return x};e.exports=parse},3322:(e,t,n)=>{const r=n(1017);const i=n(2429);const o=n(2139);const s=n(479);const a=n(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,n=false)=>{if(Array.isArray(e)){const r=e.map((e=>picomatch(e,t,n)));const arrayMatcher=e=>{for(const t of r){const n=t(e);if(n)return n}return false};return arrayMatcher}const r=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!r){throw new TypeError("Expected pattern to be a non-empty string")}const i=t||{};const o=s.isWindows(t);const a=r?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const l=a.state;delete a.state;let isIgnored=()=>false;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(i.ignore,e,n)}const matcher=(n,r=false)=>{const{isMatch:s,match:c,output:u}=picomatch.test(n,a,t,{glob:e,posix:o});const f={glob:e,state:l,regex:a,posix:o,input:n,output:u,match:c,isMatch:s};if(typeof i.onResult==="function"){i.onResult(f)}if(s===false){f.isMatch=false;return r?f:false}if(isIgnored(n)){if(typeof i.onIgnore==="function"){i.onIgnore(f)}f.isMatch=false;return r?f:false}if(typeof i.onMatch==="function"){i.onMatch(f)}return r?f:true};if(n){matcher.state=l}return matcher};picomatch.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=n||{};const a=o.format||(i?s.toPosixSlashes:null);let l=e===r;let c=l&&a?a(e):e;if(l===false){c=a?a(e):e;l=c===r}if(l===false||o.capture===true){if(o.matchBase===true||o.basename===true){l=picomatch.matchBase(e,t,n,i)}else{l=t.exec(c)}}return{isMatch:Boolean(l),match:l,output:c}};picomatch.matchBase=(e,t,n,i=s.isWindows(n))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,n);return o.test(r.basename(e))};picomatch.isMatch=(e,t,n)=>picomatch(t,n)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>i(e,t);picomatch.compileRe=(e,t,n=false,r=false)=>{if(n===true){return e.output}const i=t||{};const o=i.contains?"":"^";const s=i.contains?"":"$";let a=`${o}(?:${e.output})${s}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const l=picomatch.toRegex(a,t);if(r===true){l.state=e}return l};picomatch.makeRe=(e,t={},n=false,r=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let i={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){i.output=o.fastpaths(e,t)}if(!i.output){i=o(e,t)}return picomatch.compileRe(i,t,n,r)};picomatch.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,n)=>{const r=n(479);const{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:_}=n(6099);const isPathSeparator=e=>e===u||e===s;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const n=t||{};const b=e.length-1;const A=n.parts===true||n.scanToEnd===true;const v=[];const w=[];const E=[];let C=e;let x=-1;let O=0;let k=0;let S=false;let R=false;let $=false;let P=false;let I=false;let T=false;let L=false;let M=false;let N=false;let H=false;let j=0;let F;let B;let D={value:"",depth:0,isGlob:false};const eos=()=>x>=b;const peek=()=>C.charCodeAt(x+1);const advance=()=>{F=B;return C.charCodeAt(++x)};while(x<b){B=advance();let e;if(B===s){L=D.backslashes=true;B=advance();if(B===f){T=true}continue}if(T===true||B===f){j++;while(eos()!==true&&(B=advance())){if(B===s){L=D.backslashes=true;advance();continue}if(B===f){j++;continue}if(T!==true&&B===l&&(B=advance())===l){S=D.isBrace=true;$=D.isGlob=true;H=true;if(A===true){continue}break}if(T!==true&&B===a){S=D.isBrace=true;$=D.isGlob=true;H=true;if(A===true){continue}break}if(B===m){j--;if(j===0){T=false;S=D.isBrace=true;H=true;break}}}if(A===true){continue}break}if(B===u){v.push(x);w.push(D);D={value:"",depth:0,isGlob:false};if(H===true)continue;if(F===l&&x===O+1){O+=2;continue}k=x+1;continue}if(n.noext!==true){const e=B===h||B===o||B===i||B===g||B===c;if(e===true&&peek()===p){$=D.isGlob=true;P=D.isExtglob=true;H=true;if(B===c&&x===O){N=true}if(A===true){while(eos()!==true&&(B=advance())){if(B===s){L=D.backslashes=true;B=advance();continue}if(B===y){$=D.isGlob=true;H=true;break}}continue}break}}if(B===i){if(F===i)I=D.isGlobstar=true;$=D.isGlob=true;H=true;if(A===true){continue}break}if(B===g){$=D.isGlob=true;H=true;if(A===true){continue}break}if(B===d){while(eos()!==true&&(e=advance())){if(e===s){L=D.backslashes=true;advance();continue}if(e===_){R=D.isBracket=true;$=D.isGlob=true;H=true;break}}if(A===true){continue}break}if(n.nonegate!==true&&B===c&&x===O){M=D.negated=true;O++;continue}if(n.noparen!==true&&B===p){$=D.isGlob=true;if(A===true){while(eos()!==true&&(B=advance())){if(B===p){L=D.backslashes=true;B=advance();continue}if(B===y){H=true;break}}continue}break}if($===true){H=true;if(A===true){continue}break}}if(n.noext===true){P=false;$=false}let U=C;let G="";let W="";if(O>0){G=C.slice(0,O);C=C.slice(O);k-=O}if(U&&$===true&&k>0){U=C.slice(0,k);W=C.slice(k)}else if($===true){U="";W=C}else{U=C}if(U&&U!==""&&U!=="/"&&U!==C){if(isPathSeparator(U.charCodeAt(U.length-1))){U=U.slice(0,-1)}}if(n.unescape===true){if(W)W=r.removeBackslashes(W);if(U&&L===true){U=r.removeBackslashes(U)}}const q={prefix:G,input:e,start:O,base:U,glob:W,isBrace:S,isBracket:R,isGlob:$,isExtglob:P,isGlobstar:I,negated:M,negatedExtglob:N};if(n.tokens===true){q.maxDepth=0;if(!isPathSeparator(B)){w.push(D)}q.tokens=w}if(n.parts===true||n.tokens===true){let t;for(let r=0;r<v.length;r++){const i=t?t+1:O;const o=v[r];const s=e.slice(i,o);if(n.tokens){if(r===0&&O!==0){w[r].isPrefix=true;w[r].value=G}else{w[r].value=s}depth(w[r]);q.maxDepth+=w[r].depth}if(r!==0||s!==""){E.push(s)}t=o}if(t&&t+1<e.length){const r=e.slice(t+1);E.push(r);if(n.tokens){w[w.length-1].value=r;depth(w[w.length-1]);q.maxDepth+=w[w.length-1].depth}}q.slashes=v;q.parts=E}return q};e.exports=scan},479:(e,t,n)=>{const r=n(1017);const i=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:l}=n(6099);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(l,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(s,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return i===true||r.sep==="\\"};t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,n,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`};t.removePrefix=(e,t={})=>{let n=e;if(n.startsWith("./")){n=n.slice(2);t.prefix="./"}return n};t.wrapOutput=(e,t={},n={})=>{const r=n.contains?"":"^";const i=n.contains?"":"$";let o=`${r}(?:${e})${i}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},1861:(e,t,n)=>{
43
43
  /*!
44
44
  * to-regex-range <https://github.com/micromatch/to-regex-range>
45
45
  *
@@ -48,4 +48,4 @@ e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="stri
48
48
  */
49
49
  const r=n(5680);const toRegexRange=(e,t,n)=>{if(r(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(r(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let i={relaxZeros:true,...n};if(typeof i.strictZeros==="boolean"){i.relaxZeros=i.strictZeros===false}let o=String(i.relaxZeros);let s=String(i.shorthand);let a=String(i.capture);let l=String(i.wrap);let c=e+":"+t+"="+o+s+a+l;if(toRegexRange.cache.hasOwnProperty(c)){return toRegexRange.cache[c].result}let u=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(u-f)===1){let n=e+"|"+t;if(i.capture){return`(${n})`}if(i.wrap===false){return n}return`(?:${n})`}let p=hasPadding(e)||hasPadding(t);let d={min:e,max:t,a:u,b:f};let h=[];let g=[];if(p){d.isPadded=p;d.maxLen=String(d.max).length}if(u<0){let e=f<0?Math.abs(f):1;g=splitToPatterns(e,Math.abs(u),d,i);u=d.a=0}if(f>=0){h=splitToPatterns(u,f,d,i)}d.negatives=g;d.positives=h;d.result=collatePatterns(g,h,i);if(i.capture===true){d.result=`(${d.result})`}else if(i.wrap!==false&&h.length+g.length>1){d.result=`(?:${d.result})`}toRegexRange.cache[c]=d;return d.result};function collatePatterns(e,t,n){let r=filterPatterns(e,t,"-",false,n)||[];let i=filterPatterns(t,e,"",false,n)||[];let o=filterPatterns(e,t,"-?",true,n)||[];let s=r.concat(o).concat(i);return s.join("|")}function splitToRanges(e,t){let n=1;let r=1;let i=countNines(e,n);let o=new Set([t]);while(e<=i&&i<=t){o.add(i);n+=1;i=countNines(e,n)}i=countZeros(t+1,r)-1;while(e<i&&i<=t){o.add(i);r+=1;i=countZeros(t+1,r)-1}o=[...o];o.sort(compare);return o}function rangeToPattern(e,t,n){if(e===t){return{pattern:e,count:[],digits:0}}let r=zip(e,t);let i=r.length;let o="";let s=0;for(let e=0;e<i;e++){let[t,i]=r[e];if(t===i){o+=t}else if(t!=="0"||i!=="9"){o+=toCharacterClass(t,i,n)}else{s++}}if(s){o+=n.shorthand===true?"\\d":"[0-9]"}return{pattern:o,count:[s],digits:i}}function splitToPatterns(e,t,n,r){let i=splitToRanges(e,t);let o=[];let s=e;let a;for(let e=0;e<i.length;e++){let t=i[e];let l=rangeToPattern(String(s),String(t),r);let c="";if(!n.isPadded&&a&&a.pattern===l.pattern){if(a.count.length>1){a.count.pop()}a.count.push(l.count[0]);a.string=a.pattern+toQuantifier(a.count);s=t+1;continue}if(n.isPadded){c=padZeros(t,n,r)}l.string=c+l.pattern+toQuantifier(l.count);o.push(l);s=t+1;a=l}return o}function filterPatterns(e,t,n,r,i){let o=[];for(let i of e){let{string:e}=i;if(!r&&!contains(t,"string",e)){o.push(n+e)}if(r&&contains(t,"string",e)){o.push(n+e)}}return o}function zip(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,n){return e.some((e=>e[t]===n))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,n=""]=e;if(n||t>1){return`{${t+(n?","+n:"")}}`}return""}function toCharacterClass(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,n){if(!t.isPadded){return e}let r=Math.abs(t.maxLen-String(e).length);let i=n.relaxZeros!==false;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${r}}`:`0{${r}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},6144:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.resolveWorkspaceRoot=resolveWorkspaceRoot;t.resolveWorkspaceRootAsync=resolveWorkspaceRootAsync;t.getWorkspaceGlobs=getWorkspaceGlobs;t.getWorkspaceGlobsAsync=getWorkspaceGlobsAsync;const i=r(n(9411));const o=r(n(7742));const s=n(2737);const a=n(6455);const l=n(4679);function resolveWorkspaceRoot(e=o.default.cwd(),t={}){return(0,s.searchParentDirs)(e,((e,n)=>{if(t.pnpmWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"pnpm-workspace.yaml"));const r=t&&(0,l.workspaceGlobsFromPnpm)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}if(t.packageWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"package.json"));const r=t&&(0,l.workspaceGlobsFromPackage)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}}))}function resolveWorkspaceRootAsync(e=o.default.cwd(),t={}){return(0,s.searchParentDirsAsync)(e,(async(e,n)=>{if(t.pnpmWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"pnpm-workspace.yaml"));const r=t&&(0,l.workspaceGlobsFromPnpm)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}if(t.packageWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"package.json"));const r=t&&(0,l.workspaceGlobsFromPackage)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}}))}function getWorkspaceGlobs(e=o.default.cwd(),t={}){if(t.pnpmWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"pnpm-workspace.yaml"));const n=t&&(0,l.workspaceGlobsFromPnpm)(t);if(n){return n}}if(t.packageWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"package.json"));const n=t&&(0,l.workspaceGlobsFromPackage)(t);if(n){return n}}return null}async function getWorkspaceGlobsAsync(e=o.default.cwd(),t={}){if(t.pnpmWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"pnpm-workspace.yaml"));const n=t&&(0,l.workspaceGlobsFromPnpm)(t);if(n){return n}}if(t.packageWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"package.json"));const n=t&&(0,l.workspaceGlobsFromPackage)(t);if(n){return n}}return null}},2737:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.searchParentDirs=searchParentDirs;t.searchParentDirsAsync=searchParentDirsAsync;const i=r(n(9411));const o=r(n(7742));function searchParentDirs(e=o.default.cwd(),t){let n=i.default.normalize(e);let r;do{const o=t(n,i.default.relative(n,e));if(o!==undefined){return o}r=n;n=i.default.dirname(n)}while(n!==r);return null}async function searchParentDirsAsync(e,t){let n=i.default.normalize(e);let r;do{const o=await t(n,i.default.relative(n,e));if(o!==undefined){return o}r=n;n=i.default.dirname(n)}while(n!==r);return null}},6455:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.tryReadFile=tryReadFile;t.tryReadFileAsync=tryReadFileAsync;const i=r(n(7561));function tryReadFile(e){try{return i.default.readFileSync(e,{encoding:"utf-8"})}catch(e){if(shouldIgnoreError(e)){return null}throw e}}function tryReadFileAsync(e){return i.default.promises.readFile(e,{encoding:"utf-8"}).catch((e=>{if(shouldIgnoreError(e)){return null}throw e}))}function shouldIgnoreError(e){return"code"in e&&(e.code==="ENOENT"||e.code==="EISDIR")}},4679:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.pathMatchesWorkspaceGlobs=pathMatchesWorkspaceGlobs;t.workspaceGlobsFromPackage=workspaceGlobsFromPackage;t.workspaceGlobsFromPnpm=workspaceGlobsFromPnpm;const i=n(1917);const o=r(n(6228));function pathMatchesWorkspaceGlobs(e,t){return!t||(0,o.default)([t],e).length>0}function workspaceGlobsFromPackage(e){try{const t=JSON.parse(e);if(Array.isArray(t?.workspaces)){return t.workspaces}if(Array.isArray(t?.workspaces?.packages)){return t.workspaces.packages}}catch(e){if(e.name!=="SyntaxError"){throw e}}return null}function workspaceGlobsFromPnpm(e){try{const t=e?(0,i.load)(e):null;if(Array.isArray(t?.packages)){return t.packages}}catch(e){if(e.name!=="YAMLException"){throw e}}return null}},7561:e=>{e.exports=n(3024)},9411:e=>{e.exports=n(6760)},7742:e=>{e.exports=n(1708)},1017:e=>{e.exports=n(6928)},3837:e=>{e.exports=n(9023)}};var r={};function __nccwpck_require2_(e){var n=r[e];if(n!==undefined){return n.exports}var i=r[e]={exports:{}};var o=true;try{t[e].call(i.exports,i,i.exports,__nccwpck_require2_);o=false}finally{if(o)delete r[e]}return i.exports}if(typeof __nccwpck_require2_!=="undefined")__nccwpck_require2_.ab=__dirname+"/";var i=__nccwpck_require2_(6144);e.exports=i})()},5725:(e,t,n)=>{
50
50
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
51
- var r=n(181);var i=r.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return i(e,t,n)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=i(e);if(t!==undefined){if(typeof n==="string"){r.fill(t,n)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},4881:(e,t,n)=>{"use strict";const r=n(1940);e.exports=(e="")=>{const t=e.match(r);if(!t){return null}const[n,i]=t[0].replace(/#! ?/,"").split(" ");const o=n.split("/").pop();if(o==="env"){return i}return i?`${o} ${i}`:o}},1940:e=>{"use strict";e.exports=/^#!(.*)/},3444:e=>{"use strict";var t=1;var n=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,n){return e.slice(t,n).replace(/\S/g," ")}e.exports=function(e,r){r=r||{};var i;var o;var s=false;var a=false;var l=0;var c="";var u=r.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var f=0;f<e.length;f++){i=e[f];o=e[f+1];if(!a&&i==='"'){var p=e[f-1]==="\\"&&e[f-2]!=="\\";if(!p){s=!s}}if(s){continue}if(!a&&i+o==="//"){c+=e.slice(l,f);l=f;a=t;f++}else if(a===t&&i+o==="\r\n"){f++;a=false;c+=u(e,l,f);l=f;continue}else if(a===t&&i==="\n"){a=false;c+=u(e,l,f);l=f}else if(!a&&i+o==="/*"){c+=e.slice(l,f);l=f;a=n;f++;continue}else if(a===n&&i+o==="*/"){f++;a=false;c+=u(e,l,f+1);l=f+1;continue}}return c+(a?u(e.substr(l)):e.substr(l))}},6480:(e,t,n)=>{"use strict";const r=n(857);const i=n(2018);const o=n(4167);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},6678:(e,t,n)=>{"use strict";const r=n(6480);const i=n(4167);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never")){return false}if(i("hyperlink=true")||i("hyperlink=always")){return true}if("NETLIFY"in t){return true}if(!r.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3;case"WezTerm":return e.major>=20200620;case"vscode":return e.major>1||e.major===1&&e.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},5787:(e,t,n)=>{"use strict";const r=n(2604);const i=n(6678);const terminalLink=(e,t,{target:n="stdout",...o}={})=>{if(!i[n]){if(o.fallback===false){return e}return typeof o.fallback==="function"?o.fallback(e,t):`${e} (​${t}​)`}return r.link(e,t)};e.exports=(e,t,n={})=>terminalLink(e,t,n);e.exports.stderr=(e,t,n={})=>terminalLink(e,t,{target:"stderr",...n});e.exports.isSupported=i.stdout;e.exports.stderr.isSupported=i.stderr},5059:(e,t,n)=>{const{URL:r}=n(7016);const{join:i}=n(6928);const o=n(9896);const{promisify:s}=n(9023);const{tmpdir:a}=n(857);const l=n(3805);const c=s(o.writeFile);const u=s(o.mkdir);const f=s(o.readFile);const compareVersions=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const encode=e=>encodeURIComponent(e).replace(/^%40/,"@");const getFile=async(e,t)=>{const n=a();const r=i(n,"update-check");if(!o.existsSync(r)){await u(r)}let s=`${e.name}-${t}.json`;if(e.scope){s=`${e.scope}-${s}`}return i(r,s)};const evaluateCache=async(e,t,n)=>{if(o.existsSync(e)){const r=await f(e,"utf8");const{lastUpdate:i,latest:o}=JSON.parse(r);const s=i+n;if(s>t){return{shouldCheck:false,latest:o}}}return{shouldCheck:true,latest:null}};const updateCache=async(e,t,n)=>{const r=JSON.stringify({latest:t,lastUpdate:n});await c(e,r,"utf8")};const loadPackage=(e,t)=>new Promise(((r,i)=>{const o={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){o.headers.authorization=`${t.type} ${t.token}`}const{get:s}=n(e.protocol==="https:"?5692:8611);s(o,(e=>{const{statusCode:t}=e;if(t!==200){const n=new Error(`Request failed with code ${t}`);n.code=t;i(n);e.resume();return}let n="";e.setEncoding("utf8");e.on("data",(e=>{n+=e}));e.on("end",(()=>{try{const e=JSON.parse(n);r(e)}catch(e){i(e)}}))})).on("error",i).on("timeout",i)}));const getMostRecent=async({full:e,scope:t},i)=>{const o=l(t);const s=new r(e,o);let a=null;try{a=await loadPackage(s)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=n(4133);const t=e(o,{recursive:true});a=await loadPackage(s,t)}else{throw e}}const c=a["dist-tags"][i];if(!c){throw new Error(`Distribution tag ${i} is not available`)}return c};const p={interval:36e5,distTag:"latest"};const getDetails=e=>{const t={full:encode(e)};if(e.includes("/")){const n=e.split("/");t.scope=n[0];t.name=n[1]}else{t.scope=null;t.name=e}return t};e.exports=async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const n=getDetails(e.name);const r=Date.now();const{distTag:i,interval:o}=Object.assign({},p,t);const s=await getFile(n,i);let a=null;let l=true;({shouldCheck:l,latest:a}=await evaluateCache(s,r,o));if(l){a=await getMostRecent(n,i);await updateCache(s,a,r)}const c=compareVersions(e.version,a);if(c===-1){return{latest:a,fromCache:!l}}return null}},1192:(e,t,n)=>{const r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const i=n(6928);const o=r?";":":";const s=n(7105);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const n=t.colon||o;const i=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)];const s=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=r?s.split(n):[""];if(r){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:i,pathExt:a,pathExtExe:s}};const which=(e,t,n)=>{if(typeof t==="function"){n=t;t={}}if(!t)t={};const{pathEnv:r,pathExt:o,pathExtExe:a}=getPathInfo(e,t);const l=[];const step=n=>new Promise(((o,s)=>{if(n===r.length)return t.all&&l.length?o(l):s(getNotFoundError(e));const a=r[n];const c=/^".*"$/.test(a)?a.slice(1,-1):a;const u=i.join(c,e);const f=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(subStep(f,n,0))}));const subStep=(e,n,r)=>new Promise(((i,c)=>{if(r===o.length)return i(step(n+1));const u=o[r];s(e+u,{pathExt:a},((o,s)=>{if(!o&&s){if(t.all)l.push(e+u);else return i(e+u)}return i(subStep(e,n,r+1))}))}));return n?step(0).then((e=>n(null,e)),n):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=getPathInfo(e,t);const a=[];for(let l=0;l<n.length;l++){const c=n[l];const u=/^".*"$/.test(c)?c.slice(1,-1):c;const f=i.join(u,e);const p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<r.length;e++){const n=p+r[e];try{const e=s.sync(n,{pathExt:o});if(e){if(t.all)a.push(n);else return n}}catch(e){}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},4781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});0&&0;function _export(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:true,get:Object.getOwnPropertyDescriptor(t,n).get})}_export(t,{get CocoaPodsError(){return CocoaPodsError},get CocoaPodsPackageManager(){return CocoaPodsPackageManager},get extractMissingDependencyError(){return extractMissingDependencyError},get getImprovedPodInstallError(){return getImprovedPodInstallError},get getPodRepoUpdateMessage(){return getPodRepoUpdateMessage},get getPodUpdateMessage(){return getPodUpdateMessage}});function _spawnasync(){const e=_interop_require_default(n(3970));_spawnasync=function(){return e};return e}function _chalk(){const e=_interop_require_default(n(2314));_chalk=function(){return e};return e}function _fs(){const e=_interop_require_default(n(9896));_fs=function(){return e};return e}function _os(){const e=_interop_require_default(n(857));_os=function(){return e};return e}function _path(){const e=_interop_require_default(n(6928));_path=function(){return e};return e}const r=n(3884);function _interop_require_default(e){return e&&e.__esModule?e:{default:e}}class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(e,t,n){super(n?`${e}\n└─ Cause: ${n.message}`:e),this.code=t,this.cause=n}}function extractMissingDependencyError(e){const t=e.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(t!=null&&t[1]!=null&&t[2]!=null){return[t[1],t[2]]}return null}class CocoaPodsPackageManager{options;silent;cwd;static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=_path().default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;const n=_path().default.join(e,"macos");if(CocoaPodsPackageManager.isUsingPods(n))return n;return null}static isUsingPods(e){return _fs().default.existsSync(_path().default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const n=["install","cocoapods","--no-document"];try{await(0,_spawnasync().default)("gem",n,t)}catch(r){if(e){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",r)}console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,_spawnasync().default)("sudo",["gem",...n],t)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await(0,_spawnasync().default)("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await(0,_spawnasync().default)("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}const n=!!t.ignoreStdio;try{!n&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!n&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(e){if(!n){console.log(_chalk().default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(_chalk().default.red(e.stderr??e.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",e)}}catch(e){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",e)}}!n&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(e){!n&&console.warn(_chalk().default.yellow(`› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`,"NO_CLI",e)}}}static isAvailable(e,t){if(process.platform!=="darwin"){!t&&console.log(_chalk().default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(e)){!t&&console.log(_chalk().default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(e={stdio:"inherit"},{useBundler:t=false}={}){try{if(t){await(0,_spawnasync().default)("bundle",["exec","pod","--version"],e)}else{await(0,_spawnasync().default)("pod",["--version"],e)}return true}catch(e){if(t){console.warn(_chalk().default.yellow(`› Failed to run \`bundle exec pod\``));throw new CocoaPodsError(e.stderr,"COMMAND_FAILED")}return false}}constructor({cwd:e,silent:t,useBundler:n}){this.silent=!!t;this.cwd=e;this.options={cwd:e,stdio:"pipe"};if(n!=null){this._useBundler=Promise.resolve(n)}}_useBundler;async#e(){return this._useBundler||=(0,r.isUsingBundlerAsync)(this.cwd)}get name(){return"CocoaPods"}async installAsync({spinner:e}={}){await this._installAsync({spinner:e})}async isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options,{useBundler:await this.#e()})}installCLIAsync({nonInteractive:e=true,spawnOptions:t}={}){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:e,spawnOptions:{...this.options,...t}})}async handleInstallErrorAsync({error:e,shouldUpdate:t=true,updatedPackages:n=[],spinner:r}){if(!e.output){throw e}if(!t){throw getImprovedPodInstallError(e,{cwd:this.options.cwd})}const i=e.output.join(_os().default.EOL).trim();const{updatePackage:o,shouldUpdateRepo:s}=getPodUpdateMessage(i);if(!o||n.includes(o)){return await this._installAsync({spinner:r,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:n})}n.push(o);return await this.runInstallTypeCommandAsync(["update",o,s?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const e=`Failed to update ${_chalk().default.bold(o)}. Attempting to update the repo instead.`;return e},spinner:r,updatedPackages:n})}async _installAsync({shouldRepoUpdate:e,...t}={}){return await this.runInstallTypeCommandAsync(["install",e?"--repo-update":""].filter(Boolean),{formatWarning(e){return getPodRepoUpdateMessage(e.output.join(_os().default.EOL).trim()).message},...t})}async runInstallTypeCommandAsync(e,{formatWarning:t,...n}={}){try{return await this._runAsync(e)}catch(e){if(t){const r=t(e);if(n.spinner){n.spinner.text=_chalk().default.bold(r)}if(!this.silent){console.warn(_chalk().default.yellow(r))}}return await this.handleInstallErrorAsync({error:e,...n})}}async addWithParametersAsync(e,t){throw new Error("Unimplemented")}addAsync(e=[]){throw new Error("Unimplemented")}addDevAsync(e=[]){throw new Error("Unimplemented")}addGlobalAsync(e=[]){throw new Error("Unimplemented")}removeAsync(e=[]){throw new Error("Unimplemented")}removeDevAsync(e=[]){throw new Error("Unimplemented")}removeGlobalAsync(e=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await this.#e()?await(0,_spawnasync().default)("bundle",["exec","pod","--version"],this.options):await(0,_spawnasync().default)("pod",["--version"],this.options);return e.trim()}async configAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async _runAsync(e){const t=await this.#e();const[n,r]=t?["bundle",["exec","pod",...e,"--ansi"]]:["pod",[...e,"--ansi"]];if(!this.silent){console.log(`> ${t?"bundle exec pod":"pod"} ${e.join(" ")}`)}const i=(0,_spawnasync().default)(n,r,{...this.options,stdio:"pipe"});if(!this.silent){if(i.child.stdout){i.child.stdout.pipe(process.stdout)}}return await i}}function shouldPodRepoUpdate(e){const t=e;const n=t.includes("pod repo update")||t.includes("--no-repo-update");return n}function getPodUpdateMessage(e){const t=e.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:t?.[1]??null,shouldUpdateRepo:!t?.[2]}}function getPodRepoUpdateMessage(e){const t=extractMissingDependencyError(e);const n=getPodUpdateMessage(e);let r;if(t){r=`Couldn't install: ${t[1]} » ${_chalk().default.underline(t[0])}.`}else if(n?.updatePackage){r=`Couldn't install: ${n?.updatePackage}.`}else{r=`Couldn't install Pods.`}r+=` Updating the Pods project and trying again...`;return{message:r,...n}}function getImprovedPodInstallError(e,{cwd:t=process.cwd()}){const n=e.output.join(_os().default.EOL).trim();if(e.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){e.message=`No Podfile found in directory: ${t}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(n)){const t=extractMissingDependencyError(n);let r;if(t){r=`Couldn't install: ${t[1]} » ${_chalk().default.underline(t[0])}`}else{r=`This is often due to native package versions mismatching`}let i;if(t?.[0]){if(t[0].match(/^(?:@?expo|@?react)(-|\/)/)){i=`Ensure the node module "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{i=`Ensure the CocoaPod "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{i=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}e.message=`${r}. ${i}`;if(e.stdout){const t=e.stdout.split(_os().default.EOL);const n=t.findIndex((e=>e.startsWith("[!]")));if(n!==-1){const r=t.slice(n).join(_os().default.EOL);e.message+=`\n\n${_chalk().default.gray(r)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",e)}else{let t=e.stderr.trim();const n=e.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(n){if(e.message?.match(/pod exited with non-zero code: 1/)){e.message=""}t=null}e.message=[n,e.message,t].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",e)}},3884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});0&&0;function _export(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:true,get:Object.getOwnPropertyDescriptor(t,n).get})}_export(t,{get findGemfile(){return findGemfile},get isUsingBundlerAsync(){return isUsingBundlerAsync}});function _spawnasync(){const e=_interop_require_default(n(3970));_spawnasync=function(){return e};return e}function _fs(){const e=_interop_require_default(n(9896));_fs=function(){return e};return e}function _os(){const e=_interop_require_default(n(857));_os=function(){return e};return e}function _path(){const e=_interop_require_default(n(6928));_path=function(){return e};return e}function _resolveworkspaceroot(){const e=n(8665);_resolveworkspaceroot=function(){return e};return e}function _interop_require_default(e){return e&&e.__esModule?e:{default:e}}const maybeStat=e=>_fs().default.promises.stat(_path().default.resolve(e)).catch((()=>null));async function getGitTopLevelAsync(e=process.cwd()){try{const t=await(0,_spawnasync().default)("git",["rev-parse","--show-toplevel"],{cwd:e});const n=_path().default.resolve(t.stdout.trim());return(await maybeStat(n))?.isDirectory()?n:null}catch{return null}}async function getGitRootPathAsync(e=process.cwd()){const t=_path().default.normalize(_os().default.homedir());for(let n=e;_path().default.dirname(n)!==n;n=_path().default.dirname(n)){if((await maybeStat(_path().default.join(n,".git")))?.isDirectory()){return n}if(n===t)break}return null}async function getRootPathAsync(e=process.cwd()){const t=await getGitTopLevelAsync(e)||await getGitRootPathAsync(e)||await(0,_resolveworkspaceroot().resolveWorkspaceRootAsync)(e)||process.cwd();return t}async function findGemfile(e=process.cwd()){const t=_path().default.normalize(await getRootPathAsync(e));for(let n=e;_path().default.dirname(n)!==n;n=_path().default.dirname(n)){const e=_path().default.join(n,"Gemfile");if((await maybeStat(e))?.isFile()){return e}if(n===t)break}return null}async function isUsingBundlerAsync(e){const t=await findGemfile(e);if(!t){return false}const[n,r]=await Promise.allSettled([_fs().default.promises.readFile(t,"utf8"),(0,_spawnasync().default)("bundle",["exec","pod","--version"],{cwd:e,stdio:"ignore"})]);if(n.status==="rejected"||r.status==="rejected"){return false}else{return/gem\s*\(?\s*(?:'cocoapods'|"cocoapods")/.test(n.value)}}},3887:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,r,i)}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),o=0;o<n.length;o++)if(n[o]!=="default")r(t,e,n[o]);i(t,e);return t}}();var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=n(4781);const l=s(n(2314));const c=n(1414);const u=n(9896);const f=n(6928);const p=o(n(2530));const d=n(3670);const packageJSON=()=>{try{return n(8330)}catch{return null}};function info(e){if(!h.opts().quiet){console.log(e)}}async function runAsync(e){if(process.platform!=="darwin"){info(l.default.yellow("⚠️ CocoaPods is only supported on darwin machines"));process.exit(0)}const t=e&&!e.startsWith("--");const n=(0,f.resolve)(t?e:process.cwd());if(!(0,u.existsSync)(n)){info(l.default.red(`\n💥 Target directory does not exist: ${n}\n`));process.exit(1)}const r=a.CocoaPodsPackageManager.getPodProjectRoot(n);if(!r){const e=(0,f.join)(n,"package.json");if(!(0,u.existsSync)(e)){info(l.default.red(`\n💥 'package.json' file does not exist: ${e}\n`));process.exit(1)}const r=JSON.parse((0,u.readFileSync)(e).toString());const i=r.dependencies?.hasOwnProperty("expo");if(i){info(l.default.yellow(`⚠️ No 'ios' directory found, skipping installing pods.`,`\nPods will be automatically installed when the 'ios' directory is generated with 'npx expo prebuild' or 'npx expo run:ios'.`,(0,d.learnMore)("https://docs.expo.dev/workflow/prebuild/")));process.exit(0)}if(t){info(l.default.yellow(`⚠️ CocoaPods is not supported in project at ${n}`))}else{info(l.default.yellow("⚠️ CocoaPods is not supported in this project"))}process.exit(0)}info("🔍️ Scanning for pods...");try{const e=new a.CocoaPodsPackageManager({cwd:r});if(!await e.isCLIInstalledAsync()){await e.installCLIAsync({nonInteractive:h.opts().nonInteractive})}await e.installAsync()}catch(e){if(e.isPackageManagerError){console.error(l.default.red(e.message));process.exit(1)}throw e}}const h=new c.Command(packageJSON()?.name??p.PACKAGE_NAME).version(packageJSON()?.version??"0.0.0").arguments("[project-directory]").usage(`${l.default.green("[project-directory]")} [options]`).description("A fast, zero-dependency package for cutting down on common issues developers have when running pod install.").option("--quiet","only print errors").option("--non-interactive","disable interactive prompts").allowUnknownOption().parse(process.argv).action((async e=>{try{await runAsync(e);if(!h.opts().quiet){await(0,p.default)()}}catch(e){console.log("\nAborting run");if(e.command){console.log(` ${l.default.magenta(e.command)} has failed.`)}else{console.log(l.default.red`💥 An unexpected error was encountered. Report it on GitHub: https://github.com/expo/expo/issues`);console.log(e)}console.log();if(!h.opts().quiet){await(0,p.default)()}process.exit(1)}}));(async()=>{await h.parseAsync(process.argv)})()},2530:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.PACKAGE_NAME=void 0;t["default"]=shouldUpdate;const i=r(n(2314));const o=r(n(5059));t.PACKAGE_NAME="pod-install";async function shouldUpdate(){const packageJson=()=>{try{return n(3986)}catch{return null}};const e=(0,o.default)(packageJson()).catch((()=>null));try{const n=await e;if(n&&n.latest){const e=packageJson();console.log();console.log(i.default.yellow.bold(`A new version of \`${e?.name??t.PACKAGE_NAME}\` is available`));console.log("You can update by running: "+i.default.cyan(`npm i -g ${e?.name??t.PACKAGE_NAME}`));console.log()}}catch{}}},3670:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.learnMore=learnMore;const i=r(n(2314));const o=r(n(5787));function learnMore(e){return(0,o.default)(i.default.underline("Learn more."),e,{fallback:(e,t)=>`Learn more: ${i.default.underline(t)}`})}},3986:module=>{module.exports=eval("require")("uri-scheme/package.json")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},1421:e=>{"use strict";e.exports=require("node:child_process")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},6760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},1414:(e,t,n)=>{const{Argument:r}=n(1047);const{Command:i}=n(1175);const{CommanderError:o,InvalidArgumentError:s}=n(4848);const{Help:a}=n(8151);const{Option:l}=n(513);t.program=new i;t.createCommand=e=>new i(e);t.createOption=(e,t)=>new l(e,t);t.createArgument=(e,t)=>new r(e,t);t.Command=i;t.Option=l;t.Argument=r;t.Help=a;t.CommanderError=o;t.InvalidArgumentError=s;t.InvalidOptionArgumentError=s},1047:(e,t,n)=>{const{InvalidArgumentError:r}=n(4848);class Argument{constructor(e,t){this.description=t||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(e[0]){case"<":this.required=true;this._name=e.slice(1,-1);break;case"[":this.required=false;this._name=e.slice(1,-1);break;default:this.required=true;this._name=e;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}argParser(e){this.parseArg=e;return this}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(e){const t=e.name()+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=Argument;t.humanReadableArgName=humanReadableArgName},1175:(e,t,n)=>{const r=n(8474).EventEmitter;const i=n(1421);const o=n(6760);const s=n(3024);const a=n(1708);const{Argument:l,humanReadableArgName:c}=n(1047);const{CommanderError:u}=n(4848);const{Help:f}=n(8151);const{Option:p,DualOptions:d}=n(513);const{suggestSimilar:h}=n(6587);class Command extends r{constructor(e){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=e||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:undefined,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:undefined,outputError:(e,t)=>t(e)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={}}copyInheritedSettings(e){this._outputConfiguration=e._outputConfiguration;this._helpOption=e._helpOption;this._helpCommand=e._helpCommand;this._helpConfiguration=e._helpConfiguration;this._exitCallback=e._exitCallback;this._storeOptionsAsProperties=e._storeOptionsAsProperties;this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue;this._allowExcessArguments=e._allowExcessArguments;this._enablePositionalOptions=e._enablePositionalOptions;this._showHelpAfterError=e._showHelpAfterError;this._showSuggestionAfterError=e._showSuggestionAfterError;return this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent){e.push(t)}return e}command(e,t,n){let r=t;let i=n;if(typeof r==="object"&&r!==null){i=r;r=null}i=i||{};const[,o,s]=e.match(/([^ ]+) *(.*)/);const a=this.createCommand(o);if(r){a.description(r);a._executableHandler=true}if(i.isDefault)this._defaultCommandName=a._name;a._hidden=!!(i.noHelp||i.hidden);a._executableFile=i.executableFile||null;if(s)a.arguments(s);this._registerCommand(a);a.parent=this;a.copyInheritedSettings(this);if(r)return this;return a}createCommand(e){return new Command(e)}createHelp(){return Object.assign(new f,this.configureHelp())}configureHelp(e){if(e===undefined)return this._helpConfiguration;this._helpConfiguration=e;return this}configureOutput(e){if(e===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,e);return this}showHelpAfterError(e=true){if(typeof e!=="string")e=!!e;this._showHelpAfterError=e;return this}showSuggestionAfterError(e=true){this._showSuggestionAfterError=!!e;return this}addCommand(e,t){if(!e._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}t=t||{};if(t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=true;this._registerCommand(e);e.parent=this;e._checkForBrokenPassThrough();return this}createArgument(e,t){return new l(e,t)}argument(e,t,n,r){const i=this.createArgument(e,t);if(typeof n==="function"){i.default(r).argParser(n)}else{i.default(n)}this.addArgument(i);return this}arguments(e){e.trim().split(/ +/).forEach((e=>{this.argument(e)}));return this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic){throw new Error(`only the last argument can be variadic '${t.name()}'`)}if(e.required&&e.defaultValue!==undefined&&e.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${e.name()}'`)}this.registeredArguments.push(e);return this}helpCommand(e,t){if(typeof e==="boolean"){this._addImplicitHelpCommand=e;return this}e=e??"help [command]";const[,n,r]=e.match(/([^ ]+) *(.*)/);const i=t??"display help for command";const o=this.createCommand(n);o.helpOption(false);if(r)o.arguments(r);if(i)o.description(i);this._addImplicitHelpCommand=true;this._helpCommand=o;return this}addHelpCommand(e,t){if(typeof e!=="object"){this.helpCommand(e,t);return this}this._addImplicitHelpCommand=true;this._helpCommand=e;return this}_getHelpCommand(){const e=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(e){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e)){throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`)}if(this._lifeCycleHooks[e]){this._lifeCycleHooks[e].push(t)}else{this._lifeCycleHooks[e]=[t]}return this}exitOverride(e){if(e){this._exitCallback=e}else{this._exitCallback=e=>{if(e.code!=="commander.executeSubCommandAsync"){throw e}else{}}}return this}_exit(e,t,n){if(this._exitCallback){this._exitCallback(new u(e,t,n))}a.exit(e)}action(e){const listener=t=>{const n=this.registeredArguments.length;const r=t.slice(0,n);if(this._storeOptionsAsProperties){r[n]=this}else{r[n]=this.opts()}r.push(this);return e.apply(this,r)};this._actionHandler=listener;return this}createOption(e,t){return new p(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code==="commander.invalidArgument"){const t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){const knownBy=e=>[e.name()].concat(e.aliases());const t=knownBy(e).find((e=>this._findCommand(e)));if(t){const n=knownBy(this._findCommand(t)).join("|");const r=knownBy(e).join("|");throw new Error(`cannot add command '${r}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name();const n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");if(!this._findOption(t)){this.setOptionValueWithSource(n,e.defaultValue===undefined?true:e.defaultValue,"default")}}else if(e.defaultValue!==undefined){this.setOptionValueWithSource(n,e.defaultValue,"default")}const handleOptionValue=(t,r,i)=>{if(t==null&&e.presetArg!==undefined){t=e.presetArg}const o=this.getOptionValue(n);if(t!==null&&e.parseArg){t=this._callParseArg(e,t,o,r)}else if(t!==null&&e.variadic){t=e._concatValue(t,o)}if(t==null){if(e.negate){t=false}else if(e.isBoolean()||e.optional){t=true}else{t=""}}this.setOptionValueWithSource(n,t,i)};this.on("option:"+t,(t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,n,"cli")}));if(e.envVar){this.on("optionEnv:"+t,(t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,n,"env")}))}return this}_optionEx(e,t,n,r,i){if(typeof t==="object"&&t instanceof p){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const o=this.createOption(t,n);o.makeOptionMandatory(!!e.mandatory);if(typeof r==="function"){o.default(i).argParser(r)}else if(r instanceof RegExp){const e=r;r=(t,n)=>{const r=e.exec(t);return r?r[0]:n};o.default(i).argParser(r)}else{o.default(r)}return this.addOption(o)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:true},e,t,n,r)}combineFlagAndOptionalValue(e=true){this._combineFlagAndOptionalValue=!!e;return this}allowUnknownOption(e=true){this._allowUnknownOption=!!e;return this}allowExcessArguments(e=true){this._allowExcessArguments=!!e;return this}enablePositionalOptions(e=true){this._enablePositionalOptions=!!e;return this}passThroughOptions(e=true){this._passThroughOptions=!!e;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(e=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!e;return this}getOptionValue(e){if(this._storeOptionsAsProperties){return this[e]}return this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,undefined)}setOptionValueWithSource(e,t,n){if(this._storeOptionsAsProperties){this[e]=t}else{this._optionValues[e]=t}this._optionValueSources[e]=n;return this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;this._getCommandAndAncestors().forEach((n=>{if(n.getOptionValueSource(e)!==undefined){t=n.getOptionValueSource(e)}}));return t}_prepareUserArgs(e,t){if(e!==undefined&&!Array.isArray(e)){throw new Error("first parameter to parse must be array or undefined")}t=t||{};if(e===undefined&&t.from===undefined){if(a.versions?.electron){t.from="electron"}const e=a.execArgv??[];if(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print")){t.from="eval"}}if(e===undefined){e=a.argv}this.rawArgs=e.slice();let n;switch(t.from){case undefined:case"node":this._scriptPath=e[1];n=e.slice(2);break;case"electron":if(a.defaultApp){this._scriptPath=e[1];n=e.slice(2)}else{n=e.slice(1)}break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return n}parse(e,t){const n=this._prepareUserArgs(e,t);this._parseCommand([],n);return this}async parseAsync(e,t){const n=this._prepareUserArgs(e,t);await this._parseCommand([],n);return this}_executeSubCommand(e,t){t=t.slice();let n=false;const r=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(e,t){const n=o.resolve(e,t);if(s.existsSync(n))return n;if(r.includes(o.extname(t)))return undefined;const i=r.find((e=>s.existsSync(`${n}${e}`)));if(i)return`${n}${i}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let l=e._executableFile||`${this._name}-${e._name}`;let c=this._executableDir||"";if(this._scriptPath){let e;try{e=s.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}c=o.resolve(o.dirname(e),c)}if(c){let t=findFile(c,l);if(!t&&!e._executableFile&&this._scriptPath){const n=o.basename(this._scriptPath,o.extname(this._scriptPath));if(n!==this._name){t=findFile(c,`${n}-${e._name}`)}}l=t||l}n=r.includes(o.extname(l));let f;if(a.platform!=="win32"){if(n){t.unshift(l);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=i.spawn(a.argv[0],t,{stdio:"inherit"})}else{f=i.spawn(l,t,{stdio:"inherit"})}}else{t.unshift(l);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=i.spawn(a.execPath,t,{stdio:"inherit"})}if(!f.killed){const e=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];e.forEach((e=>{a.on(e,(()=>{if(f.killed===false&&f.exitCode===null){f.kill(e)}}))}))}const p=this._exitCallback;f.on("close",(e=>{e=e??1;if(!p){a.exit(e)}else{p(new u(e,"commander.executeSubCommandAsync","(close)"))}}));f.on("error",(t=>{if(t.code==="ENOENT"){const t=c?`searched for local subcommand relative to directory '${c}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const n=`'${l}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t}`;throw new Error(n)}else if(t.code==="EACCES"){throw new Error(`'${l}' not executable`)}if(!p){a.exit(1)}else{const e=new u(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t;p(e)}}));this.runningCommand=f}_dispatchSubcommand(e,t,n){const r=this._findCommand(e);if(!r)this.help({error:true});let i;i=this._chainOrCallSubCommandHook(i,r,"preSubcommand");i=this._chainOrCall(i,(()=>{if(r._executableHandler){this._executeSubCommand(r,t.concat(n))}else{return r._parseCommand(t,n)}}));return i}_dispatchHelpCommand(e){if(!e){this.help()}const t=this._findCommand(e);if(t&&!t._executableHandler){t.help()}return this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((e,t)=>{if(e.required&&this.args[t]==null){this.missingArgument(e.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){const i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((t,n)=>{let r=t.defaultValue;if(t.variadic){if(n<this.args.length){r=this.args.slice(n);if(t.parseArg){r=r.reduce(((e,n)=>myParseArg(t,n,e)),t.defaultValue)}}else if(r===undefined){r=[]}}else if(n<this.args.length){r=this.args[n];if(t.parseArg){r=myParseArg(t,r,t.defaultValue)}}e[n]=r}));this.processedArgs=e}_chainOrCall(e,t){if(e&&e.then&&typeof e.then==="function"){return e.then((()=>t()))}return t()}_chainOrCallHooks(e,t){let n=e;const r=[];this._getCommandAndAncestors().reverse().filter((e=>e._lifeCycleHooks[t]!==undefined)).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{r.push({hookedCommand:e,callback:t})}))}));if(t==="postAction"){r.reverse()}r.forEach((e=>{n=this._chainOrCall(n,(()=>e.callback(e.hookedCommand,this)))}));return n}_chainOrCallSubCommandHook(e,t,n){let r=e;if(this._lifeCycleHooks[n]!==undefined){this._lifeCycleHooks[n].forEach((e=>{r=this._chainOrCall(r,(()=>e(this,t)))}))}return r}_parseCommand(e,t){const n=this.parseOptions(t);this._parseOptionsEnv();this._parseOptionsImplied();e=e.concat(n.operands);t=n.unknown;this.args=e.concat(t);if(e&&this._findCommand(e[0])){return this._dispatchSubcommand(e[0],e.slice(1),t)}if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(e[1])}if(this._defaultCommandName){this._outputHelpIfRequested(t);return this._dispatchSubcommand(this._defaultCommandName,e,t)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(n.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(n.unknown.length>0){this.unknownOption(n.unknown[0])}};const r=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let n;n=this._chainOrCallHooks(n,"preAction");n=this._chainOrCall(n,(()=>this._actionHandler(this.processedArgs)));if(this.parent){n=this._chainOrCall(n,(()=>{this.parent.emit(r,e,t)}))}n=this._chainOrCallHooks(n,"postAction");return n}if(this.parent&&this.parent.listenerCount(r)){checkForUnknownOptions();this._processArguments();this.parent.emit(r,e,t)}else if(e.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",e,t)}if(this.listenerCount("command:*")){this.emit("command:*",e,t)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(e){if(!e)return undefined;return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e=>{e.options.forEach((t=>{if(t.mandatory&&e.getOptionValue(t.attributeName())===undefined){e.missingMandatoryOptionValue(t)}}))}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();if(this.getOptionValue(t)===undefined){return false}return this.getOptionValueSource(t)!=="default"}));const t=e.filter((e=>e.conflictsWith.length>0));t.forEach((t=>{const n=e.find((e=>t.conflictsWith.includes(e.attributeName())));if(n){this._conflictingOption(t,n)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e=>{e._checkForConflictingLocalOptions()}))}parseOptions(e){const t=[];const n=[];let r=t;const i=e.slice();function maybeOption(e){return e.length>1&&e[0]==="-"}let o=null;while(i.length){const e=i.shift();if(e==="--"){if(r===n)r.push(e);r.push(...i);break}if(o&&!maybeOption(e)){this.emit(`option:${o.name()}`,e);continue}o=null;if(maybeOption(e)){const t=this._findOption(e);if(t){if(t.required){const e=i.shift();if(e===undefined)this.optionMissingArgument(t);this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;if(i.length>0&&!maybeOption(i[0])){e=i.shift()}this.emit(`option:${t.name()}`,e)}else{this.emit(`option:${t.name()}`)}o=t.variadic?t:null;continue}}if(e.length>2&&e[0]==="-"&&e[1]!=="-"){const t=this._findOption(`-${e[1]}`);if(t){if(t.required||t.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${t.name()}`,e.slice(2))}else{this.emit(`option:${t.name()}`);i.unshift(`-${e.slice(2)}`)}continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("=");const n=this._findOption(e.slice(0,t));if(n&&(n.required||n.optional)){this.emit(`option:${n.name()}`,e.slice(t+1));continue}}if(maybeOption(e)){r=n}if((this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(e)){t.push(e);if(i.length>0)n.push(...i);break}else if(this._getHelpCommand()&&e===this._getHelpCommand().name()){t.push(e);if(i.length>0)t.push(...i);break}else if(this._defaultCommandName){n.push(e);if(i.length>0)n.push(...i);break}}if(this._passThroughOptions){r.push(e);if(i.length>0)r.push(...i);break}r.push(e)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={};const t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const n=t||{};const r=n.exitCode||1;const i=n.code||"commander.error";this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in a.env){const t=e.attributeName();if(this.getOptionValue(t)===undefined||["default","config","env"].includes(this.getOptionValueSource(t))){if(e.required||e.optional){this.emit(`optionEnv:${e.name()}`,a.env[e.envVar])}else{this.emit(`optionEnv:${e.name()}`)}}}}))}_parseOptionsImplied(){const e=new d(this.options);const hasCustomOptionValue=e=>this.getOptionValue(e)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((t=>t.implied!==undefined&&hasCustomOptionValue(t.attributeName())&&e.valueFromOption(this.getOptionValue(t.attributeName()),t))).forEach((e=>{Object.keys(e.implied).filter((e=>!hasCustomOptionValue(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const findBestOptionFromValue=e=>{const t=e.attributeName();const n=this.getOptionValue(t);const r=this.options.find((e=>e.negate&&t===e.attributeName()));const i=this.options.find((e=>!e.negate&&t===e.attributeName()));if(r&&(r.presetArg===undefined&&n===false||r.presetArg!==undefined&&n===r.presetArg)){return r}return i||e};const getErrorMessage=e=>{const t=findBestOptionFromValue(e);const n=t.attributeName();const r=this.getOptionValueSource(n);if(r==="env"){return`environment variable '${t.envVar}'`}return`option '${t.flags}'`};const n=`error: ${getErrorMessage(e)} cannot be used with ${getErrorMessage(t)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[];let r=this;do{const e=r.createHelp().visibleOptions(r).filter((e=>e.long)).map((e=>e.long));n=n.concat(e);r=r.parent}while(r&&!r._enablePositionalOptions);t=h(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length;const n=t===1?"":"s";const r=this.parent?` for '${this.name()}'`:"";const i=`error: too many arguments${r}. Expected ${t} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach((e=>{n.push(e.name());if(e.alias())n.push(e.alias())}));t=h(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===undefined)return this._version;this._version=e;t=t||"-V, --version";n=n||"output the version number";const r=this.createOption(t,n);this._versionOptionName=r.attributeName();this._registerOption(r);this.on("option:"+r.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`);this._exit(0,"commander.version",e)}));return this}description(e,t){if(e===undefined&&t===undefined)return this._description;this._description=e;if(t){this._argsDescription=t}return this}summary(e){if(e===undefined)return this._summary;this._summary=e;return this}alias(e){if(e===undefined)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){t=this.commands[this.commands.length-1]}if(e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}t._aliases.push(e);return this}aliases(e){if(e===undefined)return this._aliases;e.forEach((e=>this.alias(e)));return this}usage(e){if(e===undefined){if(this._usage)return this._usage;const e=this.registeredArguments.map((e=>c(e)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}this._usage=e;return this}name(e){if(e===undefined)return this._name;this._name=e;return this}nameFromFilename(e){this._name=o.basename(e,o.extname(e));return this}executableDir(e){if(e===undefined)return this._executableDir;this._executableDir=e;return this}helpInformation(e){const t=this.createHelp();if(t.helpWidth===undefined){t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return t.formatHelp(this,t)}_getHelpContext(e){e=e||{};const t={error:!!e.error};let n;if(t.error){n=e=>this._outputConfiguration.writeErr(e)}else{n=e=>this._outputConfiguration.writeOut(e)}t.write=e.write||n;t.command=this;return t}outputHelp(e){let t;if(typeof e==="function"){t=e;e=undefined}const n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach((e=>e.emit("beforeAllHelp",n)));this.emit("beforeHelp",n);let r=this.helpInformation(n);if(t){r=t(r);if(typeof r!=="string"&&!Buffer.isBuffer(r)){throw new Error("outputHelp callback must return a string or a Buffer")}}n.write(r);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",n);this._getCommandAndAncestors().forEach((e=>e.emit("afterAllHelp",n)))}helpOption(e,t){if(typeof e==="boolean"){if(e){this._helpOption=this._helpOption??undefined}else{this._helpOption=null}return this}e=e??"-h, --help";t=t??"display help for command";this._helpOption=this.createOption(e,t);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(e){this._helpOption=e;return this}help(e){this.outputHelp(e);let t=a.exitCode||0;if(t===0&&e&&typeof e!=="function"&&e.error){t=1}this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`)}const r=`${e}Help`;this.on(r,(e=>{let n;if(typeof t==="function"){n=t({error:e.error,command:e.command})}else{n=t}if(n){e.write(`${n}\n`)}}));return this}_outputHelpIfRequested(e){const t=this._getHelpOption();const n=t&&e.find((e=>t.is(e)));if(n){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(e){return e.map((e=>{if(!e.startsWith("--inspect")){return e}let t;let n="127.0.0.1";let r="9229";let i;if((i=e.match(/^(--inspect(-brk)?)$/))!==null){t=i[1]}else if((i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){t=i[1];if(/^\d+$/.test(i[3])){r=i[3]}else{n=i[3]}}else if((i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){t=i[1];n=i[3];r=i[4]}if(t&&r!=="0"){return`${t}=${n}:${parseInt(r)+1}`}return e}))}t.Command=Command},4848:(e,t)=>{class CommanderError extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.exitCode=e;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}t.CommanderError=CommanderError;t.InvalidArgumentError=InvalidArgumentError},8151:(e,t,n)=>{const{humanReadableArgName:r}=n(1047);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));const n=e._getHelpCommand();if(n&&!n._hidden){t.push(n)}if(this.sortSubcommands){t.sort(((e,t)=>e.name().localeCompare(t.name())))}return t}compareOptions(e,t){const getSortKey=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return getSortKey(e).localeCompare(getSortKey(t))}visibleOptions(e){const t=e.options.filter((e=>!e.hidden));const n=e._getHelpOption();if(n&&!n.hidden){const r=n.short&&e._findOption(n.short);const i=n.long&&e._findOption(n.long);if(!r&&!i){t.push(n)}else if(n.long&&!i){t.push(e.createOption(n.long,n.description))}else if(n.short&&!r){t.push(e.createOption(n.short,n.description))}}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter((e=>!e.hidden));t.push(...e)}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleArguments(e){if(e._argsDescription){e.registeredArguments.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""}))}if(e.registeredArguments.find((e=>e.description))){return e.registeredArguments}return[]}subcommandTerm(e){const t=e.registeredArguments.map((e=>r(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,n)=>Math.max(e,t.subcommandTerm(n).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,n)=>Math.max(e,t.argumentTerm(n).length)),0)}commandUsage(e){let t=e._name;if(e._aliases[0]){t=t+"|"+e._aliases[0]}let n="";for(let t=e.parent;t;t=t.parent){n=t.name()+" "+n}return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){const n=e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean";if(n){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}}if(e.presetArg!==undefined&&e.optional){t.push(`preset: ${JSON.stringify(e.presetArg)}`)}if(e.envVar!==undefined){t.push(`env: ${e.envVar}`)}if(t.length>0){return`${e.description} (${t.join(", ")})`}return e.description}argumentDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(t.length>0){const n=`(${t.join(", ")})`;if(e.description){return`${e.description} ${n}`}return n}return e.description}formatHelp(e,t){const n=t.padWidth(e,t);const r=t.helpWidth||80;const i=2;const o=2;function formatItem(e,s){if(s){const a=`${e.padEnd(n+o)}${s}`;return t.wrap(a,r-i,n+o)}return e}function formatList(e){return e.join("\n").replace(/^/gm," ".repeat(i))}let s=[`Usage: ${t.commandUsage(e)}`,""];const a=t.commandDescription(e);if(a.length>0){s=s.concat([t.wrap(a,r,0),""])}const l=t.visibleArguments(e).map((e=>formatItem(t.argumentTerm(e),t.argumentDescription(e))));if(l.length>0){s=s.concat(["Arguments:",formatList(l),""])}const c=t.visibleOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(c.length>0){s=s.concat(["Options:",formatList(c),""])}if(this.showGlobalOptions){const n=t.visibleGlobalOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(n.length>0){s=s.concat(["Global Options:",formatList(n),""])}}const u=t.visibleCommands(e).map((e=>formatItem(t.subcommandTerm(e),t.subcommandDescription(e))));if(u.length>0){s=s.concat(["Commands:",formatList(u),""])}return s.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,n,r=40){const i=" \\f\\t\\v   -    \ufeff";const o=new RegExp(`[\\n][${i}]+`);if(e.match(o))return e;const s=t-n;if(s<r)return e;const a=e.slice(0,n);const l=e.slice(n).replace("\r\n","\n");const c=" ".repeat(n);const u="​";const f=`\\s${u}`;const p=new RegExp(`\n|.{1,${s-1}}([${f}]|$)|[^${f}]+?([${f}]|$)`,"g");const d=l.match(p)||[];return a+d.map(((e,t)=>{if(e==="\n")return"";return(t>0?c:"")+e.trimEnd()})).join("\n")}}t.Help=Help},513:(e,t,n)=>{const{InvalidArgumentError:r}=n(4848);class Option{constructor(e,t){this.flags=e;this.description=t||"";this.required=e.includes("<");this.optional=e.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(e);this.mandatory=false;const n=splitOptionFlags(e);this.short=n.shortFlag;this.long=n.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}preset(e){this.presetArg=e;return this}conflicts(e){this.conflictsWith=this.conflictsWith.concat(e);return this}implies(e){let t=e;if(typeof e==="string"){t={[e]:true}}this.implied=Object.assign(this.implied||{},t);return this}env(e){this.envVar=e;return this}argParser(e){this.parseArg=e;return this}makeOptionMandatory(e=true){this.mandatory=!!e;return this}hideHelp(e=true){this.hidden=!!e;return this}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(e){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;e.forEach((e=>{if(e.negate){this.negativeOptions.set(e.attributeName(),e)}else{this.positiveOptions.set(e.attributeName(),e)}}));this.negativeOptions.forEach(((e,t)=>{if(this.positiveOptions.has(t)){this.dualOptions.add(t)}}))}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return true;const r=this.negativeOptions.get(n).presetArg;const i=r!==undefined?r:false;return t.negate===(i===e)}}function camelcase(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}function splitOptionFlags(e){let t;let n;const r=e.split(/[ |,]+/);if(r.length>1&&!/^[[<]/.test(r[1]))t=r.shift();n=r.shift();if(!t&&/^-[^-]$/.test(n)){t=n;n=undefined}return{shortFlag:t,longFlag:n}}t.Option=Option;t.DualOptions=DualOptions},6587:(e,t)=>{const n=3;function editDistance(e,t){if(Math.abs(e.length-t.length)>n)return Math.max(e.length,t.length);const r=[];for(let t=0;t<=e.length;t++){r[t]=[t]}for(let e=0;e<=t.length;e++){r[0][e]=e}for(let n=1;n<=t.length;n++){for(let i=1;i<=e.length;i++){let o=1;if(e[i-1]===t[n-1]){o=0}else{o=1}r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o);if(i>1&&n>1&&e[i-1]===t[n-2]&&e[i-2]===t[n-1]){r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1)}}}return r[e.length][t.length]}function suggestSimilar(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));const r=e.startsWith("--");if(r){e=e.slice(2);t=t.map((e=>e.slice(2)))}let i=[];let o=n;const s=.4;t.forEach((t=>{if(t.length<=1)return;const n=editDistance(e,t);const r=Math.max(e.length,t.length);const a=(r-n)/r;if(a>s){if(n<o){o=n;i=[t]}else if(n===o){i.push(t)}}}));i.sort(((e,t)=>e.localeCompare(t)));if(r){i=i.map((e=>`--${e}`))}if(i.length>1){return`\n(Did you mean one of ${i.join(", ")}?)`}if(i.length===1){return`\n(Did you mean ${i[0]}?)`}return""}t.suggestSimilar=suggestSimilar},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"pod-install","version":"1.2.0","description":"A fast, zero-dependency package for cutting down on common issues developers have when running pod install.","keywords":["cocoapods","ios","npx","pod-install"],"homepage":"https://github.com/expo/expo/tree/main/packages/pod-install","bugs":{"url":"https://github.com/expo/expo/issues"},"license":"MIT","author":"Expo <support@expo.dev>","repository":{"type":"git","url":"https://github.com/expo/expo.git"},"bin":"./bin/pod-install.js","files":["bin","build"],"main":"./build/index.js","exports":{".":"./build/index.js","./package.json":"./package.json"},"scripts":{"prebuild":"expo-module clean","build":"ncc build ./src/index.ts -o build/","prebuild:prod":"expo-module clean","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"oxlint --config oxlint.config.mjs .","format":"expo-module format","prepublishOnly":"pnpm run clean && pnpm run build:prod","depscheck":"expo-module depscheck","typecheck":"tsc -p tsconfig.json"},"devDependencies":{"@expo/package-manager":"workspace:*","@vercel/ncc":"^0.38.4","chalk":"^4.0.0","commander":"^12.1.0","expo-module-scripts":"workspace:*","terminal-link":"^2.1.1","update-check":"^1.5.4"},"gitHead":"c543a7181fc32e14f42d89550087b80ac5c490f2"}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var n=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var r=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(3887);module.exports=__webpack_exports__})();
51
+ var r=n(181);var i=r.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return i(e,t,n)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=i(e);if(t!==undefined){if(typeof n==="string"){r.fill(t,n)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},4881:(e,t,n)=>{"use strict";const r=n(1940);e.exports=(e="")=>{const t=e.match(r);if(!t){return null}const[n,i]=t[0].replace(/#! ?/,"").split(" ");const o=n.split("/").pop();if(o==="env"){return i}return i?`${o} ${i}`:o}},1940:e=>{"use strict";e.exports=/^#!(.*)/},3444:e=>{"use strict";var t=1;var n=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,n){return e.slice(t,n).replace(/\S/g," ")}e.exports=function(e,r){r=r||{};var i;var o;var s=false;var a=false;var l=0;var c="";var u=r.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var f=0;f<e.length;f++){i=e[f];o=e[f+1];if(!a&&i==='"'){var p=e[f-1]==="\\"&&e[f-2]!=="\\";if(!p){s=!s}}if(s){continue}if(!a&&i+o==="//"){c+=e.slice(l,f);l=f;a=t;f++}else if(a===t&&i+o==="\r\n"){f++;a=false;c+=u(e,l,f);l=f;continue}else if(a===t&&i==="\n"){a=false;c+=u(e,l,f);l=f}else if(!a&&i+o==="/*"){c+=e.slice(l,f);l=f;a=n;f++;continue}else if(a===n&&i+o==="*/"){f++;a=false;c+=u(e,l,f+1);l=f+1;continue}}return c+(a?u(e.substr(l)):e.substr(l))}},6480:(e,t,n)=>{"use strict";const r=n(857);const i=n(2018);const o=n(4167);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},6678:(e,t,n)=>{"use strict";const r=n(6480);const i=n(4167);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never")){return false}if(i("hyperlink=true")||i("hyperlink=always")){return true}if("NETLIFY"in t){return true}if(!r.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3;case"WezTerm":return e.major>=20200620;case"vscode":return e.major>1||e.major===1&&e.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},5787:(e,t,n)=>{"use strict";const r=n(2604);const i=n(6678);const terminalLink=(e,t,{target:n="stdout",...o}={})=>{if(!i[n]){if(o.fallback===false){return e}return typeof o.fallback==="function"?o.fallback(e,t):`${e} (​${t}​)`}return r.link(e,t)};e.exports=(e,t,n={})=>terminalLink(e,t,n);e.exports.stderr=(e,t,n={})=>terminalLink(e,t,{target:"stderr",...n});e.exports.isSupported=i.stdout;e.exports.stderr.isSupported=i.stderr},5059:(e,t,n)=>{const{URL:r}=n(7016);const{join:i}=n(6928);const o=n(9896);const{promisify:s}=n(9023);const{tmpdir:a}=n(857);const l=n(3805);const c=s(o.writeFile);const u=s(o.mkdir);const f=s(o.readFile);const compareVersions=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const encode=e=>encodeURIComponent(e).replace(/^%40/,"@");const getFile=async(e,t)=>{const n=a();const r=i(n,"update-check");if(!o.existsSync(r)){await u(r)}let s=`${e.name}-${t}.json`;if(e.scope){s=`${e.scope}-${s}`}return i(r,s)};const evaluateCache=async(e,t,n)=>{if(o.existsSync(e)){const r=await f(e,"utf8");const{lastUpdate:i,latest:o}=JSON.parse(r);const s=i+n;if(s>t){return{shouldCheck:false,latest:o}}}return{shouldCheck:true,latest:null}};const updateCache=async(e,t,n)=>{const r=JSON.stringify({latest:t,lastUpdate:n});await c(e,r,"utf8")};const loadPackage=(e,t)=>new Promise(((r,i)=>{const o={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){o.headers.authorization=`${t.type} ${t.token}`}const{get:s}=n(e.protocol==="https:"?5692:8611);s(o,(e=>{const{statusCode:t}=e;if(t!==200){const n=new Error(`Request failed with code ${t}`);n.code=t;i(n);e.resume();return}let n="";e.setEncoding("utf8");e.on("data",(e=>{n+=e}));e.on("end",(()=>{try{const e=JSON.parse(n);r(e)}catch(e){i(e)}}))})).on("error",i).on("timeout",i)}));const getMostRecent=async({full:e,scope:t},i)=>{const o=l(t);const s=new r(e,o);let a=null;try{a=await loadPackage(s)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=n(4133);const t=e(o,{recursive:true});a=await loadPackage(s,t)}else{throw e}}const c=a["dist-tags"][i];if(!c){throw new Error(`Distribution tag ${i} is not available`)}return c};const p={interval:36e5,distTag:"latest"};const getDetails=e=>{const t={full:encode(e)};if(e.includes("/")){const n=e.split("/");t.scope=n[0];t.name=n[1]}else{t.scope=null;t.name=e}return t};e.exports=async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const n=getDetails(e.name);const r=Date.now();const{distTag:i,interval:o}=Object.assign({},p,t);const s=await getFile(n,i);let a=null;let l=true;({shouldCheck:l,latest:a}=await evaluateCache(s,r,o));if(l){a=await getMostRecent(n,i);await updateCache(s,a,r)}const c=compareVersions(e.version,a);if(c===-1){return{latest:a,fromCache:!l}}return null}},1192:(e,t,n)=>{const r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const i=n(6928);const o=r?";":":";const s=n(7105);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const n=t.colon||o;const i=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)];const s=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=r?s.split(n):[""];if(r){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:i,pathExt:a,pathExtExe:s}};const which=(e,t,n)=>{if(typeof t==="function"){n=t;t={}}if(!t)t={};const{pathEnv:r,pathExt:o,pathExtExe:a}=getPathInfo(e,t);const l=[];const step=n=>new Promise(((o,s)=>{if(n===r.length)return t.all&&l.length?o(l):s(getNotFoundError(e));const a=r[n];const c=/^".*"$/.test(a)?a.slice(1,-1):a;const u=i.join(c,e);const f=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(subStep(f,n,0))}));const subStep=(e,n,r)=>new Promise(((i,c)=>{if(r===o.length)return i(step(n+1));const u=o[r];s(e+u,{pathExt:a},((o,s)=>{if(!o&&s){if(t.all)l.push(e+u);else return i(e+u)}return i(subStep(e,n,r+1))}))}));return n?step(0).then((e=>n(null,e)),n):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=getPathInfo(e,t);const a=[];for(let l=0;l<n.length;l++){const c=n[l];const u=/^".*"$/.test(c)?c.slice(1,-1):c;const f=i.join(u,e);const p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<r.length;e++){const n=p+r[e];try{const e=s.sync(n,{pathExt:o});if(e){if(t.all)a.push(n);else return n}}catch(e){}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},4781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});0&&0;function _export(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:true,get:Object.getOwnPropertyDescriptor(t,n).get})}_export(t,{get CocoaPodsError(){return CocoaPodsError},get CocoaPodsPackageManager(){return CocoaPodsPackageManager},get extractMissingDependencyError(){return extractMissingDependencyError},get getImprovedPodInstallError(){return getImprovedPodInstallError},get getPodRepoUpdateMessage(){return getPodRepoUpdateMessage},get getPodUpdateMessage(){return getPodUpdateMessage}});function _spawnasync(){const e=_interop_require_default(n(3970));_spawnasync=function(){return e};return e}function _chalk(){const e=_interop_require_default(n(2314));_chalk=function(){return e};return e}function _fs(){const e=_interop_require_default(n(9896));_fs=function(){return e};return e}function _os(){const e=_interop_require_default(n(857));_os=function(){return e};return e}function _path(){const e=_interop_require_default(n(6928));_path=function(){return e};return e}const r=n(3884);function _interop_require_default(e){return e&&e.__esModule?e:{default:e}}class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(e,t,n){super(n?`${e}\n└─ Cause: ${n.message}`:e),this.code=t,this.cause=n}}function extractMissingDependencyError(e){const t=e.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(t!=null&&t[1]!=null&&t[2]!=null){return[t[1],t[2]]}return null}class CocoaPodsPackageManager{options;silent;cwd;static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=_path().default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;const n=_path().default.join(e,"macos");if(CocoaPodsPackageManager.isUsingPods(n))return n;return null}static isUsingPods(e){return _fs().default.existsSync(_path().default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const n=["install","cocoapods","--no-document"];try{await(0,_spawnasync().default)("gem",n,t)}catch(r){if(e){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",r)}console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,_spawnasync().default)("sudo",["gem",...n],t)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await(0,_spawnasync().default)("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await(0,_spawnasync().default)("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}const n=!!t.ignoreStdio;try{!n&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!n&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(e){if(!n){console.log(_chalk().default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(_chalk().default.red(e.stderr??e.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",e)}}catch(e){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",e)}}!n&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(e){!n&&console.warn(_chalk().default.yellow(`› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`,"NO_CLI",e)}}}static isAvailable(e,t){if(process.platform!=="darwin"){!t&&console.log(_chalk().default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(e)){!t&&console.log(_chalk().default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(e={stdio:"inherit"},{useBundler:t=false}={}){try{if(t){await(0,_spawnasync().default)("bundle",["exec","pod","--version"],e)}else{await(0,_spawnasync().default)("pod",["--version"],e)}return true}catch(e){if(t){console.warn(_chalk().default.yellow(`› Failed to run \`bundle exec pod\``));throw new CocoaPodsError(e.stderr,"COMMAND_FAILED")}return false}}constructor({cwd:e,silent:t,useBundler:n}){this.silent=!!t;this.cwd=e;this.options={cwd:e,stdio:"pipe"};if(n!=null){this._useBundler=Promise.resolve(n)}}_useBundler;async#e(){return this._useBundler||=(0,r.isUsingBundlerAsync)(this.cwd)}get name(){return"CocoaPods"}async installAsync({spinner:e}={}){await this._installAsync({spinner:e})}async isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options,{useBundler:await this.#e()})}installCLIAsync({nonInteractive:e=true,spawnOptions:t}={}){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:e,spawnOptions:{...this.options,...t}})}async handleInstallErrorAsync({error:e,shouldUpdate:t=true,updatedPackages:n=[],spinner:r}){if(!e.output){throw e}if(!t){throw getImprovedPodInstallError(e,{cwd:this.options.cwd})}const i=e.output.join(_os().default.EOL).trim();const{updatePackage:o,shouldUpdateRepo:s}=getPodUpdateMessage(i);if(!o||n.includes(o)){return await this._installAsync({spinner:r,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:n})}n.push(o);return await this.runInstallTypeCommandAsync(["update",o,s?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const e=`Failed to update ${_chalk().default.bold(o)}. Attempting to update the repo instead.`;return e},spinner:r,updatedPackages:n})}async _installAsync({shouldRepoUpdate:e,...t}={}){return await this.runInstallTypeCommandAsync(["install",e?"--repo-update":""].filter(Boolean),{formatWarning(e){return getPodRepoUpdateMessage(e.output.join(_os().default.EOL).trim()).message},...t})}async runInstallTypeCommandAsync(e,{formatWarning:t,...n}={}){try{return await this._runAsync(e)}catch(e){if(t){const r=t(e);if(n.spinner){n.spinner.text=_chalk().default.bold(r)}if(!this.silent){console.warn(_chalk().default.yellow(r))}}return await this.handleInstallErrorAsync({error:e,...n})}}async addWithParametersAsync(e,t){throw new Error("Unimplemented")}addAsync(e=[]){throw new Error("Unimplemented")}addDevAsync(e=[]){throw new Error("Unimplemented")}addGlobalAsync(e=[]){throw new Error("Unimplemented")}removeAsync(e=[]){throw new Error("Unimplemented")}removeDevAsync(e=[]){throw new Error("Unimplemented")}removeGlobalAsync(e=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await this.#e()?await(0,_spawnasync().default)("bundle",["exec","pod","--version"],this.options):await(0,_spawnasync().default)("pod",["--version"],this.options);return e.trim()}async configAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async _runAsync(e){const t=await this.#e();const[n,r]=t?["bundle",["exec","pod",...e,"--ansi"]]:["pod",[...e,"--ansi"]];if(!this.silent){console.log(`> ${t?"bundle exec pod":"pod"} ${e.join(" ")}`)}const i=(0,_spawnasync().default)(n,r,{...this.options,stdio:"pipe"});if(!this.silent){if(i.child.stdout){i.child.stdout.pipe(process.stdout)}}return await i}}function shouldPodRepoUpdate(e){const t=e;const n=t.includes("pod repo update")||t.includes("--no-repo-update");return n}function getPodUpdateMessage(e){const t=e.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:t?.[1]??null,shouldUpdateRepo:!t?.[2]}}function getPodRepoUpdateMessage(e){const t=extractMissingDependencyError(e);const n=getPodUpdateMessage(e);let r;if(t){r=`Couldn't install: ${t[1]} » ${_chalk().default.underline(t[0])}.`}else if(n?.updatePackage){r=`Couldn't install: ${n?.updatePackage}.`}else{r=`Couldn't install Pods.`}r+=` Updating the Pods project and trying again...`;return{message:r,...n}}function getImprovedPodInstallError(e,{cwd:t=process.cwd()}){const n=e.output.join(_os().default.EOL).trim();if(e.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){e.message=`No Podfile found in directory: ${t}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(n)){const t=extractMissingDependencyError(n);let r;if(t){r=`Couldn't install: ${t[1]} » ${_chalk().default.underline(t[0])}`}else{r=`This is often due to native package versions mismatching`}let i;if(t?.[0]){if(t[0].match(/^(?:@?expo|@?react)(-|\/)/)){i=`Ensure the node module "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{i=`Ensure the CocoaPod "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{i=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}e.message=`${r}. ${i}`;if(e.stdout){const t=e.stdout.split(_os().default.EOL);const n=t.findIndex((e=>e.startsWith("[!]")));if(n!==-1){const r=t.slice(n).join(_os().default.EOL);e.message+=`\n\n${_chalk().default.gray(r)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",e)}else{let t=e.stderr.trim();const n=e.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(n){if(e.message?.match(/pod exited with non-zero code: 1/)){e.message=""}t=null}e.message=[n,e.message,t].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",e)}},3884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});0&&0;function _export(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:true,get:Object.getOwnPropertyDescriptor(t,n).get})}_export(t,{get findGemfile(){return findGemfile},get isUsingBundlerAsync(){return isUsingBundlerAsync}});function _spawnasync(){const e=_interop_require_default(n(3970));_spawnasync=function(){return e};return e}function _fs(){const e=_interop_require_default(n(9896));_fs=function(){return e};return e}function _os(){const e=_interop_require_default(n(857));_os=function(){return e};return e}function _path(){const e=_interop_require_default(n(6928));_path=function(){return e};return e}function _resolveworkspaceroot(){const e=n(8665);_resolveworkspaceroot=function(){return e};return e}function _interop_require_default(e){return e&&e.__esModule?e:{default:e}}const maybeStat=e=>_fs().default.promises.stat(_path().default.resolve(e)).catch((()=>null));async function getGitTopLevelAsync(e=process.cwd()){try{const t=await(0,_spawnasync().default)("git",["rev-parse","--show-toplevel"],{cwd:e});const n=_path().default.resolve(t.stdout.trim());return(await maybeStat(n))?.isDirectory()?n:null}catch{return null}}async function getGitRootPathAsync(e=process.cwd()){const t=_path().default.normalize(_os().default.homedir());for(let n=e;_path().default.dirname(n)!==n;n=_path().default.dirname(n)){if((await maybeStat(_path().default.join(n,".git")))?.isDirectory()){return n}if(n===t)break}return null}async function getRootPathAsync(e=process.cwd()){const t=await getGitTopLevelAsync(e)||await getGitRootPathAsync(e)||await(0,_resolveworkspaceroot().resolveWorkspaceRootAsync)(e)||process.cwd();return t}async function findGemfile(e=process.cwd()){const t=_path().default.normalize(await getRootPathAsync(e));for(let n=e;_path().default.dirname(n)!==n;n=_path().default.dirname(n)){const e=_path().default.join(n,"Gemfile");if((await maybeStat(e))?.isFile()){return e}if(n===t)break}return null}async function isUsingBundlerAsync(e){const t=await findGemfile(e);if(!t){return false}const[n,r]=await Promise.allSettled([_fs().default.promises.readFile(t,"utf8"),(0,_spawnasync().default)("bundle",["exec","pod","--version"],{cwd:e,stdio:"ignore"})]);if(n.status==="rejected"||r.status==="rejected"){return false}else{return/gem\s*\(?\s*(?:'cocoapods'|"cocoapods")/.test(n.value)}}},3887:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,r,i)}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),o=0;o<n.length;o++)if(n[o]!=="default")r(t,e,n[o]);i(t,e);return t}}();var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=n(4781);const l=s(n(2314));const c=n(1414);const u=n(9896);const f=n(6928);const p=o(n(2530));const d=n(3670);const packageJSON=()=>{try{return n(8330)}catch{return null}};function info(e){if(!h.opts().quiet){console.log(e)}}async function runAsync(e){if(process.platform!=="darwin"){info(l.default.yellow("⚠️ CocoaPods is only supported on darwin machines"));process.exit(0)}const t=e&&!e.startsWith("--");const n=(0,f.resolve)(t?e:process.cwd());if(!(0,u.existsSync)(n)){info(l.default.red(`\n💥 Target directory does not exist: ${n}\n`));process.exit(1)}const r=a.CocoaPodsPackageManager.getPodProjectRoot(n);if(!r){const e=(0,f.join)(n,"package.json");if(!(0,u.existsSync)(e)){info(l.default.red(`\n💥 'package.json' file does not exist: ${e}\n`));process.exit(1)}const r=JSON.parse((0,u.readFileSync)(e).toString());const i=r.dependencies?.hasOwnProperty("expo");if(i){info(l.default.yellow(`⚠️ No 'ios' directory found, skipping installing pods.`,`\nPods will be automatically installed when the 'ios' directory is generated with 'npx expo prebuild' or 'npx expo run:ios'.`,(0,d.learnMore)("https://docs.expo.dev/workflow/prebuild/")));process.exit(0)}if(t){info(l.default.yellow(`⚠️ CocoaPods is not supported in project at ${n}`))}else{info(l.default.yellow("⚠️ CocoaPods is not supported in this project"))}process.exit(0)}info("🔍️ Scanning for pods...");try{const e=new a.CocoaPodsPackageManager({cwd:r});if(!await e.isCLIInstalledAsync()){await e.installCLIAsync({nonInteractive:h.opts().nonInteractive})}await e.installAsync()}catch(e){if(e.isPackageManagerError){console.error(l.default.red(e.message));process.exit(1)}throw e}}const h=new c.Command(packageJSON()?.name??p.PACKAGE_NAME).version(packageJSON()?.version??"0.0.0").arguments("[project-directory]").usage(`${l.default.green("[project-directory]")} [options]`).description("A fast, zero-dependency package for cutting down on common issues developers have when running pod install.").option("--quiet","only print errors").option("--non-interactive","disable interactive prompts").allowUnknownOption().parse(process.argv).action((async e=>{try{await runAsync(e);if(!h.opts().quiet){await(0,p.default)()}}catch(e){console.log("\nAborting run");if(e.command){console.log(` ${l.default.magenta(e.command)} has failed.`)}else{console.log(l.default.red`💥 An unexpected error was encountered. Report it on GitHub: https://github.com/expo/expo/issues`);console.log(e)}console.log();if(!h.opts().quiet){await(0,p.default)()}process.exit(1)}}));(async()=>{await h.parseAsync(process.argv)})()},2530:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.PACKAGE_NAME=void 0;t["default"]=shouldUpdate;const i=r(n(2314));const o=r(n(5059));t.PACKAGE_NAME="pod-install";async function shouldUpdate(){const packageJson=()=>{try{return n(3986)}catch{return null}};const e=(0,o.default)(packageJson()).catch((()=>null));try{const n=await e;if(n&&n.latest){const e=packageJson();console.log();console.log(i.default.yellow.bold(`A new version of \`${e?.name??t.PACKAGE_NAME}\` is available`));console.log("You can update by running: "+i.default.cyan(`npm i -g ${e?.name??t.PACKAGE_NAME}`));console.log()}}catch{}}},3670:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.learnMore=learnMore;const i=r(n(2314));const o=r(n(5787));function learnMore(e){return(0,o.default)(i.default.underline("Learn more."),e,{fallback:(e,t)=>`Learn more: ${i.default.underline(t)}`})}},3986:module=>{module.exports=eval("require")("uri-scheme/package.json")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},1421:e=>{"use strict";e.exports=require("node:child_process")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},6760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},1414:(e,t,n)=>{const{Argument:r}=n(1047);const{Command:i}=n(1175);const{CommanderError:o,InvalidArgumentError:s}=n(4848);const{Help:a}=n(8151);const{Option:l}=n(513);t.program=new i;t.createCommand=e=>new i(e);t.createOption=(e,t)=>new l(e,t);t.createArgument=(e,t)=>new r(e,t);t.Command=i;t.Option=l;t.Argument=r;t.Help=a;t.CommanderError=o;t.InvalidArgumentError=s;t.InvalidOptionArgumentError=s},1047:(e,t,n)=>{const{InvalidArgumentError:r}=n(4848);class Argument{constructor(e,t){this.description=t||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(e[0]){case"<":this.required=true;this._name=e.slice(1,-1);break;case"[":this.required=false;this._name=e.slice(1,-1);break;default:this.required=true;this._name=e;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}argParser(e){this.parseArg=e;return this}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(e){const t=e.name()+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=Argument;t.humanReadableArgName=humanReadableArgName},1175:(e,t,n)=>{const r=n(8474).EventEmitter;const i=n(1421);const o=n(6760);const s=n(3024);const a=n(1708);const{Argument:l,humanReadableArgName:c}=n(1047);const{CommanderError:u}=n(4848);const{Help:f}=n(8151);const{Option:p,DualOptions:d}=n(513);const{suggestSimilar:h}=n(6587);class Command extends r{constructor(e){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=e||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:undefined,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:undefined,outputError:(e,t)=>t(e)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={}}copyInheritedSettings(e){this._outputConfiguration=e._outputConfiguration;this._helpOption=e._helpOption;this._helpCommand=e._helpCommand;this._helpConfiguration=e._helpConfiguration;this._exitCallback=e._exitCallback;this._storeOptionsAsProperties=e._storeOptionsAsProperties;this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue;this._allowExcessArguments=e._allowExcessArguments;this._enablePositionalOptions=e._enablePositionalOptions;this._showHelpAfterError=e._showHelpAfterError;this._showSuggestionAfterError=e._showSuggestionAfterError;return this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent){e.push(t)}return e}command(e,t,n){let r=t;let i=n;if(typeof r==="object"&&r!==null){i=r;r=null}i=i||{};const[,o,s]=e.match(/([^ ]+) *(.*)/);const a=this.createCommand(o);if(r){a.description(r);a._executableHandler=true}if(i.isDefault)this._defaultCommandName=a._name;a._hidden=!!(i.noHelp||i.hidden);a._executableFile=i.executableFile||null;if(s)a.arguments(s);this._registerCommand(a);a.parent=this;a.copyInheritedSettings(this);if(r)return this;return a}createCommand(e){return new Command(e)}createHelp(){return Object.assign(new f,this.configureHelp())}configureHelp(e){if(e===undefined)return this._helpConfiguration;this._helpConfiguration=e;return this}configureOutput(e){if(e===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,e);return this}showHelpAfterError(e=true){if(typeof e!=="string")e=!!e;this._showHelpAfterError=e;return this}showSuggestionAfterError(e=true){this._showSuggestionAfterError=!!e;return this}addCommand(e,t){if(!e._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}t=t||{};if(t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=true;this._registerCommand(e);e.parent=this;e._checkForBrokenPassThrough();return this}createArgument(e,t){return new l(e,t)}argument(e,t,n,r){const i=this.createArgument(e,t);if(typeof n==="function"){i.default(r).argParser(n)}else{i.default(n)}this.addArgument(i);return this}arguments(e){e.trim().split(/ +/).forEach((e=>{this.argument(e)}));return this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic){throw new Error(`only the last argument can be variadic '${t.name()}'`)}if(e.required&&e.defaultValue!==undefined&&e.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${e.name()}'`)}this.registeredArguments.push(e);return this}helpCommand(e,t){if(typeof e==="boolean"){this._addImplicitHelpCommand=e;return this}e=e??"help [command]";const[,n,r]=e.match(/([^ ]+) *(.*)/);const i=t??"display help for command";const o=this.createCommand(n);o.helpOption(false);if(r)o.arguments(r);if(i)o.description(i);this._addImplicitHelpCommand=true;this._helpCommand=o;return this}addHelpCommand(e,t){if(typeof e!=="object"){this.helpCommand(e,t);return this}this._addImplicitHelpCommand=true;this._helpCommand=e;return this}_getHelpCommand(){const e=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(e){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e)){throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`)}if(this._lifeCycleHooks[e]){this._lifeCycleHooks[e].push(t)}else{this._lifeCycleHooks[e]=[t]}return this}exitOverride(e){if(e){this._exitCallback=e}else{this._exitCallback=e=>{if(e.code!=="commander.executeSubCommandAsync"){throw e}else{}}}return this}_exit(e,t,n){if(this._exitCallback){this._exitCallback(new u(e,t,n))}a.exit(e)}action(e){const listener=t=>{const n=this.registeredArguments.length;const r=t.slice(0,n);if(this._storeOptionsAsProperties){r[n]=this}else{r[n]=this.opts()}r.push(this);return e.apply(this,r)};this._actionHandler=listener;return this}createOption(e,t){return new p(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code==="commander.invalidArgument"){const t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){const knownBy=e=>[e.name()].concat(e.aliases());const t=knownBy(e).find((e=>this._findCommand(e)));if(t){const n=knownBy(this._findCommand(t)).join("|");const r=knownBy(e).join("|");throw new Error(`cannot add command '${r}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name();const n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");if(!this._findOption(t)){this.setOptionValueWithSource(n,e.defaultValue===undefined?true:e.defaultValue,"default")}}else if(e.defaultValue!==undefined){this.setOptionValueWithSource(n,e.defaultValue,"default")}const handleOptionValue=(t,r,i)=>{if(t==null&&e.presetArg!==undefined){t=e.presetArg}const o=this.getOptionValue(n);if(t!==null&&e.parseArg){t=this._callParseArg(e,t,o,r)}else if(t!==null&&e.variadic){t=e._concatValue(t,o)}if(t==null){if(e.negate){t=false}else if(e.isBoolean()||e.optional){t=true}else{t=""}}this.setOptionValueWithSource(n,t,i)};this.on("option:"+t,(t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,n,"cli")}));if(e.envVar){this.on("optionEnv:"+t,(t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,n,"env")}))}return this}_optionEx(e,t,n,r,i){if(typeof t==="object"&&t instanceof p){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const o=this.createOption(t,n);o.makeOptionMandatory(!!e.mandatory);if(typeof r==="function"){o.default(i).argParser(r)}else if(r instanceof RegExp){const e=r;r=(t,n)=>{const r=e.exec(t);return r?r[0]:n};o.default(i).argParser(r)}else{o.default(r)}return this.addOption(o)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:true},e,t,n,r)}combineFlagAndOptionalValue(e=true){this._combineFlagAndOptionalValue=!!e;return this}allowUnknownOption(e=true){this._allowUnknownOption=!!e;return this}allowExcessArguments(e=true){this._allowExcessArguments=!!e;return this}enablePositionalOptions(e=true){this._enablePositionalOptions=!!e;return this}passThroughOptions(e=true){this._passThroughOptions=!!e;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(e=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!e;return this}getOptionValue(e){if(this._storeOptionsAsProperties){return this[e]}return this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,undefined)}setOptionValueWithSource(e,t,n){if(this._storeOptionsAsProperties){this[e]=t}else{this._optionValues[e]=t}this._optionValueSources[e]=n;return this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;this._getCommandAndAncestors().forEach((n=>{if(n.getOptionValueSource(e)!==undefined){t=n.getOptionValueSource(e)}}));return t}_prepareUserArgs(e,t){if(e!==undefined&&!Array.isArray(e)){throw new Error("first parameter to parse must be array or undefined")}t=t||{};if(e===undefined&&t.from===undefined){if(a.versions?.electron){t.from="electron"}const e=a.execArgv??[];if(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print")){t.from="eval"}}if(e===undefined){e=a.argv}this.rawArgs=e.slice();let n;switch(t.from){case undefined:case"node":this._scriptPath=e[1];n=e.slice(2);break;case"electron":if(a.defaultApp){this._scriptPath=e[1];n=e.slice(2)}else{n=e.slice(1)}break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return n}parse(e,t){const n=this._prepareUserArgs(e,t);this._parseCommand([],n);return this}async parseAsync(e,t){const n=this._prepareUserArgs(e,t);await this._parseCommand([],n);return this}_executeSubCommand(e,t){t=t.slice();let n=false;const r=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(e,t){const n=o.resolve(e,t);if(s.existsSync(n))return n;if(r.includes(o.extname(t)))return undefined;const i=r.find((e=>s.existsSync(`${n}${e}`)));if(i)return`${n}${i}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let l=e._executableFile||`${this._name}-${e._name}`;let c=this._executableDir||"";if(this._scriptPath){let e;try{e=s.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}c=o.resolve(o.dirname(e),c)}if(c){let t=findFile(c,l);if(!t&&!e._executableFile&&this._scriptPath){const n=o.basename(this._scriptPath,o.extname(this._scriptPath));if(n!==this._name){t=findFile(c,`${n}-${e._name}`)}}l=t||l}n=r.includes(o.extname(l));let f;if(a.platform!=="win32"){if(n){t.unshift(l);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=i.spawn(a.argv[0],t,{stdio:"inherit"})}else{f=i.spawn(l,t,{stdio:"inherit"})}}else{t.unshift(l);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=i.spawn(a.execPath,t,{stdio:"inherit"})}if(!f.killed){const e=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];e.forEach((e=>{a.on(e,(()=>{if(f.killed===false&&f.exitCode===null){f.kill(e)}}))}))}const p=this._exitCallback;f.on("close",(e=>{e=e??1;if(!p){a.exit(e)}else{p(new u(e,"commander.executeSubCommandAsync","(close)"))}}));f.on("error",(t=>{if(t.code==="ENOENT"){const t=c?`searched for local subcommand relative to directory '${c}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const n=`'${l}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t}`;throw new Error(n)}else if(t.code==="EACCES"){throw new Error(`'${l}' not executable`)}if(!p){a.exit(1)}else{const e=new u(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t;p(e)}}));this.runningCommand=f}_dispatchSubcommand(e,t,n){const r=this._findCommand(e);if(!r)this.help({error:true});let i;i=this._chainOrCallSubCommandHook(i,r,"preSubcommand");i=this._chainOrCall(i,(()=>{if(r._executableHandler){this._executeSubCommand(r,t.concat(n))}else{return r._parseCommand(t,n)}}));return i}_dispatchHelpCommand(e){if(!e){this.help()}const t=this._findCommand(e);if(t&&!t._executableHandler){t.help()}return this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((e,t)=>{if(e.required&&this.args[t]==null){this.missingArgument(e.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){const i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((t,n)=>{let r=t.defaultValue;if(t.variadic){if(n<this.args.length){r=this.args.slice(n);if(t.parseArg){r=r.reduce(((e,n)=>myParseArg(t,n,e)),t.defaultValue)}}else if(r===undefined){r=[]}}else if(n<this.args.length){r=this.args[n];if(t.parseArg){r=myParseArg(t,r,t.defaultValue)}}e[n]=r}));this.processedArgs=e}_chainOrCall(e,t){if(e&&e.then&&typeof e.then==="function"){return e.then((()=>t()))}return t()}_chainOrCallHooks(e,t){let n=e;const r=[];this._getCommandAndAncestors().reverse().filter((e=>e._lifeCycleHooks[t]!==undefined)).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{r.push({hookedCommand:e,callback:t})}))}));if(t==="postAction"){r.reverse()}r.forEach((e=>{n=this._chainOrCall(n,(()=>e.callback(e.hookedCommand,this)))}));return n}_chainOrCallSubCommandHook(e,t,n){let r=e;if(this._lifeCycleHooks[n]!==undefined){this._lifeCycleHooks[n].forEach((e=>{r=this._chainOrCall(r,(()=>e(this,t)))}))}return r}_parseCommand(e,t){const n=this.parseOptions(t);this._parseOptionsEnv();this._parseOptionsImplied();e=e.concat(n.operands);t=n.unknown;this.args=e.concat(t);if(e&&this._findCommand(e[0])){return this._dispatchSubcommand(e[0],e.slice(1),t)}if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(e[1])}if(this._defaultCommandName){this._outputHelpIfRequested(t);return this._dispatchSubcommand(this._defaultCommandName,e,t)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(n.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(n.unknown.length>0){this.unknownOption(n.unknown[0])}};const r=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let n;n=this._chainOrCallHooks(n,"preAction");n=this._chainOrCall(n,(()=>this._actionHandler(this.processedArgs)));if(this.parent){n=this._chainOrCall(n,(()=>{this.parent.emit(r,e,t)}))}n=this._chainOrCallHooks(n,"postAction");return n}if(this.parent&&this.parent.listenerCount(r)){checkForUnknownOptions();this._processArguments();this.parent.emit(r,e,t)}else if(e.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",e,t)}if(this.listenerCount("command:*")){this.emit("command:*",e,t)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(e){if(!e)return undefined;return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e=>{e.options.forEach((t=>{if(t.mandatory&&e.getOptionValue(t.attributeName())===undefined){e.missingMandatoryOptionValue(t)}}))}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();if(this.getOptionValue(t)===undefined){return false}return this.getOptionValueSource(t)!=="default"}));const t=e.filter((e=>e.conflictsWith.length>0));t.forEach((t=>{const n=e.find((e=>t.conflictsWith.includes(e.attributeName())));if(n){this._conflictingOption(t,n)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e=>{e._checkForConflictingLocalOptions()}))}parseOptions(e){const t=[];const n=[];let r=t;const i=e.slice();function maybeOption(e){return e.length>1&&e[0]==="-"}let o=null;while(i.length){const e=i.shift();if(e==="--"){if(r===n)r.push(e);r.push(...i);break}if(o&&!maybeOption(e)){this.emit(`option:${o.name()}`,e);continue}o=null;if(maybeOption(e)){const t=this._findOption(e);if(t){if(t.required){const e=i.shift();if(e===undefined)this.optionMissingArgument(t);this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;if(i.length>0&&!maybeOption(i[0])){e=i.shift()}this.emit(`option:${t.name()}`,e)}else{this.emit(`option:${t.name()}`)}o=t.variadic?t:null;continue}}if(e.length>2&&e[0]==="-"&&e[1]!=="-"){const t=this._findOption(`-${e[1]}`);if(t){if(t.required||t.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${t.name()}`,e.slice(2))}else{this.emit(`option:${t.name()}`);i.unshift(`-${e.slice(2)}`)}continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("=");const n=this._findOption(e.slice(0,t));if(n&&(n.required||n.optional)){this.emit(`option:${n.name()}`,e.slice(t+1));continue}}if(maybeOption(e)){r=n}if((this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(e)){t.push(e);if(i.length>0)n.push(...i);break}else if(this._getHelpCommand()&&e===this._getHelpCommand().name()){t.push(e);if(i.length>0)t.push(...i);break}else if(this._defaultCommandName){n.push(e);if(i.length>0)n.push(...i);break}}if(this._passThroughOptions){r.push(e);if(i.length>0)r.push(...i);break}r.push(e)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={};const t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const n=t||{};const r=n.exitCode||1;const i=n.code||"commander.error";this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in a.env){const t=e.attributeName();if(this.getOptionValue(t)===undefined||["default","config","env"].includes(this.getOptionValueSource(t))){if(e.required||e.optional){this.emit(`optionEnv:${e.name()}`,a.env[e.envVar])}else{this.emit(`optionEnv:${e.name()}`)}}}}))}_parseOptionsImplied(){const e=new d(this.options);const hasCustomOptionValue=e=>this.getOptionValue(e)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((t=>t.implied!==undefined&&hasCustomOptionValue(t.attributeName())&&e.valueFromOption(this.getOptionValue(t.attributeName()),t))).forEach((e=>{Object.keys(e.implied).filter((e=>!hasCustomOptionValue(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const findBestOptionFromValue=e=>{const t=e.attributeName();const n=this.getOptionValue(t);const r=this.options.find((e=>e.negate&&t===e.attributeName()));const i=this.options.find((e=>!e.negate&&t===e.attributeName()));if(r&&(r.presetArg===undefined&&n===false||r.presetArg!==undefined&&n===r.presetArg)){return r}return i||e};const getErrorMessage=e=>{const t=findBestOptionFromValue(e);const n=t.attributeName();const r=this.getOptionValueSource(n);if(r==="env"){return`environment variable '${t.envVar}'`}return`option '${t.flags}'`};const n=`error: ${getErrorMessage(e)} cannot be used with ${getErrorMessage(t)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[];let r=this;do{const e=r.createHelp().visibleOptions(r).filter((e=>e.long)).map((e=>e.long));n=n.concat(e);r=r.parent}while(r&&!r._enablePositionalOptions);t=h(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length;const n=t===1?"":"s";const r=this.parent?` for '${this.name()}'`:"";const i=`error: too many arguments${r}. Expected ${t} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach((e=>{n.push(e.name());if(e.alias())n.push(e.alias())}));t=h(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===undefined)return this._version;this._version=e;t=t||"-V, --version";n=n||"output the version number";const r=this.createOption(t,n);this._versionOptionName=r.attributeName();this._registerOption(r);this.on("option:"+r.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`);this._exit(0,"commander.version",e)}));return this}description(e,t){if(e===undefined&&t===undefined)return this._description;this._description=e;if(t){this._argsDescription=t}return this}summary(e){if(e===undefined)return this._summary;this._summary=e;return this}alias(e){if(e===undefined)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){t=this.commands[this.commands.length-1]}if(e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}t._aliases.push(e);return this}aliases(e){if(e===undefined)return this._aliases;e.forEach((e=>this.alias(e)));return this}usage(e){if(e===undefined){if(this._usage)return this._usage;const e=this.registeredArguments.map((e=>c(e)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}this._usage=e;return this}name(e){if(e===undefined)return this._name;this._name=e;return this}nameFromFilename(e){this._name=o.basename(e,o.extname(e));return this}executableDir(e){if(e===undefined)return this._executableDir;this._executableDir=e;return this}helpInformation(e){const t=this.createHelp();if(t.helpWidth===undefined){t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return t.formatHelp(this,t)}_getHelpContext(e){e=e||{};const t={error:!!e.error};let n;if(t.error){n=e=>this._outputConfiguration.writeErr(e)}else{n=e=>this._outputConfiguration.writeOut(e)}t.write=e.write||n;t.command=this;return t}outputHelp(e){let t;if(typeof e==="function"){t=e;e=undefined}const n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach((e=>e.emit("beforeAllHelp",n)));this.emit("beforeHelp",n);let r=this.helpInformation(n);if(t){r=t(r);if(typeof r!=="string"&&!Buffer.isBuffer(r)){throw new Error("outputHelp callback must return a string or a Buffer")}}n.write(r);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",n);this._getCommandAndAncestors().forEach((e=>e.emit("afterAllHelp",n)))}helpOption(e,t){if(typeof e==="boolean"){if(e){this._helpOption=this._helpOption??undefined}else{this._helpOption=null}return this}e=e??"-h, --help";t=t??"display help for command";this._helpOption=this.createOption(e,t);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(e){this._helpOption=e;return this}help(e){this.outputHelp(e);let t=a.exitCode||0;if(t===0&&e&&typeof e!=="function"&&e.error){t=1}this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`)}const r=`${e}Help`;this.on(r,(e=>{let n;if(typeof t==="function"){n=t({error:e.error,command:e.command})}else{n=t}if(n){e.write(`${n}\n`)}}));return this}_outputHelpIfRequested(e){const t=this._getHelpOption();const n=t&&e.find((e=>t.is(e)));if(n){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(e){return e.map((e=>{if(!e.startsWith("--inspect")){return e}let t;let n="127.0.0.1";let r="9229";let i;if((i=e.match(/^(--inspect(-brk)?)$/))!==null){t=i[1]}else if((i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){t=i[1];if(/^\d+$/.test(i[3])){r=i[3]}else{n=i[3]}}else if((i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){t=i[1];n=i[3];r=i[4]}if(t&&r!=="0"){return`${t}=${n}:${parseInt(r)+1}`}return e}))}t.Command=Command},4848:(e,t)=>{class CommanderError extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.exitCode=e;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}t.CommanderError=CommanderError;t.InvalidArgumentError=InvalidArgumentError},8151:(e,t,n)=>{const{humanReadableArgName:r}=n(1047);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));const n=e._getHelpCommand();if(n&&!n._hidden){t.push(n)}if(this.sortSubcommands){t.sort(((e,t)=>e.name().localeCompare(t.name())))}return t}compareOptions(e,t){const getSortKey=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return getSortKey(e).localeCompare(getSortKey(t))}visibleOptions(e){const t=e.options.filter((e=>!e.hidden));const n=e._getHelpOption();if(n&&!n.hidden){const r=n.short&&e._findOption(n.short);const i=n.long&&e._findOption(n.long);if(!r&&!i){t.push(n)}else if(n.long&&!i){t.push(e.createOption(n.long,n.description))}else if(n.short&&!r){t.push(e.createOption(n.short,n.description))}}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter((e=>!e.hidden));t.push(...e)}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleArguments(e){if(e._argsDescription){e.registeredArguments.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""}))}if(e.registeredArguments.find((e=>e.description))){return e.registeredArguments}return[]}subcommandTerm(e){const t=e.registeredArguments.map((e=>r(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,n)=>Math.max(e,t.subcommandTerm(n).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,n)=>Math.max(e,t.argumentTerm(n).length)),0)}commandUsage(e){let t=e._name;if(e._aliases[0]){t=t+"|"+e._aliases[0]}let n="";for(let t=e.parent;t;t=t.parent){n=t.name()+" "+n}return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){const n=e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean";if(n){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}}if(e.presetArg!==undefined&&e.optional){t.push(`preset: ${JSON.stringify(e.presetArg)}`)}if(e.envVar!==undefined){t.push(`env: ${e.envVar}`)}if(t.length>0){return`${e.description} (${t.join(", ")})`}return e.description}argumentDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(t.length>0){const n=`(${t.join(", ")})`;if(e.description){return`${e.description} ${n}`}return n}return e.description}formatHelp(e,t){const n=t.padWidth(e,t);const r=t.helpWidth||80;const i=2;const o=2;function formatItem(e,s){if(s){const a=`${e.padEnd(n+o)}${s}`;return t.wrap(a,r-i,n+o)}return e}function formatList(e){return e.join("\n").replace(/^/gm," ".repeat(i))}let s=[`Usage: ${t.commandUsage(e)}`,""];const a=t.commandDescription(e);if(a.length>0){s=s.concat([t.wrap(a,r,0),""])}const l=t.visibleArguments(e).map((e=>formatItem(t.argumentTerm(e),t.argumentDescription(e))));if(l.length>0){s=s.concat(["Arguments:",formatList(l),""])}const c=t.visibleOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(c.length>0){s=s.concat(["Options:",formatList(c),""])}if(this.showGlobalOptions){const n=t.visibleGlobalOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(n.length>0){s=s.concat(["Global Options:",formatList(n),""])}}const u=t.visibleCommands(e).map((e=>formatItem(t.subcommandTerm(e),t.subcommandDescription(e))));if(u.length>0){s=s.concat(["Commands:",formatList(u),""])}return s.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,n,r=40){const i=" \\f\\t\\v   -    \ufeff";const o=new RegExp(`[\\n][${i}]+`);if(e.match(o))return e;const s=t-n;if(s<r)return e;const a=e.slice(0,n);const l=e.slice(n).replace("\r\n","\n");const c=" ".repeat(n);const u="​";const f=`\\s${u}`;const p=new RegExp(`\n|.{1,${s-1}}([${f}]|$)|[^${f}]+?([${f}]|$)`,"g");const d=l.match(p)||[];return a+d.map(((e,t)=>{if(e==="\n")return"";return(t>0?c:"")+e.trimEnd()})).join("\n")}}t.Help=Help},513:(e,t,n)=>{const{InvalidArgumentError:r}=n(4848);class Option{constructor(e,t){this.flags=e;this.description=t||"";this.required=e.includes("<");this.optional=e.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(e);this.mandatory=false;const n=splitOptionFlags(e);this.short=n.shortFlag;this.long=n.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}preset(e){this.presetArg=e;return this}conflicts(e){this.conflictsWith=this.conflictsWith.concat(e);return this}implies(e){let t=e;if(typeof e==="string"){t={[e]:true}}this.implied=Object.assign(this.implied||{},t);return this}env(e){this.envVar=e;return this}argParser(e){this.parseArg=e;return this}makeOptionMandatory(e=true){this.mandatory=!!e;return this}hideHelp(e=true){this.hidden=!!e;return this}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(e){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;e.forEach((e=>{if(e.negate){this.negativeOptions.set(e.attributeName(),e)}else{this.positiveOptions.set(e.attributeName(),e)}}));this.negativeOptions.forEach(((e,t)=>{if(this.positiveOptions.has(t)){this.dualOptions.add(t)}}))}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return true;const r=this.negativeOptions.get(n).presetArg;const i=r!==undefined?r:false;return t.negate===(i===e)}}function camelcase(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}function splitOptionFlags(e){let t;let n;const r=e.split(/[ |,]+/);if(r.length>1&&!/^[[<]/.test(r[1]))t=r.shift();n=r.shift();if(!t&&/^-[^-]$/.test(n)){t=n;n=undefined}return{shortFlag:t,longFlag:n}}t.Option=Option;t.DualOptions=DualOptions},6587:(e,t)=>{const n=3;function editDistance(e,t){if(Math.abs(e.length-t.length)>n)return Math.max(e.length,t.length);const r=[];for(let t=0;t<=e.length;t++){r[t]=[t]}for(let e=0;e<=t.length;e++){r[0][e]=e}for(let n=1;n<=t.length;n++){for(let i=1;i<=e.length;i++){let o=1;if(e[i-1]===t[n-1]){o=0}else{o=1}r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o);if(i>1&&n>1&&e[i-1]===t[n-2]&&e[i-2]===t[n-1]){r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1)}}}return r[e.length][t.length]}function suggestSimilar(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));const r=e.startsWith("--");if(r){e=e.slice(2);t=t.map((e=>e.slice(2)))}let i=[];let o=n;const s=.4;t.forEach((t=>{if(t.length<=1)return;const n=editDistance(e,t);const r=Math.max(e.length,t.length);const a=(r-n)/r;if(a>s){if(n<o){o=n;i=[t]}else if(n===o){i.push(t)}}}));i.sort(((e,t)=>e.localeCompare(t)));if(r){i=i.map((e=>`--${e}`))}if(i.length>1){return`\n(Did you mean one of ${i.join(", ")}?)`}if(i.length===1){return`\n(Did you mean ${i[0]}?)`}return""}t.suggestSimilar=suggestSimilar},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"pod-install","version":"1.2.1","description":"A fast, zero-dependency package for cutting down on common issues developers have when running pod install.","keywords":["cocoapods","ios","npx","pod-install"],"homepage":"https://github.com/expo/expo/tree/main/packages/pod-install","bugs":{"url":"https://github.com/expo/expo/issues"},"license":"MIT","author":"Expo <support@expo.dev>","repository":{"type":"git","url":"https://github.com/expo/expo.git"},"bin":"./bin/pod-install.js","files":["bin","build"],"main":"./build/index.js","exports":{".":"./build/index.js","./package.json":"./package.json"},"scripts":{"prebuild":"expo-module clean","build":"ncc build ./src/index.ts -o build/","prebuild:prod":"expo-module clean","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"oxlint --config oxlint.config.mjs .","format":"expo-module format","prepublishOnly":"pnpm run clean && pnpm run build:prod","depscheck":"expo-module depscheck","typecheck":"tsc -p tsconfig.json"},"devDependencies":{"@expo/package-manager":"workspace:*","@vercel/ncc":"^0.38.4","chalk":"^4.0.0","commander":"^12.1.0","expo-module-scripts":"workspace:*","terminal-link":"^2.1.1","update-check":"^1.5.4"}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var n=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var r=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(3887);module.exports=__webpack_exports__})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pod-install",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A fast, zero-dependency package for cutting down on common issues developers have when running pod install.",
5
5
  "keywords": [
6
6
  "cocoapods",
@@ -31,15 +31,14 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "devDependencies": {
34
- "@expo/package-manager": "1.14.0",
34
+ "@expo/package-manager": "1.14.1",
35
35
  "@vercel/ncc": "^0.38.4",
36
36
  "chalk": "^4.0.0",
37
37
  "commander": "^12.1.0",
38
- "expo-module-scripts": "56.0.3",
38
+ "expo-module-scripts": "56.0.4",
39
39
  "terminal-link": "^2.1.1",
40
40
  "update-check": "^1.5.4"
41
41
  },
42
- "gitHead": "c543a7181fc32e14f42d89550087b80ac5c490f2",
43
42
  "scripts": {
44
43
  "prebuild": "expo-module clean",
45
44
  "build": "ncc build ./src/index.ts -o build/",