create-turbo 1.9.0-alpha.0 → 1.9.0-canary.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/cli.js +104 -104
  2. package/package.json +6 -5
package/dist/cli.js CHANGED
@@ -1,125 +1,129 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var e0=Object.create;var iu=Object.defineProperty;var t0=Object.getOwnPropertyDescriptor;var r0=Object.getOwnPropertyNames;var n0=Object.getPrototypeOf,i0=Object.prototype.hasOwnProperty;var o0=(e,t)=>()=>(e&&(t=e(e=0)),t);var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var s0=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of r0(t))!i0.call(e,n)&&n!==r&&iu(e,n,{get:()=>t[n],enumerable:!(i=t0(t,n))||i.enumerable});return e};var Ae=(e,t,r)=>(r=e!=null?e0(n0(e)):{},s0(t||!e||!e.__esModule?iu(r,"default",{value:e,enumerable:!0}):r,e));var j=o0(()=>{});var pu=te(lr=>{"use strict";j();Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function l0(e){return e.reduce((t,r)=>[].concat(t,r),[])}lr.flatten=l0;function p0(e,t){let r=[[]],i=0;for(let n of e)t(n)?(i++,r[i]=[]):r[i].push(n);return r}lr.splitWhen=p0});var fu=te(En=>{"use strict";j();Object.defineProperty(En,"__esModule",{value:!0});En.isEnoentCodeError=void 0;function f0(e){return e.code==="ENOENT"}En.isEnoentCodeError=f0});var du=te(Sn=>{"use strict";j();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.createDirentFromStats=void 0;var Ni=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function d0(e,t){return new Ni(e,t)}Sn.createDirentFromStats=d0});var hu=te(at=>{"use strict";j();Object.defineProperty(at,"__esModule",{value:!0});at.removeLeadingDotSegment=at.escape=at.makeAbsolute=at.unixify=void 0;var h0=require("path"),m0=2,y0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function g0(e){return e.replace(/\\/g,"/")}at.unixify=g0;function v0(e,t){return h0.resolve(e,t)}at.makeAbsolute=v0;function _0(e){return e.replace(y0,"\\$2")}at.escape=_0;function E0(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(m0)}return e}at.removeLeadingDotSegment=E0});var yu=te((RR,mu)=>{j();mu.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var _u=te((OR,vu)=>{j();var S0=yu(),gu={"{":"}","(":")","[":"]"},A0=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,i=-2,n=-2,u=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||i!==-1&&e[t]==="["&&e[t+1]!=="]"&&(i<t&&(i=e.indexOf("]",t)),i>t&&(s===-1||s>i||(s=e.indexOf("\\",t),s===-1||s>i)))||n!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(n=e.indexOf("}",t),n>t&&(s=e.indexOf("\\",t),s===-1||s>n))||u!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(u=e.indexOf(")",t),u>t&&(s=e.indexOf("\\",t),s===-1||s>u))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(u=e.indexOf(")",r),u>r&&(s=e.indexOf("\\",r),s===-1||s>u))))return!0;if(e[t]==="\\"){var o=e[t+1];t+=2;var a=gu[o];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},b0=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var i=gu[r];if(i){var n=e.indexOf(i,t);n!==-1&&(t=n+1)}if(e[t]==="!")return!0}else t++}return!1};vu.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(S0(t))return!0;var i=A0;return r&&r.strict===!1&&(i=b0),i(t)}});var Su=te((TR,Eu)=>{"use strict";j();var D0=_u(),x0=require("path").posix.dirname,w0=require("os").platform()==="win32",Bi="/",C0=/\\/g,k0=/[\{\[].*[\}\]]$/,F0=/(^|[^\\])([\{\[]|\([^\)]+$)/,R0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Eu.exports=function(t,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&w0&&t.indexOf(Bi)<0&&(t=t.replace(C0,Bi)),k0.test(t)&&(t+=Bi),t+="a";do t=x0(t);while(D0(t)||F0.test(t));return t.replace(R0,"$1")}});var An=te(tt=>{"use strict";j();tt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;tt.find=(e,t)=>e.nodes.find(r=>r.type===t);tt.exceedsLimit=(e,t,r=1,i)=>i===!1||!tt.isInteger(e)||!tt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=i;tt.escapeNode=(e,t=0,r)=>{let i=e.nodes[t];!i||(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};tt.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;tt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;tt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;tt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);tt.flatten=(...e)=>{let t=[],r=i=>{for(let n=0;n<i.length;n++){let u=i[n];Array.isArray(u)?r(u,t):u!==void 0&&t.push(u)}return t};return r(e),t}});var bn=te((LR,bu)=>{"use strict";j();var Au=An();bu.exports=(e,t={})=>{let r=(i,n={})=>{let u=t.escapeInvalid&&Au.isInvalidBrace(n),s=i.invalid===!0&&t.escapeInvalid===!0,o="";if(i.value)return(u||s)&&Au.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)o+=r(a);return o};return r(e)}});var xu=te((IR,Du)=>{"use strict";j();Du.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Lu=te((NR,Pu)=>{"use strict";j();var wu=xu(),Kt=(e,t,r)=>{if(wu(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(wu(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),u=String(i.shorthand),s=String(i.capture),o=String(i.wrap),a=e+":"+t+"="+n+u+s+o;if(Kt.cache.hasOwnProperty(a))return Kt.cache[a].result;let c=Math.min(e,t),p=Math.max(e,t);if(Math.abs(c-p)===1){let g=e+"|"+t;return i.capture?`(${g})`:i.wrap===!1?g:`(?:${g})`}let l=Tu(e)||Tu(t),f={min:e,max:t,a:c,b:p},d=[],m=[];if(l&&(f.isPadded=l,f.maxLen=String(f.max).length),c<0){let g=p<0?Math.abs(p):1;m=Cu(g,Math.abs(c),f,i),c=f.a=0}return p>=0&&(d=Cu(c,p,f,i)),f.negatives=m,f.positives=d,f.result=O0(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),Kt.cache[a]=f,f.result};function O0(e,t,r){let i=Mi(e,t,"-",!1,r)||[],n=Mi(t,e,"",!1,r)||[],u=Mi(e,t,"-?",!0,r)||[];return i.concat(u).concat(n).join("|")}function T0(e,t){let r=1,i=1,n=Fu(e,r),u=new Set([t]);for(;e<=n&&n<=t;)u.add(n),r+=1,n=Fu(e,r);for(n=Ru(t+1,i)-1;e<n&&n<=t;)u.add(n),i+=1,n=Ru(t+1,i)-1;return u=[...u],u.sort(I0),u}function P0(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let i=L0(e,t),n=i.length,u="",s=0;for(let o=0;o<n;o++){let[a,c]=i[o];a===c?u+=a:a!=="0"||c!=="9"?u+=N0(a,c,r):s++}return s&&(u+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:u,count:[s],digits:n}}function Cu(e,t,r,i){let n=T0(e,t),u=[],s=e,o;for(let a=0;a<n.length;a++){let c=n[a],p=P0(String(s),String(c),i),l="";if(!r.isPadded&&o&&o.pattern===p.pattern){o.count.length>1&&o.count.pop(),o.count.push(p.count[0]),o.string=o.pattern+Ou(o.count),s=c+1;continue}r.isPadded&&(l=B0(c,r,i)),p.string=l+p.pattern+Ou(p.count),u.push(p),s=c+1,o=p}return u}function Mi(e,t,r,i,n){let u=[];for(let s of e){let{string:o}=s;!i&&!ku(t,"string",o)&&u.push(r+o),i&&ku(t,"string",o)&&u.push(r+o)}return u}function L0(e,t){let r=[];for(let i=0;i<e.length;i++)r.push([e[i],t[i]]);return r}function I0(e,t){return e>t?1:t>e?-1:0}function ku(e,t,r){return e.some(i=>i[t]===r)}function Fu(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ru(e,t){return e-e%Math.pow(10,t)}function Ou(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function N0(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Tu(e){return/^-?(0+)\d/.test(e)}function B0(e,t,r){if(!t.isPadded)return e;let i=Math.abs(t.maxLen-String(e).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Kt.cache={};Kt.clearCache=()=>Kt.cache={};Pu.exports=Kt});var Hi=te((BR,Gu)=>{"use strict";j();var M0=require("util"),Bu=Lu(),Iu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),j0=e=>t=>e===!0?Number(t):String(t),ji=e=>typeof e=="number"||typeof e=="string"&&e!=="",Hr=e=>Number.isInteger(+e),$i=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},$0=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,H0=(e,t,r)=>{if(t>0){let i=e[0]==="-"?"-":"";i&&(e=e.slice(1)),e=i+e.padStart(i?t-1:t,"0")}return r===!1?String(e):e},Nu=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},G0=(e,t)=>{e.negatives.sort((s,o)=>s<o?-1:s>o?1:0),e.positives.sort((s,o)=>s<o?-1:s>o?1:0);let r=t.capture?"":"?:",i="",n="",u;return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(n=`-(${r}${e.negatives.join("|")})`),i&&n?u=`${i}|${n}`:u=i||n,t.wrap?`(${r}${u})`:u},Mu=(e,t,r,i)=>{if(r)return Bu(e,t,{wrap:!1,...i});let n=String.fromCharCode(e);if(e===t)return n;let u=String.fromCharCode(t);return`[${n}-${u}]`},ju=(e,t,r)=>{if(Array.isArray(e)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${e.join("|")})`:e.join("|")}return Bu(e,t,r)},$u=(...e)=>new RangeError("Invalid range arguments: "+M0.inspect(...e)),Hu=(e,t,r)=>{if(r.strictRanges===!0)throw $u([e,t]);return[]},q0=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},U0=(e,t,r=1,i={})=>{let n=Number(e),u=Number(t);if(!Number.isInteger(n)||!Number.isInteger(u)){if(i.strictRanges===!0)throw $u([e,t]);return[]}n===0&&(n=0),u===0&&(u=0);let s=n>u,o=String(e),a=String(t),c=String(r);r=Math.max(Math.abs(r),1);let p=$i(o)||$i(a)||$i(c),l=p?Math.max(o.length,a.length,c.length):0,f=p===!1&&$0(e,t,i)===!1,d=i.transform||j0(f);if(i.toRegex&&r===1)return Mu(Nu(e,l),Nu(t,l),!0,i);let m={negatives:[],positives:[]},g=h=>m[h<0?"negatives":"positives"].push(Math.abs(h)),_=[],E=0;for(;s?n>=u:n<=u;)i.toRegex===!0&&r>1?g(n):_.push(H0(d(n,E),l,f)),n=s?n-r:n+r,E++;return i.toRegex===!0?r>1?G0(m,i):ju(_,null,{wrap:!1,...i}):_},W0=(e,t,r=1,i={})=>{if(!Hr(e)&&e.length>1||!Hr(t)&&t.length>1)return Hu(e,t,i);let n=i.transform||(f=>String.fromCharCode(f)),u=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),o=u>s,a=Math.min(u,s),c=Math.max(u,s);if(i.toRegex&&r===1)return Mu(a,c,!1,i);let p=[],l=0;for(;o?u>=s:u<=s;)p.push(n(u,l)),u=o?u-r:u+r,l++;return i.toRegex===!0?ju(p,null,{wrap:!1,options:i}):p},Dn=(e,t,r,i={})=>{if(t==null&&ji(e))return[e];if(!ji(e)||!ji(t))return Hu(e,t,i);if(typeof r=="function")return Dn(e,t,1,{transform:r});if(Iu(r))return Dn(e,t,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Hr(r)?Hr(e)&&Hr(t)?U0(e,t,r,n):W0(e,t,Math.max(Math.abs(r),1),n):r!=null&&!Iu(r)?q0(r,n):Dn(e,t,1,r)};Gu.exports=Dn});var Wu=te((MR,Uu)=>{"use strict";j();var K0=Hi(),qu=An(),Y0=(e,t={})=>{let r=(i,n={})=>{let u=qu.isInvalidBrace(n),s=i.invalid===!0&&t.escapeInvalid===!0,o=u===!0||s===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return o?a+i.value:"(";if(i.type==="close")return o?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":o?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let p=qu.reduce(i.nodes),l=K0(...p,{...t,wrap:!1,toRegex:!0});if(l.length!==0)return p.length>1&&l.length>1?`(${l})`:l}if(i.nodes)for(let p of i.nodes)c+=r(p,i);return c};return r(e)};Uu.exports=Y0});var Vu=te((jR,Yu)=>{"use strict";j();var V0=Hi(),Ku=bn(),pr=An(),Yt=(e="",t="",r=!1)=>{let i=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pr.flatten(t).map(n=>`{${n}}`):t;for(let n of e)if(Array.isArray(n))for(let u of n)i.push(Yt(u,t,r));else for(let u of t)r===!0&&typeof u=="string"&&(u=`{${u}}`),i.push(Array.isArray(u)?Yt(n,u,r):n+u);return pr.flatten(i)},Q0=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,i=(n,u={})=>{n.queue=[];let s=u,o=u.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,o=s.queue;if(n.invalid||n.dollar){o.push(Yt(o.pop(),Ku(n,t)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(Yt(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let l=pr.reduce(n.nodes);if(pr.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=V0(...l,t);f.length===0&&(f=Ku(n,t)),o.push(Yt(o.pop(),f)),n.nodes=[];return}let a=pr.encloseBrace(n),c=n.queue,p=n;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,c=p.queue;for(let l=0;l<n.nodes.length;l++){let f=n.nodes[l];if(f.type==="comma"&&n.type==="brace"){l===1&&c.push(""),c.push("");continue}if(f.type==="close"){o.push(Yt(o.pop(),c,a));continue}if(f.value&&f.type!=="open"){c.push(Yt(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return pr.flatten(i(e))};Yu.exports=Q0});var Xu=te(($R,Qu)=>{"use strict";j();Qu.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
3
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var tc=te((HR,ec)=>{"use strict";j();var X0=bn(),{MAX_LENGTH:Ju,CHAR_BACKSLASH:Gi,CHAR_BACKTICK:J0,CHAR_COMMA:Z0,CHAR_DOT:z0,CHAR_LEFT_PARENTHESES:em,CHAR_RIGHT_PARENTHESES:tm,CHAR_LEFT_CURLY_BRACE:rm,CHAR_RIGHT_CURLY_BRACE:nm,CHAR_LEFT_SQUARE_BRACKET:Zu,CHAR_RIGHT_SQUARE_BRACKET:zu,CHAR_DOUBLE_QUOTE:im,CHAR_SINGLE_QUOTE:om,CHAR_NO_BREAK_SPACE:sm,CHAR_ZERO_WIDTH_NOBREAK_SPACE:am}=Xu(),um=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},i=typeof r.maxLength=="number"?Math.min(Ju,r.maxLength):Ju;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let n={type:"root",input:e,nodes:[]},u=[n],s=n,o=n,a=0,c=e.length,p=0,l=0,f,d={},m=()=>e[p++],g=_=>{if(_.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&_.type==="text"){o.value+=_.value;return}return s.nodes.push(_),_.parent=s,_.prev=o,o=_,_};for(g({type:"bos"});p<c;)if(s=u[u.length-1],f=m(),!(f===am||f===sm)){if(f===Gi){g({type:"text",value:(t.keepEscaping?f:"")+m()});continue}if(f===zu){g({type:"text",value:"\\"+f});continue}if(f===Zu){a++;let _=!0,E;for(;p<c&&(E=m());){if(f+=E,E===Zu){a++;continue}if(E===Gi){f+=m();continue}if(E===zu&&(a--,a===0))break}g({type:"text",value:f});continue}if(f===em){s=g({type:"paren",nodes:[]}),u.push(s),g({type:"text",value:f});continue}if(f===tm){if(s.type!=="paren"){g({type:"text",value:f});continue}s=u.pop(),g({type:"text",value:f}),s=u[u.length-1];continue}if(f===im||f===om||f===J0){let _=f,E;for(t.keepQuotes!==!0&&(f="");p<c&&(E=m());){if(E===Gi){f+=E+m();continue}if(E===_){t.keepQuotes===!0&&(f+=E);break}f+=E}g({type:"text",value:f});continue}if(f===rm){l++;let _=o.value&&o.value.slice(-1)==="$"||s.dollar===!0;s=g({type:"brace",open:!0,close:!1,dollar:_,depth:l,commas:0,ranges:0,nodes:[]}),u.push(s),g({type:"open",value:f});continue}if(f===nm){if(s.type!=="brace"){g({type:"text",value:f});continue}let _="close";s=u.pop(),s.close=!0,g({type:_,value:f}),l--,s=u[u.length-1];continue}if(f===Z0&&l>0){if(s.ranges>0){s.ranges=0;let _=s.nodes.shift();s.nodes=[_,{type:"text",value:X0(s)}]}g({type:"comma",value:f}),s.commas++;continue}if(f===z0&&l>0&&s.commas===0){let _=s.nodes;if(l===0||_.length===0){g({type:"text",value:f});continue}if(o.type==="dot"){if(s.range=[],o.value+=f,o.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,o.type="text";continue}s.ranges++,s.args=[];continue}if(o.type==="range"){_.pop();let E=_[_.length-1];E.value+=o.value+f,o=E,s.ranges--;continue}g({type:"dot",value:f});continue}g({type:"text",value:f})}do if(s=u.pop(),s.type!=="root"){s.nodes.forEach(h=>{h.nodes||(h.type==="open"&&(h.isOpen=!0),h.type==="close"&&(h.isClose=!0),h.nodes||(h.type="text"),h.invalid=!0)});let _=u[u.length-1],E=_.nodes.indexOf(s);_.nodes.splice(E,1,...s.nodes)}while(u.length>0);return g({type:"eos"}),n};ec.exports=um});var ic=te((GR,nc)=>{"use strict";j();var rc=bn(),cm=Wu(),lm=Vu(),pm=tc(),Qe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let i of e){let n=Qe.create(i,t);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Qe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Qe.parse=(e,t={})=>pm(e,t);Qe.stringify=(e,t={})=>rc(typeof e=="string"?Qe.parse(e,t):e,t);Qe.compile=(e,t={})=>(typeof e=="string"&&(e=Qe.parse(e,t)),cm(e,t));Qe.expand=(e,t={})=>{typeof e=="string"&&(e=Qe.parse(e,t));let r=lm(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Qe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Qe.compile(e,t):Qe.expand(e,t);nc.exports=Qe});var Gr=te((qR,cc)=>{"use strict";j();var fm=require("path"),ut="\\\\/",oc=`[^${ut}]`,vt="\\.",dm="\\+",hm="\\?",xn="\\/",mm="(?=.)",sc="[^/]",qi=`(?:${xn}|$)`,ac=`(?:^|${xn})`,Ui=`${vt}{1,2}${qi}`,ym=`(?!${vt})`,gm=`(?!${ac}${Ui})`,vm=`(?!${vt}{0,1}${qi})`,_m=`(?!${Ui})`,Em=`[^.${xn}]`,Sm=`${sc}*?`,uc={DOT_LITERAL:vt,PLUS_LITERAL:dm,QMARK_LITERAL:hm,SLASH_LITERAL:xn,ONE_CHAR:mm,QMARK:sc,END_ANCHOR:qi,DOTS_SLASH:Ui,NO_DOT:ym,NO_DOTS:gm,NO_DOT_SLASH:vm,NO_DOTS_SLASH:_m,QMARK_NO_DOT:Em,STAR:Sm,START_ANCHOR:ac},Am={...uc,SLASH_LITERAL:`[${ut}]`,QMARK:oc,STAR:`${oc}*?`,DOTS_SLASH:`${vt}{1,2}(?:[${ut}]|$)`,NO_DOT:`(?!${vt})`,NO_DOTS:`(?!(?:^|[${ut}])${vt}{1,2}(?:[${ut}]|$))`,NO_DOT_SLASH:`(?!${vt}{0,1}(?:[${ut}]|$))`,NO_DOTS_SLASH:`(?!${vt}{1,2}(?:[${ut}]|$))`,QMARK_NO_DOT:`[^.${ut}]`,START_ANCHOR:`(?:^|[${ut}])`,END_ANCHOR:`(?:[${ut}]|$)`},bm={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"};cc.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:bm,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:fm.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===!0?Am:uc}}});var qr=te(qe=>{"use strict";j();var Dm=require("path"),xm=process.platform==="win32",{REGEX_BACKSLASH:wm,REGEX_REMOVE_BACKSLASH:Cm,REGEX_SPECIAL_CHARS:km,REGEX_SPECIAL_CHARS_GLOBAL:Fm}=Gr();qe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);qe.hasRegexChars=e=>km.test(e);qe.isRegexChar=e=>e.length===1&&qe.hasRegexChars(e);qe.escapeRegex=e=>e.replace(Fm,"\\$1");qe.toPosixSlashes=e=>e.replace(wm,"/");qe.removeBackslashes=e=>e.replace(Cm,t=>t==="\\"?"":t);qe.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};qe.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:xm===!0||Dm.sep==="\\";qe.escapeLast=(e,t,r)=>{let i=e.lastIndexOf(t,r);return i===-1?e:e[i-1]==="\\"?qe.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`};qe.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};qe.wrapOutput=(e,t={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",u=`${i}(?:${e})${n}`;return t.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}});var gc=te((WR,yc)=>{"use strict";j();var lc=qr(),{CHAR_ASTERISK:Wi,CHAR_AT:Rm,CHAR_BACKWARD_SLASH:Ur,CHAR_COMMA:Om,CHAR_DOT:Ki,CHAR_EXCLAMATION_MARK:Yi,CHAR_FORWARD_SLASH:mc,CHAR_LEFT_CURLY_BRACE:Vi,CHAR_LEFT_PARENTHESES:Qi,CHAR_LEFT_SQUARE_BRACKET:Tm,CHAR_PLUS:Pm,CHAR_QUESTION_MARK:pc,CHAR_RIGHT_CURLY_BRACE:Lm,CHAR_RIGHT_PARENTHESES:fc,CHAR_RIGHT_SQUARE_BRACKET:Im}=Gr(),dc=e=>e===mc||e===Ur,hc=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Nm=(e,t)=>{let r=t||{},i=e.length-1,n=r.parts===!0||r.scanToEnd===!0,u=[],s=[],o=[],a=e,c=-1,p=0,l=0,f=!1,d=!1,m=!1,g=!1,_=!1,E=!1,h=!1,v=!1,x=!1,y=!1,A=0,b,k,D={value:"",depth:0,isGlob:!1},F=()=>c>=i,w=()=>a.charCodeAt(c+1),O=()=>(b=k,a.charCodeAt(++c));for(;c<i;){k=O();let L;if(k===Ur){h=D.backslashes=!0,k=O(),k===Vi&&(E=!0);continue}if(E===!0||k===Vi){for(A++;F()!==!0&&(k=O());){if(k===Ur){h=D.backslashes=!0,O();continue}if(k===Vi){A++;continue}if(E!==!0&&k===Ki&&(k=O())===Ki){if(f=D.isBrace=!0,m=D.isGlob=!0,y=!0,n===!0)continue;break}if(E!==!0&&k===Om){if(f=D.isBrace=!0,m=D.isGlob=!0,y=!0,n===!0)continue;break}if(k===Lm&&(A--,A===0)){E=!1,f=D.isBrace=!0,y=!0;break}}if(n===!0)continue;break}if(k===mc){if(u.push(c),s.push(D),D={value:"",depth:0,isGlob:!1},y===!0)continue;if(b===Ki&&c===p+1){p+=2;continue}l=c+1;continue}if(r.noext!==!0&&(k===Pm||k===Rm||k===Wi||k===pc||k===Yi)===!0&&w()===Qi){if(m=D.isGlob=!0,g=D.isExtglob=!0,y=!0,k===Yi&&c===p&&(x=!0),n===!0){for(;F()!==!0&&(k=O());){if(k===Ur){h=D.backslashes=!0,k=O();continue}if(k===fc){m=D.isGlob=!0,y=!0;break}}continue}break}if(k===Wi){if(b===Wi&&(_=D.isGlobstar=!0),m=D.isGlob=!0,y=!0,n===!0)continue;break}if(k===pc){if(m=D.isGlob=!0,y=!0,n===!0)continue;break}if(k===Tm){for(;F()!==!0&&(L=O());){if(L===Ur){h=D.backslashes=!0,O();continue}if(L===Im){d=D.isBracket=!0,m=D.isGlob=!0,y=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&k===Yi&&c===p){v=D.negated=!0,p++;continue}if(r.noparen!==!0&&k===Qi){if(m=D.isGlob=!0,n===!0){for(;F()!==!0&&(k=O());){if(k===Qi){h=D.backslashes=!0,k=O();continue}if(k===fc){y=!0;break}}continue}break}if(m===!0){if(y=!0,n===!0)continue;break}}r.noext===!0&&(g=!1,m=!1);let P=a,C="",S="";p>0&&(C=a.slice(0,p),a=a.slice(p),l-=p),P&&m===!0&&l>0?(P=a.slice(0,l),S=a.slice(l)):m===!0?(P="",S=a):P=a,P&&P!==""&&P!=="/"&&P!==a&&dc(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),r.unescape===!0&&(S&&(S=lc.removeBackslashes(S)),P&&h===!0&&(P=lc.removeBackslashes(P)));let R={prefix:C,input:e,start:p,base:P,glob:S,isBrace:f,isBracket:d,isGlob:m,isExtglob:g,isGlobstar:_,negated:v,negatedExtglob:x};if(r.tokens===!0&&(R.maxDepth=0,dc(k)||s.push(D),R.tokens=s),r.parts===!0||r.tokens===!0){let L;for(let M=0;M<u.length;M++){let B=L?L+1:p,Q=u[M],Z=e.slice(B,Q);r.tokens&&(M===0&&p!==0?(s[M].isPrefix=!0,s[M].value=C):s[M].value=Z,hc(s[M]),R.maxDepth+=s[M].depth),(M!==0||Z!=="")&&o.push(Z),L=Q}if(L&&L+1<e.length){let M=e.slice(L+1);o.push(M),r.tokens&&(s[s.length-1].value=M,hc(s[s.length-1]),R.maxDepth+=s[s.length-1].depth)}R.slashes=u,R.parts=o}return R};yc.exports=Nm});var Ec=te((KR,_c)=>{"use strict";j();var wn=Gr(),Xe=qr(),{MAX_LENGTH:Cn,POSIX_REGEX_SOURCE:Bm,REGEX_NON_SPECIAL_CHARS:Mm,REGEX_SPECIAL_CHARS_BACKREF:jm,REPLACEMENTS:vc}=wn,$m=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(n=>Xe.escapeRegex(n)).join("..")}return r},fr=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xi=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vc[e]||e;let r={...t},i=typeof r.maxLength=="number"?Math.min(Cn,r.maxLength):Cn,n=e.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let u={type:"bos",value:"",output:r.prepend||""},s=[u],o=r.capture?"":"?:",a=Xe.isWindows(t),c=wn.globChars(a),p=wn.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:_,NO_DOT_SLASH:E,NO_DOTS_SLASH:h,QMARK:v,QMARK_NO_DOT:x,STAR:y,START_ANCHOR:A}=c,b=$=>`(${o}(?:(?!${A}${$.dot?g:l}).)*?)`,k=r.dot?"":_,D=r.dot?v:x,F=r.bash===!0?b(r):y;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Xe.removePrefix(e,w),n=e.length;let O=[],P=[],C=[],S=u,R,L=()=>w.index===n-1,M=w.peek=($=1)=>e[w.index+$],B=w.advance=()=>e[++w.index]||"",Q=()=>e.slice(w.index+1),Z=($="",K=0)=>{w.consumed+=$,w.index+=K},oe=$=>{w.output+=$.output!=null?$.output:$.value,Z($.value)},N=()=>{let $=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)B(),w.start++,$++;return $%2===0?!1:(w.negated=!0,w.start++,!0)},le=$=>{w[$]++,C.push($)},pe=$=>{w[$]--,C.pop()},ne=$=>{if(S.type==="globstar"){let K=w.braces>0&&($.type==="comma"||$.type==="brace"),Y=$.extglob===!0||O.length&&($.type==="pipe"||$.type==="paren");$.type!=="slash"&&$.type!=="paren"&&!K&&!Y&&(w.output=w.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=F,w.output+=S.output)}if(O.length&&$.type!=="paren"&&(O[O.length-1].inner+=$.value),($.value||$.output)&&oe($),S&&S.type==="text"&&$.type==="text"){S.value+=$.value,S.output=(S.output||"")+$.value;return}$.prev=S,s.push($),S=$},T=($,K)=>{let Y={...p[K],conditions:1,inner:""};Y.prev=S,Y.parens=w.parens,Y.output=w.output;let z=(r.capture?"(":"")+Y.open;le("parens"),ne({type:$,value:K,output:w.output?"":m}),ne({type:"paren",extglob:!0,value:B(),output:z}),O.push(Y)},I=$=>{let K=$.close+(r.capture?")":""),Y;if($.type==="negate"){let z=F;if($.inner&&$.inner.length>1&&$.inner.includes("/")&&(z=b(r)),(z!==F||L()||/^\)+$/.test(Q()))&&(K=$.close=`)$))${z}`),$.inner.includes("*")&&(Y=Q())&&/^\.[^\\/.]+$/.test(Y)){let X=Xi(Y,{...t,fastpaths:!1}).output;K=$.close=`)${X})${z})`}$.prev.type==="bos"&&(w.negatedExtglob=!0)}ne({type:"paren",extglob:!0,value:R,output:K}),pe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let $=!1,K=e.replace(jm,(Y,z,X,ee,ie,ye)=>ee==="\\"?($=!0,Y):ee==="?"?z?z+ee+(ie?v.repeat(ie.length):""):ye===0?D+(ie?v.repeat(ie.length):""):v.repeat(X.length):ee==="."?l.repeat(X.length):ee==="*"?z?z+ee+(ie?F:""):F:z?Y:`\\${Y}`);return $===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),K===e&&r.contains===!0?(w.output=e,w):(w.output=Xe.wrapOutput(K,w,t),w)}for(;!L();){if(R=B(),R==="\0")continue;if(R==="\\"){let Y=M();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){R+="\\",ne({type:"text",value:R});continue}let z=/^\\+/.exec(Q()),X=0;if(z&&z[0].length>2&&(X=z[0].length,w.index+=X,X%2!==0&&(R+="\\")),r.unescape===!0?R=B():R+=B(),w.brackets===0){ne({type:"text",value:R});continue}}if(w.brackets>0&&(R!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&R===":"){let Y=S.value.slice(1);if(Y.includes("[")&&(S.posix=!0,Y.includes(":"))){let z=S.value.lastIndexOf("["),X=S.value.slice(0,z),ee=S.value.slice(z+2),ie=Bm[ee];if(ie){S.value=X+ie,w.backtrack=!0,B(),!u.output&&s.indexOf(S)===1&&(u.output=m);continue}}}(R==="["&&M()!==":"||R==="-"&&M()==="]")&&(R=`\\${R}`),R==="]"&&(S.value==="["||S.value==="[^")&&(R=`\\${R}`),r.posix===!0&&R==="!"&&S.value==="["&&(R="^"),S.value+=R,oe({value:R});continue}if(w.quotes===1&&R!=='"'){R=Xe.escapeRegex(R),S.value+=R,oe({value:R});continue}if(R==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&ne({type:"text",value:R});continue}if(R==="("){le("parens"),ne({type:"paren",value:R});continue}if(R===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(fr("opening","("));let Y=O[O.length-1];if(Y&&w.parens===Y.parens+1){I(O.pop());continue}ne({type:"paren",value:R,output:w.parens?")":"\\)"}),pe("parens");continue}if(R==="["){if(r.nobracket===!0||!Q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(fr("closing","]"));R=`\\${R}`}else le("brackets");ne({type:"bracket",value:R});continue}if(R==="]"){if(r.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){ne({type:"text",value:R,output:`\\${R}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(fr("opening","["));ne({type:"text",value:R,output:`\\${R}`});continue}pe("brackets");let Y=S.value.slice(1);if(S.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(R=`/${R}`),S.value+=R,oe({value:R}),r.literalBrackets===!1||Xe.hasRegexChars(Y))continue;let z=Xe.escapeRegex(S.value);if(w.output=w.output.slice(0,-S.value.length),r.literalBrackets===!0){w.output+=z,S.value=z;continue}S.value=`(${o}${z}|${S.value})`,w.output+=S.value;continue}if(R==="{"&&r.nobrace!==!0){le("braces");let Y={type:"brace",value:R,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};P.push(Y),ne(Y);continue}if(R==="}"){let Y=P[P.length-1];if(r.nobrace===!0||!Y){ne({type:"text",value:R,output:R});continue}let z=")";if(Y.dots===!0){let X=s.slice(),ee=[];for(let ie=X.length-1;ie>=0&&(s.pop(),X[ie].type!=="brace");ie--)X[ie].type!=="dots"&&ee.unshift(X[ie].value);z=$m(ee,r),w.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let X=w.output.slice(0,Y.outputIndex),ee=w.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",R=z="\\}",w.output=X;for(let ie of ee)w.output+=ie.output||ie.value}ne({type:"brace",value:R,output:z}),pe("braces"),P.pop();continue}if(R==="|"){O.length>0&&O[O.length-1].conditions++,ne({type:"text",value:R});continue}if(R===","){let Y=R,z=P[P.length-1];z&&C[C.length-1]==="braces"&&(z.comma=!0,Y="|"),ne({type:"comma",value:R,output:Y});continue}if(R==="/"){if(S.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",s.pop(),S=u;continue}ne({type:"slash",value:R,output:d});continue}if(R==="."){if(w.braces>0&&S.type==="dot"){S.value==="."&&(S.output=l);let Y=P[P.length-1];S.type="dots",S.output+=R,S.value+=R,Y.dots=!0;continue}if(w.braces+w.parens===0&&S.type!=="bos"&&S.type!=="slash"){ne({type:"text",value:R,output:l});continue}ne({type:"dot",value:R,output:l});continue}if(R==="?"){if(!(S&&S.value==="(")&&r.noextglob!==!0&&M()==="("&&M(2)!=="?"){T("qmark",R);continue}if(S&&S.type==="paren"){let z=M(),X=R;if(z==="<"&&!Xe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(z)||z==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(X=`\\${R}`),ne({type:"text",value:R,output:X});continue}if(r.dot!==!0&&(S.type==="slash"||S.type==="bos")){ne({type:"qmark",value:R,output:x});continue}ne({type:"qmark",value:R,output:v});continue}if(R==="!"){if(r.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){T("negate",R);continue}if(r.nonegate!==!0&&w.index===0){N();continue}}if(R==="+"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){T("plus",R);continue}if(S&&S.value==="("||r.regex===!1){ne({type:"plus",value:R,output:f});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||w.parens>0){ne({type:"plus",value:R});continue}ne({type:"plus",value:f});continue}if(R==="@"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){ne({type:"at",extglob:!0,value:R,output:""});continue}ne({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let Y=Mm.exec(Q());Y&&(R+=Y[0],w.index+=Y[0].length),ne({type:"text",value:R});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=R,S.output=F,w.backtrack=!0,w.globstar=!0,Z(R);continue}let $=Q();if(r.noextglob!==!0&&/^\([^?]/.test($)){T("star",R);continue}if(S.type==="star"){if(r.noglobstar===!0){Z(R);continue}let Y=S.prev,z=Y.prev,X=Y.type==="slash"||Y.type==="bos",ee=z&&(z.type==="star"||z.type==="globstar");if(r.bash===!0&&(!X||$[0]&&$[0]!=="/")){ne({type:"star",value:R,output:""});continue}let ie=w.braces>0&&(Y.type==="comma"||Y.type==="brace"),ye=O.length&&(Y.type==="pipe"||Y.type==="paren");if(!X&&Y.type!=="paren"&&!ie&&!ye){ne({type:"star",value:R,output:""});continue}for(;$.slice(0,3)==="/**";){let se=e[w.index+4];if(se&&se!=="/")break;$=$.slice(3),Z("/**",3)}if(Y.type==="bos"&&L()){S.type="globstar",S.value+=R,S.output=b(r),w.output=S.output,w.globstar=!0,Z(R);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!ee&&L()){w.output=w.output.slice(0,-(Y.output+S.output).length),Y.output=`(?:${Y.output}`,S.type="globstar",S.output=b(r)+(r.strictSlashes?")":"|$)"),S.value+=R,w.globstar=!0,w.output+=Y.output+S.output,Z(R);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&$[0]==="/"){let se=$[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(Y.output+S.output).length),Y.output=`(?:${Y.output}`,S.type="globstar",S.output=`${b(r)}${d}|${d}${se})`,S.value+=R,w.output+=Y.output+S.output,w.globstar=!0,Z(R+B()),ne({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&$[0]==="/"){S.type="globstar",S.value+=R,S.output=`(?:^|${d}|${b(r)}${d})`,w.output=S.output,w.globstar=!0,Z(R+B()),ne({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-S.output.length),S.type="globstar",S.output=b(r),S.value+=R,w.output+=S.output,w.globstar=!0,Z(R);continue}let K={type:"star",value:R,output:F};if(r.bash===!0){K.output=".*?",(S.type==="bos"||S.type==="slash")&&(K.output=k+K.output),ne(K);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&r.regex===!0){K.output=R,ne(K);continue}(w.index===w.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(w.output+=E,S.output+=E):r.dot===!0?(w.output+=h,S.output+=h):(w.output+=k,S.output+=k),M()!=="*"&&(w.output+=m,S.output+=m)),ne(K)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing","]"));w.output=Xe.escapeLast(w.output,"["),pe("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing",")"));w.output=Xe.escapeLast(w.output,"("),pe("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing","}"));w.output=Xe.escapeLast(w.output,"{"),pe("braces")}if(r.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&ne({type:"maybe_slash",value:"",output:`${d}?`}),w.backtrack===!0){w.output="";for(let $ of w.tokens)w.output+=$.output!=null?$.output:$.value,$.suffix&&(w.output+=$.suffix)}return w};Xi.fastpaths=(e,t)=>{let r={...t},i=typeof r.maxLength=="number"?Math.min(Cn,r.maxLength):Cn,n=e.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);e=vc[e]||e;let u=Xe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=wn.globChars(u),g=r.dot?l:p,_=r.dot?f:p,E=r.capture?"":"?:",h={negated:!1,prefix:""},v=r.bash===!0?".*?":d;r.capture&&(v=`(${v})`);let x=k=>k.noglobstar===!0?v:`(${E}(?:(?!${m}${k.dot?c:s}).)*?)`,y=k=>{switch(k){case"*":return`${g}${a}${v}`;case".*":return`${s}${a}${v}`;case"*.*":return`${g}${v}${s}${a}${v}`;case"*/*":return`${g}${v}${o}${a}${_}${v}`;case"**":return g+x(r);case"**/*":return`(?:${g}${x(r)}${o})?${_}${a}${v}`;case"**/*.*":return`(?:${g}${x(r)}${o})?${_}${v}${s}${a}${v}`;case"**/.*":return`(?:${g}${x(r)}${o})?${s}${a}${v}`;default:{let D=/^(.*?)\.(\w+)$/.exec(k);if(!D)return;let F=y(D[1]);return F?F+s+D[2]:void 0}}},A=Xe.removePrefix(e,h),b=y(A);return b&&r.strictSlashes!==!0&&(b+=`${o}?`),b};_c.exports=Xi});var Ac=te((YR,Sc)=>{"use strict";j();var Hm=require("path"),Gm=gc(),Ji=Ec(),Zi=qr(),qm=Gr(),Um=e=>e&&typeof e=="object"&&!Array.isArray(e),De=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(f=>De(f,t,r));return f=>{for(let d of p){let m=d(f);if(m)return m}return!1}}let i=Um(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=t||{},u=Zi.isWindows(t),s=i?De.compileRe(e,t):De.makeRe(e,t,!1,!0),o=s.state;delete s.state;let a=()=>!1;if(n.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};a=De(n.ignore,p,r)}let c=(p,l=!1)=>{let{isMatch:f,match:d,output:m}=De.test(p,s,t,{glob:e,posix:u}),g={glob:e,state:o,regex:s,posix:u,input:p,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(g),f===!1?(g.isMatch=!1,l?g:!1):a(p)?(typeof n.onIgnore=="function"&&n.onIgnore(g),g.isMatch=!1,l?g:!1):(typeof n.onMatch=="function"&&n.onMatch(g),l?g:!0)};return r&&(c.state=o),c};De.test=(e,t,r,{glob:i,posix:n}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let u=r||{},s=u.format||(n?Zi.toPosixSlashes:null),o=e===i,a=o&&s?s(e):e;return o===!1&&(a=s?s(e):e,o=a===i),(o===!1||u.capture===!0)&&(u.matchBase===!0||u.basename===!0?o=De.matchBase(e,t,r,n):o=t.exec(a)),{isMatch:Boolean(o),match:o,output:a}};De.matchBase=(e,t,r,i=Zi.isWindows(r))=>(t instanceof RegExp?t:De.makeRe(t,r)).test(Hm.basename(e));De.isMatch=(e,t,r)=>De(t,r)(e);De.parse=(e,t)=>Array.isArray(e)?e.map(r=>De.parse(r,t)):Ji(e,{...t,fastpaths:!1});De.scan=(e,t)=>Gm(e,t);De.compileRe=(e,t,r=!1,i=!1)=>{if(r===!0)return e.output;let n=t||{},u=n.contains?"":"^",s=n.contains?"":"$",o=`${u}(?:${e.output})${s}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let a=De.toRegex(o,t);return i===!0&&(a.state=e),a};De.makeRe=(e,t={},r=!1,i=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(n.output=Ji.fastpaths(e,t)),n.output||(n=Ji(e,t)),De.compileRe(n,t,r,i)};De.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};De.constants=qm;Sc.exports=De});var Dc=te((VR,bc)=>{"use strict";j();bc.exports=Ac()});var Fc=te((QR,kc)=>{"use strict";j();var wc=require("util"),Cc=ic(),ct=Dc(),zi=qr(),xc=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let i=new Set,n=new Set,u=new Set,s=0,o=p=>{u.add(p.output),r&&r.onResult&&r.onResult(p)};for(let p=0;p<t.length;p++){let l=ct(String(t[p]),{...r,onResult:o},!0),f=l.state.negated||l.state.negatedExtglob;f&&s++;for(let d of e){let m=l(d,!0);!(f?!m.isMatch:m.isMatch)||(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(s===t.length?[...u]:[...n]).filter(p=>!i.has(p));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(p=>p.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>ct(e,t);be.isMatch=(e,t,r)=>ct(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let i=new Set,n=[],u=o=>{r.onResult&&r.onResult(o),n.push(o.output)},s=new Set(be(e,t,{...r,onResult:u}));for(let o of n)s.has(o)||i.add(o);return[...i]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wc.inspect(e)}"`);if(Array.isArray(t))return t.some(i=>be.contains(e,i,r));if(typeof t=="string"){if(xc(e)||xc(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return be.isMatch(e,t,{...r,contains:!0})};be.matchKeys=(e,t,r)=>{if(!zi.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=be(Object.keys(e),t,r),n={};for(let u of i)n[u]=e[u];return n};be.some=(e,t,r)=>{let i=[].concat(e);for(let n of[].concat(t)){let u=ct(String(n),r);if(i.some(s=>u(s)))return!0}return!1};be.every=(e,t,r)=>{let i=[].concat(e);for(let n of[].concat(t)){let u=ct(String(n),r);if(!i.every(s=>u(s)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wc.inspect(e)}"`);return[].concat(t).every(i=>ct(i,r)(e))};be.capture=(e,t,r)=>{let i=zi.isWindows(r),u=ct.makeRe(String(e),{...r,capture:!0}).exec(i?zi.toPosixSlashes(t):t);if(u)return u.slice(1).map(s=>s===void 0?"":s)};be.makeRe=(...e)=>ct.makeRe(...e);be.scan=(...e)=>ct.scan(...e);be.parse=(e,t)=>{let r=[];for(let i of[].concat(e||[]))for(let n of Cc(String(i),t))r.push(ct.parse(n,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Cc(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};kc.exports=be});var Bc=te(ge=>{"use strict";j();Object.defineProperty(ge,"__esModule",{value:!0});ge.matchAny=ge.convertPatternsToRe=ge.makeRe=ge.getPatternParts=ge.expandBraceExpansion=ge.expandPatternsWithBraceExpansion=ge.isAffectDepthOfReadingPattern=ge.endsWithSlashGlobStar=ge.hasGlobStar=ge.getBaseDirectory=ge.isPatternRelatedToParentDirectory=ge.getPatternsOutsideCurrentDirectory=ge.getPatternsInsideCurrentDirectory=ge.getPositivePatterns=ge.getNegativePatterns=ge.isPositivePattern=ge.isNegativePattern=ge.convertToNegativePattern=ge.convertToPositivePattern=ge.isDynamicPattern=ge.isStaticPattern=void 0;var Wm=require("path"),Km=Su(),eo=Fc(),Rc="**",Ym="\\",Vm=/[*?]|^!/,Qm=/\[[^[]*]/,Xm=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Jm=/[!*+?@]\([^(]*\)/,Zm=/,|\.\./;function Oc(e,t={}){return!Tc(e,t)}ge.isStaticPattern=Oc;function Tc(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Ym)||Vm.test(e)||Qm.test(e)||Xm.test(e)||t.extglob!==!1&&Jm.test(e)||t.braceExpansion!==!1&&zm(e))}ge.isDynamicPattern=Tc;function zm(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let i=e.slice(t,r);return Zm.test(i)}function ey(e){return kn(e)?e.slice(1):e}ge.convertToPositivePattern=ey;function ty(e){return"!"+e}ge.convertToNegativePattern=ty;function kn(e){return e.startsWith("!")&&e[1]!=="("}ge.isNegativePattern=kn;function Pc(e){return!kn(e)}ge.isPositivePattern=Pc;function ry(e){return e.filter(kn)}ge.getNegativePatterns=ry;function ny(e){return e.filter(Pc)}ge.getPositivePatterns=ny;function iy(e){return e.filter(t=>!to(t))}ge.getPatternsInsideCurrentDirectory=iy;function oy(e){return e.filter(to)}ge.getPatternsOutsideCurrentDirectory=oy;function to(e){return e.startsWith("..")||e.startsWith("./..")}ge.isPatternRelatedToParentDirectory=to;function sy(e){return Km(e,{flipBackslashes:!1})}ge.getBaseDirectory=sy;function ay(e){return e.includes(Rc)}ge.hasGlobStar=ay;function Lc(e){return e.endsWith("/"+Rc)}ge.endsWithSlashGlobStar=Lc;function uy(e){let t=Wm.basename(e);return Lc(e)||Oc(t)}ge.isAffectDepthOfReadingPattern=uy;function cy(e){return e.reduce((t,r)=>t.concat(Ic(r)),[])}ge.expandPatternsWithBraceExpansion=cy;function Ic(e){return eo.braces(e,{expand:!0,nodupes:!0})}ge.expandBraceExpansion=Ic;function ly(e,t){let{parts:r}=eo.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ge.getPatternParts=ly;function Nc(e,t){return eo.makeRe(e,t)}ge.makeRe=Nc;function py(e,t){return e.map(r=>Nc(r,t))}ge.convertPatternsToRe=py;function fy(e,t){return t.some(r=>r.test(e))}ge.matchAny=fy});var Hc=te((JR,$c)=>{"use strict";j();var dy=require("stream"),Mc=dy.PassThrough,hy=Array.prototype.slice;$c.exports=my;function my(){let e=[],t=hy.call(arguments),r=!1,i=t[t.length-1];i&&!Array.isArray(i)&&i.pipe==null?t.pop():i={};let n=i.end!==!1,u=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let s=Mc(i);function o(){for(let p=0,l=arguments.length;p<l;p++)e.push(jc(arguments[p],i));return a(),this}function a(){if(r)return;r=!0;let p=e.shift();if(!p){process.nextTick(c);return}Array.isArray(p)||(p=[p]);let l=p.length+1;function f(){--l>0||(r=!1,a())}function d(m){function g(){m.removeListener("merge2UnpipeEnd",g),m.removeListener("end",g),u&&m.removeListener("error",_),f()}function _(E){s.emit("error",E)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",g),m.on("end",g),u&&m.on("error",_),m.pipe(s,{end:!1}),m.resume()}for(let m=0;m<p.length;m++)d(p[m]);f()}function c(){r=!1,s.emit("queueDrain"),n&&s.end()}return s.setMaxListeners(0),s.add=o,s.on("unpipe",function(p){p.emit("merge2UnpipeEnd")}),t.length&&o.apply(null,t),s}function jc(e,t){if(Array.isArray(e))for(let r=0,i=e.length;r<i;r++)e[r]=jc(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Mc(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var qc=te(Fn=>{"use strict";j();Object.defineProperty(Fn,"__esModule",{value:!0});Fn.merge=void 0;var yy=Hc();function gy(e){let t=yy(e);return e.forEach(r=>{r.once("error",i=>t.emit("error",i))}),t.once("close",()=>Gc(e)),t.once("end",()=>Gc(e)),t}Fn.merge=gy;function Gc(e){e.forEach(t=>t.emit("close"))}});var Uc=te(dr=>{"use strict";j();Object.defineProperty(dr,"__esModule",{value:!0});dr.isEmpty=dr.isString=void 0;function vy(e){return typeof e=="string"}dr.isString=vy;function _y(e){return e===""}dr.isEmpty=_y});var _t=te(Pe=>{"use strict";j();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.string=Pe.stream=Pe.pattern=Pe.path=Pe.fs=Pe.errno=Pe.array=void 0;var Ey=pu();Pe.array=Ey;var Sy=fu();Pe.errno=Sy;var Ay=du();Pe.fs=Ay;var by=hu();Pe.path=by;var Dy=Bc();Pe.pattern=Dy;var xy=qc();Pe.stream=xy;var wy=Uc();Pe.string=wy});var Yc=te(Le=>{"use strict";j();Object.defineProperty(Le,"__esModule",{value:!0});Le.convertPatternGroupToTask=Le.convertPatternGroupsToTasks=Le.groupPatternsByBaseDirectory=Le.getNegativePatternsAsPositive=Le.getPositivePatterns=Le.convertPatternsToTasks=Le.generate=void 0;var Et=_t();function Cy(e,t){let r=Wc(e),i=Kc(e,t.ignore),n=r.filter(a=>Et.pattern.isStaticPattern(a,t)),u=r.filter(a=>Et.pattern.isDynamicPattern(a,t)),s=ro(n,i,!1),o=ro(u,i,!0);return s.concat(o)}Le.generate=Cy;function ro(e,t,r){let i=[],n=Et.pattern.getPatternsOutsideCurrentDirectory(e),u=Et.pattern.getPatternsInsideCurrentDirectory(e),s=no(n),o=no(u);return i.push(...io(s,t,r)),"."in o?i.push(oo(".",u,t,r)):i.push(...io(o,t,r)),i}Le.convertPatternsToTasks=ro;function Wc(e){return Et.pattern.getPositivePatterns(e)}Le.getPositivePatterns=Wc;function Kc(e,t){return Et.pattern.getNegativePatterns(e).concat(t).map(Et.pattern.convertToPositivePattern)}Le.getNegativePatternsAsPositive=Kc;function no(e){let t={};return e.reduce((r,i)=>{let n=Et.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},t)}Le.groupPatternsByBaseDirectory=no;function io(e,t,r){return Object.keys(e).map(i=>oo(i,e[i],t,r))}Le.convertPatternGroupsToTasks=io;function oo(e,t,r,i){return{dynamic:i,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Et.pattern.convertToNegativePattern))}}Le.convertPatternGroupToTask=oo});var Qc=te(hr=>{"use strict";j();Object.defineProperty(hr,"__esModule",{value:!0});hr.removeDuplicateSlashes=hr.transform=void 0;var ky=/(?!^)\/{2,}/g;function Fy(e){return e.map(t=>Vc(t))}hr.transform=Fy;function Vc(e){return e.replace(ky,"/")}hr.removeDuplicateSlashes=Vc});var Jc=te(Rn=>{"use strict";j();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.read=void 0;function Ry(e,t,r){t.fs.lstat(e,(i,n)=>{if(i!==null){Xc(r,i);return}if(!n.isSymbolicLink()||!t.followSymbolicLink){so(r,n);return}t.fs.stat(e,(u,s)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){Xc(r,u);return}so(r,n);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),so(r,s)})})}Rn.read=Ry;function Xc(e,t){e(t)}function so(e,t){e(null,t)}});var Zc=te(On=>{"use strict";j();Object.defineProperty(On,"__esModule",{value:!0});On.read=void 0;function Oy(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let i=t.fs.statSync(e);return t.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw i}}On.read=Oy});var zc=te(Ct=>{"use strict";j();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.createFileSystemAdapter=Ct.FILE_SYSTEM_ADAPTER=void 0;var Tn=require("fs");Ct.FILE_SYSTEM_ADAPTER={lstat:Tn.lstat,stat:Tn.stat,lstatSync:Tn.lstatSync,statSync:Tn.statSync};function Ty(e){return e===void 0?Ct.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ct.FILE_SYSTEM_ADAPTER),e)}Ct.createFileSystemAdapter=Ty});var el=te(uo=>{"use strict";j();Object.defineProperty(uo,"__esModule",{value:!0});var Py=zc(),ao=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Py.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};uo.default=ao});var Vt=te(kt=>{"use strict";j();Object.defineProperty(kt,"__esModule",{value:!0});kt.statSync=kt.stat=kt.Settings=void 0;var tl=Jc(),Ly=Zc(),co=el();kt.Settings=co.default;function Iy(e,t,r){if(typeof t=="function"){tl.read(e,lo(),t);return}tl.read(e,lo(t),r)}kt.stat=Iy;function Ny(e,t){let r=lo(t);return Ly.read(e,r)}kt.statSync=Ny;function lo(e={}){return e instanceof co.default?e:new co.default(e)}});var il=te((uO,nl)=>{j();var rl;nl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(rl||(rl=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var sl=te((cO,ol)=>{j();ol.exports=My;var By=il();function My(e,t){let r,i,n,u=!0;Array.isArray(e)?(r=[],i=e.length):(n=Object.keys(e),r={},i=n.length);function s(a){function c(){t&&t(a,r),t=null}u?By(c):c()}function o(a,c,p){r[a]=p,(--i===0||c)&&s(c)}i?n?n.forEach(function(a){e[a](function(c,p){o(a,c,p)})}):e.forEach(function(a,c){a(function(p,l){o(c,p,l)})}):s(null),u=!1}});var po=te(Ln=>{"use strict";j();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Pn=process.versions.node.split(".");if(Pn[0]===void 0||Pn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var al=Number.parseInt(Pn[0],10),jy=Number.parseInt(Pn[1],10),ul=10,$y=10,Hy=al>ul,Gy=al===ul&&jy>=$y;Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Hy||Gy});var cl=te(In=>{"use strict";j();Object.defineProperty(In,"__esModule",{value:!0});In.createDirentFromStats=void 0;var fo=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function qy(e,t){return new fo(e,t)}In.createDirentFromStats=qy});var ho=te(Nn=>{"use strict";j();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.fs=void 0;var Uy=cl();Nn.fs=Uy});var mo=te(Bn=>{"use strict";j();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.joinPathSegments=void 0;function Wy(e,t,r){return e.endsWith(r)?e+t:e+r+t}Bn.joinPathSegments=Wy});var ml=te(Ft=>{"use strict";j();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var Ky=Vt(),ll=sl(),Yy=po(),pl=ho(),fl=mo();function Vy(e,t,r){if(!t.stats&&Yy.IS_SUPPORT_READDIR_WITH_FILE_TYPES){dl(e,t,r);return}hl(e,t,r)}Ft.read=Vy;function dl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(i,n)=>{if(i!==null){Mn(r,i);return}let u=n.map(o=>({dirent:o,name:o.name,path:fl.joinPathSegments(e,o.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){yo(r,u);return}let s=u.map(o=>Qy(o,t));ll(s,(o,a)=>{if(o!==null){Mn(r,o);return}yo(r,a)})})}Ft.readdirWithFileTypes=dl;function Qy(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(i,n)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,e);return}e.dirent=pl.fs.createDirentFromStats(e.name,n),r(null,e)})}}function hl(e,t,r){t.fs.readdir(e,(i,n)=>{if(i!==null){Mn(r,i);return}let u=n.map(s=>{let o=fl.joinPathSegments(e,s,t.pathSegmentSeparator);return a=>{Ky.stat(o,t.fsStatSettings,(c,p)=>{if(c!==null){a(c);return}let l={name:s,path:o,dirent:pl.fs.createDirentFromStats(s,p)};t.stats&&(l.stats=p),a(null,l)})}});ll(u,(s,o)=>{if(s!==null){Mn(r,s);return}yo(r,o)})})}Ft.readdir=hl;function Mn(e,t){e(t)}function yo(e,t){e(null,t)}});var El=te(Rt=>{"use strict";j();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.readdir=Rt.readdirWithFileTypes=Rt.read=void 0;var Xy=Vt(),Jy=po(),yl=ho(),gl=mo();function Zy(e,t){return!t.stats&&Jy.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vl(e,t):_l(e,t)}Rt.read=Zy;function vl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:gl.joinPathSegments(e,i.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let u=t.fs.statSync(n.path);n.dirent=yl.fs.createDirentFromStats(n.name,u)}catch(u){if(t.throwErrorOnBrokenSymbolicLink)throw u}return n})}Rt.readdirWithFileTypes=vl;function _l(e,t){return t.fs.readdirSync(e).map(i=>{let n=gl.joinPathSegments(e,i,t.pathSegmentSeparator),u=Xy.statSync(n,t.fsStatSettings),s={name:i,path:n,dirent:yl.fs.createDirentFromStats(i,u)};return t.stats&&(s.stats=u),s})}Rt.readdir=_l});var Sl=te(Ot=>{"use strict";j();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createFileSystemAdapter=Ot.FILE_SYSTEM_ADAPTER=void 0;var mr=require("fs");Ot.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};function zy(e){return e===void 0?Ot.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ot.FILE_SYSTEM_ADAPTER),e)}Ot.createFileSystemAdapter=zy});var Al=te(vo=>{"use strict";j();Object.defineProperty(vo,"__esModule",{value:!0});var eg=require("path"),tg=Vt(),rg=Sl(),go=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=rg.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,eg.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new tg.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};vo.default=go});var jn=te(Tt=>{"use strict";j();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.Settings=Tt.scandirSync=Tt.scandir=void 0;var bl=ml(),ng=El(),_o=Al();Tt.Settings=_o.default;function ig(e,t,r){if(typeof t=="function"){bl.read(e,Eo(),t);return}bl.read(e,Eo(t),r)}Tt.scandir=ig;function og(e,t){let r=Eo(t);return ng.read(e,r)}Tt.scandirSync=og;function Eo(e={}){return e instanceof _o.default?e:new _o.default(e)}});var xl=te((_O,Dl)=>{"use strict";j();function sg(e){var t=new e,r=t;function i(){var u=t;return u.next?t=u.next:(t=new e,r=t),u.next=null,u}function n(u){r.next=u,r=u}return{get:i,release:n}}Dl.exports=sg});var Cl=te((EO,So)=>{"use strict";j();var ag=xl();function wl(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=ag(ug),n=null,u=null,s=0,o=null,a={push:g,drain:rt,saturated:rt,pause:p,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:l,getQueue:f,unshift:_,empty:rt,kill:h,killAndDrain:v,error:x};return a;function c(){return s}function p(){a.paused=!0}function l(){for(var y=n,A=0;y;)y=y.next,A++;return A}function f(){for(var y=n,A=[];y;)A.push(y.value),y=y.next;return A}function d(){if(!!a.paused){a.paused=!1;for(var y=0;y<a.concurrency;y++)s++,E()}}function m(){return s===0&&a.length()===0}function g(y,A){var b=i.get();b.context=e,b.release=E,b.value=y,b.callback=A||rt,b.errorHandler=o,s===a.concurrency||a.paused?u?(u.next=b,u=b):(n=b,u=b,a.saturated()):(s++,t.call(e,b.value,b.worked))}function _(y,A){var b=i.get();b.context=e,b.release=E,b.value=y,b.callback=A||rt,s===a.concurrency||a.paused?n?(b.next=n,n=b):(n=b,u=b,a.saturated()):(s++,t.call(e,b.value,b.worked))}function E(y){y&&i.release(y);var A=n;A?a.paused?s--:(u===n&&(u=null),n=A.next,A.next=null,t.call(e,A.value,A.worked),u===null&&a.empty()):--s===0&&a.drain()}function h(){n=null,u=null,a.drain=rt}function v(){n=null,u=null,a.drain(),a.drain=rt}function x(y){o=y}}function rt(){}function ug(){this.value=null,this.callback=rt,this.next=null,this.release=rt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,i){var n=e.callback,u=e.errorHandler,s=e.value;e.value=null,e.callback=rt,e.errorHandler&&u(r,s),n.call(e.context,r,i),e.release(e)}}function cg(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function i(p,l){t.call(this,p).then(function(f){l(null,f)},l)}var n=wl(e,i,r),u=n.push,s=n.unshift;return n.push=o,n.unshift=a,n.drained=c,n;function o(p){var l=new Promise(function(f,d){u(p,function(m,g){if(m){d(m);return}f(g)})});return l.catch(rt),l}function a(p){var l=new Promise(function(f,d){s(p,function(m,g){if(m){d(m);return}f(g)})});return l.catch(rt),l}function c(){var p=n.drain,l=new Promise(function(f){n.drain=function(){p(),f()}});return l}}So.exports=wl;So.exports.promise=cg});var $n=te(lt=>{"use strict";j();Object.defineProperty(lt,"__esModule",{value:!0});lt.joinPathSegments=lt.replacePathSegmentSeparator=lt.isAppliedFilter=lt.isFatalError=void 0;function lg(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}lt.isFatalError=lg;function pg(e,t){return e===null||e(t)}lt.isAppliedFilter=pg;function fg(e,t){return e.split(/[/\\]/).join(t)}lt.replacePathSegmentSeparator=fg;function dg(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}lt.joinPathSegments=dg});var Do=te(bo=>{"use strict";j();Object.defineProperty(bo,"__esModule",{value:!0});var hg=$n(),Ao=class{constructor(t,r){this._root=t,this._settings=r,this._root=hg.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};bo.default=Ao});var Co=te(wo=>{"use strict";j();Object.defineProperty(wo,"__esModule",{value:!0});var mg=require("events"),yg=jn(),gg=Cl(),Hn=$n(),vg=Do(),xo=class extends vg.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=yg.scandir,this._emitter=new mg.EventEmitter,this._queue=gg(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let i={directory:t,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let u of n)this._handleEntry(u,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Hn.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let i=t.path;r!==void 0&&(t.path=Hn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Hn.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Hn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(i,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};wo.default=xo});var kl=te(Fo=>{"use strict";j();Object.defineProperty(Fo,"__esModule",{value:!0});var _g=Co(),ko=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new _g.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Eg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Sg(t,this._storage)}),this._reader.read()}};Fo.default=ko;function Eg(e,t){e(t)}function Sg(e,t){e(null,t)}});var Fl=te(Oo=>{"use strict";j();Object.defineProperty(Oo,"__esModule",{value:!0});var Ag=require("stream"),bg=Co(),Ro=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new bg.default(this._root,this._settings),this._stream=new Ag.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Oo.default=Ro});var Rl=te(Po=>{"use strict";j();Object.defineProperty(Po,"__esModule",{value:!0});var Dg=jn(),Gn=$n(),xg=Do(),To=class extends xg.default{constructor(){super(...arguments),this._scandir=Dg.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let i=this._scandir(t,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(t){if(!!Gn.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let i=t.path;r!==void 0&&(t.path=Gn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Gn.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Gn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(i,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Po.default=To});var Ol=te(Io=>{"use strict";j();Object.defineProperty(Io,"__esModule",{value:!0});var wg=Rl(),Lo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new wg.default(this._root,this._settings)}read(){return this._reader.read()}};Io.default=Lo});var Tl=te(Bo=>{"use strict";j();Object.defineProperty(Bo,"__esModule",{value:!0});var Cg=require("path"),kg=jn(),No=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Cg.sep),this.fsScandirSettings=new kg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};Bo.default=No});var Un=te(pt=>{"use strict";j();Object.defineProperty(pt,"__esModule",{value:!0});pt.Settings=pt.walkStream=pt.walkSync=pt.walk=void 0;var Pl=kl(),Fg=Fl(),Rg=Ol(),Mo=Tl();pt.Settings=Mo.default;function Og(e,t,r){if(typeof t=="function"){new Pl.default(e,qn()).read(t);return}new Pl.default(e,qn(t)).read(r)}pt.walk=Og;function Tg(e,t){let r=qn(t);return new Rg.default(e,r).read()}pt.walkSync=Tg;function Pg(e,t){let r=qn(t);return new Fg.default(e,r).read()}pt.walkStream=Pg;function qn(e={}){return e instanceof Mo.default?e:new Mo.default(e)}});var Wn=te($o=>{"use strict";j();Object.defineProperty($o,"__esModule",{value:!0});var Lg=require("path"),Ig=Vt(),Ll=_t(),jo=class{constructor(t){this._settings=t,this._fsStatSettings=new Ig.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Lg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let i={name:r,path:r,dirent:Ll.fs.createDirentFromStats(r,t)};return this._settings.stats&&(i.stats=t),i}_isFatalError(t){return!Ll.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};$o.default=jo});var qo=te(Go=>{"use strict";j();Object.defineProperty(Go,"__esModule",{value:!0});var Ng=require("stream"),Bg=Vt(),Mg=Un(),jg=Wn(),Ho=class extends jg.default{constructor(){super(...arguments),this._walkStream=Mg.walkStream,this._stat=Bg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let i=t.map(this._getFullEntryPath,this),n=new Ng.PassThrough({objectMode:!0});n._write=(u,s,o)=>this._getEntry(i[u],t[u],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),u===i.length-1&&n.end(),o()}).catch(o);for(let u=0;u<i.length;u++)n.write(u);return n}_getEntry(t,r,i){return this._getStat(t).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(t){return new Promise((r,i)=>{this._stat(t,this._fsStatSettings,(n,u)=>n===null?r(u):i(n))})}};Go.default=Ho});var Il=te(Wo=>{"use strict";j();Object.defineProperty(Wo,"__esModule",{value:!0});var $g=Un(),Hg=Wn(),Gg=qo(),Uo=class extends Hg.default{constructor(){super(...arguments),this._walkAsync=$g.walk,this._readerStream=new Gg.default(this._settings)}dynamic(t,r){return new Promise((i,n)=>{this._walkAsync(t,r,(u,s)=>{u===null?i(s):n(u)})})}async static(t,r){let i=[],n=this._readerStream.static(t,r);return new Promise((u,s)=>{n.once("error",s),n.on("data",o=>i.push(o)),n.once("end",()=>u(i))})}};Wo.default=Uo});var Nl=te(Yo=>{"use strict";j();Object.defineProperty(Yo,"__esModule",{value:!0});var yr=_t(),Ko=class{constructor(t,r,i){this._patterns=t,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let t=yr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(t){return yr.pattern.getPatternParts(t,this._micromatchOptions).map(i=>yr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:yr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(t){return yr.array.splitWhen(t,r=>r.dynamic&&yr.pattern.hasGlobStar(r.pattern))}};Yo.default=Ko});var Bl=te(Qo=>{"use strict";j();Object.defineProperty(Qo,"__esModule",{value:!0});var qg=Nl(),Vo=class extends qg.default{match(t){let r=t.split("/"),i=r.length,n=this._storage.filter(u=>!u.complete||u.segments.length>i);for(let u of n){let s=u.sections[0];if(!u.complete&&i>s.length||r.every((a,c)=>{let p=u.segments[c];return!!(p.dynamic&&p.patternRe.test(a)||!p.dynamic&&p.pattern===a)}))return!0}return!1}};Qo.default=Vo});var Ml=te(Jo=>{"use strict";j();Object.defineProperty(Jo,"__esModule",{value:!0});var Kn=_t(),Ug=Bl(),Xo=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,i){let n=this._getMatcher(r),u=this._getNegativePatternsRe(i);return s=>this._filter(t,s,n,u)}_getMatcher(t){return new Ug.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Kn.pattern.isAffectDepthOfReadingPattern);return Kn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,i,n){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let u=Kn.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(u,i)?!1:this._isSkippedByNegativePatterns(u,n)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let i=r.split("/").length;if(t==="")return i;let n=t.split("/").length;return i-n}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Kn.pattern.matchAny(t,r)}};Jo.default=Xo});var jl=te(zo=>{"use strict";j();Object.defineProperty(zo,"__esModule",{value:!0});var Qt=_t(),Zo=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let i=Qt.pattern.convertPatternsToRe(t,this._micromatchOptions),n=Qt.pattern.convertPatternsToRe(r,this._micromatchOptions);return u=>this._filter(u,i,n)}_filter(t,r,i){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,i))return!1;let n=this._settings.baseNameMatch?t.name:t.path,u=t.dirent.isDirectory(),s=this._isMatchToPatterns(n,r,u)&&!this._isMatchToPatterns(t.path,i,u);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let i=Qt.path.makeAbsolute(this._settings.cwd,t);return Qt.pattern.matchAny(i,r)}_isMatchToPatterns(t,r,i){let n=Qt.path.removeLeadingDotSegment(t),u=Qt.pattern.matchAny(n,r);return!u&&i?Qt.pattern.matchAny(n+"/",r):u}};zo.default=Zo});var $l=te(ts=>{"use strict";j();Object.defineProperty(ts,"__esModule",{value:!0});var Wg=_t(),es=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Wg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};ts.default=es});var Gl=te(ns=>{"use strict";j();Object.defineProperty(ns,"__esModule",{value:!0});var Hl=_t(),rs=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Hl.path.makeAbsolute(this._settings.cwd,r),r=Hl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};ns.default=rs});var Yn=te(os=>{"use strict";j();Object.defineProperty(os,"__esModule",{value:!0});var Kg=require("path"),Yg=Ml(),Vg=jl(),Qg=$l(),Xg=Gl(),is=class{constructor(t){this._settings=t,this.errorFilter=new Qg.default(this._settings),this.entryFilter=new Vg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Yg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Xg.default(this._settings)}_getRootDirectory(t){return Kg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};os.default=is});var ql=te(as=>{"use strict";j();Object.defineProperty(as,"__esModule",{value:!0});var Jg=Il(),Zg=Yn(),ss=class extends Zg.default{constructor(){super(...arguments),this._reader=new Jg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),i=this._getReaderOptions(t);return(await this.api(r,t,i)).map(u=>i.transform(u))}api(t,r,i){return r.dynamic?this._reader.dynamic(t,i):this._reader.static(r.patterns,i)}};as.default=ss});var Ul=te(cs=>{"use strict";j();Object.defineProperty(cs,"__esModule",{value:!0});var zg=require("stream"),ev=qo(),tv=Yn(),us=class extends tv.default{constructor(){super(...arguments),this._reader=new ev.default(this._settings)}read(t){let r=this._getRootDirectory(t),i=this._getReaderOptions(t),n=this.api(r,t,i),u=new zg.Readable({objectMode:!0,read:()=>{}});return n.once("error",s=>u.emit("error",s)).on("data",s=>u.emit("data",i.transform(s))).once("end",()=>u.emit("end")),u.once("close",()=>n.destroy()),u}api(t,r,i){return r.dynamic?this._reader.dynamic(t,i):this._reader.static(r.patterns,i)}};cs.default=us});var Wl=te(ps=>{"use strict";j();Object.defineProperty(ps,"__esModule",{value:!0});var rv=Vt(),nv=Un(),iv=Wn(),ls=class extends iv.default{constructor(){super(...arguments),this._walkSync=nv.walkSync,this._statSync=rv.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let i=[];for(let n of t){let u=this._getFullEntryPath(n),s=this._getEntry(u,n,r);s===null||!r.entryFilter(s)||i.push(s)}return i}_getEntry(t,r,i){try{let n=this._getStat(t);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ps.default=ls});var Kl=te(ds=>{"use strict";j();Object.defineProperty(ds,"__esModule",{value:!0});var ov=Wl(),sv=Yn(),fs=class extends sv.default{constructor(){super(...arguments),this._reader=new ov.default(this._settings)}read(t){let r=this._getRootDirectory(t),i=this._getReaderOptions(t);return this.api(r,t,i).map(i.transform)}api(t,r,i){return r.dynamic?this._reader.dynamic(t,i):this._reader.static(r.patterns,i)}};ds.default=fs});var Yl=te(vr=>{"use strict";j();Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=require("fs"),av=require("os"),uv=Math.max(av.cpus().length,1);vr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var hs=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,uv),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},vr.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};vr.default=hs});var Jl=te((WO,Xl)=>{"use strict";j();var Vl=Yc(),Ql=Qc(),cv=ql(),lv=Ul(),pv=Kl(),ms=Yl(),Xt=_t();async function ys(e,t){_r(e);let r=gs(e,cv.default,t),i=await Promise.all(r);return Xt.array.flatten(i)}(function(e){function t(s,o){_r(s);let a=gs(s,pv.default,o);return Xt.array.flatten(a)}e.sync=t;function r(s,o){_r(s);let a=gs(s,lv.default,o);return Xt.stream.merge(a)}e.stream=r;function i(s,o){_r(s);let a=Ql.transform([].concat(s)),c=new ms.default(o);return Vl.generate(a,c)}e.generateTasks=i;function n(s,o){_r(s);let a=new ms.default(o);return Xt.pattern.isDynamicPattern(s,a)}e.isDynamicPattern=n;function u(s){return _r(s),Xt.path.escape(s)}e.escapePath=u})(ys||(ys={}));function gs(e,t,r){let i=Ql.transform([].concat(e)),n=new ms.default(r),u=Vl.generate(i,n),s=new t(n);return u.map(s.read,s)}function _r(e){if(![].concat(e).every(i=>Xt.string.isString(i)&&!Xt.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Xl.exports=ys});var Er=te((KO,Jt)=>{"use strict";j();function Zl(e){return typeof e>"u"||e===null}function fv(e){return typeof e=="object"&&e!==null}function dv(e){return Array.isArray(e)?e:Zl(e)?[]:[e]}function hv(e,t){var r,i,n,u;if(t)for(u=Object.keys(t),r=0,i=u.length;r<i;r+=1)n=u[r],e[n]=t[n];return e}function mv(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function yv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Jt.exports.isNothing=Zl;Jt.exports.isObject=fv;Jt.exports.toArray=dv;Jt.exports.repeat=mv;Jt.exports.isNegativeZero=yv;Jt.exports.extend=hv});var Sr=te((YO,ep)=>{"use strict";j();function zl(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
2
+ "use strict";var _0=Object.create;var hu=Object.defineProperty;var E0=Object.getOwnPropertyDescriptor;var S0=Object.getOwnPropertyNames;var A0=Object.getPrototypeOf,b0=Object.prototype.hasOwnProperty;var x0=(e,t)=>()=>(e&&(t=e(e=0)),t);var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var D0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S0(t))!b0.call(e,i)&&i!==r&&hu(e,i,{get:()=>t[i],enumerable:!(n=E0(t,i))||n.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?_0(A0(e)):{},D0(t||!e||!e.__esModule?hu(r,"default",{value:e,enumerable:!0}):r,e));var j=x0(()=>{});var Su=te(lr=>{"use strict";j();Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function O0(e){return e.reduce((t,r)=>[].concat(t,r),[])}lr.flatten=O0;function T0(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}lr.splitWhen=T0});var Au=te(bn=>{"use strict";j();Object.defineProperty(bn,"__esModule",{value:!0});bn.isEnoentCodeError=void 0;function P0(e){return e.code==="ENOENT"}bn.isEnoentCodeError=P0});var bu=te(xn=>{"use strict";j();Object.defineProperty(xn,"__esModule",{value:!0});xn.createDirentFromStats=void 0;var Gi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function L0(e,t){return new Gi(e,t)}xn.createDirentFromStats=L0});var xu=te(ut=>{"use strict";j();Object.defineProperty(ut,"__esModule",{value:!0});ut.removeLeadingDotSegment=ut.escape=ut.makeAbsolute=ut.unixify=void 0;var I0=require("path"),N0=2,B0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function M0(e){return e.replace(/\\/g,"/")}ut.unixify=M0;function j0(e,t){return I0.resolve(e,t)}ut.makeAbsolute=j0;function $0(e){return e.replace(B0,"\\$2")}ut.escape=$0;function H0(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(N0)}return e}ut.removeLeadingDotSegment=H0});var wu=te((eO,Du)=>{j();Du.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Fu=te((tO,ku)=>{j();var G0=wu(),Cu={"{":"}","(":")","[":"]"},q0=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,u=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||u!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(u=e.indexOf(")",t),u>t&&(s=e.indexOf("\\",t),s===-1||s>u))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(u=e.indexOf(")",r),u>r&&(s=e.indexOf("\\",r),s===-1||s>u))))return!0;if(e[t]==="\\"){var o=e[t+1];t+=2;var a=Cu[o];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},U0=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Cu[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};ku.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(G0(t))return!0;var n=q0;return r&&r.strict===!1&&(n=U0),n(t)}});var Ou=te((rO,Ru)=>{"use strict";j();var W0=Fu(),Y0=require("path").posix.dirname,K0=require("os").platform()==="win32",qi="/",V0=/\\/g,Q0=/[\{\[].*[\}\]]$/,X0=/(^|[^\\])([\{\[]|\([^\)]+$)/,J0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ru.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&K0&&t.indexOf(qi)<0&&(t=t.replace(V0,qi)),Q0.test(t)&&(t+=qi),t+="a";do t=Y0(t);while(W0(t)||X0.test(t));return t.replace(J0,"$1")}});var Dn=te(tt=>{"use strict";j();tt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;tt.find=(e,t)=>e.nodes.find(r=>r.type===t);tt.exceedsLimit=(e,t,r=1,n)=>n===!1||!tt.isInteger(e)||!tt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;tt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};tt.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;tt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;tt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;tt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);tt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let u=n[i];Array.isArray(u)?r(u,t):u!==void 0&&t.push(u)}return t};return r(e),t}});var wn=te((iO,Pu)=>{"use strict";j();var Tu=Dn();Pu.exports=(e,t={})=>{let r=(n,i={})=>{let u=t.escapeInvalid&&Tu.isInvalidBrace(i),s=n.invalid===!0&&t.escapeInvalid===!0,o="";if(n.value)return(u||s)&&Tu.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let a of n.nodes)o+=r(a);return o};return r(e)}});var Iu=te((oO,Lu)=>{"use strict";j();Lu.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Uu=te((sO,qu)=>{"use strict";j();var Nu=Iu(),Yt=(e,t,r)=>{if(Nu(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Nu(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),u=String(n.shorthand),s=String(n.capture),o=String(n.wrap),a=e+":"+t+"="+i+u+s+o;if(Yt.cache.hasOwnProperty(a))return Yt.cache[a].result;let c=Math.min(e,t),p=Math.max(e,t);if(Math.abs(c-p)===1){let v=e+"|"+t;return n.capture?`(${v})`:n.wrap===!1?v:`(?:${v})`}let l=Gu(e)||Gu(t),f={min:e,max:t,a:c,b:p},h=[],m=[];if(l&&(f.isPadded=l,f.maxLen=String(f.max).length),c<0){let v=p<0?Math.abs(p):1;m=Bu(v,Math.abs(c),f,n),c=f.a=0}return p>=0&&(h=Bu(c,p,f,n)),f.negatives=m,f.positives=h,f.result=Z0(m,h,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&h.length+m.length>1&&(f.result=`(?:${f.result})`),Yt.cache[a]=f,f.result};function Z0(e,t,r){let n=Ui(e,t,"-",!1,r)||[],i=Ui(t,e,"",!1,r)||[],u=Ui(e,t,"-?",!0,r)||[];return n.concat(u).concat(i).join("|")}function z0(e,t){let r=1,n=1,i=ju(e,r),u=new Set([t]);for(;e<=i&&i<=t;)u.add(i),r+=1,i=ju(e,r);for(i=$u(t+1,n)-1;e<i&&i<=t;)u.add(i),n+=1,i=$u(t+1,n)-1;return u=[...u],u.sort(rm),u}function em(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=tm(e,t),i=n.length,u="",s=0;for(let o=0;o<i;o++){let[a,c]=n[o];a===c?u+=a:a!=="0"||c!=="9"?u+=nm(a,c,r):s++}return s&&(u+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:u,count:[s],digits:i}}function Bu(e,t,r,n){let i=z0(e,t),u=[],s=e,o;for(let a=0;a<i.length;a++){let c=i[a],p=em(String(s),String(c),n),l="";if(!r.isPadded&&o&&o.pattern===p.pattern){o.count.length>1&&o.count.pop(),o.count.push(p.count[0]),o.string=o.pattern+Hu(o.count),s=c+1;continue}r.isPadded&&(l=im(c,r,n)),p.string=l+p.pattern+Hu(p.count),u.push(p),s=c+1,o=p}return u}function Ui(e,t,r,n,i){let u=[];for(let s of e){let{string:o}=s;!n&&!Mu(t,"string",o)&&u.push(r+o),n&&Mu(t,"string",o)&&u.push(r+o)}return u}function tm(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function rm(e,t){return e>t?1:t>e?-1:0}function Mu(e,t,r){return e.some(n=>n[t]===r)}function ju(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function $u(e,t){return e-e%Math.pow(10,t)}function Hu(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function nm(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Gu(e){return/^-?(0+)\d/.test(e)}function im(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Yt.cache={};Yt.clearCache=()=>Yt.cache={};qu.exports=Yt});var Ki=te((aO,Zu)=>{"use strict";j();var om=require("util"),Ku=Uu(),Wu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),sm=e=>t=>e===!0?Number(t):String(t),Wi=e=>typeof e=="number"||typeof e=="string"&&e!=="",Hr=e=>Number.isInteger(+e),Yi=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},am=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,um=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Yu=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},cm=(e,t)=>{e.negatives.sort((s,o)=>s<o?-1:s>o?1:0),e.positives.sort((s,o)=>s<o?-1:s>o?1:0);let r=t.capture?"":"?:",n="",i="",u;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?u=`${n}|${i}`:u=n||i,t.wrap?`(${r}${u})`:u},Vu=(e,t,r,n)=>{if(r)return Ku(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let u=String.fromCharCode(t);return`[${i}-${u}]`},Qu=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Ku(e,t,r)},Xu=(...e)=>new RangeError("Invalid range arguments: "+om.inspect(...e)),Ju=(e,t,r)=>{if(r.strictRanges===!0)throw Xu([e,t]);return[]},lm=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},pm=(e,t,r=1,n={})=>{let i=Number(e),u=Number(t);if(!Number.isInteger(i)||!Number.isInteger(u)){if(n.strictRanges===!0)throw Xu([e,t]);return[]}i===0&&(i=0),u===0&&(u=0);let s=i>u,o=String(e),a=String(t),c=String(r);r=Math.max(Math.abs(r),1);let p=Yi(o)||Yi(a)||Yi(c),l=p?Math.max(o.length,a.length,c.length):0,f=p===!1&&am(e,t,n)===!1,h=n.transform||sm(f);if(n.toRegex&&r===1)return Vu(Yu(e,l),Yu(t,l),!0,n);let m={negatives:[],positives:[]},v=d=>m[d<0?"negatives":"positives"].push(Math.abs(d)),_=[],E=0;for(;s?i>=u:i<=u;)n.toRegex===!0&&r>1?v(i):_.push(um(h(i,E),l,f)),i=s?i-r:i+r,E++;return n.toRegex===!0?r>1?cm(m,n):Qu(_,null,{wrap:!1,...n}):_},fm=(e,t,r=1,n={})=>{if(!Hr(e)&&e.length>1||!Hr(t)&&t.length>1)return Ju(e,t,n);let i=n.transform||(f=>String.fromCharCode(f)),u=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),o=u>s,a=Math.min(u,s),c=Math.max(u,s);if(n.toRegex&&r===1)return Vu(a,c,!1,n);let p=[],l=0;for(;o?u>=s:u<=s;)p.push(i(u,l)),u=o?u-r:u+r,l++;return n.toRegex===!0?Qu(p,null,{wrap:!1,options:n}):p},Cn=(e,t,r,n={})=>{if(t==null&&Wi(e))return[e];if(!Wi(e)||!Wi(t))return Ju(e,t,n);if(typeof r=="function")return Cn(e,t,1,{transform:r});if(Wu(r))return Cn(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Hr(r)?Hr(e)&&Hr(t)?pm(e,t,r,i):fm(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Wu(r)?lm(r,i):Cn(e,t,1,r)};Zu.exports=Cn});var tc=te((uO,ec)=>{"use strict";j();var dm=Ki(),zu=Dn(),hm=(e,t={})=>{let r=(n,i={})=>{let u=zu.isInvalidBrace(i),s=n.invalid===!0&&t.escapeInvalid===!0,o=u===!0||s===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return a+n.value;if(n.type==="open")return o?a+n.value:"(";if(n.type==="close")return o?a+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":o?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let p=zu.reduce(n.nodes),l=dm(...p,{...t,wrap:!1,toRegex:!0});if(l.length!==0)return p.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let p of n.nodes)c+=r(p,n);return c};return r(e)};ec.exports=hm});var ic=te((cO,nc)=>{"use strict";j();var mm=Ki(),rc=wn(),pr=Dn(),Kt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pr.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let u of i)n.push(Kt(u,t,r));else for(let u of t)r===!0&&typeof u=="string"&&(u=`{${u}}`),n.push(Array.isArray(u)?Kt(i,u,r):i+u);return pr.flatten(n)},gm=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,u={})=>{i.queue=[];let s=u,o=u.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,o=s.queue;if(i.invalid||i.dollar){o.push(Kt(o.pop(),rc(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){o.push(Kt(o.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=pr.reduce(i.nodes);if(pr.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=mm(...l,t);f.length===0&&(f=rc(i,t)),o.push(Kt(o.pop(),f)),i.nodes=[];return}let a=pr.encloseBrace(i),c=i.queue,p=i;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,c=p.queue;for(let l=0;l<i.nodes.length;l++){let f=i.nodes[l];if(f.type==="comma"&&i.type==="brace"){l===1&&c.push(""),c.push("");continue}if(f.type==="close"){o.push(Kt(o.pop(),c,a));continue}if(f.value&&f.type!=="open"){c.push(Kt(c.pop(),f.value));continue}f.nodes&&n(f,i)}return c};return pr.flatten(n(e))};nc.exports=gm});var sc=te((lO,oc)=>{"use strict";j();oc.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
3
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var pc=te((pO,lc)=>{"use strict";j();var ym=wn(),{MAX_LENGTH:ac,CHAR_BACKSLASH:Vi,CHAR_BACKTICK:vm,CHAR_COMMA:_m,CHAR_DOT:Em,CHAR_LEFT_PARENTHESES:Sm,CHAR_RIGHT_PARENTHESES:Am,CHAR_LEFT_CURLY_BRACE:bm,CHAR_RIGHT_CURLY_BRACE:xm,CHAR_LEFT_SQUARE_BRACKET:uc,CHAR_RIGHT_SQUARE_BRACKET:cc,CHAR_DOUBLE_QUOTE:Dm,CHAR_SINGLE_QUOTE:wm,CHAR_NO_BREAK_SPACE:Cm,CHAR_ZERO_WIDTH_NOBREAK_SPACE:km}=sc(),Fm=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ac,r.maxLength):ac;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},u=[i],s=i,o=i,a=0,c=e.length,p=0,l=0,f,h={},m=()=>e[p++],v=_=>{if(_.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&_.type==="text"){o.value+=_.value;return}return s.nodes.push(_),_.parent=s,_.prev=o,o=_,_};for(v({type:"bos"});p<c;)if(s=u[u.length-1],f=m(),!(f===km||f===Cm)){if(f===Vi){v({type:"text",value:(t.keepEscaping?f:"")+m()});continue}if(f===cc){v({type:"text",value:"\\"+f});continue}if(f===uc){a++;let _=!0,E;for(;p<c&&(E=m());){if(f+=E,E===uc){a++;continue}if(E===Vi){f+=m();continue}if(E===cc&&(a--,a===0))break}v({type:"text",value:f});continue}if(f===Sm){s=v({type:"paren",nodes:[]}),u.push(s),v({type:"text",value:f});continue}if(f===Am){if(s.type!=="paren"){v({type:"text",value:f});continue}s=u.pop(),v({type:"text",value:f}),s=u[u.length-1];continue}if(f===Dm||f===wm||f===vm){let _=f,E;for(t.keepQuotes!==!0&&(f="");p<c&&(E=m());){if(E===Vi){f+=E+m();continue}if(E===_){t.keepQuotes===!0&&(f+=E);break}f+=E}v({type:"text",value:f});continue}if(f===bm){l++;let _=o.value&&o.value.slice(-1)==="$"||s.dollar===!0;s=v({type:"brace",open:!0,close:!1,dollar:_,depth:l,commas:0,ranges:0,nodes:[]}),u.push(s),v({type:"open",value:f});continue}if(f===xm){if(s.type!=="brace"){v({type:"text",value:f});continue}let _="close";s=u.pop(),s.close=!0,v({type:_,value:f}),l--,s=u[u.length-1];continue}if(f===_m&&l>0){if(s.ranges>0){s.ranges=0;let _=s.nodes.shift();s.nodes=[_,{type:"text",value:ym(s)}]}v({type:"comma",value:f}),s.commas++;continue}if(f===Em&&l>0&&s.commas===0){let _=s.nodes;if(l===0||_.length===0){v({type:"text",value:f});continue}if(o.type==="dot"){if(s.range=[],o.value+=f,o.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,o.type="text";continue}s.ranges++,s.args=[];continue}if(o.type==="range"){_.pop();let E=_[_.length-1];E.value+=o.value+f,o=E,s.ranges--;continue}v({type:"dot",value:f});continue}v({type:"text",value:f})}do if(s=u.pop(),s.type!=="root"){s.nodes.forEach(d=>{d.nodes||(d.type==="open"&&(d.isOpen=!0),d.type==="close"&&(d.isClose=!0),d.nodes||(d.type="text"),d.invalid=!0)});let _=u[u.length-1],E=_.nodes.indexOf(s);_.nodes.splice(E,1,...s.nodes)}while(u.length>0);return v({type:"eos"}),i};lc.exports=Fm});var hc=te((fO,dc)=>{"use strict";j();var fc=wn(),Rm=tc(),Om=ic(),Tm=pc(),Je=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Je.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Je.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Je.parse=(e,t={})=>Tm(e,t);Je.stringify=(e,t={})=>fc(typeof e=="string"?Je.parse(e,t):e,t);Je.compile=(e,t={})=>(typeof e=="string"&&(e=Je.parse(e,t)),Rm(e,t));Je.expand=(e,t={})=>{typeof e=="string"&&(e=Je.parse(e,t));let r=Om(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Je.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Je.compile(e,t):Je.expand(e,t);dc.exports=Je});var Gr=te((dO,_c)=>{"use strict";j();var Pm=require("path"),ct="\\\\/",mc=`[^${ct}]`,_t="\\.",Lm="\\+",Im="\\?",kn="\\/",Nm="(?=.)",gc="[^/]",Qi=`(?:${kn}|$)`,yc=`(?:^|${kn})`,Xi=`${_t}{1,2}${Qi}`,Bm=`(?!${_t})`,Mm=`(?!${yc}${Xi})`,jm=`(?!${_t}{0,1}${Qi})`,$m=`(?!${Xi})`,Hm=`[^.${kn}]`,Gm=`${gc}*?`,vc={DOT_LITERAL:_t,PLUS_LITERAL:Lm,QMARK_LITERAL:Im,SLASH_LITERAL:kn,ONE_CHAR:Nm,QMARK:gc,END_ANCHOR:Qi,DOTS_SLASH:Xi,NO_DOT:Bm,NO_DOTS:Mm,NO_DOT_SLASH:jm,NO_DOTS_SLASH:$m,QMARK_NO_DOT:Hm,STAR:Gm,START_ANCHOR:yc},qm={...vc,SLASH_LITERAL:`[${ct}]`,QMARK:mc,STAR:`${mc}*?`,DOTS_SLASH:`${_t}{1,2}(?:[${ct}]|$)`,NO_DOT:`(?!${_t})`,NO_DOTS:`(?!(?:^|[${ct}])${_t}{1,2}(?:[${ct}]|$))`,NO_DOT_SLASH:`(?!${_t}{0,1}(?:[${ct}]|$))`,NO_DOTS_SLASH:`(?!${_t}{1,2}(?:[${ct}]|$))`,QMARK_NO_DOT:`[^.${ct}]`,START_ANCHOR:`(?:^|[${ct}])`,END_ANCHOR:`(?:[${ct}]|$)`},Um={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"};_c.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Um,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:Pm.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===!0?qm:vc}}});var qr=te(We=>{"use strict";j();var Wm=require("path"),Ym=process.platform==="win32",{REGEX_BACKSLASH:Km,REGEX_REMOVE_BACKSLASH:Vm,REGEX_SPECIAL_CHARS:Qm,REGEX_SPECIAL_CHARS_GLOBAL:Xm}=Gr();We.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);We.hasRegexChars=e=>Qm.test(e);We.isRegexChar=e=>e.length===1&&We.hasRegexChars(e);We.escapeRegex=e=>e.replace(Xm,"\\$1");We.toPosixSlashes=e=>e.replace(Km,"/");We.removeBackslashes=e=>e.replace(Vm,t=>t==="\\"?"":t);We.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};We.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Ym===!0||Wm.sep==="\\";We.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?We.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};We.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};We.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",u=`${n}(?:${e})${i}`;return t.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}});var Cc=te((mO,wc)=>{"use strict";j();var Ec=qr(),{CHAR_ASTERISK:Ji,CHAR_AT:Jm,CHAR_BACKWARD_SLASH:Ur,CHAR_COMMA:Zm,CHAR_DOT:Zi,CHAR_EXCLAMATION_MARK:zi,CHAR_FORWARD_SLASH:Dc,CHAR_LEFT_CURLY_BRACE:eo,CHAR_LEFT_PARENTHESES:to,CHAR_LEFT_SQUARE_BRACKET:zm,CHAR_PLUS:eg,CHAR_QUESTION_MARK:Sc,CHAR_RIGHT_CURLY_BRACE:tg,CHAR_RIGHT_PARENTHESES:Ac,CHAR_RIGHT_SQUARE_BRACKET:rg}=Gr(),bc=e=>e===Dc||e===Ur,xc=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},ng=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,u=[],s=[],o=[],a=e,c=-1,p=0,l=0,f=!1,h=!1,m=!1,v=!1,_=!1,E=!1,d=!1,y=!1,D=!1,g=!1,A=0,b,k,x={value:"",depth:0,isGlob:!1},F=()=>c>=n,w=()=>a.charCodeAt(c+1),O=()=>(b=k,a.charCodeAt(++c));for(;c<n;){k=O();let L;if(k===Ur){d=x.backslashes=!0,k=O(),k===eo&&(E=!0);continue}if(E===!0||k===eo){for(A++;F()!==!0&&(k=O());){if(k===Ur){d=x.backslashes=!0,O();continue}if(k===eo){A++;continue}if(E!==!0&&k===Zi&&(k=O())===Zi){if(f=x.isBrace=!0,m=x.isGlob=!0,g=!0,i===!0)continue;break}if(E!==!0&&k===Zm){if(f=x.isBrace=!0,m=x.isGlob=!0,g=!0,i===!0)continue;break}if(k===tg&&(A--,A===0)){E=!1,f=x.isBrace=!0,g=!0;break}}if(i===!0)continue;break}if(k===Dc){if(u.push(c),s.push(x),x={value:"",depth:0,isGlob:!1},g===!0)continue;if(b===Zi&&c===p+1){p+=2;continue}l=c+1;continue}if(r.noext!==!0&&(k===eg||k===Jm||k===Ji||k===Sc||k===zi)===!0&&w()===to){if(m=x.isGlob=!0,v=x.isExtglob=!0,g=!0,k===zi&&c===p&&(D=!0),i===!0){for(;F()!==!0&&(k=O());){if(k===Ur){d=x.backslashes=!0,k=O();continue}if(k===Ac){m=x.isGlob=!0,g=!0;break}}continue}break}if(k===Ji){if(b===Ji&&(_=x.isGlobstar=!0),m=x.isGlob=!0,g=!0,i===!0)continue;break}if(k===Sc){if(m=x.isGlob=!0,g=!0,i===!0)continue;break}if(k===zm){for(;F()!==!0&&(L=O());){if(L===Ur){d=x.backslashes=!0,O();continue}if(L===rg){h=x.isBracket=!0,m=x.isGlob=!0,g=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&k===zi&&c===p){y=x.negated=!0,p++;continue}if(r.noparen!==!0&&k===to){if(m=x.isGlob=!0,i===!0){for(;F()!==!0&&(k=O());){if(k===to){d=x.backslashes=!0,k=O();continue}if(k===Ac){g=!0;break}}continue}break}if(m===!0){if(g=!0,i===!0)continue;break}}r.noext===!0&&(v=!1,m=!1);let P=a,C="",S="";p>0&&(C=a.slice(0,p),a=a.slice(p),l-=p),P&&m===!0&&l>0?(P=a.slice(0,l),S=a.slice(l)):m===!0?(P="",S=a):P=a,P&&P!==""&&P!=="/"&&P!==a&&bc(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),r.unescape===!0&&(S&&(S=Ec.removeBackslashes(S)),P&&d===!0&&(P=Ec.removeBackslashes(P)));let R={prefix:C,input:e,start:p,base:P,glob:S,isBrace:f,isBracket:h,isGlob:m,isExtglob:v,isGlobstar:_,negated:y,negatedExtglob:D};if(r.tokens===!0&&(R.maxDepth=0,bc(k)||s.push(x),R.tokens=s),r.parts===!0||r.tokens===!0){let L;for(let M=0;M<u.length;M++){let B=L?L+1:p,Q=u[M],Z=e.slice(B,Q);r.tokens&&(M===0&&p!==0?(s[M].isPrefix=!0,s[M].value=C):s[M].value=Z,xc(s[M]),R.maxDepth+=s[M].depth),(M!==0||Z!=="")&&o.push(Z),L=Q}if(L&&L+1<e.length){let M=e.slice(L+1);o.push(M),r.tokens&&(s[s.length-1].value=M,xc(s[s.length-1]),R.maxDepth+=s[s.length-1].depth)}R.slashes=u,R.parts=o}return R};wc.exports=ng});var Rc=te((gO,Fc)=>{"use strict";j();var Fn=Gr(),Ze=qr(),{MAX_LENGTH:Rn,POSIX_REGEX_SOURCE:ig,REGEX_NON_SPECIAL_CHARS:og,REGEX_SPECIAL_CHARS_BACKREF:sg,REPLACEMENTS:kc}=Fn,ag=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Ze.escapeRegex(i)).join("..")}return r},fr=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ro=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=kc[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Rn,r.maxLength):Rn,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let u={type:"bos",value:"",output:r.prepend||""},s=[u],o=r.capture?"":"?:",a=Ze.isWindows(t),c=Fn.globChars(a),p=Fn.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:m,DOTS_SLASH:v,NO_DOT:_,NO_DOT_SLASH:E,NO_DOTS_SLASH:d,QMARK:y,QMARK_NO_DOT:D,STAR:g,START_ANCHOR:A}=c,b=$=>`(${o}(?:(?!${A}${$.dot?v:l}).)*?)`,k=r.dot?"":_,x=r.dot?y:D,F=r.bash===!0?b(r):g;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Ze.removePrefix(e,w),i=e.length;let O=[],P=[],C=[],S=u,R,L=()=>w.index===i-1,M=w.peek=($=1)=>e[w.index+$],B=w.advance=()=>e[++w.index]||"",Q=()=>e.slice(w.index+1),Z=($="",Y=0)=>{w.consumed+=$,w.index+=Y},oe=$=>{w.output+=$.output!=null?$.output:$.value,Z($.value)},N=()=>{let $=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)B(),w.start++,$++;return $%2===0?!1:(w.negated=!0,w.start++,!0)},le=$=>{w[$]++,C.push($)},pe=$=>{w[$]--,C.pop()},ne=$=>{if(S.type==="globstar"){let Y=w.braces>0&&($.type==="comma"||$.type==="brace"),K=$.extglob===!0||O.length&&($.type==="pipe"||$.type==="paren");$.type!=="slash"&&$.type!=="paren"&&!Y&&!K&&(w.output=w.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=F,w.output+=S.output)}if(O.length&&$.type!=="paren"&&(O[O.length-1].inner+=$.value),($.value||$.output)&&oe($),S&&S.type==="text"&&$.type==="text"){S.value+=$.value,S.output=(S.output||"")+$.value;return}$.prev=S,s.push($),S=$},T=($,Y)=>{let K={...p[Y],conditions:1,inner:""};K.prev=S,K.parens=w.parens,K.output=w.output;let z=(r.capture?"(":"")+K.open;le("parens"),ne({type:$,value:Y,output:w.output?"":m}),ne({type:"paren",extglob:!0,value:B(),output:z}),O.push(K)},I=$=>{let Y=$.close+(r.capture?")":""),K;if($.type==="negate"){let z=F;if($.inner&&$.inner.length>1&&$.inner.includes("/")&&(z=b(r)),(z!==F||L()||/^\)+$/.test(Q()))&&(Y=$.close=`)$))${z}`),$.inner.includes("*")&&(K=Q())&&/^\.[^\\/.]+$/.test(K)){let J=ro(K,{...t,fastpaths:!1}).output;Y=$.close=`)${J})${z})`}$.prev.type==="bos"&&(w.negatedExtglob=!0)}ne({type:"paren",extglob:!0,value:R,output:Y}),pe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let $=!1,Y=e.replace(sg,(K,z,J,ee,ie,ge)=>ee==="\\"?($=!0,K):ee==="?"?z?z+ee+(ie?y.repeat(ie.length):""):ge===0?x+(ie?y.repeat(ie.length):""):y.repeat(J.length):ee==="."?l.repeat(J.length):ee==="*"?z?z+ee+(ie?F:""):F:z?K:`\\${K}`);return $===!0&&(r.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,K=>K.length%2===0?"\\\\":K?"\\":"")),Y===e&&r.contains===!0?(w.output=e,w):(w.output=Ze.wrapOutput(Y,w,t),w)}for(;!L();){if(R=B(),R==="\0")continue;if(R==="\\"){let K=M();if(K==="/"&&r.bash!==!0||K==="."||K===";")continue;if(!K){R+="\\",ne({type:"text",value:R});continue}let z=/^\\+/.exec(Q()),J=0;if(z&&z[0].length>2&&(J=z[0].length,w.index+=J,J%2!==0&&(R+="\\")),r.unescape===!0?R=B():R+=B(),w.brackets===0){ne({type:"text",value:R});continue}}if(w.brackets>0&&(R!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&R===":"){let K=S.value.slice(1);if(K.includes("[")&&(S.posix=!0,K.includes(":"))){let z=S.value.lastIndexOf("["),J=S.value.slice(0,z),ee=S.value.slice(z+2),ie=ig[ee];if(ie){S.value=J+ie,w.backtrack=!0,B(),!u.output&&s.indexOf(S)===1&&(u.output=m);continue}}}(R==="["&&M()!==":"||R==="-"&&M()==="]")&&(R=`\\${R}`),R==="]"&&(S.value==="["||S.value==="[^")&&(R=`\\${R}`),r.posix===!0&&R==="!"&&S.value==="["&&(R="^"),S.value+=R,oe({value:R});continue}if(w.quotes===1&&R!=='"'){R=Ze.escapeRegex(R),S.value+=R,oe({value:R});continue}if(R==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&ne({type:"text",value:R});continue}if(R==="("){le("parens"),ne({type:"paren",value:R});continue}if(R===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(fr("opening","("));let K=O[O.length-1];if(K&&w.parens===K.parens+1){I(O.pop());continue}ne({type:"paren",value:R,output:w.parens?")":"\\)"}),pe("parens");continue}if(R==="["){if(r.nobracket===!0||!Q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(fr("closing","]"));R=`\\${R}`}else le("brackets");ne({type:"bracket",value:R});continue}if(R==="]"){if(r.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){ne({type:"text",value:R,output:`\\${R}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(fr("opening","["));ne({type:"text",value:R,output:`\\${R}`});continue}pe("brackets");let K=S.value.slice(1);if(S.posix!==!0&&K[0]==="^"&&!K.includes("/")&&(R=`/${R}`),S.value+=R,oe({value:R}),r.literalBrackets===!1||Ze.hasRegexChars(K))continue;let z=Ze.escapeRegex(S.value);if(w.output=w.output.slice(0,-S.value.length),r.literalBrackets===!0){w.output+=z,S.value=z;continue}S.value=`(${o}${z}|${S.value})`,w.output+=S.value;continue}if(R==="{"&&r.nobrace!==!0){le("braces");let K={type:"brace",value:R,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};P.push(K),ne(K);continue}if(R==="}"){let K=P[P.length-1];if(r.nobrace===!0||!K){ne({type:"text",value:R,output:R});continue}let z=")";if(K.dots===!0){let J=s.slice(),ee=[];for(let ie=J.length-1;ie>=0&&(s.pop(),J[ie].type!=="brace");ie--)J[ie].type!=="dots"&&ee.unshift(J[ie].value);z=ag(ee,r),w.backtrack=!0}if(K.comma!==!0&&K.dots!==!0){let J=w.output.slice(0,K.outputIndex),ee=w.tokens.slice(K.tokensIndex);K.value=K.output="\\{",R=z="\\}",w.output=J;for(let ie of ee)w.output+=ie.output||ie.value}ne({type:"brace",value:R,output:z}),pe("braces"),P.pop();continue}if(R==="|"){O.length>0&&O[O.length-1].conditions++,ne({type:"text",value:R});continue}if(R===","){let K=R,z=P[P.length-1];z&&C[C.length-1]==="braces"&&(z.comma=!0,K="|"),ne({type:"comma",value:R,output:K});continue}if(R==="/"){if(S.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",s.pop(),S=u;continue}ne({type:"slash",value:R,output:h});continue}if(R==="."){if(w.braces>0&&S.type==="dot"){S.value==="."&&(S.output=l);let K=P[P.length-1];S.type="dots",S.output+=R,S.value+=R,K.dots=!0;continue}if(w.braces+w.parens===0&&S.type!=="bos"&&S.type!=="slash"){ne({type:"text",value:R,output:l});continue}ne({type:"dot",value:R,output:l});continue}if(R==="?"){if(!(S&&S.value==="(")&&r.noextglob!==!0&&M()==="("&&M(2)!=="?"){T("qmark",R);continue}if(S&&S.type==="paren"){let z=M(),J=R;if(z==="<"&&!Ze.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(z)||z==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(J=`\\${R}`),ne({type:"text",value:R,output:J});continue}if(r.dot!==!0&&(S.type==="slash"||S.type==="bos")){ne({type:"qmark",value:R,output:D});continue}ne({type:"qmark",value:R,output:y});continue}if(R==="!"){if(r.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){T("negate",R);continue}if(r.nonegate!==!0&&w.index===0){N();continue}}if(R==="+"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){T("plus",R);continue}if(S&&S.value==="("||r.regex===!1){ne({type:"plus",value:R,output:f});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||w.parens>0){ne({type:"plus",value:R});continue}ne({type:"plus",value:f});continue}if(R==="@"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){ne({type:"at",extglob:!0,value:R,output:""});continue}ne({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let K=og.exec(Q());K&&(R+=K[0],w.index+=K[0].length),ne({type:"text",value:R});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=R,S.output=F,w.backtrack=!0,w.globstar=!0,Z(R);continue}let $=Q();if(r.noextglob!==!0&&/^\([^?]/.test($)){T("star",R);continue}if(S.type==="star"){if(r.noglobstar===!0){Z(R);continue}let K=S.prev,z=K.prev,J=K.type==="slash"||K.type==="bos",ee=z&&(z.type==="star"||z.type==="globstar");if(r.bash===!0&&(!J||$[0]&&$[0]!=="/")){ne({type:"star",value:R,output:""});continue}let ie=w.braces>0&&(K.type==="comma"||K.type==="brace"),ge=O.length&&(K.type==="pipe"||K.type==="paren");if(!J&&K.type!=="paren"&&!ie&&!ge){ne({type:"star",value:R,output:""});continue}for(;$.slice(0,3)==="/**";){let se=e[w.index+4];if(se&&se!=="/")break;$=$.slice(3),Z("/**",3)}if(K.type==="bos"&&L()){S.type="globstar",S.value+=R,S.output=b(r),w.output=S.output,w.globstar=!0,Z(R);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&!ee&&L()){w.output=w.output.slice(0,-(K.output+S.output).length),K.output=`(?:${K.output}`,S.type="globstar",S.output=b(r)+(r.strictSlashes?")":"|$)"),S.value+=R,w.globstar=!0,w.output+=K.output+S.output,Z(R);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&$[0]==="/"){let se=$[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(K.output+S.output).length),K.output=`(?:${K.output}`,S.type="globstar",S.output=`${b(r)}${h}|${h}${se})`,S.value+=R,w.output+=K.output+S.output,w.globstar=!0,Z(R+B()),ne({type:"slash",value:"/",output:""});continue}if(K.type==="bos"&&$[0]==="/"){S.type="globstar",S.value+=R,S.output=`(?:^|${h}|${b(r)}${h})`,w.output=S.output,w.globstar=!0,Z(R+B()),ne({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-S.output.length),S.type="globstar",S.output=b(r),S.value+=R,w.output+=S.output,w.globstar=!0,Z(R);continue}let Y={type:"star",value:R,output:F};if(r.bash===!0){Y.output=".*?",(S.type==="bos"||S.type==="slash")&&(Y.output=k+Y.output),ne(Y);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&r.regex===!0){Y.output=R,ne(Y);continue}(w.index===w.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(w.output+=E,S.output+=E):r.dot===!0?(w.output+=d,S.output+=d):(w.output+=k,S.output+=k),M()!=="*"&&(w.output+=m,S.output+=m)),ne(Y)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing","]"));w.output=Ze.escapeLast(w.output,"["),pe("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing",")"));w.output=Ze.escapeLast(w.output,"("),pe("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing","}"));w.output=Ze.escapeLast(w.output,"{"),pe("braces")}if(r.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&ne({type:"maybe_slash",value:"",output:`${h}?`}),w.backtrack===!0){w.output="";for(let $ of w.tokens)w.output+=$.output!=null?$.output:$.value,$.suffix&&(w.output+=$.suffix)}return w};ro.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Rn,r.maxLength):Rn,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=kc[e]||e;let u=Ze.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:f,STAR:h,START_ANCHOR:m}=Fn.globChars(u),v=r.dot?l:p,_=r.dot?f:p,E=r.capture?"":"?:",d={negated:!1,prefix:""},y=r.bash===!0?".*?":h;r.capture&&(y=`(${y})`);let D=k=>k.noglobstar===!0?y:`(${E}(?:(?!${m}${k.dot?c:s}).)*?)`,g=k=>{switch(k){case"*":return`${v}${a}${y}`;case".*":return`${s}${a}${y}`;case"*.*":return`${v}${y}${s}${a}${y}`;case"*/*":return`${v}${y}${o}${a}${_}${y}`;case"**":return v+D(r);case"**/*":return`(?:${v}${D(r)}${o})?${_}${a}${y}`;case"**/*.*":return`(?:${v}${D(r)}${o})?${_}${y}${s}${a}${y}`;case"**/.*":return`(?:${v}${D(r)}${o})?${s}${a}${y}`;default:{let x=/^(.*?)\.(\w+)$/.exec(k);if(!x)return;let F=g(x[1]);return F?F+s+x[2]:void 0}}},A=Ze.removePrefix(e,d),b=g(A);return b&&r.strictSlashes!==!0&&(b+=`${o}?`),b};Fc.exports=ro});var Tc=te((yO,Oc)=>{"use strict";j();var ug=require("path"),cg=Cc(),no=Rc(),io=qr(),lg=Gr(),pg=e=>e&&typeof e=="object"&&!Array.isArray(e),xe=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(f=>xe(f,t,r));return f=>{for(let h of p){let m=h(f);if(m)return m}return!1}}let n=pg(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},u=io.isWindows(t),s=n?xe.compileRe(e,t):xe.makeRe(e,t,!1,!0),o=s.state;delete s.state;let a=()=>!1;if(i.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};a=xe(i.ignore,p,r)}let c=(p,l=!1)=>{let{isMatch:f,match:h,output:m}=xe.test(p,s,t,{glob:e,posix:u}),v={glob:e,state:o,regex:s,posix:u,input:p,output:m,match:h,isMatch:f};return typeof i.onResult=="function"&&i.onResult(v),f===!1?(v.isMatch=!1,l?v:!1):a(p)?(typeof i.onIgnore=="function"&&i.onIgnore(v),v.isMatch=!1,l?v:!1):(typeof i.onMatch=="function"&&i.onMatch(v),l?v:!0)};return r&&(c.state=o),c};xe.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let u=r||{},s=u.format||(i?io.toPosixSlashes:null),o=e===n,a=o&&s?s(e):e;return o===!1&&(a=s?s(e):e,o=a===n),(o===!1||u.capture===!0)&&(u.matchBase===!0||u.basename===!0?o=xe.matchBase(e,t,r,i):o=t.exec(a)),{isMatch:Boolean(o),match:o,output:a}};xe.matchBase=(e,t,r,n=io.isWindows(r))=>(t instanceof RegExp?t:xe.makeRe(t,r)).test(ug.basename(e));xe.isMatch=(e,t,r)=>xe(t,r)(e);xe.parse=(e,t)=>Array.isArray(e)?e.map(r=>xe.parse(r,t)):no(e,{...t,fastpaths:!1});xe.scan=(e,t)=>cg(e,t);xe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},u=i.contains?"":"^",s=i.contains?"":"$",o=`${u}(?:${e.output})${s}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let a=xe.toRegex(o,t);return n===!0&&(a.state=e),a};xe.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=no.fastpaths(e,t)),i.output||(i=no(e,t)),xe.compileRe(i,t,r,n)};xe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};xe.constants=lg;Oc.exports=xe});var Lc=te((vO,Pc)=>{"use strict";j();Pc.exports=Tc()});var jc=te((_O,Mc)=>{"use strict";j();var Nc=require("util"),Bc=hc(),lt=Lc(),oo=qr(),Ic=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,u=new Set,s=0,o=p=>{u.add(p.output),r&&r.onResult&&r.onResult(p)};for(let p=0;p<t.length;p++){let l=lt(String(t[p]),{...r,onResult:o},!0),f=l.state.negated||l.state.negatedExtglob;f&&s++;for(let h of e){let m=l(h,!0);!(f?!m.isMatch:m.isMatch)||(f?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let c=(s===t.length?[...u]:[...i]).filter(p=>!n.has(p));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(p=>p.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>lt(e,t);be.isMatch=(e,t,r)=>lt(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],u=o=>{r.onResult&&r.onResult(o),i.push(o.output)},s=new Set(be(e,t,{...r,onResult:u}));for(let o of i)s.has(o)||n.add(o);return[...n]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Nc.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>be.contains(e,n,r));if(typeof t=="string"){if(Ic(e)||Ic(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return be.isMatch(e,t,{...r,contains:!0})};be.matchKeys=(e,t,r)=>{if(!oo.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=be(Object.keys(e),t,r),i={};for(let u of n)i[u]=e[u];return i};be.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let u=lt(String(i),r);if(n.some(s=>u(s)))return!0}return!1};be.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let u=lt(String(i),r);if(!n.every(s=>u(s)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Nc.inspect(e)}"`);return[].concat(t).every(n=>lt(n,r)(e))};be.capture=(e,t,r)=>{let n=oo.isWindows(r),u=lt.makeRe(String(e),{...r,capture:!0}).exec(n?oo.toPosixSlashes(t):t);if(u)return u.slice(1).map(s=>s===void 0?"":s)};be.makeRe=(...e)=>lt.makeRe(...e);be.scan=(...e)=>lt.scan(...e);be.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Bc(String(n),t))r.push(lt.parse(i,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Bc(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};Mc.exports=be});var Kc=te(ye=>{"use strict";j();Object.defineProperty(ye,"__esModule",{value:!0});ye.matchAny=ye.convertPatternsToRe=ye.makeRe=ye.getPatternParts=ye.expandBraceExpansion=ye.expandPatternsWithBraceExpansion=ye.isAffectDepthOfReadingPattern=ye.endsWithSlashGlobStar=ye.hasGlobStar=ye.getBaseDirectory=ye.isPatternRelatedToParentDirectory=ye.getPatternsOutsideCurrentDirectory=ye.getPatternsInsideCurrentDirectory=ye.getPositivePatterns=ye.getNegativePatterns=ye.isPositivePattern=ye.isNegativePattern=ye.convertToNegativePattern=ye.convertToPositivePattern=ye.isDynamicPattern=ye.isStaticPattern=void 0;var fg=require("path"),dg=Ou(),so=jc(),$c="**",hg="\\",mg=/[*?]|^!/,gg=/\[[^[]*]/,yg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,vg=/[!*+?@]\([^(]*\)/,_g=/,|\.\./;function Hc(e,t={}){return!Gc(e,t)}ye.isStaticPattern=Hc;function Gc(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(hg)||mg.test(e)||gg.test(e)||yg.test(e)||t.extglob!==!1&&vg.test(e)||t.braceExpansion!==!1&&Eg(e))}ye.isDynamicPattern=Gc;function Eg(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return _g.test(n)}function Sg(e){return On(e)?e.slice(1):e}ye.convertToPositivePattern=Sg;function Ag(e){return"!"+e}ye.convertToNegativePattern=Ag;function On(e){return e.startsWith("!")&&e[1]!=="("}ye.isNegativePattern=On;function qc(e){return!On(e)}ye.isPositivePattern=qc;function bg(e){return e.filter(On)}ye.getNegativePatterns=bg;function xg(e){return e.filter(qc)}ye.getPositivePatterns=xg;function Dg(e){return e.filter(t=>!ao(t))}ye.getPatternsInsideCurrentDirectory=Dg;function wg(e){return e.filter(ao)}ye.getPatternsOutsideCurrentDirectory=wg;function ao(e){return e.startsWith("..")||e.startsWith("./..")}ye.isPatternRelatedToParentDirectory=ao;function Cg(e){return dg(e,{flipBackslashes:!1})}ye.getBaseDirectory=Cg;function kg(e){return e.includes($c)}ye.hasGlobStar=kg;function Uc(e){return e.endsWith("/"+$c)}ye.endsWithSlashGlobStar=Uc;function Fg(e){let t=fg.basename(e);return Uc(e)||Hc(t)}ye.isAffectDepthOfReadingPattern=Fg;function Rg(e){return e.reduce((t,r)=>t.concat(Wc(r)),[])}ye.expandPatternsWithBraceExpansion=Rg;function Wc(e){return so.braces(e,{expand:!0,nodupes:!0})}ye.expandBraceExpansion=Wc;function Og(e,t){let{parts:r}=so.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ye.getPatternParts=Og;function Yc(e,t){return so.makeRe(e,t)}ye.makeRe=Yc;function Tg(e,t){return e.map(r=>Yc(r,t))}ye.convertPatternsToRe=Tg;function Pg(e,t){return t.some(r=>r.test(e))}ye.matchAny=Pg});var Jc=te((SO,Xc)=>{"use strict";j();var Lg=require("stream"),Vc=Lg.PassThrough,Ig=Array.prototype.slice;Xc.exports=Ng;function Ng(){let e=[],t=Ig.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,u=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=Vc(n);function o(){for(let p=0,l=arguments.length;p<l;p++)e.push(Qc(arguments[p],n));return a(),this}function a(){if(r)return;r=!0;let p=e.shift();if(!p){process.nextTick(c);return}Array.isArray(p)||(p=[p]);let l=p.length+1;function f(){--l>0||(r=!1,a())}function h(m){function v(){m.removeListener("merge2UnpipeEnd",v),m.removeListener("end",v),u&&m.removeListener("error",_),f()}function _(E){s.emit("error",E)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",v),m.on("end",v),u&&m.on("error",_),m.pipe(s,{end:!1}),m.resume()}for(let m=0;m<p.length;m++)h(p[m]);f()}function c(){r=!1,s.emit("queueDrain"),i&&s.end()}return s.setMaxListeners(0),s.add=o,s.on("unpipe",function(p){p.emit("merge2UnpipeEnd")}),t.length&&o.apply(null,t),s}function Qc(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Qc(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Vc(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var zc=te(Tn=>{"use strict";j();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.merge=void 0;var Bg=Jc();function Mg(e){let t=Bg(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Zc(e)),t.once("end",()=>Zc(e)),t}Tn.merge=Mg;function Zc(e){e.forEach(t=>t.emit("close"))}});var el=te(dr=>{"use strict";j();Object.defineProperty(dr,"__esModule",{value:!0});dr.isEmpty=dr.isString=void 0;function jg(e){return typeof e=="string"}dr.isString=jg;function $g(e){return e===""}dr.isEmpty=$g});var Et=te(Le=>{"use strict";j();Object.defineProperty(Le,"__esModule",{value:!0});Le.string=Le.stream=Le.pattern=Le.path=Le.fs=Le.errno=Le.array=void 0;var Hg=Su();Le.array=Hg;var Gg=Au();Le.errno=Gg;var qg=bu();Le.fs=qg;var Ug=xu();Le.path=Ug;var Wg=Kc();Le.pattern=Wg;var Yg=zc();Le.stream=Yg;var Kg=el();Le.string=Kg});var nl=te(Ie=>{"use strict";j();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.convertPatternGroupToTask=Ie.convertPatternGroupsToTasks=Ie.groupPatternsByBaseDirectory=Ie.getNegativePatternsAsPositive=Ie.getPositivePatterns=Ie.convertPatternsToTasks=Ie.generate=void 0;var St=Et();function Vg(e,t){let r=tl(e),n=rl(e,t.ignore),i=r.filter(a=>St.pattern.isStaticPattern(a,t)),u=r.filter(a=>St.pattern.isDynamicPattern(a,t)),s=uo(i,n,!1),o=uo(u,n,!0);return s.concat(o)}Ie.generate=Vg;function uo(e,t,r){let n=[],i=St.pattern.getPatternsOutsideCurrentDirectory(e),u=St.pattern.getPatternsInsideCurrentDirectory(e),s=co(i),o=co(u);return n.push(...lo(s,t,r)),"."in o?n.push(po(".",u,t,r)):n.push(...lo(o,t,r)),n}Ie.convertPatternsToTasks=uo;function tl(e){return St.pattern.getPositivePatterns(e)}Ie.getPositivePatterns=tl;function rl(e,t){return St.pattern.getNegativePatterns(e).concat(t).map(St.pattern.convertToPositivePattern)}Ie.getNegativePatternsAsPositive=rl;function co(e){let t={};return e.reduce((r,n)=>{let i=St.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}Ie.groupPatternsByBaseDirectory=co;function lo(e,t,r){return Object.keys(e).map(n=>po(n,e[n],t,r))}Ie.convertPatternGroupsToTasks=lo;function po(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(St.pattern.convertToNegativePattern))}}Ie.convertPatternGroupToTask=po});var ol=te(hr=>{"use strict";j();Object.defineProperty(hr,"__esModule",{value:!0});hr.removeDuplicateSlashes=hr.transform=void 0;var Qg=/(?!^)\/{2,}/g;function Xg(e){return e.map(t=>il(t))}hr.transform=Xg;function il(e){return e.replace(Qg,"/")}hr.removeDuplicateSlashes=il});var al=te(Pn=>{"use strict";j();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.read=void 0;function Jg(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){sl(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){fo(r,i);return}t.fs.stat(e,(u,s)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){sl(r,u);return}fo(r,i);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),fo(r,s)})})}Pn.read=Jg;function sl(e,t){e(t)}function fo(e,t){e(null,t)}});var ul=te(Ln=>{"use strict";j();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.read=void 0;function Zg(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ln.read=Zg});var cl=te(kt=>{"use strict";j();Object.defineProperty(kt,"__esModule",{value:!0});kt.createFileSystemAdapter=kt.FILE_SYSTEM_ADAPTER=void 0;var In=require("fs");kt.FILE_SYSTEM_ADAPTER={lstat:In.lstat,stat:In.stat,lstatSync:In.lstatSync,statSync:In.statSync};function zg(e){return e===void 0?kt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kt.FILE_SYSTEM_ADAPTER),e)}kt.createFileSystemAdapter=zg});var ll=te(mo=>{"use strict";j();Object.defineProperty(mo,"__esModule",{value:!0});var ey=cl(),ho=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=ey.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};mo.default=ho});var Vt=te(Ft=>{"use strict";j();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.statSync=Ft.stat=Ft.Settings=void 0;var pl=al(),ty=ul(),go=ll();Ft.Settings=go.default;function ry(e,t,r){if(typeof t=="function"){pl.read(e,yo(),t);return}pl.read(e,yo(t),r)}Ft.stat=ry;function ny(e,t){let r=yo(t);return ty.read(e,r)}Ft.statSync=ny;function yo(e={}){return e instanceof go.default?e:new go.default(e)}});var hl=te((TO,dl)=>{j();var fl;dl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(fl||(fl=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var gl=te((PO,ml)=>{j();ml.exports=oy;var iy=hl();function oy(e,t){let r,n,i,u=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function s(a){function c(){t&&t(a,r),t=null}u?iy(c):c()}function o(a,c,p){r[a]=p,(--n===0||c)&&s(c)}n?i?i.forEach(function(a){e[a](function(c,p){o(a,c,p)})}):e.forEach(function(a,c){a(function(p,l){o(c,p,l)})}):s(null),u=!1}});var vo=te(Bn=>{"use strict";j();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Nn=process.versions.node.split(".");if(Nn[0]===void 0||Nn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var yl=Number.parseInt(Nn[0],10),sy=Number.parseInt(Nn[1],10),vl=10,ay=10,uy=yl>vl,cy=yl===vl&&sy>=ay;Bn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=uy||cy});var _l=te(Mn=>{"use strict";j();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.createDirentFromStats=void 0;var _o=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function ly(e,t){return new _o(e,t)}Mn.createDirentFromStats=ly});var Eo=te(jn=>{"use strict";j();Object.defineProperty(jn,"__esModule",{value:!0});jn.fs=void 0;var py=_l();jn.fs=py});var So=te($n=>{"use strict";j();Object.defineProperty($n,"__esModule",{value:!0});$n.joinPathSegments=void 0;function fy(e,t,r){return e.endsWith(r)?e+t:e+r+t}$n.joinPathSegments=fy});var Dl=te(Rt=>{"use strict";j();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.readdir=Rt.readdirWithFileTypes=Rt.read=void 0;var dy=Vt(),El=gl(),hy=vo(),Sl=Eo(),Al=So();function my(e,t,r){if(!t.stats&&hy.IS_SUPPORT_READDIR_WITH_FILE_TYPES){bl(e,t,r);return}xl(e,t,r)}Rt.read=my;function bl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Hn(r,n);return}let u=i.map(o=>({dirent:o,name:o.name,path:Al.joinPathSegments(e,o.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ao(r,u);return}let s=u.map(o=>gy(o,t));El(s,(o,a)=>{if(o!==null){Hn(r,o);return}Ao(r,a)})})}Rt.readdirWithFileTypes=bl;function gy(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Sl.fs.createDirentFromStats(e.name,i),r(null,e)})}}function xl(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Hn(r,n);return}let u=i.map(s=>{let o=Al.joinPathSegments(e,s,t.pathSegmentSeparator);return a=>{dy.stat(o,t.fsStatSettings,(c,p)=>{if(c!==null){a(c);return}let l={name:s,path:o,dirent:Sl.fs.createDirentFromStats(s,p)};t.stats&&(l.stats=p),a(null,l)})}});El(u,(s,o)=>{if(s!==null){Hn(r,s);return}Ao(r,o)})})}Rt.readdir=xl;function Hn(e,t){e(t)}function Ao(e,t){e(null,t)}});var Rl=te(Ot=>{"use strict";j();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var yy=Vt(),vy=vo(),wl=Eo(),Cl=So();function _y(e,t){return!t.stats&&vy.IS_SUPPORT_READDIR_WITH_FILE_TYPES?kl(e,t):Fl(e,t)}Ot.read=_y;function kl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Cl.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let u=t.fs.statSync(i.path);i.dirent=wl.fs.createDirentFromStats(i.name,u)}catch(u){if(t.throwErrorOnBrokenSymbolicLink)throw u}return i})}Ot.readdirWithFileTypes=kl;function Fl(e,t){return t.fs.readdirSync(e).map(n=>{let i=Cl.joinPathSegments(e,n,t.pathSegmentSeparator),u=yy.statSync(i,t.fsStatSettings),s={name:n,path:i,dirent:wl.fs.createDirentFromStats(n,u)};return t.stats&&(s.stats=u),s})}Ot.readdir=Fl});var Ol=te(Tt=>{"use strict";j();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createFileSystemAdapter=Tt.FILE_SYSTEM_ADAPTER=void 0;var mr=require("fs");Tt.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};function Ey(e){return e===void 0?Tt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Tt.FILE_SYSTEM_ADAPTER),e)}Tt.createFileSystemAdapter=Ey});var Tl=te(xo=>{"use strict";j();Object.defineProperty(xo,"__esModule",{value:!0});var Sy=require("path"),Ay=Vt(),by=Ol(),bo=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=by.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Sy.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Ay.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};xo.default=bo});var Gn=te(Pt=>{"use strict";j();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Settings=Pt.scandirSync=Pt.scandir=void 0;var Pl=Dl(),xy=Rl(),Do=Tl();Pt.Settings=Do.default;function Dy(e,t,r){if(typeof t=="function"){Pl.read(e,wo(),t);return}Pl.read(e,wo(t),r)}Pt.scandir=Dy;function wy(e,t){let r=wo(t);return xy.read(e,r)}Pt.scandirSync=wy;function wo(e={}){return e instanceof Do.default?e:new Do.default(e)}});var Il=te((qO,Ll)=>{"use strict";j();function Cy(e){var t=new e,r=t;function n(){var u=t;return u.next?t=u.next:(t=new e,r=t),u.next=null,u}function i(u){r.next=u,r=u}return{get:n,release:i}}Ll.exports=Cy});var Bl=te((UO,Co)=>{"use strict";j();var ky=Il();function Nl(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=ky(Fy),i=null,u=null,s=0,o=null,a={push:v,drain:rt,saturated:rt,pause:p,paused:!1,concurrency:r,running:c,resume:h,idle:m,length:l,getQueue:f,unshift:_,empty:rt,kill:d,killAndDrain:y,error:D};return a;function c(){return s}function p(){a.paused=!0}function l(){for(var g=i,A=0;g;)g=g.next,A++;return A}function f(){for(var g=i,A=[];g;)A.push(g.value),g=g.next;return A}function h(){if(!!a.paused){a.paused=!1;for(var g=0;g<a.concurrency;g++)s++,E()}}function m(){return s===0&&a.length()===0}function v(g,A){var b=n.get();b.context=e,b.release=E,b.value=g,b.callback=A||rt,b.errorHandler=o,s===a.concurrency||a.paused?u?(u.next=b,u=b):(i=b,u=b,a.saturated()):(s++,t.call(e,b.value,b.worked))}function _(g,A){var b=n.get();b.context=e,b.release=E,b.value=g,b.callback=A||rt,s===a.concurrency||a.paused?i?(b.next=i,i=b):(i=b,u=b,a.saturated()):(s++,t.call(e,b.value,b.worked))}function E(g){g&&n.release(g);var A=i;A?a.paused?s--:(u===i&&(u=null),i=A.next,A.next=null,t.call(e,A.value,A.worked),u===null&&a.empty()):--s===0&&a.drain()}function d(){i=null,u=null,a.drain=rt}function y(){i=null,u=null,a.drain(),a.drain=rt}function D(g){o=g}}function rt(){}function Fy(){this.value=null,this.callback=rt,this.next=null,this.release=rt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,u=e.errorHandler,s=e.value;e.value=null,e.callback=rt,e.errorHandler&&u(r,s),i.call(e.context,r,n),e.release(e)}}function Ry(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(p,l){t.call(this,p).then(function(f){l(null,f)},l)}var i=Nl(e,n,r),u=i.push,s=i.unshift;return i.push=o,i.unshift=a,i.drained=c,i;function o(p){var l=new Promise(function(f,h){u(p,function(m,v){if(m){h(m);return}f(v)})});return l.catch(rt),l}function a(p){var l=new Promise(function(f,h){s(p,function(m,v){if(m){h(m);return}f(v)})});return l.catch(rt),l}function c(){var p=i.drain,l=new Promise(function(f){i.drain=function(){p(),f()}});return l}}Co.exports=Nl;Co.exports.promise=Ry});var qn=te(pt=>{"use strict";j();Object.defineProperty(pt,"__esModule",{value:!0});pt.joinPathSegments=pt.replacePathSegmentSeparator=pt.isAppliedFilter=pt.isFatalError=void 0;function Oy(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}pt.isFatalError=Oy;function Ty(e,t){return e===null||e(t)}pt.isAppliedFilter=Ty;function Py(e,t){return e.split(/[/\\]/).join(t)}pt.replacePathSegmentSeparator=Py;function Ly(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}pt.joinPathSegments=Ly});var Ro=te(Fo=>{"use strict";j();Object.defineProperty(Fo,"__esModule",{value:!0});var Iy=qn(),ko=class{constructor(t,r){this._root=t,this._settings=r,this._root=Iy.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Fo.default=ko});var Po=te(To=>{"use strict";j();Object.defineProperty(To,"__esModule",{value:!0});var Ny=require("events"),By=Gn(),My=Bl(),Un=qn(),jy=Ro(),Oo=class extends jy.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=By.scandir,this._emitter=new Ny.EventEmitter,this._queue=My(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let u of i)this._handleEntry(u,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Un.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Un.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Un.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Un.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};To.default=Oo});var Ml=te(Io=>{"use strict";j();Object.defineProperty(Io,"__esModule",{value:!0});var $y=Po(),Lo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new $y.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Hy(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Gy(t,this._storage)}),this._reader.read()}};Io.default=Lo;function Hy(e,t){e(t)}function Gy(e,t){e(null,t)}});var jl=te(Bo=>{"use strict";j();Object.defineProperty(Bo,"__esModule",{value:!0});var qy=require("stream"),Uy=Po(),No=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Uy.default(this._root,this._settings),this._stream=new qy.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Bo.default=No});var $l=te(jo=>{"use strict";j();Object.defineProperty(jo,"__esModule",{value:!0});var Wy=Gn(),Wn=qn(),Yy=Ro(),Mo=class extends Yy.default{constructor(){super(...arguments),this._scandir=Wy.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!Wn.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Wn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Wn.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Wn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};jo.default=Mo});var Hl=te(Ho=>{"use strict";j();Object.defineProperty(Ho,"__esModule",{value:!0});var Ky=$l(),$o=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Ky.default(this._root,this._settings)}read(){return this._reader.read()}};Ho.default=$o});var Gl=te(qo=>{"use strict";j();Object.defineProperty(qo,"__esModule",{value:!0});var Vy=require("path"),Qy=Gn(),Go=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Vy.sep),this.fsScandirSettings=new Qy.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};qo.default=Go});var Kn=te(ft=>{"use strict";j();Object.defineProperty(ft,"__esModule",{value:!0});ft.Settings=ft.walkStream=ft.walkSync=ft.walk=void 0;var ql=Ml(),Xy=jl(),Jy=Hl(),Uo=Gl();ft.Settings=Uo.default;function Zy(e,t,r){if(typeof t=="function"){new ql.default(e,Yn()).read(t);return}new ql.default(e,Yn(t)).read(r)}ft.walk=Zy;function zy(e,t){let r=Yn(t);return new Jy.default(e,r).read()}ft.walkSync=zy;function ev(e,t){let r=Yn(t);return new Xy.default(e,r).read()}ft.walkStream=ev;function Yn(e={}){return e instanceof Uo.default?e:new Uo.default(e)}});var Vn=te(Yo=>{"use strict";j();Object.defineProperty(Yo,"__esModule",{value:!0});var tv=require("path"),rv=Vt(),Ul=Et(),Wo=class{constructor(t){this._settings=t,this._fsStatSettings=new rv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return tv.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Ul.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Ul.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Yo.default=Wo});var Qo=te(Vo=>{"use strict";j();Object.defineProperty(Vo,"__esModule",{value:!0});var nv=require("stream"),iv=Vt(),ov=Kn(),sv=Vn(),Ko=class extends sv.default{constructor(){super(...arguments),this._walkStream=ov.walkStream,this._stat=iv.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new nv.PassThrough({objectMode:!0});i._write=(u,s,o)=>this._getEntry(n[u],t[u],r).then(a=>{a!==null&&r.entryFilter(a)&&i.push(a),u===n.length-1&&i.end(),o()}).catch(o);for(let u=0;u<n.length;u++)i.write(u);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,u)=>i===null?r(u):n(i))})}};Vo.default=Ko});var Wl=te(Jo=>{"use strict";j();Object.defineProperty(Jo,"__esModule",{value:!0});var av=Kn(),uv=Vn(),cv=Qo(),Xo=class extends uv.default{constructor(){super(...arguments),this._walkAsync=av.walk,this._readerStream=new cv.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(u,s)=>{u===null?n(s):i(u)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((u,s)=>{i.once("error",s),i.on("data",o=>n.push(o)),i.once("end",()=>u(n))})}};Jo.default=Xo});var Yl=te(zo=>{"use strict";j();Object.defineProperty(zo,"__esModule",{value:!0});var gr=Et(),Zo=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=gr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return gr.pattern.getPatternParts(t,this._micromatchOptions).map(n=>gr.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:gr.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return gr.array.splitWhen(t,r=>r.dynamic&&gr.pattern.hasGlobStar(r.pattern))}};zo.default=Zo});var Kl=te(ts=>{"use strict";j();Object.defineProperty(ts,"__esModule",{value:!0});var lv=Yl(),es=class extends lv.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(u=>!u.complete||u.segments.length>n);for(let u of i){let s=u.sections[0];if(!u.complete&&n>s.length||r.every((a,c)=>{let p=u.segments[c];return!!(p.dynamic&&p.patternRe.test(a)||!p.dynamic&&p.pattern===a)}))return!0}return!1}};ts.default=es});var Vl=te(ns=>{"use strict";j();Object.defineProperty(ns,"__esModule",{value:!0});var Qn=Et(),pv=Kl(),rs=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),u=this._getNegativePatternsRe(n);return s=>this._filter(t,s,i,u)}_getMatcher(t){return new pv.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Qn.pattern.isAffectDepthOfReadingPattern);return Qn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let u=Qn.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(u,n)?!1:this._isSkippedByNegativePatterns(u,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Qn.pattern.matchAny(t,r)}};ns.default=rs});var Ql=te(os=>{"use strict";j();Object.defineProperty(os,"__esModule",{value:!0});var Qt=Et(),is=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Qt.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Qt.pattern.convertPatternsToRe(r,this._micromatchOptions);return u=>this._filter(u,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,u=t.dirent.isDirectory(),s=this._isMatchToPatterns(i,r,u)&&!this._isMatchToPatterns(t.path,n,u);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Qt.path.makeAbsolute(this._settings.cwd,t);return Qt.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Qt.path.removeLeadingDotSegment(t),u=Qt.pattern.matchAny(i,r);return!u&&n?Qt.pattern.matchAny(i+"/",r):u}};os.default=is});var Xl=te(as=>{"use strict";j();Object.defineProperty(as,"__esModule",{value:!0});var fv=Et(),ss=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return fv.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};as.default=ss});var Zl=te(cs=>{"use strict";j();Object.defineProperty(cs,"__esModule",{value:!0});var Jl=Et(),us=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Jl.path.makeAbsolute(this._settings.cwd,r),r=Jl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};cs.default=us});var Xn=te(ps=>{"use strict";j();Object.defineProperty(ps,"__esModule",{value:!0});var dv=require("path"),hv=Vl(),mv=Ql(),gv=Xl(),yv=Zl(),ls=class{constructor(t){this._settings=t,this.errorFilter=new gv.default(this._settings),this.entryFilter=new mv.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new hv.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new yv.default(this._settings)}_getRootDirectory(t){return dv.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};ps.default=ls});var zl=te(ds=>{"use strict";j();Object.defineProperty(ds,"__esModule",{value:!0});var vv=Wl(),_v=Xn(),fs=class extends _v.default{constructor(){super(...arguments),this._reader=new vv.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(u=>n.transform(u))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ds.default=fs});var ep=te(ms=>{"use strict";j();Object.defineProperty(ms,"__esModule",{value:!0});var Ev=require("stream"),Sv=Qo(),Av=Xn(),hs=class extends Av.default{constructor(){super(...arguments),this._reader=new Sv.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),u=new Ev.Readable({objectMode:!0,read:()=>{}});return i.once("error",s=>u.emit("error",s)).on("data",s=>u.emit("data",n.transform(s))).once("end",()=>u.emit("end")),u.once("close",()=>i.destroy()),u}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ms.default=hs});var tp=te(ys=>{"use strict";j();Object.defineProperty(ys,"__esModule",{value:!0});var bv=Vt(),xv=Kn(),Dv=Vn(),gs=class extends Dv.default{constructor(){super(...arguments),this._walkSync=xv.walkSync,this._statSync=bv.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let u=this._getFullEntryPath(i),s=this._getEntry(u,i,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ys.default=gs});var rp=te(_s=>{"use strict";j();Object.defineProperty(_s,"__esModule",{value:!0});var wv=tp(),Cv=Xn(),vs=class extends Cv.default{constructor(){super(...arguments),this._reader=new wv.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};_s.default=vs});var np=te(vr=>{"use strict";j();Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yr=require("fs"),kv=require("os"),Fv=Math.max(kv.cpus().length,1);vr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yr.lstat,lstatSync:yr.lstatSync,stat:yr.stat,statSync:yr.statSync,readdir:yr.readdir,readdirSync:yr.readdirSync};var Es=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Fv),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},vr.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};vr.default=Es});var ap=te((mT,sp)=>{"use strict";j();var ip=nl(),op=ol(),Rv=zl(),Ov=ep(),Tv=rp(),Ss=np(),Xt=Et();async function As(e,t){_r(e);let r=bs(e,Rv.default,t),n=await Promise.all(r);return Xt.array.flatten(n)}(function(e){function t(s,o){_r(s);let a=bs(s,Tv.default,o);return Xt.array.flatten(a)}e.sync=t;function r(s,o){_r(s);let a=bs(s,Ov.default,o);return Xt.stream.merge(a)}e.stream=r;function n(s,o){_r(s);let a=op.transform([].concat(s)),c=new Ss.default(o);return ip.generate(a,c)}e.generateTasks=n;function i(s,o){_r(s);let a=new Ss.default(o);return Xt.pattern.isDynamicPattern(s,a)}e.isDynamicPattern=i;function u(s){return _r(s),Xt.path.escape(s)}e.escapePath=u})(As||(As={}));function bs(e,t,r){let n=op.transform([].concat(e)),i=new Ss.default(r),u=ip.generate(n,i),s=new t(i);return u.map(s.read,s)}function _r(e){if(![].concat(e).every(n=>Xt.string.isString(n)&&!Xt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}sp.exports=As});var Er=te((gT,Jt)=>{"use strict";j();function up(e){return typeof e>"u"||e===null}function Pv(e){return typeof e=="object"&&e!==null}function Lv(e){return Array.isArray(e)?e:up(e)?[]:[e]}function Iv(e,t){var r,n,i,u;if(t)for(u=Object.keys(t),r=0,n=u.length;r<n;r+=1)i=u[r],e[i]=t[i];return e}function Nv(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Bv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Jt.exports.isNothing=up;Jt.exports.isObject=Pv;Jt.exports.toArray=Lv;Jt.exports.repeat=Nv;Jt.exports.isNegativeZero=Bv;Jt.exports.extend=Iv});var Sr=te((yT,lp)=>{"use strict";j();function cp(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
4
4
 
5
- `+e.mark.snippet),i+" "+r):i}function Wr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=zl(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wr.prototype=Object.create(Error.prototype);Wr.prototype.constructor=Wr;Wr.prototype.toString=function(t){return this.name+": "+zl(this,t)};ep.exports=Wr});var rp=te((VO,tp)=>{"use strict";j();var Kr=Er();function vs(e,t,r,i,n){var u="",s="",o=Math.floor(n/2)-1;return i-t>o&&(u=" ... ",t=i-o+u.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:i-t+u.length}}function _s(e,t){return Kr.repeat(" ",t-e.length)+e}function gv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],u,s=-1;u=r.exec(e.buffer);)n.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,n.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=vs(e.buffer,i[s-a],n[s-a],e.position-(i[s]-i[s-a]),l),o=Kr.repeat(" ",t.indent)+_s((e.line-a+1).toString(),p)+" | "+c.str+`
6
- `+o;for(c=vs(e.buffer,i[s],n[s],e.position,l),o+=Kr.repeat(" ",t.indent)+_s((e.line+1).toString(),p)+" | "+c.str+`
7
- `,o+=Kr.repeat("-",t.indent+p+3+c.pos)+`^
8
- `,a=1;a<=t.linesAfter&&!(s+a>=n.length);a++)c=vs(e.buffer,i[s+a],n[s+a],e.position-(i[s]-i[s+a]),l),o+=Kr.repeat(" ",t.indent)+_s((e.line+a+1).toString(),p)+" | "+c.str+`
9
- `;return o.replace(/\n$/,"")}tp.exports=gv});var Ie=te((QO,ip)=>{"use strict";j();var np=Sr(),vv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_v=["scalar","sequence","mapping"];function Ev(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function Sv(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(vv.indexOf(r)===-1)throw new np('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=Ev(t.styleAliases||null),_v.indexOf(this.kind)===-1)throw new np('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}ip.exports=Sv});var As=te((XO,sp)=>{"use strict";j();var Yr=Sr(),Es=Ie();function op(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(u,s){u.tag===i.tag&&u.kind===i.kind&&u.multi===i.multi&&(n=s)}),r[n]=i}),r}function Av(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function Ss(e){return this.extend(e)}Ss.prototype.extend=function(t){var r=[],i=[];if(t instanceof Es)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Yr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(u){if(!(u instanceof Es))throw new Yr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new Yr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new Yr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(u){if(!(u instanceof Es))throw new Yr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ss.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=op(n,"implicit"),n.compiledExplicit=op(n,"explicit"),n.compiledTypeMap=Av(n.compiledImplicit,n.compiledExplicit),n};sp.exports=Ss});var bs=te((JO,ap)=>{"use strict";j();var bv=Ie();ap.exports=new bv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Ds=te((ZO,up)=>{"use strict";j();var Dv=Ie();up.exports=new Dv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var xs=te((zO,cp)=>{"use strict";j();var xv=Ie();cp.exports=new xv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var ws=te((eT,lp)=>{"use strict";j();var wv=As();lp.exports=new wv({explicit:[bs(),Ds(),xs()]})});var Cs=te((tT,pp)=>{"use strict";j();var Cv=Ie();function kv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Fv(){return null}function Rv(e){return e===null}pp.exports=new Cv("tag:yaml.org,2002:null",{kind:"scalar",resolve:kv,construct:Fv,predicate:Rv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var ks=te((rT,fp)=>{"use strict";j();var Ov=Ie();function Tv(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Pv(e){return e==="true"||e==="True"||e==="TRUE"}function Lv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}fp.exports=new Ov("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Tv,construct:Pv,predicate:Lv,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Fs=te((nT,dp)=>{"use strict";j();var Iv=Er(),Nv=Ie();function Bv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Mv(e){return 48<=e&&e<=55}function jv(e){return 48<=e&&e<=57}function $v(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Bv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Mv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!jv(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Hv(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function Gv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Iv.isNegativeZero(e)}dp.exports=new Nv("tag:yaml.org,2002:int",{kind:"scalar",resolve:$v,construct:Hv,predicate:Gv,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"]}})});var Rs=te((iT,mp)=>{"use strict";j();var hp=Er(),qv=Ie(),Uv=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wv(e){return!(e===null||!Uv.test(e)||e[e.length-1]==="_")}function Kv(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Yv=/^[-+]?[0-9]+e/;function Vv(e,t){var r;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(hp.isNegativeZero(e))return"-0.0";return r=e.toString(10),Yv.test(r)?r.replace("e",".e"):r}function Qv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||hp.isNegativeZero(e))}mp.exports=new qv("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wv,construct:Kv,predicate:Qv,represent:Vv,defaultStyle:"lowercase"})});var Os=te((oT,yp)=>{"use strict";j();yp.exports=ws().extend({implicit:[Cs(),ks(),Fs(),Rs()]})});var Ts=te((sT,gp)=>{"use strict";j();gp.exports=Os()});var Ps=te((aT,Ep)=>{"use strict";j();var Xv=Ie(),vp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_p=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 Jv(e){return e===null?!1:vp.exec(e)!==null||_p.exec(e)!==null}function Zv(e){var t,r,i,n,u,s,o,a=0,c=null,p,l,f;if(t=vp.exec(e),t===null&&(t=_p.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function zv(e){return e.toISOString()}Ep.exports=new Xv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jv,construct:Zv,instanceOf:Date,represent:zv})});var Ls=te((uT,Sp)=>{"use strict";j();var e_=Ie();function t_(e){return e==="<<"||e===null}Sp.exports=new e_("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t_})});var Ns=te((cT,Ap)=>{"use strict";j();var r_=Ie(),Is=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
- \r`;function n_(e){if(e===null)return!1;var t,r,i=0,n=e.length,u=Is;for(r=0;r<n;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function i_(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,u=Is,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function o_(e){var t="",r=0,i,n,u=e.length,s=Is;for(i=0;i<u;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=u%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function s_(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Ap.exports=new r_("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n_,construct:i_,predicate:s_,represent:o_})});var Bs=te((lT,bp)=>{"use strict";j();var a_=Ie(),u_=Object.prototype.hasOwnProperty,c_=Object.prototype.toString;function l_(e){if(e===null)return!0;var t=[],r,i,n,u,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,c_.call(n)!=="[object Object]")return!1;for(u in n)if(u_.call(n,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function p_(e){return e!==null?e:[]}bp.exports=new a_("tag:yaml.org,2002:omap",{kind:"sequence",resolve:l_,construct:p_})});var Ms=te((pT,Dp)=>{"use strict";j();var f_=Ie(),d_=Object.prototype.toString;function h_(e){if(e===null)return!0;var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],d_.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;u[t]=[n[0],i[n[0]]]}return!0}function m_(e){if(e===null)return[];var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),u[t]=[n[0],i[n[0]]];return u}Dp.exports=new f_("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:h_,construct:m_})});var js=te((fT,xp)=>{"use strict";j();var y_=Ie(),g_=Object.prototype.hasOwnProperty;function v_(e){if(e===null)return!0;var t,r=e;for(t in r)if(g_.call(r,t)&&r[t]!==null)return!1;return!0}function __(e){return e!==null?e:{}}xp.exports=new y_("tag:yaml.org,2002:set",{kind:"mapping",resolve:v_,construct:__})});var Vn=te((dT,wp)=>{"use strict";j();wp.exports=Ts().extend({implicit:[Ps(),Ls()],explicit:[Ns(),Bs(),Ms(),js()]})});var Gp=te((hT,qs)=>{"use strict";j();var zt=Er(),Pp=Sr(),E_=rp(),S_=Vn(),Lt=Object.prototype.hasOwnProperty,Qn=1,Lp=2,Ip=3,Xn=4,$s=1,A_=2,Cp=3,b_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D_=/[\x85\u2028\u2029]/,x_=/[,\[\]\{\}]/,Np=/^(?:!|!!|![a-z\-]+!)$/i,Bp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function kp(e){return Object.prototype.toString.call(e)}function ft(e){return e===10||e===13}function er(e){return e===9||e===32}function Ue(e){return e===9||e===32||e===10||e===13}function Ar(e){return e===44||e===91||e===93||e===123||e===125}function w_(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function C_(e){return e===120?2:e===117?4:e===85?8:0}function k_(e){return 48<=e&&e<=57?e-48:-1}function Fp(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
11
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function F_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Mp=new Array(256),jp=new Array(256);for(Zt=0;Zt<256;Zt++)Mp[Zt]=Fp(Zt)?1:0,jp[Zt]=Fp(Zt);var Zt;function R_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||S_,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 $p(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=E_(r),new Pp(t,r)}function de(e,t){throw $p(e,t)}function Jn(e,t){e.onWarning&&e.onWarning.call(null,$p(e,t))}var Rp={YAML:function(t,r,i){var n,u,s;t.version!==null&&de(t,"duplication of %YAML directive"),i.length!==1&&de(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&de(t,"ill-formed argument of the YAML directive"),u=parseInt(n[1],10),s=parseInt(n[2],10),u!==1&&de(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Jn(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var n,u;i.length!==2&&de(t,"TAG directive accepts exactly two arguments"),n=i[0],u=i[1],Np.test(n)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),Lt.call(t.tagMap,n)&&de(t,'there is a previously declared suffix for "'+n+'" tag handle'),Bp.test(u)||de(t,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{de(t,"tag prefix is malformed: "+u)}t.tagMap[n]=u}};function Pt(e,t,r,i){var n,u,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,u=o.length;n<u;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||de(e,"expected valid JSON character");else b_.test(o)&&de(e,"the stream contains non-printable characters");e.result+=o}}function Op(e,t,r,i){var n,u,s,o;for(zt.isObject(r)||de(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)u=n[s],Lt.call(t,u)||(t[u]=r[u],i[u]=!0)}function br(e,t,r,i,n,u,s,o,a){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&de(e,"nested arrays are not supported inside keys"),typeof n=="object"&&kp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&kp(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)Op(e,t,u[c],r);else Op(e,t,u,r);else!e.json&&!Lt.call(r,n)&&Lt.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,de(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[n]=u,delete r[n];return t}function Hs(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):de(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function xe(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;er(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(ft(n))for(Hs(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Jn(e,"deficient indentation"),i}function Zn(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ue(r)))}function Gs(e,t){t===1?e.result+=" ":t>1&&(e.result+=zt.repeat(`
12
- `,t-1))}function O_(e,t,r){var i,n,u,s,o,a,c,p,l=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Ue(d)||Ar(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Ue(n)||r&&Ar(n)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Ue(n)||r&&Ar(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Ue(i))break}else{if(e.position===e.lineStart&&Zn(e)||r&&Ar(d))break;if(ft(d))if(a=e.line,c=e.lineStart,p=e.lineIndent,xe(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(Pt(e,u,s,!1),Gs(e,e.line-a),u=s=e.position,o=!1),er(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return Pt(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function T_(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Pt(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else ft(r)?(Pt(e,i,n,!0),Gs(e,xe(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Zn(e)?de(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);de(e,"unexpected end of the stream within a single quoted scalar")}function P_(e,t){var r,i,n,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Pt(e,r,e.position,!0),e.position++,!0;if(o===92){if(Pt(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),ft(o))xe(e,!1,t);else if(o<256&&Mp[o])e.result+=jp[o],e.position++;else if((s=C_(o))>0){for(n=s,u=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=w_(o))>=0?u=(u<<4)+s:de(e,"expected hexadecimal character");e.result+=F_(u),e.position++}else de(e,"unknown escape sequence");r=i=e.position}else ft(o)?(Pt(e,r,i,!0),Gs(e,xe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Zn(e)?de(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}de(e,"unexpected end of the stream within a double quoted scalar")}function L_(e,t){var r=!0,i,n,u,s=e.tag,o,a=e.anchor,c,p,l,f,d,m=Object.create(null),g,_,E,h;if(h=e.input.charCodeAt(e.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(xe(e,!0,t),h=e.input.charCodeAt(e.position),h===p)return e.position++,e.tag=s,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r?h===44&&de(e,"expected the node content, but found ','"):de(e,"missed comma between flow collection entries"),_=g=E=null,l=f=!1,h===63&&(c=e.input.charCodeAt(e.position+1),Ue(c)&&(l=f=!0,e.position++,xe(e,!0,t))),i=e.line,n=e.lineStart,u=e.position,Dr(e,t,Qn,!1,!0),_=e.tag,g=e.result,xe(e,!0,t),h=e.input.charCodeAt(e.position),(f||e.line===i)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),xe(e,!0,t),Dr(e,t,Qn,!1,!0),E=e.result),d?br(e,o,m,_,g,E,i,n,u):l?o.push(br(e,null,m,_,g,E,i,n,u)):o.push(g),xe(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}de(e,"unexpected end of the stream within a flow collection")}function I_(e,t){var r,i,n=$s,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)$s===n?n=l===43?Cp:A_:de(e,"repeat of a chomping mode identifier");else if((p=k_(l))>=0)p===0?de(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?de(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(er(l)){do l=e.input.charCodeAt(++e.position);while(er(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!ft(l)&&l!==0)}for(;l!==0;){for(Hs(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),ft(l)){a++;continue}if(e.lineIndent<o){n===Cp?e.result+=zt.repeat(`
13
- `,u?1+a:a):n===$s&&u&&(e.result+=`
14
- `);break}for(i?er(l)?(c=!0,e.result+=zt.repeat(`
5
+ `+e.mark.snippet),n+" "+r):n}function Wr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=cp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wr.prototype=Object.create(Error.prototype);Wr.prototype.constructor=Wr;Wr.prototype.toString=function(t){return this.name+": "+cp(this,t)};lp.exports=Wr});var fp=te((vT,pp)=>{"use strict";j();var Yr=Er();function xs(e,t,r,n,i){var u="",s="",o=Math.floor(i/2)-1;return n-t>o&&(u=" ... ",t=n-o+u.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+u.length}}function Ds(e,t){return Yr.repeat(" ",t-e.length)+e}function Mv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],u,s=-1;u=r.exec(e.buffer);)i.push(u.index),n.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=xs(e.buffer,n[s-a],i[s-a],e.position-(n[s]-n[s-a]),l),o=Yr.repeat(" ",t.indent)+Ds((e.line-a+1).toString(),p)+" | "+c.str+`
6
+ `+o;for(c=xs(e.buffer,n[s],i[s],e.position,l),o+=Yr.repeat(" ",t.indent)+Ds((e.line+1).toString(),p)+" | "+c.str+`
7
+ `,o+=Yr.repeat("-",t.indent+p+3+c.pos)+`^
8
+ `,a=1;a<=t.linesAfter&&!(s+a>=i.length);a++)c=xs(e.buffer,n[s+a],i[s+a],e.position-(n[s]-n[s+a]),l),o+=Yr.repeat(" ",t.indent)+Ds((e.line+a+1).toString(),p)+" | "+c.str+`
9
+ `;return o.replace(/\n$/,"")}pp.exports=Mv});var Ne=te((_T,hp)=>{"use strict";j();var dp=Sr(),jv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$v=["scalar","sequence","mapping"];function Hv(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Gv(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(jv.indexOf(r)===-1)throw new dp('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=Hv(t.styleAliases||null),$v.indexOf(this.kind)===-1)throw new dp('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}hp.exports=Gv});var ks=te((ET,gp)=>{"use strict";j();var Kr=Sr(),ws=Ne();function mp(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(u,s){u.tag===n.tag&&u.kind===n.kind&&u.multi===n.multi&&(i=s)}),r[i]=n}),r}function qv(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Cs(e){return this.extend(e)}Cs.prototype.extend=function(t){var r=[],n=[];if(t instanceof ws)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Kr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(u){if(!(u instanceof ws))throw new Kr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new Kr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new Kr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(u){if(!(u instanceof ws))throw new Kr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Cs.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=mp(i,"implicit"),i.compiledExplicit=mp(i,"explicit"),i.compiledTypeMap=qv(i.compiledImplicit,i.compiledExplicit),i};gp.exports=Cs});var Fs=te((ST,yp)=>{"use strict";j();var Uv=Ne();yp.exports=new Uv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Rs=te((AT,vp)=>{"use strict";j();var Wv=Ne();vp.exports=new Wv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Os=te((bT,_p)=>{"use strict";j();var Yv=Ne();_p.exports=new Yv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Ts=te((xT,Ep)=>{"use strict";j();var Kv=ks();Ep.exports=new Kv({explicit:[Fs(),Rs(),Os()]})});var Ps=te((DT,Sp)=>{"use strict";j();var Vv=Ne();function Qv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Xv(){return null}function Jv(e){return e===null}Sp.exports=new Vv("tag:yaml.org,2002:null",{kind:"scalar",resolve:Qv,construct:Xv,predicate:Jv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ls=te((wT,Ap)=>{"use strict";j();var Zv=Ne();function zv(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function e_(e){return e==="true"||e==="True"||e==="TRUE"}function t_(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Ap.exports=new Zv("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zv,construct:e_,predicate:t_,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Is=te((CT,bp)=>{"use strict";j();var r_=Er(),n_=Ne();function i_(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function o_(e){return 48<=e&&e<=55}function s_(e){return 48<=e&&e<=57}function a_(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!i_(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!o_(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!s_(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function u_(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function c_(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!r_.isNegativeZero(e)}bp.exports=new n_("tag:yaml.org,2002:int",{kind:"scalar",resolve:a_,construct:u_,predicate:c_,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"]}})});var Ns=te((kT,Dp)=>{"use strict";j();var xp=Er(),l_=Ne(),p_=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function f_(e){return!(e===null||!p_.test(e)||e[e.length-1]==="_")}function d_(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var h_=/^[-+]?[0-9]+e/;function m_(e,t){var r;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(xp.isNegativeZero(e))return"-0.0";return r=e.toString(10),h_.test(r)?r.replace("e",".e"):r}function g_(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||xp.isNegativeZero(e))}Dp.exports=new l_("tag:yaml.org,2002:float",{kind:"scalar",resolve:f_,construct:d_,predicate:g_,represent:m_,defaultStyle:"lowercase"})});var Bs=te((FT,wp)=>{"use strict";j();wp.exports=Ts().extend({implicit:[Ps(),Ls(),Is(),Ns()]})});var Ms=te((RT,Cp)=>{"use strict";j();Cp.exports=Bs()});var js=te((OT,Rp)=>{"use strict";j();var y_=Ne(),kp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fp=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 v_(e){return e===null?!1:kp.exec(e)!==null||Fp.exec(e)!==null}function __(e){var t,r,n,i,u,s,o,a=0,c=null,p,l,f;if(t=kp.exec(e),t===null&&(t=Fp.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function E_(e){return e.toISOString()}Rp.exports=new y_("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:v_,construct:__,instanceOf:Date,represent:E_})});var $s=te((TT,Op)=>{"use strict";j();var S_=Ne();function A_(e){return e==="<<"||e===null}Op.exports=new S_("tag:yaml.org,2002:merge",{kind:"scalar",resolve:A_})});var Gs=te((PT,Tp)=>{"use strict";j();var b_=Ne(),Hs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
+ \r`;function x_(e){if(e===null)return!1;var t,r,n=0,i=e.length,u=Hs;for(r=0;r<i;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function D_(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,u=Hs,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function w_(e){var t="",r=0,n,i,u=e.length,s=Hs;for(n=0;n<u;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=u%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function C_(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Tp.exports=new b_("tag:yaml.org,2002:binary",{kind:"scalar",resolve:x_,construct:D_,predicate:C_,represent:w_})});var qs=te((LT,Pp)=>{"use strict";j();var k_=Ne(),F_=Object.prototype.hasOwnProperty,R_=Object.prototype.toString;function O_(e){if(e===null)return!0;var t=[],r,n,i,u,s,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],s=!1,R_.call(i)!=="[object Object]")return!1;for(u in i)if(F_.call(i,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function T_(e){return e!==null?e:[]}Pp.exports=new k_("tag:yaml.org,2002:omap",{kind:"sequence",resolve:O_,construct:T_})});var Us=te((IT,Lp)=>{"use strict";j();var P_=Ne(),L_=Object.prototype.toString;function I_(e){if(e===null)return!0;var t,r,n,i,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],L_.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;u[t]=[i[0],n[i[0]]]}return!0}function N_(e){if(e===null)return[];var t,r,n,i,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),u[t]=[i[0],n[i[0]]];return u}Lp.exports=new P_("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:I_,construct:N_})});var Ws=te((NT,Ip)=>{"use strict";j();var B_=Ne(),M_=Object.prototype.hasOwnProperty;function j_(e){if(e===null)return!0;var t,r=e;for(t in r)if(M_.call(r,t)&&r[t]!==null)return!1;return!0}function $_(e){return e!==null?e:{}}Ip.exports=new B_("tag:yaml.org,2002:set",{kind:"mapping",resolve:j_,construct:$_})});var Jn=te((BT,Np)=>{"use strict";j();Np.exports=Ms().extend({implicit:[js(),$s()],explicit:[Gs(),qs(),Us(),Ws()]})});var Zp=te((MT,Qs)=>{"use strict";j();var zt=Er(),qp=Sr(),H_=fp(),G_=Jn(),It=Object.prototype.hasOwnProperty,Zn=1,Up=2,Wp=3,zn=4,Ys=1,q_=2,Bp=3,U_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,W_=/[\x85\u2028\u2029]/,Y_=/[,\[\]\{\}]/,Yp=/^(?:!|!!|![a-z\-]+!)$/i,Kp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Mp(e){return Object.prototype.toString.call(e)}function dt(e){return e===10||e===13}function er(e){return e===9||e===32}function Ye(e){return e===9||e===32||e===10||e===13}function Ar(e){return e===44||e===91||e===93||e===123||e===125}function K_(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function V_(e){return e===120?2:e===117?4:e===85?8:0}function Q_(e){return 48<=e&&e<=57?e-48:-1}function jp(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
11
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function X_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Vp=new Array(256),Qp=new Array(256);for(Zt=0;Zt<256;Zt++)Vp[Zt]=jp(Zt)?1:0,Qp[Zt]=jp(Zt);var Zt;function J_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||G_,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 Xp(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=H_(r),new qp(t,r)}function de(e,t){throw Xp(e,t)}function ei(e,t){e.onWarning&&e.onWarning.call(null,Xp(e,t))}var $p={YAML:function(t,r,n){var i,u,s;t.version!==null&&de(t,"duplication of %YAML directive"),n.length!==1&&de(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&de(t,"ill-formed argument of the YAML directive"),u=parseInt(i[1],10),s=parseInt(i[2],10),u!==1&&de(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ei(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,u;n.length!==2&&de(t,"TAG directive accepts exactly two arguments"),i=n[0],u=n[1],Yp.test(i)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),It.call(t.tagMap,i)&&de(t,'there is a previously declared suffix for "'+i+'" tag handle'),Kp.test(u)||de(t,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{de(t,"tag prefix is malformed: "+u)}t.tagMap[i]=u}};function Lt(e,t,r,n){var i,u,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,u=o.length;i<u;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||de(e,"expected valid JSON character");else U_.test(o)&&de(e,"the stream contains non-printable characters");e.result+=o}}function Hp(e,t,r,n){var i,u,s,o;for(zt.isObject(r)||de(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,o=i.length;s<o;s+=1)u=i[s],It.call(t,u)||(t[u]=r[u],n[u]=!0)}function br(e,t,r,n,i,u,s,o,a){var c,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,p=i.length;c<p;c+=1)Array.isArray(i[c])&&de(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Mp(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Mp(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)Hp(e,t,u[c],r);else Hp(e,t,u,r);else!e.json&&!It.call(r,i)&&It.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,de(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[i]=u,delete r[i];return t}function Ks(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):de(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function De(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;er(i);)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(dt(i))for(Ks(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ei(e,"deficient indentation"),n}function ti(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ye(r)))}function Vs(e,t){t===1?e.result+=" ":t>1&&(e.result+=zt.repeat(`
12
+ `,t-1))}function Z_(e,t,r){var n,i,u,s,o,a,c,p,l=e.kind,f=e.result,h;if(h=e.input.charCodeAt(e.position),Ye(h)||Ar(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Ye(i)||r&&Ar(i)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ye(i)||r&&Ar(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ye(n))break}else{if(e.position===e.lineStart&&ti(e)||r&&Ar(h))break;if(dt(h))if(a=e.line,c=e.lineStart,p=e.lineIndent,De(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(Lt(e,u,s,!1),Vs(e,e.line-a),u=s=e.position,o=!1),er(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Lt(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function z_(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Lt(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else dt(r)?(Lt(e,n,i,!0),Vs(e,De(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ti(e)?de(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);de(e,"unexpected end of the stream within a single quoted scalar")}function eE(e,t){var r,n,i,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Lt(e,r,e.position,!0),e.position++,!0;if(o===92){if(Lt(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),dt(o))De(e,!1,t);else if(o<256&&Vp[o])e.result+=Qp[o],e.position++;else if((s=V_(o))>0){for(i=s,u=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=K_(o))>=0?u=(u<<4)+s:de(e,"expected hexadecimal character");e.result+=X_(u),e.position++}else de(e,"unknown escape sequence");r=n=e.position}else dt(o)?(Lt(e,r,n,!0),Vs(e,De(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ti(e)?de(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}de(e,"unexpected end of the stream within a double quoted scalar")}function tE(e,t){var r=!0,n,i,u,s=e.tag,o,a=e.anchor,c,p,l,f,h,m=Object.create(null),v,_,E,d;if(d=e.input.charCodeAt(e.position),d===91)p=93,h=!1,o=[];else if(d===123)p=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);d!==0;){if(De(e,!0,t),d=e.input.charCodeAt(e.position),d===p)return e.position++,e.tag=s,e.anchor=a,e.kind=h?"mapping":"sequence",e.result=o,!0;r?d===44&&de(e,"expected the node content, but found ','"):de(e,"missed comma between flow collection entries"),_=v=E=null,l=f=!1,d===63&&(c=e.input.charCodeAt(e.position+1),Ye(c)&&(l=f=!0,e.position++,De(e,!0,t))),n=e.line,i=e.lineStart,u=e.position,xr(e,t,Zn,!1,!0),_=e.tag,v=e.result,De(e,!0,t),d=e.input.charCodeAt(e.position),(f||e.line===n)&&d===58&&(l=!0,d=e.input.charCodeAt(++e.position),De(e,!0,t),xr(e,t,Zn,!1,!0),E=e.result),h?br(e,o,m,_,v,E,n,i,u):l?o.push(br(e,null,m,_,v,E,n,i,u)):o.push(v),De(e,!0,t),d=e.input.charCodeAt(e.position),d===44?(r=!0,d=e.input.charCodeAt(++e.position)):r=!1}de(e,"unexpected end of the stream within a flow collection")}function rE(e,t){var r,n,i=Ys,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Ys===i?i=l===43?Bp:q_:de(e,"repeat of a chomping mode identifier");else if((p=Q_(l))>=0)p===0?de(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?de(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(er(l)){do l=e.input.charCodeAt(++e.position);while(er(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!dt(l)&&l!==0)}for(;l!==0;){for(Ks(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),dt(l)){a++;continue}if(e.lineIndent<o){i===Bp?e.result+=zt.repeat(`
13
+ `,u?1+a:a):i===Ys&&u&&(e.result+=`
14
+ `);break}for(n?er(l)?(c=!0,e.result+=zt.repeat(`
15
15
  `,u?1+a:a)):c?(c=!1,e.result+=zt.repeat(`
16
16
  `,a+1)):a===0?u&&(e.result+=" "):e.result+=zt.repeat(`
17
17
  `,a):e.result+=zt.repeat(`
18
- `,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!ft(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Pt(e,r,e.position,!1)}return!0}function Tp(e,t){var r,i=e.tag,n=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ue(s))));){if(o=!0,e.position++,xe(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Dr(e,t,Ip,!1,!0),u.push(e.result),xe(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)de(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=u,!0):!1}function N_(e,t,r){var i,n,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),d=null,m=null,g=null,_=!1,E=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),h=e.input.charCodeAt(e.position);h!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),u=e.line,(h===63||h===58)&&Ue(i))h===63?(_&&(br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!0,n=!0):_?(_=!1,n=!0):de(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,h=i;else{if(s=e.line,o=e.lineStart,a=e.position,!Dr(e,r,Lp,!1,!0))break;if(e.line===u){for(h=e.input.charCodeAt(e.position);er(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),Ue(h)||de(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!1,n=!1,d=e.tag,m=e.result;else if(E)de(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)de(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Dr(e,t,Xn,!0,n)&&(_?m=e.result:g=e.result),_||(br(e,l,f,d,m,g,s,o,a),d=m=g=null),xe(e,!0,-1),h=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&h!==0)de(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&br(e,l,f,d,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function B_(e){var t,r=!1,i=!1,n,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&de(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):de(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ue(s);)s===33&&(i?de(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Np.test(n)||de(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),x_.test(u)&&de(e,"tag suffix cannot contain flow indicator characters")}u&&!Bp.test(u)&&de(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{de(e,"tag name is malformed: "+u)}return r?e.tag=u:Lt.call(e.tagMap,n)?e.tag=e.tagMap[n]+u:n==="!"?e.tag="!"+u:n==="!!"?e.tag="tag:yaml.org,2002:"+u:de(e,'undeclared tag handle "'+n+'"'),!0}function M_(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&de(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ue(r)&&!Ar(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function j_(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Ue(i)&&!Ar(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Lt.call(e.anchorMap,r)||de(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],xe(e,!0,-1),!0}function Dr(e,t,r,i,n){var u,s,o,a=1,c=!1,p=!1,l,f,d,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=Xn===r||Ip===r,i&&xe(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;B_(e)||M_(e);)xe(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||n),(a===1||Xn===r)&&(Qn===r||Lp===r?g=t:g=t+1,_=e.position-e.lineStart,a===1?o&&(Tp(e,_)||N_(e,_,g))||L_(e,g)?p=!0:(s&&I_(e,g)||T_(e,g)||P_(e,g)?p=!0:j_(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&de(e,"alias node should not have any properties")):O_(e,g,Qn===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&Tp(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&de(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Lt.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||de(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&de(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):de(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function $_(e){var t=e.position,r,i,n,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(xe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&de(e,"directive name must not be less than one character in length");s!==0;){for(;er(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ft(s));break}if(ft(s))break;for(r=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&Hs(e),Lt.call(Rp,i)?Rp[i](e,i,n):Jn(e,'unknown document directive "'+i+'"')}if(xe(e,!0,-1),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,xe(e,!0,-1)):u&&de(e,"directives end mark is expected"),Dr(e,e.lineIndent-1,Xn,!1,!0),xe(e,!0,-1),e.checkLineBreaks&&D_.test(e.input.slice(t,e.position))&&Jn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Zn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,xe(e,!0,-1));return}if(e.position<e.length-1)de(e,"end of the stream or a document separator is expected");else return}function Hp(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new R_(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,de(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)$_(r);return r.documents}function H_(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Hp(e,r);if(typeof t!="function")return i;for(var n=0,u=i.length;n<u;n+=1)t(i[n])}function G_(e,t){var r=Hp(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Pp("expected a single document in the stream, but found more")}}qs.exports.loadAll=H_;qs.exports.load=G_});var lf=te((mT,cf)=>{"use strict";j();var ti=Er(),Zr=Sr(),q_=Vn(),Jp=Object.prototype.toString,Zp=Object.prototype.hasOwnProperty,Vs=65279,U_=9,Qr=10,W_=13,K_=32,Y_=33,V_=34,Us=35,Q_=37,X_=38,J_=39,Z_=42,zp=44,z_=45,zn=58,eE=61,tE=62,rE=63,nE=64,ef=91,tf=93,iE=96,rf=123,oE=124,nf=125,Ne={};Ne[0]="\\0";Ne[7]="\\a";Ne[8]="\\b";Ne[9]="\\t";Ne[10]="\\n";Ne[11]="\\v";Ne[12]="\\f";Ne[13]="\\r";Ne[27]="\\e";Ne[34]='\\"';Ne[92]="\\\\";Ne[133]="\\N";Ne[160]="\\_";Ne[8232]="\\L";Ne[8233]="\\P";var sE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],aE=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function uE(e,t){var r,i,n,u,s,o,a;if(t===null)return{};for(r={},i=Object.keys(t),n=0,u=i.length;n<u;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&Zp.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function cE(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Zr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ti.repeat("0",i-t.length)+t}var lE=1,Xr=2;function pE(e){this.schema=e.schema||q_,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ti.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=uE(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Xr:lE,this.forceQuotes=e.forceQuotes||!1,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 qp(e,t){for(var r=ti.repeat(" ",t),i=0,n=-1,u="",s,o=e.length;i<o;)n=e.indexOf(`
20
- `,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
21
- `&&(u+=r),u+=s;return u}function Ws(e,t){return`
22
- `+ti.repeat(" ",e.indent*t)}function fE(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function ei(e){return e===K_||e===U_}function Jr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Vs||65536<=e&&e<=1114111}function Up(e){return Jr(e)&&e!==Vs&&e!==W_&&e!==Qr}function Wp(e,t,r){var i=Up(e),n=i&&!ei(e);return(r?i:i&&e!==zp&&e!==ef&&e!==tf&&e!==rf&&e!==nf)&&e!==Us&&!(t===zn&&!n)||Up(t)&&!ei(t)&&e===Us||t===zn&&n}function dE(e){return Jr(e)&&e!==Vs&&!ei(e)&&e!==z_&&e!==rE&&e!==zn&&e!==zp&&e!==ef&&e!==tf&&e!==rf&&e!==nf&&e!==Us&&e!==X_&&e!==Z_&&e!==Y_&&e!==oE&&e!==eE&&e!==tE&&e!==J_&&e!==V_&&e!==Q_&&e!==nE&&e!==iE}function hE(e){return!ei(e)&&e!==zn}function Vr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function of(e){var t=/^\n* /;return t.test(e)}var sf=1,Ks=2,af=3,uf=4,xr=5;function mE(e,t,r,i,n,u,s,o){var a,c=0,p=null,l=!1,f=!1,d=i!==-1,m=-1,g=dE(Vr(e,0))&&hE(Vr(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Vr(e,a),!Jr(c))return xr;g=g&&Wp(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Vr(e,a),c===Qr)l=!0,d&&(f=f||a-m-1>i&&e[m+1]!==" ",m=a);else if(!Jr(c))return xr;g=g&&Wp(c,p,o),p=c}f=f||d&&a-m-1>i&&e[m+1]!==" "}return!l&&!f?g&&!s&&!n(e)?sf:u===Xr?xr:Ks:r>9&&of(e)?xr:s?u===Xr?xr:Ks:f?uf:af}function yE(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===Xr?'""':"''";if(!e.noCompatMode&&(sE.indexOf(t)!==-1||aE.test(t)))return e.quotingType===Xr?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return fE(e,c)}switch(mE(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!i,n)){case sf:return t;case Ks:return"'"+t.replace(/'/g,"''")+"'";case af:return"|"+Kp(t,e.indent)+Yp(qp(t,u));case uf:return">"+Kp(t,e.indent)+Yp(qp(gE(t,s),u));case xr:return'"'+vE(t,s)+'"';default:throw new Zr("impossible error: invalid scalar style")}}()}function Kp(e,t){var r=of(e)?String(t):"",i=e[e.length-1]===`
23
- `,n=i&&(e[e.length-2]===`
18
+ `,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!dt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Lt(e,r,e.position,!1)}return!0}function Gp(e,t){var r,n=e.tag,i=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ye(s))));){if(o=!0,e.position++,De(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,xr(e,t,Wp,!1,!0),u.push(e.result),De(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)de(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=u,!0):!1}function nE(e,t,r){var n,i,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),h=null,m=null,v=null,_=!1,E=!1,d;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),d=e.input.charCodeAt(e.position);d!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),u=e.line,(d===63||d===58)&&Ye(n))d===63?(_&&(br(e,l,f,h,m,null,s,o,a),h=m=v=null),E=!0,_=!0,i=!0):_?(_=!1,i=!0):de(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,d=n;else{if(s=e.line,o=e.lineStart,a=e.position,!xr(e,r,Up,!1,!0))break;if(e.line===u){for(d=e.input.charCodeAt(e.position);er(d);)d=e.input.charCodeAt(++e.position);if(d===58)d=e.input.charCodeAt(++e.position),Ye(d)||de(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(br(e,l,f,h,m,null,s,o,a),h=m=v=null),E=!0,_=!1,i=!1,h=e.tag,m=e.result;else if(E)de(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)de(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),xr(e,t,zn,!0,i)&&(_?m=e.result:v=e.result),_||(br(e,l,f,h,m,v,s,o,a),h=m=v=null),De(e,!0,-1),d=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&d!==0)de(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&br(e,l,f,h,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function iE(e){var t,r=!1,n=!1,i,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&de(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):de(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ye(s);)s===33&&(n?de(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Yp.test(i)||de(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),Y_.test(u)&&de(e,"tag suffix cannot contain flow indicator characters")}u&&!Kp.test(u)&&de(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{de(e,"tag name is malformed: "+u)}return r?e.tag=u:It.call(e.tagMap,i)?e.tag=e.tagMap[i]+u:i==="!"?e.tag="!"+u:i==="!!"?e.tag="tag:yaml.org,2002:"+u:de(e,'undeclared tag handle "'+i+'"'),!0}function oE(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&de(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ye(r)&&!Ar(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function sE(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ye(n)&&!Ar(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),It.call(e.anchorMap,r)||de(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],De(e,!0,-1),!0}function xr(e,t,r,n,i){var u,s,o,a=1,c=!1,p=!1,l,f,h,m,v,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=zn===r||Wp===r,n&&De(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;iE(e)||oE(e);)De(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||i),(a===1||zn===r)&&(Zn===r||Up===r?v=t:v=t+1,_=e.position-e.lineStart,a===1?o&&(Gp(e,_)||nE(e,_,v))||tE(e,v)?p=!0:(s&&rE(e,v)||z_(e,v)||eE(e,v)?p=!0:sE(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&de(e,"alias node should not have any properties")):Z_(e,v,Zn===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&Gp(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&de(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(It.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,h=e.typeMap.multi[e.kind||"fallback"],l=0,f=h.length;l<f;l+=1)if(e.tag.slice(0,h[l].tag.length)===h[l].tag){m=h[l];break}m||de(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&de(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):de(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function aE(e){var t=e.position,r,n,i,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(De(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ye(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&de(e,"directive name must not be less than one character in length");s!==0;){for(;er(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!dt(s));break}if(dt(s))break;for(r=e.position;s!==0&&!Ye(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Ks(e),It.call($p,n)?$p[n](e,n,i):ei(e,'unknown document directive "'+n+'"')}if(De(e,!0,-1),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,De(e,!0,-1)):u&&de(e,"directives end mark is expected"),xr(e,e.lineIndent-1,zn,!1,!0),De(e,!0,-1),e.checkLineBreaks&&W_.test(e.input.slice(t,e.position))&&ei(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ti(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,De(e,!0,-1));return}if(e.position<e.length-1)de(e,"end of the stream or a document separator is expected");else return}function Jp(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new J_(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,de(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)aE(r);return r.documents}function uE(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Jp(e,r);if(typeof t!="function")return n;for(var i=0,u=n.length;i<u;i+=1)t(n[i])}function cE(e,t){var r=Jp(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new qp("expected a single document in the stream, but found more")}}Qs.exports.loadAll=uE;Qs.exports.load=cE});var Ef=te((jT,_f)=>{"use strict";j();var ii=Er(),Zr=Sr(),lE=Jn(),uf=Object.prototype.toString,cf=Object.prototype.hasOwnProperty,ea=65279,pE=9,Qr=10,fE=13,dE=32,hE=33,mE=34,Xs=35,gE=37,yE=38,vE=39,_E=42,lf=44,EE=45,ri=58,SE=61,AE=62,bE=63,xE=64,pf=91,ff=93,DE=96,df=123,wE=124,hf=125,Be={};Be[0]="\\0";Be[7]="\\a";Be[8]="\\b";Be[9]="\\t";Be[10]="\\n";Be[11]="\\v";Be[12]="\\f";Be[13]="\\r";Be[27]="\\e";Be[34]='\\"';Be[92]="\\\\";Be[133]="\\N";Be[160]="\\_";Be[8232]="\\L";Be[8233]="\\P";var CE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kE=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function FE(e,t){var r,n,i,u,s,o,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,u=n.length;i<u;i+=1)s=n[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&cf.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function RE(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Zr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ii.repeat("0",n-t.length)+t}var OE=1,Xr=2;function TE(e){this.schema=e.schema||lE,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ii.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=FE(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Xr:OE,this.forceQuotes=e.forceQuotes||!1,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 zp(e,t){for(var r=ii.repeat(" ",t),n=0,i=-1,u="",s,o=e.length;n<o;)i=e.indexOf(`
20
+ `,n),i===-1?(s=e.slice(n),n=o):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
21
+ `&&(u+=r),u+=s;return u}function Js(e,t){return`
22
+ `+ii.repeat(" ",e.indent*t)}function PE(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function ni(e){return e===dE||e===pE}function Jr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ea||65536<=e&&e<=1114111}function ef(e){return Jr(e)&&e!==ea&&e!==fE&&e!==Qr}function tf(e,t,r){var n=ef(e),i=n&&!ni(e);return(r?n:n&&e!==lf&&e!==pf&&e!==ff&&e!==df&&e!==hf)&&e!==Xs&&!(t===ri&&!i)||ef(t)&&!ni(t)&&e===Xs||t===ri&&i}function LE(e){return Jr(e)&&e!==ea&&!ni(e)&&e!==EE&&e!==bE&&e!==ri&&e!==lf&&e!==pf&&e!==ff&&e!==df&&e!==hf&&e!==Xs&&e!==yE&&e!==_E&&e!==hE&&e!==wE&&e!==SE&&e!==AE&&e!==vE&&e!==mE&&e!==gE&&e!==xE&&e!==DE}function IE(e){return!ni(e)&&e!==ri}function Vr(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function mf(e){var t=/^\n* /;return t.test(e)}var gf=1,Zs=2,yf=3,vf=4,Dr=5;function NE(e,t,r,n,i,u,s,o){var a,c=0,p=null,l=!1,f=!1,h=n!==-1,m=-1,v=LE(Vr(e,0))&&IE(Vr(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Vr(e,a),!Jr(c))return Dr;v=v&&tf(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Vr(e,a),c===Qr)l=!0,h&&(f=f||a-m-1>n&&e[m+1]!==" ",m=a);else if(!Jr(c))return Dr;v=v&&tf(c,p,o),p=c}f=f||h&&a-m-1>n&&e[m+1]!==" "}return!l&&!f?v&&!s&&!i(e)?gf:u===Xr?Dr:Zs:r>9&&mf(e)?Dr:s?u===Xr?Dr:Zs:f?vf:yf}function BE(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Xr?'""':"''";if(!e.noCompatMode&&(CE.indexOf(t)!==-1||kE.test(t)))return e.quotingType===Xr?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=n||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return PE(e,c)}switch(NE(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!n,i)){case gf:return t;case Zs:return"'"+t.replace(/'/g,"''")+"'";case yf:return"|"+rf(t,e.indent)+nf(zp(t,u));case vf:return">"+rf(t,e.indent)+nf(zp(ME(t,s),u));case Dr:return'"'+jE(t,s)+'"';default:throw new Zr("impossible error: invalid scalar style")}}()}function rf(e,t){var r=mf(e)?String(t):"",n=e[e.length-1]===`
23
+ `,i=n&&(e[e.length-2]===`
24
24
  `||e===`
25
- `),u=n?"+":i?"":"-";return r+u+`
26
- `}function Yp(e){return e[e.length-1]===`
27
- `?e.slice(0,-1):e}function gE(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
28
- `);return c=c!==-1?c:e.length,r.lastIndex=c,Vp(e.slice(0,c),t)}(),n=e[0]===`
29
- `||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",i+=o+(!n&&!u&&a!==""?`
30
- `:"")+Vp(a,t),n=u}return i}function Vp(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,u,s=0,o=0,a="";i=r.exec(e);)o=i.index,o-n>t&&(u=s>n?s:o,a+=`
31
- `+e.slice(n,u),n=u+1),s=o;return a+=`
32
- `,e.length-n>t&&s>n?a+=e.slice(n,s)+`
33
- `+e.slice(s+1):a+=e.slice(n),a.slice(1)}function vE(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Vr(e,n),i=Ne[r],!i&&Jr(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||cE(r);return t}function _E(e,t,r){var i="",n=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(St(e,t,o,!1,!1)||typeof o>"u"&&St(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function Qp(e,t,r,i){var n="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(St(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&St(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Ws(e,t)),e.dump&&Qr===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=u,e.dump=n||"[]"}function EE(e,t,r){var i="",n=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",i!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),St(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),St(e,t,c,!1,!1)&&(p+=e.dump,i+=p));e.tag=n,e.dump="{"+i+"}"}function SE(e,t,r,i){var n="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zr("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!i||n!=="")&&(f+=Ws(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),St(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Qr===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=Ws(e,t)),St(e,t+1,p,!0,l)&&(e.dump&&Qr===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=u,e.dump=n||"{}"}function Xp(e,t,r){var i,n,u,s,o,a;for(n=r?e.explicitTypes:e.implicitTypes,u=0,s=n.length;u<s;u+=1)if(o=n[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,Jp.call(o.represent)==="[object Function]")i=o.represent(t,a);else if(Zp.call(o.represent,a))i=o.represent[a](t,a);else throw new Zr("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=i}return!0}return!1}function St(e,t,r,i,n,u,s){e.tag=null,e.dump=r,Xp(e,r,!1)||Xp(e,r,!0);var o=Jp.call(e.dump),a=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(SE(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(EE(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Qp(e,t-1,e.dump,n):Qp(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(_E(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&yE(e,e.dump,t,u,a);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zr("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function AE(e,t){var r=[],i=[],n,u;for(Ys(e,r,i),n=0,u=i.length;n<u;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(u)}function Ys(e,t,r){var i,n,u;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,u=e.length;n<u;n+=1)Ys(e[n],t,r);else for(i=Object.keys(e),n=0,u=i.length;n<u;n+=1)Ys(e[i[n]],t,r)}function bE(e,t){t=t||{};var r=new pE(t);r.noRefs||AE(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),St(r,0,i,!0,!0)?r.dump+`
34
- `:""}cf.exports.dump=bE});var ff=te((yT,He)=>{"use strict";j();var pf=Gp(),DE=lf();function Qs(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.")}}He.exports.Type=Ie();He.exports.Schema=As();He.exports.FAILSAFE_SCHEMA=ws();He.exports.JSON_SCHEMA=Os();He.exports.CORE_SCHEMA=Ts();He.exports.DEFAULT_SCHEMA=Vn();He.exports.load=pf.load;He.exports.loadAll=pf.loadAll;He.exports.dump=DE.dump;He.exports.YAMLException=Sr();He.exports.types={binary:Ns(),float:Rs(),map:xs(),null:Cs(),pairs:Ms(),set:js(),timestamp:Ps(),bool:ks(),int:Fs(),merge:Ls(),omap:Bs(),seq:Ds(),str:bs()};He.exports.safeLoad=Qs("safeLoad","load");He.exports.safeLoadAll=Qs("safeLoadAll","loadAll");He.exports.safeDump=Qs("safeDump","dump")});var wd=te((kT,xd)=>{"use strict";j();var xE=Object.create,fi=Object.defineProperty,wE=Object.getOwnPropertyDescriptor,CE=Object.getOwnPropertyNames,kE=Object.getPrototypeOf,FE=Object.prototype.hasOwnProperty,RE=(e,t)=>{for(var r in t)fi(e,r,{get:t[r],enumerable:!0})},Rf=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of CE(t))!FE.call(e,n)&&n!==r&&fi(e,n,{get:()=>t[n],enumerable:!(i=wE(t,n))||i.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?xE(kE(e)):{},Rf(t||!e||!e.__esModule?fi(r,"default",{value:e,enumerable:!0}):r,e)),OE=e=>Rf(fi({},"__esModule",{value:!0}),e),Of={};RE(Of,{ConvertError:()=>Ge,MANAGERS:()=>Rr,convert:()=>hx,getPackageManagerMeta:()=>bd,getWorkspaceDetails:()=>Sd,install:()=>Dd});xd.exports=OE(Of);var TE=Object.create,Tf=Object.defineProperty,PE=Object.getOwnPropertyDescriptor,LE=Object.getOwnPropertyNames,IE=Object.getPrototypeOf,NE=Object.prototype.hasOwnProperty,ue=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),BE=(e,t)=>()=>(e&&(t=e(e=0)),t),W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ME=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of LE(t))!NE.call(e,n)&&n!==r&&Tf(e,n,{get:()=>t[n],enumerable:!(i=PE(t,n))||i.enumerable});return e},an=(e,t,r)=>(r=e!=null?TE(IE(e)):{},ME(t||!e||!e.__esModule?Tf(r,"default",{value:e,enumerable:!0}):r,e)),G=BE(()=>{});G();var jE=W((e,t)=>{G();function r(i){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),$E=W((e,t)=>{G();var r=jE().default;function i(){"use strict";t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},u=Object.prototype,s=u.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(C,S,R){return Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{l({},"")}catch{l=function(C,S,R){return C[S]=R}}function f(C,S,R,L){var M=S&&S.prototype instanceof g?S:g,B=Object.create(M.prototype),Q=new w(L||[]);return B._invoke=function(Z,oe,N){var le="suspendedStart";return function(pe,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(pe==="throw")throw ne;return P()}for(N.method=pe,N.arg=ne;;){var T=N.delegate;if(T){var I=k(T,N);if(I){if(I===m)continue;return I}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(le==="suspendedStart")throw le="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);le="executing";var $=d(Z,oe,N);if($.type==="normal"){if(le=N.done?"completed":"suspendedYield",$.arg===m)continue;return{value:$.arg,done:N.done}}$.type==="throw"&&(le="completed",N.method="throw",N.arg=$.arg)}}}(C,R,Q),B}function d(C,S,R){try{return{type:"normal",arg:C.call(S,R)}}catch(L){return{type:"throw",arg:L}}}n.wrap=f;var m={};function g(){}function _(){}function E(){}var h={};l(h,a,function(){return this});var v=Object.getPrototypeOf,x=v&&v(v(O([])));x&&x!==u&&s.call(x,a)&&(h=x);var y=E.prototype=g.prototype=Object.create(h);function A(C){["next","throw","return"].forEach(function(S){l(C,S,function(R){return this._invoke(S,R)})})}function b(C,S){function R(M,B,Q,Z){var oe=d(C[M],C,B);if(oe.type!=="throw"){var N=oe.arg,le=N.value;return le&&r(le)=="object"&&s.call(le,"__await")?S.resolve(le.__await).then(function(pe){R("next",pe,Q,Z)},function(pe){R("throw",pe,Q,Z)}):S.resolve(le).then(function(pe){N.value=pe,Q(N)},function(pe){return R("throw",pe,Q,Z)})}Z(oe.arg)}var L;this._invoke=function(M,B){function Q(){return new S(function(Z,oe){R(M,B,Z,oe)})}return L=L?L.then(Q,Q):Q()}}function k(C,S){var R=C.iterator[S.method];if(R===void 0){if(S.delegate=null,S.method==="throw"){if(C.iterator.return&&(S.method="return",S.arg=void 0,k(C,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var L=d(R,C.iterator,S.arg);if(L.type==="throw")return S.method="throw",S.arg=L.arg,S.delegate=null,m;var M=L.arg;return M?M.done?(S[C.resultName]=M.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):M:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function D(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function F(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function w(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(D,this),this.reset(!0)}function O(C){if(C){var S=C[a];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var R=-1,L=function M(){for(;++R<C.length;)if(s.call(C,R))return M.value=C[R],M.done=!1,M;return M.value=void 0,M.done=!0,M};return L.next=L}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=E,l(y,"constructor",E),l(E,"constructor",_),_.displayName=l(E,p,"GeneratorFunction"),n.isGeneratorFunction=function(C){var S=typeof C=="function"&&C.constructor;return!!S&&(S===_||(S.displayName||S.name)==="GeneratorFunction")},n.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,E):(C.__proto__=E,l(C,p,"GeneratorFunction")),C.prototype=Object.create(y),C},n.awrap=function(C){return{__await:C}},A(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(C,S,R,L,M){M===void 0&&(M=Promise);var B=new b(f(C,S,R,L),M);return n.isGeneratorFunction(S)?B:B.next().then(function(Q){return Q.done?Q.value:B.next()})},A(y),l(y,p,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),n.keys=function(C){var S=[];for(var R in C)S.push(R);return S.reverse(),function L(){for(;S.length;){var M=S.pop();if(M in C)return L.value=M,L.done=!1,L}return L.done=!0,L}},n.values=O,w.prototype={constructor:w,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var S=this;function R(oe,N){return B.type="throw",B.arg=C,S.next=oe,N&&(S.method="next",S.arg=void 0),!!N}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],B=M.completion;if(M.tryLoc==="root")return R("end");if(M.tryLoc<=this.prev){var Q=s.call(M,"catchLoc"),Z=s.call(M,"finallyLoc");if(Q&&Z){if(this.prev<M.catchLoc)return R(M.catchLoc,!0);if(this.prev<M.finallyLoc)return R(M.finallyLoc)}else if(Q){if(this.prev<M.catchLoc)return R(M.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return R(M.finallyLoc)}}}},abrupt:function(C,S){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=S&&S<=M.finallyLoc&&(M=null);var B=M?M.completion:{};return B.type=C,B.arg=S,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(B)},complete:function(C,S){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&S&&(this.next=S),m},finish:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.finallyLoc===C)return this.complete(R.completion,R.afterLoc),F(R),m}},catch:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.tryLoc===C){var L=R.completion;if(L.type==="throw"){var M=L.arg;F(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,S,R){return this.delegate={iterator:O(C),resultName:S,nextLoc:R},this.method==="next"&&(this.arg=void 0),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}),HE=W((e,t)=>{G();var r=$E()();t.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),GE=W((e,t)=>{"use strict";G();var r=(i,...n)=>new Promise(u=>{u(i(...n))});t.exports=r,t.exports.default=r}),qE=W((e,t)=>{"use strict";G();var r=GE(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let u=[],s=0,o=()=>{s--,u.length>0&&u.shift()()},a=(l,f,...d)=>{s++;let m=r(l,...d);f(m),m.then(o,o)},c=(l,f,...d)=>{s<n?a(l,f,...d):u.push(a.bind(null,l,f,...d))},p=(l,...f)=>new Promise(d=>c(l,d,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>u.length},clearQueue:{value:()=>{u.length=0}}}),p};t.exports=i,t.exports.default=i}),UE=W((e,t)=>{"use strict";G();var r=qE(),i=class extends Error{constructor(o){super(),this.value=o}},n=async(o,a)=>a(await o),u=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new i(a[0]);return!1},s=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(d=>[d,p(n,d,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>f(u,d)))}catch(d){if(d instanceof i)return d.value;throw d}};t.exports=s,t.exports.default=s}),WE=W((e,t)=>{"use strict";G();var r=ue("path"),i=ue("fs"),{promisify:n}=ue("util"),u=UE(),s=n(i.stat),o=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();t.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?s:o;return u(l,async m=>{try{let g=await d(r.resolve(f.cwd,m));return p(f.type,g)}catch{return!1}},f)},t.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of l)try{let g=d(r.resolve(f.cwd,m));if(p(f.type,g))return m}catch{}}}),KE=W((e,t)=>{"use strict";G();var r=ue("fs"),{promisify:i}=ue("util"),n=i(r.access);t.exports=async u=>{try{return await n(u),!0}catch{return!1}},t.exports.sync=u=>{try{return r.accessSync(u),!0}catch{return!1}}}),YE=W((e,t)=>{"use strict";G();var r=ue("path"),i=WE(),n=KE(),u=Symbol("findUp.stop");t.exports=async(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let d=await s(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.sync=(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let d=s(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.exists=n,t.exports.sync.exists=n.sync,t.exports.stop=u}),Je=W(e=>{"use strict";G(),e.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,u)=>{if(n)return i(n);r(u)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return t.apply(this,arguments);t.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:t.name})}}),VE=W((e,t)=>{G();var r=ue("constants"),i=process.cwd,n=null,u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(a){n=null,s.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;t.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=d(a.chown),a.fchown=d(a.fchown),a.lchown=d(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=g(a.stat),a.fstat=g(a.fstat),a.lstat=g(a.lstat),a.statSync=_(a.statSync),a.fstatSync=_(a.fstatSync),a.lstatSync=_(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(h,v,x){x&&process.nextTick(x)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(h,v,x,y){y&&process.nextTick(y)},a.lchownSync=function(){}),u==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(h){function v(x,y,A){var b=Date.now(),k=0;h(x,y,function D(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){a.stat(y,function(w,O){w&&w.code==="ENOENT"?h(x,y,D):A(F)})},k),k<100&&(k+=10);return}A&&A(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.rename)),a.read=typeof a.read!="function"?a.read:function(h){function v(x,y,A,b,k,D){var F;if(D&&typeof D=="function"){var w=0;F=function(O,P,C){if(O&&O.code==="EAGAIN"&&w<10)return w++,h.call(a,x,y,A,b,k,F);D.apply(this,arguments)}}return h.call(a,x,y,A,b,k,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(h){return function(v,x,y,A,b){for(var k=0;;)try{return h.call(a,v,x,y,A,b)}catch(D){if(D.code==="EAGAIN"&&k<10){k++;continue}throw D}}}(a.readSync);function c(h){h.lchmod=function(v,x,y){h.open(v,r.O_WRONLY|r.O_SYMLINK,x,function(A,b){if(A){y&&y(A);return}h.fchmod(b,x,function(k){h.close(b,function(D){y&&y(k||D)})})})},h.lchmodSync=function(v,x){var y=h.openSync(v,r.O_WRONLY|r.O_SYMLINK,x),A=!0,b;try{b=h.fchmodSync(y,x),A=!1}finally{if(A)try{h.closeSync(y)}catch{}else h.closeSync(y)}return b}}function p(h){r.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(v,x,y,A){h.open(v,r.O_SYMLINK,function(b,k){if(b){A&&A(b);return}h.futimes(k,x,y,function(D){h.close(k,function(F){A&&A(D||F)})})})},h.lutimesSync=function(v,x,y){var A=h.openSync(v,r.O_SYMLINK),b,k=!0;try{b=h.futimesSync(A,x,y),k=!1}finally{if(k)try{h.closeSync(A)}catch{}else h.closeSync(A)}return b}):h.futimes&&(h.lutimes=function(v,x,y,A){A&&process.nextTick(A)},h.lutimesSync=function(){})}function l(h){return h&&function(v,x,y){return h.call(a,v,x,function(A){E(A)&&(A=null),y&&y.apply(this,arguments)})}}function f(h){return h&&function(v,x){try{return h.call(a,v,x)}catch(y){if(!E(y))throw y}}}function d(h){return h&&function(v,x,y,A){return h.call(a,v,x,y,function(b){E(b)&&(b=null),A&&A.apply(this,arguments)})}}function m(h){return h&&function(v,x,y){try{return h.call(a,v,x,y)}catch(A){if(!E(A))throw A}}}function g(h){return h&&function(v,x,y){typeof x=="function"&&(y=x,x=null);function A(b,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),y&&y.apply(this,arguments)}return x?h.call(a,v,x,A):h.call(a,v,A)}}function _(h){return h&&function(v,x){var y=x?h.call(a,v,x):h.call(a,v);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function E(h){if(!h||h.code==="ENOSYS")return!0;var v=!process.getuid||process.getuid()!==0;return!!(v&&(h.code==="EINVAL"||h.code==="EPERM"))}}}),QE=W((e,t)=>{G();var r=ue("stream").Stream;t.exports=i;function i(n){return{ReadStream:u,WriteStream:s};function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var d=p[l];this[d]=a[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}n.open(this.path,this.flags,this.mode,function(m,g){if(m){c.emit("error",m),c.readable=!1;return}c.fd=g,c.emit("open",g),c._read()})}function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),XE=W((e,t)=>{"use strict";G(),t.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var u={__proto__:r(n)};else var u=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(n,s))}),u}}),Re=W((e,t)=>{G();var r=ue("fs"),i=VE(),n=QE(),u=XE(),s=ue("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(h,v){Object.defineProperty(h,o,{get:function(){return v}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var h=s.format.apply(s,arguments);h="GFS4: "+h.split(/\n/).join(`
35
- GFS4: `),console.error(h)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(h){function v(x,y){return h.call(r,x,function(A){A||_(),typeof y=="function"&&y.apply(this,arguments)})}return Object.defineProperty(v,a,{value:h}),v}(r.close),r.closeSync=function(h){function v(x){h.apply(r,arguments),_()}return Object.defineProperty(v,a,{value:h}),v}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),ue("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),t.exports=d(u(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=d(r),r.__patched=!0);function d(h){i(h),h.gracefulify=d,h.createReadStream=N,h.createWriteStream=le;var v=h.readFile;h.readFile=x;function x(T,I,$){return typeof I=="function"&&($=I,I=null),K(T,I,$);function K(Y,z,X,ee){return v(Y,z,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?m([K,[Y,z,X],ie,ee||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var y=h.writeFile;h.writeFile=A;function A(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return y(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var b=h.appendFile;b&&(h.appendFile=k);function k(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return b(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var D=h.copyFile;D&&(h.copyFile=F);function F(T,I,$,K){return typeof $=="function"&&(K=$,$=0),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return D(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var w=h.readdir;h.readdir=P;var O=/^v[0-5]\./;function P(T,I,$){typeof I=="function"&&($=I,I=null);var K=O.test(process.version)?function(z,X,ee,ie){return w(z,Y(z,X,ee,ie))}:function(z,X,ee,ie){return w(z,X,Y(z,X,ee,ie))};return K(T,I,$);function Y(z,X,ee,ie){return function(ye,se){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?m([K,[z,X,ee],ye,ie||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof ee=="function"&&ee.call(this,ye,se))}}}if(process.version.substr(0,4)==="v0.8"){var C=n(h);B=C.ReadStream,Z=C.WriteStream}var S=h.ReadStream;S&&(B.prototype=Object.create(S.prototype),B.prototype.open=Q);var R=h.WriteStream;R&&(Z.prototype=Object.create(R.prototype),Z.prototype.open=oe),Object.defineProperty(h,"ReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0}),Object.defineProperty(h,"WriteStream",{get:function(){return Z},set:function(T){Z=T},enumerable:!0,configurable:!0});var L=B;Object.defineProperty(h,"FileReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0});var M=Z;Object.defineProperty(h,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function B(T,I){return this instanceof B?(S.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function Q(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.autoClose&&T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$),T.read())})}function Z(T,I){return this instanceof Z?(R.apply(this,arguments),this):Z.apply(Object.create(Z.prototype),arguments)}function oe(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$))})}function N(T,I){return new h.ReadStream(T,I)}function le(T,I){return new h.WriteStream(T,I)}var pe=h.open;h.open=ne;function ne(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return pe(z,X,ee,function(se,re){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return h}function m(h){l("ENQUEUE",h[0].name,h[1]),r[o].push(h),E()}var g;function _(){for(var h=Date.now(),v=0;v<r[o].length;++v)r[o][v].length>2&&(r[o][v][3]=h,r[o][v][4]=h);E()}function E(){if(clearTimeout(g),g=void 0,r[o].length!==0){var h=r[o].shift(),v=h[0],x=h[1],y=h[2],A=h[3],b=h[4];if(A===void 0)l("RETRY",v.name,x),v.apply(null,x);else if(Date.now()-A>=6e4){l("TIMEOUT",v.name,x);var k=x.pop();typeof k=="function"&&k.call(null,y)}else{var D=Date.now()-b,F=Math.max(b-A,1),w=Math.min(F*1.2,100);D>=w?(l("RETRY",v.name,x),v.apply(null,x.concat([A]))):r[o].push(h)}g===void 0&&(g=setTimeout(E,0))}}}),Pf=W(e=>{"use strict";G();var t=Je().fromCallback,r=Re(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(e[n]=r[n])}),i.forEach(n=>{e[n]=t(r[n])}),e.exists=function(n,u){return typeof u=="function"?r.exists(n,u):new Promise(s=>r.exists(n,s))},e.read=function(n,u,s,o,a,c){return typeof c=="function"?r.read(n,u,s,o,a,c):new Promise((p,l)=>{r.read(n,u,s,o,a,(f,d,m)=>{if(f)return l(f);p({bytesRead:d,buffer:m})})})},e.write=function(n,u,...s){return typeof s[s.length-1]=="function"?r.write(n,u,...s):new Promise((o,a)=>{r.write(n,u,...s,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(e.realpath.native=t(r.realpath.native))}),Lf=W((e,t)=>{"use strict";G();var r=ue("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function u(s){let o=i(s);return s=s.replace(o,""),n.test(s)}t.exports={getRootPath:i,invalidWin32Path:u}}),JE=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Lf().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&n(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",c(d)}let l=a.mode,f=a.fs||r;l===void 0&&(l=u&~process.umask()),p||(p=null),c=c||function(){},o=i.resolve(o),f.mkdir(o,l,d=>{if(!d)return p=p||o,c(null,p);switch(d.code){case"ENOENT":if(i.dirname(o)===o)return c(d);s(i.dirname(o),a,(m,g)=>{m?c(m,g):s(o,a,c,g)});break;default:f.stat(o,(m,g)=>{m||!g.isDirectory()?c(d,p):c(null,p)});break}})}t.exports=s}),ZE=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Lf().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&n(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=u&~process.umask()),c||(c=null),o=i.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(i.dirname(o)===o)throw f;c=s(i.dirname(o),a,c),s(o,a,c)}else{let d;try{d=l.statSync(o)}catch{throw f}if(!d.isDirectory())throw f}}return c}t.exports=s}),it=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=r(JE()),n=ZE();t.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),If=W((e,t)=>{"use strict";G();var r=Re(),i=ue("os"),n=ue("path");function u(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return p(d);r.open(l,"r+",(m,g)=>{if(m)return p(m);r.futimes(g,f,f,_=>{if(_)return p(_);r.close(g,E=>{if(E)return p(E);r.stat(l,(h,v)=>{if(h)return p(h);p(null,v.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,d){r.open(p,"r+",(m,g)=>{if(m)return d(m);r.futimes(g,l,f,_=>{r.close(g,E=>{d&&d(_||E)})})})}function c(p,l,f){let d=r.openSync(p,"r+");return r.futimesSync(d,l,f),r.closeSync(d)}t.exports={hasMillisRes:s,hasMillisResSync:u,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),di=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=10,u=5,s=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>n||a===n&&(c>u||c===u&&p>=s)}function f(x,y,A){l()?r.stat(x,{bigint:!0},(b,k)=>{if(b)return A(b);r.stat(y,{bigint:!0},(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))}):r.stat(x,(b,k)=>{if(b)return A(b);r.stat(y,(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))})}function d(x,y){let A,b;l()?A=r.statSync(x,{bigint:!0}):A=r.statSync(x);try{l()?b=r.statSync(y,{bigint:!0}):b=r.statSync(y)}catch(k){if(k.code==="ENOENT")return{srcStat:A,destStat:null};throw k}return{srcStat:A,destStat:b}}function m(x,y,A,b){f(x,y,(k,D)=>{if(k)return b(k);let{srcStat:F,destStat:w}=D;return w&&w.ino&&w.dev&&w.ino===F.ino&&w.dev===F.dev?b(new Error("Source and destination must not be the same.")):F.isDirectory()&&h(x,y)?b(new Error(v(x,y,A))):b(null,{srcStat:F,destStat:w})})}function g(x,y,A){let{srcStat:b,destStat:k}=d(x,y);if(k&&k.ino&&k.dev&&k.ino===b.ino&&k.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&h(x,y))throw new Error(v(x,y,A));return{srcStat:b,destStat:k}}function _(x,y,A,b,k){let D=i.resolve(i.dirname(x)),F=i.resolve(i.dirname(A));if(F===D||F===i.parse(F).root)return k();l()?r.stat(F,{bigint:!0},(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k)):r.stat(F,(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k))}function E(x,y,A,b){let k=i.resolve(i.dirname(x)),D=i.resolve(i.dirname(A));if(D===k||D===i.parse(D).root)return;let F;try{l()?F=r.statSync(D,{bigint:!0}):F=r.statSync(D)}catch(w){if(w.code==="ENOENT")return;throw w}if(F.ino&&F.dev&&F.ino===y.ino&&F.dev===y.dev)throw new Error(v(x,A,b));return E(x,y,D,b)}function h(x,y){let A=i.resolve(x).split(i.sep).filter(k=>k),b=i.resolve(y).split(i.sep).filter(k=>k);return A.reduce((k,D,F)=>k&&b[F]===D,!0)}function v(x,y,A){return`Cannot ${A} '${x}' to a subdirectory of itself, '${y}'.`}t.exports={checkPaths:m,checkPathsSync:g,checkParentPaths:_,checkParentPathsSync:E,isSrcSubdir:h}}),zE=W((e,t)=>{"use strict";G(),t.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),eS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=it().mkdirsSync,u=If().utimesMillisSync,s=di();function o(y,A,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
25
+ `),u=i?"+":n?"":"-";return r+u+`
26
+ `}function nf(e){return e[e.length-1]===`
27
+ `?e.slice(0,-1):e}function ME(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
28
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,of(e.slice(0,c),t)}(),i=e[0]===`
29
+ `||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",n+=o+(!i&&!u&&a!==""?`
30
+ `:"")+of(a,t),i=u}return n}function of(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,u,s=0,o=0,a="";n=r.exec(e);)o=n.index,o-i>t&&(u=s>i?s:o,a+=`
31
+ `+e.slice(i,u),i=u+1),s=o;return a+=`
32
+ `,e.length-i>t&&s>i?a+=e.slice(i,s)+`
33
+ `+e.slice(s+1):a+=e.slice(i),a.slice(1)}function jE(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Vr(e,i),n=Be[r],!n&&Jr(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||RE(r);return t}function $E(e,t,r){var n="",i=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(At(e,t,o,!1,!1)||typeof o>"u"&&At(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function sf(e,t,r,n){var i="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(At(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&At(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Js(e,t)),e.dump&&Qr===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=u,e.dump=i||"[]"}function HE(e,t,r){var n="",i=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",n!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),At(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),At(e,t,c,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}function GE(e,t,r,n){var i="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zr("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!n||i!=="")&&(f+=Js(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),At(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Qr===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=Js(e,t)),At(e,t+1,p,!0,l)&&(e.dump&&Qr===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=u,e.dump=i||"{}"}function af(e,t,r){var n,i,u,s,o,a;for(i=r?e.explicitTypes:e.implicitTypes,u=0,s=i.length;u<s;u+=1)if(o=i[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,uf.call(o.represent)==="[object Function]")n=o.represent(t,a);else if(cf.call(o.represent,a))n=o.represent[a](t,a);else throw new Zr("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function At(e,t,r,n,i,u,s){e.tag=null,e.dump=r,af(e,r,!1)||af(e,r,!0);var o=uf.call(e.dump),a=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(GE(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(HE(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?sf(e,t-1,e.dump,i):sf(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):($E(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&BE(e,e.dump,t,u,a);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zr("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function qE(e,t){var r=[],n=[],i,u;for(zs(e,r,n),i=0,u=n.length;i<u;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(u)}function zs(e,t,r){var n,i,u;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,u=e.length;i<u;i+=1)zs(e[i],t,r);else for(n=Object.keys(e),i=0,u=n.length;i<u;i+=1)zs(e[n[i]],t,r)}function UE(e,t){t=t||{};var r=new TE(t);r.noRefs||qE(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),At(r,0,n,!0,!0)?r.dump+`
34
+ `:""}_f.exports.dump=UE});var Af=te(($T,Ge)=>{"use strict";j();var Sf=Zp(),WE=Ef();function ta(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.")}}Ge.exports.Type=Ne();Ge.exports.Schema=ks();Ge.exports.FAILSAFE_SCHEMA=Ts();Ge.exports.JSON_SCHEMA=Bs();Ge.exports.CORE_SCHEMA=Ms();Ge.exports.DEFAULT_SCHEMA=Jn();Ge.exports.load=Sf.load;Ge.exports.loadAll=Sf.loadAll;Ge.exports.dump=WE.dump;Ge.exports.YAMLException=Sr();Ge.exports.types={binary:Gs(),float:Ns(),map:Os(),null:Ps(),pairs:Us(),set:Ws(),timestamp:js(),bool:Ls(),int:Is(),merge:$s(),omap:qs(),seq:Rs(),str:Fs()};Ge.exports.safeLoad=ta("safeLoad","load");Ge.exports.safeLoadAll=ta("safeLoadAll","loadAll");Ge.exports.safeDump=ta("safeDump","dump")});var Fa=te((ZT,Id)=>{"use strict";j();var YE=Object.create,mi=Object.defineProperty,KE=Object.getOwnPropertyDescriptor,VE=Object.getOwnPropertyNames,QE=Object.getPrototypeOf,XE=Object.prototype.hasOwnProperty,JE=(e,t)=>{for(var r in t)mi(e,r,{get:t[r],enumerable:!0})},$f=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of VE(t))!XE.call(e,i)&&i!==r&&mi(e,i,{get:()=>t[i],enumerable:!(n=KE(t,i))||n.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?YE(QE(e)):{},$f(t||!e||!e.__esModule?mi(r,"default",{value:e,enumerable:!0}):r,e)),ZE=e=>$f(mi({},"__esModule",{value:!0}),e),Hf={};JE(Hf,{ConvertError:()=>qe,MANAGERS:()=>Rr,convert:()=>ID,getPackageManagerMeta:()=>Pd,getWorkspaceDetails:()=>Od,install:()=>Ld});Id.exports=ZE(Hf);var zE=Object.create,Gf=Object.defineProperty,eS=Object.getOwnPropertyDescriptor,tS=Object.getOwnPropertyNames,rS=Object.getPrototypeOf,nS=Object.prototype.hasOwnProperty,ue=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),iS=(e,t)=>()=>(e&&(t=e(e=0)),t),W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tS(t))!nS.call(e,i)&&i!==r&&Gf(e,i,{get:()=>t[i],enumerable:!(n=eS(t,i))||n.enumerable});return e},an=(e,t,r)=>(r=e!=null?zE(rS(e)):{},oS(t||!e||!e.__esModule?Gf(r,"default",{value:e,enumerable:!0}):r,e)),G=iS(()=>{});G();var sS=W((e,t)=>{G();function r(n){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),aS=W((e,t)=>{G();var r=sS().default;function n(){"use strict";t.exports=n=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var i={},u=Object.prototype,s=u.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(C,S,R){return Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{l({},"")}catch{l=function(C,S,R){return C[S]=R}}function f(C,S,R,L){var M=S&&S.prototype instanceof v?S:v,B=Object.create(M.prototype),Q=new w(L||[]);return B._invoke=function(Z,oe,N){var le="suspendedStart";return function(pe,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(pe==="throw")throw ne;return P()}for(N.method=pe,N.arg=ne;;){var T=N.delegate;if(T){var I=k(T,N);if(I){if(I===m)continue;return I}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(le==="suspendedStart")throw le="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);le="executing";var $=h(Z,oe,N);if($.type==="normal"){if(le=N.done?"completed":"suspendedYield",$.arg===m)continue;return{value:$.arg,done:N.done}}$.type==="throw"&&(le="completed",N.method="throw",N.arg=$.arg)}}}(C,R,Q),B}function h(C,S,R){try{return{type:"normal",arg:C.call(S,R)}}catch(L){return{type:"throw",arg:L}}}i.wrap=f;var m={};function v(){}function _(){}function E(){}var d={};l(d,a,function(){return this});var y=Object.getPrototypeOf,D=y&&y(y(O([])));D&&D!==u&&s.call(D,a)&&(d=D);var g=E.prototype=v.prototype=Object.create(d);function A(C){["next","throw","return"].forEach(function(S){l(C,S,function(R){return this._invoke(S,R)})})}function b(C,S){function R(M,B,Q,Z){var oe=h(C[M],C,B);if(oe.type!=="throw"){var N=oe.arg,le=N.value;return le&&r(le)=="object"&&s.call(le,"__await")?S.resolve(le.__await).then(function(pe){R("next",pe,Q,Z)},function(pe){R("throw",pe,Q,Z)}):S.resolve(le).then(function(pe){N.value=pe,Q(N)},function(pe){return R("throw",pe,Q,Z)})}Z(oe.arg)}var L;this._invoke=function(M,B){function Q(){return new S(function(Z,oe){R(M,B,Z,oe)})}return L=L?L.then(Q,Q):Q()}}function k(C,S){var R=C.iterator[S.method];if(R===void 0){if(S.delegate=null,S.method==="throw"){if(C.iterator.return&&(S.method="return",S.arg=void 0,k(C,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var L=h(R,C.iterator,S.arg);if(L.type==="throw")return S.method="throw",S.arg=L.arg,S.delegate=null,m;var M=L.arg;return M?M.done?(S[C.resultName]=M.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):M:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function x(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function F(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function w(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(x,this),this.reset(!0)}function O(C){if(C){var S=C[a];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var R=-1,L=function M(){for(;++R<C.length;)if(s.call(C,R))return M.value=C[R],M.done=!1,M;return M.value=void 0,M.done=!0,M};return L.next=L}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=E,l(g,"constructor",E),l(E,"constructor",_),_.displayName=l(E,p,"GeneratorFunction"),i.isGeneratorFunction=function(C){var S=typeof C=="function"&&C.constructor;return!!S&&(S===_||(S.displayName||S.name)==="GeneratorFunction")},i.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,E):(C.__proto__=E,l(C,p,"GeneratorFunction")),C.prototype=Object.create(g),C},i.awrap=function(C){return{__await:C}},A(b.prototype),l(b.prototype,c,function(){return this}),i.AsyncIterator=b,i.async=function(C,S,R,L,M){M===void 0&&(M=Promise);var B=new b(f(C,S,R,L),M);return i.isGeneratorFunction(S)?B:B.next().then(function(Q){return Q.done?Q.value:B.next()})},A(g),l(g,p,"Generator"),l(g,a,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),i.keys=function(C){var S=[];for(var R in C)S.push(R);return S.reverse(),function L(){for(;S.length;){var M=S.pop();if(M in C)return L.value=M,L.done=!1,L}return L.done=!0,L}},i.values=O,w.prototype={constructor:w,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var S=this;function R(oe,N){return B.type="throw",B.arg=C,S.next=oe,N&&(S.method="next",S.arg=void 0),!!N}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],B=M.completion;if(M.tryLoc==="root")return R("end");if(M.tryLoc<=this.prev){var Q=s.call(M,"catchLoc"),Z=s.call(M,"finallyLoc");if(Q&&Z){if(this.prev<M.catchLoc)return R(M.catchLoc,!0);if(this.prev<M.finallyLoc)return R(M.finallyLoc)}else if(Q){if(this.prev<M.catchLoc)return R(M.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return R(M.finallyLoc)}}}},abrupt:function(C,S){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=S&&S<=M.finallyLoc&&(M=null);var B=M?M.completion:{};return B.type=C,B.arg=S,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(B)},complete:function(C,S){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&S&&(this.next=S),m},finish:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.finallyLoc===C)return this.complete(R.completion,R.afterLoc),F(R),m}},catch:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.tryLoc===C){var L=R.completion;if(L.type==="throw"){var M=L.arg;F(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,S,R){return this.delegate={iterator:O(C),resultName:S,nextLoc:R},this.method==="next"&&(this.arg=void 0),m}},i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}),uS=W((e,t)=>{G();var r=aS()();t.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),cS=W((e,t)=>{"use strict";G();var r=(n,...i)=>new Promise(u=>{u(n(...i))});t.exports=r,t.exports.default=r}),lS=W((e,t)=>{"use strict";G();var r=cS(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let u=[],s=0,o=()=>{s--,u.length>0&&u.shift()()},a=(l,f,...h)=>{s++;let m=r(l,...h);f(m),m.then(o,o)},c=(l,f,...h)=>{s<i?a(l,f,...h):u.push(a.bind(null,l,f,...h))},p=(l,...f)=>new Promise(h=>c(l,h,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>u.length},clearQueue:{value:()=>{u.length=0}}}),p};t.exports=n,t.exports.default=n}),pS=W((e,t)=>{"use strict";G();var r=lS(),n=class extends Error{constructor(o){super(),this.value=o}},i=async(o,a)=>a(await o),u=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new n(a[0]);return!1},s=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(h=>[h,p(i,h,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(h=>f(u,h)))}catch(h){if(h instanceof n)return h.value;throw h}};t.exports=s,t.exports.default=s}),fS=W((e,t)=>{"use strict";G();var r=ue("path"),n=ue("fs"),{promisify:i}=ue("util"),u=pS(),s=i(n.stat),o=i(n.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();t.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let h=f.allowSymlinks?s:o;return u(l,async m=>{try{let v=await h(r.resolve(f.cwd,m));return p(f.type,v)}catch{return!1}},f)},t.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let h=f.allowSymlinks?n.statSync:n.lstatSync;for(let m of l)try{let v=h(r.resolve(f.cwd,m));if(p(f.type,v))return m}catch{}}}),dS=W((e,t)=>{"use strict";G();var r=ue("fs"),{promisify:n}=ue("util"),i=n(r.access);t.exports=async u=>{try{return await i(u),!0}catch{return!1}},t.exports.sync=u=>{try{return r.accessSync(u),!0}catch{return!1}}}),hS=W((e,t)=>{"use strict";G();var r=ue("path"),n=fS(),i=dS(),u=Symbol("findUp.stop");t.exports=async(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=async f=>{if(typeof s!="function")return n(p,f);let h=await s(f.cwd);return typeof h=="string"?n([h],f):h};for(;;){let f=await l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.sync=(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=f=>{if(typeof s!="function")return n.sync(p,f);let h=s(f.cwd);return typeof h=="string"?n.sync([h],f):h};for(;;){let f=l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.exists=i,t.exports.sync.exists=i.sync,t.exports.stop=u}),ze=W(e=>{"use strict";G(),e.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((r,n)=>{arguments[arguments.length]=(i,u)=>{if(i)return n(i);r(u)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return t.apply(this,arguments);t.apply(this,arguments).then(n=>r(null,n),r)},"name",{value:t.name})}}),mS=W((e,t)=>{G();var r=ue("constants"),n=process.cwd,i=null,u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(a){i=null,s.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;t.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=h(a.chown),a.fchown=h(a.fchown),a.lchown=h(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=v(a.stat),a.fstat=v(a.fstat),a.lstat=v(a.lstat),a.statSync=_(a.statSync),a.fstatSync=_(a.fstatSync),a.lstatSync=_(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(d,y,D){D&&process.nextTick(D)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(d,y,D,g){g&&process.nextTick(g)},a.lchownSync=function(){}),u==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(d){function y(D,g,A){var b=Date.now(),k=0;d(D,g,function x(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){a.stat(g,function(w,O){w&&w.code==="ENOENT"?d(D,g,x):A(F)})},k),k<100&&(k+=10);return}A&&A(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(a.rename)),a.read=typeof a.read!="function"?a.read:function(d){function y(D,g,A,b,k,x){var F;if(x&&typeof x=="function"){var w=0;F=function(O,P,C){if(O&&O.code==="EAGAIN"&&w<10)return w++,d.call(a,D,g,A,b,k,F);x.apply(this,arguments)}}return d.call(a,D,g,A,b,k,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(d){return function(y,D,g,A,b){for(var k=0;;)try{return d.call(a,y,D,g,A,b)}catch(x){if(x.code==="EAGAIN"&&k<10){k++;continue}throw x}}}(a.readSync);function c(d){d.lchmod=function(y,D,g){d.open(y,r.O_WRONLY|r.O_SYMLINK,D,function(A,b){if(A){g&&g(A);return}d.fchmod(b,D,function(k){d.close(b,function(x){g&&g(k||x)})})})},d.lchmodSync=function(y,D){var g=d.openSync(y,r.O_WRONLY|r.O_SYMLINK,D),A=!0,b;try{b=d.fchmodSync(g,D),A=!1}finally{if(A)try{d.closeSync(g)}catch{}else d.closeSync(g)}return b}}function p(d){r.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(y,D,g,A){d.open(y,r.O_SYMLINK,function(b,k){if(b){A&&A(b);return}d.futimes(k,D,g,function(x){d.close(k,function(F){A&&A(x||F)})})})},d.lutimesSync=function(y,D,g){var A=d.openSync(y,r.O_SYMLINK),b,k=!0;try{b=d.futimesSync(A,D,g),k=!1}finally{if(k)try{d.closeSync(A)}catch{}else d.closeSync(A)}return b}):d.futimes&&(d.lutimes=function(y,D,g,A){A&&process.nextTick(A)},d.lutimesSync=function(){})}function l(d){return d&&function(y,D,g){return d.call(a,y,D,function(A){E(A)&&(A=null),g&&g.apply(this,arguments)})}}function f(d){return d&&function(y,D){try{return d.call(a,y,D)}catch(g){if(!E(g))throw g}}}function h(d){return d&&function(y,D,g,A){return d.call(a,y,D,g,function(b){E(b)&&(b=null),A&&A.apply(this,arguments)})}}function m(d){return d&&function(y,D,g){try{return d.call(a,y,D,g)}catch(A){if(!E(A))throw A}}}function v(d){return d&&function(y,D,g){typeof D=="function"&&(g=D,D=null);function A(b,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),g&&g.apply(this,arguments)}return D?d.call(a,y,D,A):d.call(a,y,A)}}function _(d){return d&&function(y,D){var g=D?d.call(a,y,D):d.call(a,y);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function E(d){if(!d||d.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(d.code==="EINVAL"||d.code==="EPERM"))}}}),gS=W((e,t)=>{G();var r=ue("stream").Stream;t.exports=n;function n(i){return{ReadStream:u,WriteStream:s};function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var h=p[l];this[h]=a[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(m,v){if(m){c.emit("error",m),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),yS=W((e,t)=>{"use strict";G(),t.exports=n;var r=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var u={__proto__:r(i)};else var u=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(i,s))}),u}}),Re=W((e,t)=>{G();var r=ue("fs"),n=mS(),i=gS(),u=yS(),s=ue("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(d,y){Object.defineProperty(d,o,{get:function(){return y}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var d=s.format.apply(s,arguments);d="GFS4: "+d.split(/\n/).join(`
35
+ GFS4: `),console.error(d)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(d){function y(D,g){return d.call(r,D,function(A){A||_(),typeof g=="function"&&g.apply(this,arguments)})}return Object.defineProperty(y,a,{value:d}),y}(r.close),r.closeSync=function(d){function y(D){d.apply(r,arguments),_()}return Object.defineProperty(y,a,{value:d}),y}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),ue("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),t.exports=h(u(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=h(r),r.__patched=!0);function h(d){n(d),d.gracefulify=h,d.createReadStream=N,d.createWriteStream=le;var y=d.readFile;d.readFile=D;function D(T,I,$){return typeof I=="function"&&($=I,I=null),Y(T,I,$);function Y(K,z,J,ee){return y(K,z,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?m([Y,[K,z,J],ie,ee||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var g=d.writeFile;d.writeFile=A;function A(T,I,$,Y){return typeof $=="function"&&(Y=$,$=null),K(T,I,$,Y);function K(z,J,ee,ie,ge){return g(z,J,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var b=d.appendFile;b&&(d.appendFile=k);function k(T,I,$,Y){return typeof $=="function"&&(Y=$,$=null),K(T,I,$,Y);function K(z,J,ee,ie,ge){return b(z,J,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var x=d.copyFile;x&&(d.copyFile=F);function F(T,I,$,Y){return typeof $=="function"&&(Y=$,$=0),K(T,I,$,Y);function K(z,J,ee,ie,ge){return x(z,J,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var w=d.readdir;d.readdir=P;var O=/^v[0-5]\./;function P(T,I,$){typeof I=="function"&&($=I,I=null);var Y=O.test(process.version)?function(z,J,ee,ie){return w(z,K(z,J,ee,ie))}:function(z,J,ee,ie){return w(z,J,K(z,J,ee,ie))};return Y(T,I,$);function K(z,J,ee,ie){return function(ge,se){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?m([Y,[z,J,ee],ge,ie||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof ee=="function"&&ee.call(this,ge,se))}}}if(process.version.substr(0,4)==="v0.8"){var C=i(d);B=C.ReadStream,Z=C.WriteStream}var S=d.ReadStream;S&&(B.prototype=Object.create(S.prototype),B.prototype.open=Q);var R=d.WriteStream;R&&(Z.prototype=Object.create(R.prototype),Z.prototype.open=oe),Object.defineProperty(d,"ReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0}),Object.defineProperty(d,"WriteStream",{get:function(){return Z},set:function(T){Z=T},enumerable:!0,configurable:!0});var L=B;Object.defineProperty(d,"FileReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0});var M=Z;Object.defineProperty(d,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function B(T,I){return this instanceof B?(S.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function Q(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.autoClose&&T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$),T.read())})}function Z(T,I){return this instanceof Z?(R.apply(this,arguments),this):Z.apply(Object.create(Z.prototype),arguments)}function oe(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$))})}function N(T,I){return new d.ReadStream(T,I)}function le(T,I){return new d.WriteStream(T,I)}var pe=d.open;d.open=ne;function ne(T,I,$,Y){return typeof $=="function"&&(Y=$,$=null),K(T,I,$,Y);function K(z,J,ee,ie,ge){return pe(z,J,ee,function(se,re){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return d}function m(d){l("ENQUEUE",d[0].name,d[1]),r[o].push(d),E()}var v;function _(){for(var d=Date.now(),y=0;y<r[o].length;++y)r[o][y].length>2&&(r[o][y][3]=d,r[o][y][4]=d);E()}function E(){if(clearTimeout(v),v=void 0,r[o].length!==0){var d=r[o].shift(),y=d[0],D=d[1],g=d[2],A=d[3],b=d[4];if(A===void 0)l("RETRY",y.name,D),y.apply(null,D);else if(Date.now()-A>=6e4){l("TIMEOUT",y.name,D);var k=D.pop();typeof k=="function"&&k.call(null,g)}else{var x=Date.now()-b,F=Math.max(b-A,1),w=Math.min(F*1.2,100);x>=w?(l("RETRY",y.name,D),y.apply(null,D.concat([A]))):r[o].push(d)}v===void 0&&(v=setTimeout(E,0))}}}),qf=W(e=>{"use strict";G();var t=ze().fromCallback,r=Re(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.keys(r).forEach(i=>{i!=="promises"&&(e[i]=r[i])}),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,u){return typeof u=="function"?r.exists(i,u):new Promise(s=>r.exists(i,s))},e.read=function(i,u,s,o,a,c){return typeof c=="function"?r.read(i,u,s,o,a,c):new Promise((p,l)=>{r.read(i,u,s,o,a,(f,h,m)=>{if(f)return l(f);p({bytesRead:h,buffer:m})})})},e.write=function(i,u,...s){return typeof s[s.length-1]=="function"?r.write(i,u,...s):new Promise((o,a)=>{r.write(i,u,...s,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(e.realpath.native=t(r.realpath.native))}),Uf=W((e,t)=>{"use strict";G();var r=ue("path");function n(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var i=/[<>:"|?*]/;function u(s){let o=n(s);return s=s.replace(o,""),i.test(s)}t.exports={getRootPath:n,invalidWin32Path:u}}),vS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=Uf().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&i(o)){let h=new Error(o+" contains invalid WIN32 path characters.");return h.code="EINVAL",c(h)}let l=a.mode,f=a.fs||r;l===void 0&&(l=u&~process.umask()),p||(p=null),c=c||function(){},o=n.resolve(o),f.mkdir(o,l,h=>{if(!h)return p=p||o,c(null,p);switch(h.code){case"ENOENT":if(n.dirname(o)===o)return c(h);s(n.dirname(o),a,(m,v)=>{m?c(m,v):s(o,a,c,v)});break;default:f.stat(o,(m,v)=>{m||!v.isDirectory()?c(h,p):c(null,p)});break}})}t.exports=s}),_S=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=Uf().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&i(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=u&~process.umask()),c||(c=null),o=n.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(n.dirname(o)===o)throw f;c=s(n.dirname(o),a,c),s(o,a,c)}else{let h;try{h=l.statSync(o)}catch{throw f}if(!h.isDirectory())throw f}}return c}t.exports=s}),it=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=r(vS()),i=_S();t.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),Wf=W((e,t)=>{"use strict";G();var r=Re(),n=ue("os"),i=ue("path");function u(){let p=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=i.join(n.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",h=>{if(h)return p(h);r.open(l,"r+",(m,v)=>{if(m)return p(m);r.futimes(v,f,f,_=>{if(_)return p(_);r.close(v,E=>{if(E)return p(E);r.stat(l,(d,y)=>{if(d)return p(d);p(null,y.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,h){r.open(p,"r+",(m,v)=>{if(m)return h(m);r.futimes(v,l,f,_=>{r.close(v,E=>{h&&h(_||E)})})})}function c(p,l,f){let h=r.openSync(p,"r+");return r.futimesSync(h,l,f),r.closeSync(h)}t.exports={hasMillisRes:s,hasMillisResSync:u,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),gi=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=10,u=5,s=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>i||a===i&&(c>u||c===u&&p>=s)}function f(D,g,A){l()?r.stat(D,{bigint:!0},(b,k)=>{if(b)return A(b);r.stat(g,{bigint:!0},(x,F)=>x?x.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(x):A(null,{srcStat:k,destStat:F}))}):r.stat(D,(b,k)=>{if(b)return A(b);r.stat(g,(x,F)=>x?x.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(x):A(null,{srcStat:k,destStat:F}))})}function h(D,g){let A,b;l()?A=r.statSync(D,{bigint:!0}):A=r.statSync(D);try{l()?b=r.statSync(g,{bigint:!0}):b=r.statSync(g)}catch(k){if(k.code==="ENOENT")return{srcStat:A,destStat:null};throw k}return{srcStat:A,destStat:b}}function m(D,g,A,b){f(D,g,(k,x)=>{if(k)return b(k);let{srcStat:F,destStat:w}=x;return w&&w.ino&&w.dev&&w.ino===F.ino&&w.dev===F.dev?b(new Error("Source and destination must not be the same.")):F.isDirectory()&&d(D,g)?b(new Error(y(D,g,A))):b(null,{srcStat:F,destStat:w})})}function v(D,g,A){let{srcStat:b,destStat:k}=h(D,g);if(k&&k.ino&&k.dev&&k.ino===b.ino&&k.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&d(D,g))throw new Error(y(D,g,A));return{srcStat:b,destStat:k}}function _(D,g,A,b,k){let x=n.resolve(n.dirname(D)),F=n.resolve(n.dirname(A));if(F===x||F===n.parse(F).root)return k();l()?r.stat(F,{bigint:!0},(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===g.ino&&O.dev===g.dev?k(new Error(y(D,A,b))):_(D,g,F,b,k)):r.stat(F,(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===g.ino&&O.dev===g.dev?k(new Error(y(D,A,b))):_(D,g,F,b,k))}function E(D,g,A,b){let k=n.resolve(n.dirname(D)),x=n.resolve(n.dirname(A));if(x===k||x===n.parse(x).root)return;let F;try{l()?F=r.statSync(x,{bigint:!0}):F=r.statSync(x)}catch(w){if(w.code==="ENOENT")return;throw w}if(F.ino&&F.dev&&F.ino===g.ino&&F.dev===g.dev)throw new Error(y(D,A,b));return E(D,g,x,b)}function d(D,g){let A=n.resolve(D).split(n.sep).filter(k=>k),b=n.resolve(g).split(n.sep).filter(k=>k);return A.reduce((k,x,F)=>k&&b[F]===x,!0)}function y(D,g,A){return`Cannot ${A} '${D}' to a subdirectory of itself, '${g}'.`}t.exports={checkPaths:m,checkPathsSync:v,checkParentPaths:_,checkParentPathsSync:E,isSrcSubdir:d}}),ES=W((e,t)=>{"use strict";G(),t.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),SS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=it().mkdirsSync,u=Wf().utimesMillisSync,s=gi();function o(g,A,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
36
36
 
37
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:k,destStat:D}=s.checkPathsSync(y,A,"copy");return s.checkParentPathsSync(y,k,A,"copy"),a(D,y,A,b)}function a(y,A,b,k){if(k.filter&&!k.filter(A,b))return;let D=i.dirname(b);return r.existsSync(D)||n(D),c(y,A,b,k)}function c(y,A,b,k){if(!(k.filter&&!k.filter(A,b)))return p(y,A,b,k)}function p(y,A,b,k){let D=(k.dereference?r.statSync:r.lstatSync)(A);if(D.isDirectory())return g(D,y,A,b,k);if(D.isFile()||D.isCharacterDevice()||D.isBlockDevice())return l(D,y,A,b,k);if(D.isSymbolicLink())return v(y,A,b,k)}function l(y,A,b,k,D){return A?f(y,b,k,D):d(y,b,k,D)}function f(y,A,b,k){if(k.overwrite)return r.unlinkSync(b),d(y,A,b,k);if(k.errorOnExist)throw new Error(`'${b}' already exists`)}function d(y,A,b,k){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,b),r.chmodSync(b,y.mode),k.preserveTimestamps?u(b,y.atime,y.mtime):void 0):m(y,A,b,k)}function m(y,A,b,k){let D=zE()(65536),F=r.openSync(A,"r"),w=r.openSync(b,"w",y.mode),O=0;for(;O<y.size;){let P=r.readSync(F,D,0,65536,O);r.writeSync(w,D,0,P),O+=P}k.preserveTimestamps&&r.futimesSync(w,y.atime,y.mtime),r.closeSync(F),r.closeSync(w)}function g(y,A,b,k,D){if(!A)return _(y,b,k,D);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${k}' with directory '${b}'.`);return E(b,k,D)}function _(y,A,b,k){return r.mkdirSync(b),E(A,b,k),r.chmodSync(b,y.mode)}function E(y,A,b){r.readdirSync(y).forEach(k=>h(k,y,A,b))}function h(y,A,b,k){let D=i.join(A,y),F=i.join(b,y),{destStat:w}=s.checkPathsSync(D,F,"copy");return c(w,D,F,k)}function v(y,A,b,k){let D=r.readlinkSync(A);if(k.dereference&&(D=i.resolve(process.cwd(),D)),y){let F;try{F=r.readlinkSync(b)}catch(w){if(w.code==="EINVAL"||w.code==="UNKNOWN")return r.symlinkSync(D,b);throw w}if(k.dereference&&(F=i.resolve(process.cwd(),F)),s.isSrcSubdir(D,F))throw new Error(`Cannot copy '${D}' to a subdirectory of itself, '${F}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(F,D))throw new Error(`Cannot overwrite '${F}' with '${D}'.`);return x(D,b)}else return r.symlinkSync(D,b)}function x(y,A){return r.unlinkSync(A),r.symlinkSync(y,A)}t.exports=o}),Nf=W((e,t)=>{"use strict";G(),t.exports={copySync:eS()}}),bt=W((e,t)=>{"use strict";G();var r=Je().fromPromise,i=Pf();function n(u){return i.access(u).then(()=>!0).catch(()=>!1)}t.exports={pathExists:r(n),pathExistsSync:i.existsSync}}),tS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=it().mkdirs,u=bt().pathExists,s=If().utimesMillis,o=di();function a(D,F,w,O){typeof w=="function"&&!O?(O=w,w={}):typeof w=="function"&&(w={filter:w}),O=O||function(){},w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
37
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:k,destStat:x}=s.checkPathsSync(g,A,"copy");return s.checkParentPathsSync(g,k,A,"copy"),a(x,g,A,b)}function a(g,A,b,k){if(k.filter&&!k.filter(A,b))return;let x=n.dirname(b);return r.existsSync(x)||i(x),c(g,A,b,k)}function c(g,A,b,k){if(!(k.filter&&!k.filter(A,b)))return p(g,A,b,k)}function p(g,A,b,k){let x=(k.dereference?r.statSync:r.lstatSync)(A);if(x.isDirectory())return v(x,g,A,b,k);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return l(x,g,A,b,k);if(x.isSymbolicLink())return y(g,A,b,k)}function l(g,A,b,k,x){return A?f(g,b,k,x):h(g,b,k,x)}function f(g,A,b,k){if(k.overwrite)return r.unlinkSync(b),h(g,A,b,k);if(k.errorOnExist)throw new Error(`'${b}' already exists`)}function h(g,A,b,k){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,b),r.chmodSync(b,g.mode),k.preserveTimestamps?u(b,g.atime,g.mtime):void 0):m(g,A,b,k)}function m(g,A,b,k){let x=ES()(65536),F=r.openSync(A,"r"),w=r.openSync(b,"w",g.mode),O=0;for(;O<g.size;){let P=r.readSync(F,x,0,65536,O);r.writeSync(w,x,0,P),O+=P}k.preserveTimestamps&&r.futimesSync(w,g.atime,g.mtime),r.closeSync(F),r.closeSync(w)}function v(g,A,b,k,x){if(!A)return _(g,b,k,x);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${k}' with directory '${b}'.`);return E(b,k,x)}function _(g,A,b,k){return r.mkdirSync(b),E(A,b,k),r.chmodSync(b,g.mode)}function E(g,A,b){r.readdirSync(g).forEach(k=>d(k,g,A,b))}function d(g,A,b,k){let x=n.join(A,g),F=n.join(b,g),{destStat:w}=s.checkPathsSync(x,F,"copy");return c(w,x,F,k)}function y(g,A,b,k){let x=r.readlinkSync(A);if(k.dereference&&(x=n.resolve(process.cwd(),x)),g){let F;try{F=r.readlinkSync(b)}catch(w){if(w.code==="EINVAL"||w.code==="UNKNOWN")return r.symlinkSync(x,b);throw w}if(k.dereference&&(F=n.resolve(process.cwd(),F)),s.isSrcSubdir(x,F))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${F}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(F,x))throw new Error(`Cannot overwrite '${F}' with '${x}'.`);return D(x,b)}else return r.symlinkSync(x,b)}function D(g,A){return r.unlinkSync(A),r.symlinkSync(g,A)}t.exports=o}),Yf=W((e,t)=>{"use strict";G(),t.exports={copySync:SS()}}),xt=W((e,t)=>{"use strict";G();var r=ze().fromPromise,n=qf();function i(u){return n.access(u).then(()=>!0).catch(()=>!1)}t.exports={pathExists:r(i),pathExistsSync:n.existsSync}}),AS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=it().mkdirs,u=xt().pathExists,s=Wf().utimesMillis,o=gi();function a(x,F,w,O){typeof w=="function"&&!O?(O=w,w={}):typeof w=="function"&&(w={filter:w}),O=O||function(){},w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
38
38
 
39
- see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(D,F,"copy",(P,C)=>{if(P)return O(P);let{srcStat:S,destStat:R}=C;o.checkParentPaths(D,S,F,"copy",L=>L?O(L):w.filter?p(c,R,D,F,w,O):c(R,D,F,w,O))})}function c(D,F,w,O,P){let C=i.dirname(w);u(C,(S,R)=>{if(S)return P(S);if(R)return l(D,F,w,O,P);n(C,L=>L?P(L):l(D,F,w,O,P))})}function p(D,F,w,O,P,C){Promise.resolve(P.filter(w,O)).then(S=>S?D(F,w,O,P,C):C(),S=>C(S))}function l(D,F,w,O,P){return O.filter?p(f,D,F,w,O,P):f(D,F,w,O,P)}function f(D,F,w,O,P){(O.dereference?r.stat:r.lstat)(F,(C,S)=>{if(C)return P(C);if(S.isDirectory())return h(S,D,F,w,O,P);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return d(S,D,F,w,O,P);if(S.isSymbolicLink())return b(D,F,w,O,P)})}function d(D,F,w,O,P,C){return F?m(D,w,O,P,C):g(D,w,O,P,C)}function m(D,F,w,O,P){if(O.overwrite)r.unlink(w,C=>C?P(C):g(D,F,w,O,P));else return O.errorOnExist?P(new Error(`'${w}' already exists`)):P()}function g(D,F,w,O,P){return typeof r.copyFile=="function"?r.copyFile(F,w,C=>C?P(C):E(D,w,O,P)):_(D,F,w,O,P)}function _(D,F,w,O,P){let C=r.createReadStream(F);C.on("error",S=>P(S)).once("open",()=>{let S=r.createWriteStream(w,{mode:D.mode});S.on("error",R=>P(R)).on("open",()=>C.pipe(S)).once("close",()=>E(D,w,O,P))})}function E(D,F,w,O){r.chmod(F,D.mode,P=>P?O(P):w.preserveTimestamps?s(F,D.atime,D.mtime,O):O())}function h(D,F,w,O,P,C){return F?F&&!F.isDirectory()?C(new Error(`Cannot overwrite non-directory '${O}' with directory '${w}'.`)):x(w,O,P,C):v(D,w,O,P,C)}function v(D,F,w,O,P){r.mkdir(w,C=>{if(C)return P(C);x(F,w,O,S=>S?P(S):r.chmod(w,D.mode,P))})}function x(D,F,w,O){r.readdir(D,(P,C)=>P?O(P):y(C,D,F,w,O))}function y(D,F,w,O,P){let C=D.pop();return C?A(D,C,F,w,O,P):P()}function A(D,F,w,O,P,C){let S=i.join(w,F),R=i.join(O,F);o.checkPaths(S,R,"copy",(L,M)=>{if(L)return C(L);let{destStat:B}=M;l(B,S,R,P,Q=>Q?C(Q):y(D,w,O,P,C))})}function b(D,F,w,O,P){r.readlink(F,(C,S)=>{if(C)return P(C);if(O.dereference&&(S=i.resolve(process.cwd(),S)),D)r.readlink(w,(R,L)=>R?R.code==="EINVAL"||R.code==="UNKNOWN"?r.symlink(S,w,P):P(R):(O.dereference&&(L=i.resolve(process.cwd(),L)),o.isSrcSubdir(S,L)?P(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${L}'.`)):D.isDirectory()&&o.isSrcSubdir(L,S)?P(new Error(`Cannot overwrite '${L}' with '${S}'.`)):k(S,w,P)));else return r.symlink(S,w,P)})}function k(D,F,w){r.unlink(F,O=>O?w(O):r.symlink(D,F,w))}t.exports=a}),Bf=W((e,t)=>{"use strict";G();var r=Je().fromCallback;t.exports={copy:r(tS())}}),rS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=ue("assert"),u=process.platform==="win32";function s(_){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{_[E]=_[E]||r[E],E=E+"Sync",_[E]=_[E]||r[E]}),_.maxBusyTries=_.maxBusyTries||3}function o(_,E,h){let v=0;typeof E=="function"&&(h=E,E={}),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n.strictEqual(typeof h,"function","rimraf: callback function required"),n(E,"rimraf: invalid options argument provided"),n.strictEqual(typeof E,"object","rimraf: options should be object"),s(E),a(_,E,function x(y){if(y){if((y.code==="EBUSY"||y.code==="ENOTEMPTY"||y.code==="EPERM")&&v<E.maxBusyTries){v++;let A=v*100;return setTimeout(()=>a(_,E,x),A)}y.code==="ENOENT"&&(y=null)}h(y)})}function a(_,E,h){n(_),n(E),n(typeof h=="function"),E.lstat(_,(v,x)=>{if(v&&v.code==="ENOENT")return h(null);if(v&&v.code==="EPERM"&&u)return c(_,E,v,h);if(x&&x.isDirectory())return l(_,E,v,h);E.unlink(_,y=>{if(y){if(y.code==="ENOENT")return h(null);if(y.code==="EPERM")return u?c(_,E,y,h):l(_,E,y,h);if(y.code==="EISDIR")return l(_,E,y,h)}return h(y)})})}function c(_,E,h,v){n(_),n(E),n(typeof v=="function"),h&&n(h instanceof Error),E.chmod(_,438,x=>{x?v(x.code==="ENOENT"?null:h):E.stat(_,(y,A)=>{y?v(y.code==="ENOENT"?null:h):A.isDirectory()?l(_,E,h,v):E.unlink(_,v)})})}function p(_,E,h){let v;n(_),n(E),h&&n(h instanceof Error);try{E.chmodSync(_,438)}catch(x){if(x.code==="ENOENT")return;throw h}try{v=E.statSync(_)}catch(x){if(x.code==="ENOENT")return;throw h}v.isDirectory()?m(_,E,h):E.unlinkSync(_)}function l(_,E,h,v){n(_),n(E),h&&n(h instanceof Error),n(typeof v=="function"),E.rmdir(_,x=>{x&&(x.code==="ENOTEMPTY"||x.code==="EEXIST"||x.code==="EPERM")?f(_,E,v):x&&x.code==="ENOTDIR"?v(h):v(x)})}function f(_,E,h){n(_),n(E),n(typeof h=="function"),E.readdir(_,(v,x)=>{if(v)return h(v);let y=x.length,A;if(y===0)return E.rmdir(_,h);x.forEach(b=>{o(i.join(_,b),E,k=>{if(!A){if(k)return h(A=k);--y===0&&E.rmdir(_,h)}})})})}function d(_,E){let h;E=E||{},s(E),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n(E,"rimraf: missing options"),n.strictEqual(typeof E,"object","rimraf: options should be object");try{h=E.lstatSync(_)}catch(v){if(v.code==="ENOENT")return;v.code==="EPERM"&&u&&p(_,E,v)}try{h&&h.isDirectory()?m(_,E,null):E.unlinkSync(_)}catch(v){if(v.code==="ENOENT")return;if(v.code==="EPERM")return u?p(_,E,v):m(_,E,v);if(v.code!=="EISDIR")throw v;m(_,E,v)}}function m(_,E,h){n(_),n(E),h&&n(h instanceof Error);try{E.rmdirSync(_)}catch(v){if(v.code==="ENOTDIR")throw h;if(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")g(_,E);else if(v.code!=="ENOENT")throw v}}function g(_,E){if(n(_),n(E),E.readdirSync(_).forEach(h=>d(i.join(_,h),E)),u){let h=Date.now();do try{return E.rmdirSync(_,E)}catch{}while(Date.now()-h<500)}else return E.rmdirSync(_,E)}t.exports=o,o.sync=d}),hi=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=rS();t.exports={remove:r(i),removeSync:i.sync}}),nS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=Re(),n=ue("path"),u=it(),s=hi(),o=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return u.mkdirs(c,p);f=f.map(m=>n.join(c,m)),d();function d(){let m=f.pop();if(!m)return p();s.remove(m,g=>{if(g)return p(g);d()})}})});function a(c){let p;try{p=i.readdirSync(c)}catch{return u.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}t.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),iS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=ue("path"),n=Re(),u=it(),s=bt().pathExists;function o(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,d)=>{if(!f&&d.isFile())return p();let m=i.dirname(c);s(m,(g,_)=>{if(g)return p(g);if(_)return l();u.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||u.mkdirsSync(l),n.writeFileSync(c,"")}t.exports={createFile:r(o),createFileSync:a}}),oS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=ue("path"),n=Re(),u=it(),s=bt().pathExists;function o(c,p,l){function f(d,m){n.link(d,m,g=>{if(g)return l(g);l(null)})}s(p,(d,m)=>{if(d)return l(d);if(m)return l(null);n.lstat(c,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),l(g);let _=i.dirname(p);s(_,(E,h)=>{if(E)return l(E);if(h)return f(c,p);u.mkdirs(_,v=>{if(v)return l(v);f(c,p)})})})})}function a(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||u.mkdirsSync(l),n.linkSync(c,p)}t.exports={createLink:r(o),createLinkSync:a}}),sS=W((e,t)=>{"use strict";G();var r=ue("path"),i=Re(),n=bt().pathExists;function u(o,a,c){if(r.isAbsolute(o))return i.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return n(l,(f,d)=>f?c(f):d?c(null,{toCwd:l,toDst:o}):i.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,a){let c;if(r.isAbsolute(o)){if(c=i.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=i.existsSync(l),c)return{toCwd:l,toDst:o};if(c=i.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}t.exports={symlinkPaths:u,symlinkPathsSync:s}}),aS=W((e,t)=>{"use strict";G();var r=Re();function i(u,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(u,(a,c)=>{if(a)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function n(u,s){let o;if(s)return s;try{o=r.lstatSync(u)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}t.exports={symlinkType:i,symlinkTypeSync:n}}),uS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=ue("path"),n=Re(),u=it(),s=u.mkdirs,o=u.mkdirsSync,a=sS(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=aS(),f=l.symlinkType,d=l.symlinkTypeSync,m=bt().pathExists;function g(E,h,v,x){x=typeof v=="function"?v:x,v=typeof v=="function"?!1:v,m(h,(y,A)=>{if(y)return x(y);if(A)return x(null);c(E,h,(b,k)=>{if(b)return x(b);E=k.toDst,f(k.toCwd,v,(D,F)=>{if(D)return x(D);let w=i.dirname(h);m(w,(O,P)=>{if(O)return x(O);if(P)return n.symlink(E,h,F,x);s(w,C=>{if(C)return x(C);n.symlink(E,h,F,x)})})})})})}function _(E,h,v){if(n.existsSync(h))return;let x=p(E,h);E=x.toDst,v=d(x.toCwd,v);let y=i.dirname(h);return n.existsSync(y)||o(y),n.symlinkSync(E,h,v)}t.exports={createSymlink:r(g),createSymlinkSync:_}}),cS=W((e,t)=>{"use strict";G();var r=iS(),i=oS(),n=uS();t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}),lS=W((e,t)=>{G();var r;try{r=Re()}catch{r=ue("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||r,m=!0;"throws"in l&&(m=l.throws),d.readFile(p,l,function(g,_){if(g)return f(g);_=a(_);var E;try{E=JSON.parse(_,l?l.reviver:null)}catch(h){return m?(h.message=p+": "+h.message,f(h)):f(null,null)}f(null,E)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,d=!0;"throws"in l&&(d=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(g){if(d)throw g.message=p+": "+g.message,g;return null}}function u(p,l){var f,d=`
40
- `;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(d=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,d)+d}function s(p,l,f,d){d==null&&(d=f,f={}),f=f||{};var m=f.fs||r,g="";try{g=u(l,f)}catch(_){d&&d(_,null);return}m.writeFile(p,g,f,d)}function o(p,l,f){f=f||{};var d=f.fs||r,m=u(l,f);return d.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:o};t.exports=c}),aa=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=lS();t.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),pS=W((e,t)=>{"use strict";G();var r=ue("path"),i=it(),n=bt().pathExists,u=aa();function s(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);n(l,(f,d)=>{if(f)return p(f);if(d)return u.writeJson(o,a,c,p);i.mkdirs(l,m=>{if(m)return p(m);u.writeJson(o,a,c,p)})})}t.exports=s}),fS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=it(),u=aa();function s(o,a,c){let p=i.dirname(o);r.existsSync(p)||n.mkdirsSync(p),u.writeJsonSync(o,a,c)}t.exports=s}),dS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=aa();i.outputJson=r(pS()),i.outputJsonSync=fS(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i}),hS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Nf().copySync,u=hi().removeSync,s=it().mkdirpSync,o=di();function a(f,d,m){m=m||{};let g=m.overwrite||m.clobber||!1,{srcStat:_}=o.checkPathsSync(f,d,"move");return o.checkParentPathsSync(f,_,d,"move"),s(i.dirname(d)),c(f,d,g)}function c(f,d,m){if(m)return u(d),p(f,d,m);if(r.existsSync(d))throw new Error("dest already exists.");return p(f,d,m)}function p(f,d,m){try{r.renameSync(f,d)}catch(g){if(g.code!=="EXDEV")throw g;return l(f,d,m)}}function l(f,d,m){return n(f,d,{overwrite:m,errorOnExist:!0}),u(f)}t.exports=a}),mS=W((e,t)=>{"use strict";G(),t.exports={moveSync:hS()}}),yS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Bf().copy,u=hi().remove,s=it().mkdirp,o=bt().pathExists,a=di();function c(d,m,g,_){typeof g=="function"&&(_=g,g={});let E=g.overwrite||g.clobber||!1;a.checkPaths(d,m,"move",(h,v)=>{if(h)return _(h);let{srcStat:x}=v;a.checkParentPaths(d,x,m,"move",y=>{if(y)return _(y);s(i.dirname(m),A=>A?_(A):p(d,m,E,_))})})}function p(d,m,g,_){if(g)return u(m,E=>E?_(E):l(d,m,g,_));o(m,(E,h)=>E?_(E):h?_(new Error("dest already exists.")):l(d,m,g,_))}function l(d,m,g,_){r.rename(d,m,E=>E?E.code!=="EXDEV"?_(E):f(d,m,g,_):_())}function f(d,m,g,_){n(d,m,{overwrite:g,errorOnExist:!0},E=>E?_(E):u(d,_))}t.exports=c}),gS=W((e,t)=>{"use strict";G();var r=Je().fromCallback;t.exports={move:r(yS())}}),vS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=Re(),n=ue("path"),u=it(),s=bt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let d=n.dirname(c);s(d,(m,g)=>{if(m)return f(m);if(g)return i.writeFile(c,p,l,f);u.mkdirs(d,_=>{if(_)return f(_);i.writeFile(c,p,l,f)})})}function a(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);u.mkdirsSync(l),i.writeFileSync(c,...p)}t.exports={outputFile:r(o),outputFileSync:a}}),_S=W((e,t)=>{"use strict";G(),t.exports=Object.assign({},Pf(),Nf(),Bf(),nS(),cS(),dS(),it(),mS(),gS(),vS(),bt(),hi());var r=ue("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get(){return r.promises}})});G();G();var gT=an(HE());G();G();function ES(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}G();G();function ea(e){return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(e)}G();function SS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AS(e,t){if(t&&(ea(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SS(e)}G();function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ni(e)}G();G();function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},en(e,t)}function bS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}G();G();function DS(e){return Function.toString.call(e).indexOf("[native code]")!==-1}G();G();function xS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ri(e,t,r){return xS()?ri=Reflect.construct.bind():ri=function(i,n,u){var s=[null];s.push.apply(s,n);var o=Function.bind.apply(i,s),a=new o;return u&&en(a,u.prototype),a},ri.apply(null,arguments)}function ta(e){var t=typeof Map=="function"?new Map:void 0;return ta=function(r){if(r===null||!DS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return ri(r,arguments,ni(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),en(i,r)},ta(e)}var vT=an(YE()),_T=an(_S()),ET=function(e){bS(t,e);function t(r){var i;return ES(this,t),i=AS(this,ni(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return t}(ta(Error));G();var wS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((n,u)=>[].concat(n,u),[])}e.flatten=t;function r(i,n){let u=[[]],s=0;for(let o of i)n(o)?(s++,u[s]=[]):u[s].push(o);return u}e.splitWhen=r}),CS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}),kS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),FS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var t=ue("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(a){return a.replace(/\\/g,"/")}e.unixify=n;function u(a,c){return t.resolve(a,c)}e.makeAbsolute=u;function s(a){return a.replace(i,"\\$2")}e.escape=s;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}e.removeLeadingDotSegment=o}),RS=W((e,t)=>{G(),t.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),OS=W((e,t)=>{G();var r=RS(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||a!==-1&&s[o]==="("&&s[o+1]!=="|"&&(a<o&&(a=s.indexOf("|",o)),a!==-1&&s[a+1]!==")"&&(l=s.indexOf(")",a),l>a&&(f=s.indexOf("\\",a),f===-1||f>l))))return!0;if(s[o]==="\\"){var d=s[o+1];o+=2;var m=i[d];if(m){var g=s.indexOf(m,o);g!==-1&&(o=g+1)}if(s[o]==="!")return!0}else o++}return!1},u=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var a=s[o+1];o+=2;var c=i[a];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};t.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var a=n;return o&&o.strict===!1&&(a=u),a(s)}}),TS=W((e,t)=>{"use strict";G();var r=OS(),i=ue("path").posix.dirname,n=ue("os").platform()==="win32",u="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(u)<0&&(p=p.replace(s,u)),o.test(p)&&(p+=u),p+="a";do p=i(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),ua=W(e=>{"use strict";G(),e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(i=>i.type===r),e.exceedsLimit=(t,r,i=1,n)=>n===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=n,e.escapeNode=(t,r=0,i)=>{let n=t.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),e.flatten=(...t)=>{let r=[],i=n=>{for(let u=0;u<n.length;u++){let s=n[u];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(t),r}}),ca=W((e,t)=>{"use strict";G();var r=ua();t.exports=(i,n={})=>{let u=(s,o={})=>{let a=n.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(a||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=u(l);return p};return u(i)}}),PS=W((e,t)=>{"use strict";G(),t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),LS=W((e,t)=>{"use strict";G();var r=PS(),i=(h,v,x)=>{if(r(h)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(v===void 0||h===v)return String(h);if(r(v)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let y={relaxZeros:!0,...x};typeof y.strictZeros=="boolean"&&(y.relaxZeros=y.strictZeros===!1);let A=String(y.relaxZeros),b=String(y.shorthand),k=String(y.capture),D=String(y.wrap),F=h+":"+v+"="+A+b+k+D;if(i.cache.hasOwnProperty(F))return i.cache[F].result;let w=Math.min(h,v),O=Math.max(h,v);if(Math.abs(w-O)===1){let L=h+"|"+v;return y.capture?`(${L})`:y.wrap===!1?L:`(?:${L})`}let P=_(h)||_(v),C={min:h,max:v,a:w,b:O},S=[],R=[];if(P&&(C.isPadded=P,C.maxLen=String(C.max).length),w<0){let L=O<0?Math.abs(O):1;R=o(L,Math.abs(w),C,y),w=C.a=0}return O>=0&&(S=o(w,O,C,y)),C.negatives=R,C.positives=S,C.result=n(R,S,y),y.capture===!0?C.result=`(${C.result})`:y.wrap!==!1&&S.length+R.length>1&&(C.result=`(?:${C.result})`),i.cache[F]=C,C.result};function n(h,v,x){let y=a(h,v,"-",!1,x)||[],A=a(v,h,"",!1,x)||[],b=a(h,v,"-?",!0,x)||[];return y.concat(b).concat(A).join("|")}function u(h,v){let x=1,y=1,A=f(h,x),b=new Set([v]);for(;h<=A&&A<=v;)b.add(A),x+=1,A=f(h,x);for(A=d(v+1,y)-1;h<A&&A<=v;)b.add(A),y+=1,A=d(v+1,y)-1;return b=[...b],b.sort(p),b}function s(h,v,x){if(h===v)return{pattern:h,count:[],digits:0};let y=c(h,v),A=y.length,b="",k=0;for(let D=0;D<A;D++){let[F,w]=y[D];F===w?b+=F:F!=="0"||w!=="9"?b+=g(F,w,x):k++}return k&&(b+=x.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[k],digits:A}}function o(h,v,x,y){let A=u(h,v),b=[],k=h,D;for(let F=0;F<A.length;F++){let w=A[F],O=s(String(k),String(w),y),P="";if(!x.isPadded&&D&&D.pattern===O.pattern){D.count.length>1&&D.count.pop(),D.count.push(O.count[0]),D.string=D.pattern+m(D.count),k=w+1;continue}x.isPadded&&(P=E(w,x,y)),O.string=P+O.pattern+m(O.count),b.push(O),k=w+1,D=O}return b}function a(h,v,x,y,A){let b=[];for(let k of h){let{string:D}=k;!y&&!l(v,"string",D)&&b.push(x+D),y&&l(v,"string",D)&&b.push(x+D)}return b}function c(h,v){let x=[];for(let y=0;y<h.length;y++)x.push([h[y],v[y]]);return x}function p(h,v){return h>v?1:v>h?-1:0}function l(h,v,x){return h.some(y=>y[v]===x)}function f(h,v){return Number(String(h).slice(0,-v)+"9".repeat(v))}function d(h,v){return h-h%Math.pow(10,v)}function m(h){let[v=0,x=""]=h;return x||v>1?`{${v+(x?","+x:"")}}`:""}function g(h,v,x){return`[${h}${v-h===1?"":"-"}${v}]`}function _(h){return/^-?(0+)\d/.test(h)}function E(h,v,x){if(!v.isPadded)return h;let y=Math.abs(v.maxLen-String(h).length),A=x.relaxZeros!==!1;switch(y){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${y}}`:`0{${y}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i}),Mf=W((e,t)=>{"use strict";G();var r=ue("util"),i=LS(),n=y=>y!==null&&typeof y=="object"&&!Array.isArray(y),u=y=>A=>y===!0?Number(A):String(A),s=y=>typeof y=="number"||typeof y=="string"&&y!=="",o=y=>Number.isInteger(+y),a=y=>{let A=`${y}`,b=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++b]==="0";);return b>0},c=(y,A,b)=>typeof y=="string"||typeof A=="string"?!0:b.stringify===!0,p=(y,A,b)=>{if(A>0){let k=y[0]==="-"?"-":"";k&&(y=y.slice(1)),y=k+y.padStart(k?A-1:A,"0")}return b===!1?String(y):y},l=(y,A)=>{let b=y[0]==="-"?"-":"";for(b&&(y=y.slice(1),A--);y.length<A;)y="0"+y;return b?"-"+y:y},f=(y,A)=>{y.negatives.sort((w,O)=>w<O?-1:w>O?1:0),y.positives.sort((w,O)=>w<O?-1:w>O?1:0);let b=A.capture?"":"?:",k="",D="",F;return y.positives.length&&(k=y.positives.join("|")),y.negatives.length&&(D=`-(${b}${y.negatives.join("|")})`),k&&D?F=`${k}|${D}`:F=k||D,A.wrap?`(${b}${F})`:F},d=(y,A,b,k)=>{if(b)return i(y,A,{wrap:!1,...k});let D=String.fromCharCode(y);if(y===A)return D;let F=String.fromCharCode(A);return`[${D}-${F}]`},m=(y,A,b)=>{if(Array.isArray(y)){let k=b.wrap===!0,D=b.capture?"":"?:";return k?`(${D}${y.join("|")})`:y.join("|")}return i(y,A,b)},g=(...y)=>new RangeError("Invalid range arguments: "+r.inspect(...y)),_=(y,A,b)=>{if(b.strictRanges===!0)throw g([y,A]);return[]},E=(y,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${y}" to be a number`);return[]},h=(y,A,b=1,k={})=>{let D=Number(y),F=Number(A);if(!Number.isInteger(D)||!Number.isInteger(F)){if(k.strictRanges===!0)throw g([y,A]);return[]}D===0&&(D=0),F===0&&(F=0);let w=D>F,O=String(y),P=String(A),C=String(b);b=Math.max(Math.abs(b),1);let S=a(O)||a(P)||a(C),R=S?Math.max(O.length,P.length,C.length):0,L=S===!1&&c(y,A,k)===!1,M=k.transform||u(L);if(k.toRegex&&b===1)return d(l(y,R),l(A,R),!0,k);let B={negatives:[],positives:[]},Q=N=>B[N<0?"negatives":"positives"].push(Math.abs(N)),Z=[],oe=0;for(;w?D>=F:D<=F;)k.toRegex===!0&&b>1?Q(D):Z.push(p(M(D,oe),R,L)),D=w?D-b:D+b,oe++;return k.toRegex===!0?b>1?f(B,k):m(Z,null,{wrap:!1,...k}):Z},v=(y,A,b=1,k={})=>{if(!o(y)&&y.length>1||!o(A)&&A.length>1)return _(y,A,k);let D=k.transform||(L=>String.fromCharCode(L)),F=`${y}`.charCodeAt(0),w=`${A}`.charCodeAt(0),O=F>w,P=Math.min(F,w),C=Math.max(F,w);if(k.toRegex&&b===1)return d(P,C,!1,k);let S=[],R=0;for(;O?F>=w:F<=w;)S.push(D(F,R)),F=O?F-b:F+b,R++;return k.toRegex===!0?m(S,null,{wrap:!1,options:k}):S},x=(y,A,b,k={})=>{if(A==null&&s(y))return[y];if(!s(y)||!s(A))return _(y,A,k);if(typeof b=="function")return x(y,A,1,{transform:b});if(n(b))return x(y,A,0,b);let D={...k};return D.capture===!0&&(D.wrap=!0),b=b||D.step||1,o(b)?o(y)&&o(A)?h(y,A,b,D):v(y,A,Math.max(Math.abs(b),1),D):b!=null&&!n(b)?E(b,D):x(y,A,1,b)};t.exports=x}),IS=W((e,t)=>{"use strict";G();var r=Mf(),i=ua(),n=(u,s={})=>{let o=(a,c={})=>{let p=i.isInvalidBrace(c),l=a.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,d=s.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return d+a.value;if(a.type==="open")return f?d+a.value:"(";if(a.type==="close")return f?d+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let g=i.reduce(a.nodes),_=r(...g,{...s,wrap:!1,toRegex:!0});if(_.length!==0)return g.length>1&&_.length>1?`(${_})`:_}if(a.nodes)for(let g of a.nodes)m+=o(g,a);return m};return o(u)};t.exports=n}),NS=W((e,t)=>{"use strict";G();var r=Mf(),i=ca(),n=ua(),u=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?n.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(u(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?u(l,f,c):l+f);return n.flatten(p)},s=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let d=f,m=f.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,m=d.queue;if(l.invalid||l.dollar){m.push(u(m.pop(),i(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(u(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let h=n.reduce(l.nodes);if(n.exceedsLimit(...h,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=r(...h,a);v.length===0&&(v=i(l,a)),m.push(u(m.pop(),v)),l.nodes=[];return}let g=n.encloseBrace(l),_=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;for(let h=0;h<l.nodes.length;h++){let v=l.nodes[h];if(v.type==="comma"&&l.type==="brace"){h===1&&_.push(""),_.push("");continue}if(v.type==="close"){m.push(u(m.pop(),_,g));continue}if(v.value&&v.type!=="open"){_.push(u(_.pop(),v.value));continue}v.nodes&&p(v,l)}return _};return n.flatten(p(o))};t.exports=s}),BS=W((e,t)=>{"use strict";G(),t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
41
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),MS=W((e,t)=>{"use strict";G();var r=ca(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=BS(),h=(v,x={})=>{if(typeof v!="string")throw new TypeError("Expected a string");let y=x||{},A=typeof y.maxLength=="number"?Math.min(i,y.maxLength):i;if(v.length>A)throw new SyntaxError(`Input length (${v.length}), exceeds max characters (${A})`);let b={type:"root",input:v,nodes:[]},k=[b],D=b,F=b,w=0,O=v.length,P=0,C=0,S,R={},L=()=>v[P++],M=B=>{if(B.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&B.type==="text"){F.value+=B.value;return}return D.nodes.push(B),B.parent=D,B.prev=F,F=B,B};for(M({type:"bos"});P<O;)if(D=k[k.length-1],S=L(),!(S===E||S===_)){if(S===n){M({type:"text",value:(x.keepEscaping?S:"")+L()});continue}if(S===d){M({type:"text",value:"\\"+S});continue}if(S===f){w++;let B=!0,Q;for(;P<O&&(Q=L());){if(S+=Q,Q===f){w++;continue}if(Q===n){S+=L();continue}if(Q===d&&(w--,w===0))break}M({type:"text",value:S});continue}if(S===a){D=M({type:"paren",nodes:[]}),k.push(D),M({type:"text",value:S});continue}if(S===c){if(D.type!=="paren"){M({type:"text",value:S});continue}D=k.pop(),M({type:"text",value:S}),D=k[k.length-1];continue}if(S===m||S===g||S===u){let B=S,Q;for(x.keepQuotes!==!0&&(S="");P<O&&(Q=L());){if(Q===n){S+=Q+L();continue}if(Q===B){x.keepQuotes===!0&&(S+=Q);break}S+=Q}M({type:"text",value:S});continue}if(S===p){C++;let B=F.value&&F.value.slice(-1)==="$"||D.dollar===!0;D=M({type:"brace",open:!0,close:!1,dollar:B,depth:C,commas:0,ranges:0,nodes:[]}),k.push(D),M({type:"open",value:S});continue}if(S===l){if(D.type!=="brace"){M({type:"text",value:S});continue}let B="close";D=k.pop(),D.close=!0,M({type:B,value:S}),C--,D=k[k.length-1];continue}if(S===s&&C>0){if(D.ranges>0){D.ranges=0;let B=D.nodes.shift();D.nodes=[B,{type:"text",value:r(D)}]}M({type:"comma",value:S}),D.commas++;continue}if(S===o&&C>0&&D.commas===0){let B=D.nodes;if(C===0||B.length===0){M({type:"text",value:S});continue}if(F.type==="dot"){if(D.range=[],F.value+=S,F.type="range",D.nodes.length!==3&&D.nodes.length!==5){D.invalid=!0,D.ranges=0,F.type="text";continue}D.ranges++,D.args=[];continue}if(F.type==="range"){B.pop();let Q=B[B.length-1];Q.value+=F.value+S,F=Q,D.ranges--;continue}M({type:"dot",value:S});continue}M({type:"text",value:S})}do if(D=k.pop(),D.type!=="root"){D.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let B=k[k.length-1],Q=B.nodes.indexOf(D);B.nodes.splice(Q,1,...D.nodes)}while(k.length>0);return M({type:"eos"}),b};t.exports=h}),jS=W((e,t)=>{"use strict";G();var r=ca(),i=IS(),n=NS(),u=MS(),s=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,a={})=>u(o,a),s.stringify=(o,a={})=>r(typeof o=="string"?s.parse(o,a):o,a),s.compile=(o,a={})=>(typeof o=="string"&&(o=s.parse(o,a)),i(o,a)),s.expand=(o,a={})=>{typeof o=="string"&&(o=s.parse(o,a));let c=n(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?s.compile(o,a):s.expand(o,a),t.exports=s}),mi=W((e,t)=>{"use strict";G();var r=ue("path"),i="\\\\/",n=`[^${i}]`,u="\\.",s="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,d=`${u}{1,2}${l}`,m=`(?!${u})`,g=`(?!${f}${d})`,_=`(?!${u}{0,1}${l})`,E=`(?!${d})`,h=`[^.${a}]`,v=`${p}*?`,x={DOT_LITERAL:u,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:m,NO_DOTS:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:f},y={...x,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${u}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${i}])${u}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},A={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,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(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?y:x}}}),yi=W(e=>{"use strict";G();var t=ue("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:s}=mi();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>u.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(s,"\\$1"),e.toPosixSlashes=o=>o.replace(i,"/"),e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?e.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},e.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},e.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),$S=W((e,t)=>{"use strict";G();var r=yi(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=mi(),h=y=>y===c||y===u,v=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)},x=(y,A)=>{let b=A||{},k=y.length-1,D=b.parts===!0||b.scanToEnd===!0,F=[],w=[],O=[],P=y,C=-1,S=0,R=0,L=!1,M=!1,B=!1,Q=!1,Z=!1,oe=!1,N=!1,le=!1,pe=!1,ne=!1,T=0,I,$,K={value:"",depth:0,isGlob:!1},Y=()=>C>=k,z=()=>P.charCodeAt(C+1),X=()=>(I=$,P.charCodeAt(++C));for(;C<k;){$=X();let re;if($===u){N=K.backslashes=!0,$=X(),$===p&&(oe=!0);continue}if(oe===!0||$===p){for(T++;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,X();continue}if($===p){T++;continue}if(oe!==!0&&$===o&&($=X())===o){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if(oe!==!0&&$===s){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===g&&(T--,T===0)){oe=!1,L=K.isBrace=!0,ne=!0;break}}if(D===!0)continue;break}if($===c){if(F.push(C),w.push(K),K={value:"",depth:0,isGlob:!1},ne===!0)continue;if(I===o&&C===S+1){S+=2;continue}R=C+1;continue}if(b.noext!==!0&&($===d||$===n||$===i||$===m||$===a)&&z()===l){if(B=K.isGlob=!0,Q=K.isExtglob=!0,ne=!0,$===a&&C===S&&(pe=!0),D===!0){for(;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,$=X();continue}if($===_){B=K.isGlob=!0,ne=!0;break}}continue}break}if($===i){if(I===i&&(Z=K.isGlobstar=!0),B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===m){if(B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===f){for(;Y()!==!0&&(re=X());){if(re===u){N=K.backslashes=!0,X();continue}if(re===E){M=K.isBracket=!0,B=K.isGlob=!0,ne=!0;break}}if(D===!0)continue;break}if(b.nonegate!==!0&&$===a&&C===S){le=K.negated=!0,S++;continue}if(b.noparen!==!0&&$===l){if(B=K.isGlob=!0,D===!0){for(;Y()!==!0&&($=X());){if($===l){N=K.backslashes=!0,$=X();continue}if($===_){ne=!0;break}}continue}break}if(B===!0){if(ne=!0,D===!0)continue;break}}b.noext===!0&&(Q=!1,B=!1);let ee=P,ie="",ye="";S>0&&(ie=P.slice(0,S),P=P.slice(S),R-=S),ee&&B===!0&&R>0?(ee=P.slice(0,R),ye=P.slice(R)):B===!0?(ee="",ye=P):ee=P,ee&&ee!==""&&ee!=="/"&&ee!==P&&h(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),b.unescape===!0&&(ye&&(ye=r.removeBackslashes(ye)),ee&&N===!0&&(ee=r.removeBackslashes(ee)));let se={prefix:ie,input:y,start:S,base:ee,glob:ye,isBrace:L,isBracket:M,isGlob:B,isExtglob:Q,isGlobstar:Z,negated:le,negatedExtglob:pe};if(b.tokens===!0&&(se.maxDepth=0,h($)||w.push(K),se.tokens=w),b.parts===!0||b.tokens===!0){let re;for(let Ee=0;Ee<F.length;Ee++){let Ut=re?re+1:S,V=F[Ee],fe=y.slice(Ut,V);b.tokens&&(Ee===0&&S!==0?(w[Ee].isPrefix=!0,w[Ee].value=ie):w[Ee].value=fe,v(w[Ee]),se.maxDepth+=w[Ee].depth),(Ee!==0||fe!=="")&&O.push(fe),re=V}if(re&&re+1<y.length){let Ee=y.slice(re+1);O.push(Ee),b.tokens&&(w[w.length-1].value=Ee,v(w[w.length-1]),se.maxDepth+=w[w.length-1].depth)}se.slashes=F,se.parts=O}return se};t.exports=x}),HS=W((e,t)=>{"use strict";G();var r=mi(),i=yi(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...f,d);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(g=>i.escapeRegex(g)).join("..")}return m},p=(f,d)=>`Missing ${f}: "${d}" - use "\\\\${d}" to match literal characters`,l=(f,d)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);let E={type:"bos",value:"",output:m.prepend||""},h=[E],v=m.capture?"":"?:",x=i.isWindows(d),y=r.globChars(x),A=r.extglobChars(y),{DOT_LITERAL:b,PLUS_LITERAL:k,SLASH_LITERAL:D,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:O,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:S,QMARK_NO_DOT:R,STAR:L,START_ANCHOR:M}=y,B=V=>`(${v}(?:(?!${M}${V.dot?w:b}).)*?)`,Q=m.dot?"":O,Z=m.dot?S:R,oe=m.bash===!0?B(m):L;m.capture&&(oe=`(${oe})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};f=i.removePrefix(f,N),_=f.length;let le=[],pe=[],ne=[],T=E,I,$=()=>N.index===_-1,K=N.peek=(V=1)=>f[N.index+V],Y=N.advance=()=>f[++N.index]||"",z=()=>f.slice(N.index+1),X=(V="",fe=0)=>{N.consumed+=V,N.index+=fe},ee=V=>{N.output+=V.output!=null?V.output:V.value,X(V.value)},ie=()=>{let V=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)Y(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ye=V=>{N[V]++,ne.push(V)},se=V=>{N[V]--,ne.pop()},re=V=>{if(T.type==="globstar"){let fe=N.braces>0&&(V.type==="comma"||V.type==="brace"),q=V.extglob===!0||le.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!fe&&!q&&(N.output=N.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,N.output+=T.output)}if(le.length&&V.type!=="paren"&&(le[le.length-1].inner+=V.value),(V.value||V.output)&&ee(V),T&&T.type==="text"&&V.type==="text"){T.value+=V.value,T.output=(T.output||"")+V.value;return}V.prev=T,h.push(V),T=V},Ee=(V,fe)=>{let q={...A[fe],conditions:1,inner:""};q.prev=T,q.parens=N.parens,q.output=N.output;let ce=(m.capture?"(":"")+q.open;ye("parens"),re({type:V,value:fe,output:N.output?"":F}),re({type:"paren",extglob:!0,value:Y(),output:ce}),le.push(q)},Ut=V=>{let fe=V.close+(m.capture?")":""),q;if(V.type==="negate"){let ce=oe;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(ce=B(m)),(ce!==oe||$()||/^\)+$/.test(z()))&&(fe=V.close=`)$))${ce}`),V.inner.includes("*")&&(q=z())&&/^\.[^\\/.]+$/.test(q)){let ve=l(q,{...d,fastpaths:!1}).output;fe=V.close=`)${ve})${ce})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:fe}),se("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,fe=f.replace(o,(q,ce,ve,Se,_e,Wt)=>Se==="\\"?(V=!0,q):Se==="?"?ce?ce+Se+(_e?S.repeat(_e.length):""):Wt===0?Z+(_e?S.repeat(_e.length):""):S.repeat(ve.length):Se==="."?b.repeat(ve.length):Se==="*"?ce?ce+Se+(_e?oe:""):oe:ce?q:`\\${q}`);return V===!0&&(m.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),fe===f&&m.contains===!0?(N.output=f,N):(N.output=i.wrapOutput(fe,N,d),N)}for(;!$();){if(I=Y(),I==="\0")continue;if(I==="\\"){let q=K();if(q==="/"&&m.bash!==!0||q==="."||q===";")continue;if(!q){I+="\\",re({type:"text",value:I});continue}let ce=/^\\+/.exec(z()),ve=0;if(ce&&ce[0].length>2&&(ve=ce[0].length,N.index+=ve,ve%2!==0&&(I+="\\")),m.unescape===!0?I=Y():I+=Y(),N.brackets===0){re({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||T.value==="["||T.value==="[^")){if(m.posix!==!1&&I===":"){let q=T.value.slice(1);if(q.includes("[")&&(T.posix=!0,q.includes(":"))){let ce=T.value.lastIndexOf("["),ve=T.value.slice(0,ce),Se=T.value.slice(ce+2),_e=u[Se];if(_e){T.value=ve+_e,N.backtrack=!0,Y(),!E.output&&h.indexOf(T)===1&&(E.output=F);continue}}}(I==="["&&K()!==":"||I==="-"&&K()==="]")&&(I=`\\${I}`),I==="]"&&(T.value==="["||T.value==="[^")&&(I=`\\${I}`),m.posix===!0&&I==="!"&&T.value==="["&&(I="^"),T.value+=I,ee({value:I});continue}if(N.quotes===1&&I!=='"'){I=i.escapeRegex(I),T.value+=I,ee({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ye("parens"),re({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let q=le[le.length-1];if(q&&N.parens===q.parens+1){Ut(le.pop());continue}re({type:"paren",value:I,output:N.parens?")":"\\)"}),se("parens");continue}if(I==="["){if(m.nobracket===!0||!z().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));I=`\\${I}`}else ye("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(m.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}se("brackets");let q=T.value.slice(1);if(T.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(I=`/${I}`),T.value+=I,ee({value:I}),m.literalBrackets===!1||i.hasRegexChars(q))continue;let ce=i.escapeRegex(T.value);if(N.output=N.output.slice(0,-T.value.length),m.literalBrackets===!0){N.output+=ce,T.value=ce;continue}T.value=`(${v}${ce}|${T.value})`,N.output+=T.value;continue}if(I==="{"&&m.nobrace!==!0){ye("braces");let q={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};pe.push(q),re(q);continue}if(I==="}"){let q=pe[pe.length-1];if(m.nobrace===!0||!q){re({type:"text",value:I,output:I});continue}let ce=")";if(q.dots===!0){let ve=h.slice(),Se=[];for(let _e=ve.length-1;_e>=0&&(h.pop(),ve[_e].type!=="brace");_e--)ve[_e].type!=="dots"&&Se.unshift(ve[_e].value);ce=c(Se,m),N.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let ve=N.output.slice(0,q.outputIndex),Se=N.tokens.slice(q.tokensIndex);q.value=q.output="\\{",I=ce="\\}",N.output=ve;for(let _e of Se)N.output+=_e.output||_e.value}re({type:"brace",value:I,output:ce}),se("braces"),pe.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let q=I,ce=pe[pe.length-1];ce&&ne[ne.length-1]==="braces"&&(ce.comma=!0,q="|"),re({type:"comma",value:I,output:q});continue}if(I==="/"){if(T.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",h.pop(),T=E;continue}re({type:"slash",value:I,output:D});continue}if(I==="."){if(N.braces>0&&T.type==="dot"){T.value==="."&&(T.output=b);let q=pe[pe.length-1];T.type="dots",T.output+=I,T.value+=I,q.dots=!0;continue}if(N.braces+N.parens===0&&T.type!=="bos"&&T.type!=="slash"){re({type:"text",value:I,output:b});continue}re({type:"dot",value:I,output:b});continue}if(I==="?"){if(!(T&&T.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("qmark",I);continue}if(T&&T.type==="paren"){let q=K(),ce=I;if(q==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(z()))&&(ce=`\\${I}`),re({type:"text",value:I,output:ce});continue}if(m.dot!==!0&&(T.type==="slash"||T.type==="bos")){re({type:"qmark",value:I,output:R});continue}re({type:"qmark",value:I,output:S});continue}if(I==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){Ee("negate",I);continue}if(m.nonegate!==!0&&N.index===0){ie();continue}}if(I==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("plus",I);continue}if(T&&T.value==="("||m.regex===!1){re({type:"plus",value:I,output:k});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||N.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:k});continue}if(I==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let q=s.exec(z());q&&(I+=q[0],N.index+=q[0].length),re({type:"text",value:I});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=I,T.output=oe,N.backtrack=!0,N.globstar=!0,X(I);continue}let V=z();if(m.noextglob!==!0&&/^\([^?]/.test(V)){Ee("star",I);continue}if(T.type==="star"){if(m.noglobstar===!0){X(I);continue}let q=T.prev,ce=q.prev,ve=q.type==="slash"||q.type==="bos",Se=ce&&(ce.type==="star"||ce.type==="globstar");if(m.bash===!0&&(!ve||V[0]&&V[0]!=="/")){re({type:"star",value:I,output:""});continue}let _e=N.braces>0&&(q.type==="comma"||q.type==="brace"),Wt=le.length&&(q.type==="pipe"||q.type==="paren");if(!ve&&q.type!=="paren"&&!_e&&!Wt){re({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let gt=f[N.index+4];if(gt&&gt!=="/")break;V=V.slice(3),X("/**",3)}if(q.type==="bos"&&$()){T.type="globstar",T.value+=I,T.output=B(m),N.output=T.output,N.globstar=!0,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!Se&&$()){N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=B(m)+(m.strictSlashes?")":"|$)"),T.value+=I,N.globstar=!0,N.output+=q.output+T.output,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&V[0]==="/"){let gt=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=`${B(m)}${D}|${D}${gt})`,T.value+=I,N.output+=q.output+T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&V[0]==="/"){T.type="globstar",T.value+=I,T.output=`(?:^|${D}|${B(m)}${D})`,N.output=T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-T.output.length),T.type="globstar",T.output=B(m),T.value+=I,N.output+=T.output,N.globstar=!0,X(I);continue}let fe={type:"star",value:I,output:oe};if(m.bash===!0){fe.output=".*?",(T.type==="bos"||T.type==="slash")&&(fe.output=Q+fe.output),re(fe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&m.regex===!0){fe.output=I,re(fe);continue}(N.index===N.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(N.output+=P,T.output+=P):m.dot===!0?(N.output+=C,T.output+=C):(N.output+=Q,T.output+=Q),K()!=="*"&&(N.output+=F,T.output+=F)),re(fe)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=i.escapeLast(N.output,"["),se("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=i.escapeLast(N.output,"("),se("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=i.escapeLast(N.output,"{"),se("braces")}if(m.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${D}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,d)=>{let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);f=a[f]||f;let E=i.isWindows(d),{DOT_LITERAL:h,SLASH_LITERAL:v,ONE_CHAR:x,DOTS_SLASH:y,NO_DOT:A,NO_DOTS:b,NO_DOTS_SLASH:k,STAR:D,START_ANCHOR:F}=r.globChars(E),w=m.dot?b:A,O=m.dot?k:A,P=m.capture?"":"?:",C={negated:!1,prefix:""},S=m.bash===!0?".*?":D;m.capture&&(S=`(${S})`);let R=Q=>Q.noglobstar===!0?S:`(${P}(?:(?!${F}${Q.dot?y:h}).)*?)`,L=Q=>{switch(Q){case"*":return`${w}${x}${S}`;case".*":return`${h}${x}${S}`;case"*.*":return`${w}${S}${h}${x}${S}`;case"*/*":return`${w}${S}${v}${x}${O}${S}`;case"**":return w+R(m);case"**/*":return`(?:${w}${R(m)}${v})?${O}${x}${S}`;case"**/*.*":return`(?:${w}${R(m)}${v})?${O}${S}${h}${x}${S}`;case"**/.*":return`(?:${w}${R(m)}${v})?${h}${x}${S}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(Q);if(!Z)return;let oe=L(Z[1]);return oe?oe+h+Z[2]:void 0}}},M=i.removePrefix(f,C),B=L(M);return B&&m.strictSlashes!==!0&&(B+=`${v}?`),B},t.exports=l}),GS=W((e,t)=>{"use strict";G();var r=ue("path"),i=$S(),n=HS(),u=yi(),s=mi(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let v=c.map(x=>a(x,p,l));return x=>{for(let y of v){let A=y(x);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let d=p||{},m=u.isWindows(p),g=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),_=g.state;delete g.state;let E=()=>!1;if(d.ignore){let v={...p,ignore:null,onMatch:null,onResult:null};E=a(d.ignore,v,l)}let h=(v,x=!1)=>{let{isMatch:y,match:A,output:b}=a.test(v,g,p,{glob:c,posix:m}),k={glob:c,state:_,regex:g,posix:m,input:v,output:b,match:A,isMatch:y};return typeof d.onResult=="function"&&d.onResult(k),y===!1?(k.isMatch=!1,x?k:!1):E(v)?(typeof d.onIgnore=="function"&&d.onIgnore(k),k.isMatch=!1,x?k:!1):(typeof d.onMatch=="function"&&d.onMatch(k),x?k:!0)};return l&&(h.state=_),h};a.test=(c,p,l,{glob:f,posix:d}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},g=m.format||(d?u.toPosixSlashes:null),_=c===f,E=_&&g?g(c):c;return _===!1&&(E=g?g(c):c,_=E===f),(_===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?_=a.matchBase(c,p,l,d):_=p.exec(E)),{isMatch:Boolean(_),match:_,output:E}},a.matchBase=(c,p,l,f=u.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):n(c,{...p,fastpaths:!1}),a.scan=(c,p)=>i(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let d=p||{},m=d.contains?"":"^",g=d.contains?"":"$",_=`${m}(?:${c.output})${g}`;c&&c.negated===!0&&(_=`^(?!${_}).*$`);let E=a.toRegex(_,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(d.output=n.fastpaths(c,p)),d.output||(d=n(c,p)),a.compileRe(d,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,t.exports=a}),qS=W((e,t)=>{"use strict";G(),t.exports=GS()}),US=W((e,t)=>{"use strict";G();var r=ue("util"),i=jS(),n=qS(),u=yi(),s=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,d=new Set,m=0,g=E=>{d.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let h=n(String(c[E]),{...p,onResult:g},!0),v=h.state.negated||h.state.negatedExtglob;v&&m++;for(let x of a){let y=h(x,!0);!(v?!y.isMatch:y.isMatch)||(v?l.add(y.output):(l.delete(y.output),f.add(y.output)))}}let _=(m===c.length?[...d]:[...f]).filter(E=>!l.has(E));if(p&&_.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return _};o.match=o,o.matcher=(a,c)=>n(a,c),o.isMatch=(a,c,p)=>n(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],d=g=>{p.onResult&&p.onResult(g),f.push(g.output)},m=new Set(o(a,c,{...p,onResult:d}));for(let g of f)m.has(g)||l.add(g);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!u.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let d of l)f[d]=a[d];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(l.some(m=>d(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(!l.every(m=>d(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>n(l,p)(a))},o.capture=(a,c,p)=>{let l=u.isWindows(p),f=n.makeRe(String(a),{...p,capture:!0}).exec(l?u.toPosixSlashes(c):c);if(f)return f.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...a)=>n.makeRe(...a),o.scan=(...a)=>n.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:i(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},t.exports=o}),WS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ue("path"),r=TS(),i=US(),n="**",u="\\",s=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(L,M={}){return!f(L,M)}e.isStaticPattern=l;function f(L,M={}){return L===""?!1:!!(M.caseSensitiveMatch===!1||L.includes(u)||s.test(L)||o.test(L)||a.test(L)||M.extglob!==!1&&c.test(L)||M.braceExpansion!==!1&&d(L))}e.isDynamicPattern=f;function d(L){let M=L.indexOf("{");if(M===-1)return!1;let B=L.indexOf("}",M+1);if(B===-1)return!1;let Q=L.slice(M,B);return p.test(Q)}function m(L){return _(L)?L.slice(1):L}e.convertToPositivePattern=m;function g(L){return"!"+L}e.convertToNegativePattern=g;function _(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=_;function E(L){return!_(L)}e.isPositivePattern=E;function h(L){return L.filter(_)}e.getNegativePatterns=h;function v(L){return L.filter(E)}e.getPositivePatterns=v;function x(L){return L.filter(M=>!A(M))}e.getPatternsInsideCurrentDirectory=x;function y(L){return L.filter(A)}e.getPatternsOutsideCurrentDirectory=y;function A(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=A;function b(L){return r(L,{flipBackslashes:!1})}e.getBaseDirectory=b;function k(L){return L.includes(n)}e.hasGlobStar=k;function D(L){return L.endsWith("/"+n)}e.endsWithSlashGlobStar=D;function F(L){let M=t.basename(L);return D(L)||l(M)}e.isAffectDepthOfReadingPattern=F;function w(L){return L.reduce((M,B)=>M.concat(O(B)),[])}e.expandPatternsWithBraceExpansion=w;function O(L){return i.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=O;function P(L,M){let{parts:B}=i.scan(L,Object.assign(Object.assign({},M),{parts:!0}));return B.length===0&&(B=[L]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=P;function C(L,M){return i.makeRe(L,M)}e.makeRe=C;function S(L,M){return L.map(B=>C(B,M))}e.convertPatternsToRe=S;function R(L,M){return M.some(B=>B.test(L))}e.matchAny=R}),KS=W((e,t)=>{"use strict";G();var r=ue("stream"),i=r.PassThrough,n=Array.prototype.slice;t.exports=u;function u(){let o=[],a=n.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let d=i(p);function m(){for(let E=0,h=arguments.length;E<h;E++)o.push(s(arguments[E],p));return g(),this}function g(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(_);return}Array.isArray(E)||(E=[E]);let h=E.length+1;function v(){--h>0||(c=!1,g())}function x(y){function A(){y.removeListener("merge2UnpipeEnd",A),y.removeListener("end",A),f&&y.removeListener("error",b),v()}function b(k){d.emit("error",k)}if(y._readableState.endEmitted)return v();y.on("merge2UnpipeEnd",A),y.on("end",A),f&&y.on("error",b),y.pipe(d,{end:!1}),y.resume()}for(let y=0;y<E.length;y++)x(E[y]);v()}function _(){c=!1,d.emit("queueDrain"),l&&d.end()}return d.setMaxListeners(0),d.add=m,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),d}function s(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(i(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),YS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=KS();function r(n){let u=t(n);return n.forEach(s=>{s.once("error",o=>u.emit("error",o))}),u.once("close",()=>i(n)),u.once("end",()=>i(n)),u}e.merge=r;function i(n){n.forEach(u=>u.emit("close"))}}),VS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function r(i){return i===""}e.isEmpty=r}),Bt=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=wS();e.array=t;var r=CS();e.errno=r;var i=kS();e.fs=i;var n=FS();e.path=n;var u=WS();e.pattern=u;var s=YS();e.stream=s;var o=VS();e.string=o}),QS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Bt();function r(c,p){let l=n(c),f=u(c,p.ignore),d=l.filter(E=>t.pattern.isStaticPattern(E,p)),m=l.filter(E=>t.pattern.isDynamicPattern(E,p)),g=i(d,f,!1),_=i(m,f,!0);return g.concat(_)}e.generate=r;function i(c,p,l){let f=[],d=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),g=s(d),_=s(m);return f.push(...o(g,p,l)),"."in _?f.push(a(".",m,p,l)):f.push(...o(_,p,l)),f}e.convertPatternsToTasks=i;function n(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=n;function u(c,p){return t.pattern.getNegativePatterns(c).concat(p).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function s(c){let p={};return c.reduce((l,f)=>{let d=t.pattern.getBaseDirectory(f);return d in l?l[d].push(f):l[d]=[f],l},p)}e.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}e.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=a}),XS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var t=/(?!^)\/{2,}/g;function r(n){return n.map(u=>i(u))}e.transform=r;function i(n){return n.replace(t,"/")}e.removeDuplicateSlashes=i}),JS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(n,u,s){u.fs.lstat(n,(o,a)=>{if(o!==null){r(s,o);return}if(!a.isSymbolicLink()||!u.followSymbolicLink){i(s,a);return}u.fs.stat(n,(c,p)=>{if(c!==null){if(u.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,a);return}u.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}e.read=t;function r(n,u){n(u)}function i(n,u){n(null,u)}}),ZS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let u=i.fs.statSync(r);return i.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw u}}e.read=t}),zS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),eA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=zS(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,n){return i!=null?i:n}};e.default=r}),Pr=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=JS(),r=ZS(),i=eA();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.stat=n;function u(o,a){let c=s(a);return r.read(o,c)}e.statSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),tA=W((e,t)=>{G();var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),rA=W((e,t)=>{G(),t.exports=i;var r=tA();function i(n,u){let s,o,a,c=!0;Array.isArray(n)?(s=[],o=n.length):(a=Object.keys(n),s={},o=a.length);function p(f){function d(){u&&u(f,s),u=null}c?r(d):d()}function l(f,d,m){s[f]=m,(--o===0||d)&&p(d)}o?a?a.forEach(function(f){n[f](function(d,m){l(f,d,m)})}):n.forEach(function(f,d){f(function(m,g){l(d,m,g)})}):p(null),c=!1}}),jf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),n=10,u=10,s=r>n,o=r===n&&i>=u;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),nA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),$f=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=nA();e.fs=t}),Hf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,i,n){return r.endsWith(n)?r+i:r+n+i}e.joinPathSegments=t}),iA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Pr(),r=rA(),i=jf(),n=$f(),u=Hf();function s(f,d,m){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,d,m);return}c(f,d,m)}e.read=s;function o(f,d,m){d.fs.readdir(f,{withFileTypes:!0},(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(v=>({dirent:v,name:v.name,path:u.joinPathSegments(f,v.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(m,E);return}let h=E.map(v=>a(v,d));r(h,(v,x)=>{if(v!==null){p(m,v);return}l(m,x)})})}e.readdirWithFileTypes=o;function a(f,d){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}d.fs.stat(f.path,(g,_)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){m(g);return}m(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,_),m(null,f)})}}function c(f,d,m){d.fs.readdir(f,(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(h=>{let v=u.joinPathSegments(f,h,d.pathSegmentSeparator);return x=>{t.stat(v,d.fsStatSettings,(y,A)=>{if(y!==null){x(y);return}let b={name:h,path:v,dirent:n.fs.createDirentFromStats(h,A)};d.stats&&(b.stats=A),x(null,b)})}});r(E,(h,v)=>{if(h!==null){p(m,h);return}l(m,v)})})}e.readdir=c;function p(f,d){f(d)}function l(f,d){f(null,d)}}),oA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Pr(),r=jf(),i=$f(),n=Hf();function u(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(a,c):o(a,c)}e.read=u;function s(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}e.readdirWithFileTypes=s;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=n.joinPathSegments(a,p,c.pathSegmentSeparator),f=t.statSync(l,c.fsStatSettings),d={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(d.stats=f),d})}e.readdir=o}),sA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),aA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=Pr(),i=sA(),n=class{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,s){return u!=null?u:s}};e.default=n}),la=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=iA(),r=oA(),i=aA();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.scandir=n;function u(o,a){let c=s(a);return r.read(o,c)}e.scandirSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),uA=W((e,t)=>{"use strict";G();function r(i){var n=new i,u=n;function s(){var a=n;return a.next?n=a.next:(n=new i,u=n),a.next=null,a}function o(a){u.next=a,u=a}return{get:s,release:o}}t.exports=r}),cA=W((e,t)=>{"use strict";G();var r=uA();function i(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(u),l=null,f=null,d=0,m=null,g={push:A,drain:n,saturated:n,pause:E,paused:!1,concurrency:c,running:_,resume:x,idle:y,length:h,getQueue:v,unshift:b,empty:n,kill:D,killAndDrain:F,error:w};return g;function _(){return d}function E(){g.paused=!0}function h(){for(var O=l,P=0;O;)O=O.next,P++;return P}function v(){for(var O=l,P=[];O;)P.push(O.value),O=O.next;return P}function x(){if(g.paused){g.paused=!1;for(var O=0;O<g.concurrency;O++)d++,k()}}function y(){return d===0&&g.length()===0}function A(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,C.errorHandler=m,d===g.concurrency||g.paused?f?(f.next=C,f=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function b(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,d===g.concurrency||g.paused?l?(C.next=l,l=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function k(O){O&&p.release(O);var P=l;P?g.paused?d--:(f===l&&(f=null),l=P.next,P.next=null,a.call(o,P.value,P.worked),f===null&&g.empty()):--d===0&&g.drain()}function D(){l=null,f=null,g.drain=n}function F(){l=null,f=null,g.drain(),g.drain=n}function w(O){m=O}}function n(){}function u(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=n,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function s(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,h){a.call(this,E).then(function(v){h(null,v)},h)}var l=i(o,p,c),f=l.push,d=l.unshift;return l.push=m,l.unshift=g,l.drained=_,l;function m(E){var h=new Promise(function(v,x){f(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function g(E){var h=new Promise(function(v,x){d(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function _(){var E=l.drain,h=new Promise(function(v){l.drain=function(){E(),v()}});return h}}t.exports=i,t.exports.promise=s}),pa=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(u,s){return u.errorFilter===null?!0:!u.errorFilter(s)}e.isFatalError=t;function r(u,s){return u===null||u(s)}e.isAppliedFilter=r;function i(u,s){return u.split(/[/\\]/).join(s)}e.replacePathSegmentSeparator=i;function n(u,s,o){return u===""?s:u.endsWith(o)?u+s:u+o+s}e.joinPathSegments=n}),Gf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=pa(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=t.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};e.default=r}),qf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("events"),r=la(),i=cA(),n=pa(),u=Gf(),s=class extends u.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!n.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=n.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=s}),lA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=qf(),r=class{constructor(u,s){this._root=u,this._settings=s,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError(s=>{i(u,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(u,this._storage)}),this._reader.read()}};e.default=r;function i(u,s){u(s)}function n(u,s){u(null,s)}}),pA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=qf(),i=class{constructor(n,u){this._root=n,this._settings=u,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),fA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=la(),r=pa(),i=Gf(),n=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,s){this._queue.add({directory:u,base:s})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,s){try{let o=this._scandir(u,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,s)}catch(o){this._handleError(o)}}_handleError(u){if(r.isFatalError(this._settings,u))throw u}_handleEntry(u,s){let o=u.path;s!==void 0&&(u.path=r.joinPathSegments(s,u.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,u)&&this._pushToStorage(u),u.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(o,s===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}};e.default=n}),dA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=fA(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}),hA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=la(),i=class{constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,u){return n!=null?n:u}};e.default=i}),fa=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=lA(),r=pA(),i=dA(),n=hA();e.Settings=n.default;function u(c,p,l){if(typeof p=="function"){new t.default(c,a()).read(p);return}new t.default(c,a(p)).read(l)}e.walk=u;function s(c,p){let l=a(p);return new i.default(c,l).read()}e.walkSync=s;function o(c,p){let l=a(p);return new r.default(c,l).read()}e.walkStream=o;function a(c={}){return c instanceof n.default?c:new n.default(c)}}),da=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=Pr(),i=Bt(),n=class{constructor(u){this._settings=u,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return t.resolve(this._settings.cwd,u)}_makeEntry(u,s){let o={name:s,path:s,dirent:i.fs.createDirentFromStats(s,u)};return this._settings.stats&&(o.stats=u),o}_isFatalError(u){return!i.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}};e.default=n}),Uf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=Pr(),i=fa(),n=da(),u=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let a=s.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],s[p],o).then(d=>{d!==null&&o.entryFilter(d)&&c.push(d),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(s,o,a){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,a)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};e.default=u}),mA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=fa(),r=da(),i=Uf(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(u,s){return new Promise((o,a)=>{this._walkAsync(u,s,(c,p)=>{c===null?o(p):a(c)})})}async static(u,s){let o=[],a=this._readerStream.static(u,s);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};e.default=n}),yA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i,n,u){this._patterns=i,this._settings=n,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let i=t.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let u=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(u);this._storage.push({complete:s.length<=1,pattern:n,segments:u,sections:s})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(n=>t.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:t.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,n=>n.dynamic&&t.pattern.hasGlobStar(n.pattern))}};e.default=r}),gA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=yA(),r=class extends t.default{match(i){let n=i.split("/"),u=n.length,s=this._storage.filter(o=>!o.complete||o.segments.length>u);for(let o of s){let a=o.sections[0];if(!o.complete&&u>a.length||n.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};e.default=r}),vA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=gA(),i=class{constructor(n,u){this._settings=n,this._micromatchOptions=u}getFilter(n,u,s){let o=this._getMatcher(u),a=this._getNegativePatternsRe(s);return c=>this._filter(n,c,o,a)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let u=n.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(u,this._micromatchOptions)}_filter(n,u,s,o){if(this._isSkippedByDeep(n,u.path)||this._isSkippedSymbolicLink(u))return!1;let a=t.path.removeLeadingDotSegment(u.path);return this._isSkippedByPositivePatterns(a,s)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(n,u){return this._settings.deep===1/0?!1:this._getEntryLevel(n,u)>=this._settings.deep}_getEntryLevel(n,u){let s=u.split("/").length;if(n==="")return s;let o=n.split("/").length;return s-o}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,u){return!this._settings.baseNameMatch&&!u.match(n)}_isSkippedByNegativePatterns(n,u){return!t.pattern.matchAny(n,u)}};e.default=i}),_A=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let u=t.pattern.convertPatternsToRe(i,this._micromatchOptions),s=t.pattern.convertPatternsToRe(n,this._micromatchOptions);return o=>this._filter(o,u,s)}_filter(i,n,u){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,u))return!1;let s=this._settings.baseNameMatch?i.name:i.path,o=i.dirent.isDirectory(),a=this._isMatchToPatterns(s,n,o)&&!this._isMatchToPatterns(i.path,u,o);return this._settings.unique&&a&&this._createIndexRecord(i),a}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let u=t.path.makeAbsolute(this._settings.cwd,i);return t.pattern.matchAny(u,n)}_isMatchToPatterns(i,n,u){let s=t.path.removeLeadingDotSegment(i),o=t.pattern.matchAny(s,n);return!o&&u?t.pattern.matchAny(s+"/",n):o}};e.default=r}),EA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=r}),SA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=t.path.makeAbsolute(this._settings.cwd,n),n=t.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};e.default=r}),ha=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=vA(),i=_A(),n=EA(),u=SA(),s=class{constructor(o){this._settings=o,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=s}),AA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=mA(),r=ha(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(u,n,s)).map(o=>s.transform(o))}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),bA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=Uf(),i=ha(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(u){let s=this._getRootDirectory(u),o=this._getReaderOptions(u),a=this.api(s,u,o),c=new t.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(u,s,o){return s.dynamic?this._reader.dynamic(u,o):this._reader.static(s.patterns,o)}};e.default=n}),DA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Pr(),r=fa(),i=da(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(u,s){return this._walkSync(u,s)}static(u,s){let o=[];for(let a of u){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(u,s,o){try{let a=this._getStat(u);return this._makeEntry(a,s)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(u){return this._statSync(u,this._fsStatSettings)}};e.default=n}),xA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=DA(),r=ha(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(u,n,s).map(s.transform)}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),wA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs"),r=ue("os"),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var n=class{constructor(u={}){this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(u,s){return u===void 0?s:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),u)}};e.default=n}),CA=W((e,t)=>{"use strict";G();var r=QS(),i=XS(),n=AA(),u=bA(),s=xA(),o=wA(),a=Bt();async function c(f,d){l(f);let m=p(f,n.default,d),g=await Promise.all(m);return a.array.flatten(g)}(function(f){function d(h,v){l(h);let x=p(h,s.default,v);return a.array.flatten(x)}f.sync=d;function m(h,v){l(h);let x=p(h,u.default,v);return a.stream.merge(x)}f.stream=m;function g(h,v){l(h);let x=i.transform([].concat(h)),y=new o.default(v);return r.generate(x,y)}f.generateTasks=g;function _(h,v){l(h);let x=new o.default(v);return a.pattern.isDynamicPattern(h,x)}f.isDynamicPattern=_;function E(h){return l(h),a.path.escape(h)}f.escapePath=E})(c||(c={}));function p(f,d,m){let g=i.transform([].concat(f)),_=new o.default(m),E=r.generate(g,_),h=new d(_);return E.map(h.read,h)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=c});G();G();function Wf(e){return typeof e>"u"||e===null}function kA(e){return typeof e=="object"&&e!==null}function FA(e){return Array.isArray(e)?e:Wf(e)?[]:[e]}function RA(e,t){var r,i,n,u;if(t)for(u=Object.keys(t),r=0,i=u.length;r<i;r+=1)n=u[r],e[n]=t[n];return e}function OA(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function TA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var PA=Wf,LA=kA,IA=FA,NA=OA,BA=TA,MA=RA,Fe={isNothing:PA,isObject:LA,toArray:IA,repeat:NA,isNegativeZero:BA,extend:MA};function Kf(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
39
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(x,F,"copy",(P,C)=>{if(P)return O(P);let{srcStat:S,destStat:R}=C;o.checkParentPaths(x,S,F,"copy",L=>L?O(L):w.filter?p(c,R,x,F,w,O):c(R,x,F,w,O))})}function c(x,F,w,O,P){let C=n.dirname(w);u(C,(S,R)=>{if(S)return P(S);if(R)return l(x,F,w,O,P);i(C,L=>L?P(L):l(x,F,w,O,P))})}function p(x,F,w,O,P,C){Promise.resolve(P.filter(w,O)).then(S=>S?x(F,w,O,P,C):C(),S=>C(S))}function l(x,F,w,O,P){return O.filter?p(f,x,F,w,O,P):f(x,F,w,O,P)}function f(x,F,w,O,P){(O.dereference?r.stat:r.lstat)(F,(C,S)=>{if(C)return P(C);if(S.isDirectory())return d(S,x,F,w,O,P);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return h(S,x,F,w,O,P);if(S.isSymbolicLink())return b(x,F,w,O,P)})}function h(x,F,w,O,P,C){return F?m(x,w,O,P,C):v(x,w,O,P,C)}function m(x,F,w,O,P){if(O.overwrite)r.unlink(w,C=>C?P(C):v(x,F,w,O,P));else return O.errorOnExist?P(new Error(`'${w}' already exists`)):P()}function v(x,F,w,O,P){return typeof r.copyFile=="function"?r.copyFile(F,w,C=>C?P(C):E(x,w,O,P)):_(x,F,w,O,P)}function _(x,F,w,O,P){let C=r.createReadStream(F);C.on("error",S=>P(S)).once("open",()=>{let S=r.createWriteStream(w,{mode:x.mode});S.on("error",R=>P(R)).on("open",()=>C.pipe(S)).once("close",()=>E(x,w,O,P))})}function E(x,F,w,O){r.chmod(F,x.mode,P=>P?O(P):w.preserveTimestamps?s(F,x.atime,x.mtime,O):O())}function d(x,F,w,O,P,C){return F?F&&!F.isDirectory()?C(new Error(`Cannot overwrite non-directory '${O}' with directory '${w}'.`)):D(w,O,P,C):y(x,w,O,P,C)}function y(x,F,w,O,P){r.mkdir(w,C=>{if(C)return P(C);D(F,w,O,S=>S?P(S):r.chmod(w,x.mode,P))})}function D(x,F,w,O){r.readdir(x,(P,C)=>P?O(P):g(C,x,F,w,O))}function g(x,F,w,O,P){let C=x.pop();return C?A(x,C,F,w,O,P):P()}function A(x,F,w,O,P,C){let S=n.join(w,F),R=n.join(O,F);o.checkPaths(S,R,"copy",(L,M)=>{if(L)return C(L);let{destStat:B}=M;l(B,S,R,P,Q=>Q?C(Q):g(x,w,O,P,C))})}function b(x,F,w,O,P){r.readlink(F,(C,S)=>{if(C)return P(C);if(O.dereference&&(S=n.resolve(process.cwd(),S)),x)r.readlink(w,(R,L)=>R?R.code==="EINVAL"||R.code==="UNKNOWN"?r.symlink(S,w,P):P(R):(O.dereference&&(L=n.resolve(process.cwd(),L)),o.isSrcSubdir(S,L)?P(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${L}'.`)):x.isDirectory()&&o.isSrcSubdir(L,S)?P(new Error(`Cannot overwrite '${L}' with '${S}'.`)):k(S,w,P)));else return r.symlink(S,w,P)})}function k(x,F,w){r.unlink(F,O=>O?w(O):r.symlink(x,F,w))}t.exports=a}),Kf=W((e,t)=>{"use strict";G();var r=ze().fromCallback;t.exports={copy:r(AS())}}),bS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=ue("assert"),u=process.platform==="win32";function s(_){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{_[E]=_[E]||r[E],E=E+"Sync",_[E]=_[E]||r[E]}),_.maxBusyTries=_.maxBusyTries||3}function o(_,E,d){let y=0;typeof E=="function"&&(d=E,E={}),i(_,"rimraf: missing path"),i.strictEqual(typeof _,"string","rimraf: path should be a string"),i.strictEqual(typeof d,"function","rimraf: callback function required"),i(E,"rimraf: invalid options argument provided"),i.strictEqual(typeof E,"object","rimraf: options should be object"),s(E),a(_,E,function D(g){if(g){if((g.code==="EBUSY"||g.code==="ENOTEMPTY"||g.code==="EPERM")&&y<E.maxBusyTries){y++;let A=y*100;return setTimeout(()=>a(_,E,D),A)}g.code==="ENOENT"&&(g=null)}d(g)})}function a(_,E,d){i(_),i(E),i(typeof d=="function"),E.lstat(_,(y,D)=>{if(y&&y.code==="ENOENT")return d(null);if(y&&y.code==="EPERM"&&u)return c(_,E,y,d);if(D&&D.isDirectory())return l(_,E,y,d);E.unlink(_,g=>{if(g){if(g.code==="ENOENT")return d(null);if(g.code==="EPERM")return u?c(_,E,g,d):l(_,E,g,d);if(g.code==="EISDIR")return l(_,E,g,d)}return d(g)})})}function c(_,E,d,y){i(_),i(E),i(typeof y=="function"),d&&i(d instanceof Error),E.chmod(_,438,D=>{D?y(D.code==="ENOENT"?null:d):E.stat(_,(g,A)=>{g?y(g.code==="ENOENT"?null:d):A.isDirectory()?l(_,E,d,y):E.unlink(_,y)})})}function p(_,E,d){let y;i(_),i(E),d&&i(d instanceof Error);try{E.chmodSync(_,438)}catch(D){if(D.code==="ENOENT")return;throw d}try{y=E.statSync(_)}catch(D){if(D.code==="ENOENT")return;throw d}y.isDirectory()?m(_,E,d):E.unlinkSync(_)}function l(_,E,d,y){i(_),i(E),d&&i(d instanceof Error),i(typeof y=="function"),E.rmdir(_,D=>{D&&(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")?f(_,E,y):D&&D.code==="ENOTDIR"?y(d):y(D)})}function f(_,E,d){i(_),i(E),i(typeof d=="function"),E.readdir(_,(y,D)=>{if(y)return d(y);let g=D.length,A;if(g===0)return E.rmdir(_,d);D.forEach(b=>{o(n.join(_,b),E,k=>{if(!A){if(k)return d(A=k);--g===0&&E.rmdir(_,d)}})})})}function h(_,E){let d;E=E||{},s(E),i(_,"rimraf: missing path"),i.strictEqual(typeof _,"string","rimraf: path should be a string"),i(E,"rimraf: missing options"),i.strictEqual(typeof E,"object","rimraf: options should be object");try{d=E.lstatSync(_)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&u&&p(_,E,y)}try{d&&d.isDirectory()?m(_,E,null):E.unlinkSync(_)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return u?p(_,E,y):m(_,E,y);if(y.code!=="EISDIR")throw y;m(_,E,y)}}function m(_,E,d){i(_),i(E),d&&i(d instanceof Error);try{E.rmdirSync(_)}catch(y){if(y.code==="ENOTDIR")throw d;if(y.code==="ENOTEMPTY"||y.code==="EEXIST"||y.code==="EPERM")v(_,E);else if(y.code!=="ENOENT")throw y}}function v(_,E){if(i(_),i(E),E.readdirSync(_).forEach(d=>h(n.join(_,d),E)),u){let d=Date.now();do try{return E.rmdirSync(_,E)}catch{}while(Date.now()-d<500)}else return E.rmdirSync(_,E)}t.exports=o,o.sync=h}),yi=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=bS();t.exports={remove:r(n),removeSync:n.sync}}),xS=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=Re(),i=ue("path"),u=it(),s=yi(),o=r(function(c,p){p=p||function(){},n.readdir(c,(l,f)=>{if(l)return u.mkdirs(c,p);f=f.map(m=>i.join(c,m)),h();function h(){let m=f.pop();if(!m)return p();s.remove(m,v=>{if(v)return p(v);h()})}})});function a(c){let p;try{p=n.readdirSync(c)}catch{return u.mkdirsSync(c)}p.forEach(l=>{l=i.join(c,l),s.removeSync(l)})}t.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),DS=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=ue("path"),i=Re(),u=it(),s=xt().pathExists;function o(c,p){function l(){i.writeFile(c,"",f=>{if(f)return p(f);p()})}i.stat(c,(f,h)=>{if(!f&&h.isFile())return p();let m=n.dirname(c);s(m,(v,_)=>{if(v)return p(v);if(_)return l();u.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=i.statSync(c)}catch{}if(p&&p.isFile())return;let l=n.dirname(c);i.existsSync(l)||u.mkdirsSync(l),i.writeFileSync(c,"")}t.exports={createFile:r(o),createFileSync:a}}),wS=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=ue("path"),i=Re(),u=it(),s=xt().pathExists;function o(c,p,l){function f(h,m){i.link(h,m,v=>{if(v)return l(v);l(null)})}s(p,(h,m)=>{if(h)return l(h);if(m)return l(null);i.lstat(c,v=>{if(v)return v.message=v.message.replace("lstat","ensureLink"),l(v);let _=n.dirname(p);s(_,(E,d)=>{if(E)return l(E);if(d)return f(c,p);u.mkdirs(_,y=>{if(y)return l(y);f(c,p)})})})})}function a(c,p){if(i.existsSync(p))return;try{i.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=n.dirname(p);return i.existsSync(l)||u.mkdirsSync(l),i.linkSync(c,p)}t.exports={createLink:r(o),createLinkSync:a}}),CS=W((e,t)=>{"use strict";G();var r=ue("path"),n=Re(),i=xt().pathExists;function u(o,a,c){if(r.isAbsolute(o))return n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return i(l,(f,h)=>f?c(f):h?c(null,{toCwd:l,toDst:o}):n.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,a){let c;if(r.isAbsolute(o)){if(c=n.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=n.existsSync(l),c)return{toCwd:l,toDst:o};if(c=n.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}t.exports={symlinkPaths:u,symlinkPathsSync:s}}),kS=W((e,t)=>{"use strict";G();var r=Re();function n(u,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(u,(a,c)=>{if(a)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function i(u,s){let o;if(s)return s;try{o=r.lstatSync(u)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}t.exports={symlinkType:n,symlinkTypeSync:i}}),FS=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=ue("path"),i=Re(),u=it(),s=u.mkdirs,o=u.mkdirsSync,a=CS(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=kS(),f=l.symlinkType,h=l.symlinkTypeSync,m=xt().pathExists;function v(E,d,y,D){D=typeof y=="function"?y:D,y=typeof y=="function"?!1:y,m(d,(g,A)=>{if(g)return D(g);if(A)return D(null);c(E,d,(b,k)=>{if(b)return D(b);E=k.toDst,f(k.toCwd,y,(x,F)=>{if(x)return D(x);let w=n.dirname(d);m(w,(O,P)=>{if(O)return D(O);if(P)return i.symlink(E,d,F,D);s(w,C=>{if(C)return D(C);i.symlink(E,d,F,D)})})})})})}function _(E,d,y){if(i.existsSync(d))return;let D=p(E,d);E=D.toDst,y=h(D.toCwd,y);let g=n.dirname(d);return i.existsSync(g)||o(g),i.symlinkSync(E,d,y)}t.exports={createSymlink:r(v),createSymlinkSync:_}}),RS=W((e,t)=>{"use strict";G();var r=DS(),n=wS(),i=FS();t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),OS=W((e,t)=>{G();var r;try{r=Re()}catch{r=ue("fs")}function n(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var h=l.fs||r,m=!0;"throws"in l&&(m=l.throws),h.readFile(p,l,function(v,_){if(v)return f(v);_=a(_);var E;try{E=JSON.parse(_,l?l.reviver:null)}catch(d){return m?(d.message=p+": "+d.message,f(d)):f(null,null)}f(null,E)})}function i(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,h=!0;"throws"in l&&(h=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(v){if(h)throw v.message=p+": "+v.message,v;return null}}function u(p,l){var f,h=`
40
+ `;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(h=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,h)+h}function s(p,l,f,h){h==null&&(h=f,f={}),f=f||{};var m=f.fs||r,v="";try{v=u(l,f)}catch(_){h&&h(_,null);return}m.writeFile(p,v,f,h)}function o(p,l,f){f=f||{};var h=f.fs||r,m=u(l,f);return h.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:n,readFileSync:i,writeFile:s,writeFileSync:o};t.exports=c}),da=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=OS();t.exports={readJson:r(n.readFile),readJsonSync:n.readFileSync,writeJson:r(n.writeFile),writeJsonSync:n.writeFileSync}}),TS=W((e,t)=>{"use strict";G();var r=ue("path"),n=it(),i=xt().pathExists,u=da();function s(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);i(l,(f,h)=>{if(f)return p(f);if(h)return u.writeJson(o,a,c,p);n.mkdirs(l,m=>{if(m)return p(m);u.writeJson(o,a,c,p)})})}t.exports=s}),PS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=it(),u=da();function s(o,a,c){let p=n.dirname(o);r.existsSync(p)||i.mkdirsSync(p),u.writeJsonSync(o,a,c)}t.exports=s}),LS=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=da();n.outputJson=r(TS()),n.outputJsonSync=PS(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,t.exports=n}),IS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=Yf().copySync,u=yi().removeSync,s=it().mkdirpSync,o=gi();function a(f,h,m){m=m||{};let v=m.overwrite||m.clobber||!1,{srcStat:_}=o.checkPathsSync(f,h,"move");return o.checkParentPathsSync(f,_,h,"move"),s(n.dirname(h)),c(f,h,v)}function c(f,h,m){if(m)return u(h),p(f,h,m);if(r.existsSync(h))throw new Error("dest already exists.");return p(f,h,m)}function p(f,h,m){try{r.renameSync(f,h)}catch(v){if(v.code!=="EXDEV")throw v;return l(f,h,m)}}function l(f,h,m){return i(f,h,{overwrite:m,errorOnExist:!0}),u(f)}t.exports=a}),NS=W((e,t)=>{"use strict";G(),t.exports={moveSync:IS()}}),BS=W((e,t)=>{"use strict";G();var r=Re(),n=ue("path"),i=Kf().copy,u=yi().remove,s=it().mkdirp,o=xt().pathExists,a=gi();function c(h,m,v,_){typeof v=="function"&&(_=v,v={});let E=v.overwrite||v.clobber||!1;a.checkPaths(h,m,"move",(d,y)=>{if(d)return _(d);let{srcStat:D}=y;a.checkParentPaths(h,D,m,"move",g=>{if(g)return _(g);s(n.dirname(m),A=>A?_(A):p(h,m,E,_))})})}function p(h,m,v,_){if(v)return u(m,E=>E?_(E):l(h,m,v,_));o(m,(E,d)=>E?_(E):d?_(new Error("dest already exists.")):l(h,m,v,_))}function l(h,m,v,_){r.rename(h,m,E=>E?E.code!=="EXDEV"?_(E):f(h,m,v,_):_())}function f(h,m,v,_){i(h,m,{overwrite:v,errorOnExist:!0},E=>E?_(E):u(h,_))}t.exports=c}),MS=W((e,t)=>{"use strict";G();var r=ze().fromCallback;t.exports={move:r(BS())}}),jS=W((e,t)=>{"use strict";G();var r=ze().fromCallback,n=Re(),i=ue("path"),u=it(),s=xt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let h=i.dirname(c);s(h,(m,v)=>{if(m)return f(m);if(v)return n.writeFile(c,p,l,f);u.mkdirs(h,_=>{if(_)return f(_);n.writeFile(c,p,l,f)})})}function a(c,...p){let l=i.dirname(c);if(n.existsSync(l))return n.writeFileSync(c,...p);u.mkdirsSync(l),n.writeFileSync(c,...p)}t.exports={outputFile:r(o),outputFileSync:a}}),$S=W((e,t)=>{"use strict";G(),t.exports=Object.assign({},qf(),Yf(),Kf(),xS(),RS(),LS(),it(),NS(),MS(),jS(),xt(),yi());var r=ue("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get(){return r.promises}})});G();G();var HT=an(uS());G();G();function HS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}G();G();function sa(e){return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}G();function GS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qS(e,t){if(t&&(sa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GS(e)}G();function si(e){return si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},si(e)}G();G();function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},en(e,t)}function US(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}G();G();function WS(e){return Function.toString.call(e).indexOf("[native code]")!==-1}G();G();function YS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oi(e,t,r){return YS()?oi=Reflect.construct.bind():oi=function(n,i,u){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),a=new o;return u&&en(a,u.prototype),a},oi.apply(null,arguments)}function aa(e){var t=typeof Map=="function"?new Map:void 0;return aa=function(r){if(r===null||!WS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return oi(r,arguments,si(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),en(n,r)},aa(e)}var GT=an(hS()),qT=an($S()),UT=function(e){US(t,e);function t(r){var n;return HS(this,t),n=qS(this,si(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(aa(Error));G();var KS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,u)=>[].concat(i,u),[])}e.flatten=t;function r(n,i){let u=[[]],s=0;for(let o of n)i(o)?(s++,u[s]=[]):u[s].push(o);return u}e.splitWhen=r}),VS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}),QS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}),XS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var t=ue("path"),r=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(a){return a.replace(/\\/g,"/")}e.unixify=i;function u(a,c){return t.resolve(a,c)}e.makeAbsolute=u;function s(a){return a.replace(n,"\\$2")}e.escape=s;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}e.removeLeadingDotSegment=o}),JS=W((e,t)=>{G(),t.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1}}),ZS=W((e,t)=>{G();var r=JS(),n={"{":"}","(":")","[":"]"},i=function(s){if(s[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||a!==-1&&s[o]==="("&&s[o+1]!=="|"&&(a<o&&(a=s.indexOf("|",o)),a!==-1&&s[a+1]!==")"&&(l=s.indexOf(")",a),l>a&&(f=s.indexOf("\\",a),f===-1||f>l))))return!0;if(s[o]==="\\"){var h=s[o+1];o+=2;var m=n[h];if(m){var v=s.indexOf(m,o);v!==-1&&(o=v+1)}if(s[o]==="!")return!0}else o++}return!1},u=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var a=s[o+1];o+=2;var c=n[a];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};t.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var a=i;return o&&o.strict===!1&&(a=u),a(s)}}),zS=W((e,t)=>{"use strict";G();var r=ZS(),n=ue("path").posix.dirname,i=ue("os").platform()==="win32",u="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&i&&p.indexOf(u)<0&&(p=p.replace(s,u)),o.test(p)&&(p+=u),p+="a";do p=n(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),ha=W(e=>{"use strict";G(),e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{let i=t.nodes[r];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{let r=[],n=i=>{for(let u=0;u<i.length;u++){let s=i[u];Array.isArray(s)?n(s,r):s!==void 0&&r.push(s)}return r};return n(t),r}}),ma=W((e,t)=>{"use strict";G();var r=ha();t.exports=(n,i={})=>{let u=(s,o={})=>{let a=i.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&i.escapeInvalid===!0,p="";if(s.value)return(a||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=u(l);return p};return u(n)}}),eA=W((e,t)=>{"use strict";G(),t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),tA=W((e,t)=>{"use strict";G();var r=eA(),n=(d,y,D)=>{if(r(d)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(y===void 0||d===y)return String(d);if(r(y)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let g={relaxZeros:!0,...D};typeof g.strictZeros=="boolean"&&(g.relaxZeros=g.strictZeros===!1);let A=String(g.relaxZeros),b=String(g.shorthand),k=String(g.capture),x=String(g.wrap),F=d+":"+y+"="+A+b+k+x;if(n.cache.hasOwnProperty(F))return n.cache[F].result;let w=Math.min(d,y),O=Math.max(d,y);if(Math.abs(w-O)===1){let L=d+"|"+y;return g.capture?`(${L})`:g.wrap===!1?L:`(?:${L})`}let P=_(d)||_(y),C={min:d,max:y,a:w,b:O},S=[],R=[];if(P&&(C.isPadded=P,C.maxLen=String(C.max).length),w<0){let L=O<0?Math.abs(O):1;R=o(L,Math.abs(w),C,g),w=C.a=0}return O>=0&&(S=o(w,O,C,g)),C.negatives=R,C.positives=S,C.result=i(R,S,g),g.capture===!0?C.result=`(${C.result})`:g.wrap!==!1&&S.length+R.length>1&&(C.result=`(?:${C.result})`),n.cache[F]=C,C.result};function i(d,y,D){let g=a(d,y,"-",!1,D)||[],A=a(y,d,"",!1,D)||[],b=a(d,y,"-?",!0,D)||[];return g.concat(b).concat(A).join("|")}function u(d,y){let D=1,g=1,A=f(d,D),b=new Set([y]);for(;d<=A&&A<=y;)b.add(A),D+=1,A=f(d,D);for(A=h(y+1,g)-1;d<A&&A<=y;)b.add(A),g+=1,A=h(y+1,g)-1;return b=[...b],b.sort(p),b}function s(d,y,D){if(d===y)return{pattern:d,count:[],digits:0};let g=c(d,y),A=g.length,b="",k=0;for(let x=0;x<A;x++){let[F,w]=g[x];F===w?b+=F:F!=="0"||w!=="9"?b+=v(F,w,D):k++}return k&&(b+=D.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[k],digits:A}}function o(d,y,D,g){let A=u(d,y),b=[],k=d,x;for(let F=0;F<A.length;F++){let w=A[F],O=s(String(k),String(w),g),P="";if(!D.isPadded&&x&&x.pattern===O.pattern){x.count.length>1&&x.count.pop(),x.count.push(O.count[0]),x.string=x.pattern+m(x.count),k=w+1;continue}D.isPadded&&(P=E(w,D,g)),O.string=P+O.pattern+m(O.count),b.push(O),k=w+1,x=O}return b}function a(d,y,D,g,A){let b=[];for(let k of d){let{string:x}=k;!g&&!l(y,"string",x)&&b.push(D+x),g&&l(y,"string",x)&&b.push(D+x)}return b}function c(d,y){let D=[];for(let g=0;g<d.length;g++)D.push([d[g],y[g]]);return D}function p(d,y){return d>y?1:y>d?-1:0}function l(d,y,D){return d.some(g=>g[y]===D)}function f(d,y){return Number(String(d).slice(0,-y)+"9".repeat(y))}function h(d,y){return d-d%Math.pow(10,y)}function m(d){let[y=0,D=""]=d;return D||y>1?`{${y+(D?","+D:"")}}`:""}function v(d,y,D){return`[${d}${y-d===1?"":"-"}${y}]`}function _(d){return/^-?(0+)\d/.test(d)}function E(d,y,D){if(!y.isPadded)return d;let g=Math.abs(y.maxLen-String(d).length),A=D.relaxZeros!==!1;switch(g){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${g}}`:`0{${g}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}),Vf=W((e,t)=>{"use strict";G();var r=ue("util"),n=tA(),i=g=>g!==null&&typeof g=="object"&&!Array.isArray(g),u=g=>A=>g===!0?Number(A):String(A),s=g=>typeof g=="number"||typeof g=="string"&&g!=="",o=g=>Number.isInteger(+g),a=g=>{let A=`${g}`,b=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++b]==="0";);return b>0},c=(g,A,b)=>typeof g=="string"||typeof A=="string"?!0:b.stringify===!0,p=(g,A,b)=>{if(A>0){let k=g[0]==="-"?"-":"";k&&(g=g.slice(1)),g=k+g.padStart(k?A-1:A,"0")}return b===!1?String(g):g},l=(g,A)=>{let b=g[0]==="-"?"-":"";for(b&&(g=g.slice(1),A--);g.length<A;)g="0"+g;return b?"-"+g:g},f=(g,A)=>{g.negatives.sort((w,O)=>w<O?-1:w>O?1:0),g.positives.sort((w,O)=>w<O?-1:w>O?1:0);let b=A.capture?"":"?:",k="",x="",F;return g.positives.length&&(k=g.positives.join("|")),g.negatives.length&&(x=`-(${b}${g.negatives.join("|")})`),k&&x?F=`${k}|${x}`:F=k||x,A.wrap?`(${b}${F})`:F},h=(g,A,b,k)=>{if(b)return n(g,A,{wrap:!1,...k});let x=String.fromCharCode(g);if(g===A)return x;let F=String.fromCharCode(A);return`[${x}-${F}]`},m=(g,A,b)=>{if(Array.isArray(g)){let k=b.wrap===!0,x=b.capture?"":"?:";return k?`(${x}${g.join("|")})`:g.join("|")}return n(g,A,b)},v=(...g)=>new RangeError("Invalid range arguments: "+r.inspect(...g)),_=(g,A,b)=>{if(b.strictRanges===!0)throw v([g,A]);return[]},E=(g,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${g}" to be a number`);return[]},d=(g,A,b=1,k={})=>{let x=Number(g),F=Number(A);if(!Number.isInteger(x)||!Number.isInteger(F)){if(k.strictRanges===!0)throw v([g,A]);return[]}x===0&&(x=0),F===0&&(F=0);let w=x>F,O=String(g),P=String(A),C=String(b);b=Math.max(Math.abs(b),1);let S=a(O)||a(P)||a(C),R=S?Math.max(O.length,P.length,C.length):0,L=S===!1&&c(g,A,k)===!1,M=k.transform||u(L);if(k.toRegex&&b===1)return h(l(g,R),l(A,R),!0,k);let B={negatives:[],positives:[]},Q=N=>B[N<0?"negatives":"positives"].push(Math.abs(N)),Z=[],oe=0;for(;w?x>=F:x<=F;)k.toRegex===!0&&b>1?Q(x):Z.push(p(M(x,oe),R,L)),x=w?x-b:x+b,oe++;return k.toRegex===!0?b>1?f(B,k):m(Z,null,{wrap:!1,...k}):Z},y=(g,A,b=1,k={})=>{if(!o(g)&&g.length>1||!o(A)&&A.length>1)return _(g,A,k);let x=k.transform||(L=>String.fromCharCode(L)),F=`${g}`.charCodeAt(0),w=`${A}`.charCodeAt(0),O=F>w,P=Math.min(F,w),C=Math.max(F,w);if(k.toRegex&&b===1)return h(P,C,!1,k);let S=[],R=0;for(;O?F>=w:F<=w;)S.push(x(F,R)),F=O?F-b:F+b,R++;return k.toRegex===!0?m(S,null,{wrap:!1,options:k}):S},D=(g,A,b,k={})=>{if(A==null&&s(g))return[g];if(!s(g)||!s(A))return _(g,A,k);if(typeof b=="function")return D(g,A,1,{transform:b});if(i(b))return D(g,A,0,b);let x={...k};return x.capture===!0&&(x.wrap=!0),b=b||x.step||1,o(b)?o(g)&&o(A)?d(g,A,b,x):y(g,A,Math.max(Math.abs(b),1),x):b!=null&&!i(b)?E(b,x):D(g,A,1,b)};t.exports=D}),rA=W((e,t)=>{"use strict";G();var r=Vf(),n=ha(),i=(u,s={})=>{let o=(a,c={})=>{let p=n.isInvalidBrace(c),l=a.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,h=s.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return h+a.value;if(a.type==="open")return f?h+a.value:"(";if(a.type==="close")return f?h+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let v=n.reduce(a.nodes),_=r(...v,{...s,wrap:!1,toRegex:!0});if(_.length!==0)return v.length>1&&_.length>1?`(${_})`:_}if(a.nodes)for(let v of a.nodes)m+=o(v,a);return m};return o(u)};t.exports=i}),nA=W((e,t)=>{"use strict";G();var r=Vf(),n=ma(),i=ha(),u=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?i.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(u(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?u(l,f,c):l+f);return i.flatten(p)},s=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let h=f,m=f.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,m=h.queue;if(l.invalid||l.dollar){m.push(u(m.pop(),n(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(u(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let d=i.reduce(l.nodes);if(i.exceedsLimit(...d,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let y=r(...d,a);y.length===0&&(y=n(l,a)),m.push(u(m.pop(),y)),l.nodes=[];return}let v=i.encloseBrace(l),_=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;for(let d=0;d<l.nodes.length;d++){let y=l.nodes[d];if(y.type==="comma"&&l.type==="brace"){d===1&&_.push(""),_.push("");continue}if(y.type==="close"){m.push(u(m.pop(),_,v));continue}if(y.value&&y.type!=="open"){_.push(u(_.pop(),y.value));continue}y.nodes&&p(y,l)}return _};return i.flatten(p(o))};t.exports=s}),iA=W((e,t)=>{"use strict";G(),t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
41
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),oA=W((e,t)=>{"use strict";G();var r=ma(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:v,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=iA(),d=(y,D={})=>{if(typeof y!="string")throw new TypeError("Expected a string");let g=D||{},A=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n;if(y.length>A)throw new SyntaxError(`Input length (${y.length}), exceeds max characters (${A})`);let b={type:"root",input:y,nodes:[]},k=[b],x=b,F=b,w=0,O=y.length,P=0,C=0,S,R={},L=()=>y[P++],M=B=>{if(B.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&B.type==="text"){F.value+=B.value;return}return x.nodes.push(B),B.parent=x,B.prev=F,F=B,B};for(M({type:"bos"});P<O;)if(x=k[k.length-1],S=L(),!(S===E||S===_)){if(S===i){M({type:"text",value:(D.keepEscaping?S:"")+L()});continue}if(S===h){M({type:"text",value:"\\"+S});continue}if(S===f){w++;let B=!0,Q;for(;P<O&&(Q=L());){if(S+=Q,Q===f){w++;continue}if(Q===i){S+=L();continue}if(Q===h&&(w--,w===0))break}M({type:"text",value:S});continue}if(S===a){x=M({type:"paren",nodes:[]}),k.push(x),M({type:"text",value:S});continue}if(S===c){if(x.type!=="paren"){M({type:"text",value:S});continue}x=k.pop(),M({type:"text",value:S}),x=k[k.length-1];continue}if(S===m||S===v||S===u){let B=S,Q;for(D.keepQuotes!==!0&&(S="");P<O&&(Q=L());){if(Q===i){S+=Q+L();continue}if(Q===B){D.keepQuotes===!0&&(S+=Q);break}S+=Q}M({type:"text",value:S});continue}if(S===p){C++;let B=F.value&&F.value.slice(-1)==="$"||x.dollar===!0;x=M({type:"brace",open:!0,close:!1,dollar:B,depth:C,commas:0,ranges:0,nodes:[]}),k.push(x),M({type:"open",value:S});continue}if(S===l){if(x.type!=="brace"){M({type:"text",value:S});continue}let B="close";x=k.pop(),x.close=!0,M({type:B,value:S}),C--,x=k[k.length-1];continue}if(S===s&&C>0){if(x.ranges>0){x.ranges=0;let B=x.nodes.shift();x.nodes=[B,{type:"text",value:r(x)}]}M({type:"comma",value:S}),x.commas++;continue}if(S===o&&C>0&&x.commas===0){let B=x.nodes;if(C===0||B.length===0){M({type:"text",value:S});continue}if(F.type==="dot"){if(x.range=[],F.value+=S,F.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,F.type="text";continue}x.ranges++,x.args=[];continue}if(F.type==="range"){B.pop();let Q=B[B.length-1];Q.value+=F.value+S,F=Q,x.ranges--;continue}M({type:"dot",value:S});continue}M({type:"text",value:S})}do if(x=k.pop(),x.type!=="root"){x.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let B=k[k.length-1],Q=B.nodes.indexOf(x);B.nodes.splice(Q,1,...x.nodes)}while(k.length>0);return M({type:"eos"}),b};t.exports=d}),sA=W((e,t)=>{"use strict";G();var r=ma(),n=rA(),i=nA(),u=oA(),s=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,a={})=>u(o,a),s.stringify=(o,a={})=>r(typeof o=="string"?s.parse(o,a):o,a),s.compile=(o,a={})=>(typeof o=="string"&&(o=s.parse(o,a)),n(o,a)),s.expand=(o,a={})=>{typeof o=="string"&&(o=s.parse(o,a));let c=i(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?s.compile(o,a):s.expand(o,a),t.exports=s}),vi=W((e,t)=>{"use strict";G();var r=ue("path"),n="\\\\/",i=`[^${n}]`,u="\\.",s="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,h=`${u}{1,2}${l}`,m=`(?!${u})`,v=`(?!${f}${h})`,_=`(?!${u}{0,1}${l})`,E=`(?!${h})`,d=`[^.${a}]`,y=`${p}*?`,D={DOT_LITERAL:u,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:v,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:d,STAR:y,START_ANCHOR:f},g={...D,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${u}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${n}])${u}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},A={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,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(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?g:D}}}),_i=W(e=>{"use strict";G();var t=ue("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:s}=vi();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>u.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(s,"\\$1"),e.toPosixSlashes=o=>o.replace(n,"/"),e.removeBackslashes=o=>o.replace(i,a=>a==="\\"?"":a),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?e.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},e.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},e.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),aA=W((e,t)=>{"use strict";G();var r=_i(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:v,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=vi(),d=g=>g===c||g===u,y=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},D=(g,A)=>{let b=A||{},k=g.length-1,x=b.parts===!0||b.scanToEnd===!0,F=[],w=[],O=[],P=g,C=-1,S=0,R=0,L=!1,M=!1,B=!1,Q=!1,Z=!1,oe=!1,N=!1,le=!1,pe=!1,ne=!1,T=0,I,$,Y={value:"",depth:0,isGlob:!1},K=()=>C>=k,z=()=>P.charCodeAt(C+1),J=()=>(I=$,P.charCodeAt(++C));for(;C<k;){$=J();let re;if($===u){N=Y.backslashes=!0,$=J(),$===p&&(oe=!0);continue}if(oe===!0||$===p){for(T++;K()!==!0&&($=J());){if($===u){N=Y.backslashes=!0,J();continue}if($===p){T++;continue}if(oe!==!0&&$===o&&($=J())===o){if(L=Y.isBrace=!0,B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if(oe!==!0&&$===s){if(L=Y.isBrace=!0,B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if($===v&&(T--,T===0)){oe=!1,L=Y.isBrace=!0,ne=!0;break}}if(x===!0)continue;break}if($===c){if(F.push(C),w.push(Y),Y={value:"",depth:0,isGlob:!1},ne===!0)continue;if(I===o&&C===S+1){S+=2;continue}R=C+1;continue}if(b.noext!==!0&&($===h||$===i||$===n||$===m||$===a)&&z()===l){if(B=Y.isGlob=!0,Q=Y.isExtglob=!0,ne=!0,$===a&&C===S&&(pe=!0),x===!0){for(;K()!==!0&&($=J());){if($===u){N=Y.backslashes=!0,$=J();continue}if($===_){B=Y.isGlob=!0,ne=!0;break}}continue}break}if($===n){if(I===n&&(Z=Y.isGlobstar=!0),B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if($===m){if(B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if($===f){for(;K()!==!0&&(re=J());){if(re===u){N=Y.backslashes=!0,J();continue}if(re===E){M=Y.isBracket=!0,B=Y.isGlob=!0,ne=!0;break}}if(x===!0)continue;break}if(b.nonegate!==!0&&$===a&&C===S){le=Y.negated=!0,S++;continue}if(b.noparen!==!0&&$===l){if(B=Y.isGlob=!0,x===!0){for(;K()!==!0&&($=J());){if($===l){N=Y.backslashes=!0,$=J();continue}if($===_){ne=!0;break}}continue}break}if(B===!0){if(ne=!0,x===!0)continue;break}}b.noext===!0&&(Q=!1,B=!1);let ee=P,ie="",ge="";S>0&&(ie=P.slice(0,S),P=P.slice(S),R-=S),ee&&B===!0&&R>0?(ee=P.slice(0,R),ge=P.slice(R)):B===!0?(ee="",ge=P):ee=P,ee&&ee!==""&&ee!=="/"&&ee!==P&&d(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),b.unescape===!0&&(ge&&(ge=r.removeBackslashes(ge)),ee&&N===!0&&(ee=r.removeBackslashes(ee)));let se={prefix:ie,input:g,start:S,base:ee,glob:ge,isBrace:L,isBracket:M,isGlob:B,isExtglob:Q,isGlobstar:Z,negated:le,negatedExtglob:pe};if(b.tokens===!0&&(se.maxDepth=0,d($)||w.push(Y),se.tokens=w),b.parts===!0||b.tokens===!0){let re;for(let Ee=0;Ee<F.length;Ee++){let Ut=re?re+1:S,V=F[Ee],fe=g.slice(Ut,V);b.tokens&&(Ee===0&&S!==0?(w[Ee].isPrefix=!0,w[Ee].value=ie):w[Ee].value=fe,y(w[Ee]),se.maxDepth+=w[Ee].depth),(Ee!==0||fe!=="")&&O.push(fe),re=V}if(re&&re+1<g.length){let Ee=g.slice(re+1);O.push(Ee),b.tokens&&(w[w.length-1].value=Ee,y(w[w.length-1]),se.maxDepth+=w[w.length-1].depth)}se.slashes=F,se.parts=O}return se};t.exports=D}),uA=W((e,t)=>{"use strict";G();var r=vi(),n=_i(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...f,h);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(v=>n.escapeRegex(v)).join("..")}return m},p=(f,h)=>`Missing ${f}: "${h}" - use "\\\\${h}" to match literal characters`,l=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...h},v=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,_=f.length;if(_>v)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${v}`);let E={type:"bos",value:"",output:m.prepend||""},d=[E],y=m.capture?"":"?:",D=n.isWindows(h),g=r.globChars(D),A=r.extglobChars(g),{DOT_LITERAL:b,PLUS_LITERAL:k,SLASH_LITERAL:x,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:O,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:S,QMARK_NO_DOT:R,STAR:L,START_ANCHOR:M}=g,B=V=>`(${y}(?:(?!${M}${V.dot?w:b}).)*?)`,Q=m.dot?"":O,Z=m.dot?S:R,oe=m.bash===!0?B(m):L;m.capture&&(oe=`(${oe})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:d};f=n.removePrefix(f,N),_=f.length;let le=[],pe=[],ne=[],T=E,I,$=()=>N.index===_-1,Y=N.peek=(V=1)=>f[N.index+V],K=N.advance=()=>f[++N.index]||"",z=()=>f.slice(N.index+1),J=(V="",fe=0)=>{N.consumed+=V,N.index+=fe},ee=V=>{N.output+=V.output!=null?V.output:V.value,J(V.value)},ie=()=>{let V=1;for(;Y()==="!"&&(Y(2)!=="("||Y(3)==="?");)K(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ge=V=>{N[V]++,ne.push(V)},se=V=>{N[V]--,ne.pop()},re=V=>{if(T.type==="globstar"){let fe=N.braces>0&&(V.type==="comma"||V.type==="brace"),q=V.extglob===!0||le.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!fe&&!q&&(N.output=N.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,N.output+=T.output)}if(le.length&&V.type!=="paren"&&(le[le.length-1].inner+=V.value),(V.value||V.output)&&ee(V),T&&T.type==="text"&&V.type==="text"){T.value+=V.value,T.output=(T.output||"")+V.value;return}V.prev=T,d.push(V),T=V},Ee=(V,fe)=>{let q={...A[fe],conditions:1,inner:""};q.prev=T,q.parens=N.parens,q.output=N.output;let ce=(m.capture?"(":"")+q.open;ge("parens"),re({type:V,value:fe,output:N.output?"":F}),re({type:"paren",extglob:!0,value:K(),output:ce}),le.push(q)},Ut=V=>{let fe=V.close+(m.capture?")":""),q;if(V.type==="negate"){let ce=oe;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(ce=B(m)),(ce!==oe||$()||/^\)+$/.test(z()))&&(fe=V.close=`)$))${ce}`),V.inner.includes("*")&&(q=z())&&/^\.[^\\/.]+$/.test(q)){let ve=l(q,{...h,fastpaths:!1}).output;fe=V.close=`)${ve})${ce})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:fe}),se("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,fe=f.replace(o,(q,ce,ve,Ae,_e,Wt)=>Ae==="\\"?(V=!0,q):Ae==="?"?ce?ce+Ae+(_e?S.repeat(_e.length):""):Wt===0?Z+(_e?S.repeat(_e.length):""):S.repeat(ve.length):Ae==="."?b.repeat(ve.length):Ae==="*"?ce?ce+Ae+(_e?oe:""):oe:ce?q:`\\${q}`);return V===!0&&(m.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),fe===f&&m.contains===!0?(N.output=f,N):(N.output=n.wrapOutput(fe,N,h),N)}for(;!$();){if(I=K(),I==="\0")continue;if(I==="\\"){let q=Y();if(q==="/"&&m.bash!==!0||q==="."||q===";")continue;if(!q){I+="\\",re({type:"text",value:I});continue}let ce=/^\\+/.exec(z()),ve=0;if(ce&&ce[0].length>2&&(ve=ce[0].length,N.index+=ve,ve%2!==0&&(I+="\\")),m.unescape===!0?I=K():I+=K(),N.brackets===0){re({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||T.value==="["||T.value==="[^")){if(m.posix!==!1&&I===":"){let q=T.value.slice(1);if(q.includes("[")&&(T.posix=!0,q.includes(":"))){let ce=T.value.lastIndexOf("["),ve=T.value.slice(0,ce),Ae=T.value.slice(ce+2),_e=u[Ae];if(_e){T.value=ve+_e,N.backtrack=!0,K(),!E.output&&d.indexOf(T)===1&&(E.output=F);continue}}}(I==="["&&Y()!==":"||I==="-"&&Y()==="]")&&(I=`\\${I}`),I==="]"&&(T.value==="["||T.value==="[^")&&(I=`\\${I}`),m.posix===!0&&I==="!"&&T.value==="["&&(I="^"),T.value+=I,ee({value:I});continue}if(N.quotes===1&&I!=='"'){I=n.escapeRegex(I),T.value+=I,ee({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ge("parens"),re({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let q=le[le.length-1];if(q&&N.parens===q.parens+1){Ut(le.pop());continue}re({type:"paren",value:I,output:N.parens?")":"\\)"}),se("parens");continue}if(I==="["){if(m.nobracket===!0||!z().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));I=`\\${I}`}else ge("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(m.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}se("brackets");let q=T.value.slice(1);if(T.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(I=`/${I}`),T.value+=I,ee({value:I}),m.literalBrackets===!1||n.hasRegexChars(q))continue;let ce=n.escapeRegex(T.value);if(N.output=N.output.slice(0,-T.value.length),m.literalBrackets===!0){N.output+=ce,T.value=ce;continue}T.value=`(${y}${ce}|${T.value})`,N.output+=T.value;continue}if(I==="{"&&m.nobrace!==!0){ge("braces");let q={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};pe.push(q),re(q);continue}if(I==="}"){let q=pe[pe.length-1];if(m.nobrace===!0||!q){re({type:"text",value:I,output:I});continue}let ce=")";if(q.dots===!0){let ve=d.slice(),Ae=[];for(let _e=ve.length-1;_e>=0&&(d.pop(),ve[_e].type!=="brace");_e--)ve[_e].type!=="dots"&&Ae.unshift(ve[_e].value);ce=c(Ae,m),N.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let ve=N.output.slice(0,q.outputIndex),Ae=N.tokens.slice(q.tokensIndex);q.value=q.output="\\{",I=ce="\\}",N.output=ve;for(let _e of Ae)N.output+=_e.output||_e.value}re({type:"brace",value:I,output:ce}),se("braces"),pe.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let q=I,ce=pe[pe.length-1];ce&&ne[ne.length-1]==="braces"&&(ce.comma=!0,q="|"),re({type:"comma",value:I,output:q});continue}if(I==="/"){if(T.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",d.pop(),T=E;continue}re({type:"slash",value:I,output:x});continue}if(I==="."){if(N.braces>0&&T.type==="dot"){T.value==="."&&(T.output=b);let q=pe[pe.length-1];T.type="dots",T.output+=I,T.value+=I,q.dots=!0;continue}if(N.braces+N.parens===0&&T.type!=="bos"&&T.type!=="slash"){re({type:"text",value:I,output:b});continue}re({type:"dot",value:I,output:b});continue}if(I==="?"){if(!(T&&T.value==="(")&&m.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){Ee("qmark",I);continue}if(T&&T.type==="paren"){let q=Y(),ce=I;if(q==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(z()))&&(ce=`\\${I}`),re({type:"text",value:I,output:ce});continue}if(m.dot!==!0&&(T.type==="slash"||T.type==="bos")){re({type:"qmark",value:I,output:R});continue}re({type:"qmark",value:I,output:S});continue}if(I==="!"){if(m.noextglob!==!0&&Y()==="("&&(Y(2)!=="?"||!/[!=<:]/.test(Y(3)))){Ee("negate",I);continue}if(m.nonegate!==!0&&N.index===0){ie();continue}}if(I==="+"){if(m.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){Ee("plus",I);continue}if(T&&T.value==="("||m.regex===!1){re({type:"plus",value:I,output:k});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||N.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:k});continue}if(I==="@"){if(m.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let q=s.exec(z());q&&(I+=q[0],N.index+=q[0].length),re({type:"text",value:I});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=I,T.output=oe,N.backtrack=!0,N.globstar=!0,J(I);continue}let V=z();if(m.noextglob!==!0&&/^\([^?]/.test(V)){Ee("star",I);continue}if(T.type==="star"){if(m.noglobstar===!0){J(I);continue}let q=T.prev,ce=q.prev,ve=q.type==="slash"||q.type==="bos",Ae=ce&&(ce.type==="star"||ce.type==="globstar");if(m.bash===!0&&(!ve||V[0]&&V[0]!=="/")){re({type:"star",value:I,output:""});continue}let _e=N.braces>0&&(q.type==="comma"||q.type==="brace"),Wt=le.length&&(q.type==="pipe"||q.type==="paren");if(!ve&&q.type!=="paren"&&!_e&&!Wt){re({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let vt=f[N.index+4];if(vt&&vt!=="/")break;V=V.slice(3),J("/**",3)}if(q.type==="bos"&&$()){T.type="globstar",T.value+=I,T.output=B(m),N.output=T.output,N.globstar=!0,J(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!Ae&&$()){N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=B(m)+(m.strictSlashes?")":"|$)"),T.value+=I,N.globstar=!0,N.output+=q.output+T.output,J(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&V[0]==="/"){let vt=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=`${B(m)}${x}|${x}${vt})`,T.value+=I,N.output+=q.output+T.output,N.globstar=!0,J(I+K()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&V[0]==="/"){T.type="globstar",T.value+=I,T.output=`(?:^|${x}|${B(m)}${x})`,N.output=T.output,N.globstar=!0,J(I+K()),re({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-T.output.length),T.type="globstar",T.output=B(m),T.value+=I,N.output+=T.output,N.globstar=!0,J(I);continue}let fe={type:"star",value:I,output:oe};if(m.bash===!0){fe.output=".*?",(T.type==="bos"||T.type==="slash")&&(fe.output=Q+fe.output),re(fe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&m.regex===!0){fe.output=I,re(fe);continue}(N.index===N.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(N.output+=P,T.output+=P):m.dot===!0?(N.output+=C,T.output+=C):(N.output+=Q,T.output+=Q),Y()!=="*"&&(N.output+=F,T.output+=F)),re(fe)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=n.escapeLast(N.output,"["),se("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=n.escapeLast(N.output,"("),se("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=n.escapeLast(N.output,"{"),se("braces")}if(m.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${x}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,h)=>{let m={...h},v=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,_=f.length;if(_>v)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${v}`);f=a[f]||f;let E=n.isWindows(h),{DOT_LITERAL:d,SLASH_LITERAL:y,ONE_CHAR:D,DOTS_SLASH:g,NO_DOT:A,NO_DOTS:b,NO_DOTS_SLASH:k,STAR:x,START_ANCHOR:F}=r.globChars(E),w=m.dot?b:A,O=m.dot?k:A,P=m.capture?"":"?:",C={negated:!1,prefix:""},S=m.bash===!0?".*?":x;m.capture&&(S=`(${S})`);let R=Q=>Q.noglobstar===!0?S:`(${P}(?:(?!${F}${Q.dot?g:d}).)*?)`,L=Q=>{switch(Q){case"*":return`${w}${D}${S}`;case".*":return`${d}${D}${S}`;case"*.*":return`${w}${S}${d}${D}${S}`;case"*/*":return`${w}${S}${y}${D}${O}${S}`;case"**":return w+R(m);case"**/*":return`(?:${w}${R(m)}${y})?${O}${D}${S}`;case"**/*.*":return`(?:${w}${R(m)}${y})?${O}${S}${d}${D}${S}`;case"**/.*":return`(?:${w}${R(m)}${y})?${d}${D}${S}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(Q);if(!Z)return;let oe=L(Z[1]);return oe?oe+d+Z[2]:void 0}}},M=n.removePrefix(f,C),B=L(M);return B&&m.strictSlashes!==!0&&(B+=`${y}?`),B},t.exports=l}),cA=W((e,t)=>{"use strict";G();var r=ue("path"),n=aA(),i=uA(),u=_i(),s=vi(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let y=c.map(D=>a(D,p,l));return D=>{for(let g of y){let A=g(D);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let h=p||{},m=u.isWindows(p),v=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),_=v.state;delete v.state;let E=()=>!1;if(h.ignore){let y={...p,ignore:null,onMatch:null,onResult:null};E=a(h.ignore,y,l)}let d=(y,D=!1)=>{let{isMatch:g,match:A,output:b}=a.test(y,v,p,{glob:c,posix:m}),k={glob:c,state:_,regex:v,posix:m,input:y,output:b,match:A,isMatch:g};return typeof h.onResult=="function"&&h.onResult(k),g===!1?(k.isMatch=!1,D?k:!1):E(y)?(typeof h.onIgnore=="function"&&h.onIgnore(k),k.isMatch=!1,D?k:!1):(typeof h.onMatch=="function"&&h.onMatch(k),D?k:!0)};return l&&(d.state=_),d};a.test=(c,p,l,{glob:f,posix:h}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},v=m.format||(h?u.toPosixSlashes:null),_=c===f,E=_&&v?v(c):c;return _===!1&&(E=v?v(c):c,_=E===f),(_===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?_=a.matchBase(c,p,l,h):_=p.exec(E)),{isMatch:Boolean(_),match:_,output:E}},a.matchBase=(c,p,l,f=u.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):i(c,{...p,fastpaths:!1}),a.scan=(c,p)=>n(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let h=p||{},m=h.contains?"":"^",v=h.contains?"":"$",_=`${m}(?:${c.output})${v}`;c&&c.negated===!0&&(_=`^(?!${_}).*$`);let E=a.toRegex(_,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(h.output=i.fastpaths(c,p)),h.output||(h=i(c,p)),a.compileRe(h,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,t.exports=a}),lA=W((e,t)=>{"use strict";G(),t.exports=cA()}),pA=W((e,t)=>{"use strict";G();var r=ue("util"),n=sA(),i=lA(),u=_i(),s=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,h=new Set,m=0,v=E=>{h.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let d=i(String(c[E]),{...p,onResult:v},!0),y=d.state.negated||d.state.negatedExtglob;y&&m++;for(let D of a){let g=d(D,!0);!(y?!g.isMatch:g.isMatch)||(y?l.add(g.output):(l.delete(g.output),f.add(g.output)))}}let _=(m===c.length?[...h]:[...f]).filter(E=>!l.has(E));if(p&&_.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return _};o.match=o,o.matcher=(a,c)=>i(a,c),o.isMatch=(a,c,p)=>i(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],h=v=>{p.onResult&&p.onResult(v),f.push(v.output)},m=new Set(o(a,c,{...p,onResult:h}));for(let v of f)m.has(v)||l.add(v);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!u.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let h of l)f[h]=a[h];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let h=i(String(f),p);if(l.some(m=>h(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let h=i(String(f),p);if(!l.every(m=>h(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>i(l,p)(a))},o.capture=(a,c,p)=>{let l=u.isWindows(p),f=i.makeRe(String(a),{...p,capture:!0}).exec(l?u.toPosixSlashes(c):c);if(f)return f.slice(1).map(h=>h===void 0?"":h)},o.makeRe=(...a)=>i.makeRe(...a),o.scan=(...a)=>i.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of n(String(l),c))p.push(i.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:n(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},t.exports=o}),fA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ue("path"),r=zS(),n=pA(),i="**",u="\\",s=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(L,M={}){return!f(L,M)}e.isStaticPattern=l;function f(L,M={}){return L===""?!1:!!(M.caseSensitiveMatch===!1||L.includes(u)||s.test(L)||o.test(L)||a.test(L)||M.extglob!==!1&&c.test(L)||M.braceExpansion!==!1&&h(L))}e.isDynamicPattern=f;function h(L){let M=L.indexOf("{");if(M===-1)return!1;let B=L.indexOf("}",M+1);if(B===-1)return!1;let Q=L.slice(M,B);return p.test(Q)}function m(L){return _(L)?L.slice(1):L}e.convertToPositivePattern=m;function v(L){return"!"+L}e.convertToNegativePattern=v;function _(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=_;function E(L){return!_(L)}e.isPositivePattern=E;function d(L){return L.filter(_)}e.getNegativePatterns=d;function y(L){return L.filter(E)}e.getPositivePatterns=y;function D(L){return L.filter(M=>!A(M))}e.getPatternsInsideCurrentDirectory=D;function g(L){return L.filter(A)}e.getPatternsOutsideCurrentDirectory=g;function A(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=A;function b(L){return r(L,{flipBackslashes:!1})}e.getBaseDirectory=b;function k(L){return L.includes(i)}e.hasGlobStar=k;function x(L){return L.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function F(L){let M=t.basename(L);return x(L)||l(M)}e.isAffectDepthOfReadingPattern=F;function w(L){return L.reduce((M,B)=>M.concat(O(B)),[])}e.expandPatternsWithBraceExpansion=w;function O(L){return n.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=O;function P(L,M){let{parts:B}=n.scan(L,Object.assign(Object.assign({},M),{parts:!0}));return B.length===0&&(B=[L]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=P;function C(L,M){return n.makeRe(L,M)}e.makeRe=C;function S(L,M){return L.map(B=>C(B,M))}e.convertPatternsToRe=S;function R(L,M){return M.some(B=>B.test(L))}e.matchAny=R}),dA=W((e,t)=>{"use strict";G();var r=ue("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=u;function u(){let o=[],a=i.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let h=n(p);function m(){for(let E=0,d=arguments.length;E<d;E++)o.push(s(arguments[E],p));return v(),this}function v(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(_);return}Array.isArray(E)||(E=[E]);let d=E.length+1;function y(){--d>0||(c=!1,v())}function D(g){function A(){g.removeListener("merge2UnpipeEnd",A),g.removeListener("end",A),f&&g.removeListener("error",b),y()}function b(k){h.emit("error",k)}if(g._readableState.endEmitted)return y();g.on("merge2UnpipeEnd",A),g.on("end",A),f&&g.on("error",b),g.pipe(h,{end:!1}),g.resume()}for(let g=0;g<E.length;g++)D(E[g]);y()}function _(){c=!1,h.emit("queueDrain"),l&&h.end()}return h.setMaxListeners(0),h.add=m,h.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),h}function s(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),hA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=dA();function r(i){let u=t(i);return i.forEach(s=>{s.once("error",o=>u.emit("error",o))}),u.once("close",()=>n(i)),u.once("end",()=>n(i)),u}e.merge=r;function n(i){i.forEach(u=>u.emit("close"))}}),mA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}),Mt=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=KS();e.array=t;var r=VS();e.errno=r;var n=QS();e.fs=n;var i=XS();e.path=i;var u=fA();e.pattern=u;var s=hA();e.stream=s;var o=mA();e.string=o}),gA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Mt();function r(c,p){let l=i(c),f=u(c,p.ignore),h=l.filter(E=>t.pattern.isStaticPattern(E,p)),m=l.filter(E=>t.pattern.isDynamicPattern(E,p)),v=n(h,f,!1),_=n(m,f,!0);return v.concat(_)}e.generate=r;function n(c,p,l){let f=[],h=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),v=s(h),_=s(m);return f.push(...o(v,p,l)),"."in _?f.push(a(".",m,p,l)):f.push(...o(_,p,l)),f}e.convertPatternsToTasks=n;function i(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=i;function u(c,p){return t.pattern.getNegativePatterns(c).concat(p).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function s(c){let p={};return c.reduce((l,f)=>{let h=t.pattern.getBaseDirectory(f);return h in l?l[h].push(f):l[h]=[f],l},p)}e.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}e.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=a}),yA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var t=/(?!^)\/{2,}/g;function r(i){return i.map(u=>n(u))}e.transform=r;function n(i){return i.replace(t,"/")}e.removeDuplicateSlashes=n}),vA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,u,s){u.fs.lstat(i,(o,a)=>{if(o!==null){r(s,o);return}if(!a.isSymbolicLink()||!u.followSymbolicLink){n(s,a);return}u.fs.stat(i,(c,p)=>{if(c!==null){if(u.throwErrorOnBrokenSymbolicLink){r(s,c);return}n(s,a);return}u.markSymbolicLink&&(p.isSymbolicLink=()=>!0),n(s,p)})})}e.read=t;function r(i,u){i(u)}function n(i,u){i(null,u)}}),_A=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let u=n.fs.statSync(r);return n.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw u}}e.read=t}),EA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}),SA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=EA(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=r}),Pr=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=vA(),r=_A(),n=SA();e.Settings=n.default;function i(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.stat=i;function u(o,a){let c=s(a);return r.read(o,c)}e.statSync=u;function s(o={}){return o instanceof n.default?o:new n.default(o)}}),AA=W((e,t)=>{G();var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),bA=W((e,t)=>{G(),t.exports=n;var r=AA();function n(i,u){let s,o,a,c=!0;Array.isArray(i)?(s=[],o=i.length):(a=Object.keys(i),s={},o=a.length);function p(f){function h(){u&&u(f,s),u=null}c?r(h):h()}function l(f,h,m){s[f]=m,(--o===0||h)&&p(h)}o?a?a.forEach(function(f){i[f](function(h,m){l(f,h,m)})}):i.forEach(function(f,h){f(function(m,v){l(h,m,v)})}):p(null),c=!1}}),Qf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,u=10,s=r>i,o=r===i&&n>=u;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),xA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}),Xf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=xA();e.fs=t}),Jf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}),DA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Pr(),r=bA(),n=Qf(),i=Xf(),u=Jf();function s(f,h,m){if(!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,h,m);return}c(f,h,m)}e.read=s;function o(f,h,m){h.fs.readdir(f,{withFileTypes:!0},(v,_)=>{if(v!==null){p(m,v);return}let E=_.map(y=>({dirent:y,name:y.name,path:u.joinPathSegments(f,y.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){l(m,E);return}let d=E.map(y=>a(y,h));r(d,(y,D)=>{if(y!==null){p(m,y);return}l(m,D)})})}e.readdirWithFileTypes=o;function a(f,h){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}h.fs.stat(f.path,(v,_)=>{if(v!==null){if(h.throwErrorOnBrokenSymbolicLink){m(v);return}m(null,f);return}f.dirent=i.fs.createDirentFromStats(f.name,_),m(null,f)})}}function c(f,h,m){h.fs.readdir(f,(v,_)=>{if(v!==null){p(m,v);return}let E=_.map(d=>{let y=u.joinPathSegments(f,d,h.pathSegmentSeparator);return D=>{t.stat(y,h.fsStatSettings,(g,A)=>{if(g!==null){D(g);return}let b={name:d,path:y,dirent:i.fs.createDirentFromStats(d,A)};h.stats&&(b.stats=A),D(null,b)})}});r(E,(d,y)=>{if(d!==null){p(m,d);return}l(m,y)})})}e.readdir=c;function p(f,h){f(h)}function l(f,h){f(null,h)}}),wA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Pr(),r=Qf(),n=Xf(),i=Jf();function u(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(a,c):o(a,c)}e.read=u;function s(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:i.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=n.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}e.readdirWithFileTypes=s;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=i.joinPathSegments(a,p,c.pathSegmentSeparator),f=t.statSync(l,c.fsStatSettings),h={name:p,path:l,dirent:n.fs.createDirentFromStats(p,f)};return c.stats&&(h.stats=f),h})}e.readdir=o}),CA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}),kA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=Pr(),n=CA(),i=class{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,s){return u!=null?u:s}};e.default=i}),ga=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=DA(),r=wA(),n=kA();e.Settings=n.default;function i(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.scandir=i;function u(o,a){let c=s(a);return r.read(o,c)}e.scandirSync=u;function s(o={}){return o instanceof n.default?o:new n.default(o)}}),FA=W((e,t)=>{"use strict";G();function r(n){var i=new n,u=i;function s(){var a=i;return a.next?i=a.next:(i=new n,u=i),a.next=null,a}function o(a){u.next=a,u=a}return{get:s,release:o}}t.exports=r}),RA=W((e,t)=>{"use strict";G();var r=FA();function n(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(u),l=null,f=null,h=0,m=null,v={push:A,drain:i,saturated:i,pause:E,paused:!1,concurrency:c,running:_,resume:D,idle:g,length:d,getQueue:y,unshift:b,empty:i,kill:x,killAndDrain:F,error:w};return v;function _(){return h}function E(){v.paused=!0}function d(){for(var O=l,P=0;O;)O=O.next,P++;return P}function y(){for(var O=l,P=[];O;)P.push(O.value),O=O.next;return P}function D(){if(v.paused){v.paused=!1;for(var O=0;O<v.concurrency;O++)h++,k()}}function g(){return h===0&&v.length()===0}function A(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||i,C.errorHandler=m,h===v.concurrency||v.paused?f?(f.next=C,f=C):(l=C,f=C,v.saturated()):(h++,a.call(o,C.value,C.worked))}function b(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||i,h===v.concurrency||v.paused?l?(C.next=l,l=C):(l=C,f=C,v.saturated()):(h++,a.call(o,C.value,C.worked))}function k(O){O&&p.release(O);var P=l;P?v.paused?h--:(f===l&&(f=null),l=P.next,P.next=null,a.call(o,P.value,P.worked),f===null&&v.empty()):--h===0&&v.drain()}function x(){l=null,f=null,v.drain=i}function F(){l=null,f=null,v.drain(),v.drain=i}function w(O){m=O}}function i(){}function u(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=i,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function s(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,d){a.call(this,E).then(function(y){d(null,y)},d)}var l=n(o,p,c),f=l.push,h=l.unshift;return l.push=m,l.unshift=v,l.drained=_,l;function m(E){var d=new Promise(function(y,D){f(E,function(g,A){if(g){D(g);return}y(A)})});return d.catch(i),d}function v(E){var d=new Promise(function(y,D){h(E,function(g,A){if(g){D(g);return}y(A)})});return d.catch(i),d}function _(){var E=l.drain,d=new Promise(function(y){l.drain=function(){E(),y()}});return d}}t.exports=n,t.exports.promise=s}),ya=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(u,s){return u.errorFilter===null?!0:!u.errorFilter(s)}e.isFatalError=t;function r(u,s){return u===null||u(s)}e.isAppliedFilter=r;function n(u,s){return u.split(/[/\\]/).join(s)}e.replacePathSegmentSeparator=n;function i(u,s,o){return u===""?s:u.endsWith(o)?u+s:u+o+s}e.joinPathSegments=i}),Zf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ya(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}),zf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("events"),r=ga(),n=RA(),i=ya(),u=Zf(),s=class extends u.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=i.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=s}),OA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=zf(),r=class{constructor(u,s){this._root=u,this._settings=s,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError(s=>{n(u,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{i(u,this._storage)}),this._reader.read()}};e.default=r;function n(u,s){u(s)}function i(u,s){u(null,s)}}),TA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=zf(),n=class{constructor(i,u){this._root=i,this._settings=u,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),PA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ga(),r=ya(),n=Zf(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,s){this._queue.add({directory:u,base:s})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,s){try{let o=this._scandir(u,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,s)}catch(o){this._handleError(o)}}_handleError(u){if(r.isFatalError(this._settings,u))throw u}_handleEntry(u,s){let o=u.path;s!==void 0&&(u.path=r.joinPathSegments(s,u.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,u)&&this._pushToStorage(u),u.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(o,s===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}};e.default=i}),LA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=PA(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}),IA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=ga(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,u){return i!=null?i:u}};e.default=n}),va=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=OA(),r=TA(),n=LA(),i=IA();e.Settings=i.default;function u(c,p,l){if(typeof p=="function"){new t.default(c,a()).read(p);return}new t.default(c,a(p)).read(l)}e.walk=u;function s(c,p){let l=a(p);return new n.default(c,l).read()}e.walkSync=s;function o(c,p){let l=a(p);return new r.default(c,l).read()}e.walkStream=o;function a(c={}){return c instanceof i.default?c:new i.default(c)}}),_a=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=Pr(),n=Mt(),i=class{constructor(u){this._settings=u,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return t.resolve(this._settings.cwd,u)}_makeEntry(u,s){let o={name:s,path:s,dirent:n.fs.createDirentFromStats(s,u)};return this._settings.stats&&(o.stats=u),o}_isFatalError(u){return!n.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}};e.default=i}),ed=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=Pr(),n=va(),i=_a(),u=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let a=s.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],s[p],o).then(h=>{h!==null&&o.entryFilter(h)&&c.push(h),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(s,o,a){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,a)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};e.default=u}),NA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=va(),r=_a(),n=ed(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(u,s){return new Promise((o,a)=>{this._walkAsync(u,s,(c,p)=>{c===null?o(p):a(c)})})}async static(u,s){let o=[],a=this._readerStream.static(u,s);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};e.default=i}),BA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),r=class{constructor(n,i,u){this._patterns=n,this._settings=i,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let n=t.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let u=this._getPatternSegments(i),s=this._splitSegmentsIntoSections(u);this._storage.push({complete:s.length<=1,pattern:i,segments:u,sections:s})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(i=>t.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:t.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}),MA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=BA(),r=class extends t.default{match(n){let i=n.split("/"),u=i.length,s=this._storage.filter(o=>!o.complete||o.segments.length>u);for(let o of s){let a=o.sections[0];if(!o.complete&&u>a.length||i.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};e.default=r}),jA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),r=MA(),n=class{constructor(i,u){this._settings=i,this._micromatchOptions=u}getFilter(i,u,s){let o=this._getMatcher(u),a=this._getNegativePatternsRe(s);return c=>this._filter(i,c,o,a)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let u=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(u,this._micromatchOptions)}_filter(i,u,s,o){if(this._isSkippedByDeep(i,u.path)||this._isSkippedSymbolicLink(u))return!1;let a=t.path.removeLeadingDotSegment(u.path);return this._isSkippedByPositivePatterns(a,s)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(i,u){return this._settings.deep===1/0?!1:this._getEntryLevel(i,u)>=this._settings.deep}_getEntryLevel(i,u){let s=u.split("/").length;if(i==="")return s;let o=i.split("/").length;return s-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,u){return!this._settings.baseNameMatch&&!u.match(i)}_isSkippedByNegativePatterns(i,u){return!t.pattern.matchAny(i,u)}};e.default=n}),$A=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let u=t.pattern.convertPatternsToRe(n,this._micromatchOptions),s=t.pattern.convertPatternsToRe(i,this._micromatchOptions);return o=>this._filter(o,u,s)}_filter(n,i,u){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,u))return!1;let s=this._settings.baseNameMatch?n.name:n.path,o=n.dirent.isDirectory(),a=this._isMatchToPatterns(s,i,o)&&!this._isMatchToPatterns(n.path,u,o);return this._settings.unique&&a&&this._createIndexRecord(n),a}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let u=t.path.makeAbsolute(this._settings.cwd,n);return t.pattern.matchAny(u,i)}_isMatchToPatterns(n,i,u){let s=t.path.removeLeadingDotSegment(n),o=t.pattern.matchAny(s,i);return!o&&u?t.pattern.matchAny(s+"/",i):o}};e.default=r}),HA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}),GA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}),Ea=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=jA(),n=$A(),i=HA(),u=GA(),s=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=s}),qA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=NA(),r=Ea(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){let u=this._getRootDirectory(i),s=this._getReaderOptions(i);return(await this.api(u,i,s)).map(o=>s.transform(o))}api(i,u,s){return u.dynamic?this._reader.dynamic(i,s):this._reader.static(u.patterns,s)}};e.default=n}),UA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=ed(),n=Ea(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(u){let s=this._getRootDirectory(u),o=this._getReaderOptions(u),a=this.api(s,u,o),c=new t.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(u,s,o){return s.dynamic?this._reader.dynamic(u,o):this._reader.static(s.patterns,o)}};e.default=i}),WA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Pr(),r=va(),n=_a(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(u,s){return this._walkSync(u,s)}static(u,s){let o=[];for(let a of u){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(u,s,o){try{let a=this._getStat(u);return this._makeEntry(a,s)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(u){return this._statSync(u,this._fsStatSettings)}};e.default=i}),YA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=WA(),r=Ea(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){let u=this._getRootDirectory(i),s=this._getReaderOptions(i);return this.api(u,i,s).map(s.transform)}api(i,u,s){return u.dynamic?this._reader.dynamic(i,s):this._reader.static(u.patterns,s)}};e.default=n}),KA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs"),r=ue("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(u={}){this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(u,s){return u===void 0?s:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),u)}};e.default=i}),VA=W((e,t)=>{"use strict";G();var r=gA(),n=yA(),i=qA(),u=UA(),s=YA(),o=KA(),a=Mt();async function c(f,h){l(f);let m=p(f,i.default,h),v=await Promise.all(m);return a.array.flatten(v)}(function(f){function h(d,y){l(d);let D=p(d,s.default,y);return a.array.flatten(D)}f.sync=h;function m(d,y){l(d);let D=p(d,u.default,y);return a.stream.merge(D)}f.stream=m;function v(d,y){l(d);let D=n.transform([].concat(d)),g=new o.default(y);return r.generate(D,g)}f.generateTasks=v;function _(d,y){l(d);let D=new o.default(y);return a.pattern.isDynamicPattern(d,D)}f.isDynamicPattern=_;function E(d){return l(d),a.path.escape(d)}f.escapePath=E})(c||(c={}));function p(f,h,m){let v=n.transform([].concat(f)),_=new o.default(m),E=r.generate(v,_),d=new h(_);return E.map(d.read,d)}function l(f){if(![].concat(f).every(h=>a.string.isString(h)&&!a.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=c});G();G();function td(e){return typeof e>"u"||e===null}function QA(e){return typeof e=="object"&&e!==null}function XA(e){return Array.isArray(e)?e:td(e)?[]:[e]}function JA(e,t){var r,n,i,u;if(t)for(u=Object.keys(t),r=0,n=u.length;r<n;r+=1)i=u[r],e[i]=t[i];return e}function ZA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function zA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var e1=td,t1=QA,r1=XA,n1=ZA,i1=zA,o1=JA,Fe={isNothing:e1,isObject:t1,toArray:r1,repeat:n1,isNegativeZero:i1,extend:o1};function rd(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
42
42
 
43
- `+e.mark.snippet),i+" "+r):i}function tn(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Kf(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}tn.prototype=Object.create(Error.prototype);tn.prototype.constructor=tn;tn.prototype.toString=function(e){return this.name+": "+Kf(this,e)};var We=tn;function Xs(e,t,r,i,n){var u="",s="",o=Math.floor(n/2)-1;return i-t>o&&(u=" ... ",t=i-o+u.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:i-t+u.length}}function Js(e,t){return Fe.repeat(" ",t-e.length)+e}function jA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],u,s=-1;u=r.exec(e.buffer);)n.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,n.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=Xs(e.buffer,i[s-a],n[s-a],e.position-(i[s]-i[s-a]),l),o=Fe.repeat(" ",t.indent)+Js((e.line-a+1).toString(),p)+" | "+c.str+`
44
- `+o;for(c=Xs(e.buffer,i[s],n[s],e.position,l),o+=Fe.repeat(" ",t.indent)+Js((e.line+1).toString(),p)+" | "+c.str+`
43
+ `+e.mark.snippet),n+" "+r):n}function tn(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=rd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}tn.prototype=Object.create(Error.prototype);tn.prototype.constructor=tn;tn.prototype.toString=function(e){return this.name+": "+rd(this,e)};var Ke=tn;function ra(e,t,r,n,i){var u="",s="",o=Math.floor(i/2)-1;return n-t>o&&(u=" ... ",t=n-o+u.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+u.length}}function na(e,t){return Fe.repeat(" ",t-e.length)+e}function s1(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],u,s=-1;u=r.exec(e.buffer);)i.push(u.index),n.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=ra(e.buffer,n[s-a],i[s-a],e.position-(n[s]-n[s-a]),l),o=Fe.repeat(" ",t.indent)+na((e.line-a+1).toString(),p)+" | "+c.str+`
44
+ `+o;for(c=ra(e.buffer,n[s],i[s],e.position,l),o+=Fe.repeat(" ",t.indent)+na((e.line+1).toString(),p)+" | "+c.str+`
45
45
  `,o+=Fe.repeat("-",t.indent+p+3+c.pos)+`^
46
- `,a=1;a<=t.linesAfter&&!(s+a>=n.length);a++)c=Xs(e.buffer,i[s+a],n[s+a],e.position-(i[s]-i[s+a]),l),o+=Fe.repeat(" ",t.indent)+Js((e.line+a+1).toString(),p)+" | "+c.str+`
47
- `;return o.replace(/\n$/,"")}var $A=jA,HA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],GA=["scalar","sequence","mapping"];function qA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function UA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(HA.indexOf(r)===-1)throw new We('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=qA(t.styleAliases||null),GA.indexOf(this.kind)===-1)throw new We('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Be=UA;function df(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(u,s){u.tag===i.tag&&u.kind===i.kind&&u.multi===i.multi&&(n=s)}),r[n]=i}),r}function WA(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function ra(e){return this.extend(e)}ra.prototype.extend=function(e){var t=[],r=[];if(e instanceof Be)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new We("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(n){if(!(n instanceof Be))throw new We("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new We("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new We("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof Be))throw new We("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ra.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=df(i,"implicit"),i.compiledExplicit=df(i,"explicit"),i.compiledTypeMap=WA(i.compiledImplicit,i.compiledExplicit),i};var KA=ra,YA=new Be("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),VA=new Be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),QA=new Be("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),XA=new KA({explicit:[YA,VA,QA]});function JA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ZA(){return null}function zA(e){return e===null}var e1=new Be("tag:yaml.org,2002:null",{kind:"scalar",resolve:JA,construct:ZA,predicate:zA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function t1(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function r1(e){return e==="true"||e==="True"||e==="TRUE"}function n1(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var i1=new Be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t1,construct:r1,predicate:n1,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function o1(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function s1(e){return 48<=e&&e<=55}function a1(e){return 48<=e&&e<=57}function u1(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!o1(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!s1(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!a1(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function c1(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function l1(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Fe.isNegativeZero(e)}var p1=new Be("tag:yaml.org,2002:int",{kind:"scalar",resolve:u1,construct:c1,predicate:l1,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"]}}),f1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d1(e){return!(e===null||!f1.test(e)||e[e.length-1]==="_")}function h1(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var m1=/^[-+]?[0-9]+e/;function y1(e,t){var r;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(Fe.isNegativeZero(e))return"-0.0";return r=e.toString(10),m1.test(r)?r.replace("e",".e"):r}function g1(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fe.isNegativeZero(e))}var v1=new Be("tag:yaml.org,2002:float",{kind:"scalar",resolve:d1,construct:h1,predicate:g1,represent:y1,defaultStyle:"lowercase"}),_1=XA.extend({implicit:[e1,i1,p1,v1]}),E1=_1,Yf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Vf=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 S1(e){return e===null?!1:Yf.exec(e)!==null||Vf.exec(e)!==null}function A1(e){var t,r,i,n,u,s,o,a=0,c=null,p,l,f;if(t=Yf.exec(e),t===null&&(t=Vf.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function b1(e){return e.toISOString()}var D1=new Be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:S1,construct:A1,instanceOf:Date,represent:b1});function x1(e){return e==="<<"||e===null}var w1=new Be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:x1}),ma=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
48
- \r`;function C1(e){if(e===null)return!1;var t,r,i=0,n=e.length,u=ma;for(r=0;r<n;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function k1(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,u=ma,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function F1(e){var t="",r=0,i,n,u=e.length,s=ma;for(i=0;i<u;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=u%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function R1(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var O1=new Be("tag:yaml.org,2002:binary",{kind:"scalar",resolve:C1,construct:k1,predicate:R1,represent:F1}),T1=Object.prototype.hasOwnProperty,P1=Object.prototype.toString;function L1(e){if(e===null)return!0;var t=[],r,i,n,u,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,P1.call(n)!=="[object Object]")return!1;for(u in n)if(T1.call(n,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function I1(e){return e!==null?e:[]}var N1=new Be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:L1,construct:I1}),B1=Object.prototype.toString;function M1(e){if(e===null)return!0;var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],B1.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;u[t]=[n[0],i[n[0]]]}return!0}function j1(e){if(e===null)return[];var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),u[t]=[n[0],i[n[0]]];return u}var $1=new Be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:M1,construct:j1}),H1=Object.prototype.hasOwnProperty;function G1(e){if(e===null)return!0;var t,r=e;for(t in r)if(H1.call(r,t)&&r[t]!==null)return!1;return!0}function q1(e){return e!==null?e:{}}var U1=new Be("tag:yaml.org,2002:set",{kind:"mapping",resolve:G1,construct:q1}),Qf=E1.extend({implicit:[D1,w1],explicit:[O1,N1,$1,U1]}),Nt=Object.prototype.hasOwnProperty,ii=1,Xf=2,Jf=3,oi=4,Zs=1,W1=2,hf=3,K1=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Y1=/[\x85\u2028\u2029]/,V1=/[,\[\]\{\}]/,Zf=/^(?:!|!!|![a-z\-]+!)$/i,zf=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mf(e){return Object.prototype.toString.call(e)}function dt(e){return e===10||e===13}function rr(e){return e===9||e===32}function Ke(e){return e===9||e===32||e===10||e===13}function kr(e){return e===44||e===91||e===93||e===123||e===125}function Q1(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function X1(e){return e===120?2:e===117?4:e===85?8:0}function J1(e){return 48<=e&&e<=57?e-48:-1}function yf(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
49
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Z1(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ed=new Array(256),td=new Array(256);for(tr=0;tr<256;tr++)ed[tr]=yf(tr)?1:0,td[tr]=yf(tr);var tr;function z1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qf,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 rd(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=$A(r),new We(t,r)}function he(e,t){throw rd(e,t)}function si(e,t){e.onWarning&&e.onWarning.call(null,rd(e,t))}var gf={YAML:function(e,t,r){var i,n,u;e.version!==null&&he(e,"duplication of %YAML directive"),r.length!==1&&he(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&he(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),u=parseInt(i[2],10),n!==1&&he(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=u<2,u!==1&&u!==2&&si(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var i,n;r.length!==2&&he(e,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],Zf.test(i)||he(e,"ill-formed tag handle (first argument) of the TAG directive"),Nt.call(e.tagMap,i)&&he(e,'there is a previously declared suffix for "'+i+'" tag handle'),zf.test(n)||he(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{he(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function It(e,t,r,i){var n,u,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,u=o.length;n<u;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||he(e,"expected valid JSON character");else K1.test(o)&&he(e,"the stream contains non-printable characters");e.result+=o}}function vf(e,t,r,i){var n,u,s,o;for(Fe.isObject(r)||he(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)u=n[s],Nt.call(t,u)||(t[u]=r[u],i[u]=!0)}function Fr(e,t,r,i,n,u,s,o,a){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&he(e,"nested arrays are not supported inside keys"),typeof n=="object"&&mf(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&mf(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)vf(e,t,u[c],r);else vf(e,t,u,r);else!e.json&&!Nt.call(r,n)&&Nt.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,he(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[n]=u,delete r[n];return t}function ya(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):he(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function we(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;rr(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(dt(n))for(ya(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&si(e,"deficient indentation"),i}function gi(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ke(r)))}function ga(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fe.repeat(`
50
- `,t-1))}function eb(e,t,r){var i,n,u,s,o,a,c,p,l=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Ke(d)||kr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Ke(n)||r&&kr(n)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Ke(n)||r&&kr(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Ke(i))break}else{if(e.position===e.lineStart&&gi(e)||r&&kr(d))break;if(dt(d))if(a=e.line,c=e.lineStart,p=e.lineIndent,we(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(It(e,u,s,!1),ga(e,e.line-a),u=s=e.position,o=!1),rr(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return It(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function tb(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(It(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else dt(r)?(It(e,i,n,!0),ga(e,we(e,!1,t)),i=n=e.position):e.position===e.lineStart&&gi(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function rb(e,t){var r,i,n,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return It(e,r,e.position,!0),e.position++,!0;if(o===92){if(It(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),dt(o))we(e,!1,t);else if(o<256&&ed[o])e.result+=td[o],e.position++;else if((s=X1(o))>0){for(n=s,u=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=Q1(o))>=0?u=(u<<4)+s:he(e,"expected hexadecimal character");e.result+=Z1(u),e.position++}else he(e,"unknown escape sequence");r=i=e.position}else dt(o)?(It(e,r,i,!0),ga(e,we(e,!1,t)),r=i=e.position):e.position===e.lineStart&&gi(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function nb(e,t){var r=!0,i,n,u,s=e.tag,o,a=e.anchor,c,p,l,f,d,m=Object.create(null),g,_,E,h;if(h=e.input.charCodeAt(e.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(we(e,!0,t),h=e.input.charCodeAt(e.position),h===p)return e.position++,e.tag=s,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r?h===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),_=g=E=null,l=f=!1,h===63&&(c=e.input.charCodeAt(e.position+1),Ke(c)&&(l=f=!0,e.position++,we(e,!0,t))),i=e.line,n=e.lineStart,u=e.position,Or(e,t,ii,!1,!0),_=e.tag,g=e.result,we(e,!0,t),h=e.input.charCodeAt(e.position),(f||e.line===i)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),we(e,!0,t),Or(e,t,ii,!1,!0),E=e.result),d?Fr(e,o,m,_,g,E,i,n,u):l?o.push(Fr(e,null,m,_,g,E,i,n,u)):o.push(g),we(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}he(e,"unexpected end of the stream within a flow collection")}function ib(e,t){var r,i,n=Zs,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Zs===n?n=l===43?hf:W1:he(e,"repeat of a chomping mode identifier");else if((p=J1(l))>=0)p===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?he(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(rr(l)){do l=e.input.charCodeAt(++e.position);while(rr(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!dt(l)&&l!==0)}for(;l!==0;){for(ya(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),dt(l)){a++;continue}if(e.lineIndent<o){n===hf?e.result+=Fe.repeat(`
51
- `,u?1+a:a):n===Zs&&u&&(e.result+=`
52
- `);break}for(i?rr(l)?(c=!0,e.result+=Fe.repeat(`
46
+ `,a=1;a<=t.linesAfter&&!(s+a>=i.length);a++)c=ra(e.buffer,n[s+a],i[s+a],e.position-(n[s]-n[s+a]),l),o+=Fe.repeat(" ",t.indent)+na((e.line+a+1).toString(),p)+" | "+c.str+`
47
+ `;return o.replace(/\n$/,"")}var a1=s1,u1=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],c1=["scalar","sequence","mapping"];function l1(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function p1(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(u1.indexOf(r)===-1)throw new Ke('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=l1(t.styleAliases||null),c1.indexOf(this.kind)===-1)throw new Ke('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Me=p1;function bf(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(u,s){u.tag===n.tag&&u.kind===n.kind&&u.multi===n.multi&&(i=s)}),r[i]=n}),r}function f1(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function ua(e){return this.extend(e)}ua.prototype.extend=function(e){var t=[],r=[];if(e instanceof Me)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Ke("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(i){if(!(i instanceof Me))throw new Ke("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Ke("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Ke("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof Me))throw new Ke("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ua.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=bf(n,"implicit"),n.compiledExplicit=bf(n,"explicit"),n.compiledTypeMap=f1(n.compiledImplicit,n.compiledExplicit),n};var d1=ua,h1=new Me("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),m1=new Me("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),g1=new Me("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),y1=new d1({explicit:[h1,m1,g1]});function v1(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function _1(){return null}function E1(e){return e===null}var S1=new Me("tag:yaml.org,2002:null",{kind:"scalar",resolve:v1,construct:_1,predicate:E1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function A1(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function b1(e){return e==="true"||e==="True"||e==="TRUE"}function x1(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var D1=new Me("tag:yaml.org,2002:bool",{kind:"scalar",resolve:A1,construct:b1,predicate:x1,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function w1(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function C1(e){return 48<=e&&e<=55}function k1(e){return 48<=e&&e<=57}function F1(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!w1(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!C1(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!k1(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function R1(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function O1(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Fe.isNegativeZero(e)}var T1=new Me("tag:yaml.org,2002:int",{kind:"scalar",resolve:F1,construct:R1,predicate:O1,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"]}}),P1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function L1(e){return!(e===null||!P1.test(e)||e[e.length-1]==="_")}function I1(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var N1=/^[-+]?[0-9]+e/;function B1(e,t){var r;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(Fe.isNegativeZero(e))return"-0.0";return r=e.toString(10),N1.test(r)?r.replace("e",".e"):r}function M1(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fe.isNegativeZero(e))}var j1=new Me("tag:yaml.org,2002:float",{kind:"scalar",resolve:L1,construct:I1,predicate:M1,represent:B1,defaultStyle:"lowercase"}),$1=y1.extend({implicit:[S1,D1,T1,j1]}),H1=$1,nd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),id=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 G1(e){return e===null?!1:nd.exec(e)!==null||id.exec(e)!==null}function q1(e){var t,r,n,i,u,s,o,a=0,c=null,p,l,f;if(t=nd.exec(e),t===null&&(t=id.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function U1(e){return e.toISOString()}var W1=new Me("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:G1,construct:q1,instanceOf:Date,represent:U1});function Y1(e){return e==="<<"||e===null}var K1=new Me("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y1}),Sa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
48
+ \r`;function V1(e){if(e===null)return!1;var t,r,n=0,i=e.length,u=Sa;for(r=0;r<i;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function Q1(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,u=Sa,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function X1(e){var t="",r=0,n,i,u=e.length,s=Sa;for(n=0;n<u;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=u%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function J1(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Z1=new Me("tag:yaml.org,2002:binary",{kind:"scalar",resolve:V1,construct:Q1,predicate:J1,represent:X1}),z1=Object.prototype.hasOwnProperty,eb=Object.prototype.toString;function tb(e){if(e===null)return!0;var t=[],r,n,i,u,s,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],s=!1,eb.call(i)!=="[object Object]")return!1;for(u in i)if(z1.call(i,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function rb(e){return e!==null?e:[]}var nb=new Me("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tb,construct:rb}),ib=Object.prototype.toString;function ob(e){if(e===null)return!0;var t,r,n,i,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],ib.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;u[t]=[i[0],n[i[0]]]}return!0}function sb(e){if(e===null)return[];var t,r,n,i,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),u[t]=[i[0],n[i[0]]];return u}var ab=new Me("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ob,construct:sb}),ub=Object.prototype.hasOwnProperty;function cb(e){if(e===null)return!0;var t,r=e;for(t in r)if(ub.call(r,t)&&r[t]!==null)return!1;return!0}function lb(e){return e!==null?e:{}}var pb=new Me("tag:yaml.org,2002:set",{kind:"mapping",resolve:cb,construct:lb}),od=H1.extend({implicit:[W1,K1],explicit:[Z1,nb,ab,pb]}),Bt=Object.prototype.hasOwnProperty,ai=1,sd=2,ad=3,ui=4,ia=1,fb=2,xf=3,db=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hb=/[\x85\u2028\u2029]/,mb=/[,\[\]\{\}]/,ud=/^(?:!|!!|![a-z\-]+!)$/i,cd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Df(e){return Object.prototype.toString.call(e)}function ht(e){return e===10||e===13}function rr(e){return e===9||e===32}function Ve(e){return e===9||e===32||e===10||e===13}function kr(e){return e===44||e===91||e===93||e===123||e===125}function gb(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function yb(e){return e===120?2:e===117?4:e===85?8:0}function vb(e){return 48<=e&&e<=57?e-48:-1}function wf(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
49
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function _b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ld=new Array(256),pd=new Array(256);for(tr=0;tr<256;tr++)ld[tr]=wf(tr)?1:0,pd[tr]=wf(tr);var tr;function Eb(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||od,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 fd(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=a1(r),new Ke(t,r)}function he(e,t){throw fd(e,t)}function ci(e,t){e.onWarning&&e.onWarning.call(null,fd(e,t))}var Cf={YAML:function(e,t,r){var n,i,u;e.version!==null&&he(e,"duplication of %YAML directive"),r.length!==1&&he(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&he(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),u=parseInt(n[2],10),i!==1&&he(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=u<2,u!==1&&u!==2&&ci(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;r.length!==2&&he(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],ud.test(n)||he(e,"ill-formed tag handle (first argument) of the TAG directive"),Bt.call(e.tagMap,n)&&he(e,'there is a previously declared suffix for "'+n+'" tag handle'),cd.test(i)||he(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{he(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function Nt(e,t,r,n){var i,u,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,u=o.length;i<u;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||he(e,"expected valid JSON character");else db.test(o)&&he(e,"the stream contains non-printable characters");e.result+=o}}function kf(e,t,r,n){var i,u,s,o;for(Fe.isObject(r)||he(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,o=i.length;s<o;s+=1)u=i[s],Bt.call(t,u)||(t[u]=r[u],n[u]=!0)}function Fr(e,t,r,n,i,u,s,o,a){var c,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,p=i.length;c<p;c+=1)Array.isArray(i[c])&&he(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Df(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Df(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)kf(e,t,u[c],r);else kf(e,t,u,r);else!e.json&&!Bt.call(r,i)&&Bt.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,he(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[i]=u,delete r[i];return t}function Aa(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):he(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function we(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;rr(i);)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(ht(i))for(Aa(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ci(e,"deficient indentation"),n}function Ei(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ve(r)))}function ba(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fe.repeat(`
50
+ `,t-1))}function Sb(e,t,r){var n,i,u,s,o,a,c,p,l=e.kind,f=e.result,h;if(h=e.input.charCodeAt(e.position),Ve(h)||kr(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Ve(i)||r&&kr(i)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ve(i)||r&&kr(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ve(n))break}else{if(e.position===e.lineStart&&Ei(e)||r&&kr(h))break;if(ht(h))if(a=e.line,c=e.lineStart,p=e.lineIndent,we(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(Nt(e,u,s,!1),ba(e,e.line-a),u=s=e.position,o=!1),rr(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Nt(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function Ab(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Nt(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else ht(r)?(Nt(e,n,i,!0),ba(e,we(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ei(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function bb(e,t){var r,n,i,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Nt(e,r,e.position,!0),e.position++,!0;if(o===92){if(Nt(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),ht(o))we(e,!1,t);else if(o<256&&ld[o])e.result+=pd[o],e.position++;else if((s=yb(o))>0){for(i=s,u=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=gb(o))>=0?u=(u<<4)+s:he(e,"expected hexadecimal character");e.result+=_b(u),e.position++}else he(e,"unknown escape sequence");r=n=e.position}else ht(o)?(Nt(e,r,n,!0),ba(e,we(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ei(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function xb(e,t){var r=!0,n,i,u,s=e.tag,o,a=e.anchor,c,p,l,f,h,m=Object.create(null),v,_,E,d;if(d=e.input.charCodeAt(e.position),d===91)p=93,h=!1,o=[];else if(d===123)p=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);d!==0;){if(we(e,!0,t),d=e.input.charCodeAt(e.position),d===p)return e.position++,e.tag=s,e.anchor=a,e.kind=h?"mapping":"sequence",e.result=o,!0;r?d===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),_=v=E=null,l=f=!1,d===63&&(c=e.input.charCodeAt(e.position+1),Ve(c)&&(l=f=!0,e.position++,we(e,!0,t))),n=e.line,i=e.lineStart,u=e.position,Or(e,t,ai,!1,!0),_=e.tag,v=e.result,we(e,!0,t),d=e.input.charCodeAt(e.position),(f||e.line===n)&&d===58&&(l=!0,d=e.input.charCodeAt(++e.position),we(e,!0,t),Or(e,t,ai,!1,!0),E=e.result),h?Fr(e,o,m,_,v,E,n,i,u):l?o.push(Fr(e,null,m,_,v,E,n,i,u)):o.push(v),we(e,!0,t),d=e.input.charCodeAt(e.position),d===44?(r=!0,d=e.input.charCodeAt(++e.position)):r=!1}he(e,"unexpected end of the stream within a flow collection")}function Db(e,t){var r,n,i=ia,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)ia===i?i=l===43?xf:fb:he(e,"repeat of a chomping mode identifier");else if((p=vb(l))>=0)p===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?he(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(rr(l)){do l=e.input.charCodeAt(++e.position);while(rr(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!ht(l)&&l!==0)}for(;l!==0;){for(Aa(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),ht(l)){a++;continue}if(e.lineIndent<o){i===xf?e.result+=Fe.repeat(`
51
+ `,u?1+a:a):i===ia&&u&&(e.result+=`
52
+ `);break}for(n?rr(l)?(c=!0,e.result+=Fe.repeat(`
53
53
  `,u?1+a:a)):c?(c=!1,e.result+=Fe.repeat(`
54
54
  `,a+1)):a===0?u&&(e.result+=" "):e.result+=Fe.repeat(`
55
55
  `,a):e.result+=Fe.repeat(`
56
- `,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!dt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);It(e,r,e.position,!1)}return!0}function _f(e,t){var r,i=e.tag,n=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ke(s))));){if(o=!0,e.position++,we(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Or(e,t,Jf,!1,!0),u.push(e.result),we(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=u,!0):!1}function ob(e,t,r){var i,n,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),d=null,m=null,g=null,_=!1,E=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),h=e.input.charCodeAt(e.position);h!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),u=e.line,(h===63||h===58)&&Ke(i))h===63?(_&&(Fr(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!0,n=!0):_?(_=!1,n=!0):he(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,h=i;else{if(s=e.line,o=e.lineStart,a=e.position,!Or(e,r,Xf,!1,!0))break;if(e.line===u){for(h=e.input.charCodeAt(e.position);rr(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),Ke(h)||he(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Fr(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!1,n=!1,d=e.tag,m=e.result;else if(E)he(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)he(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Or(e,t,oi,!0,n)&&(_?m=e.result:g=e.result),_||(Fr(e,l,f,d,m,g,s,o,a),d=m=g=null),we(e,!0,-1),h=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&h!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&Fr(e,l,f,d,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function sb(e){var t,r=!1,i=!1,n,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&he(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):he(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ke(s);)s===33&&(i?he(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Zf.test(n)||he(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),V1.test(u)&&he(e,"tag suffix cannot contain flow indicator characters")}u&&!zf.test(u)&&he(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{he(e,"tag name is malformed: "+u)}return r?e.tag=u:Nt.call(e.tagMap,n)?e.tag=e.tagMap[n]+u:n==="!"?e.tag="!"+u:n==="!!"?e.tag="tag:yaml.org,2002:"+u:he(e,'undeclared tag handle "'+n+'"'),!0}function ab(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&he(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ke(r)&&!kr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ub(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Ke(i)&&!kr(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Nt.call(e.anchorMap,r)||he(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],we(e,!0,-1),!0}function Or(e,t,r,i,n){var u,s,o,a=1,c=!1,p=!1,l,f,d,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=oi===r||Jf===r,i&&we(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;sb(e)||ab(e);)we(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||n),(a===1||oi===r)&&(ii===r||Xf===r?g=t:g=t+1,_=e.position-e.lineStart,a===1?o&&(_f(e,_)||ob(e,_,g))||nb(e,g)?p=!0:(s&&ib(e,g)||tb(e,g)||rb(e,g)?p=!0:ub(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&he(e,"alias node should not have any properties")):eb(e,g,ii===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&_f(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&he(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Nt.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||he(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function cb(e){var t=e.position,r,i,n,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(we(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ke(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&he(e,"directive name must not be less than one character in length");s!==0;){for(;rr(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!dt(s));break}if(dt(s))break;for(r=e.position;s!==0&&!Ke(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&ya(e),Nt.call(gf,i)?gf[i](e,i,n):si(e,'unknown document directive "'+i+'"')}if(we(e,!0,-1),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,we(e,!0,-1)):u&&he(e,"directives end mark is expected"),Or(e,e.lineIndent-1,oi,!1,!0),we(e,!0,-1),e.checkLineBreaks&&Y1.test(e.input.slice(t,e.position))&&si(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&gi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,we(e,!0,-1));return}if(e.position<e.length-1)he(e,"end of the stream or a document separator is expected");else return}function nd(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
57
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new z1(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,he(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)cb(r);return r.documents}function lb(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=nd(e,r);if(typeof t!="function")return i;for(var n=0,u=i.length;n<u;n+=1)t(i[n])}function pb(e,t){var r=nd(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new We("expected a single document in the stream, but found more")}}var fb=lb,db=pb,id={loadAll:fb,load:db},od=Object.prototype.toString,sd=Object.prototype.hasOwnProperty,va=65279,hb=9,rn=10,mb=13,yb=32,gb=33,vb=34,na=35,_b=37,Eb=38,Sb=39,Ab=42,ad=44,bb=45,ai=58,Db=61,xb=62,wb=63,Cb=64,ud=91,cd=93,kb=96,ld=123,Fb=124,pd=125,Me={};Me[0]="\\0";Me[7]="\\a";Me[8]="\\b";Me[9]="\\t";Me[10]="\\n";Me[11]="\\v";Me[12]="\\f";Me[13]="\\r";Me[27]="\\e";Me[34]='\\"';Me[92]="\\\\";Me[133]="\\N";Me[160]="\\_";Me[8232]="\\L";Me[8233]="\\P";var Rb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ob=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Tb(e,t){var r,i,n,u,s,o,a;if(t===null)return{};for(r={},i=Object.keys(t),n=0,u=i.length;n<u;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&sd.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function Pb(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new We("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Fe.repeat("0",i-t.length)+t}var Lb=1,nn=2;function Ib(e){this.schema=e.schema||Qf,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Tb(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?nn:Lb,this.forceQuotes=e.forceQuotes||!1,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 Ef(e,t){for(var r=Fe.repeat(" ",t),i=0,n=-1,u="",s,o=e.length;i<o;)n=e.indexOf(`
58
- `,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
59
- `&&(u+=r),u+=s;return u}function ia(e,t){return`
60
- `+Fe.repeat(" ",e.indent*t)}function Nb(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function ui(e){return e===yb||e===hb}function on(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==va||65536<=e&&e<=1114111}function Sf(e){return on(e)&&e!==va&&e!==mb&&e!==rn}function Af(e,t,r){var i=Sf(e),n=i&&!ui(e);return(r?i:i&&e!==ad&&e!==ud&&e!==cd&&e!==ld&&e!==pd)&&e!==na&&!(t===ai&&!n)||Sf(t)&&!ui(t)&&e===na||t===ai&&n}function Bb(e){return on(e)&&e!==va&&!ui(e)&&e!==bb&&e!==wb&&e!==ai&&e!==ad&&e!==ud&&e!==cd&&e!==ld&&e!==pd&&e!==na&&e!==Eb&&e!==Ab&&e!==gb&&e!==Fb&&e!==Db&&e!==xb&&e!==Sb&&e!==vb&&e!==_b&&e!==Cb&&e!==kb}function Mb(e){return!ui(e)&&e!==ai}function zr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function fd(e){var t=/^\n* /;return t.test(e)}var dd=1,oa=2,hd=3,md=4,Cr=5;function jb(e,t,r,i,n,u,s,o){var a,c=0,p=null,l=!1,f=!1,d=i!==-1,m=-1,g=Bb(zr(e,0))&&Mb(zr(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=zr(e,a),!on(c))return Cr;g=g&&Af(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=zr(e,a),c===rn)l=!0,d&&(f=f||a-m-1>i&&e[m+1]!==" ",m=a);else if(!on(c))return Cr;g=g&&Af(c,p,o),p=c}f=f||d&&a-m-1>i&&e[m+1]!==" "}return!l&&!f?g&&!s&&!n(e)?dd:u===nn?Cr:oa:r>9&&fd(e)?Cr:s?u===nn?Cr:oa:f?md:hd}function $b(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===nn?'""':"''";if(!e.noCompatMode&&(Rb.indexOf(t)!==-1||Ob.test(t)))return e.quotingType===nn?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return Nb(e,c)}switch(jb(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!i,n)){case dd:return t;case oa:return"'"+t.replace(/'/g,"''")+"'";case hd:return"|"+bf(t,e.indent)+Df(Ef(t,u));case md:return">"+bf(t,e.indent)+Df(Ef(Hb(t,s),u));case Cr:return'"'+Gb(t)+'"';default:throw new We("impossible error: invalid scalar style")}}()}function bf(e,t){var r=fd(e)?String(t):"",i=e[e.length-1]===`
61
- `,n=i&&(e[e.length-2]===`
56
+ `,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!ht(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Nt(e,r,e.position,!1)}return!0}function Ff(e,t){var r,n=e.tag,i=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ve(s))));){if(o=!0,e.position++,we(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Or(e,t,ad,!1,!0),u.push(e.result),we(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=u,!0):!1}function wb(e,t,r){var n,i,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),h=null,m=null,v=null,_=!1,E=!1,d;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),d=e.input.charCodeAt(e.position);d!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),u=e.line,(d===63||d===58)&&Ve(n))d===63?(_&&(Fr(e,l,f,h,m,null,s,o,a),h=m=v=null),E=!0,_=!0,i=!0):_?(_=!1,i=!0):he(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,d=n;else{if(s=e.line,o=e.lineStart,a=e.position,!Or(e,r,sd,!1,!0))break;if(e.line===u){for(d=e.input.charCodeAt(e.position);rr(d);)d=e.input.charCodeAt(++e.position);if(d===58)d=e.input.charCodeAt(++e.position),Ve(d)||he(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Fr(e,l,f,h,m,null,s,o,a),h=m=v=null),E=!0,_=!1,i=!1,h=e.tag,m=e.result;else if(E)he(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)he(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Or(e,t,ui,!0,i)&&(_?m=e.result:v=e.result),_||(Fr(e,l,f,h,m,v,s,o,a),h=m=v=null),we(e,!0,-1),d=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&d!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&Fr(e,l,f,h,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function Cb(e){var t,r=!1,n=!1,i,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&he(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):he(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ve(s);)s===33&&(n?he(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),ud.test(i)||he(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),mb.test(u)&&he(e,"tag suffix cannot contain flow indicator characters")}u&&!cd.test(u)&&he(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{he(e,"tag name is malformed: "+u)}return r?e.tag=u:Bt.call(e.tagMap,i)?e.tag=e.tagMap[i]+u:i==="!"?e.tag="!"+u:i==="!!"?e.tag="tag:yaml.org,2002:"+u:he(e,'undeclared tag handle "'+i+'"'),!0}function kb(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&he(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ve(r)&&!kr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Fb(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ve(n)&&!kr(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Bt.call(e.anchorMap,r)||he(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],we(e,!0,-1),!0}function Or(e,t,r,n,i){var u,s,o,a=1,c=!1,p=!1,l,f,h,m,v,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=ui===r||ad===r,n&&we(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;Cb(e)||kb(e);)we(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||i),(a===1||ui===r)&&(ai===r||sd===r?v=t:v=t+1,_=e.position-e.lineStart,a===1?o&&(Ff(e,_)||wb(e,_,v))||xb(e,v)?p=!0:(s&&Db(e,v)||Ab(e,v)||bb(e,v)?p=!0:Fb(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&he(e,"alias node should not have any properties")):Sb(e,v,ai===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&Ff(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&he(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Bt.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,h=e.typeMap.multi[e.kind||"fallback"],l=0,f=h.length;l<f;l+=1)if(e.tag.slice(0,h[l].tag.length)===h[l].tag){m=h[l];break}m||he(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Rb(e){var t=e.position,r,n,i,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(we(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ve(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&he(e,"directive name must not be less than one character in length");s!==0;){for(;rr(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ht(s));break}if(ht(s))break;for(r=e.position;s!==0&&!Ve(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Aa(e),Bt.call(Cf,n)?Cf[n](e,n,i):ci(e,'unknown document directive "'+n+'"')}if(we(e,!0,-1),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,we(e,!0,-1)):u&&he(e,"directives end mark is expected"),Or(e,e.lineIndent-1,ui,!1,!0),we(e,!0,-1),e.checkLineBreaks&&hb.test(e.input.slice(t,e.position))&&ci(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ei(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,we(e,!0,-1));return}if(e.position<e.length-1)he(e,"end of the stream or a document separator is expected");else return}function dd(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
57
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Eb(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,he(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Rb(r);return r.documents}function Ob(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=dd(e,r);if(typeof t!="function")return n;for(var i=0,u=n.length;i<u;i+=1)t(n[i])}function Tb(e,t){var r=dd(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ke("expected a single document in the stream, but found more")}}var Pb=Ob,Lb=Tb,hd={loadAll:Pb,load:Lb},md=Object.prototype.toString,gd=Object.prototype.hasOwnProperty,xa=65279,Ib=9,rn=10,Nb=13,Bb=32,Mb=33,jb=34,ca=35,$b=37,Hb=38,Gb=39,qb=42,yd=44,Ub=45,li=58,Wb=61,Yb=62,Kb=63,Vb=64,vd=91,_d=93,Qb=96,Ed=123,Xb=124,Sd=125,je={};je[0]="\\0";je[7]="\\a";je[8]="\\b";je[9]="\\t";je[10]="\\n";je[11]="\\v";je[12]="\\f";je[13]="\\r";je[27]="\\e";je[34]='\\"';je[92]="\\\\";je[133]="\\N";je[160]="\\_";je[8232]="\\L";je[8233]="\\P";var Jb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zb(e,t){var r,n,i,u,s,o,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,u=n.length;i<u;i+=1)s=n[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&gd.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function ex(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ke("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Fe.repeat("0",n-t.length)+t}var tx=1,nn=2;function rx(e){this.schema=e.schema||od,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=zb(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?nn:tx,this.forceQuotes=e.forceQuotes||!1,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 Rf(e,t){for(var r=Fe.repeat(" ",t),n=0,i=-1,u="",s,o=e.length;n<o;)i=e.indexOf(`
58
+ `,n),i===-1?(s=e.slice(n),n=o):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
59
+ `&&(u+=r),u+=s;return u}function la(e,t){return`
60
+ `+Fe.repeat(" ",e.indent*t)}function nx(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function pi(e){return e===Bb||e===Ib}function on(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==xa||65536<=e&&e<=1114111}function Of(e){return on(e)&&e!==xa&&e!==Nb&&e!==rn}function Tf(e,t,r){var n=Of(e),i=n&&!pi(e);return(r?n:n&&e!==yd&&e!==vd&&e!==_d&&e!==Ed&&e!==Sd)&&e!==ca&&!(t===li&&!i)||Of(t)&&!pi(t)&&e===ca||t===li&&i}function ix(e){return on(e)&&e!==xa&&!pi(e)&&e!==Ub&&e!==Kb&&e!==li&&e!==yd&&e!==vd&&e!==_d&&e!==Ed&&e!==Sd&&e!==ca&&e!==Hb&&e!==qb&&e!==Mb&&e!==Xb&&e!==Wb&&e!==Yb&&e!==Gb&&e!==jb&&e!==$b&&e!==Vb&&e!==Qb}function ox(e){return!pi(e)&&e!==li}function zr(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Ad(e){var t=/^\n* /;return t.test(e)}var bd=1,pa=2,xd=3,Dd=4,Cr=5;function sx(e,t,r,n,i,u,s,o){var a,c=0,p=null,l=!1,f=!1,h=n!==-1,m=-1,v=ix(zr(e,0))&&ox(zr(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=zr(e,a),!on(c))return Cr;v=v&&Tf(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=zr(e,a),c===rn)l=!0,h&&(f=f||a-m-1>n&&e[m+1]!==" ",m=a);else if(!on(c))return Cr;v=v&&Tf(c,p,o),p=c}f=f||h&&a-m-1>n&&e[m+1]!==" "}return!l&&!f?v&&!s&&!i(e)?bd:u===nn?Cr:pa:r>9&&Ad(e)?Cr:s?u===nn?Cr:pa:f?Dd:xd}function ax(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===nn?'""':"''";if(!e.noCompatMode&&(Jb.indexOf(t)!==-1||Zb.test(t)))return e.quotingType===nn?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=n||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return nx(e,c)}switch(sx(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!n,i)){case bd:return t;case pa:return"'"+t.replace(/'/g,"''")+"'";case xd:return"|"+Pf(t,e.indent)+Lf(Rf(t,u));case Dd:return">"+Pf(t,e.indent)+Lf(Rf(ux(t,s),u));case Cr:return'"'+cx(t)+'"';default:throw new Ke("impossible error: invalid scalar style")}}()}function Pf(e,t){var r=Ad(e)?String(t):"",n=e[e.length-1]===`
61
+ `,i=n&&(e[e.length-2]===`
62
62
  `||e===`
63
- `),u=n?"+":i?"":"-";return r+u+`
64
- `}function Df(e){return e[e.length-1]===`
65
- `?e.slice(0,-1):e}function Hb(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
66
- `);return c=c!==-1?c:e.length,r.lastIndex=c,xf(e.slice(0,c),t)}(),n=e[0]===`
67
- `||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",i+=o+(!n&&!u&&a!==""?`
68
- `:"")+xf(a,t),n=u}return i}function xf(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,u,s=0,o=0,a="";i=r.exec(e);)o=i.index,o-n>t&&(u=s>n?s:o,a+=`
69
- `+e.slice(n,u),n=u+1),s=o;return a+=`
70
- `,e.length-n>t&&s>n?a+=e.slice(n,s)+`
71
- `+e.slice(s+1):a+=e.slice(n),a.slice(1)}function Gb(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=zr(e,n),i=Me[r],!i&&on(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Pb(r);return t}function qb(e,t,r){var i="",n=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(At(e,t,o,!1,!1)||typeof o>"u"&&At(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function wf(e,t,r,i){var n="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(At(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&At(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ia(e,t)),e.dump&&rn===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=u,e.dump=n||"[]"}function Ub(e,t,r){var i="",n=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",i!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),At(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),At(e,t,c,!1,!1)&&(p+=e.dump,i+=p));e.tag=n,e.dump="{"+i+"}"}function Wb(e,t,r,i){var n="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new We("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!i||n!=="")&&(f+=ia(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),At(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&rn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=ia(e,t)),At(e,t+1,p,!0,l)&&(e.dump&&rn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=u,e.dump=n||"{}"}function Cf(e,t,r){var i,n,u,s,o,a;for(n=r?e.explicitTypes:e.implicitTypes,u=0,s=n.length;u<s;u+=1)if(o=n[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,od.call(o.represent)==="[object Function]")i=o.represent(t,a);else if(sd.call(o.represent,a))i=o.represent[a](t,a);else throw new We("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=i}return!0}return!1}function At(e,t,r,i,n,u,s){e.tag=null,e.dump=r,Cf(e,r,!1)||Cf(e,r,!0);var o=od.call(e.dump),a=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(Wb(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(Ub(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?wf(e,t-1,e.dump,n):wf(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(qb(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&$b(e,e.dump,t,u,a);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new We("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Kb(e,t){var r=[],i=[],n,u;for(sa(e,r,i),n=0,u=i.length;n<u;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(u)}function sa(e,t,r){var i,n,u;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,u=e.length;n<u;n+=1)sa(e[n],t,r);else for(i=Object.keys(e),n=0,u=i.length;n<u;n+=1)sa(e[i[n]],t,r)}function Yb(e,t){t=t||{};var r=new Ib(t);r.noRefs||Kb(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),At(r,0,i,!0,!0)?r.dump+`
72
- `:""}var Vb=Yb,Qb={dump:Vb};function _a(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.")}}var ST=id.load,AT=id.loadAll,bT=Qb.dump,DT=_a("safeLoad","load"),xT=_a("safeLoadAll","loadAll"),wT=_a("safeDump","dump"),CT=an(CA()),Xb=Ce(require("os"),1),Jb=W((e,t)=>{G(),t.exports=u,u.sync=s;var r=ue("fs");function i(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function n(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:i(a,c)}function u(o,a,c){r.stat(o,function(p,l){c(p,p?!1:n(l,o,a))})}function s(o,a){return n(r.statSync(o),o,a)}}),Zb=W((e,t)=>{G(),t.exports=i,i.sync=n;var r=ue("fs");function i(o,a,c){r.stat(o,function(p,l){c(p,p?!1:u(l,a))})}function n(o,a){return u(r.statSync(o),a)}function u(o,a){return o.isFile()&&s(o,a)}function s(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),d=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),g=parseInt("010",8),_=parseInt("001",8),E=m|g,h=c&_||c&g&&l===d||c&m&&p===f||c&E&&f===0;return h}}),zb=W((e,t)=>{G();var r=ue("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Jb():i=Zb(),t.exports=n,n.sync=u;function n(s,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){n(s,o||{},function(l,f){l?p(l):c(f)})})}i(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function u(s,o){try{return i.sync(s,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),eD=W((e,t)=>{G();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=ue("path"),n=r?";":":",u=zb(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||n,d=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:d,pathExt:m,pathExtExe:g}=o(p,l),_=[],E=v=>new Promise((x,y)=>{if(v===d.length)return l.all&&_.length?x(_):y(s(p));let A=d[v],b=/^".*"$/.test(A)?A.slice(1,-1):A,k=i.join(b,p),D=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+k:k;x(h(D,v,0))}),h=(v,x,y)=>new Promise((A,b)=>{if(y===m.length)return A(E(x+1));let k=m[y];u(v+k,{pathExt:g},(D,F)=>{if(!D&&F)if(l.all)_.push(v+k);else return A(v+k);return A(h(v,x,y+1))})});return f?E(0).then(v=>f(null,v),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:d,pathExtExe:m}=o(p,l),g=[];for(let _=0;_<f.length;_++){let E=f[_],h=/^".*"$/.test(E)?E.slice(1,-1):E,v=i.join(h,p),x=!h&&/^\.[\\\/]/.test(p)?p.slice(0,2)+v:v;for(let y=0;y<d.length;y++){let A=x+d[y];try{if(u.sync(A,{pathExt:m}))if(l.all)g.push(A);else return A}catch{}}}if(l.all&&g.length)return g;if(l.nothrow)return null;throw s(p)};t.exports=a,a.sync=c}),yd=W((e,t)=>{"use strict";G();var r=(i={})=>{let n=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}),tD=W((e,t)=>{"use strict";G();var r=ue("path"),i=eD(),n=yd();function u(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let d;try{d=i.sync(o.command,{path:c[n({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return d&&(d=r.resolve(l?o.options.cwd:"",d)),d}function s(o){return u(o)||u(o,!0)}t.exports=s}),rD=W((e,t)=>{"use strict";G();var r=/([()\][%!^"`<>&|;, *?])/g;function i(u){return u=u.replace(r,"^$1"),u}function n(u,s){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(r,"^$1"),s&&(u=u.replace(r,"^$1")),u}t.exports.command=i,t.exports.argument=n}),nD=W((e,t)=>{"use strict";G(),t.exports=/^#!(.*)/}),iD=W((e,t)=>{"use strict";G();var r=nD();t.exports=(i="")=>{let n=i.match(r);if(!n)return null;let[u,s]=n[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),oD=W((e,t)=>{"use strict";G();var r=ue("fs"),i=iD();function n(u){let s=Buffer.alloc(150),o;try{o=r.openSync(u,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return i(s.toString())}t.exports=n}),sD=W((e,t)=>{"use strict";G();var r=ue("path"),i=tD(),n=rD(),u=oD(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=i(f);let d=f.file&&u(f.file);return d?(f.args.unshift(f.file),f.command=d,i(f)):f.file}function p(f){if(!s)return f;let d=c(f),m=!o.test(d);if(f.options.forceShell||m){let g=a.test(d);f.command=r.normalize(f.command),f.command=n.command(f.command),f.args=f.args.map(E=>n.argument(E,g));let _=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${_}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,d,m){d&&!Array.isArray(d)&&(m=d,d=null),d=d?d.slice(0):[],m=Object.assign({},m);let g={command:f,args:d,options:m,file:void 0,original:{command:f,args:d}};return m.shell?g:p(g)}t.exports=l}),aD=W((e,t)=>{"use strict";G();var r=process.platform==="win32";function i(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function n(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=u(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function u(o,a){return r&&o===1&&!a.file?i(a.original,"spawn"):null}function s(o,a){return r&&o===1&&!a.file?i(a.original,"spawnSync"):null}t.exports={hookChildProcess:n,verifyENOENT:u,verifyENOENTSync:s,notFoundError:i}}),uD=W((e,t)=>{"use strict";G();var r=ue("child_process"),i=sD(),n=aD();function u(o,a,c){let p=i(o,a,c),l=r.spawn(p.command,p.args,p.options);return n.hookChildProcess(l,p),l}function s(o,a,c){let p=i(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||n.verifyENOENTSync(l.status,p),l}t.exports=u,t.exports.spawn=u,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=n}),cD=W((e,t)=>{"use strict";G(),t.exports=r=>{let i=typeof r=="string"?`
63
+ `),u=i?"+":n?"":"-";return r+u+`
64
+ `}function Lf(e){return e[e.length-1]===`
65
+ `?e.slice(0,-1):e}function ux(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
66
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,If(e.slice(0,c),t)}(),i=e[0]===`
67
+ `||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",n+=o+(!i&&!u&&a!==""?`
68
+ `:"")+If(a,t),i=u}return n}function If(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,u,s=0,o=0,a="";n=r.exec(e);)o=n.index,o-i>t&&(u=s>i?s:o,a+=`
69
+ `+e.slice(i,u),i=u+1),s=o;return a+=`
70
+ `,e.length-i>t&&s>i?a+=e.slice(i,s)+`
71
+ `+e.slice(s+1):a+=e.slice(i),a.slice(1)}function cx(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=zr(e,i),n=je[r],!n&&on(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||ex(r);return t}function lx(e,t,r){var n="",i=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(bt(e,t,o,!1,!1)||typeof o>"u"&&bt(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Nf(e,t,r,n){var i="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(bt(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&bt(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=la(e,t)),e.dump&&rn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=u,e.dump=i||"[]"}function px(e,t,r){var n="",i=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",n!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),bt(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bt(e,t,c,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}function fx(e,t,r,n){var i="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ke("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!n||i!=="")&&(f+=la(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),bt(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&rn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=la(e,t)),bt(e,t+1,p,!0,l)&&(e.dump&&rn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=u,e.dump=i||"{}"}function Bf(e,t,r){var n,i,u,s,o,a;for(i=r?e.explicitTypes:e.implicitTypes,u=0,s=i.length;u<s;u+=1)if(o=i[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,md.call(o.represent)==="[object Function]")n=o.represent(t,a);else if(gd.call(o.represent,a))n=o.represent[a](t,a);else throw new Ke("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function bt(e,t,r,n,i,u,s){e.tag=null,e.dump=r,Bf(e,r,!1)||Bf(e,r,!0);var o=md.call(e.dump),a=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(fx(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(px(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Nf(e,t-1,e.dump,i):Nf(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(lx(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&ax(e,e.dump,t,u,a);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new Ke("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function dx(e,t){var r=[],n=[],i,u;for(fa(e,r,n),i=0,u=n.length;i<u;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(u)}function fa(e,t,r){var n,i,u;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,u=e.length;i<u;i+=1)fa(e[i],t,r);else for(n=Object.keys(e),i=0,u=n.length;i<u;i+=1)fa(e[n[i]],t,r)}function hx(e,t){t=t||{};var r=new rx(t);r.noRefs||dx(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),bt(r,0,n,!0,!0)?r.dump+`
72
+ `:""}var mx=hx,gx={dump:mx};function Da(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.")}}var WT=hd.load,YT=hd.loadAll,KT=gx.dump,VT=Da("safeLoad","load"),QT=Da("safeLoadAll","loadAll"),XT=Da("safeDump","dump"),JT=an(VA()),yx=Ce(require("os"),1),vx=W((e,t)=>{G(),t.exports=u,u.sync=s;var r=ue("fs");function n(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function i(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:n(a,c)}function u(o,a,c){r.stat(o,function(p,l){c(p,p?!1:i(l,o,a))})}function s(o,a){return i(r.statSync(o),o,a)}}),_x=W((e,t)=>{G(),t.exports=n,n.sync=i;var r=ue("fs");function n(o,a,c){r.stat(o,function(p,l){c(p,p?!1:u(l,a))})}function i(o,a){return u(r.statSync(o),a)}function u(o,a){return o.isFile()&&s(o,a)}function s(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),h=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),v=parseInt("010",8),_=parseInt("001",8),E=m|v,d=c&_||c&v&&l===h||c&m&&p===f||c&E&&f===0;return d}}),Ex=W((e,t)=>{G();var r=ue("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=vx():n=_x(),t.exports=i,i.sync=u;function i(s,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){i(s,o||{},function(l,f){l?p(l):c(f)})})}n(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function u(s,o){try{return n.sync(s,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),Sx=W((e,t)=>{G();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=ue("path"),i=r?";":":",u=Ex(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||i,h=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",v=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&v[0]!==""&&v.unshift(""),{pathEnv:h,pathExt:v,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:h,pathExt:m,pathExtExe:v}=o(p,l),_=[],E=y=>new Promise((D,g)=>{if(y===h.length)return l.all&&_.length?D(_):g(s(p));let A=h[y],b=/^".*"$/.test(A)?A.slice(1,-1):A,k=n.join(b,p),x=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+k:k;D(d(x,y,0))}),d=(y,D,g)=>new Promise((A,b)=>{if(g===m.length)return A(E(D+1));let k=m[g];u(y+k,{pathExt:v},(x,F)=>{if(!x&&F)if(l.all)_.push(y+k);else return A(y+k);return A(d(y,D,g+1))})});return f?E(0).then(y=>f(null,y),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:h,pathExtExe:m}=o(p,l),v=[];for(let _=0;_<f.length;_++){let E=f[_],d=/^".*"$/.test(E)?E.slice(1,-1):E,y=n.join(d,p),D=!d&&/^\.[\\\/]/.test(p)?p.slice(0,2)+y:y;for(let g=0;g<h.length;g++){let A=D+h[g];try{if(u.sync(A,{pathExt:m}))if(l.all)v.push(A);else return A}catch{}}}if(l.all&&v.length)return v;if(l.nothrow)return null;throw s(p)};t.exports=a,a.sync=c}),wd=W((e,t)=>{"use strict";G();var r=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}),Ax=W((e,t)=>{"use strict";G();var r=ue("path"),n=Sx(),i=wd();function u(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let h;try{h=n.sync(o.command,{path:c[i({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return h&&(h=r.resolve(l?o.options.cwd:"",h)),h}function s(o){return u(o)||u(o,!0)}t.exports=s}),bx=W((e,t)=>{"use strict";G();var r=/([()\][%!^"`<>&|;, *?])/g;function n(u){return u=u.replace(r,"^$1"),u}function i(u,s){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(r,"^$1"),s&&(u=u.replace(r,"^$1")),u}t.exports.command=n,t.exports.argument=i}),xx=W((e,t)=>{"use strict";G(),t.exports=/^#!(.*)/}),Dx=W((e,t)=>{"use strict";G();var r=xx();t.exports=(n="")=>{let i=n.match(r);if(!i)return null;let[u,s]=i[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),wx=W((e,t)=>{"use strict";G();var r=ue("fs"),n=Dx();function i(u){let s=Buffer.alloc(150),o;try{o=r.openSync(u,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return n(s.toString())}t.exports=i}),Cx=W((e,t)=>{"use strict";G();var r=ue("path"),n=Ax(),i=bx(),u=wx(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=n(f);let h=f.file&&u(f.file);return h?(f.args.unshift(f.file),f.command=h,n(f)):f.file}function p(f){if(!s)return f;let h=c(f),m=!o.test(h);if(f.options.forceShell||m){let v=a.test(h);f.command=r.normalize(f.command),f.command=i.command(f.command),f.args=f.args.map(E=>i.argument(E,v));let _=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${_}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,h,m){h&&!Array.isArray(h)&&(m=h,h=null),h=h?h.slice(0):[],m=Object.assign({},m);let v={command:f,args:h,options:m,file:void 0,original:{command:f,args:h}};return m.shell?v:p(v)}t.exports=l}),kx=W((e,t)=>{"use strict";G();var r=process.platform==="win32";function n(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function i(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=u(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function u(o,a){return r&&o===1&&!a.file?n(a.original,"spawn"):null}function s(o,a){return r&&o===1&&!a.file?n(a.original,"spawnSync"):null}t.exports={hookChildProcess:i,verifyENOENT:u,verifyENOENTSync:s,notFoundError:n}}),Fx=W((e,t)=>{"use strict";G();var r=ue("child_process"),n=Cx(),i=kx();function u(o,a,c){let p=n(o,a,c),l=r.spawn(p.command,p.args,p.options);return i.hookChildProcess(l,p),l}function s(o,a,c){let p=n(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||i.verifyENOENTSync(l.status,p),l}t.exports=u,t.exports.spawn=u,t.exports.sync=s,t.exports._parse=n,t.exports._enoent=i}),Rx=W((e,t)=>{"use strict";G(),t.exports=r=>{let n=typeof r=="string"?`
73
73
  `:`
74
- `.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),lD=W((e,t)=>{"use strict";G();var r=ue("path"),i=yd(),n=u=>{u={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...u};let s,o=r.resolve(u.cwd),a=[];for(;s!==o;)a.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(u.cwd,u.execPath,"..");return a.push(c),a.concat(u.path).join(r.delimiter)};t.exports=n,t.exports.default=n,t.exports.env=u=>{u={env:process.env,...u};let s={...u.env},o=i({env:s});return u.path=s[o],s[o]=t.exports(u),s}}),pD=W((e,t)=>{"use strict";G();var r=(i,n)=>{for(let u of Reflect.ownKeys(n))Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(n,u));return i};t.exports=r,t.exports.default=r}),fD=W((e,t)=>{"use strict";G();var r=pD(),i=new WeakMap,n=(u,s={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let o,a=0,c=u.displayName||u.name||"<anonymous>",p=function(...l){if(i.set(p,++a),a===1)o=u.apply(this,l),u=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,u),i.set(p,a),p};t.exports=n,t.exports.default=n,t.exports.callCount=u=>{if(!i.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return i.get(u)}}),dD=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=t}),gd=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var t=function(){let u=n-i+1;return Array.from({length:u},r)};e.getRealtimeSignals=t;var r=function(u,s){return{name:`SIGRT${s+1}`,number:i+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,n=64;e.SIGRTMAX=n}),hD=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var t=ue("os"),r=dD(),i=gd(),n=function(){let s=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...s].map(u)};e.getSignals=n;var u=function({name:s,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=t.constants,d=f!==void 0;return{name:s,number:d?f:o,description:a,supported:d,action:c,forced:p,standard:l}}}),mD=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var t=ue("os"),r=hD(),i=gd(),n=function(){return(0,r.getSignals)().reduce(u,{})},u=function(l,{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}){return{...l,[f]:{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}}},s=n();e.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=i.SIGRTMAX+1,d=Array.from({length:f},(m,g)=>a(g,l));return Object.assign({},...d)},a=function(l,f){let d=c(l,f);if(d===void 0)return{};let{name:m,description:g,supported:_,action:E,forced:h,standard:v}=d;return{[l]:{name:m,number:l,description:g,supported:_,action:E,forced:h,standard:v}}},c=function(l,f){let d=f.find(({name:m})=>t.constants.signals[m]===l);return d!==void 0?d:f.find(m=>m.number===l)},p=o();e.signalsByNumber=p}),yD=W((e,t)=>{"use strict";G();var{signalsByName:r}=mD(),i=({timedOut:u,timeout:s,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>u?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",n=({stdout:u,stderr:s,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:d,isCanceled:m,killed:g,parsed:{options:{timeout:_}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,h=a&&a.code,v=`Command ${i({timedOut:d,timeout:_,errorCode:h,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,x=Object.prototype.toString.call(a)==="[object Error]",y=x?`${v}
75
- ${a.message}`:v,A=[y,s,u].filter(Boolean).join(`
76
- `);return x?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=y,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=u,a.stderr=s,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(d),a.isCanceled=m,a.killed=g&&!d,a};t.exports=n}),gD=W((e,t)=>{"use strict";G();var r=["stdin","stdout","stderr"],i=u=>r.some(s=>u[s]!==void 0),n=u=>{if(!u)return;let{stdio:s}=u;if(s===void 0)return r.map(a=>u[a]);if(i(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(a,c)=>s[c])};t.exports=n,t.exports.node=u=>{let s=n(u);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),vD=W((e,t)=>{G(),t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),_D=W((e,t)=>{G();var r=global.process,i=function(h){return h&&typeof h=="object"&&typeof h.removeListener=="function"&&typeof h.emit=="function"&&typeof h.reallyExit=="function"&&typeof h.listeners=="function"&&typeof h.kill=="function"&&typeof h.pid=="number"&&typeof h.on=="function"};i(r)?(n=ue("assert"),u=vD(),s=/^win/i.test(r.platform),o=ue("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),t.exports=function(h,v){if(!i(global.process))return function(){};n.equal(typeof h,"function","a callback must be provided for exit handler"),f===!1&&d();var x="exit";v&&v.alwaysLast&&(x="afterexit");var y=function(){a.removeListener(x,h),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(x,h),y},c=function(){!f||!i(global.process)||(f=!1,u.forEach(function(h){try{r.removeListener(h,l[h])}catch{}}),r.emit=_,r.reallyExit=m,a.count-=1)},t.exports.unload=c,p=function(h,v,x){a.emitted[h]||(a.emitted[h]=!0,a.emit(h,v,x))},l={},u.forEach(function(h){l[h]=function(){if(i(global.process)){var v=r.listeners(h);v.length===a.count&&(c(),p("exit",null,h),p("afterexit",null,h),s&&h==="SIGHUP"&&(h="SIGINT"),r.kill(r.pid,h))}}}),t.exports.signals=function(){return u},f=!1,d=function(){f||!i(global.process)||(f=!0,a.count+=1,u=u.filter(function(h){try{return r.on(h,l[h]),!0}catch{return!1}}),r.emit=E,r.reallyExit=g)},t.exports.load=d,m=r.reallyExit,g=function(h){!i(global.process)||(r.exitCode=h||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},_=r.emit,E=function(h,v){if(h==="exit"&&i(global.process)){v!==void 0&&(r.exitCode=v);var x=_.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),x}else return _.apply(this,arguments)}):t.exports=function(){return function(){}};var n,u,s,o,a,c,p,l,f,d,m,g,_,E}),ED=W((e,t)=>{"use strict";G();var r=ue("os"),i=_D(),n=1e3*5,u=(g,_="SIGTERM",E={})=>{let h=g(_);return s(g,_,E,h),h},s=(g,_,E,h)=>{if(!o(_,E,h))return;let v=c(E),x=setTimeout(()=>{g("SIGKILL")},v);x.unref&&x.unref()},o=(g,{forceKillAfterTimeout:_},E)=>a(g)&&_!==!1&&E,a=g=>g===r.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return n;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},p=(g,_)=>{g.kill()&&(_.isCanceled=!0)},l=(g,_,E)=>{g.kill(_),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:_}))},f=(g,{timeout:_,killSignal:E="SIGTERM"},h)=>{if(_===0||_===void 0)return h;let v,x=new Promise((A,b)=>{v=setTimeout(()=>{l(g,E,b)},_)}),y=h.finally(()=>{clearTimeout(v)});return Promise.race([x,y])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},m=async(g,{cleanup:_,detached:E},h)=>{if(!_||E)return h;let v=i(()=>{g.kill()});return h.finally(()=>{v()})};t.exports={spawnedKill:u,spawnedCancel:p,setupTimeout:f,validateTimeout:d,setExitHandler:m}}),SD=W((e,t)=>{"use strict";G();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",t.exports=r}),AD=W((e,t)=>{"use strict";G();var{PassThrough:r}=ue("stream");t.exports=i=>{i={...i};let{array:n}=i,{encoding:u}=i,s=u==="buffer",o=!1;n?o=!(u||s):u=u||"utf8",s&&(u=null);let a=new r({objectMode:o});u&&a.setEncoding(u);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),bD=W((e,t)=>{"use strict";G();var{constants:r}=ue("buffer"),i=ue("stream"),{promisify:n}=ue("util"),u=AD(),s=n(i.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=u(p);return await new Promise((d,m)=>{let g=_=>{_&&f.getBufferedLength()<=r.MAX_LENGTH&&(_.bufferedData=f.getBufferedValue()),m(_)};(async()=>{try{await s(c,f),d()}catch(_){g(_)}})(),f.on("data",()=>{f.getBufferedLength()>l&&g(new o)})}),f.getBufferedValue()}t.exports=a,t.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),t.exports.array=(c,p)=>a(c,{...p,array:!0}),t.exports.MaxBufferError=o}),DD=W((e,t)=>{"use strict";G();var{PassThrough:r}=ue("stream");t.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=u,n.isEmpty=s,n.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),n;function u(a){return Array.isArray(a)?(a.forEach(u),this):(i.push(a),a.once("end",o.bind(null,a)),a.once("error",n.emit.bind(n,"error")),a.pipe(n,{end:!1}),this)}function s(){return i.length==0}function o(a){i=i.filter(function(c){return c!==a}),!i.length&&n.readable&&n.end()}}}),xD=W((e,t)=>{"use strict";G();var r=SD(),i=bD(),n=DD(),u=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let d=n();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(d){return d.bufferedData}}},a=(l,{encoding:f,buffer:d,maxBuffer:m})=>{if(!(!l||!d))return f?i(l,{encoding:f,maxBuffer:m}):i.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:d},{encoding:m,buffer:g,maxBuffer:_},E)=>{let h=a(l,{encoding:m,buffer:g,maxBuffer:_}),v=a(f,{encoding:m,buffer:g,maxBuffer:_}),x=a(d,{encoding:m,buffer:g,maxBuffer:_*2});try{return await Promise.all([E,h,v,x])}catch(y){return Promise.all([{error:y,signal:y.signal,timedOut:y.timedOut},o(l,h),o(f,v),o(d,x)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};t.exports={handleInput:u,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),wD=W((e,t)=>{"use strict";G();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,o)=>{for(let[a,c]of i){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,a,{...c,value:p})}return s},u=s=>new Promise((o,a)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{a(c)}),s.stdin&&s.stdin.on("error",c=>{a(c)})});t.exports={mergePromise:n,getSpawnedPromise:u}}),CD=W((e,t)=>{"use strict";G();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,u=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>u(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${f}`:l.push(f)}return l};t.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),kD=W((e,t)=>{"use strict";G();var r=ue("path"),i=ue("child_process"),n=uD(),u=cD(),s=lD(),o=fD(),a=yD(),c=gD(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:d,setExitHandler:m}=ED(),{handleInput:g,getSpawnedResult:_,makeAllStream:E,validateInputSync:h}=xD(),{mergePromise:v,getSpawnedPromise:x}=wD(),{joinCommand:y,parseCommand:A,getEscapedCommand:b}=CD(),k=1e3*1e3*100,D=({env:P,extendEnv:C,preferLocal:S,localDir:R,execPath:L})=>{let M=C?{...process.env,...P}:P;return S?s.env({env:M,cwd:R,execPath:L}):M},F=(P,C,S={})=>{let R=n._parse(P,C,S);return P=R.command,C=R.args,S=R.options,S={maxBuffer:k,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=D(S),S.stdio=c(S),process.platform==="win32"&&r.basename(P,".exe")==="cmd"&&C.unshift("/q"),{file:P,args:C,options:S,parsed:R}},w=(P,C,S)=>typeof C!="string"&&!Buffer.isBuffer(C)?S===void 0?void 0:"":P.stripFinalNewline?u(C):C,O=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);d(R.options);let B;try{B=i.spawn(R.file,R.args,R.options)}catch(pe){let ne=new i.ChildProcess,T=Promise.reject(a({error:pe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1}));return v(ne,T)}let Q=x(B),Z=f(B,R.options,Q),oe=m(B,R.options,Z),N={isCanceled:!1};B.kill=p.bind(null,B.kill.bind(B)),B.cancel=l.bind(null,B,N);let le=o(async()=>{let[{error:pe,exitCode:ne,signal:T,timedOut:I},$,K,Y]=await _(B,R.options,oe),z=w(R.options,$),X=w(R.options,K),ee=w(R.options,Y);if(pe||ne!==0||T!==null){let ie=a({error:pe,exitCode:ne,signal:T,stdout:z,stderr:X,all:ee,command:L,escapedCommand:M,parsed:R,timedOut:I,isCanceled:N.isCanceled,killed:B.killed});if(!R.options.reject)return ie;throw ie}return{command:L,escapedCommand:M,exitCode:0,stdout:z,stderr:X,all:ee,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(B,R.options.input),B.all=E(B,R.options),v(B,le)};t.exports=O,t.exports.sync=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);h(R.options);let B;try{B=i.spawnSync(R.file,R.args,R.options)}catch(oe){throw a({error:oe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1})}let Q=w(R.options,B.stdout,B.error),Z=w(R.options,B.stderr,B.error);if(B.error||B.status!==0||B.signal!==null){let oe=a({stdout:Q,stderr:Z,error:B.error,signal:B.signal,exitCode:B.status,command:L,escapedCommand:M,parsed:R,timedOut:B.error&&B.error.code==="ETIMEDOUT",isCanceled:!1,killed:B.signal!==null});if(!R.options.reject)return oe;throw oe}return{command:L,escapedCommand:M,exitCode:0,stdout:Q,stderr:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(P,C)=>{let[S,...R]=A(P);return O(S,R,C)},t.exports.commandSync=(P,C)=>{let[S,...R]=A(P);return O.sync(S,R,C)},t.exports.node=(P,C,S={})=>{C&&!Array.isArray(C)&&typeof C=="object"&&(S=C,C=[]);let R=c.node(S),L=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:M=process.execPath,nodeOptions:B=L}=S;return O(M,[...B,P,...Array.isArray(C)?C:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:R,shell:!1})}});G();var FD=an(kD());async function zs(e){let t={cwd:Xb.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,FD.default)(e,["--version"],t);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function RD(){let[e,t,r]=await Promise.all([zs("yarnpkg"),zs("npm"),zs("pnpm")]);return{yarn:e,pnpm:t,npm:r}}G();var Ge=class extends Error{constructor(e,t){var r;super(e),this.name="ConvertError",this.type=(r=t==null?void 0:t.type)!=null?r:"unknown",Error.captureStackTrace(this,Ge)}},ht=Ce(require("fs-extra")),sn=Ce(require("path")),OD=Ce(require("execa")),TD=Ce(require("fs-extra")),PD=Ce(require("chalk")),LD=Ce(require("path")),ci=Ce(require("fs-extra")),nr=Ce(require("path")),ID=Ce(Jl()),ND=Ce(ff()),BD=/^(?!_)(.+)@(.+)$/;function st({workspaceRoot:e}){let t=nr.default.join(e,"package.json");try{return ci.default.readJsonSync(t,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Ge(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Ge(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function Ea({workspaceRoot:e}){let{packageManager:t}=st({workspaceRoot:e});if(t)try{let r=t.match(BD);if(r){let[i,n]=r;return n}}catch{}}function vi({workspaceRoot:e}){let t=st({workspaceRoot:e}),r=nr.default.basename(e),{name:i=r,description:n}=t;return{name:i,description:n}}function kf({workspaceRoot:e}){let t=nr.default.join(e,"pnpm-workspace.yaml");if(ci.default.existsSync(t))try{let r=ND.default.load(ci.default.readFileSync(t,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Ge(`failed to parse ${t}`,{type:"pnpm-workspace_parse_error"})}return[]}function Sa({root:e,lockFile:t,workspaceConfig:r}){let i=u=>nr.default.join(e,u),n={root:e,lockfile:i(t),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Aa({workspaceRoot:e,workspaceGlobs:t}){return t?t.flatMap(r=>{let i=`${r}/package.json`;return ID.default.sync(i,{onlyFiles:!0,absolute:!0,cwd:e})}).map(r=>{let i=nr.default.dirname(r),{name:n,description:u}=vi({workspaceRoot:i});return{name:n,description:u,paths:{root:i,packageJson:r,nodeModules:nr.default.join(i,"node_modules")}}}):[]}function MD({directory:e}){let t=nr.default.resolve(process.cwd(),e);return{exists:ci.default.existsSync(t),absolute:t}}function Lr({packageManager:e,action:t,project:r}){let i=r.workspaceData.globs.length>0;return`${t==="remove"?"Removing":"Adding"} ${e} ${i?"workspaces":""} ${t==="remove"?"from":"to"} ${r.name}`}function jD({dependencyList:e,project:t,to:r}){let i=[];return t.workspaceData.workspaces.forEach(n=>{let{name:u}=n;if(e[u]){let s=e[u],o=s.startsWith("workspace:")?s.slice(10):s;e[u]=r.name==="pnpm"?`workspace:${o}`:o,i.push(u)}}),{dependencyList:e,updated:i}}function Tr({project:e,workspace:t,to:r,logger:i,options:n}){if(["yarn","npm"].includes(r.name)&&["yarn","npm"].includes(e.packageManager))return;let u=st({workspaceRoot:t.paths.root}),s={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},o=["dependencies","devDependencies","peerDependencies","optionalDependencies"];o.forEach(l=>{let f=u[l];if(f){let{updated:d,dependencyList:m}=jD({dependencyList:f,project:e,to:r});u[l]=m,s[l]=d}});let a=l=>{let f=s[l].length;if(f>0)return`${PD.default.green(f.toString())} ${l}`},c=o.map(a).filter(Boolean),p=`./${LD.default.relative(e.paths.root,t.paths.packageJson)}`;if(c.length>=1){let l="updating";c.forEach((f,d)=>{c.length===1?l+=` ${f} in ${p}`:d===c.length-1?l+=`and ${f} in ${p}`:l+=` ${f}, `}),i.workspaceStep(l)}else i.workspaceStep(`no workspace dependencies found in ${p}`);n!=null&&n.dry||TD.default.writeJSONSync(t.paths.packageJson,u,{spaces:2})}async function vd(e){let t=sn.default.join(e.workspaceRoot,"pnpm-lock.yaml"),r=sn.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),i=Ea({workspaceRoot:e.workspaceRoot});return ht.default.existsSync(t)||ht.default.existsSync(r)||i==="pnpm"}async function $D(e){if(!await vd(e))throw new Ge("Not a pnpm project",{type:"package_manager-unexpected"});let{name:t,description:r}=vi(e);return{name:t,description:r,packageManager:"pnpm",paths:Sa({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:kf(e),workspaces:Aa({workspaceGlobs:kf(e),...e})}}}async function HD(e){let{project:t,to:r,logger:i,options:n}=e,u=t.workspaceData.globs.length>0;i.mainStep(Lr({action:"create",packageManager:"pnpm",project:t}));let s=st({workspaceRoot:t.paths.root});i.rootHeader(),s.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${t.name} root "package.json"`),n!=null&&n.dry||(ht.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),u&&(i.rootStep('adding "pnpm-workspace.yaml"'),ht.default.writeFileSync(sn.default.join(t.paths.root,"pnpm-workspace.yaml"),`packages:
74
+ `.charCodeAt(),i=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r}}),Ox=W((e,t)=>{"use strict";G();var r=ue("path"),n=wd(),i=u=>{u={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...u};let s,o=r.resolve(u.cwd),a=[];for(;s!==o;)a.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(u.cwd,u.execPath,"..");return a.push(c),a.concat(u.path).join(r.delimiter)};t.exports=i,t.exports.default=i,t.exports.env=u=>{u={env:process.env,...u};let s={...u.env},o=n({env:s});return u.path=s[o],s[o]=t.exports(u),s}}),Tx=W((e,t)=>{"use strict";G();var r=(n,i)=>{for(let u of Reflect.ownKeys(i))Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(i,u));return n};t.exports=r,t.exports.default=r}),Px=W((e,t)=>{"use strict";G();var r=Tx(),n=new WeakMap,i=(u,s={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let o,a=0,c=u.displayName||u.name||"<anonymous>",p=function(...l){if(n.set(p,++a),a===1)o=u.apply(this,l),u=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,u),n.set(p,a),p};t.exports=i,t.exports.default=i,t.exports.callCount=u=>{if(!n.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return n.get(u)}}),Lx=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=t}),Cd=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var t=function(){let u=i-n+1;return Array.from({length:u},r)};e.getRealtimeSignals=t;var r=function(u,s){return{name:`SIGRT${s+1}`,number:n+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),Ix=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var t=ue("os"),r=Lx(),n=Cd(),i=function(){let s=(0,n.getRealtimeSignals)();return[...r.SIGNALS,...s].map(u)};e.getSignals=i;var u=function({name:s,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=t.constants,h=f!==void 0;return{name:s,number:h?f:o,description:a,supported:h,action:c,forced:p,standard:l}}}),Nx=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var t=ue("os"),r=Ix(),n=Cd(),i=function(){return(0,r.getSignals)().reduce(u,{})},u=function(l,{name:f,number:h,description:m,supported:v,action:_,forced:E,standard:d}){return{...l,[f]:{name:f,number:h,description:m,supported:v,action:_,forced:E,standard:d}}},s=i();e.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=n.SIGRTMAX+1,h=Array.from({length:f},(m,v)=>a(v,l));return Object.assign({},...h)},a=function(l,f){let h=c(l,f);if(h===void 0)return{};let{name:m,description:v,supported:_,action:E,forced:d,standard:y}=h;return{[l]:{name:m,number:l,description:v,supported:_,action:E,forced:d,standard:y}}},c=function(l,f){let h=f.find(({name:m})=>t.constants.signals[m]===l);return h!==void 0?h:f.find(m=>m.number===l)},p=o();e.signalsByNumber=p}),Bx=W((e,t)=>{"use strict";G();var{signalsByName:r}=Nx(),n=({timedOut:u,timeout:s,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>u?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",i=({stdout:u,stderr:s,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:h,isCanceled:m,killed:v,parsed:{options:{timeout:_}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,d=a&&a.code,y=`Command ${n({timedOut:h,timeout:_,errorCode:d,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,D=Object.prototype.toString.call(a)==="[object Error]",g=D?`${y}
75
+ ${a.message}`:y,A=[g,s,u].filter(Boolean).join(`
76
+ `);return D?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=g,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=u,a.stderr=s,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(h),a.isCanceled=m,a.killed=v&&!h,a};t.exports=i}),Mx=W((e,t)=>{"use strict";G();var r=["stdin","stdout","stderr"],n=u=>r.some(s=>u[s]!==void 0),i=u=>{if(!u)return;let{stdio:s}=u;if(s===void 0)return r.map(a=>u[a]);if(n(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(a,c)=>s[c])};t.exports=i,t.exports.node=u=>{let s=i(u);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),jx=W((e,t)=>{G(),t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),$x=W((e,t)=>{G();var r=global.process,n=function(d){return d&&typeof d=="object"&&typeof d.removeListener=="function"&&typeof d.emit=="function"&&typeof d.reallyExit=="function"&&typeof d.listeners=="function"&&typeof d.kill=="function"&&typeof d.pid=="number"&&typeof d.on=="function"};n(r)?(i=ue("assert"),u=jx(),s=/^win/i.test(r.platform),o=ue("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),t.exports=function(d,y){if(!n(global.process))return function(){};i.equal(typeof d,"function","a callback must be provided for exit handler"),f===!1&&h();var D="exit";y&&y.alwaysLast&&(D="afterexit");var g=function(){a.removeListener(D,d),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(D,d),g},c=function(){!f||!n(global.process)||(f=!1,u.forEach(function(d){try{r.removeListener(d,l[d])}catch{}}),r.emit=_,r.reallyExit=m,a.count-=1)},t.exports.unload=c,p=function(d,y,D){a.emitted[d]||(a.emitted[d]=!0,a.emit(d,y,D))},l={},u.forEach(function(d){l[d]=function(){if(n(global.process)){var y=r.listeners(d);y.length===a.count&&(c(),p("exit",null,d),p("afterexit",null,d),s&&d==="SIGHUP"&&(d="SIGINT"),r.kill(r.pid,d))}}}),t.exports.signals=function(){return u},f=!1,h=function(){f||!n(global.process)||(f=!0,a.count+=1,u=u.filter(function(d){try{return r.on(d,l[d]),!0}catch{return!1}}),r.emit=E,r.reallyExit=v)},t.exports.load=h,m=r.reallyExit,v=function(d){!n(global.process)||(r.exitCode=d||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},_=r.emit,E=function(d,y){if(d==="exit"&&n(global.process)){y!==void 0&&(r.exitCode=y);var D=_.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),D}else return _.apply(this,arguments)}):t.exports=function(){return function(){}};var i,u,s,o,a,c,p,l,f,h,m,v,_,E}),Hx=W((e,t)=>{"use strict";G();var r=ue("os"),n=$x(),i=1e3*5,u=(v,_="SIGTERM",E={})=>{let d=v(_);return s(v,_,E,d),d},s=(v,_,E,d)=>{if(!o(_,E,d))return;let y=c(E),D=setTimeout(()=>{v("SIGKILL")},y);D.unref&&D.unref()},o=(v,{forceKillAfterTimeout:_},E)=>a(v)&&_!==!1&&E,a=v=>v===r.constants.signals.SIGTERM||typeof v=="string"&&v.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:v=!0})=>{if(v===!0)return i;if(!Number.isFinite(v)||v<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${v}\` (${typeof v})`);return v},p=(v,_)=>{v.kill()&&(_.isCanceled=!0)},l=(v,_,E)=>{v.kill(_),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:_}))},f=(v,{timeout:_,killSignal:E="SIGTERM"},d)=>{if(_===0||_===void 0)return d;let y,D=new Promise((A,b)=>{y=setTimeout(()=>{l(v,E,b)},_)}),g=d.finally(()=>{clearTimeout(y)});return Promise.race([D,g])},h=({timeout:v})=>{if(v!==void 0&&(!Number.isFinite(v)||v<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${v}\` (${typeof v})`)},m=async(v,{cleanup:_,detached:E},d)=>{if(!_||E)return d;let y=n(()=>{v.kill()});return d.finally(()=>{y()})};t.exports={spawnedKill:u,spawnedCancel:p,setupTimeout:f,validateTimeout:h,setExitHandler:m}}),Gx=W((e,t)=>{"use strict";G();var r=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";r.writable=n=>r(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",r.readable=n=>r(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",r.duplex=n=>r.writable(n)&&r.readable(n),r.transform=n=>r.duplex(n)&&typeof n._transform=="function",t.exports=r}),qx=W((e,t)=>{"use strict";G();var{PassThrough:r}=ue("stream");t.exports=n=>{n={...n};let{array:i}=n,{encoding:u}=n,s=u==="buffer",o=!1;i?o=!(u||s):u=u||"utf8",s&&(u=null);let a=new r({objectMode:o});u&&a.setEncoding(u);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>i?p:s?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),Ux=W((e,t)=>{"use strict";G();var{constants:r}=ue("buffer"),n=ue("stream"),{promisify:i}=ue("util"),u=qx(),s=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=u(p);return await new Promise((h,m)=>{let v=_=>{_&&f.getBufferedLength()<=r.MAX_LENGTH&&(_.bufferedData=f.getBufferedValue()),m(_)};(async()=>{try{await s(c,f),h()}catch(_){v(_)}})(),f.on("data",()=>{f.getBufferedLength()>l&&v(new o)})}),f.getBufferedValue()}t.exports=a,t.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),t.exports.array=(c,p)=>a(c,{...p,array:!0}),t.exports.MaxBufferError=o}),Wx=W((e,t)=>{"use strict";G();var{PassThrough:r}=ue("stream");t.exports=function(){var n=[],i=new r({objectMode:!0});return i.setMaxListeners(0),i.add=u,i.isEmpty=s,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),i;function u(a){return Array.isArray(a)?(a.forEach(u),this):(n.push(a),a.once("end",o.bind(null,a)),a.once("error",i.emit.bind(i,"error")),a.pipe(i,{end:!1}),this)}function s(){return n.length==0}function o(a){n=n.filter(function(c){return c!==a}),!n.length&&i.readable&&i.end()}}}),Yx=W((e,t)=>{"use strict";G();var r=Gx(),n=Ux(),i=Wx(),u=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let h=i();return l.stdout&&h.add(l.stdout),l.stderr&&h.add(l.stderr),h},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(h){return h.bufferedData}}},a=(l,{encoding:f,buffer:h,maxBuffer:m})=>{if(!(!l||!h))return f?n(l,{encoding:f,maxBuffer:m}):n.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:h},{encoding:m,buffer:v,maxBuffer:_},E)=>{let d=a(l,{encoding:m,buffer:v,maxBuffer:_}),y=a(f,{encoding:m,buffer:v,maxBuffer:_}),D=a(h,{encoding:m,buffer:v,maxBuffer:_*2});try{return await Promise.all([E,d,y,D])}catch(g){return Promise.all([{error:g,signal:g.signal,timedOut:g.timedOut},o(l,d),o(f,y),o(h,D)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};t.exports={handleInput:u,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),Kx=W((e,t)=>{"use strict";G();var r=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),i=(s,o)=>{for(let[a,c]of n){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,a,{...c,value:p})}return s},u=s=>new Promise((o,a)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{a(c)}),s.stdin&&s.stdin.on("error",c=>{a(c)})});t.exports={mergePromise:i,getSpawnedPromise:u}}),Vx=W((e,t)=>{"use strict";G();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],n=/^[\w.-]+$/,i=/"/g,u=p=>typeof p!="string"||n.test(p)?p:`"${p.replace(i,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>u(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let h=l[l.length-1];h&&h.endsWith("\\")?l[l.length-1]=`${h.slice(0,-1)} ${f}`:l.push(f)}return l};t.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),Qx=W((e,t)=>{"use strict";G();var r=ue("path"),n=ue("child_process"),i=Fx(),u=Rx(),s=Ox(),o=Px(),a=Bx(),c=Mx(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:h,setExitHandler:m}=Hx(),{handleInput:v,getSpawnedResult:_,makeAllStream:E,validateInputSync:d}=Yx(),{mergePromise:y,getSpawnedPromise:D}=Kx(),{joinCommand:g,parseCommand:A,getEscapedCommand:b}=Vx(),k=1e3*1e3*100,x=({env:P,extendEnv:C,preferLocal:S,localDir:R,execPath:L})=>{let M=C?{...process.env,...P}:P;return S?s.env({env:M,cwd:R,execPath:L}):M},F=(P,C,S={})=>{let R=i._parse(P,C,S);return P=R.command,C=R.args,S=R.options,S={maxBuffer:k,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=x(S),S.stdio=c(S),process.platform==="win32"&&r.basename(P,".exe")==="cmd"&&C.unshift("/q"),{file:P,args:C,options:S,parsed:R}},w=(P,C,S)=>typeof C!="string"&&!Buffer.isBuffer(C)?S===void 0?void 0:"":P.stripFinalNewline?u(C):C,O=(P,C,S)=>{let R=F(P,C,S),L=g(P,C),M=b(P,C);h(R.options);let B;try{B=n.spawn(R.file,R.args,R.options)}catch(pe){let ne=new n.ChildProcess,T=Promise.reject(a({error:pe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1}));return y(ne,T)}let Q=D(B),Z=f(B,R.options,Q),oe=m(B,R.options,Z),N={isCanceled:!1};B.kill=p.bind(null,B.kill.bind(B)),B.cancel=l.bind(null,B,N);let le=o(async()=>{let[{error:pe,exitCode:ne,signal:T,timedOut:I},$,Y,K]=await _(B,R.options,oe),z=w(R.options,$),J=w(R.options,Y),ee=w(R.options,K);if(pe||ne!==0||T!==null){let ie=a({error:pe,exitCode:ne,signal:T,stdout:z,stderr:J,all:ee,command:L,escapedCommand:M,parsed:R,timedOut:I,isCanceled:N.isCanceled,killed:B.killed});if(!R.options.reject)return ie;throw ie}return{command:L,escapedCommand:M,exitCode:0,stdout:z,stderr:J,all:ee,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return v(B,R.options.input),B.all=E(B,R.options),y(B,le)};t.exports=O,t.exports.sync=(P,C,S)=>{let R=F(P,C,S),L=g(P,C),M=b(P,C);d(R.options);let B;try{B=n.spawnSync(R.file,R.args,R.options)}catch(oe){throw a({error:oe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1})}let Q=w(R.options,B.stdout,B.error),Z=w(R.options,B.stderr,B.error);if(B.error||B.status!==0||B.signal!==null){let oe=a({stdout:Q,stderr:Z,error:B.error,signal:B.signal,exitCode:B.status,command:L,escapedCommand:M,parsed:R,timedOut:B.error&&B.error.code==="ETIMEDOUT",isCanceled:!1,killed:B.signal!==null});if(!R.options.reject)return oe;throw oe}return{command:L,escapedCommand:M,exitCode:0,stdout:Q,stderr:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(P,C)=>{let[S,...R]=A(P);return O(S,R,C)},t.exports.commandSync=(P,C)=>{let[S,...R]=A(P);return O.sync(S,R,C)},t.exports.node=(P,C,S={})=>{C&&!Array.isArray(C)&&typeof C=="object"&&(S=C,C=[]);let R=c.node(S),L=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:M=process.execPath,nodeOptions:B=L}=S;return O(M,[...B,P,...Array.isArray(C)?C:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:R,shell:!1})}});G();var Xx=an(Qx());async function oa(e){let t={cwd:yx.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,Xx.default)(e,["--version"],t);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function Jx(){let[e,t,r]=await Promise.all([oa("yarnpkg"),oa("npm"),oa("pnpm")]);return{yarn:e,pnpm:t,npm:r}}G();var qe=class extends Error{constructor(e,t){var r;super(e),this.name="ConvertError",this.type=(r=t==null?void 0:t.type)!=null?r:"unknown",Error.captureStackTrace(this,qe)}},mt=Ce(require("fs-extra")),sn=Ce(require("path")),Zx=Ce(require("execa")),zx=Ce(require("fs-extra")),eD=Ce(require("chalk")),tD=Ce(require("path")),fi=Ce(require("fs-extra")),nr=Ce(require("path")),rD=Ce(ap()),nD=Ce(Af()),iD=/^(?!_)(.+)@(.+)$/;function st({workspaceRoot:e}){let t=nr.default.join(e,"package.json");try{return fi.default.readJsonSync(t,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new qe(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new qe(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function wa({workspaceRoot:e}){let{packageManager:t}=st({workspaceRoot:e});if(t)try{let r=t.match(iD);if(r){let[n,i]=r;return i}}catch{}}function Si({workspaceRoot:e}){let t=st({workspaceRoot:e}),r=nr.default.basename(e),{name:n=r,description:i}=t;return{name:n,description:i}}function Mf({workspaceRoot:e}){let t=nr.default.join(e,"pnpm-workspace.yaml");if(fi.default.existsSync(t))try{let r=nD.default.load(fi.default.readFileSync(t,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new qe(`failed to parse ${t}`,{type:"pnpm-workspace_parse_error"})}return[]}function Ca({root:e,lockFile:t,workspaceConfig:r}){let n=u=>nr.default.join(e,u),i={root:e,lockfile:n(t),packageJson:n("package.json"),nodeModules:n("node_modules")};return r&&(i.workspaceConfig=n(r)),i}function ka({workspaceRoot:e,workspaceGlobs:t}){return t?t.flatMap(r=>{let n=`${r}/package.json`;return rD.default.sync(n,{onlyFiles:!0,absolute:!0,cwd:e})}).map(r=>{let n=nr.default.dirname(r),{name:i,description:u}=Si({workspaceRoot:n});return{name:i,description:u,paths:{root:n,packageJson:r,nodeModules:nr.default.join(n,"node_modules")}}}):[]}function oD({directory:e}){let t=nr.default.resolve(process.cwd(),e);return{exists:fi.default.existsSync(t),absolute:t}}function Lr({packageManager:e,action:t,project:r}){let n=r.workspaceData.globs.length>0;return`${t==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${t==="remove"?"from":"to"} ${r.name}`}function sD({dependencyList:e,project:t,to:r}){let n=[];return t.workspaceData.workspaces.forEach(i=>{let{name:u}=i;if(e[u]){let s=e[u],o=s.startsWith("workspace:")?s.slice(10):s;e[u]=r.name==="pnpm"?`workspace:${o}`:o,n.push(u)}}),{dependencyList:e,updated:n}}function Tr({project:e,workspace:t,to:r,logger:n,options:i}){if(["yarn","npm"].includes(r.name)&&["yarn","npm"].includes(e.packageManager))return;let u=st({workspaceRoot:t.paths.root}),s={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},o=["dependencies","devDependencies","peerDependencies","optionalDependencies"];o.forEach(l=>{let f=u[l];if(f){let{updated:h,dependencyList:m}=sD({dependencyList:f,project:e,to:r});u[l]=m,s[l]=h}});let a=l=>{let f=s[l].length;if(f>0)return`${eD.default.green(f.toString())} ${l}`},c=o.map(a).filter(Boolean),p=`./${tD.default.relative(e.paths.root,t.paths.packageJson)}`;if(c.length>=1){let l="updating";c.forEach((f,h)=>{c.length===1?l+=` ${f} in ${p}`:h===c.length-1?l+=`and ${f} in ${p}`:l+=` ${f}, `}),n.workspaceStep(l)}else n.workspaceStep(`no workspace dependencies found in ${p}`);i!=null&&i.dry||zx.default.writeJSONSync(t.paths.packageJson,u,{spaces:2})}async function kd(e){let t=sn.default.join(e.workspaceRoot,"pnpm-lock.yaml"),r=sn.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=wa({workspaceRoot:e.workspaceRoot});return mt.default.existsSync(t)||mt.default.existsSync(r)||n==="pnpm"}async function aD(e){if(!await kd(e))throw new qe("Not a pnpm project",{type:"package_manager-unexpected"});let{name:t,description:r}=Si(e);return{name:t,description:r,packageManager:"pnpm",paths:Ca({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:Mf(e),workspaces:ka({workspaceGlobs:Mf(e),...e})}}}async function uD(e){let{project:t,to:r,logger:n,options:i}=e,u=t.workspaceData.globs.length>0;n.mainStep(Lr({action:"create",packageManager:"pnpm",project:t}));let s=st({workspaceRoot:t.paths.root});n.rootHeader(),s.packageManager=`${r.name}@${r.version}`,n.rootStep(`adding "packageManager" field to ${t.name} root "package.json"`),i!=null&&i.dry||(mt.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),u&&(n.rootStep('adding "pnpm-workspace.yaml"'),mt.default.writeFileSync(sn.default.join(t.paths.root,"pnpm-workspace.yaml"),`packages:
77
77
  ${t.workspaceData.globs.map(o=>` - "${o}"`).join(`
78
- `)}`))),u&&(Tr({workspace:{name:"root",paths:t.paths},project:t,to:r,logger:i,options:n}),i.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:r,logger:i,options:n})))}async function GD(e){let{project:t,logger:r,options:i}=e,n=t.workspaceData.globs.length>0;r.mainStep(Lr({action:"remove",packageManager:"pnpm",project:t}));let u=st({workspaceRoot:t.paths.root});if(t.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||ht.default.rmSync(t.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(i!=null&&i.dry)){ht.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>ht.default.rm(o,{recursive:!0,force:!0})))}catch{throw new Ge("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function qD(e){let{project:t,logger:r,options:i}=e;r.subStep(`removing ${sn.default.relative(t.paths.root,t.paths.lockfile)}`),i!=null&&i.dry||ht.default.rmSync(t.paths.lockfile,{force:!0})}async function UD(e){let{project:t,logger:r,options:i}=e;if(t.packageManager!=="pnpm"&&(r.subStep(`converting ${sn.default.relative(t.paths.root,t.paths.lockfile)} to pnpm-lock.yaml`),!(i!=null&&i.dry)&&ht.default.existsSync(t.paths.lockfile)))try{await(0,OD.default)("pnpm",["import"],{stdio:"ignore",cwd:t.paths.root})}finally{ht.default.rmSync(t.paths.lockfile,{force:!0})}}var WD={detect:vd,read:$D,create:HD,remove:GD,clean:qD,convertLock:UD},KD=WD,ir=Ce(require("fs-extra")),li=Ce(require("path"));async function _d(e){let t=li.default.join(e.workspaceRoot,"package-lock.json"),r=Ea({workspaceRoot:e.workspaceRoot});return ir.default.existsSync(t)||r==="npm"}async function YD(e){if(!await _d(e))throw new Ge("Not an npm project",{type:"package_manager-unexpected"});let t=st(e),{name:r,description:i}=vi(e);return{name:r,description:i,packageManager:"npm",paths:Sa({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:t.workspaces||[],workspaces:Aa({workspaceGlobs:t.workspaces,...e})}}}async function VD(e){let{project:t,options:r,to:i,logger:n}=e,u=t.workspaceData.globs.length>0;n.mainStep(Lr({packageManager:"npm",action:"create",project:t}));let s=st({workspaceRoot:t.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${li.default.relative(t.paths.root,t.paths.packageJson)}`),s.packageManager=`${i.name}@${i.version}`,u?(n.rootStep(`adding "workspaces" field to ${li.default.relative(t.paths.root,t.paths.packageJson)}`),s.workspaces=t.workspaceData.globs,r!=null&&r.dry||ir.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),Tr({workspace:{name:"root",paths:t.paths},project:t,to:i,logger:n,options:r}),n.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:i,logger:n,options:r}))):r!=null&&r.dry||ir.default.writeJSONSync(t.paths.packageJson,s,{spaces:2})}async function QD(e){let{project:t,logger:r,options:i}=e,n=t.workspaceData.globs.length>0;r.mainStep(Lr({packageManager:"npm",action:"remove",project:t}));let u=st({workspaceRoot:t.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${t.name} root "package.json"`),delete u.workspaces),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(i!=null&&i.dry)){ir.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>ir.default.rm(o,{recursive:!0,force:!0})))}catch{throw new Ge("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function XD(e){let{project:t,logger:r,options:i}=e;r.subStep(`removing ${li.default.relative(t.paths.root,t.paths.lockfile)}`),i!=null&&i.dry||ir.default.rmSync(t.paths.lockfile,{force:!0})}async function JD(e){let{project:t,options:r}=e;t.packageManager!=="npm"&&(r!=null&&r.dry||ir.default.rmSync(t.paths.lockfile,{force:!0}))}var ZD={detect:_d,read:YD,create:VD,remove:QD,clean:XD,convertLock:JD},zD=ZD,or=Ce(require("fs-extra")),pi=Ce(require("path"));async function Ed(e){let t=pi.default.join(e.workspaceRoot,"yarn.lock"),r=Ea({workspaceRoot:e.workspaceRoot});return or.default.existsSync(t)||r==="yarn"}async function ex(e){if(!await Ed(e))throw new Ge("Not a yarn project",{type:"package_manager-unexpected"});let t=st(e),{name:r,description:i}=vi(e);return{name:r,description:i,packageManager:"yarn",paths:Sa({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:t.workspaces||[],workspaces:Aa({workspaceGlobs:t.workspaces,...e})}}}async function tx(e){let{project:t,to:r,logger:i,options:n}=e,u=t.workspaceData.globs.length>0;i.mainStep(Lr({packageManager:"yarn",action:"create",project:t}));let s=st({workspaceRoot:t.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${pi.default.relative(t.paths.root,t.paths.packageJson)}`),s.packageManager=`${r.name}@${r.version}`,u?(i.rootStep(`adding "workspaces" field to ${pi.default.relative(t.paths.root,t.paths.packageJson)}`),s.workspaces=t.workspaceData.globs,n!=null&&n.dry||or.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),Tr({workspace:{name:"root",paths:t.paths},project:t,to:r,logger:i,options:n}),i.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:r,logger:i,options:n}))):n!=null&&n.dry||or.default.writeJSONSync(t.paths.packageJson,s,{spaces:2})}async function rx(e){let{project:t,logger:r,options:i}=e,n=t.workspaceData.globs.length>0;r.mainStep(Lr({packageManager:"yarn",action:"remove",project:t}));let u=st({workspaceRoot:t.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${t.name} root "package.json"`),delete u.workspaces),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(i!=null&&i.dry)){or.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>or.default.rm(o,{recursive:!0,force:!0})))}catch{throw new Ge("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function nx(e){let{project:t,logger:r,options:i}=e;r.subStep(`removing ${pi.default.relative(t.paths.root,t.paths.lockfile)}`),i!=null&&i.dry||or.default.rmSync(t.paths.lockfile,{force:!0})}async function ix(e){let{project:t,options:r}=e;t.packageManager!=="yarn"&&(r!=null&&r.dry||or.default.rmSync(t.paths.lockfile,{force:!0}))}var ox={detect:Ed,read:ex,create:tx,remove:rx,clean:nx,convertLock:ix},sx=ox,ax={pnpm:KD,yarn:sx,npm:zD},Rr=ax;async function Sd({root:e}){let{exists:t,absolute:r}=MD({directory:e});if(!t)throw new Ge(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Rr))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Ge("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var ux=Ce(require("chalk")),cx=Ce(require("execa")),lx=Ce(require("ora")),px=require("semver"),nt=Ce(require("chalk")),fx=Ce(require("gradient-string")),wr=2,Ad=class{constructor({interactive:e,dry:t}={}){this.interactive=e!=null?e:!0,this.dry=t!=null?t:!1,this.step=1}logger(...e){this.interactive&&console.log(...e)}indented(e,...t){this.logger(" ".repeat(wr*e),...t)}header(e){this.blankLine(),this.logger(nt.default.bold(e))}installerFrames(){let e=`${" ".repeat(wr)} - ${this.dry?nt.default.yellow("SKIPPED | "):nt.default.green("OK | ")}`;return[`${e} `,`${e}> `,`${e}>> `,`${e}>>>`]}gradient(e){return(0,fx.default)("#0099F7","#F11712")(e.toString())}hero(){this.logger(nt.default.bold(this.gradient(`
78
+ `)}`))),u&&(Tr({workspace:{name:"root",paths:t.paths},project:t,to:r,logger:n,options:i}),n.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:r,logger:n,options:i})))}async function cD(e){let{project:t,logger:r,options:n}=e,i=t.workspaceData.globs.length>0;r.mainStep(Lr({action:"remove",packageManager:"pnpm",project:t}));let u=st({workspaceRoot:t.paths.root});if(t.paths.workspaceConfig&&i&&(r.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||mt.default.rmSync(t.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(n!=null&&n.dry)){mt.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>mt.default.rm(o,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function lD(e){let{project:t,logger:r,options:n}=e;r.subStep(`removing ${sn.default.relative(t.paths.root,t.paths.lockfile)}`),n!=null&&n.dry||mt.default.rmSync(t.paths.lockfile,{force:!0})}async function pD(e){let{project:t,logger:r,options:n}=e;if(t.packageManager!=="pnpm"&&(r.subStep(`converting ${sn.default.relative(t.paths.root,t.paths.lockfile)} to pnpm-lock.yaml`),!(n!=null&&n.dry)&&mt.default.existsSync(t.paths.lockfile)))try{await(0,Zx.default)("pnpm",["import"],{stdio:"ignore",cwd:t.paths.root})}finally{mt.default.rmSync(t.paths.lockfile,{force:!0})}}var fD={detect:kd,read:aD,create:uD,remove:cD,clean:lD,convertLock:pD},dD=fD,ir=Ce(require("fs-extra")),di=Ce(require("path"));async function Fd(e){let t=di.default.join(e.workspaceRoot,"package-lock.json"),r=wa({workspaceRoot:e.workspaceRoot});return ir.default.existsSync(t)||r==="npm"}async function hD(e){if(!await Fd(e))throw new qe("Not an npm project",{type:"package_manager-unexpected"});let t=st(e),{name:r,description:n}=Si(e);return{name:r,description:n,packageManager:"npm",paths:Ca({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:t.workspaces||[],workspaces:ka({workspaceGlobs:t.workspaces,...e})}}}async function mD(e){let{project:t,options:r,to:n,logger:i}=e,u=t.workspaceData.globs.length>0;i.mainStep(Lr({packageManager:"npm",action:"create",project:t}));let s=st({workspaceRoot:t.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${di.default.relative(t.paths.root,t.paths.packageJson)}`),s.packageManager=`${n.name}@${n.version}`,u?(i.rootStep(`adding "workspaces" field to ${di.default.relative(t.paths.root,t.paths.packageJson)}`),s.workspaces=t.workspaceData.globs,r!=null&&r.dry||ir.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),Tr({workspace:{name:"root",paths:t.paths},project:t,to:n,logger:i,options:r}),i.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:n,logger:i,options:r}))):r!=null&&r.dry||ir.default.writeJSONSync(t.paths.packageJson,s,{spaces:2})}async function gD(e){let{project:t,logger:r,options:n}=e,i=t.workspaceData.globs.length>0;r.mainStep(Lr({packageManager:"npm",action:"remove",project:t}));let u=st({workspaceRoot:t.paths.root});if(i&&(r.subStep(`removing "workspaces" field in ${t.name} root "package.json"`),delete u.workspaces),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(n!=null&&n.dry)){ir.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>ir.default.rm(o,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function yD(e){let{project:t,logger:r,options:n}=e;r.subStep(`removing ${di.default.relative(t.paths.root,t.paths.lockfile)}`),n!=null&&n.dry||ir.default.rmSync(t.paths.lockfile,{force:!0})}async function vD(e){let{project:t,options:r}=e;t.packageManager!=="npm"&&(r!=null&&r.dry||ir.default.rmSync(t.paths.lockfile,{force:!0}))}var _D={detect:Fd,read:hD,create:mD,remove:gD,clean:yD,convertLock:vD},ED=_D,or=Ce(require("fs-extra")),hi=Ce(require("path"));async function Rd(e){let t=hi.default.join(e.workspaceRoot,"yarn.lock"),r=wa({workspaceRoot:e.workspaceRoot});return or.default.existsSync(t)||r==="yarn"}async function SD(e){if(!await Rd(e))throw new qe("Not a yarn project",{type:"package_manager-unexpected"});let t=st(e),{name:r,description:n}=Si(e);return{name:r,description:n,packageManager:"yarn",paths:Ca({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:t.workspaces||[],workspaces:ka({workspaceGlobs:t.workspaces,...e})}}}async function AD(e){let{project:t,to:r,logger:n,options:i}=e,u=t.workspaceData.globs.length>0;n.mainStep(Lr({packageManager:"yarn",action:"create",project:t}));let s=st({workspaceRoot:t.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${hi.default.relative(t.paths.root,t.paths.packageJson)}`),s.packageManager=`${r.name}@${r.version}`,u?(n.rootStep(`adding "workspaces" field to ${hi.default.relative(t.paths.root,t.paths.packageJson)}`),s.workspaces=t.workspaceData.globs,i!=null&&i.dry||or.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),Tr({workspace:{name:"root",paths:t.paths},project:t,to:r,logger:n,options:i}),n.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:r,logger:n,options:i}))):i!=null&&i.dry||or.default.writeJSONSync(t.paths.packageJson,s,{spaces:2})}async function bD(e){let{project:t,logger:r,options:n}=e,i=t.workspaceData.globs.length>0;r.mainStep(Lr({packageManager:"yarn",action:"remove",project:t}));let u=st({workspaceRoot:t.paths.root});if(i&&(r.subStep(`removing "workspaces" field in ${t.name} root "package.json"`),delete u.workspaces),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(n!=null&&n.dry)){or.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>or.default.rm(o,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function xD(e){let{project:t,logger:r,options:n}=e;r.subStep(`removing ${hi.default.relative(t.paths.root,t.paths.lockfile)}`),n!=null&&n.dry||or.default.rmSync(t.paths.lockfile,{force:!0})}async function DD(e){let{project:t,options:r}=e;t.packageManager!=="yarn"&&(r!=null&&r.dry||or.default.rmSync(t.paths.lockfile,{force:!0}))}var wD={detect:Rd,read:SD,create:AD,remove:bD,clean:xD,convertLock:DD},CD=wD,kD={pnpm:dD,yarn:CD,npm:ED},Rr=kD;async function Od({root:e}){let{exists:t,absolute:r}=oD({directory:e});if(!t)throw new qe(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(Rr))if(await n({workspaceRoot:r}))return i({workspaceRoot:r});throw new qe("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var FD=Ce(require("chalk")),RD=Ce(require("execa")),OD=Ce(require("ora")),TD=require("semver"),nt=Ce(require("chalk")),PD=Ce(require("gradient-string")),wr=2,Td=class{constructor({interactive:e,dry:t}={}){this.interactive=e!=null?e:!0,this.dry=t!=null?t:!1,this.step=1}logger(...e){this.interactive&&console.log(...e)}indented(e,...t){this.logger(" ".repeat(wr*e),...t)}header(e){this.blankLine(),this.logger(nt.default.bold(e))}installerFrames(){let e=`${" ".repeat(wr)} - ${this.dry?nt.default.yellow("SKIPPED | "):nt.default.green("OK | ")}`;return[`${e} `,`${e}> `,`${e}>> `,`${e}>>>`]}gradient(e){return(0,PD.default)("#0099F7","#F11712")(e.toString())}hero(){this.logger(nt.default.bold(this.gradient(`
79
79
  >>> TURBOREPO
80
- `)))}info(...e){this.logger(...e)}mainStep(e){this.blankLine(),this.logger(`${this.step}. ${nt.default.underline(e)}`),this.step+=1}subStep(...e){this.logger(" ".repeat(wr),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}subStepFailure(...e){this.logger(" ".repeat(wr),"-",nt.default.red("ERROR |"),...e)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...e){this.logger(" ".repeat(wr*3),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...e){this.logger(" ".repeat(wr*3),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}blankLine(){this.logger()}error(...e){console.error(...e)}},Ff={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function bd(e){let{version:t,name:r}=e;return t?Ff[r].find(i=>(0,px.satisfies)(t,i.semver)):Ff[r].find(i=>i.default)}async function Dd(e){let{to:t,logger:r,options:i}=e,n=r!=null?r:new Ad(i),u=bd(t);if(!u)throw new Ge("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(n.subStep(`running "${u.command} ${u.installArgs}"`),!(i!=null&&i.dry)){let s;n!=null&&n.interactive&&(s=(0,lx.default)({text:"installing dependencies...",spinner:{frames:n.installerFrames()}}).start());try{await(0,cx.default)(u.command,u.installArgs,{cwd:e.project.paths.root}),s&&s.stop(),n.subStep("dependencies installed")}catch(o){throw n.subStepFailure("failed to install dependencies"),o}}}async function dx({project:e,to:t,logger:r,options:i}){if(r.header(`Converting project from ${e.packageManager} to ${t.name}.`),e.packageManager==t.name)throw new Ge("You are already using this package manager",{type:"package_manager-already_in_use"});await Rr[e.packageManager].remove({project:e,to:t,logger:r,options:i}),await Rr[t.name].create({project:e,to:t,logger:r,options:i}),r.mainStep("Installing dependencies"),i!=null&&i.skipInstall?r.subStep(ux.default.yellow("Skipping install")):(await Rr[t.name].convertLock({project:e,logger:r,options:i}),await Dd({project:e,to:t,logger:r,options:i})),r.mainStep(`Cleaning up ${e.packageManager} workspaces`),await Rr[e.packageManager].clean({project:e,logger:r})}async function hx({root:e,to:t,options:r}){let i=new Ad({...r,interactive:!1}),[n,u]=await Promise.all([Sd({root:e}),RD()]);await dx({project:n,to:{name:t,version:u[t].version},logger:i,options:r})}});j();var yn=Ae(require("chalk")),Zh=require("commander");j();var ou=Ae(require("chalk")),su=Ae(require("update-check"));var ur={name:"create-turbo",version:"1.9.0-alpha.0",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},dependencies:{"async-retry":"^1.3.3",chalk:"2.4.2",commander:"^10.0.0","cross-spawn":"^7.0.3",execa:"5.1.1","fs-extra":"^10.1.0",got:"^10.7.0","gradient-string":"^2.0.0",inquirer:"^8.0.0",ora:"4.1.1",rimraf:"^3.0.2",semver:"^7.3.8",tar:"6.1.13","update-check":"^1.5.4"},devDependencies:{"@turbo/workspaces":"workspace:*","@types/async-retry":"^1.4.5","@types/cross-spawn":"^6.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^16.11.12","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9","@types/tar":"^6.1.4",eslint:"^7.23.0",jest:"^27.4.3","strip-ansi":"^6.0.1","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.10.3","turbo-utils":"workspace:*",typescript:"^4.5.5"},files:["dist"]};var u0=(0,su.default)(ur).catch(()=>null);async function gn(){try{let e=await u0;e!=null&&e.latest&&(console.log(),console.log(ou.default.yellow.bold("A new version of `create-turbo` is available!")),console.log()),process.exit()}catch{}}j();var Li=Ae(require("chalk")),au=Ae(require("ora")),uu=Ae(require("gradient-string")),cu="#0099F7",lu="#F11712",cr=(0,uu.default)(cu,lu),vn=Li.default.hex(cu),c0=Li.default.hex(lu),_n=e=>(0,au.default)({text:e,spinner:{frames:[" ",vn("> "),vn(">> "),vn(">>>")]}}),Ii=(...e)=>{console.log(vn.bold(">>>"),...e)},et=(...e)=>{console.error(c0.bold(">>>"),...e)};j();j();var mn=Ae(require("path")),ze=Ae(require("chalk")),yt=Ae(wd());j();var Va=Ae(require("path")),Qa=Ae(require("fs-extra")),Xa=Ae(require("chalk"));j();j();j();j();j();var mx=Object.create,Cd=Object.defineProperty,yx=Object.getOwnPropertyDescriptor,gx=Object.getOwnPropertyNames,vx=Object.getPrototypeOf,_x=Object.prototype.hasOwnProperty,ae=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Ex=(e,t)=>()=>(e&&(t=e(e=0)),t),U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sx=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gx(t))!_x.call(e,n)&&n!==r&&Cd(e,n,{get:()=>t[n],enumerable:!(i=yx(t,n))||i.enumerable});return e},Mt=(e,t,r)=>(r=e!=null?mx(vx(e)):{},Sx(t||!e||!e.__esModule?Cd(r,"default",{value:e,enumerable:!0}):r,e)),H=Ex(()=>{});H();var bx=U((e,t)=>{H();function r(i){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),Dx=U((e,t)=>{H();var r=bx().default;function i(){"use strict";t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},u=Object.prototype,s=u.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(C,S,R){return Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{l({},"")}catch{l=function(C,S,R){return C[S]=R}}function f(C,S,R,L){var M=S&&S.prototype instanceof g?S:g,B=Object.create(M.prototype),Q=new w(L||[]);return B._invoke=function(Z,oe,N){var le="suspendedStart";return function(pe,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(pe==="throw")throw ne;return P()}for(N.method=pe,N.arg=ne;;){var T=N.delegate;if(T){var I=k(T,N);if(I){if(I===m)continue;return I}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(le==="suspendedStart")throw le="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);le="executing";var $=d(Z,oe,N);if($.type==="normal"){if(le=N.done?"completed":"suspendedYield",$.arg===m)continue;return{value:$.arg,done:N.done}}$.type==="throw"&&(le="completed",N.method="throw",N.arg=$.arg)}}}(C,R,Q),B}function d(C,S,R){try{return{type:"normal",arg:C.call(S,R)}}catch(L){return{type:"throw",arg:L}}}n.wrap=f;var m={};function g(){}function _(){}function E(){}var h={};l(h,a,function(){return this});var v=Object.getPrototypeOf,x=v&&v(v(O([])));x&&x!==u&&s.call(x,a)&&(h=x);var y=E.prototype=g.prototype=Object.create(h);function A(C){["next","throw","return"].forEach(function(S){l(C,S,function(R){return this._invoke(S,R)})})}function b(C,S){function R(M,B,Q,Z){var oe=d(C[M],C,B);if(oe.type!=="throw"){var N=oe.arg,le=N.value;return le&&r(le)=="object"&&s.call(le,"__await")?S.resolve(le.__await).then(function(pe){R("next",pe,Q,Z)},function(pe){R("throw",pe,Q,Z)}):S.resolve(le).then(function(pe){N.value=pe,Q(N)},function(pe){return R("throw",pe,Q,Z)})}Z(oe.arg)}var L;this._invoke=function(M,B){function Q(){return new S(function(Z,oe){R(M,B,Z,oe)})}return L=L?L.then(Q,Q):Q()}}function k(C,S){var R=C.iterator[S.method];if(R===void 0){if(S.delegate=null,S.method==="throw"){if(C.iterator.return&&(S.method="return",S.arg=void 0,k(C,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var L=d(R,C.iterator,S.arg);if(L.type==="throw")return S.method="throw",S.arg=L.arg,S.delegate=null,m;var M=L.arg;return M?M.done?(S[C.resultName]=M.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):M:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function D(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function F(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function w(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(D,this),this.reset(!0)}function O(C){if(C){var S=C[a];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var R=-1,L=function M(){for(;++R<C.length;)if(s.call(C,R))return M.value=C[R],M.done=!1,M;return M.value=void 0,M.done=!0,M};return L.next=L}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=E,l(y,"constructor",E),l(E,"constructor",_),_.displayName=l(E,p,"GeneratorFunction"),n.isGeneratorFunction=function(C){var S=typeof C=="function"&&C.constructor;return!!S&&(S===_||(S.displayName||S.name)==="GeneratorFunction")},n.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,E):(C.__proto__=E,l(C,p,"GeneratorFunction")),C.prototype=Object.create(y),C},n.awrap=function(C){return{__await:C}},A(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(C,S,R,L,M){M===void 0&&(M=Promise);var B=new b(f(C,S,R,L),M);return n.isGeneratorFunction(S)?B:B.next().then(function(Q){return Q.done?Q.value:B.next()})},A(y),l(y,p,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),n.keys=function(C){var S=[];for(var R in C)S.push(R);return S.reverse(),function L(){for(;S.length;){var M=S.pop();if(M in C)return L.value=M,L.done=!1,L}return L.done=!0,L}},n.values=O,w.prototype={constructor:w,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var S=this;function R(oe,N){return B.type="throw",B.arg=C,S.next=oe,N&&(S.method="next",S.arg=void 0),!!N}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],B=M.completion;if(M.tryLoc==="root")return R("end");if(M.tryLoc<=this.prev){var Q=s.call(M,"catchLoc"),Z=s.call(M,"finallyLoc");if(Q&&Z){if(this.prev<M.catchLoc)return R(M.catchLoc,!0);if(this.prev<M.finallyLoc)return R(M.finallyLoc)}else if(Q){if(this.prev<M.catchLoc)return R(M.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return R(M.finallyLoc)}}}},abrupt:function(C,S){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=S&&S<=M.finallyLoc&&(M=null);var B=M?M.completion:{};return B.type=C,B.arg=S,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(B)},complete:function(C,S){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&S&&(this.next=S),m},finish:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.finallyLoc===C)return this.complete(R.completion,R.afterLoc),F(R),m}},catch:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.tryLoc===C){var L=R.completion;if(L.type==="throw"){var M=L.arg;F(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,S,R){return this.delegate={iterator:O(C),resultName:S,nextLoc:R},this.method==="next"&&(this.arg=void 0),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}),xx=U((e,t)=>{H();var r=Dx()();t.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),wx=U((e,t)=>{"use strict";H();var r=(i,...n)=>new Promise(u=>{u(i(...n))});t.exports=r,t.exports.default=r}),Cx=U((e,t)=>{"use strict";H();var r=wx(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let u=[],s=0,o=()=>{s--,u.length>0&&u.shift()()},a=(l,f,...d)=>{s++;let m=r(l,...d);f(m),m.then(o,o)},c=(l,f,...d)=>{s<n?a(l,f,...d):u.push(a.bind(null,l,f,...d))},p=(l,...f)=>new Promise(d=>c(l,d,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>u.length},clearQueue:{value:()=>{u.length=0}}}),p};t.exports=i,t.exports.default=i}),kx=U((e,t)=>{"use strict";H();var r=Cx(),i=class extends Error{constructor(o){super(),this.value=o}},n=async(o,a)=>a(await o),u=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new i(a[0]);return!1},s=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(d=>[d,p(n,d,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>f(u,d)))}catch(d){if(d instanceof i)return d.value;throw d}};t.exports=s,t.exports.default=s}),Fx=U((e,t)=>{"use strict";H();var r=ae("path"),i=ae("fs"),{promisify:n}=ae("util"),u=kx(),s=n(i.stat),o=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();t.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?s:o;return u(l,async m=>{try{let g=await d(r.resolve(f.cwd,m));return p(f.type,g)}catch{return!1}},f)},t.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of l)try{let g=d(r.resolve(f.cwd,m));if(p(f.type,g))return m}catch{}}}),Rx=U((e,t)=>{"use strict";H();var r=ae("fs"),{promisify:i}=ae("util"),n=i(r.access);t.exports=async u=>{try{return await n(u),!0}catch{return!1}},t.exports.sync=u=>{try{return r.accessSync(u),!0}catch{return!1}}}),Ox=U((e,t)=>{"use strict";H();var r=ae("path"),i=Fx(),n=Rx(),u=Symbol("findUp.stop");t.exports=async(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let d=await s(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.sync=(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let d=s(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.exists=n,t.exports.sync.exists=n.sync,t.exports.stop=u}),Ze=U(e=>{"use strict";H(),e.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,u)=>{if(n)return i(n);r(u)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return t.apply(this,arguments);t.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:t.name})}}),Tx=U((e,t)=>{H();var r=ae("constants"),i=process.cwd,n=null,u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(a){n=null,s.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;t.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=d(a.chown),a.fchown=d(a.fchown),a.lchown=d(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=g(a.stat),a.fstat=g(a.fstat),a.lstat=g(a.lstat),a.statSync=_(a.statSync),a.fstatSync=_(a.fstatSync),a.lstatSync=_(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(h,v,x){x&&process.nextTick(x)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(h,v,x,y){y&&process.nextTick(y)},a.lchownSync=function(){}),u==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(h){function v(x,y,A){var b=Date.now(),k=0;h(x,y,function D(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){a.stat(y,function(w,O){w&&w.code==="ENOENT"?h(x,y,D):A(F)})},k),k<100&&(k+=10);return}A&&A(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.rename)),a.read=typeof a.read!="function"?a.read:function(h){function v(x,y,A,b,k,D){var F;if(D&&typeof D=="function"){var w=0;F=function(O,P,C){if(O&&O.code==="EAGAIN"&&w<10)return w++,h.call(a,x,y,A,b,k,F);D.apply(this,arguments)}}return h.call(a,x,y,A,b,k,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(h){return function(v,x,y,A,b){for(var k=0;;)try{return h.call(a,v,x,y,A,b)}catch(D){if(D.code==="EAGAIN"&&k<10){k++;continue}throw D}}}(a.readSync);function c(h){h.lchmod=function(v,x,y){h.open(v,r.O_WRONLY|r.O_SYMLINK,x,function(A,b){if(A){y&&y(A);return}h.fchmod(b,x,function(k){h.close(b,function(D){y&&y(k||D)})})})},h.lchmodSync=function(v,x){var y=h.openSync(v,r.O_WRONLY|r.O_SYMLINK,x),A=!0,b;try{b=h.fchmodSync(y,x),A=!1}finally{if(A)try{h.closeSync(y)}catch{}else h.closeSync(y)}return b}}function p(h){r.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(v,x,y,A){h.open(v,r.O_SYMLINK,function(b,k){if(b){A&&A(b);return}h.futimes(k,x,y,function(D){h.close(k,function(F){A&&A(D||F)})})})},h.lutimesSync=function(v,x,y){var A=h.openSync(v,r.O_SYMLINK),b,k=!0;try{b=h.futimesSync(A,x,y),k=!1}finally{if(k)try{h.closeSync(A)}catch{}else h.closeSync(A)}return b}):h.futimes&&(h.lutimes=function(v,x,y,A){A&&process.nextTick(A)},h.lutimesSync=function(){})}function l(h){return h&&function(v,x,y){return h.call(a,v,x,function(A){E(A)&&(A=null),y&&y.apply(this,arguments)})}}function f(h){return h&&function(v,x){try{return h.call(a,v,x)}catch(y){if(!E(y))throw y}}}function d(h){return h&&function(v,x,y,A){return h.call(a,v,x,y,function(b){E(b)&&(b=null),A&&A.apply(this,arguments)})}}function m(h){return h&&function(v,x,y){try{return h.call(a,v,x,y)}catch(A){if(!E(A))throw A}}}function g(h){return h&&function(v,x,y){typeof x=="function"&&(y=x,x=null);function A(b,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),y&&y.apply(this,arguments)}return x?h.call(a,v,x,A):h.call(a,v,A)}}function _(h){return h&&function(v,x){var y=x?h.call(a,v,x):h.call(a,v);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function E(h){if(!h||h.code==="ENOSYS")return!0;var v=!process.getuid||process.getuid()!==0;return!!(v&&(h.code==="EINVAL"||h.code==="EPERM"))}}}),Px=U((e,t)=>{H();var r=ae("stream").Stream;t.exports=i;function i(n){return{ReadStream:u,WriteStream:s};function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var d=p[l];this[d]=a[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}n.open(this.path,this.flags,this.mode,function(m,g){if(m){c.emit("error",m),c.readable=!1;return}c.fd=g,c.emit("open",g),c._read()})}function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Lx=U((e,t)=>{"use strict";H(),t.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var u={__proto__:r(n)};else var u=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(n,s))}),u}}),Oe=U((e,t)=>{H();var r=ae("fs"),i=Tx(),n=Px(),u=Lx(),s=ae("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(h,v){Object.defineProperty(h,o,{get:function(){return v}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var h=s.format.apply(s,arguments);h="GFS4: "+h.split(/\n/).join(`
81
- GFS4: `),console.error(h)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(h){function v(x,y){return h.call(r,x,function(A){A||_(),typeof y=="function"&&y.apply(this,arguments)})}return Object.defineProperty(v,a,{value:h}),v}(r.close),r.closeSync=function(h){function v(x){h.apply(r,arguments),_()}return Object.defineProperty(v,a,{value:h}),v}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),ae("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),t.exports=d(u(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=d(r),r.__patched=!0);function d(h){i(h),h.gracefulify=d,h.createReadStream=N,h.createWriteStream=le;var v=h.readFile;h.readFile=x;function x(T,I,$){return typeof I=="function"&&($=I,I=null),K(T,I,$);function K(Y,z,X,ee){return v(Y,z,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?m([K,[Y,z,X],ie,ee||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var y=h.writeFile;h.writeFile=A;function A(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return y(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var b=h.appendFile;b&&(h.appendFile=k);function k(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return b(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var D=h.copyFile;D&&(h.copyFile=F);function F(T,I,$,K){return typeof $=="function"&&(K=$,$=0),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return D(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var w=h.readdir;h.readdir=P;var O=/^v[0-5]\./;function P(T,I,$){typeof I=="function"&&($=I,I=null);var K=O.test(process.version)?function(z,X,ee,ie){return w(z,Y(z,X,ee,ie))}:function(z,X,ee,ie){return w(z,X,Y(z,X,ee,ie))};return K(T,I,$);function Y(z,X,ee,ie){return function(ye,se){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?m([K,[z,X,ee],ye,ie||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof ee=="function"&&ee.call(this,ye,se))}}}if(process.version.substr(0,4)==="v0.8"){var C=n(h);B=C.ReadStream,Z=C.WriteStream}var S=h.ReadStream;S&&(B.prototype=Object.create(S.prototype),B.prototype.open=Q);var R=h.WriteStream;R&&(Z.prototype=Object.create(R.prototype),Z.prototype.open=oe),Object.defineProperty(h,"ReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0}),Object.defineProperty(h,"WriteStream",{get:function(){return Z},set:function(T){Z=T},enumerable:!0,configurable:!0});var L=B;Object.defineProperty(h,"FileReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0});var M=Z;Object.defineProperty(h,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function B(T,I){return this instanceof B?(S.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function Q(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.autoClose&&T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$),T.read())})}function Z(T,I){return this instanceof Z?(R.apply(this,arguments),this):Z.apply(Object.create(Z.prototype),arguments)}function oe(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$))})}function N(T,I){return new h.ReadStream(T,I)}function le(T,I){return new h.WriteStream(T,I)}var pe=h.open;h.open=ne;function ne(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return pe(z,X,ee,function(se,re){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return h}function m(h){l("ENQUEUE",h[0].name,h[1]),r[o].push(h),E()}var g;function _(){for(var h=Date.now(),v=0;v<r[o].length;++v)r[o][v].length>2&&(r[o][v][3]=h,r[o][v][4]=h);E()}function E(){if(clearTimeout(g),g=void 0,r[o].length!==0){var h=r[o].shift(),v=h[0],x=h[1],y=h[2],A=h[3],b=h[4];if(A===void 0)l("RETRY",v.name,x),v.apply(null,x);else if(Date.now()-A>=6e4){l("TIMEOUT",v.name,x);var k=x.pop();typeof k=="function"&&k.call(null,y)}else{var D=Date.now()-b,F=Math.max(b-A,1),w=Math.min(F*1.2,100);D>=w?(l("RETRY",v.name,x),v.apply(null,x.concat([A]))):r[o].push(h)}g===void 0&&(g=setTimeout(E,0))}}}),kd=U(e=>{"use strict";H();var t=Ze().fromCallback,r=Oe(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(e[n]=r[n])}),i.forEach(n=>{e[n]=t(r[n])}),e.exists=function(n,u){return typeof u=="function"?r.exists(n,u):new Promise(s=>r.exists(n,s))},e.read=function(n,u,s,o,a,c){return typeof c=="function"?r.read(n,u,s,o,a,c):new Promise((p,l)=>{r.read(n,u,s,o,a,(f,d,m)=>{if(f)return l(f);p({bytesRead:d,buffer:m})})})},e.write=function(n,u,...s){return typeof s[s.length-1]=="function"?r.write(n,u,...s):new Promise((o,a)=>{r.write(n,u,...s,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(e.realpath.native=t(r.realpath.native))}),Fd=U((e,t)=>{"use strict";H();var r=ae("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function u(s){let o=i(s);return s=s.replace(o,""),n.test(s)}t.exports={getRootPath:i,invalidWin32Path:u}}),Ix=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Fd().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&n(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",c(d)}let l=a.mode,f=a.fs||r;l===void 0&&(l=u&~process.umask()),p||(p=null),c=c||function(){},o=i.resolve(o),f.mkdir(o,l,d=>{if(!d)return p=p||o,c(null,p);switch(d.code){case"ENOENT":if(i.dirname(o)===o)return c(d);s(i.dirname(o),a,(m,g)=>{m?c(m,g):s(o,a,c,g)});break;default:f.stat(o,(m,g)=>{m||!g.isDirectory()?c(d,p):c(null,p)});break}})}t.exports=s}),Nx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Fd().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&n(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=u&~process.umask()),c||(c=null),o=i.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(i.dirname(o)===o)throw f;c=s(i.dirname(o),a,c),s(o,a,c)}else{let d;try{d=l.statSync(o)}catch{throw f}if(!d.isDirectory())throw f}}return c}t.exports=s}),ot=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=r(Ix()),n=Nx();t.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),Rd=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("os"),n=ae("path");function u(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return p(d);r.open(l,"r+",(m,g)=>{if(m)return p(m);r.futimes(g,f,f,_=>{if(_)return p(_);r.close(g,E=>{if(E)return p(E);r.stat(l,(h,v)=>{if(h)return p(h);p(null,v.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,d){r.open(p,"r+",(m,g)=>{if(m)return d(m);r.futimes(g,l,f,_=>{r.close(g,E=>{d&&d(_||E)})})})}function c(p,l,f){let d=r.openSync(p,"r+");return r.futimesSync(d,l,f),r.closeSync(d)}t.exports={hasMillisRes:s,hasMillisResSync:u,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),Si=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=10,u=5,s=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>n||a===n&&(c>u||c===u&&p>=s)}function f(x,y,A){l()?r.stat(x,{bigint:!0},(b,k)=>{if(b)return A(b);r.stat(y,{bigint:!0},(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))}):r.stat(x,(b,k)=>{if(b)return A(b);r.stat(y,(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))})}function d(x,y){let A,b;l()?A=r.statSync(x,{bigint:!0}):A=r.statSync(x);try{l()?b=r.statSync(y,{bigint:!0}):b=r.statSync(y)}catch(k){if(k.code==="ENOENT")return{srcStat:A,destStat:null};throw k}return{srcStat:A,destStat:b}}function m(x,y,A,b){f(x,y,(k,D)=>{if(k)return b(k);let{srcStat:F,destStat:w}=D;return w&&w.ino&&w.dev&&w.ino===F.ino&&w.dev===F.dev?b(new Error("Source and destination must not be the same.")):F.isDirectory()&&h(x,y)?b(new Error(v(x,y,A))):b(null,{srcStat:F,destStat:w})})}function g(x,y,A){let{srcStat:b,destStat:k}=d(x,y);if(k&&k.ino&&k.dev&&k.ino===b.ino&&k.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&h(x,y))throw new Error(v(x,y,A));return{srcStat:b,destStat:k}}function _(x,y,A,b,k){let D=i.resolve(i.dirname(x)),F=i.resolve(i.dirname(A));if(F===D||F===i.parse(F).root)return k();l()?r.stat(F,{bigint:!0},(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k)):r.stat(F,(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k))}function E(x,y,A,b){let k=i.resolve(i.dirname(x)),D=i.resolve(i.dirname(A));if(D===k||D===i.parse(D).root)return;let F;try{l()?F=r.statSync(D,{bigint:!0}):F=r.statSync(D)}catch(w){if(w.code==="ENOENT")return;throw w}if(F.ino&&F.dev&&F.ino===y.ino&&F.dev===y.dev)throw new Error(v(x,A,b));return E(x,y,D,b)}function h(x,y){let A=i.resolve(x).split(i.sep).filter(k=>k),b=i.resolve(y).split(i.sep).filter(k=>k);return A.reduce((k,D,F)=>k&&b[F]===D,!0)}function v(x,y,A){return`Cannot ${A} '${x}' to a subdirectory of itself, '${y}'.`}t.exports={checkPaths:m,checkPathsSync:g,checkParentPaths:_,checkParentPathsSync:E,isSrcSubdir:h}}),Bx=U((e,t)=>{"use strict";H(),t.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),Mx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ot().mkdirsSync,u=Rd().utimesMillisSync,s=Si();function o(y,A,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
80
+ `)))}info(...e){this.logger(...e)}mainStep(e){this.blankLine(),this.logger(`${this.step}. ${nt.default.underline(e)}`),this.step+=1}subStep(...e){this.logger(" ".repeat(wr),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}subStepFailure(...e){this.logger(" ".repeat(wr),"-",nt.default.red("ERROR |"),...e)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...e){this.logger(" ".repeat(wr*3),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...e){this.logger(" ".repeat(wr*3),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}blankLine(){this.logger()}error(...e){console.error(...e)}},jf={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function Pd(e){let{version:t,name:r}=e;return t?jf[r].find(n=>(0,TD.satisfies)(t,n.semver)):jf[r].find(n=>n.default)}async function Ld(e){let{to:t,logger:r,options:n}=e,i=r!=null?r:new Td(n),u=Pd(t);if(!u)throw new qe("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(i.subStep(`running "${u.command} ${u.installArgs}"`),!(n!=null&&n.dry)){let s;i!=null&&i.interactive&&(s=(0,OD.default)({text:"installing dependencies...",spinner:{frames:i.installerFrames()}}).start());try{await(0,RD.default)(u.command,u.installArgs,{cwd:e.project.paths.root}),s&&s.stop(),i.subStep("dependencies installed")}catch(o){throw i.subStepFailure("failed to install dependencies"),o}}}async function LD({project:e,to:t,logger:r,options:n}){if(r.header(`Converting project from ${e.packageManager} to ${t.name}.`),e.packageManager==t.name)throw new qe("You are already using this package manager",{type:"package_manager-already_in_use"});await Rr[e.packageManager].remove({project:e,to:t,logger:r,options:n}),await Rr[t.name].create({project:e,to:t,logger:r,options:n}),r.mainStep("Installing dependencies"),n!=null&&n.skipInstall?r.subStep(FD.default.yellow("Skipping install")):(await Rr[t.name].convertLock({project:e,logger:r,options:n}),await Ld({project:e,to:t,logger:r,options:n})),r.mainStep(`Cleaning up ${e.packageManager} workspaces`),await Rr[e.packageManager].clean({project:e,logger:r})}async function ID({root:e,to:t,options:r}){let n=new Td({...r,interactive:!1}),[i,u]=await Promise.all([Od({root:e}),Jx()]);await LD({project:i,to:{name:t,version:u[t].version},logger:n,options:r})}});j();var $i=Se(require("chalk")),y0=require("commander");j();var mu=Se(require("chalk")),gu=Se(require("update-check"));var ur={name:"create-turbo",version:"1.9.0-canary.2",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},dependencies:{"async-retry":"^1.3.3",chalk:"2.4.2",commander:"^10.0.0","cross-spawn":"^7.0.3",execa:"5.1.1","fs-extra":"^10.1.0",got:"^11.8.5","gradient-string":"^2.0.0",inquirer:"^8.0.0",ora:"4.1.1",rimraf:"^3.0.2",semver:"^7.3.8",tar:"6.1.13","update-check":"^1.5.4"},devDependencies:{"@turbo/workspaces":"workspace:*","@types/async-retry":"^1.4.5","@types/cross-spawn":"^6.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^16.11.12","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9","@types/tar":"^6.1.4",eslint:"^7.23.0",jest:"^27.4.3","strip-ansi":"^6.0.1","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.10.3","turbo-utils":"workspace:*","turbo-test-utils":"workspace:*",typescript:"^4.5.5"},files:["dist"]};var C0=(0,gu.default)(ur).catch(()=>null);async function vn(){try{let e=await C0;e!=null&&e.latest&&(console.log(),console.log(mu.default.yellow.bold("A new version of `create-turbo` is available!")),console.log()),process.exit()}catch{}}j();var En=Se(require("chalk")),yu=Se(require("ora")),vu=Se(require("gradient-string")),_u="#0099F7",Eu="#F11712",k0="#FFFF00",cr=(0,vu.default)(_u,Eu),_n=En.default.hex(_u),F0=En.default.hex(Eu),R0=En.default.hex(k0),Sn=e=>(0,yu.default)({text:e,spinner:{frames:[" ",_n("> "),_n(">> "),_n(">>>")]}}),Hi=(...e)=>{console.log(_n.bold(">>>"),...e)},Pe=(...e)=>{console.error(F0.bold(">>>"),...e)},An=(...e)=>{console.error(R0.bold(">>>"),...e)};j();j();var yn=Se(require("path")),Ue=Se(require("chalk")),qt=Se(Fa());j();j();j();j();j();var ND=Object.create,Nd=Object.defineProperty,BD=Object.getOwnPropertyDescriptor,MD=Object.getOwnPropertyNames,jD=Object.getPrototypeOf,$D=Object.prototype.hasOwnProperty,ae=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),HD=(e,t)=>()=>(e&&(t=e(e=0)),t),U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),GD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of MD(t))!$D.call(e,i)&&i!==r&&Nd(e,i,{get:()=>t[i],enumerable:!(n=BD(t,i))||n.enumerable});return e},jt=(e,t,r)=>(r=e!=null?ND(jD(e)):{},GD(t||!e||!e.__esModule?Nd(r,"default",{value:e,enumerable:!0}):r,e)),H=HD(()=>{});H();var UD=U((e,t)=>{H();function r(n){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),WD=U((e,t)=>{H();var r=UD().default;function n(){"use strict";t.exports=n=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var i={},u=Object.prototype,s=u.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(C,S,R){return Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{l({},"")}catch{l=function(C,S,R){return C[S]=R}}function f(C,S,R,L){var M=S&&S.prototype instanceof v?S:v,B=Object.create(M.prototype),Q=new w(L||[]);return B._invoke=function(Z,oe,N){var le="suspendedStart";return function(pe,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(pe==="throw")throw ne;return P()}for(N.method=pe,N.arg=ne;;){var T=N.delegate;if(T){var I=k(T,N);if(I){if(I===m)continue;return I}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(le==="suspendedStart")throw le="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);le="executing";var $=h(Z,oe,N);if($.type==="normal"){if(le=N.done?"completed":"suspendedYield",$.arg===m)continue;return{value:$.arg,done:N.done}}$.type==="throw"&&(le="completed",N.method="throw",N.arg=$.arg)}}}(C,R,Q),B}function h(C,S,R){try{return{type:"normal",arg:C.call(S,R)}}catch(L){return{type:"throw",arg:L}}}i.wrap=f;var m={};function v(){}function _(){}function E(){}var d={};l(d,a,function(){return this});var y=Object.getPrototypeOf,D=y&&y(y(O([])));D&&D!==u&&s.call(D,a)&&(d=D);var g=E.prototype=v.prototype=Object.create(d);function A(C){["next","throw","return"].forEach(function(S){l(C,S,function(R){return this._invoke(S,R)})})}function b(C,S){function R(M,B,Q,Z){var oe=h(C[M],C,B);if(oe.type!=="throw"){var N=oe.arg,le=N.value;return le&&r(le)=="object"&&s.call(le,"__await")?S.resolve(le.__await).then(function(pe){R("next",pe,Q,Z)},function(pe){R("throw",pe,Q,Z)}):S.resolve(le).then(function(pe){N.value=pe,Q(N)},function(pe){return R("throw",pe,Q,Z)})}Z(oe.arg)}var L;this._invoke=function(M,B){function Q(){return new S(function(Z,oe){R(M,B,Z,oe)})}return L=L?L.then(Q,Q):Q()}}function k(C,S){var R=C.iterator[S.method];if(R===void 0){if(S.delegate=null,S.method==="throw"){if(C.iterator.return&&(S.method="return",S.arg=void 0,k(C,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var L=h(R,C.iterator,S.arg);if(L.type==="throw")return S.method="throw",S.arg=L.arg,S.delegate=null,m;var M=L.arg;return M?M.done?(S[C.resultName]=M.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):M:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function x(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function F(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function w(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(x,this),this.reset(!0)}function O(C){if(C){var S=C[a];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var R=-1,L=function M(){for(;++R<C.length;)if(s.call(C,R))return M.value=C[R],M.done=!1,M;return M.value=void 0,M.done=!0,M};return L.next=L}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=E,l(g,"constructor",E),l(E,"constructor",_),_.displayName=l(E,p,"GeneratorFunction"),i.isGeneratorFunction=function(C){var S=typeof C=="function"&&C.constructor;return!!S&&(S===_||(S.displayName||S.name)==="GeneratorFunction")},i.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,E):(C.__proto__=E,l(C,p,"GeneratorFunction")),C.prototype=Object.create(g),C},i.awrap=function(C){return{__await:C}},A(b.prototype),l(b.prototype,c,function(){return this}),i.AsyncIterator=b,i.async=function(C,S,R,L,M){M===void 0&&(M=Promise);var B=new b(f(C,S,R,L),M);return i.isGeneratorFunction(S)?B:B.next().then(function(Q){return Q.done?Q.value:B.next()})},A(g),l(g,p,"Generator"),l(g,a,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),i.keys=function(C){var S=[];for(var R in C)S.push(R);return S.reverse(),function L(){for(;S.length;){var M=S.pop();if(M in C)return L.value=M,L.done=!1,L}return L.done=!0,L}},i.values=O,w.prototype={constructor:w,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var S=this;function R(oe,N){return B.type="throw",B.arg=C,S.next=oe,N&&(S.method="next",S.arg=void 0),!!N}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],B=M.completion;if(M.tryLoc==="root")return R("end");if(M.tryLoc<=this.prev){var Q=s.call(M,"catchLoc"),Z=s.call(M,"finallyLoc");if(Q&&Z){if(this.prev<M.catchLoc)return R(M.catchLoc,!0);if(this.prev<M.finallyLoc)return R(M.finallyLoc)}else if(Q){if(this.prev<M.catchLoc)return R(M.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return R(M.finallyLoc)}}}},abrupt:function(C,S){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=S&&S<=M.finallyLoc&&(M=null);var B=M?M.completion:{};return B.type=C,B.arg=S,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(B)},complete:function(C,S){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&S&&(this.next=S),m},finish:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.finallyLoc===C)return this.complete(R.completion,R.afterLoc),F(R),m}},catch:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.tryLoc===C){var L=R.completion;if(L.type==="throw"){var M=L.arg;F(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,S,R){return this.delegate={iterator:O(C),resultName:S,nextLoc:R},this.method==="next"&&(this.arg=void 0),m}},i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}),YD=U((e,t)=>{H();var r=WD()();t.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),KD=U((e,t)=>{"use strict";H();var r=(n,...i)=>new Promise(u=>{u(n(...i))});t.exports=r,t.exports.default=r}),VD=U((e,t)=>{"use strict";H();var r=KD(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let u=[],s=0,o=()=>{s--,u.length>0&&u.shift()()},a=(l,f,...h)=>{s++;let m=r(l,...h);f(m),m.then(o,o)},c=(l,f,...h)=>{s<i?a(l,f,...h):u.push(a.bind(null,l,f,...h))},p=(l,...f)=>new Promise(h=>c(l,h,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>u.length},clearQueue:{value:()=>{u.length=0}}}),p};t.exports=n,t.exports.default=n}),QD=U((e,t)=>{"use strict";H();var r=VD(),n=class extends Error{constructor(o){super(),this.value=o}},i=async(o,a)=>a(await o),u=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new n(a[0]);return!1},s=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(h=>[h,p(i,h,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(h=>f(u,h)))}catch(h){if(h instanceof n)return h.value;throw h}};t.exports=s,t.exports.default=s}),XD=U((e,t)=>{"use strict";H();var r=ae("path"),n=ae("fs"),{promisify:i}=ae("util"),u=QD(),s=i(n.stat),o=i(n.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();t.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let h=f.allowSymlinks?s:o;return u(l,async m=>{try{let v=await h(r.resolve(f.cwd,m));return p(f.type,v)}catch{return!1}},f)},t.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let h=f.allowSymlinks?n.statSync:n.lstatSync;for(let m of l)try{let v=h(r.resolve(f.cwd,m));if(p(f.type,v))return m}catch{}}}),JD=U((e,t)=>{"use strict";H();var r=ae("fs"),{promisify:n}=ae("util"),i=n(r.access);t.exports=async u=>{try{return await i(u),!0}catch{return!1}},t.exports.sync=u=>{try{return r.accessSync(u),!0}catch{return!1}}}),ZD=U((e,t)=>{"use strict";H();var r=ae("path"),n=XD(),i=JD(),u=Symbol("findUp.stop");t.exports=async(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=async f=>{if(typeof s!="function")return n(p,f);let h=await s(f.cwd);return typeof h=="string"?n([h],f):h};for(;;){let f=await l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.sync=(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=f=>{if(typeof s!="function")return n.sync(p,f);let h=s(f.cwd);return typeof h=="string"?n.sync([h],f):h};for(;;){let f=l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.exists=i,t.exports.sync.exists=i.sync,t.exports.stop=u}),et=U(e=>{"use strict";H(),e.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((r,n)=>{arguments[arguments.length]=(i,u)=>{if(i)return n(i);r(u)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return t.apply(this,arguments);t.apply(this,arguments).then(n=>r(null,n),r)},"name",{value:t.name})}}),zD=U((e,t)=>{H();var r=ae("constants"),n=process.cwd,i=null,u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(a){i=null,s.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;t.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=h(a.chown),a.fchown=h(a.fchown),a.lchown=h(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=v(a.stat),a.fstat=v(a.fstat),a.lstat=v(a.lstat),a.statSync=_(a.statSync),a.fstatSync=_(a.fstatSync),a.lstatSync=_(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(d,y,D){D&&process.nextTick(D)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(d,y,D,g){g&&process.nextTick(g)},a.lchownSync=function(){}),u==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(d){function y(D,g,A){var b=Date.now(),k=0;d(D,g,function x(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){a.stat(g,function(w,O){w&&w.code==="ENOENT"?d(D,g,x):A(F)})},k),k<100&&(k+=10);return}A&&A(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(a.rename)),a.read=typeof a.read!="function"?a.read:function(d){function y(D,g,A,b,k,x){var F;if(x&&typeof x=="function"){var w=0;F=function(O,P,C){if(O&&O.code==="EAGAIN"&&w<10)return w++,d.call(a,D,g,A,b,k,F);x.apply(this,arguments)}}return d.call(a,D,g,A,b,k,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(d){return function(y,D,g,A,b){for(var k=0;;)try{return d.call(a,y,D,g,A,b)}catch(x){if(x.code==="EAGAIN"&&k<10){k++;continue}throw x}}}(a.readSync);function c(d){d.lchmod=function(y,D,g){d.open(y,r.O_WRONLY|r.O_SYMLINK,D,function(A,b){if(A){g&&g(A);return}d.fchmod(b,D,function(k){d.close(b,function(x){g&&g(k||x)})})})},d.lchmodSync=function(y,D){var g=d.openSync(y,r.O_WRONLY|r.O_SYMLINK,D),A=!0,b;try{b=d.fchmodSync(g,D),A=!1}finally{if(A)try{d.closeSync(g)}catch{}else d.closeSync(g)}return b}}function p(d){r.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(y,D,g,A){d.open(y,r.O_SYMLINK,function(b,k){if(b){A&&A(b);return}d.futimes(k,D,g,function(x){d.close(k,function(F){A&&A(x||F)})})})},d.lutimesSync=function(y,D,g){var A=d.openSync(y,r.O_SYMLINK),b,k=!0;try{b=d.futimesSync(A,D,g),k=!1}finally{if(k)try{d.closeSync(A)}catch{}else d.closeSync(A)}return b}):d.futimes&&(d.lutimes=function(y,D,g,A){A&&process.nextTick(A)},d.lutimesSync=function(){})}function l(d){return d&&function(y,D,g){return d.call(a,y,D,function(A){E(A)&&(A=null),g&&g.apply(this,arguments)})}}function f(d){return d&&function(y,D){try{return d.call(a,y,D)}catch(g){if(!E(g))throw g}}}function h(d){return d&&function(y,D,g,A){return d.call(a,y,D,g,function(b){E(b)&&(b=null),A&&A.apply(this,arguments)})}}function m(d){return d&&function(y,D,g){try{return d.call(a,y,D,g)}catch(A){if(!E(A))throw A}}}function v(d){return d&&function(y,D,g){typeof D=="function"&&(g=D,D=null);function A(b,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),g&&g.apply(this,arguments)}return D?d.call(a,y,D,A):d.call(a,y,A)}}function _(d){return d&&function(y,D){var g=D?d.call(a,y,D):d.call(a,y);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function E(d){if(!d||d.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(d.code==="EINVAL"||d.code==="EPERM"))}}}),ew=U((e,t)=>{H();var r=ae("stream").Stream;t.exports=n;function n(i){return{ReadStream:u,WriteStream:s};function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var h=p[l];this[h]=a[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(m,v){if(m){c.emit("error",m),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),tw=U((e,t)=>{"use strict";H(),t.exports=n;var r=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var u={__proto__:r(i)};else var u=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(i,s))}),u}}),Oe=U((e,t)=>{H();var r=ae("fs"),n=zD(),i=ew(),u=tw(),s=ae("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(d,y){Object.defineProperty(d,o,{get:function(){return y}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var d=s.format.apply(s,arguments);d="GFS4: "+d.split(/\n/).join(`
81
+ GFS4: `),console.error(d)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(d){function y(D,g){return d.call(r,D,function(A){A||_(),typeof g=="function"&&g.apply(this,arguments)})}return Object.defineProperty(y,a,{value:d}),y}(r.close),r.closeSync=function(d){function y(D){d.apply(r,arguments),_()}return Object.defineProperty(y,a,{value:d}),y}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),ae("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),t.exports=h(u(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=h(r),r.__patched=!0);function h(d){n(d),d.gracefulify=h,d.createReadStream=N,d.createWriteStream=le;var y=d.readFile;d.readFile=D;function D(T,I,$){return typeof I=="function"&&($=I,I=null),Y(T,I,$);function Y(K,z,J,ee){return y(K,z,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?m([Y,[K,z,J],ie,ee||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var g=d.writeFile;d.writeFile=A;function A(T,I,$,Y){return typeof $=="function"&&(Y=$,$=null),K(T,I,$,Y);function K(z,J,ee,ie,ge){return g(z,J,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var b=d.appendFile;b&&(d.appendFile=k);function k(T,I,$,Y){return typeof $=="function"&&(Y=$,$=null),K(T,I,$,Y);function K(z,J,ee,ie,ge){return b(z,J,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var x=d.copyFile;x&&(d.copyFile=F);function F(T,I,$,Y){return typeof $=="function"&&(Y=$,$=0),K(T,I,$,Y);function K(z,J,ee,ie,ge){return x(z,J,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var w=d.readdir;d.readdir=P;var O=/^v[0-5]\./;function P(T,I,$){typeof I=="function"&&($=I,I=null);var Y=O.test(process.version)?function(z,J,ee,ie){return w(z,K(z,J,ee,ie))}:function(z,J,ee,ie){return w(z,J,K(z,J,ee,ie))};return Y(T,I,$);function K(z,J,ee,ie){return function(ge,se){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?m([Y,[z,J,ee],ge,ie||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof ee=="function"&&ee.call(this,ge,se))}}}if(process.version.substr(0,4)==="v0.8"){var C=i(d);B=C.ReadStream,Z=C.WriteStream}var S=d.ReadStream;S&&(B.prototype=Object.create(S.prototype),B.prototype.open=Q);var R=d.WriteStream;R&&(Z.prototype=Object.create(R.prototype),Z.prototype.open=oe),Object.defineProperty(d,"ReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0}),Object.defineProperty(d,"WriteStream",{get:function(){return Z},set:function(T){Z=T},enumerable:!0,configurable:!0});var L=B;Object.defineProperty(d,"FileReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0});var M=Z;Object.defineProperty(d,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function B(T,I){return this instanceof B?(S.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function Q(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.autoClose&&T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$),T.read())})}function Z(T,I){return this instanceof Z?(R.apply(this,arguments),this):Z.apply(Object.create(Z.prototype),arguments)}function oe(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$))})}function N(T,I){return new d.ReadStream(T,I)}function le(T,I){return new d.WriteStream(T,I)}var pe=d.open;d.open=ne;function ne(T,I,$,Y){return typeof $=="function"&&(Y=$,$=null),K(T,I,$,Y);function K(z,J,ee,ie,ge){return pe(z,J,ee,function(se,re){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([K,[z,J,ee,ie],se,ge||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return d}function m(d){l("ENQUEUE",d[0].name,d[1]),r[o].push(d),E()}var v;function _(){for(var d=Date.now(),y=0;y<r[o].length;++y)r[o][y].length>2&&(r[o][y][3]=d,r[o][y][4]=d);E()}function E(){if(clearTimeout(v),v=void 0,r[o].length!==0){var d=r[o].shift(),y=d[0],D=d[1],g=d[2],A=d[3],b=d[4];if(A===void 0)l("RETRY",y.name,D),y.apply(null,D);else if(Date.now()-A>=6e4){l("TIMEOUT",y.name,D);var k=D.pop();typeof k=="function"&&k.call(null,g)}else{var x=Date.now()-b,F=Math.max(b-A,1),w=Math.min(F*1.2,100);x>=w?(l("RETRY",y.name,D),y.apply(null,D.concat([A]))):r[o].push(d)}v===void 0&&(v=setTimeout(E,0))}}}),Bd=U(e=>{"use strict";H();var t=et().fromCallback,r=Oe(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.keys(r).forEach(i=>{i!=="promises"&&(e[i]=r[i])}),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,u){return typeof u=="function"?r.exists(i,u):new Promise(s=>r.exists(i,s))},e.read=function(i,u,s,o,a,c){return typeof c=="function"?r.read(i,u,s,o,a,c):new Promise((p,l)=>{r.read(i,u,s,o,a,(f,h,m)=>{if(f)return l(f);p({bytesRead:h,buffer:m})})})},e.write=function(i,u,...s){return typeof s[s.length-1]=="function"?r.write(i,u,...s):new Promise((o,a)=>{r.write(i,u,...s,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(e.realpath.native=t(r.realpath.native))}),Md=U((e,t)=>{"use strict";H();var r=ae("path");function n(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var i=/[<>:"|?*]/;function u(s){let o=n(s);return s=s.replace(o,""),i.test(s)}t.exports={getRootPath:n,invalidWin32Path:u}}),rw=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=Md().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&i(o)){let h=new Error(o+" contains invalid WIN32 path characters.");return h.code="EINVAL",c(h)}let l=a.mode,f=a.fs||r;l===void 0&&(l=u&~process.umask()),p||(p=null),c=c||function(){},o=n.resolve(o),f.mkdir(o,l,h=>{if(!h)return p=p||o,c(null,p);switch(h.code){case"ENOENT":if(n.dirname(o)===o)return c(h);s(n.dirname(o),a,(m,v)=>{m?c(m,v):s(o,a,c,v)});break;default:f.stat(o,(m,v)=>{m||!v.isDirectory()?c(h,p):c(null,p)});break}})}t.exports=s}),nw=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=Md().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&i(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=u&~process.umask()),c||(c=null),o=n.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(n.dirname(o)===o)throw f;c=s(n.dirname(o),a,c),s(o,a,c)}else{let h;try{h=l.statSync(o)}catch{throw f}if(!h.isDirectory())throw f}}return c}t.exports=s}),ot=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=r(rw()),i=nw();t.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),jd=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("os"),i=ae("path");function u(){let p=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=i.join(n.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",h=>{if(h)return p(h);r.open(l,"r+",(m,v)=>{if(m)return p(m);r.futimes(v,f,f,_=>{if(_)return p(_);r.close(v,E=>{if(E)return p(E);r.stat(l,(d,y)=>{if(d)return p(d);p(null,y.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,h){r.open(p,"r+",(m,v)=>{if(m)return h(m);r.futimes(v,l,f,_=>{r.close(v,E=>{h&&h(_||E)})})})}function c(p,l,f){let h=r.openSync(p,"r+");return r.futimesSync(h,l,f),r.closeSync(h)}t.exports={hasMillisRes:s,hasMillisResSync:u,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),xi=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=10,u=5,s=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>i||a===i&&(c>u||c===u&&p>=s)}function f(D,g,A){l()?r.stat(D,{bigint:!0},(b,k)=>{if(b)return A(b);r.stat(g,{bigint:!0},(x,F)=>x?x.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(x):A(null,{srcStat:k,destStat:F}))}):r.stat(D,(b,k)=>{if(b)return A(b);r.stat(g,(x,F)=>x?x.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(x):A(null,{srcStat:k,destStat:F}))})}function h(D,g){let A,b;l()?A=r.statSync(D,{bigint:!0}):A=r.statSync(D);try{l()?b=r.statSync(g,{bigint:!0}):b=r.statSync(g)}catch(k){if(k.code==="ENOENT")return{srcStat:A,destStat:null};throw k}return{srcStat:A,destStat:b}}function m(D,g,A,b){f(D,g,(k,x)=>{if(k)return b(k);let{srcStat:F,destStat:w}=x;return w&&w.ino&&w.dev&&w.ino===F.ino&&w.dev===F.dev?b(new Error("Source and destination must not be the same.")):F.isDirectory()&&d(D,g)?b(new Error(y(D,g,A))):b(null,{srcStat:F,destStat:w})})}function v(D,g,A){let{srcStat:b,destStat:k}=h(D,g);if(k&&k.ino&&k.dev&&k.ino===b.ino&&k.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&d(D,g))throw new Error(y(D,g,A));return{srcStat:b,destStat:k}}function _(D,g,A,b,k){let x=n.resolve(n.dirname(D)),F=n.resolve(n.dirname(A));if(F===x||F===n.parse(F).root)return k();l()?r.stat(F,{bigint:!0},(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===g.ino&&O.dev===g.dev?k(new Error(y(D,A,b))):_(D,g,F,b,k)):r.stat(F,(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===g.ino&&O.dev===g.dev?k(new Error(y(D,A,b))):_(D,g,F,b,k))}function E(D,g,A,b){let k=n.resolve(n.dirname(D)),x=n.resolve(n.dirname(A));if(x===k||x===n.parse(x).root)return;let F;try{l()?F=r.statSync(x,{bigint:!0}):F=r.statSync(x)}catch(w){if(w.code==="ENOENT")return;throw w}if(F.ino&&F.dev&&F.ino===g.ino&&F.dev===g.dev)throw new Error(y(D,A,b));return E(D,g,x,b)}function d(D,g){let A=n.resolve(D).split(n.sep).filter(k=>k),b=n.resolve(g).split(n.sep).filter(k=>k);return A.reduce((k,x,F)=>k&&b[F]===x,!0)}function y(D,g,A){return`Cannot ${A} '${D}' to a subdirectory of itself, '${g}'.`}t.exports={checkPaths:m,checkPathsSync:v,checkParentPaths:_,checkParentPathsSync:E,isSrcSubdir:d}}),iw=U((e,t)=>{"use strict";H(),t.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),ow=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=ot().mkdirsSync,u=jd().utimesMillisSync,s=xi();function o(g,A,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
82
82
 
83
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:k,destStat:D}=s.checkPathsSync(y,A,"copy");return s.checkParentPathsSync(y,k,A,"copy"),a(D,y,A,b)}function a(y,A,b,k){if(k.filter&&!k.filter(A,b))return;let D=i.dirname(b);return r.existsSync(D)||n(D),c(y,A,b,k)}function c(y,A,b,k){if(!(k.filter&&!k.filter(A,b)))return p(y,A,b,k)}function p(y,A,b,k){let D=(k.dereference?r.statSync:r.lstatSync)(A);if(D.isDirectory())return g(D,y,A,b,k);if(D.isFile()||D.isCharacterDevice()||D.isBlockDevice())return l(D,y,A,b,k);if(D.isSymbolicLink())return v(y,A,b,k)}function l(y,A,b,k,D){return A?f(y,b,k,D):d(y,b,k,D)}function f(y,A,b,k){if(k.overwrite)return r.unlinkSync(b),d(y,A,b,k);if(k.errorOnExist)throw new Error(`'${b}' already exists`)}function d(y,A,b,k){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,b),r.chmodSync(b,y.mode),k.preserveTimestamps?u(b,y.atime,y.mtime):void 0):m(y,A,b,k)}function m(y,A,b,k){let D=Bx()(65536),F=r.openSync(A,"r"),w=r.openSync(b,"w",y.mode),O=0;for(;O<y.size;){let P=r.readSync(F,D,0,65536,O);r.writeSync(w,D,0,P),O+=P}k.preserveTimestamps&&r.futimesSync(w,y.atime,y.mtime),r.closeSync(F),r.closeSync(w)}function g(y,A,b,k,D){if(!A)return _(y,b,k,D);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${k}' with directory '${b}'.`);return E(b,k,D)}function _(y,A,b,k){return r.mkdirSync(b),E(A,b,k),r.chmodSync(b,y.mode)}function E(y,A,b){r.readdirSync(y).forEach(k=>h(k,y,A,b))}function h(y,A,b,k){let D=i.join(A,y),F=i.join(b,y),{destStat:w}=s.checkPathsSync(D,F,"copy");return c(w,D,F,k)}function v(y,A,b,k){let D=r.readlinkSync(A);if(k.dereference&&(D=i.resolve(process.cwd(),D)),y){let F;try{F=r.readlinkSync(b)}catch(w){if(w.code==="EINVAL"||w.code==="UNKNOWN")return r.symlinkSync(D,b);throw w}if(k.dereference&&(F=i.resolve(process.cwd(),F)),s.isSrcSubdir(D,F))throw new Error(`Cannot copy '${D}' to a subdirectory of itself, '${F}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(F,D))throw new Error(`Cannot overwrite '${F}' with '${D}'.`);return x(D,b)}else return r.symlinkSync(D,b)}function x(y,A){return r.unlinkSync(A),r.symlinkSync(y,A)}t.exports=o}),Od=U((e,t)=>{"use strict";H(),t.exports={copySync:Mx()}}),Dt=U((e,t)=>{"use strict";H();var r=Ze().fromPromise,i=kd();function n(u){return i.access(u).then(()=>!0).catch(()=>!1)}t.exports={pathExists:r(n),pathExistsSync:i.existsSync}}),jx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ot().mkdirs,u=Dt().pathExists,s=Rd().utimesMillis,o=Si();function a(D,F,w,O){typeof w=="function"&&!O?(O=w,w={}):typeof w=="function"&&(w={filter:w}),O=O||function(){},w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
83
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:k,destStat:x}=s.checkPathsSync(g,A,"copy");return s.checkParentPathsSync(g,k,A,"copy"),a(x,g,A,b)}function a(g,A,b,k){if(k.filter&&!k.filter(A,b))return;let x=n.dirname(b);return r.existsSync(x)||i(x),c(g,A,b,k)}function c(g,A,b,k){if(!(k.filter&&!k.filter(A,b)))return p(g,A,b,k)}function p(g,A,b,k){let x=(k.dereference?r.statSync:r.lstatSync)(A);if(x.isDirectory())return v(x,g,A,b,k);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return l(x,g,A,b,k);if(x.isSymbolicLink())return y(g,A,b,k)}function l(g,A,b,k,x){return A?f(g,b,k,x):h(g,b,k,x)}function f(g,A,b,k){if(k.overwrite)return r.unlinkSync(b),h(g,A,b,k);if(k.errorOnExist)throw new Error(`'${b}' already exists`)}function h(g,A,b,k){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,b),r.chmodSync(b,g.mode),k.preserveTimestamps?u(b,g.atime,g.mtime):void 0):m(g,A,b,k)}function m(g,A,b,k){let x=iw()(65536),F=r.openSync(A,"r"),w=r.openSync(b,"w",g.mode),O=0;for(;O<g.size;){let P=r.readSync(F,x,0,65536,O);r.writeSync(w,x,0,P),O+=P}k.preserveTimestamps&&r.futimesSync(w,g.atime,g.mtime),r.closeSync(F),r.closeSync(w)}function v(g,A,b,k,x){if(!A)return _(g,b,k,x);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${k}' with directory '${b}'.`);return E(b,k,x)}function _(g,A,b,k){return r.mkdirSync(b),E(A,b,k),r.chmodSync(b,g.mode)}function E(g,A,b){r.readdirSync(g).forEach(k=>d(k,g,A,b))}function d(g,A,b,k){let x=n.join(A,g),F=n.join(b,g),{destStat:w}=s.checkPathsSync(x,F,"copy");return c(w,x,F,k)}function y(g,A,b,k){let x=r.readlinkSync(A);if(k.dereference&&(x=n.resolve(process.cwd(),x)),g){let F;try{F=r.readlinkSync(b)}catch(w){if(w.code==="EINVAL"||w.code==="UNKNOWN")return r.symlinkSync(x,b);throw w}if(k.dereference&&(F=n.resolve(process.cwd(),F)),s.isSrcSubdir(x,F))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${F}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(F,x))throw new Error(`Cannot overwrite '${F}' with '${x}'.`);return D(x,b)}else return r.symlinkSync(x,b)}function D(g,A){return r.unlinkSync(A),r.symlinkSync(g,A)}t.exports=o}),$d=U((e,t)=>{"use strict";H(),t.exports={copySync:ow()}}),Dt=U((e,t)=>{"use strict";H();var r=et().fromPromise,n=Bd();function i(u){return n.access(u).then(()=>!0).catch(()=>!1)}t.exports={pathExists:r(i),pathExistsSync:n.existsSync}}),sw=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=ot().mkdirs,u=Dt().pathExists,s=jd().utimesMillis,o=xi();function a(x,F,w,O){typeof w=="function"&&!O?(O=w,w={}):typeof w=="function"&&(w={filter:w}),O=O||function(){},w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
84
84
 
85
- see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(D,F,"copy",(P,C)=>{if(P)return O(P);let{srcStat:S,destStat:R}=C;o.checkParentPaths(D,S,F,"copy",L=>L?O(L):w.filter?p(c,R,D,F,w,O):c(R,D,F,w,O))})}function c(D,F,w,O,P){let C=i.dirname(w);u(C,(S,R)=>{if(S)return P(S);if(R)return l(D,F,w,O,P);n(C,L=>L?P(L):l(D,F,w,O,P))})}function p(D,F,w,O,P,C){Promise.resolve(P.filter(w,O)).then(S=>S?D(F,w,O,P,C):C(),S=>C(S))}function l(D,F,w,O,P){return O.filter?p(f,D,F,w,O,P):f(D,F,w,O,P)}function f(D,F,w,O,P){(O.dereference?r.stat:r.lstat)(F,(C,S)=>{if(C)return P(C);if(S.isDirectory())return h(S,D,F,w,O,P);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return d(S,D,F,w,O,P);if(S.isSymbolicLink())return b(D,F,w,O,P)})}function d(D,F,w,O,P,C){return F?m(D,w,O,P,C):g(D,w,O,P,C)}function m(D,F,w,O,P){if(O.overwrite)r.unlink(w,C=>C?P(C):g(D,F,w,O,P));else return O.errorOnExist?P(new Error(`'${w}' already exists`)):P()}function g(D,F,w,O,P){return typeof r.copyFile=="function"?r.copyFile(F,w,C=>C?P(C):E(D,w,O,P)):_(D,F,w,O,P)}function _(D,F,w,O,P){let C=r.createReadStream(F);C.on("error",S=>P(S)).once("open",()=>{let S=r.createWriteStream(w,{mode:D.mode});S.on("error",R=>P(R)).on("open",()=>C.pipe(S)).once("close",()=>E(D,w,O,P))})}function E(D,F,w,O){r.chmod(F,D.mode,P=>P?O(P):w.preserveTimestamps?s(F,D.atime,D.mtime,O):O())}function h(D,F,w,O,P,C){return F?F&&!F.isDirectory()?C(new Error(`Cannot overwrite non-directory '${O}' with directory '${w}'.`)):x(w,O,P,C):v(D,w,O,P,C)}function v(D,F,w,O,P){r.mkdir(w,C=>{if(C)return P(C);x(F,w,O,S=>S?P(S):r.chmod(w,D.mode,P))})}function x(D,F,w,O){r.readdir(D,(P,C)=>P?O(P):y(C,D,F,w,O))}function y(D,F,w,O,P){let C=D.pop();return C?A(D,C,F,w,O,P):P()}function A(D,F,w,O,P,C){let S=i.join(w,F),R=i.join(O,F);o.checkPaths(S,R,"copy",(L,M)=>{if(L)return C(L);let{destStat:B}=M;l(B,S,R,P,Q=>Q?C(Q):y(D,w,O,P,C))})}function b(D,F,w,O,P){r.readlink(F,(C,S)=>{if(C)return P(C);if(O.dereference&&(S=i.resolve(process.cwd(),S)),D)r.readlink(w,(R,L)=>R?R.code==="EINVAL"||R.code==="UNKNOWN"?r.symlink(S,w,P):P(R):(O.dereference&&(L=i.resolve(process.cwd(),L)),o.isSrcSubdir(S,L)?P(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${L}'.`)):D.isDirectory()&&o.isSrcSubdir(L,S)?P(new Error(`Cannot overwrite '${L}' with '${S}'.`)):k(S,w,P)));else return r.symlink(S,w,P)})}function k(D,F,w){r.unlink(F,O=>O?w(O):r.symlink(D,F,w))}t.exports=a}),Td=U((e,t)=>{"use strict";H();var r=Ze().fromCallback;t.exports={copy:r(jx())}}),$x=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ae("assert"),u=process.platform==="win32";function s(_){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{_[E]=_[E]||r[E],E=E+"Sync",_[E]=_[E]||r[E]}),_.maxBusyTries=_.maxBusyTries||3}function o(_,E,h){let v=0;typeof E=="function"&&(h=E,E={}),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n.strictEqual(typeof h,"function","rimraf: callback function required"),n(E,"rimraf: invalid options argument provided"),n.strictEqual(typeof E,"object","rimraf: options should be object"),s(E),a(_,E,function x(y){if(y){if((y.code==="EBUSY"||y.code==="ENOTEMPTY"||y.code==="EPERM")&&v<E.maxBusyTries){v++;let A=v*100;return setTimeout(()=>a(_,E,x),A)}y.code==="ENOENT"&&(y=null)}h(y)})}function a(_,E,h){n(_),n(E),n(typeof h=="function"),E.lstat(_,(v,x)=>{if(v&&v.code==="ENOENT")return h(null);if(v&&v.code==="EPERM"&&u)return c(_,E,v,h);if(x&&x.isDirectory())return l(_,E,v,h);E.unlink(_,y=>{if(y){if(y.code==="ENOENT")return h(null);if(y.code==="EPERM")return u?c(_,E,y,h):l(_,E,y,h);if(y.code==="EISDIR")return l(_,E,y,h)}return h(y)})})}function c(_,E,h,v){n(_),n(E),n(typeof v=="function"),h&&n(h instanceof Error),E.chmod(_,438,x=>{x?v(x.code==="ENOENT"?null:h):E.stat(_,(y,A)=>{y?v(y.code==="ENOENT"?null:h):A.isDirectory()?l(_,E,h,v):E.unlink(_,v)})})}function p(_,E,h){let v;n(_),n(E),h&&n(h instanceof Error);try{E.chmodSync(_,438)}catch(x){if(x.code==="ENOENT")return;throw h}try{v=E.statSync(_)}catch(x){if(x.code==="ENOENT")return;throw h}v.isDirectory()?m(_,E,h):E.unlinkSync(_)}function l(_,E,h,v){n(_),n(E),h&&n(h instanceof Error),n(typeof v=="function"),E.rmdir(_,x=>{x&&(x.code==="ENOTEMPTY"||x.code==="EEXIST"||x.code==="EPERM")?f(_,E,v):x&&x.code==="ENOTDIR"?v(h):v(x)})}function f(_,E,h){n(_),n(E),n(typeof h=="function"),E.readdir(_,(v,x)=>{if(v)return h(v);let y=x.length,A;if(y===0)return E.rmdir(_,h);x.forEach(b=>{o(i.join(_,b),E,k=>{if(!A){if(k)return h(A=k);--y===0&&E.rmdir(_,h)}})})})}function d(_,E){let h;E=E||{},s(E),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n(E,"rimraf: missing options"),n.strictEqual(typeof E,"object","rimraf: options should be object");try{h=E.lstatSync(_)}catch(v){if(v.code==="ENOENT")return;v.code==="EPERM"&&u&&p(_,E,v)}try{h&&h.isDirectory()?m(_,E,null):E.unlinkSync(_)}catch(v){if(v.code==="ENOENT")return;if(v.code==="EPERM")return u?p(_,E,v):m(_,E,v);if(v.code!=="EISDIR")throw v;m(_,E,v)}}function m(_,E,h){n(_),n(E),h&&n(h instanceof Error);try{E.rmdirSync(_)}catch(v){if(v.code==="ENOTDIR")throw h;if(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")g(_,E);else if(v.code!=="ENOENT")throw v}}function g(_,E){if(n(_),n(E),E.readdirSync(_).forEach(h=>d(i.join(_,h),E)),u){let h=Date.now();do try{return E.rmdirSync(_,E)}catch{}while(Date.now()-h<500)}else return E.rmdirSync(_,E)}t.exports=o,o.sync=d}),Ai=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=$x();t.exports={remove:r(i),removeSync:i.sync}}),Hx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=Oe(),n=ae("path"),u=ot(),s=Ai(),o=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return u.mkdirs(c,p);f=f.map(m=>n.join(c,m)),d();function d(){let m=f.pop();if(!m)return p();s.remove(m,g=>{if(g)return p(g);d()})}})});function a(c){let p;try{p=i.readdirSync(c)}catch{return u.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}t.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),Gx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=ae("path"),n=Oe(),u=ot(),s=Dt().pathExists;function o(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,d)=>{if(!f&&d.isFile())return p();let m=i.dirname(c);s(m,(g,_)=>{if(g)return p(g);if(_)return l();u.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||u.mkdirsSync(l),n.writeFileSync(c,"")}t.exports={createFile:r(o),createFileSync:a}}),qx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=ae("path"),n=Oe(),u=ot(),s=Dt().pathExists;function o(c,p,l){function f(d,m){n.link(d,m,g=>{if(g)return l(g);l(null)})}s(p,(d,m)=>{if(d)return l(d);if(m)return l(null);n.lstat(c,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),l(g);let _=i.dirname(p);s(_,(E,h)=>{if(E)return l(E);if(h)return f(c,p);u.mkdirs(_,v=>{if(v)return l(v);f(c,p)})})})})}function a(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||u.mkdirsSync(l),n.linkSync(c,p)}t.exports={createLink:r(o),createLinkSync:a}}),Ux=U((e,t)=>{"use strict";H();var r=ae("path"),i=Oe(),n=Dt().pathExists;function u(o,a,c){if(r.isAbsolute(o))return i.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return n(l,(f,d)=>f?c(f):d?c(null,{toCwd:l,toDst:o}):i.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,a){let c;if(r.isAbsolute(o)){if(c=i.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=i.existsSync(l),c)return{toCwd:l,toDst:o};if(c=i.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}t.exports={symlinkPaths:u,symlinkPathsSync:s}}),Wx=U((e,t)=>{"use strict";H();var r=Oe();function i(u,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(u,(a,c)=>{if(a)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function n(u,s){let o;if(s)return s;try{o=r.lstatSync(u)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}t.exports={symlinkType:i,symlinkTypeSync:n}}),Kx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=ae("path"),n=Oe(),u=ot(),s=u.mkdirs,o=u.mkdirsSync,a=Ux(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=Wx(),f=l.symlinkType,d=l.symlinkTypeSync,m=Dt().pathExists;function g(E,h,v,x){x=typeof v=="function"?v:x,v=typeof v=="function"?!1:v,m(h,(y,A)=>{if(y)return x(y);if(A)return x(null);c(E,h,(b,k)=>{if(b)return x(b);E=k.toDst,f(k.toCwd,v,(D,F)=>{if(D)return x(D);let w=i.dirname(h);m(w,(O,P)=>{if(O)return x(O);if(P)return n.symlink(E,h,F,x);s(w,C=>{if(C)return x(C);n.symlink(E,h,F,x)})})})})})}function _(E,h,v){if(n.existsSync(h))return;let x=p(E,h);E=x.toDst,v=d(x.toCwd,v);let y=i.dirname(h);return n.existsSync(y)||o(y),n.symlinkSync(E,h,v)}t.exports={createSymlink:r(g),createSymlinkSync:_}}),Yx=U((e,t)=>{"use strict";H();var r=Gx(),i=qx(),n=Kx();t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}),Vx=U((e,t)=>{H();var r;try{r=Oe()}catch{r=ae("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||r,m=!0;"throws"in l&&(m=l.throws),d.readFile(p,l,function(g,_){if(g)return f(g);_=a(_);var E;try{E=JSON.parse(_,l?l.reviver:null)}catch(h){return m?(h.message=p+": "+h.message,f(h)):f(null,null)}f(null,E)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,d=!0;"throws"in l&&(d=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(g){if(d)throw g.message=p+": "+g.message,g;return null}}function u(p,l){var f,d=`
86
- `;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(d=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,d)+d}function s(p,l,f,d){d==null&&(d=f,f={}),f=f||{};var m=f.fs||r,g="";try{g=u(l,f)}catch(_){d&&d(_,null);return}m.writeFile(p,g,f,d)}function o(p,l,f){f=f||{};var d=f.fs||r,m=u(l,f);return d.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:o};t.exports=c}),xa=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=Vx();t.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),Qx=U((e,t)=>{"use strict";H();var r=ae("path"),i=ot(),n=Dt().pathExists,u=xa();function s(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);n(l,(f,d)=>{if(f)return p(f);if(d)return u.writeJson(o,a,c,p);i.mkdirs(l,m=>{if(m)return p(m);u.writeJson(o,a,c,p)})})}t.exports=s}),Xx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ot(),u=xa();function s(o,a,c){let p=i.dirname(o);r.existsSync(p)||n.mkdirsSync(p),u.writeJsonSync(o,a,c)}t.exports=s}),Jx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=xa();i.outputJson=r(Qx()),i.outputJsonSync=Xx(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i}),Zx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Od().copySync,u=Ai().removeSync,s=ot().mkdirpSync,o=Si();function a(f,d,m){m=m||{};let g=m.overwrite||m.clobber||!1,{srcStat:_}=o.checkPathsSync(f,d,"move");return o.checkParentPathsSync(f,_,d,"move"),s(i.dirname(d)),c(f,d,g)}function c(f,d,m){if(m)return u(d),p(f,d,m);if(r.existsSync(d))throw new Error("dest already exists.");return p(f,d,m)}function p(f,d,m){try{r.renameSync(f,d)}catch(g){if(g.code!=="EXDEV")throw g;return l(f,d,m)}}function l(f,d,m){return n(f,d,{overwrite:m,errorOnExist:!0}),u(f)}t.exports=a}),zx=U((e,t)=>{"use strict";H(),t.exports={moveSync:Zx()}}),ew=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Td().copy,u=Ai().remove,s=ot().mkdirp,o=Dt().pathExists,a=Si();function c(d,m,g,_){typeof g=="function"&&(_=g,g={});let E=g.overwrite||g.clobber||!1;a.checkPaths(d,m,"move",(h,v)=>{if(h)return _(h);let{srcStat:x}=v;a.checkParentPaths(d,x,m,"move",y=>{if(y)return _(y);s(i.dirname(m),A=>A?_(A):p(d,m,E,_))})})}function p(d,m,g,_){if(g)return u(m,E=>E?_(E):l(d,m,g,_));o(m,(E,h)=>E?_(E):h?_(new Error("dest already exists.")):l(d,m,g,_))}function l(d,m,g,_){r.rename(d,m,E=>E?E.code!=="EXDEV"?_(E):f(d,m,g,_):_())}function f(d,m,g,_){n(d,m,{overwrite:g,errorOnExist:!0},E=>E?_(E):u(d,_))}t.exports=c}),tw=U((e,t)=>{"use strict";H();var r=Ze().fromCallback;t.exports={move:r(ew())}}),rw=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=Oe(),n=ae("path"),u=ot(),s=Dt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let d=n.dirname(c);s(d,(m,g)=>{if(m)return f(m);if(g)return i.writeFile(c,p,l,f);u.mkdirs(d,_=>{if(_)return f(_);i.writeFile(c,p,l,f)})})}function a(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);u.mkdirsSync(l),i.writeFileSync(c,...p)}t.exports={outputFile:r(o),outputFileSync:a}}),nw=U((e,t)=>{"use strict";H(),t.exports=Object.assign({},kd(),Od(),Td(),Hx(),Yx(),Jx(),ot(),zx(),tw(),rw(),Dt(),Ai());var r=ae("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get(){return r.promises}})});H();H();var l2=Mt(xx());H();H();function iw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}H();H();function ba(e){return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ba(e)}H();function ow(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sw(e,t){if(t&&(ba(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ow(e)}H();function Ei(e){return Ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ei(e)}H();H();function un(e,t){return un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},un(e,t)}function aw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}H();H();function uw(e){return Function.toString.call(e).indexOf("[native code]")!==-1}H();H();function cw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _i(e,t,r){return cw()?_i=Reflect.construct.bind():_i=function(i,n,u){var s=[null];s.push.apply(s,n);var o=Function.bind.apply(i,s),a=new o;return u&&un(a,u.prototype),a},_i.apply(null,arguments)}function Da(e){var t=typeof Map=="function"?new Map:void 0;return Da=function(r){if(r===null||!uw(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return _i(r,arguments,Ei(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),un(i,r)},Da(e)}var p2=Mt(Ox()),f2=Mt(nw()),d2=function(e){aw(t,e);function t(r){var i;return iw(this,t),i=sw(this,Ei(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return t}(Da(Error));H();var pw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((n,u)=>[].concat(n,u),[])}e.flatten=t;function r(i,n){let u=[[]],s=0;for(let o of i)n(o)?(s++,u[s]=[]):u[s].push(o);return u}e.splitWhen=r}),fw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}),dw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),hw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var t=ae("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(a){return a.replace(/\\/g,"/")}e.unixify=n;function u(a,c){return t.resolve(a,c)}e.makeAbsolute=u;function s(a){return a.replace(i,"\\$2")}e.escape=s;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}e.removeLeadingDotSegment=o}),mw=U((e,t)=>{H(),t.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),yw=U((e,t)=>{H();var r=mw(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||a!==-1&&s[o]==="("&&s[o+1]!=="|"&&(a<o&&(a=s.indexOf("|",o)),a!==-1&&s[a+1]!==")"&&(l=s.indexOf(")",a),l>a&&(f=s.indexOf("\\",a),f===-1||f>l))))return!0;if(s[o]==="\\"){var d=s[o+1];o+=2;var m=i[d];if(m){var g=s.indexOf(m,o);g!==-1&&(o=g+1)}if(s[o]==="!")return!0}else o++}return!1},u=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var a=s[o+1];o+=2;var c=i[a];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};t.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var a=n;return o&&o.strict===!1&&(a=u),a(s)}}),gw=U((e,t)=>{"use strict";H();var r=yw(),i=ae("path").posix.dirname,n=ae("os").platform()==="win32",u="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(u)<0&&(p=p.replace(s,u)),o.test(p)&&(p+=u),p+="a";do p=i(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),La=U(e=>{"use strict";H(),e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(i=>i.type===r),e.exceedsLimit=(t,r,i=1,n)=>n===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=n,e.escapeNode=(t,r=0,i)=>{let n=t.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),e.flatten=(...t)=>{let r=[],i=n=>{for(let u=0;u<n.length;u++){let s=n[u];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(t),r}}),Ia=U((e,t)=>{"use strict";H();var r=La();t.exports=(i,n={})=>{let u=(s,o={})=>{let a=n.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(a||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=u(l);return p};return u(i)}}),vw=U((e,t)=>{"use strict";H(),t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),_w=U((e,t)=>{"use strict";H();var r=vw(),i=(h,v,x)=>{if(r(h)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(v===void 0||h===v)return String(h);if(r(v)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let y={relaxZeros:!0,...x};typeof y.strictZeros=="boolean"&&(y.relaxZeros=y.strictZeros===!1);let A=String(y.relaxZeros),b=String(y.shorthand),k=String(y.capture),D=String(y.wrap),F=h+":"+v+"="+A+b+k+D;if(i.cache.hasOwnProperty(F))return i.cache[F].result;let w=Math.min(h,v),O=Math.max(h,v);if(Math.abs(w-O)===1){let L=h+"|"+v;return y.capture?`(${L})`:y.wrap===!1?L:`(?:${L})`}let P=_(h)||_(v),C={min:h,max:v,a:w,b:O},S=[],R=[];if(P&&(C.isPadded=P,C.maxLen=String(C.max).length),w<0){let L=O<0?Math.abs(O):1;R=o(L,Math.abs(w),C,y),w=C.a=0}return O>=0&&(S=o(w,O,C,y)),C.negatives=R,C.positives=S,C.result=n(R,S,y),y.capture===!0?C.result=`(${C.result})`:y.wrap!==!1&&S.length+R.length>1&&(C.result=`(?:${C.result})`),i.cache[F]=C,C.result};function n(h,v,x){let y=a(h,v,"-",!1,x)||[],A=a(v,h,"",!1,x)||[],b=a(h,v,"-?",!0,x)||[];return y.concat(b).concat(A).join("|")}function u(h,v){let x=1,y=1,A=f(h,x),b=new Set([v]);for(;h<=A&&A<=v;)b.add(A),x+=1,A=f(h,x);for(A=d(v+1,y)-1;h<A&&A<=v;)b.add(A),y+=1,A=d(v+1,y)-1;return b=[...b],b.sort(p),b}function s(h,v,x){if(h===v)return{pattern:h,count:[],digits:0};let y=c(h,v),A=y.length,b="",k=0;for(let D=0;D<A;D++){let[F,w]=y[D];F===w?b+=F:F!=="0"||w!=="9"?b+=g(F,w,x):k++}return k&&(b+=x.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[k],digits:A}}function o(h,v,x,y){let A=u(h,v),b=[],k=h,D;for(let F=0;F<A.length;F++){let w=A[F],O=s(String(k),String(w),y),P="";if(!x.isPadded&&D&&D.pattern===O.pattern){D.count.length>1&&D.count.pop(),D.count.push(O.count[0]),D.string=D.pattern+m(D.count),k=w+1;continue}x.isPadded&&(P=E(w,x,y)),O.string=P+O.pattern+m(O.count),b.push(O),k=w+1,D=O}return b}function a(h,v,x,y,A){let b=[];for(let k of h){let{string:D}=k;!y&&!l(v,"string",D)&&b.push(x+D),y&&l(v,"string",D)&&b.push(x+D)}return b}function c(h,v){let x=[];for(let y=0;y<h.length;y++)x.push([h[y],v[y]]);return x}function p(h,v){return h>v?1:v>h?-1:0}function l(h,v,x){return h.some(y=>y[v]===x)}function f(h,v){return Number(String(h).slice(0,-v)+"9".repeat(v))}function d(h,v){return h-h%Math.pow(10,v)}function m(h){let[v=0,x=""]=h;return x||v>1?`{${v+(x?","+x:"")}}`:""}function g(h,v,x){return`[${h}${v-h===1?"":"-"}${v}]`}function _(h){return/^-?(0+)\d/.test(h)}function E(h,v,x){if(!v.isPadded)return h;let y=Math.abs(v.maxLen-String(h).length),A=x.relaxZeros!==!1;switch(y){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${y}}`:`0{${y}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i}),Vd=U((e,t)=>{"use strict";H();var r=ae("util"),i=_w(),n=y=>y!==null&&typeof y=="object"&&!Array.isArray(y),u=y=>A=>y===!0?Number(A):String(A),s=y=>typeof y=="number"||typeof y=="string"&&y!=="",o=y=>Number.isInteger(+y),a=y=>{let A=`${y}`,b=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++b]==="0";);return b>0},c=(y,A,b)=>typeof y=="string"||typeof A=="string"?!0:b.stringify===!0,p=(y,A,b)=>{if(A>0){let k=y[0]==="-"?"-":"";k&&(y=y.slice(1)),y=k+y.padStart(k?A-1:A,"0")}return b===!1?String(y):y},l=(y,A)=>{let b=y[0]==="-"?"-":"";for(b&&(y=y.slice(1),A--);y.length<A;)y="0"+y;return b?"-"+y:y},f=(y,A)=>{y.negatives.sort((w,O)=>w<O?-1:w>O?1:0),y.positives.sort((w,O)=>w<O?-1:w>O?1:0);let b=A.capture?"":"?:",k="",D="",F;return y.positives.length&&(k=y.positives.join("|")),y.negatives.length&&(D=`-(${b}${y.negatives.join("|")})`),k&&D?F=`${k}|${D}`:F=k||D,A.wrap?`(${b}${F})`:F},d=(y,A,b,k)=>{if(b)return i(y,A,{wrap:!1,...k});let D=String.fromCharCode(y);if(y===A)return D;let F=String.fromCharCode(A);return`[${D}-${F}]`},m=(y,A,b)=>{if(Array.isArray(y)){let k=b.wrap===!0,D=b.capture?"":"?:";return k?`(${D}${y.join("|")})`:y.join("|")}return i(y,A,b)},g=(...y)=>new RangeError("Invalid range arguments: "+r.inspect(...y)),_=(y,A,b)=>{if(b.strictRanges===!0)throw g([y,A]);return[]},E=(y,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${y}" to be a number`);return[]},h=(y,A,b=1,k={})=>{let D=Number(y),F=Number(A);if(!Number.isInteger(D)||!Number.isInteger(F)){if(k.strictRanges===!0)throw g([y,A]);return[]}D===0&&(D=0),F===0&&(F=0);let w=D>F,O=String(y),P=String(A),C=String(b);b=Math.max(Math.abs(b),1);let S=a(O)||a(P)||a(C),R=S?Math.max(O.length,P.length,C.length):0,L=S===!1&&c(y,A,k)===!1,M=k.transform||u(L);if(k.toRegex&&b===1)return d(l(y,R),l(A,R),!0,k);let B={negatives:[],positives:[]},Q=N=>B[N<0?"negatives":"positives"].push(Math.abs(N)),Z=[],oe=0;for(;w?D>=F:D<=F;)k.toRegex===!0&&b>1?Q(D):Z.push(p(M(D,oe),R,L)),D=w?D-b:D+b,oe++;return k.toRegex===!0?b>1?f(B,k):m(Z,null,{wrap:!1,...k}):Z},v=(y,A,b=1,k={})=>{if(!o(y)&&y.length>1||!o(A)&&A.length>1)return _(y,A,k);let D=k.transform||(L=>String.fromCharCode(L)),F=`${y}`.charCodeAt(0),w=`${A}`.charCodeAt(0),O=F>w,P=Math.min(F,w),C=Math.max(F,w);if(k.toRegex&&b===1)return d(P,C,!1,k);let S=[],R=0;for(;O?F>=w:F<=w;)S.push(D(F,R)),F=O?F-b:F+b,R++;return k.toRegex===!0?m(S,null,{wrap:!1,options:k}):S},x=(y,A,b,k={})=>{if(A==null&&s(y))return[y];if(!s(y)||!s(A))return _(y,A,k);if(typeof b=="function")return x(y,A,1,{transform:b});if(n(b))return x(y,A,0,b);let D={...k};return D.capture===!0&&(D.wrap=!0),b=b||D.step||1,o(b)?o(y)&&o(A)?h(y,A,b,D):v(y,A,Math.max(Math.abs(b),1),D):b!=null&&!n(b)?E(b,D):x(y,A,1,b)};t.exports=x}),Ew=U((e,t)=>{"use strict";H();var r=Vd(),i=La(),n=(u,s={})=>{let o=(a,c={})=>{let p=i.isInvalidBrace(c),l=a.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,d=s.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return d+a.value;if(a.type==="open")return f?d+a.value:"(";if(a.type==="close")return f?d+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let g=i.reduce(a.nodes),_=r(...g,{...s,wrap:!1,toRegex:!0});if(_.length!==0)return g.length>1&&_.length>1?`(${_})`:_}if(a.nodes)for(let g of a.nodes)m+=o(g,a);return m};return o(u)};t.exports=n}),Sw=U((e,t)=>{"use strict";H();var r=Vd(),i=Ia(),n=La(),u=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?n.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(u(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?u(l,f,c):l+f);return n.flatten(p)},s=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let d=f,m=f.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,m=d.queue;if(l.invalid||l.dollar){m.push(u(m.pop(),i(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(u(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let h=n.reduce(l.nodes);if(n.exceedsLimit(...h,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=r(...h,a);v.length===0&&(v=i(l,a)),m.push(u(m.pop(),v)),l.nodes=[];return}let g=n.encloseBrace(l),_=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;for(let h=0;h<l.nodes.length;h++){let v=l.nodes[h];if(v.type==="comma"&&l.type==="brace"){h===1&&_.push(""),_.push("");continue}if(v.type==="close"){m.push(u(m.pop(),_,g));continue}if(v.value&&v.type!=="open"){_.push(u(_.pop(),v.value));continue}v.nodes&&p(v,l)}return _};return n.flatten(p(o))};t.exports=s}),Aw=U((e,t)=>{"use strict";H(),t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
87
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),bw=U((e,t)=>{"use strict";H();var r=Ia(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=Aw(),h=(v,x={})=>{if(typeof v!="string")throw new TypeError("Expected a string");let y=x||{},A=typeof y.maxLength=="number"?Math.min(i,y.maxLength):i;if(v.length>A)throw new SyntaxError(`Input length (${v.length}), exceeds max characters (${A})`);let b={type:"root",input:v,nodes:[]},k=[b],D=b,F=b,w=0,O=v.length,P=0,C=0,S,R={},L=()=>v[P++],M=B=>{if(B.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&B.type==="text"){F.value+=B.value;return}return D.nodes.push(B),B.parent=D,B.prev=F,F=B,B};for(M({type:"bos"});P<O;)if(D=k[k.length-1],S=L(),!(S===E||S===_)){if(S===n){M({type:"text",value:(x.keepEscaping?S:"")+L()});continue}if(S===d){M({type:"text",value:"\\"+S});continue}if(S===f){w++;let B=!0,Q;for(;P<O&&(Q=L());){if(S+=Q,Q===f){w++;continue}if(Q===n){S+=L();continue}if(Q===d&&(w--,w===0))break}M({type:"text",value:S});continue}if(S===a){D=M({type:"paren",nodes:[]}),k.push(D),M({type:"text",value:S});continue}if(S===c){if(D.type!=="paren"){M({type:"text",value:S});continue}D=k.pop(),M({type:"text",value:S}),D=k[k.length-1];continue}if(S===m||S===g||S===u){let B=S,Q;for(x.keepQuotes!==!0&&(S="");P<O&&(Q=L());){if(Q===n){S+=Q+L();continue}if(Q===B){x.keepQuotes===!0&&(S+=Q);break}S+=Q}M({type:"text",value:S});continue}if(S===p){C++;let B=F.value&&F.value.slice(-1)==="$"||D.dollar===!0;D=M({type:"brace",open:!0,close:!1,dollar:B,depth:C,commas:0,ranges:0,nodes:[]}),k.push(D),M({type:"open",value:S});continue}if(S===l){if(D.type!=="brace"){M({type:"text",value:S});continue}let B="close";D=k.pop(),D.close=!0,M({type:B,value:S}),C--,D=k[k.length-1];continue}if(S===s&&C>0){if(D.ranges>0){D.ranges=0;let B=D.nodes.shift();D.nodes=[B,{type:"text",value:r(D)}]}M({type:"comma",value:S}),D.commas++;continue}if(S===o&&C>0&&D.commas===0){let B=D.nodes;if(C===0||B.length===0){M({type:"text",value:S});continue}if(F.type==="dot"){if(D.range=[],F.value+=S,F.type="range",D.nodes.length!==3&&D.nodes.length!==5){D.invalid=!0,D.ranges=0,F.type="text";continue}D.ranges++,D.args=[];continue}if(F.type==="range"){B.pop();let Q=B[B.length-1];Q.value+=F.value+S,F=Q,D.ranges--;continue}M({type:"dot",value:S});continue}M({type:"text",value:S})}do if(D=k.pop(),D.type!=="root"){D.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let B=k[k.length-1],Q=B.nodes.indexOf(D);B.nodes.splice(Q,1,...D.nodes)}while(k.length>0);return M({type:"eos"}),b};t.exports=h}),Dw=U((e,t)=>{"use strict";H();var r=Ia(),i=Ew(),n=Sw(),u=bw(),s=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,a={})=>u(o,a),s.stringify=(o,a={})=>r(typeof o=="string"?s.parse(o,a):o,a),s.compile=(o,a={})=>(typeof o=="string"&&(o=s.parse(o,a)),i(o,a)),s.expand=(o,a={})=>{typeof o=="string"&&(o=s.parse(o,a));let c=n(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?s.compile(o,a):s.expand(o,a),t.exports=s}),ki=U((e,t)=>{"use strict";H();var r=ae("path"),i="\\\\/",n=`[^${i}]`,u="\\.",s="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,d=`${u}{1,2}${l}`,m=`(?!${u})`,g=`(?!${f}${d})`,_=`(?!${u}{0,1}${l})`,E=`(?!${d})`,h=`[^.${a}]`,v=`${p}*?`,x={DOT_LITERAL:u,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:m,NO_DOTS:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:f},y={...x,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${u}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${i}])${u}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},A={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,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(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?y:x}}}),Fi=U(e=>{"use strict";H();var t=ae("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:s}=ki();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>u.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(s,"\\$1"),e.toPosixSlashes=o=>o.replace(i,"/"),e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?e.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},e.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},e.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),xw=U((e,t)=>{"use strict";H();var r=Fi(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=ki(),h=y=>y===c||y===u,v=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)},x=(y,A)=>{let b=A||{},k=y.length-1,D=b.parts===!0||b.scanToEnd===!0,F=[],w=[],O=[],P=y,C=-1,S=0,R=0,L=!1,M=!1,B=!1,Q=!1,Z=!1,oe=!1,N=!1,le=!1,pe=!1,ne=!1,T=0,I,$,K={value:"",depth:0,isGlob:!1},Y=()=>C>=k,z=()=>P.charCodeAt(C+1),X=()=>(I=$,P.charCodeAt(++C));for(;C<k;){$=X();let re;if($===u){N=K.backslashes=!0,$=X(),$===p&&(oe=!0);continue}if(oe===!0||$===p){for(T++;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,X();continue}if($===p){T++;continue}if(oe!==!0&&$===o&&($=X())===o){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if(oe!==!0&&$===s){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===g&&(T--,T===0)){oe=!1,L=K.isBrace=!0,ne=!0;break}}if(D===!0)continue;break}if($===c){if(F.push(C),w.push(K),K={value:"",depth:0,isGlob:!1},ne===!0)continue;if(I===o&&C===S+1){S+=2;continue}R=C+1;continue}if(b.noext!==!0&&($===d||$===n||$===i||$===m||$===a)&&z()===l){if(B=K.isGlob=!0,Q=K.isExtglob=!0,ne=!0,$===a&&C===S&&(pe=!0),D===!0){for(;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,$=X();continue}if($===_){B=K.isGlob=!0,ne=!0;break}}continue}break}if($===i){if(I===i&&(Z=K.isGlobstar=!0),B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===m){if(B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===f){for(;Y()!==!0&&(re=X());){if(re===u){N=K.backslashes=!0,X();continue}if(re===E){M=K.isBracket=!0,B=K.isGlob=!0,ne=!0;break}}if(D===!0)continue;break}if(b.nonegate!==!0&&$===a&&C===S){le=K.negated=!0,S++;continue}if(b.noparen!==!0&&$===l){if(B=K.isGlob=!0,D===!0){for(;Y()!==!0&&($=X());){if($===l){N=K.backslashes=!0,$=X();continue}if($===_){ne=!0;break}}continue}break}if(B===!0){if(ne=!0,D===!0)continue;break}}b.noext===!0&&(Q=!1,B=!1);let ee=P,ie="",ye="";S>0&&(ie=P.slice(0,S),P=P.slice(S),R-=S),ee&&B===!0&&R>0?(ee=P.slice(0,R),ye=P.slice(R)):B===!0?(ee="",ye=P):ee=P,ee&&ee!==""&&ee!=="/"&&ee!==P&&h(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),b.unescape===!0&&(ye&&(ye=r.removeBackslashes(ye)),ee&&N===!0&&(ee=r.removeBackslashes(ee)));let se={prefix:ie,input:y,start:S,base:ee,glob:ye,isBrace:L,isBracket:M,isGlob:B,isExtglob:Q,isGlobstar:Z,negated:le,negatedExtglob:pe};if(b.tokens===!0&&(se.maxDepth=0,h($)||w.push(K),se.tokens=w),b.parts===!0||b.tokens===!0){let re;for(let Ee=0;Ee<F.length;Ee++){let Ut=re?re+1:S,V=F[Ee],fe=y.slice(Ut,V);b.tokens&&(Ee===0&&S!==0?(w[Ee].isPrefix=!0,w[Ee].value=ie):w[Ee].value=fe,v(w[Ee]),se.maxDepth+=w[Ee].depth),(Ee!==0||fe!=="")&&O.push(fe),re=V}if(re&&re+1<y.length){let Ee=y.slice(re+1);O.push(Ee),b.tokens&&(w[w.length-1].value=Ee,v(w[w.length-1]),se.maxDepth+=w[w.length-1].depth)}se.slashes=F,se.parts=O}return se};t.exports=x}),ww=U((e,t)=>{"use strict";H();var r=ki(),i=Fi(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...f,d);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(g=>i.escapeRegex(g)).join("..")}return m},p=(f,d)=>`Missing ${f}: "${d}" - use "\\\\${d}" to match literal characters`,l=(f,d)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);let E={type:"bos",value:"",output:m.prepend||""},h=[E],v=m.capture?"":"?:",x=i.isWindows(d),y=r.globChars(x),A=r.extglobChars(y),{DOT_LITERAL:b,PLUS_LITERAL:k,SLASH_LITERAL:D,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:O,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:S,QMARK_NO_DOT:R,STAR:L,START_ANCHOR:M}=y,B=V=>`(${v}(?:(?!${M}${V.dot?w:b}).)*?)`,Q=m.dot?"":O,Z=m.dot?S:R,oe=m.bash===!0?B(m):L;m.capture&&(oe=`(${oe})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};f=i.removePrefix(f,N),_=f.length;let le=[],pe=[],ne=[],T=E,I,$=()=>N.index===_-1,K=N.peek=(V=1)=>f[N.index+V],Y=N.advance=()=>f[++N.index]||"",z=()=>f.slice(N.index+1),X=(V="",fe=0)=>{N.consumed+=V,N.index+=fe},ee=V=>{N.output+=V.output!=null?V.output:V.value,X(V.value)},ie=()=>{let V=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)Y(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ye=V=>{N[V]++,ne.push(V)},se=V=>{N[V]--,ne.pop()},re=V=>{if(T.type==="globstar"){let fe=N.braces>0&&(V.type==="comma"||V.type==="brace"),q=V.extglob===!0||le.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!fe&&!q&&(N.output=N.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,N.output+=T.output)}if(le.length&&V.type!=="paren"&&(le[le.length-1].inner+=V.value),(V.value||V.output)&&ee(V),T&&T.type==="text"&&V.type==="text"){T.value+=V.value,T.output=(T.output||"")+V.value;return}V.prev=T,h.push(V),T=V},Ee=(V,fe)=>{let q={...A[fe],conditions:1,inner:""};q.prev=T,q.parens=N.parens,q.output=N.output;let ce=(m.capture?"(":"")+q.open;ye("parens"),re({type:V,value:fe,output:N.output?"":F}),re({type:"paren",extglob:!0,value:Y(),output:ce}),le.push(q)},Ut=V=>{let fe=V.close+(m.capture?")":""),q;if(V.type==="negate"){let ce=oe;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(ce=B(m)),(ce!==oe||$()||/^\)+$/.test(z()))&&(fe=V.close=`)$))${ce}`),V.inner.includes("*")&&(q=z())&&/^\.[^\\/.]+$/.test(q)){let ve=l(q,{...d,fastpaths:!1}).output;fe=V.close=`)${ve})${ce})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:fe}),se("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,fe=f.replace(o,(q,ce,ve,Se,_e,Wt)=>Se==="\\"?(V=!0,q):Se==="?"?ce?ce+Se+(_e?S.repeat(_e.length):""):Wt===0?Z+(_e?S.repeat(_e.length):""):S.repeat(ve.length):Se==="."?b.repeat(ve.length):Se==="*"?ce?ce+Se+(_e?oe:""):oe:ce?q:`\\${q}`);return V===!0&&(m.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),fe===f&&m.contains===!0?(N.output=f,N):(N.output=i.wrapOutput(fe,N,d),N)}for(;!$();){if(I=Y(),I==="\0")continue;if(I==="\\"){let q=K();if(q==="/"&&m.bash!==!0||q==="."||q===";")continue;if(!q){I+="\\",re({type:"text",value:I});continue}let ce=/^\\+/.exec(z()),ve=0;if(ce&&ce[0].length>2&&(ve=ce[0].length,N.index+=ve,ve%2!==0&&(I+="\\")),m.unescape===!0?I=Y():I+=Y(),N.brackets===0){re({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||T.value==="["||T.value==="[^")){if(m.posix!==!1&&I===":"){let q=T.value.slice(1);if(q.includes("[")&&(T.posix=!0,q.includes(":"))){let ce=T.value.lastIndexOf("["),ve=T.value.slice(0,ce),Se=T.value.slice(ce+2),_e=u[Se];if(_e){T.value=ve+_e,N.backtrack=!0,Y(),!E.output&&h.indexOf(T)===1&&(E.output=F);continue}}}(I==="["&&K()!==":"||I==="-"&&K()==="]")&&(I=`\\${I}`),I==="]"&&(T.value==="["||T.value==="[^")&&(I=`\\${I}`),m.posix===!0&&I==="!"&&T.value==="["&&(I="^"),T.value+=I,ee({value:I});continue}if(N.quotes===1&&I!=='"'){I=i.escapeRegex(I),T.value+=I,ee({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ye("parens"),re({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let q=le[le.length-1];if(q&&N.parens===q.parens+1){Ut(le.pop());continue}re({type:"paren",value:I,output:N.parens?")":"\\)"}),se("parens");continue}if(I==="["){if(m.nobracket===!0||!z().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));I=`\\${I}`}else ye("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(m.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}se("brackets");let q=T.value.slice(1);if(T.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(I=`/${I}`),T.value+=I,ee({value:I}),m.literalBrackets===!1||i.hasRegexChars(q))continue;let ce=i.escapeRegex(T.value);if(N.output=N.output.slice(0,-T.value.length),m.literalBrackets===!0){N.output+=ce,T.value=ce;continue}T.value=`(${v}${ce}|${T.value})`,N.output+=T.value;continue}if(I==="{"&&m.nobrace!==!0){ye("braces");let q={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};pe.push(q),re(q);continue}if(I==="}"){let q=pe[pe.length-1];if(m.nobrace===!0||!q){re({type:"text",value:I,output:I});continue}let ce=")";if(q.dots===!0){let ve=h.slice(),Se=[];for(let _e=ve.length-1;_e>=0&&(h.pop(),ve[_e].type!=="brace");_e--)ve[_e].type!=="dots"&&Se.unshift(ve[_e].value);ce=c(Se,m),N.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let ve=N.output.slice(0,q.outputIndex),Se=N.tokens.slice(q.tokensIndex);q.value=q.output="\\{",I=ce="\\}",N.output=ve;for(let _e of Se)N.output+=_e.output||_e.value}re({type:"brace",value:I,output:ce}),se("braces"),pe.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let q=I,ce=pe[pe.length-1];ce&&ne[ne.length-1]==="braces"&&(ce.comma=!0,q="|"),re({type:"comma",value:I,output:q});continue}if(I==="/"){if(T.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",h.pop(),T=E;continue}re({type:"slash",value:I,output:D});continue}if(I==="."){if(N.braces>0&&T.type==="dot"){T.value==="."&&(T.output=b);let q=pe[pe.length-1];T.type="dots",T.output+=I,T.value+=I,q.dots=!0;continue}if(N.braces+N.parens===0&&T.type!=="bos"&&T.type!=="slash"){re({type:"text",value:I,output:b});continue}re({type:"dot",value:I,output:b});continue}if(I==="?"){if(!(T&&T.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("qmark",I);continue}if(T&&T.type==="paren"){let q=K(),ce=I;if(q==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(z()))&&(ce=`\\${I}`),re({type:"text",value:I,output:ce});continue}if(m.dot!==!0&&(T.type==="slash"||T.type==="bos")){re({type:"qmark",value:I,output:R});continue}re({type:"qmark",value:I,output:S});continue}if(I==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){Ee("negate",I);continue}if(m.nonegate!==!0&&N.index===0){ie();continue}}if(I==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("plus",I);continue}if(T&&T.value==="("||m.regex===!1){re({type:"plus",value:I,output:k});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||N.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:k});continue}if(I==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let q=s.exec(z());q&&(I+=q[0],N.index+=q[0].length),re({type:"text",value:I});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=I,T.output=oe,N.backtrack=!0,N.globstar=!0,X(I);continue}let V=z();if(m.noextglob!==!0&&/^\([^?]/.test(V)){Ee("star",I);continue}if(T.type==="star"){if(m.noglobstar===!0){X(I);continue}let q=T.prev,ce=q.prev,ve=q.type==="slash"||q.type==="bos",Se=ce&&(ce.type==="star"||ce.type==="globstar");if(m.bash===!0&&(!ve||V[0]&&V[0]!=="/")){re({type:"star",value:I,output:""});continue}let _e=N.braces>0&&(q.type==="comma"||q.type==="brace"),Wt=le.length&&(q.type==="pipe"||q.type==="paren");if(!ve&&q.type!=="paren"&&!_e&&!Wt){re({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let gt=f[N.index+4];if(gt&&gt!=="/")break;V=V.slice(3),X("/**",3)}if(q.type==="bos"&&$()){T.type="globstar",T.value+=I,T.output=B(m),N.output=T.output,N.globstar=!0,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!Se&&$()){N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=B(m)+(m.strictSlashes?")":"|$)"),T.value+=I,N.globstar=!0,N.output+=q.output+T.output,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&V[0]==="/"){let gt=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=`${B(m)}${D}|${D}${gt})`,T.value+=I,N.output+=q.output+T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&V[0]==="/"){T.type="globstar",T.value+=I,T.output=`(?:^|${D}|${B(m)}${D})`,N.output=T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-T.output.length),T.type="globstar",T.output=B(m),T.value+=I,N.output+=T.output,N.globstar=!0,X(I);continue}let fe={type:"star",value:I,output:oe};if(m.bash===!0){fe.output=".*?",(T.type==="bos"||T.type==="slash")&&(fe.output=Q+fe.output),re(fe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&m.regex===!0){fe.output=I,re(fe);continue}(N.index===N.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(N.output+=P,T.output+=P):m.dot===!0?(N.output+=C,T.output+=C):(N.output+=Q,T.output+=Q),K()!=="*"&&(N.output+=F,T.output+=F)),re(fe)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=i.escapeLast(N.output,"["),se("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=i.escapeLast(N.output,"("),se("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=i.escapeLast(N.output,"{"),se("braces")}if(m.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${D}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,d)=>{let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);f=a[f]||f;let E=i.isWindows(d),{DOT_LITERAL:h,SLASH_LITERAL:v,ONE_CHAR:x,DOTS_SLASH:y,NO_DOT:A,NO_DOTS:b,NO_DOTS_SLASH:k,STAR:D,START_ANCHOR:F}=r.globChars(E),w=m.dot?b:A,O=m.dot?k:A,P=m.capture?"":"?:",C={negated:!1,prefix:""},S=m.bash===!0?".*?":D;m.capture&&(S=`(${S})`);let R=Q=>Q.noglobstar===!0?S:`(${P}(?:(?!${F}${Q.dot?y:h}).)*?)`,L=Q=>{switch(Q){case"*":return`${w}${x}${S}`;case".*":return`${h}${x}${S}`;case"*.*":return`${w}${S}${h}${x}${S}`;case"*/*":return`${w}${S}${v}${x}${O}${S}`;case"**":return w+R(m);case"**/*":return`(?:${w}${R(m)}${v})?${O}${x}${S}`;case"**/*.*":return`(?:${w}${R(m)}${v})?${O}${S}${h}${x}${S}`;case"**/.*":return`(?:${w}${R(m)}${v})?${h}${x}${S}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(Q);if(!Z)return;let oe=L(Z[1]);return oe?oe+h+Z[2]:void 0}}},M=i.removePrefix(f,C),B=L(M);return B&&m.strictSlashes!==!0&&(B+=`${v}?`),B},t.exports=l}),Cw=U((e,t)=>{"use strict";H();var r=ae("path"),i=xw(),n=ww(),u=Fi(),s=ki(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let v=c.map(x=>a(x,p,l));return x=>{for(let y of v){let A=y(x);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let d=p||{},m=u.isWindows(p),g=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),_=g.state;delete g.state;let E=()=>!1;if(d.ignore){let v={...p,ignore:null,onMatch:null,onResult:null};E=a(d.ignore,v,l)}let h=(v,x=!1)=>{let{isMatch:y,match:A,output:b}=a.test(v,g,p,{glob:c,posix:m}),k={glob:c,state:_,regex:g,posix:m,input:v,output:b,match:A,isMatch:y};return typeof d.onResult=="function"&&d.onResult(k),y===!1?(k.isMatch=!1,x?k:!1):E(v)?(typeof d.onIgnore=="function"&&d.onIgnore(k),k.isMatch=!1,x?k:!1):(typeof d.onMatch=="function"&&d.onMatch(k),x?k:!0)};return l&&(h.state=_),h};a.test=(c,p,l,{glob:f,posix:d}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},g=m.format||(d?u.toPosixSlashes:null),_=c===f,E=_&&g?g(c):c;return _===!1&&(E=g?g(c):c,_=E===f),(_===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?_=a.matchBase(c,p,l,d):_=p.exec(E)),{isMatch:Boolean(_),match:_,output:E}},a.matchBase=(c,p,l,f=u.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):n(c,{...p,fastpaths:!1}),a.scan=(c,p)=>i(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let d=p||{},m=d.contains?"":"^",g=d.contains?"":"$",_=`${m}(?:${c.output})${g}`;c&&c.negated===!0&&(_=`^(?!${_}).*$`);let E=a.toRegex(_,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(d.output=n.fastpaths(c,p)),d.output||(d=n(c,p)),a.compileRe(d,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,t.exports=a}),kw=U((e,t)=>{"use strict";H(),t.exports=Cw()}),Fw=U((e,t)=>{"use strict";H();var r=ae("util"),i=Dw(),n=kw(),u=Fi(),s=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,d=new Set,m=0,g=E=>{d.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let h=n(String(c[E]),{...p,onResult:g},!0),v=h.state.negated||h.state.negatedExtglob;v&&m++;for(let x of a){let y=h(x,!0);!(v?!y.isMatch:y.isMatch)||(v?l.add(y.output):(l.delete(y.output),f.add(y.output)))}}let _=(m===c.length?[...d]:[...f]).filter(E=>!l.has(E));if(p&&_.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return _};o.match=o,o.matcher=(a,c)=>n(a,c),o.isMatch=(a,c,p)=>n(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],d=g=>{p.onResult&&p.onResult(g),f.push(g.output)},m=new Set(o(a,c,{...p,onResult:d}));for(let g of f)m.has(g)||l.add(g);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!u.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let d of l)f[d]=a[d];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(l.some(m=>d(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(!l.every(m=>d(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>n(l,p)(a))},o.capture=(a,c,p)=>{let l=u.isWindows(p),f=n.makeRe(String(a),{...p,capture:!0}).exec(l?u.toPosixSlashes(c):c);if(f)return f.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...a)=>n.makeRe(...a),o.scan=(...a)=>n.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:i(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},t.exports=o}),Rw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ae("path"),r=gw(),i=Fw(),n="**",u="\\",s=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(L,M={}){return!f(L,M)}e.isStaticPattern=l;function f(L,M={}){return L===""?!1:!!(M.caseSensitiveMatch===!1||L.includes(u)||s.test(L)||o.test(L)||a.test(L)||M.extglob!==!1&&c.test(L)||M.braceExpansion!==!1&&d(L))}e.isDynamicPattern=f;function d(L){let M=L.indexOf("{");if(M===-1)return!1;let B=L.indexOf("}",M+1);if(B===-1)return!1;let Q=L.slice(M,B);return p.test(Q)}function m(L){return _(L)?L.slice(1):L}e.convertToPositivePattern=m;function g(L){return"!"+L}e.convertToNegativePattern=g;function _(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=_;function E(L){return!_(L)}e.isPositivePattern=E;function h(L){return L.filter(_)}e.getNegativePatterns=h;function v(L){return L.filter(E)}e.getPositivePatterns=v;function x(L){return L.filter(M=>!A(M))}e.getPatternsInsideCurrentDirectory=x;function y(L){return L.filter(A)}e.getPatternsOutsideCurrentDirectory=y;function A(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=A;function b(L){return r(L,{flipBackslashes:!1})}e.getBaseDirectory=b;function k(L){return L.includes(n)}e.hasGlobStar=k;function D(L){return L.endsWith("/"+n)}e.endsWithSlashGlobStar=D;function F(L){let M=t.basename(L);return D(L)||l(M)}e.isAffectDepthOfReadingPattern=F;function w(L){return L.reduce((M,B)=>M.concat(O(B)),[])}e.expandPatternsWithBraceExpansion=w;function O(L){return i.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=O;function P(L,M){let{parts:B}=i.scan(L,Object.assign(Object.assign({},M),{parts:!0}));return B.length===0&&(B=[L]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=P;function C(L,M){return i.makeRe(L,M)}e.makeRe=C;function S(L,M){return L.map(B=>C(B,M))}e.convertPatternsToRe=S;function R(L,M){return M.some(B=>B.test(L))}e.matchAny=R}),Ow=U((e,t)=>{"use strict";H();var r=ae("stream"),i=r.PassThrough,n=Array.prototype.slice;t.exports=u;function u(){let o=[],a=n.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let d=i(p);function m(){for(let E=0,h=arguments.length;E<h;E++)o.push(s(arguments[E],p));return g(),this}function g(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(_);return}Array.isArray(E)||(E=[E]);let h=E.length+1;function v(){--h>0||(c=!1,g())}function x(y){function A(){y.removeListener("merge2UnpipeEnd",A),y.removeListener("end",A),f&&y.removeListener("error",b),v()}function b(k){d.emit("error",k)}if(y._readableState.endEmitted)return v();y.on("merge2UnpipeEnd",A),y.on("end",A),f&&y.on("error",b),y.pipe(d,{end:!1}),y.resume()}for(let y=0;y<E.length;y++)x(E[y]);v()}function _(){c=!1,d.emit("queueDrain"),l&&d.end()}return d.setMaxListeners(0),d.add=m,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),d}function s(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(i(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),Tw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Ow();function r(n){let u=t(n);return n.forEach(s=>{s.once("error",o=>u.emit("error",o))}),u.once("close",()=>i(n)),u.once("end",()=>i(n)),u}e.merge=r;function i(n){n.forEach(u=>u.emit("close"))}}),Pw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function r(i){return i===""}e.isEmpty=r}),Ht=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=pw();e.array=t;var r=fw();e.errno=r;var i=dw();e.fs=i;var n=hw();e.path=n;var u=Rw();e.pattern=u;var s=Tw();e.stream=s;var o=Pw();e.string=o}),Lw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Ht();function r(c,p){let l=n(c),f=u(c,p.ignore),d=l.filter(E=>t.pattern.isStaticPattern(E,p)),m=l.filter(E=>t.pattern.isDynamicPattern(E,p)),g=i(d,f,!1),_=i(m,f,!0);return g.concat(_)}e.generate=r;function i(c,p,l){let f=[],d=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),g=s(d),_=s(m);return f.push(...o(g,p,l)),"."in _?f.push(a(".",m,p,l)):f.push(...o(_,p,l)),f}e.convertPatternsToTasks=i;function n(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=n;function u(c,p){return t.pattern.getNegativePatterns(c).concat(p).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function s(c){let p={};return c.reduce((l,f)=>{let d=t.pattern.getBaseDirectory(f);return d in l?l[d].push(f):l[d]=[f],l},p)}e.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}e.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=a}),Iw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var t=/(?!^)\/{2,}/g;function r(n){return n.map(u=>i(u))}e.transform=r;function i(n){return n.replace(t,"/")}e.removeDuplicateSlashes=i}),Nw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(n,u,s){u.fs.lstat(n,(o,a)=>{if(o!==null){r(s,o);return}if(!a.isSymbolicLink()||!u.followSymbolicLink){i(s,a);return}u.fs.stat(n,(c,p)=>{if(c!==null){if(u.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,a);return}u.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}e.read=t;function r(n,u){n(u)}function i(n,u){n(null,u)}}),Bw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let u=i.fs.statSync(r);return i.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw u}}e.read=t}),Mw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),jw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mw(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,n){return i!=null?i:n}};e.default=r}),jr=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=Nw(),r=Bw(),i=jw();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.stat=n;function u(o,a){let c=s(a);return r.read(o,c)}e.statSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),$w=U((e,t)=>{H();var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),Hw=U((e,t)=>{H(),t.exports=i;var r=$w();function i(n,u){let s,o,a,c=!0;Array.isArray(n)?(s=[],o=n.length):(a=Object.keys(n),s={},o=a.length);function p(f){function d(){u&&u(f,s),u=null}c?r(d):d()}function l(f,d,m){s[f]=m,(--o===0||d)&&p(d)}o?a?a.forEach(function(f){n[f](function(d,m){l(f,d,m)})}):n.forEach(function(f,d){f(function(m,g){l(d,m,g)})}):p(null),c=!1}}),Qd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),n=10,u=10,s=r>n,o=r===n&&i>=u;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),Gw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),Xd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=Gw();e.fs=t}),Jd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,i,n){return r.endsWith(n)?r+i:r+n+i}e.joinPathSegments=t}),qw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jr(),r=Hw(),i=Qd(),n=Xd(),u=Jd();function s(f,d,m){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,d,m);return}c(f,d,m)}e.read=s;function o(f,d,m){d.fs.readdir(f,{withFileTypes:!0},(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(v=>({dirent:v,name:v.name,path:u.joinPathSegments(f,v.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(m,E);return}let h=E.map(v=>a(v,d));r(h,(v,x)=>{if(v!==null){p(m,v);return}l(m,x)})})}e.readdirWithFileTypes=o;function a(f,d){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}d.fs.stat(f.path,(g,_)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){m(g);return}m(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,_),m(null,f)})}}function c(f,d,m){d.fs.readdir(f,(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(h=>{let v=u.joinPathSegments(f,h,d.pathSegmentSeparator);return x=>{t.stat(v,d.fsStatSettings,(y,A)=>{if(y!==null){x(y);return}let b={name:h,path:v,dirent:n.fs.createDirentFromStats(h,A)};d.stats&&(b.stats=A),x(null,b)})}});r(E,(h,v)=>{if(h!==null){p(m,h);return}l(m,v)})})}e.readdir=c;function p(f,d){f(d)}function l(f,d){f(null,d)}}),Uw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jr(),r=Qd(),i=Xd(),n=Jd();function u(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(a,c):o(a,c)}e.read=u;function s(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}e.readdirWithFileTypes=s;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=n.joinPathSegments(a,p,c.pathSegmentSeparator),f=t.statSync(l,c.fsStatSettings),d={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(d.stats=f),d})}e.readdir=o}),Ww=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),Kw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=jr(),i=Ww(),n=class{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,s){return u!=null?u:s}};e.default=n}),Na=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=qw(),r=Uw(),i=Kw();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.scandir=n;function u(o,a){let c=s(a);return r.read(o,c)}e.scandirSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),Yw=U((e,t)=>{"use strict";H();function r(i){var n=new i,u=n;function s(){var a=n;return a.next?n=a.next:(n=new i,u=n),a.next=null,a}function o(a){u.next=a,u=a}return{get:s,release:o}}t.exports=r}),Vw=U((e,t)=>{"use strict";H();var r=Yw();function i(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(u),l=null,f=null,d=0,m=null,g={push:A,drain:n,saturated:n,pause:E,paused:!1,concurrency:c,running:_,resume:x,idle:y,length:h,getQueue:v,unshift:b,empty:n,kill:D,killAndDrain:F,error:w};return g;function _(){return d}function E(){g.paused=!0}function h(){for(var O=l,P=0;O;)O=O.next,P++;return P}function v(){for(var O=l,P=[];O;)P.push(O.value),O=O.next;return P}function x(){if(g.paused){g.paused=!1;for(var O=0;O<g.concurrency;O++)d++,k()}}function y(){return d===0&&g.length()===0}function A(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,C.errorHandler=m,d===g.concurrency||g.paused?f?(f.next=C,f=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function b(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,d===g.concurrency||g.paused?l?(C.next=l,l=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function k(O){O&&p.release(O);var P=l;P?g.paused?d--:(f===l&&(f=null),l=P.next,P.next=null,a.call(o,P.value,P.worked),f===null&&g.empty()):--d===0&&g.drain()}function D(){l=null,f=null,g.drain=n}function F(){l=null,f=null,g.drain(),g.drain=n}function w(O){m=O}}function n(){}function u(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=n,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function s(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,h){a.call(this,E).then(function(v){h(null,v)},h)}var l=i(o,p,c),f=l.push,d=l.unshift;return l.push=m,l.unshift=g,l.drained=_,l;function m(E){var h=new Promise(function(v,x){f(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function g(E){var h=new Promise(function(v,x){d(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function _(){var E=l.drain,h=new Promise(function(v){l.drain=function(){E(),v()}});return h}}t.exports=i,t.exports.promise=s}),Ba=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(u,s){return u.errorFilter===null?!0:!u.errorFilter(s)}e.isFatalError=t;function r(u,s){return u===null||u(s)}e.isAppliedFilter=r;function i(u,s){return u.split(/[/\\]/).join(s)}e.replacePathSegmentSeparator=i;function n(u,s,o){return u===""?s:u.endsWith(o)?u+s:u+o+s}e.joinPathSegments=n}),Zd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ba(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=t.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};e.default=r}),zd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("events"),r=Na(),i=Vw(),n=Ba(),u=Zd(),s=class extends u.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!n.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=n.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=s}),Qw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=zd(),r=class{constructor(u,s){this._root=u,this._settings=s,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError(s=>{i(u,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(u,this._storage)}),this._reader.read()}};e.default=r;function i(u,s){u(s)}function n(u,s){u(null,s)}}),Xw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=zd(),i=class{constructor(n,u){this._root=n,this._settings=u,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),Jw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Na(),r=Ba(),i=Zd(),n=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,s){this._queue.add({directory:u,base:s})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,s){try{let o=this._scandir(u,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,s)}catch(o){this._handleError(o)}}_handleError(u){if(r.isFatalError(this._settings,u))throw u}_handleEntry(u,s){let o=u.path;s!==void 0&&(u.path=r.joinPathSegments(s,u.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,u)&&this._pushToStorage(u),u.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(o,s===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}};e.default=n}),Zw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Jw(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}),zw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=Na(),i=class{constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,u){return n!=null?n:u}};e.default=i}),Ma=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=Qw(),r=Xw(),i=Zw(),n=zw();e.Settings=n.default;function u(c,p,l){if(typeof p=="function"){new t.default(c,a()).read(p);return}new t.default(c,a(p)).read(l)}e.walk=u;function s(c,p){let l=a(p);return new i.default(c,l).read()}e.walkSync=s;function o(c,p){let l=a(p);return new r.default(c,l).read()}e.walkStream=o;function a(c={}){return c instanceof n.default?c:new n.default(c)}}),ja=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=jr(),i=Ht(),n=class{constructor(u){this._settings=u,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return t.resolve(this._settings.cwd,u)}_makeEntry(u,s){let o={name:s,path:s,dirent:i.fs.createDirentFromStats(s,u)};return this._settings.stats&&(o.stats=u),o}_isFatalError(u){return!i.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}};e.default=n}),eh=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=jr(),i=Ma(),n=ja(),u=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let a=s.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],s[p],o).then(d=>{d!==null&&o.entryFilter(d)&&c.push(d),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(s,o,a){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,a)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};e.default=u}),eC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ma(),r=ja(),i=eh(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(u,s){return new Promise((o,a)=>{this._walkAsync(u,s,(c,p)=>{c===null?o(p):a(c)})})}async static(u,s){let o=[],a=this._readerStream.static(u,s);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};e.default=n}),tC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i,n,u){this._patterns=i,this._settings=n,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let i=t.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let u=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(u);this._storage.push({complete:s.length<=1,pattern:n,segments:u,sections:s})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(n=>t.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:t.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,n=>n.dynamic&&t.pattern.hasGlobStar(n.pattern))}};e.default=r}),rC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=tC(),r=class extends t.default{match(i){let n=i.split("/"),u=n.length,s=this._storage.filter(o=>!o.complete||o.segments.length>u);for(let o of s){let a=o.sections[0];if(!o.complete&&u>a.length||n.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};e.default=r}),nC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=rC(),i=class{constructor(n,u){this._settings=n,this._micromatchOptions=u}getFilter(n,u,s){let o=this._getMatcher(u),a=this._getNegativePatternsRe(s);return c=>this._filter(n,c,o,a)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let u=n.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(u,this._micromatchOptions)}_filter(n,u,s,o){if(this._isSkippedByDeep(n,u.path)||this._isSkippedSymbolicLink(u))return!1;let a=t.path.removeLeadingDotSegment(u.path);return this._isSkippedByPositivePatterns(a,s)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(n,u){return this._settings.deep===1/0?!1:this._getEntryLevel(n,u)>=this._settings.deep}_getEntryLevel(n,u){let s=u.split("/").length;if(n==="")return s;let o=n.split("/").length;return s-o}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,u){return!this._settings.baseNameMatch&&!u.match(n)}_isSkippedByNegativePatterns(n,u){return!t.pattern.matchAny(n,u)}};e.default=i}),iC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let u=t.pattern.convertPatternsToRe(i,this._micromatchOptions),s=t.pattern.convertPatternsToRe(n,this._micromatchOptions);return o=>this._filter(o,u,s)}_filter(i,n,u){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,u))return!1;let s=this._settings.baseNameMatch?i.name:i.path,o=i.dirent.isDirectory(),a=this._isMatchToPatterns(s,n,o)&&!this._isMatchToPatterns(i.path,u,o);return this._settings.unique&&a&&this._createIndexRecord(i),a}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let u=t.path.makeAbsolute(this._settings.cwd,i);return t.pattern.matchAny(u,n)}_isMatchToPatterns(i,n,u){let s=t.path.removeLeadingDotSegment(i),o=t.pattern.matchAny(s,n);return!o&&u?t.pattern.matchAny(s+"/",n):o}};e.default=r}),oC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=r}),sC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=t.path.makeAbsolute(this._settings.cwd,n),n=t.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};e.default=r}),$a=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=nC(),i=iC(),n=oC(),u=sC(),s=class{constructor(o){this._settings=o,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=s}),aC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=eC(),r=$a(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(u,n,s)).map(o=>s.transform(o))}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),uC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=eh(),i=$a(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(u){let s=this._getRootDirectory(u),o=this._getReaderOptions(u),a=this.api(s,u,o),c=new t.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(u,s,o){return s.dynamic?this._reader.dynamic(u,o):this._reader.static(s.patterns,o)}};e.default=n}),cC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=jr(),r=Ma(),i=ja(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(u,s){return this._walkSync(u,s)}static(u,s){let o=[];for(let a of u){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(u,s,o){try{let a=this._getStat(u);return this._makeEntry(a,s)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(u){return this._statSync(u,this._fsStatSettings)}};e.default=n}),lC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=cC(),r=$a(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(u,n,s).map(s.transform)}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),pC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs"),r=ae("os"),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var n=class{constructor(u={}){this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(u,s){return u===void 0?s:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),u)}};e.default=n}),fC=U((e,t)=>{"use strict";H();var r=Lw(),i=Iw(),n=aC(),u=uC(),s=lC(),o=pC(),a=Ht();async function c(f,d){l(f);let m=p(f,n.default,d),g=await Promise.all(m);return a.array.flatten(g)}(function(f){function d(h,v){l(h);let x=p(h,s.default,v);return a.array.flatten(x)}f.sync=d;function m(h,v){l(h);let x=p(h,u.default,v);return a.stream.merge(x)}f.stream=m;function g(h,v){l(h);let x=i.transform([].concat(h)),y=new o.default(v);return r.generate(x,y)}f.generateTasks=g;function _(h,v){l(h);let x=new o.default(v);return a.pattern.isDynamicPattern(h,x)}f.isDynamicPattern=_;function E(h){return l(h),a.path.escape(h)}f.escapePath=E})(c||(c={}));function p(f,d,m){let g=i.transform([].concat(f)),_=new o.default(m),E=r.generate(g,_),h=new d(_);return E.map(h.read,h)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=c});H();H();function th(e){return typeof e>"u"||e===null}function dC(e){return typeof e=="object"&&e!==null}function hC(e){return Array.isArray(e)?e:th(e)?[]:[e]}function mC(e,t){var r,i,n,u;if(t)for(u=Object.keys(t),r=0,i=u.length;r<i;r+=1)n=u[r],e[n]=t[n];return e}function yC(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function gC(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vC=th,_C=dC,EC=hC,SC=yC,AC=gC,bC=mC,Te={isNothing:vC,isObject:_C,toArray:EC,repeat:SC,isNegativeZero:AC,extend:bC};function rh(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
85
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(x,F,"copy",(P,C)=>{if(P)return O(P);let{srcStat:S,destStat:R}=C;o.checkParentPaths(x,S,F,"copy",L=>L?O(L):w.filter?p(c,R,x,F,w,O):c(R,x,F,w,O))})}function c(x,F,w,O,P){let C=n.dirname(w);u(C,(S,R)=>{if(S)return P(S);if(R)return l(x,F,w,O,P);i(C,L=>L?P(L):l(x,F,w,O,P))})}function p(x,F,w,O,P,C){Promise.resolve(P.filter(w,O)).then(S=>S?x(F,w,O,P,C):C(),S=>C(S))}function l(x,F,w,O,P){return O.filter?p(f,x,F,w,O,P):f(x,F,w,O,P)}function f(x,F,w,O,P){(O.dereference?r.stat:r.lstat)(F,(C,S)=>{if(C)return P(C);if(S.isDirectory())return d(S,x,F,w,O,P);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return h(S,x,F,w,O,P);if(S.isSymbolicLink())return b(x,F,w,O,P)})}function h(x,F,w,O,P,C){return F?m(x,w,O,P,C):v(x,w,O,P,C)}function m(x,F,w,O,P){if(O.overwrite)r.unlink(w,C=>C?P(C):v(x,F,w,O,P));else return O.errorOnExist?P(new Error(`'${w}' already exists`)):P()}function v(x,F,w,O,P){return typeof r.copyFile=="function"?r.copyFile(F,w,C=>C?P(C):E(x,w,O,P)):_(x,F,w,O,P)}function _(x,F,w,O,P){let C=r.createReadStream(F);C.on("error",S=>P(S)).once("open",()=>{let S=r.createWriteStream(w,{mode:x.mode});S.on("error",R=>P(R)).on("open",()=>C.pipe(S)).once("close",()=>E(x,w,O,P))})}function E(x,F,w,O){r.chmod(F,x.mode,P=>P?O(P):w.preserveTimestamps?s(F,x.atime,x.mtime,O):O())}function d(x,F,w,O,P,C){return F?F&&!F.isDirectory()?C(new Error(`Cannot overwrite non-directory '${O}' with directory '${w}'.`)):D(w,O,P,C):y(x,w,O,P,C)}function y(x,F,w,O,P){r.mkdir(w,C=>{if(C)return P(C);D(F,w,O,S=>S?P(S):r.chmod(w,x.mode,P))})}function D(x,F,w,O){r.readdir(x,(P,C)=>P?O(P):g(C,x,F,w,O))}function g(x,F,w,O,P){let C=x.pop();return C?A(x,C,F,w,O,P):P()}function A(x,F,w,O,P,C){let S=n.join(w,F),R=n.join(O,F);o.checkPaths(S,R,"copy",(L,M)=>{if(L)return C(L);let{destStat:B}=M;l(B,S,R,P,Q=>Q?C(Q):g(x,w,O,P,C))})}function b(x,F,w,O,P){r.readlink(F,(C,S)=>{if(C)return P(C);if(O.dereference&&(S=n.resolve(process.cwd(),S)),x)r.readlink(w,(R,L)=>R?R.code==="EINVAL"||R.code==="UNKNOWN"?r.symlink(S,w,P):P(R):(O.dereference&&(L=n.resolve(process.cwd(),L)),o.isSrcSubdir(S,L)?P(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${L}'.`)):x.isDirectory()&&o.isSrcSubdir(L,S)?P(new Error(`Cannot overwrite '${L}' with '${S}'.`)):k(S,w,P)));else return r.symlink(S,w,P)})}function k(x,F,w){r.unlink(F,O=>O?w(O):r.symlink(x,F,w))}t.exports=a}),Hd=U((e,t)=>{"use strict";H();var r=et().fromCallback;t.exports={copy:r(sw())}}),aw=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=ae("assert"),u=process.platform==="win32";function s(_){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{_[E]=_[E]||r[E],E=E+"Sync",_[E]=_[E]||r[E]}),_.maxBusyTries=_.maxBusyTries||3}function o(_,E,d){let y=0;typeof E=="function"&&(d=E,E={}),i(_,"rimraf: missing path"),i.strictEqual(typeof _,"string","rimraf: path should be a string"),i.strictEqual(typeof d,"function","rimraf: callback function required"),i(E,"rimraf: invalid options argument provided"),i.strictEqual(typeof E,"object","rimraf: options should be object"),s(E),a(_,E,function D(g){if(g){if((g.code==="EBUSY"||g.code==="ENOTEMPTY"||g.code==="EPERM")&&y<E.maxBusyTries){y++;let A=y*100;return setTimeout(()=>a(_,E,D),A)}g.code==="ENOENT"&&(g=null)}d(g)})}function a(_,E,d){i(_),i(E),i(typeof d=="function"),E.lstat(_,(y,D)=>{if(y&&y.code==="ENOENT")return d(null);if(y&&y.code==="EPERM"&&u)return c(_,E,y,d);if(D&&D.isDirectory())return l(_,E,y,d);E.unlink(_,g=>{if(g){if(g.code==="ENOENT")return d(null);if(g.code==="EPERM")return u?c(_,E,g,d):l(_,E,g,d);if(g.code==="EISDIR")return l(_,E,g,d)}return d(g)})})}function c(_,E,d,y){i(_),i(E),i(typeof y=="function"),d&&i(d instanceof Error),E.chmod(_,438,D=>{D?y(D.code==="ENOENT"?null:d):E.stat(_,(g,A)=>{g?y(g.code==="ENOENT"?null:d):A.isDirectory()?l(_,E,d,y):E.unlink(_,y)})})}function p(_,E,d){let y;i(_),i(E),d&&i(d instanceof Error);try{E.chmodSync(_,438)}catch(D){if(D.code==="ENOENT")return;throw d}try{y=E.statSync(_)}catch(D){if(D.code==="ENOENT")return;throw d}y.isDirectory()?m(_,E,d):E.unlinkSync(_)}function l(_,E,d,y){i(_),i(E),d&&i(d instanceof Error),i(typeof y=="function"),E.rmdir(_,D=>{D&&(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")?f(_,E,y):D&&D.code==="ENOTDIR"?y(d):y(D)})}function f(_,E,d){i(_),i(E),i(typeof d=="function"),E.readdir(_,(y,D)=>{if(y)return d(y);let g=D.length,A;if(g===0)return E.rmdir(_,d);D.forEach(b=>{o(n.join(_,b),E,k=>{if(!A){if(k)return d(A=k);--g===0&&E.rmdir(_,d)}})})})}function h(_,E){let d;E=E||{},s(E),i(_,"rimraf: missing path"),i.strictEqual(typeof _,"string","rimraf: path should be a string"),i(E,"rimraf: missing options"),i.strictEqual(typeof E,"object","rimraf: options should be object");try{d=E.lstatSync(_)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&u&&p(_,E,y)}try{d&&d.isDirectory()?m(_,E,null):E.unlinkSync(_)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return u?p(_,E,y):m(_,E,y);if(y.code!=="EISDIR")throw y;m(_,E,y)}}function m(_,E,d){i(_),i(E),d&&i(d instanceof Error);try{E.rmdirSync(_)}catch(y){if(y.code==="ENOTDIR")throw d;if(y.code==="ENOTEMPTY"||y.code==="EEXIST"||y.code==="EPERM")v(_,E);else if(y.code!=="ENOENT")throw y}}function v(_,E){if(i(_),i(E),E.readdirSync(_).forEach(d=>h(n.join(_,d),E)),u){let d=Date.now();do try{return E.rmdirSync(_,E)}catch{}while(Date.now()-d<500)}else return E.rmdirSync(_,E)}t.exports=o,o.sync=h}),Di=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=aw();t.exports={remove:r(n),removeSync:n.sync}}),uw=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=Oe(),i=ae("path"),u=ot(),s=Di(),o=r(function(c,p){p=p||function(){},n.readdir(c,(l,f)=>{if(l)return u.mkdirs(c,p);f=f.map(m=>i.join(c,m)),h();function h(){let m=f.pop();if(!m)return p();s.remove(m,v=>{if(v)return p(v);h()})}})});function a(c){let p;try{p=n.readdirSync(c)}catch{return u.mkdirsSync(c)}p.forEach(l=>{l=i.join(c,l),s.removeSync(l)})}t.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),cw=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=ae("path"),i=Oe(),u=ot(),s=Dt().pathExists;function o(c,p){function l(){i.writeFile(c,"",f=>{if(f)return p(f);p()})}i.stat(c,(f,h)=>{if(!f&&h.isFile())return p();let m=n.dirname(c);s(m,(v,_)=>{if(v)return p(v);if(_)return l();u.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=i.statSync(c)}catch{}if(p&&p.isFile())return;let l=n.dirname(c);i.existsSync(l)||u.mkdirsSync(l),i.writeFileSync(c,"")}t.exports={createFile:r(o),createFileSync:a}}),lw=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=ae("path"),i=Oe(),u=ot(),s=Dt().pathExists;function o(c,p,l){function f(h,m){i.link(h,m,v=>{if(v)return l(v);l(null)})}s(p,(h,m)=>{if(h)return l(h);if(m)return l(null);i.lstat(c,v=>{if(v)return v.message=v.message.replace("lstat","ensureLink"),l(v);let _=n.dirname(p);s(_,(E,d)=>{if(E)return l(E);if(d)return f(c,p);u.mkdirs(_,y=>{if(y)return l(y);f(c,p)})})})})}function a(c,p){if(i.existsSync(p))return;try{i.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=n.dirname(p);return i.existsSync(l)||u.mkdirsSync(l),i.linkSync(c,p)}t.exports={createLink:r(o),createLinkSync:a}}),pw=U((e,t)=>{"use strict";H();var r=ae("path"),n=Oe(),i=Dt().pathExists;function u(o,a,c){if(r.isAbsolute(o))return n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return i(l,(f,h)=>f?c(f):h?c(null,{toCwd:l,toDst:o}):n.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,a){let c;if(r.isAbsolute(o)){if(c=n.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=n.existsSync(l),c)return{toCwd:l,toDst:o};if(c=n.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}t.exports={symlinkPaths:u,symlinkPathsSync:s}}),fw=U((e,t)=>{"use strict";H();var r=Oe();function n(u,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(u,(a,c)=>{if(a)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function i(u,s){let o;if(s)return s;try{o=r.lstatSync(u)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}t.exports={symlinkType:n,symlinkTypeSync:i}}),dw=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=ae("path"),i=Oe(),u=ot(),s=u.mkdirs,o=u.mkdirsSync,a=pw(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=fw(),f=l.symlinkType,h=l.symlinkTypeSync,m=Dt().pathExists;function v(E,d,y,D){D=typeof y=="function"?y:D,y=typeof y=="function"?!1:y,m(d,(g,A)=>{if(g)return D(g);if(A)return D(null);c(E,d,(b,k)=>{if(b)return D(b);E=k.toDst,f(k.toCwd,y,(x,F)=>{if(x)return D(x);let w=n.dirname(d);m(w,(O,P)=>{if(O)return D(O);if(P)return i.symlink(E,d,F,D);s(w,C=>{if(C)return D(C);i.symlink(E,d,F,D)})})})})})}function _(E,d,y){if(i.existsSync(d))return;let D=p(E,d);E=D.toDst,y=h(D.toCwd,y);let g=n.dirname(d);return i.existsSync(g)||o(g),i.symlinkSync(E,d,y)}t.exports={createSymlink:r(v),createSymlinkSync:_}}),hw=U((e,t)=>{"use strict";H();var r=cw(),n=lw(),i=dw();t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),mw=U((e,t)=>{H();var r;try{r=Oe()}catch{r=ae("fs")}function n(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var h=l.fs||r,m=!0;"throws"in l&&(m=l.throws),h.readFile(p,l,function(v,_){if(v)return f(v);_=a(_);var E;try{E=JSON.parse(_,l?l.reviver:null)}catch(d){return m?(d.message=p+": "+d.message,f(d)):f(null,null)}f(null,E)})}function i(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,h=!0;"throws"in l&&(h=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(v){if(h)throw v.message=p+": "+v.message,v;return null}}function u(p,l){var f,h=`
86
+ `;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(h=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,h)+h}function s(p,l,f,h){h==null&&(h=f,f={}),f=f||{};var m=f.fs||r,v="";try{v=u(l,f)}catch(_){h&&h(_,null);return}m.writeFile(p,v,f,h)}function o(p,l,f){f=f||{};var h=f.fs||r,m=u(l,f);return h.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:n,readFileSync:i,writeFile:s,writeFileSync:o};t.exports=c}),Ta=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=mw();t.exports={readJson:r(n.readFile),readJsonSync:n.readFileSync,writeJson:r(n.writeFile),writeJsonSync:n.writeFileSync}}),gw=U((e,t)=>{"use strict";H();var r=ae("path"),n=ot(),i=Dt().pathExists,u=Ta();function s(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);i(l,(f,h)=>{if(f)return p(f);if(h)return u.writeJson(o,a,c,p);n.mkdirs(l,m=>{if(m)return p(m);u.writeJson(o,a,c,p)})})}t.exports=s}),yw=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=ot(),u=Ta();function s(o,a,c){let p=n.dirname(o);r.existsSync(p)||i.mkdirsSync(p),u.writeJsonSync(o,a,c)}t.exports=s}),vw=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=Ta();n.outputJson=r(gw()),n.outputJsonSync=yw(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,t.exports=n}),_w=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=$d().copySync,u=Di().removeSync,s=ot().mkdirpSync,o=xi();function a(f,h,m){m=m||{};let v=m.overwrite||m.clobber||!1,{srcStat:_}=o.checkPathsSync(f,h,"move");return o.checkParentPathsSync(f,_,h,"move"),s(n.dirname(h)),c(f,h,v)}function c(f,h,m){if(m)return u(h),p(f,h,m);if(r.existsSync(h))throw new Error("dest already exists.");return p(f,h,m)}function p(f,h,m){try{r.renameSync(f,h)}catch(v){if(v.code!=="EXDEV")throw v;return l(f,h,m)}}function l(f,h,m){return i(f,h,{overwrite:m,errorOnExist:!0}),u(f)}t.exports=a}),Ew=U((e,t)=>{"use strict";H(),t.exports={moveSync:_w()}}),Sw=U((e,t)=>{"use strict";H();var r=Oe(),n=ae("path"),i=Hd().copy,u=Di().remove,s=ot().mkdirp,o=Dt().pathExists,a=xi();function c(h,m,v,_){typeof v=="function"&&(_=v,v={});let E=v.overwrite||v.clobber||!1;a.checkPaths(h,m,"move",(d,y)=>{if(d)return _(d);let{srcStat:D}=y;a.checkParentPaths(h,D,m,"move",g=>{if(g)return _(g);s(n.dirname(m),A=>A?_(A):p(h,m,E,_))})})}function p(h,m,v,_){if(v)return u(m,E=>E?_(E):l(h,m,v,_));o(m,(E,d)=>E?_(E):d?_(new Error("dest already exists.")):l(h,m,v,_))}function l(h,m,v,_){r.rename(h,m,E=>E?E.code!=="EXDEV"?_(E):f(h,m,v,_):_())}function f(h,m,v,_){i(h,m,{overwrite:v,errorOnExist:!0},E=>E?_(E):u(h,_))}t.exports=c}),Aw=U((e,t)=>{"use strict";H();var r=et().fromCallback;t.exports={move:r(Sw())}}),bw=U((e,t)=>{"use strict";H();var r=et().fromCallback,n=Oe(),i=ae("path"),u=ot(),s=Dt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let h=i.dirname(c);s(h,(m,v)=>{if(m)return f(m);if(v)return n.writeFile(c,p,l,f);u.mkdirs(h,_=>{if(_)return f(_);n.writeFile(c,p,l,f)})})}function a(c,...p){let l=i.dirname(c);if(n.existsSync(l))return n.writeFileSync(c,...p);u.mkdirsSync(l),n.writeFileSync(c,...p)}t.exports={outputFile:r(o),outputFileSync:a}}),xw=U((e,t)=>{"use strict";H(),t.exports=Object.assign({},Bd(),$d(),Hd(),uw(),hw(),vw(),ot(),Ew(),Aw(),bw(),Dt(),Di());var r=ae("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get(){return r.promises}})});H();H();var L2=jt(YD());H();H();function Dw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}H();H();function Ra(e){return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}H();function ww(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cw(e,t){if(t&&(Ra(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ww(e)}H();function bi(e){return bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bi(e)}H();H();function un(e,t){return un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},un(e,t)}function kw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}H();H();function Fw(e){return Function.toString.call(e).indexOf("[native code]")!==-1}H();H();function Rw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ai(e,t,r){return Rw()?Ai=Reflect.construct.bind():Ai=function(n,i,u){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),a=new o;return u&&un(a,u.prototype),a},Ai.apply(null,arguments)}function Oa(e){var t=typeof Map=="function"?new Map:void 0;return Oa=function(r){if(r===null||!Fw(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Ai(r,arguments,bi(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),un(n,r)},Oa(e)}var I2=jt(ZD()),N2=jt(xw()),B2=function(e){kw(t,e);function t(r){var n;return Dw(this,t),n=Cw(this,bi(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(Oa(Error));H();var Tw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,u)=>[].concat(i,u),[])}e.flatten=t;function r(n,i){let u=[[]],s=0;for(let o of n)i(o)?(s++,u[s]=[]):u[s].push(o);return u}e.splitWhen=r}),Pw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}),Lw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}),Iw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var t=ae("path"),r=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(a){return a.replace(/\\/g,"/")}e.unixify=i;function u(a,c){return t.resolve(a,c)}e.makeAbsolute=u;function s(a){return a.replace(n,"\\$2")}e.escape=s;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}e.removeLeadingDotSegment=o}),Nw=U((e,t)=>{H(),t.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1}}),Bw=U((e,t)=>{H();var r=Nw(),n={"{":"}","(":")","[":"]"},i=function(s){if(s[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||a!==-1&&s[o]==="("&&s[o+1]!=="|"&&(a<o&&(a=s.indexOf("|",o)),a!==-1&&s[a+1]!==")"&&(l=s.indexOf(")",a),l>a&&(f=s.indexOf("\\",a),f===-1||f>l))))return!0;if(s[o]==="\\"){var h=s[o+1];o+=2;var m=n[h];if(m){var v=s.indexOf(m,o);v!==-1&&(o=v+1)}if(s[o]==="!")return!0}else o++}return!1},u=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var a=s[o+1];o+=2;var c=n[a];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};t.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var a=i;return o&&o.strict===!1&&(a=u),a(s)}}),Mw=U((e,t)=>{"use strict";H();var r=Bw(),n=ae("path").posix.dirname,i=ae("os").platform()==="win32",u="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&i&&p.indexOf(u)<0&&(p=p.replace(s,u)),o.test(p)&&(p+=u),p+="a";do p=n(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),Ha=U(e=>{"use strict";H(),e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{let i=t.nodes[r];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{let r=[],n=i=>{for(let u=0;u<i.length;u++){let s=i[u];Array.isArray(s)?n(s,r):s!==void 0&&r.push(s)}return r};return n(t),r}}),Ga=U((e,t)=>{"use strict";H();var r=Ha();t.exports=(n,i={})=>{let u=(s,o={})=>{let a=i.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&i.escapeInvalid===!0,p="";if(s.value)return(a||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=u(l);return p};return u(n)}}),jw=U((e,t)=>{"use strict";H(),t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),$w=U((e,t)=>{"use strict";H();var r=jw(),n=(d,y,D)=>{if(r(d)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(y===void 0||d===y)return String(d);if(r(y)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let g={relaxZeros:!0,...D};typeof g.strictZeros=="boolean"&&(g.relaxZeros=g.strictZeros===!1);let A=String(g.relaxZeros),b=String(g.shorthand),k=String(g.capture),x=String(g.wrap),F=d+":"+y+"="+A+b+k+x;if(n.cache.hasOwnProperty(F))return n.cache[F].result;let w=Math.min(d,y),O=Math.max(d,y);if(Math.abs(w-O)===1){let L=d+"|"+y;return g.capture?`(${L})`:g.wrap===!1?L:`(?:${L})`}let P=_(d)||_(y),C={min:d,max:y,a:w,b:O},S=[],R=[];if(P&&(C.isPadded=P,C.maxLen=String(C.max).length),w<0){let L=O<0?Math.abs(O):1;R=o(L,Math.abs(w),C,g),w=C.a=0}return O>=0&&(S=o(w,O,C,g)),C.negatives=R,C.positives=S,C.result=i(R,S,g),g.capture===!0?C.result=`(${C.result})`:g.wrap!==!1&&S.length+R.length>1&&(C.result=`(?:${C.result})`),n.cache[F]=C,C.result};function i(d,y,D){let g=a(d,y,"-",!1,D)||[],A=a(y,d,"",!1,D)||[],b=a(d,y,"-?",!0,D)||[];return g.concat(b).concat(A).join("|")}function u(d,y){let D=1,g=1,A=f(d,D),b=new Set([y]);for(;d<=A&&A<=y;)b.add(A),D+=1,A=f(d,D);for(A=h(y+1,g)-1;d<A&&A<=y;)b.add(A),g+=1,A=h(y+1,g)-1;return b=[...b],b.sort(p),b}function s(d,y,D){if(d===y)return{pattern:d,count:[],digits:0};let g=c(d,y),A=g.length,b="",k=0;for(let x=0;x<A;x++){let[F,w]=g[x];F===w?b+=F:F!=="0"||w!=="9"?b+=v(F,w,D):k++}return k&&(b+=D.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[k],digits:A}}function o(d,y,D,g){let A=u(d,y),b=[],k=d,x;for(let F=0;F<A.length;F++){let w=A[F],O=s(String(k),String(w),g),P="";if(!D.isPadded&&x&&x.pattern===O.pattern){x.count.length>1&&x.count.pop(),x.count.push(O.count[0]),x.string=x.pattern+m(x.count),k=w+1;continue}D.isPadded&&(P=E(w,D,g)),O.string=P+O.pattern+m(O.count),b.push(O),k=w+1,x=O}return b}function a(d,y,D,g,A){let b=[];for(let k of d){let{string:x}=k;!g&&!l(y,"string",x)&&b.push(D+x),g&&l(y,"string",x)&&b.push(D+x)}return b}function c(d,y){let D=[];for(let g=0;g<d.length;g++)D.push([d[g],y[g]]);return D}function p(d,y){return d>y?1:y>d?-1:0}function l(d,y,D){return d.some(g=>g[y]===D)}function f(d,y){return Number(String(d).slice(0,-y)+"9".repeat(y))}function h(d,y){return d-d%Math.pow(10,y)}function m(d){let[y=0,D=""]=d;return D||y>1?`{${y+(D?","+D:"")}}`:""}function v(d,y,D){return`[${d}${y-d===1?"":"-"}${y}]`}function _(d){return/^-?(0+)\d/.test(d)}function E(d,y,D){if(!y.isPadded)return d;let g=Math.abs(y.maxLen-String(d).length),A=D.relaxZeros!==!1;switch(g){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${g}}`:`0{${g}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}),nh=U((e,t)=>{"use strict";H();var r=ae("util"),n=$w(),i=g=>g!==null&&typeof g=="object"&&!Array.isArray(g),u=g=>A=>g===!0?Number(A):String(A),s=g=>typeof g=="number"||typeof g=="string"&&g!=="",o=g=>Number.isInteger(+g),a=g=>{let A=`${g}`,b=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++b]==="0";);return b>0},c=(g,A,b)=>typeof g=="string"||typeof A=="string"?!0:b.stringify===!0,p=(g,A,b)=>{if(A>0){let k=g[0]==="-"?"-":"";k&&(g=g.slice(1)),g=k+g.padStart(k?A-1:A,"0")}return b===!1?String(g):g},l=(g,A)=>{let b=g[0]==="-"?"-":"";for(b&&(g=g.slice(1),A--);g.length<A;)g="0"+g;return b?"-"+g:g},f=(g,A)=>{g.negatives.sort((w,O)=>w<O?-1:w>O?1:0),g.positives.sort((w,O)=>w<O?-1:w>O?1:0);let b=A.capture?"":"?:",k="",x="",F;return g.positives.length&&(k=g.positives.join("|")),g.negatives.length&&(x=`-(${b}${g.negatives.join("|")})`),k&&x?F=`${k}|${x}`:F=k||x,A.wrap?`(${b}${F})`:F},h=(g,A,b,k)=>{if(b)return n(g,A,{wrap:!1,...k});let x=String.fromCharCode(g);if(g===A)return x;let F=String.fromCharCode(A);return`[${x}-${F}]`},m=(g,A,b)=>{if(Array.isArray(g)){let k=b.wrap===!0,x=b.capture?"":"?:";return k?`(${x}${g.join("|")})`:g.join("|")}return n(g,A,b)},v=(...g)=>new RangeError("Invalid range arguments: "+r.inspect(...g)),_=(g,A,b)=>{if(b.strictRanges===!0)throw v([g,A]);return[]},E=(g,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${g}" to be a number`);return[]},d=(g,A,b=1,k={})=>{let x=Number(g),F=Number(A);if(!Number.isInteger(x)||!Number.isInteger(F)){if(k.strictRanges===!0)throw v([g,A]);return[]}x===0&&(x=0),F===0&&(F=0);let w=x>F,O=String(g),P=String(A),C=String(b);b=Math.max(Math.abs(b),1);let S=a(O)||a(P)||a(C),R=S?Math.max(O.length,P.length,C.length):0,L=S===!1&&c(g,A,k)===!1,M=k.transform||u(L);if(k.toRegex&&b===1)return h(l(g,R),l(A,R),!0,k);let B={negatives:[],positives:[]},Q=N=>B[N<0?"negatives":"positives"].push(Math.abs(N)),Z=[],oe=0;for(;w?x>=F:x<=F;)k.toRegex===!0&&b>1?Q(x):Z.push(p(M(x,oe),R,L)),x=w?x-b:x+b,oe++;return k.toRegex===!0?b>1?f(B,k):m(Z,null,{wrap:!1,...k}):Z},y=(g,A,b=1,k={})=>{if(!o(g)&&g.length>1||!o(A)&&A.length>1)return _(g,A,k);let x=k.transform||(L=>String.fromCharCode(L)),F=`${g}`.charCodeAt(0),w=`${A}`.charCodeAt(0),O=F>w,P=Math.min(F,w),C=Math.max(F,w);if(k.toRegex&&b===1)return h(P,C,!1,k);let S=[],R=0;for(;O?F>=w:F<=w;)S.push(x(F,R)),F=O?F-b:F+b,R++;return k.toRegex===!0?m(S,null,{wrap:!1,options:k}):S},D=(g,A,b,k={})=>{if(A==null&&s(g))return[g];if(!s(g)||!s(A))return _(g,A,k);if(typeof b=="function")return D(g,A,1,{transform:b});if(i(b))return D(g,A,0,b);let x={...k};return x.capture===!0&&(x.wrap=!0),b=b||x.step||1,o(b)?o(g)&&o(A)?d(g,A,b,x):y(g,A,Math.max(Math.abs(b),1),x):b!=null&&!i(b)?E(b,x):D(g,A,1,b)};t.exports=D}),Hw=U((e,t)=>{"use strict";H();var r=nh(),n=Ha(),i=(u,s={})=>{let o=(a,c={})=>{let p=n.isInvalidBrace(c),l=a.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,h=s.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return h+a.value;if(a.type==="open")return f?h+a.value:"(";if(a.type==="close")return f?h+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let v=n.reduce(a.nodes),_=r(...v,{...s,wrap:!1,toRegex:!0});if(_.length!==0)return v.length>1&&_.length>1?`(${_})`:_}if(a.nodes)for(let v of a.nodes)m+=o(v,a);return m};return o(u)};t.exports=i}),Gw=U((e,t)=>{"use strict";H();var r=nh(),n=Ga(),i=Ha(),u=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?i.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(u(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?u(l,f,c):l+f);return i.flatten(p)},s=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let h=f,m=f.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,m=h.queue;if(l.invalid||l.dollar){m.push(u(m.pop(),n(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(u(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let d=i.reduce(l.nodes);if(i.exceedsLimit(...d,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let y=r(...d,a);y.length===0&&(y=n(l,a)),m.push(u(m.pop(),y)),l.nodes=[];return}let v=i.encloseBrace(l),_=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;for(let d=0;d<l.nodes.length;d++){let y=l.nodes[d];if(y.type==="comma"&&l.type==="brace"){d===1&&_.push(""),_.push("");continue}if(y.type==="close"){m.push(u(m.pop(),_,v));continue}if(y.value&&y.type!=="open"){_.push(u(_.pop(),y.value));continue}y.nodes&&p(y,l)}return _};return i.flatten(p(o))};t.exports=s}),qw=U((e,t)=>{"use strict";H(),t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
87
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),Uw=U((e,t)=>{"use strict";H();var r=Ga(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:v,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=qw(),d=(y,D={})=>{if(typeof y!="string")throw new TypeError("Expected a string");let g=D||{},A=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n;if(y.length>A)throw new SyntaxError(`Input length (${y.length}), exceeds max characters (${A})`);let b={type:"root",input:y,nodes:[]},k=[b],x=b,F=b,w=0,O=y.length,P=0,C=0,S,R={},L=()=>y[P++],M=B=>{if(B.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&B.type==="text"){F.value+=B.value;return}return x.nodes.push(B),B.parent=x,B.prev=F,F=B,B};for(M({type:"bos"});P<O;)if(x=k[k.length-1],S=L(),!(S===E||S===_)){if(S===i){M({type:"text",value:(D.keepEscaping?S:"")+L()});continue}if(S===h){M({type:"text",value:"\\"+S});continue}if(S===f){w++;let B=!0,Q;for(;P<O&&(Q=L());){if(S+=Q,Q===f){w++;continue}if(Q===i){S+=L();continue}if(Q===h&&(w--,w===0))break}M({type:"text",value:S});continue}if(S===a){x=M({type:"paren",nodes:[]}),k.push(x),M({type:"text",value:S});continue}if(S===c){if(x.type!=="paren"){M({type:"text",value:S});continue}x=k.pop(),M({type:"text",value:S}),x=k[k.length-1];continue}if(S===m||S===v||S===u){let B=S,Q;for(D.keepQuotes!==!0&&(S="");P<O&&(Q=L());){if(Q===i){S+=Q+L();continue}if(Q===B){D.keepQuotes===!0&&(S+=Q);break}S+=Q}M({type:"text",value:S});continue}if(S===p){C++;let B=F.value&&F.value.slice(-1)==="$"||x.dollar===!0;x=M({type:"brace",open:!0,close:!1,dollar:B,depth:C,commas:0,ranges:0,nodes:[]}),k.push(x),M({type:"open",value:S});continue}if(S===l){if(x.type!=="brace"){M({type:"text",value:S});continue}let B="close";x=k.pop(),x.close=!0,M({type:B,value:S}),C--,x=k[k.length-1];continue}if(S===s&&C>0){if(x.ranges>0){x.ranges=0;let B=x.nodes.shift();x.nodes=[B,{type:"text",value:r(x)}]}M({type:"comma",value:S}),x.commas++;continue}if(S===o&&C>0&&x.commas===0){let B=x.nodes;if(C===0||B.length===0){M({type:"text",value:S});continue}if(F.type==="dot"){if(x.range=[],F.value+=S,F.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,F.type="text";continue}x.ranges++,x.args=[];continue}if(F.type==="range"){B.pop();let Q=B[B.length-1];Q.value+=F.value+S,F=Q,x.ranges--;continue}M({type:"dot",value:S});continue}M({type:"text",value:S})}do if(x=k.pop(),x.type!=="root"){x.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let B=k[k.length-1],Q=B.nodes.indexOf(x);B.nodes.splice(Q,1,...x.nodes)}while(k.length>0);return M({type:"eos"}),b};t.exports=d}),Ww=U((e,t)=>{"use strict";H();var r=Ga(),n=Hw(),i=Gw(),u=Uw(),s=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,a={})=>u(o,a),s.stringify=(o,a={})=>r(typeof o=="string"?s.parse(o,a):o,a),s.compile=(o,a={})=>(typeof o=="string"&&(o=s.parse(o,a)),n(o,a)),s.expand=(o,a={})=>{typeof o=="string"&&(o=s.parse(o,a));let c=i(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?s.compile(o,a):s.expand(o,a),t.exports=s}),Oi=U((e,t)=>{"use strict";H();var r=ae("path"),n="\\\\/",i=`[^${n}]`,u="\\.",s="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,h=`${u}{1,2}${l}`,m=`(?!${u})`,v=`(?!${f}${h})`,_=`(?!${u}{0,1}${l})`,E=`(?!${h})`,d=`[^.${a}]`,y=`${p}*?`,D={DOT_LITERAL:u,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:v,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:d,STAR:y,START_ANCHOR:f},g={...D,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${u}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${n}])${u}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},A={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,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(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?g:D}}}),Ti=U(e=>{"use strict";H();var t=ae("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:s}=Oi();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>u.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(s,"\\$1"),e.toPosixSlashes=o=>o.replace(n,"/"),e.removeBackslashes=o=>o.replace(i,a=>a==="\\"?"":a),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?e.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},e.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},e.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),Yw=U((e,t)=>{"use strict";H();var r=Ti(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:v,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=Oi(),d=g=>g===c||g===u,y=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},D=(g,A)=>{let b=A||{},k=g.length-1,x=b.parts===!0||b.scanToEnd===!0,F=[],w=[],O=[],P=g,C=-1,S=0,R=0,L=!1,M=!1,B=!1,Q=!1,Z=!1,oe=!1,N=!1,le=!1,pe=!1,ne=!1,T=0,I,$,Y={value:"",depth:0,isGlob:!1},K=()=>C>=k,z=()=>P.charCodeAt(C+1),J=()=>(I=$,P.charCodeAt(++C));for(;C<k;){$=J();let re;if($===u){N=Y.backslashes=!0,$=J(),$===p&&(oe=!0);continue}if(oe===!0||$===p){for(T++;K()!==!0&&($=J());){if($===u){N=Y.backslashes=!0,J();continue}if($===p){T++;continue}if(oe!==!0&&$===o&&($=J())===o){if(L=Y.isBrace=!0,B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if(oe!==!0&&$===s){if(L=Y.isBrace=!0,B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if($===v&&(T--,T===0)){oe=!1,L=Y.isBrace=!0,ne=!0;break}}if(x===!0)continue;break}if($===c){if(F.push(C),w.push(Y),Y={value:"",depth:0,isGlob:!1},ne===!0)continue;if(I===o&&C===S+1){S+=2;continue}R=C+1;continue}if(b.noext!==!0&&($===h||$===i||$===n||$===m||$===a)&&z()===l){if(B=Y.isGlob=!0,Q=Y.isExtglob=!0,ne=!0,$===a&&C===S&&(pe=!0),x===!0){for(;K()!==!0&&($=J());){if($===u){N=Y.backslashes=!0,$=J();continue}if($===_){B=Y.isGlob=!0,ne=!0;break}}continue}break}if($===n){if(I===n&&(Z=Y.isGlobstar=!0),B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if($===m){if(B=Y.isGlob=!0,ne=!0,x===!0)continue;break}if($===f){for(;K()!==!0&&(re=J());){if(re===u){N=Y.backslashes=!0,J();continue}if(re===E){M=Y.isBracket=!0,B=Y.isGlob=!0,ne=!0;break}}if(x===!0)continue;break}if(b.nonegate!==!0&&$===a&&C===S){le=Y.negated=!0,S++;continue}if(b.noparen!==!0&&$===l){if(B=Y.isGlob=!0,x===!0){for(;K()!==!0&&($=J());){if($===l){N=Y.backslashes=!0,$=J();continue}if($===_){ne=!0;break}}continue}break}if(B===!0){if(ne=!0,x===!0)continue;break}}b.noext===!0&&(Q=!1,B=!1);let ee=P,ie="",ge="";S>0&&(ie=P.slice(0,S),P=P.slice(S),R-=S),ee&&B===!0&&R>0?(ee=P.slice(0,R),ge=P.slice(R)):B===!0?(ee="",ge=P):ee=P,ee&&ee!==""&&ee!=="/"&&ee!==P&&d(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),b.unescape===!0&&(ge&&(ge=r.removeBackslashes(ge)),ee&&N===!0&&(ee=r.removeBackslashes(ee)));let se={prefix:ie,input:g,start:S,base:ee,glob:ge,isBrace:L,isBracket:M,isGlob:B,isExtglob:Q,isGlobstar:Z,negated:le,negatedExtglob:pe};if(b.tokens===!0&&(se.maxDepth=0,d($)||w.push(Y),se.tokens=w),b.parts===!0||b.tokens===!0){let re;for(let Ee=0;Ee<F.length;Ee++){let Ut=re?re+1:S,V=F[Ee],fe=g.slice(Ut,V);b.tokens&&(Ee===0&&S!==0?(w[Ee].isPrefix=!0,w[Ee].value=ie):w[Ee].value=fe,y(w[Ee]),se.maxDepth+=w[Ee].depth),(Ee!==0||fe!=="")&&O.push(fe),re=V}if(re&&re+1<g.length){let Ee=g.slice(re+1);O.push(Ee),b.tokens&&(w[w.length-1].value=Ee,y(w[w.length-1]),se.maxDepth+=w[w.length-1].depth)}se.slashes=F,se.parts=O}return se};t.exports=D}),Kw=U((e,t)=>{"use strict";H();var r=Oi(),n=Ti(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...f,h);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(v=>n.escapeRegex(v)).join("..")}return m},p=(f,h)=>`Missing ${f}: "${h}" - use "\\\\${h}" to match literal characters`,l=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...h},v=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,_=f.length;if(_>v)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${v}`);let E={type:"bos",value:"",output:m.prepend||""},d=[E],y=m.capture?"":"?:",D=n.isWindows(h),g=r.globChars(D),A=r.extglobChars(g),{DOT_LITERAL:b,PLUS_LITERAL:k,SLASH_LITERAL:x,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:O,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:S,QMARK_NO_DOT:R,STAR:L,START_ANCHOR:M}=g,B=V=>`(${y}(?:(?!${M}${V.dot?w:b}).)*?)`,Q=m.dot?"":O,Z=m.dot?S:R,oe=m.bash===!0?B(m):L;m.capture&&(oe=`(${oe})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:d};f=n.removePrefix(f,N),_=f.length;let le=[],pe=[],ne=[],T=E,I,$=()=>N.index===_-1,Y=N.peek=(V=1)=>f[N.index+V],K=N.advance=()=>f[++N.index]||"",z=()=>f.slice(N.index+1),J=(V="",fe=0)=>{N.consumed+=V,N.index+=fe},ee=V=>{N.output+=V.output!=null?V.output:V.value,J(V.value)},ie=()=>{let V=1;for(;Y()==="!"&&(Y(2)!=="("||Y(3)==="?");)K(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ge=V=>{N[V]++,ne.push(V)},se=V=>{N[V]--,ne.pop()},re=V=>{if(T.type==="globstar"){let fe=N.braces>0&&(V.type==="comma"||V.type==="brace"),q=V.extglob===!0||le.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!fe&&!q&&(N.output=N.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,N.output+=T.output)}if(le.length&&V.type!=="paren"&&(le[le.length-1].inner+=V.value),(V.value||V.output)&&ee(V),T&&T.type==="text"&&V.type==="text"){T.value+=V.value,T.output=(T.output||"")+V.value;return}V.prev=T,d.push(V),T=V},Ee=(V,fe)=>{let q={...A[fe],conditions:1,inner:""};q.prev=T,q.parens=N.parens,q.output=N.output;let ce=(m.capture?"(":"")+q.open;ge("parens"),re({type:V,value:fe,output:N.output?"":F}),re({type:"paren",extglob:!0,value:K(),output:ce}),le.push(q)},Ut=V=>{let fe=V.close+(m.capture?")":""),q;if(V.type==="negate"){let ce=oe;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(ce=B(m)),(ce!==oe||$()||/^\)+$/.test(z()))&&(fe=V.close=`)$))${ce}`),V.inner.includes("*")&&(q=z())&&/^\.[^\\/.]+$/.test(q)){let ve=l(q,{...h,fastpaths:!1}).output;fe=V.close=`)${ve})${ce})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:fe}),se("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,fe=f.replace(o,(q,ce,ve,Ae,_e,Wt)=>Ae==="\\"?(V=!0,q):Ae==="?"?ce?ce+Ae+(_e?S.repeat(_e.length):""):Wt===0?Z+(_e?S.repeat(_e.length):""):S.repeat(ve.length):Ae==="."?b.repeat(ve.length):Ae==="*"?ce?ce+Ae+(_e?oe:""):oe:ce?q:`\\${q}`);return V===!0&&(m.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),fe===f&&m.contains===!0?(N.output=f,N):(N.output=n.wrapOutput(fe,N,h),N)}for(;!$();){if(I=K(),I==="\0")continue;if(I==="\\"){let q=Y();if(q==="/"&&m.bash!==!0||q==="."||q===";")continue;if(!q){I+="\\",re({type:"text",value:I});continue}let ce=/^\\+/.exec(z()),ve=0;if(ce&&ce[0].length>2&&(ve=ce[0].length,N.index+=ve,ve%2!==0&&(I+="\\")),m.unescape===!0?I=K():I+=K(),N.brackets===0){re({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||T.value==="["||T.value==="[^")){if(m.posix!==!1&&I===":"){let q=T.value.slice(1);if(q.includes("[")&&(T.posix=!0,q.includes(":"))){let ce=T.value.lastIndexOf("["),ve=T.value.slice(0,ce),Ae=T.value.slice(ce+2),_e=u[Ae];if(_e){T.value=ve+_e,N.backtrack=!0,K(),!E.output&&d.indexOf(T)===1&&(E.output=F);continue}}}(I==="["&&Y()!==":"||I==="-"&&Y()==="]")&&(I=`\\${I}`),I==="]"&&(T.value==="["||T.value==="[^")&&(I=`\\${I}`),m.posix===!0&&I==="!"&&T.value==="["&&(I="^"),T.value+=I,ee({value:I});continue}if(N.quotes===1&&I!=='"'){I=n.escapeRegex(I),T.value+=I,ee({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ge("parens"),re({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let q=le[le.length-1];if(q&&N.parens===q.parens+1){Ut(le.pop());continue}re({type:"paren",value:I,output:N.parens?")":"\\)"}),se("parens");continue}if(I==="["){if(m.nobracket===!0||!z().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));I=`\\${I}`}else ge("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(m.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}se("brackets");let q=T.value.slice(1);if(T.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(I=`/${I}`),T.value+=I,ee({value:I}),m.literalBrackets===!1||n.hasRegexChars(q))continue;let ce=n.escapeRegex(T.value);if(N.output=N.output.slice(0,-T.value.length),m.literalBrackets===!0){N.output+=ce,T.value=ce;continue}T.value=`(${y}${ce}|${T.value})`,N.output+=T.value;continue}if(I==="{"&&m.nobrace!==!0){ge("braces");let q={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};pe.push(q),re(q);continue}if(I==="}"){let q=pe[pe.length-1];if(m.nobrace===!0||!q){re({type:"text",value:I,output:I});continue}let ce=")";if(q.dots===!0){let ve=d.slice(),Ae=[];for(let _e=ve.length-1;_e>=0&&(d.pop(),ve[_e].type!=="brace");_e--)ve[_e].type!=="dots"&&Ae.unshift(ve[_e].value);ce=c(Ae,m),N.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let ve=N.output.slice(0,q.outputIndex),Ae=N.tokens.slice(q.tokensIndex);q.value=q.output="\\{",I=ce="\\}",N.output=ve;for(let _e of Ae)N.output+=_e.output||_e.value}re({type:"brace",value:I,output:ce}),se("braces"),pe.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let q=I,ce=pe[pe.length-1];ce&&ne[ne.length-1]==="braces"&&(ce.comma=!0,q="|"),re({type:"comma",value:I,output:q});continue}if(I==="/"){if(T.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",d.pop(),T=E;continue}re({type:"slash",value:I,output:x});continue}if(I==="."){if(N.braces>0&&T.type==="dot"){T.value==="."&&(T.output=b);let q=pe[pe.length-1];T.type="dots",T.output+=I,T.value+=I,q.dots=!0;continue}if(N.braces+N.parens===0&&T.type!=="bos"&&T.type!=="slash"){re({type:"text",value:I,output:b});continue}re({type:"dot",value:I,output:b});continue}if(I==="?"){if(!(T&&T.value==="(")&&m.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){Ee("qmark",I);continue}if(T&&T.type==="paren"){let q=Y(),ce=I;if(q==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(z()))&&(ce=`\\${I}`),re({type:"text",value:I,output:ce});continue}if(m.dot!==!0&&(T.type==="slash"||T.type==="bos")){re({type:"qmark",value:I,output:R});continue}re({type:"qmark",value:I,output:S});continue}if(I==="!"){if(m.noextglob!==!0&&Y()==="("&&(Y(2)!=="?"||!/[!=<:]/.test(Y(3)))){Ee("negate",I);continue}if(m.nonegate!==!0&&N.index===0){ie();continue}}if(I==="+"){if(m.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){Ee("plus",I);continue}if(T&&T.value==="("||m.regex===!1){re({type:"plus",value:I,output:k});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||N.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:k});continue}if(I==="@"){if(m.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let q=s.exec(z());q&&(I+=q[0],N.index+=q[0].length),re({type:"text",value:I});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=I,T.output=oe,N.backtrack=!0,N.globstar=!0,J(I);continue}let V=z();if(m.noextglob!==!0&&/^\([^?]/.test(V)){Ee("star",I);continue}if(T.type==="star"){if(m.noglobstar===!0){J(I);continue}let q=T.prev,ce=q.prev,ve=q.type==="slash"||q.type==="bos",Ae=ce&&(ce.type==="star"||ce.type==="globstar");if(m.bash===!0&&(!ve||V[0]&&V[0]!=="/")){re({type:"star",value:I,output:""});continue}let _e=N.braces>0&&(q.type==="comma"||q.type==="brace"),Wt=le.length&&(q.type==="pipe"||q.type==="paren");if(!ve&&q.type!=="paren"&&!_e&&!Wt){re({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let vt=f[N.index+4];if(vt&&vt!=="/")break;V=V.slice(3),J("/**",3)}if(q.type==="bos"&&$()){T.type="globstar",T.value+=I,T.output=B(m),N.output=T.output,N.globstar=!0,J(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!Ae&&$()){N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=B(m)+(m.strictSlashes?")":"|$)"),T.value+=I,N.globstar=!0,N.output+=q.output+T.output,J(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&V[0]==="/"){let vt=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=`${B(m)}${x}|${x}${vt})`,T.value+=I,N.output+=q.output+T.output,N.globstar=!0,J(I+K()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&V[0]==="/"){T.type="globstar",T.value+=I,T.output=`(?:^|${x}|${B(m)}${x})`,N.output=T.output,N.globstar=!0,J(I+K()),re({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-T.output.length),T.type="globstar",T.output=B(m),T.value+=I,N.output+=T.output,N.globstar=!0,J(I);continue}let fe={type:"star",value:I,output:oe};if(m.bash===!0){fe.output=".*?",(T.type==="bos"||T.type==="slash")&&(fe.output=Q+fe.output),re(fe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&m.regex===!0){fe.output=I,re(fe);continue}(N.index===N.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(N.output+=P,T.output+=P):m.dot===!0?(N.output+=C,T.output+=C):(N.output+=Q,T.output+=Q),Y()!=="*"&&(N.output+=F,T.output+=F)),re(fe)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=n.escapeLast(N.output,"["),se("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=n.escapeLast(N.output,"("),se("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=n.escapeLast(N.output,"{"),se("braces")}if(m.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${x}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,h)=>{let m={...h},v=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,_=f.length;if(_>v)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${v}`);f=a[f]||f;let E=n.isWindows(h),{DOT_LITERAL:d,SLASH_LITERAL:y,ONE_CHAR:D,DOTS_SLASH:g,NO_DOT:A,NO_DOTS:b,NO_DOTS_SLASH:k,STAR:x,START_ANCHOR:F}=r.globChars(E),w=m.dot?b:A,O=m.dot?k:A,P=m.capture?"":"?:",C={negated:!1,prefix:""},S=m.bash===!0?".*?":x;m.capture&&(S=`(${S})`);let R=Q=>Q.noglobstar===!0?S:`(${P}(?:(?!${F}${Q.dot?g:d}).)*?)`,L=Q=>{switch(Q){case"*":return`${w}${D}${S}`;case".*":return`${d}${D}${S}`;case"*.*":return`${w}${S}${d}${D}${S}`;case"*/*":return`${w}${S}${y}${D}${O}${S}`;case"**":return w+R(m);case"**/*":return`(?:${w}${R(m)}${y})?${O}${D}${S}`;case"**/*.*":return`(?:${w}${R(m)}${y})?${O}${S}${d}${D}${S}`;case"**/.*":return`(?:${w}${R(m)}${y})?${d}${D}${S}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(Q);if(!Z)return;let oe=L(Z[1]);return oe?oe+d+Z[2]:void 0}}},M=n.removePrefix(f,C),B=L(M);return B&&m.strictSlashes!==!0&&(B+=`${y}?`),B},t.exports=l}),Vw=U((e,t)=>{"use strict";H();var r=ae("path"),n=Yw(),i=Kw(),u=Ti(),s=Oi(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let y=c.map(D=>a(D,p,l));return D=>{for(let g of y){let A=g(D);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let h=p||{},m=u.isWindows(p),v=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),_=v.state;delete v.state;let E=()=>!1;if(h.ignore){let y={...p,ignore:null,onMatch:null,onResult:null};E=a(h.ignore,y,l)}let d=(y,D=!1)=>{let{isMatch:g,match:A,output:b}=a.test(y,v,p,{glob:c,posix:m}),k={glob:c,state:_,regex:v,posix:m,input:y,output:b,match:A,isMatch:g};return typeof h.onResult=="function"&&h.onResult(k),g===!1?(k.isMatch=!1,D?k:!1):E(y)?(typeof h.onIgnore=="function"&&h.onIgnore(k),k.isMatch=!1,D?k:!1):(typeof h.onMatch=="function"&&h.onMatch(k),D?k:!0)};return l&&(d.state=_),d};a.test=(c,p,l,{glob:f,posix:h}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},v=m.format||(h?u.toPosixSlashes:null),_=c===f,E=_&&v?v(c):c;return _===!1&&(E=v?v(c):c,_=E===f),(_===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?_=a.matchBase(c,p,l,h):_=p.exec(E)),{isMatch:Boolean(_),match:_,output:E}},a.matchBase=(c,p,l,f=u.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):i(c,{...p,fastpaths:!1}),a.scan=(c,p)=>n(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let h=p||{},m=h.contains?"":"^",v=h.contains?"":"$",_=`${m}(?:${c.output})${v}`;c&&c.negated===!0&&(_=`^(?!${_}).*$`);let E=a.toRegex(_,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(h.output=i.fastpaths(c,p)),h.output||(h=i(c,p)),a.compileRe(h,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,t.exports=a}),Qw=U((e,t)=>{"use strict";H(),t.exports=Vw()}),Xw=U((e,t)=>{"use strict";H();var r=ae("util"),n=Ww(),i=Qw(),u=Ti(),s=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,h=new Set,m=0,v=E=>{h.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let d=i(String(c[E]),{...p,onResult:v},!0),y=d.state.negated||d.state.negatedExtglob;y&&m++;for(let D of a){let g=d(D,!0);!(y?!g.isMatch:g.isMatch)||(y?l.add(g.output):(l.delete(g.output),f.add(g.output)))}}let _=(m===c.length?[...h]:[...f]).filter(E=>!l.has(E));if(p&&_.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return _};o.match=o,o.matcher=(a,c)=>i(a,c),o.isMatch=(a,c,p)=>i(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],h=v=>{p.onResult&&p.onResult(v),f.push(v.output)},m=new Set(o(a,c,{...p,onResult:h}));for(let v of f)m.has(v)||l.add(v);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!u.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let h of l)f[h]=a[h];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let h=i(String(f),p);if(l.some(m=>h(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let h=i(String(f),p);if(!l.every(m=>h(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>i(l,p)(a))},o.capture=(a,c,p)=>{let l=u.isWindows(p),f=i.makeRe(String(a),{...p,capture:!0}).exec(l?u.toPosixSlashes(c):c);if(f)return f.slice(1).map(h=>h===void 0?"":h)},o.makeRe=(...a)=>i.makeRe(...a),o.scan=(...a)=>i.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of n(String(l),c))p.push(i.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:n(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},t.exports=o}),Jw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ae("path"),r=Mw(),n=Xw(),i="**",u="\\",s=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(L,M={}){return!f(L,M)}e.isStaticPattern=l;function f(L,M={}){return L===""?!1:!!(M.caseSensitiveMatch===!1||L.includes(u)||s.test(L)||o.test(L)||a.test(L)||M.extglob!==!1&&c.test(L)||M.braceExpansion!==!1&&h(L))}e.isDynamicPattern=f;function h(L){let M=L.indexOf("{");if(M===-1)return!1;let B=L.indexOf("}",M+1);if(B===-1)return!1;let Q=L.slice(M,B);return p.test(Q)}function m(L){return _(L)?L.slice(1):L}e.convertToPositivePattern=m;function v(L){return"!"+L}e.convertToNegativePattern=v;function _(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=_;function E(L){return!_(L)}e.isPositivePattern=E;function d(L){return L.filter(_)}e.getNegativePatterns=d;function y(L){return L.filter(E)}e.getPositivePatterns=y;function D(L){return L.filter(M=>!A(M))}e.getPatternsInsideCurrentDirectory=D;function g(L){return L.filter(A)}e.getPatternsOutsideCurrentDirectory=g;function A(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=A;function b(L){return r(L,{flipBackslashes:!1})}e.getBaseDirectory=b;function k(L){return L.includes(i)}e.hasGlobStar=k;function x(L){return L.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function F(L){let M=t.basename(L);return x(L)||l(M)}e.isAffectDepthOfReadingPattern=F;function w(L){return L.reduce((M,B)=>M.concat(O(B)),[])}e.expandPatternsWithBraceExpansion=w;function O(L){return n.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=O;function P(L,M){let{parts:B}=n.scan(L,Object.assign(Object.assign({},M),{parts:!0}));return B.length===0&&(B=[L]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=P;function C(L,M){return n.makeRe(L,M)}e.makeRe=C;function S(L,M){return L.map(B=>C(B,M))}e.convertPatternsToRe=S;function R(L,M){return M.some(B=>B.test(L))}e.matchAny=R}),Zw=U((e,t)=>{"use strict";H();var r=ae("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=u;function u(){let o=[],a=i.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let h=n(p);function m(){for(let E=0,d=arguments.length;E<d;E++)o.push(s(arguments[E],p));return v(),this}function v(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(_);return}Array.isArray(E)||(E=[E]);let d=E.length+1;function y(){--d>0||(c=!1,v())}function D(g){function A(){g.removeListener("merge2UnpipeEnd",A),g.removeListener("end",A),f&&g.removeListener("error",b),y()}function b(k){h.emit("error",k)}if(g._readableState.endEmitted)return y();g.on("merge2UnpipeEnd",A),g.on("end",A),f&&g.on("error",b),g.pipe(h,{end:!1}),g.resume()}for(let g=0;g<E.length;g++)D(E[g]);y()}function _(){c=!1,h.emit("queueDrain"),l&&h.end()}return h.setMaxListeners(0),h.add=m,h.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),h}function s(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),zw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Zw();function r(i){let u=t(i);return i.forEach(s=>{s.once("error",o=>u.emit("error",o))}),u.once("close",()=>n(i)),u.once("end",()=>n(i)),u}e.merge=r;function n(i){i.forEach(u=>u.emit("close"))}}),eC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}),Gt=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=Tw();e.array=t;var r=Pw();e.errno=r;var n=Lw();e.fs=n;var i=Iw();e.path=i;var u=Jw();e.pattern=u;var s=zw();e.stream=s;var o=eC();e.string=o}),tC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Gt();function r(c,p){let l=i(c),f=u(c,p.ignore),h=l.filter(E=>t.pattern.isStaticPattern(E,p)),m=l.filter(E=>t.pattern.isDynamicPattern(E,p)),v=n(h,f,!1),_=n(m,f,!0);return v.concat(_)}e.generate=r;function n(c,p,l){let f=[],h=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),v=s(h),_=s(m);return f.push(...o(v,p,l)),"."in _?f.push(a(".",m,p,l)):f.push(...o(_,p,l)),f}e.convertPatternsToTasks=n;function i(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=i;function u(c,p){return t.pattern.getNegativePatterns(c).concat(p).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function s(c){let p={};return c.reduce((l,f)=>{let h=t.pattern.getBaseDirectory(f);return h in l?l[h].push(f):l[h]=[f],l},p)}e.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}e.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=a}),rC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var t=/(?!^)\/{2,}/g;function r(i){return i.map(u=>n(u))}e.transform=r;function n(i){return i.replace(t,"/")}e.removeDuplicateSlashes=n}),nC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,u,s){u.fs.lstat(i,(o,a)=>{if(o!==null){r(s,o);return}if(!a.isSymbolicLink()||!u.followSymbolicLink){n(s,a);return}u.fs.stat(i,(c,p)=>{if(c!==null){if(u.throwErrorOnBrokenSymbolicLink){r(s,c);return}n(s,a);return}u.markSymbolicLink&&(p.isSymbolicLink=()=>!0),n(s,p)})})}e.read=t;function r(i,u){i(u)}function n(i,u){i(null,u)}}),iC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let u=n.fs.statSync(r);return n.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw u}}e.read=t}),oC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}),sC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=oC(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=r}),jr=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=nC(),r=iC(),n=sC();e.Settings=n.default;function i(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.stat=i;function u(o,a){let c=s(a);return r.read(o,c)}e.statSync=u;function s(o={}){return o instanceof n.default?o:new n.default(o)}}),aC=U((e,t)=>{H();var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),uC=U((e,t)=>{H(),t.exports=n;var r=aC();function n(i,u){let s,o,a,c=!0;Array.isArray(i)?(s=[],o=i.length):(a=Object.keys(i),s={},o=a.length);function p(f){function h(){u&&u(f,s),u=null}c?r(h):h()}function l(f,h,m){s[f]=m,(--o===0||h)&&p(h)}o?a?a.forEach(function(f){i[f](function(h,m){l(f,h,m)})}):i.forEach(function(f,h){f(function(m,v){l(h,m,v)})}):p(null),c=!1}}),ih=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,u=10,s=r>i,o=r===i&&n>=u;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),cC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}),oh=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=cC();e.fs=t}),sh=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}),lC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jr(),r=uC(),n=ih(),i=oh(),u=sh();function s(f,h,m){if(!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,h,m);return}c(f,h,m)}e.read=s;function o(f,h,m){h.fs.readdir(f,{withFileTypes:!0},(v,_)=>{if(v!==null){p(m,v);return}let E=_.map(y=>({dirent:y,name:y.name,path:u.joinPathSegments(f,y.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){l(m,E);return}let d=E.map(y=>a(y,h));r(d,(y,D)=>{if(y!==null){p(m,y);return}l(m,D)})})}e.readdirWithFileTypes=o;function a(f,h){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}h.fs.stat(f.path,(v,_)=>{if(v!==null){if(h.throwErrorOnBrokenSymbolicLink){m(v);return}m(null,f);return}f.dirent=i.fs.createDirentFromStats(f.name,_),m(null,f)})}}function c(f,h,m){h.fs.readdir(f,(v,_)=>{if(v!==null){p(m,v);return}let E=_.map(d=>{let y=u.joinPathSegments(f,d,h.pathSegmentSeparator);return D=>{t.stat(y,h.fsStatSettings,(g,A)=>{if(g!==null){D(g);return}let b={name:d,path:y,dirent:i.fs.createDirentFromStats(d,A)};h.stats&&(b.stats=A),D(null,b)})}});r(E,(d,y)=>{if(d!==null){p(m,d);return}l(m,y)})})}e.readdir=c;function p(f,h){f(h)}function l(f,h){f(null,h)}}),pC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jr(),r=ih(),n=oh(),i=sh();function u(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(a,c):o(a,c)}e.read=u;function s(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:i.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=n.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}e.readdirWithFileTypes=s;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=i.joinPathSegments(a,p,c.pathSegmentSeparator),f=t.statSync(l,c.fsStatSettings),h={name:p,path:l,dirent:n.fs.createDirentFromStats(p,f)};return c.stats&&(h.stats=f),h})}e.readdir=o}),fC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}),dC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=jr(),n=fC(),i=class{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,s){return u!=null?u:s}};e.default=i}),qa=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=lC(),r=pC(),n=dC();e.Settings=n.default;function i(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.scandir=i;function u(o,a){let c=s(a);return r.read(o,c)}e.scandirSync=u;function s(o={}){return o instanceof n.default?o:new n.default(o)}}),hC=U((e,t)=>{"use strict";H();function r(n){var i=new n,u=i;function s(){var a=i;return a.next?i=a.next:(i=new n,u=i),a.next=null,a}function o(a){u.next=a,u=a}return{get:s,release:o}}t.exports=r}),mC=U((e,t)=>{"use strict";H();var r=hC();function n(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(u),l=null,f=null,h=0,m=null,v={push:A,drain:i,saturated:i,pause:E,paused:!1,concurrency:c,running:_,resume:D,idle:g,length:d,getQueue:y,unshift:b,empty:i,kill:x,killAndDrain:F,error:w};return v;function _(){return h}function E(){v.paused=!0}function d(){for(var O=l,P=0;O;)O=O.next,P++;return P}function y(){for(var O=l,P=[];O;)P.push(O.value),O=O.next;return P}function D(){if(v.paused){v.paused=!1;for(var O=0;O<v.concurrency;O++)h++,k()}}function g(){return h===0&&v.length()===0}function A(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||i,C.errorHandler=m,h===v.concurrency||v.paused?f?(f.next=C,f=C):(l=C,f=C,v.saturated()):(h++,a.call(o,C.value,C.worked))}function b(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||i,h===v.concurrency||v.paused?l?(C.next=l,l=C):(l=C,f=C,v.saturated()):(h++,a.call(o,C.value,C.worked))}function k(O){O&&p.release(O);var P=l;P?v.paused?h--:(f===l&&(f=null),l=P.next,P.next=null,a.call(o,P.value,P.worked),f===null&&v.empty()):--h===0&&v.drain()}function x(){l=null,f=null,v.drain=i}function F(){l=null,f=null,v.drain(),v.drain=i}function w(O){m=O}}function i(){}function u(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=i,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function s(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,d){a.call(this,E).then(function(y){d(null,y)},d)}var l=n(o,p,c),f=l.push,h=l.unshift;return l.push=m,l.unshift=v,l.drained=_,l;function m(E){var d=new Promise(function(y,D){f(E,function(g,A){if(g){D(g);return}y(A)})});return d.catch(i),d}function v(E){var d=new Promise(function(y,D){h(E,function(g,A){if(g){D(g);return}y(A)})});return d.catch(i),d}function _(){var E=l.drain,d=new Promise(function(y){l.drain=function(){E(),y()}});return d}}t.exports=n,t.exports.promise=s}),Ua=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(u,s){return u.errorFilter===null?!0:!u.errorFilter(s)}e.isFatalError=t;function r(u,s){return u===null||u(s)}e.isAppliedFilter=r;function n(u,s){return u.split(/[/\\]/).join(s)}e.replacePathSegmentSeparator=n;function i(u,s,o){return u===""?s:u.endsWith(o)?u+s:u+o+s}e.joinPathSegments=i}),ah=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ua(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}),uh=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("events"),r=qa(),n=mC(),i=Ua(),u=ah(),s=class extends u.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=i.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=s}),gC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=uh(),r=class{constructor(u,s){this._root=u,this._settings=s,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError(s=>{n(u,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{i(u,this._storage)}),this._reader.read()}};e.default=r;function n(u,s){u(s)}function i(u,s){u(null,s)}}),yC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=uh(),n=class{constructor(i,u){this._root=i,this._settings=u,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),vC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=qa(),r=Ua(),n=ah(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,s){this._queue.add({directory:u,base:s})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,s){try{let o=this._scandir(u,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,s)}catch(o){this._handleError(o)}}_handleError(u){if(r.isFatalError(this._settings,u))throw u}_handleEntry(u,s){let o=u.path;s!==void 0&&(u.path=r.joinPathSegments(s,u.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,u)&&this._pushToStorage(u),u.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(o,s===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}};e.default=i}),_C=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=vC(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}),EC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=qa(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,u){return i!=null?i:u}};e.default=n}),Wa=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=gC(),r=yC(),n=_C(),i=EC();e.Settings=i.default;function u(c,p,l){if(typeof p=="function"){new t.default(c,a()).read(p);return}new t.default(c,a(p)).read(l)}e.walk=u;function s(c,p){let l=a(p);return new n.default(c,l).read()}e.walkSync=s;function o(c,p){let l=a(p);return new r.default(c,l).read()}e.walkStream=o;function a(c={}){return c instanceof i.default?c:new i.default(c)}}),Ya=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=jr(),n=Gt(),i=class{constructor(u){this._settings=u,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return t.resolve(this._settings.cwd,u)}_makeEntry(u,s){let o={name:s,path:s,dirent:n.fs.createDirentFromStats(s,u)};return this._settings.stats&&(o.stats=u),o}_isFatalError(u){return!n.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}};e.default=i}),ch=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=jr(),n=Wa(),i=Ya(),u=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let a=s.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],s[p],o).then(h=>{h!==null&&o.entryFilter(h)&&c.push(h),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(s,o,a){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,a)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};e.default=u}),SC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Wa(),r=Ya(),n=ch(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(u,s){return new Promise((o,a)=>{this._walkAsync(u,s,(c,p)=>{c===null?o(p):a(c)})})}async static(u,s){let o=[],a=this._readerStream.static(u,s);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};e.default=i}),AC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Gt(),r=class{constructor(n,i,u){this._patterns=n,this._settings=i,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let n=t.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let u=this._getPatternSegments(i),s=this._splitSegmentsIntoSections(u);this._storage.push({complete:s.length<=1,pattern:i,segments:u,sections:s})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(i=>t.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:t.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}),bC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=AC(),r=class extends t.default{match(n){let i=n.split("/"),u=i.length,s=this._storage.filter(o=>!o.complete||o.segments.length>u);for(let o of s){let a=o.sections[0];if(!o.complete&&u>a.length||i.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};e.default=r}),xC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Gt(),r=bC(),n=class{constructor(i,u){this._settings=i,this._micromatchOptions=u}getFilter(i,u,s){let o=this._getMatcher(u),a=this._getNegativePatternsRe(s);return c=>this._filter(i,c,o,a)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let u=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(u,this._micromatchOptions)}_filter(i,u,s,o){if(this._isSkippedByDeep(i,u.path)||this._isSkippedSymbolicLink(u))return!1;let a=t.path.removeLeadingDotSegment(u.path);return this._isSkippedByPositivePatterns(a,s)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(i,u){return this._settings.deep===1/0?!1:this._getEntryLevel(i,u)>=this._settings.deep}_getEntryLevel(i,u){let s=u.split("/").length;if(i==="")return s;let o=i.split("/").length;return s-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,u){return!this._settings.baseNameMatch&&!u.match(i)}_isSkippedByNegativePatterns(i,u){return!t.pattern.matchAny(i,u)}};e.default=n}),DC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Gt(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let u=t.pattern.convertPatternsToRe(n,this._micromatchOptions),s=t.pattern.convertPatternsToRe(i,this._micromatchOptions);return o=>this._filter(o,u,s)}_filter(n,i,u){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,u))return!1;let s=this._settings.baseNameMatch?n.name:n.path,o=n.dirent.isDirectory(),a=this._isMatchToPatterns(s,i,o)&&!this._isMatchToPatterns(n.path,u,o);return this._settings.unique&&a&&this._createIndexRecord(n),a}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let u=t.path.makeAbsolute(this._settings.cwd,n);return t.pattern.matchAny(u,i)}_isMatchToPatterns(n,i,u){let s=t.path.removeLeadingDotSegment(n),o=t.pattern.matchAny(s,i);return!o&&u?t.pattern.matchAny(s+"/",i):o}};e.default=r}),wC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Gt(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}),CC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Gt(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}),Ka=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=xC(),n=DC(),i=wC(),u=CC(),s=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=s}),kC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=SC(),r=Ka(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){let u=this._getRootDirectory(i),s=this._getReaderOptions(i);return(await this.api(u,i,s)).map(o=>s.transform(o))}api(i,u,s){return u.dynamic?this._reader.dynamic(i,s):this._reader.static(u.patterns,s)}};e.default=n}),FC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=ch(),n=Ka(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(u){let s=this._getRootDirectory(u),o=this._getReaderOptions(u),a=this.api(s,u,o),c=new t.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(u,s,o){return s.dynamic?this._reader.dynamic(u,o):this._reader.static(s.patterns,o)}};e.default=i}),RC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=jr(),r=Wa(),n=Ya(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(u,s){return this._walkSync(u,s)}static(u,s){let o=[];for(let a of u){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(u,s,o){try{let a=this._getStat(u);return this._makeEntry(a,s)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(u){return this._statSync(u,this._fsStatSettings)}};e.default=i}),OC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=RC(),r=Ka(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){let u=this._getRootDirectory(i),s=this._getReaderOptions(i);return this.api(u,i,s).map(s.transform)}api(i,u,s){return u.dynamic?this._reader.dynamic(i,s):this._reader.static(u.patterns,s)}};e.default=n}),TC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs"),r=ae("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(u={}){this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(u,s){return u===void 0?s:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),u)}};e.default=i}),PC=U((e,t)=>{"use strict";H();var r=tC(),n=rC(),i=kC(),u=FC(),s=OC(),o=TC(),a=Gt();async function c(f,h){l(f);let m=p(f,i.default,h),v=await Promise.all(m);return a.array.flatten(v)}(function(f){function h(d,y){l(d);let D=p(d,s.default,y);return a.array.flatten(D)}f.sync=h;function m(d,y){l(d);let D=p(d,u.default,y);return a.stream.merge(D)}f.stream=m;function v(d,y){l(d);let D=n.transform([].concat(d)),g=new o.default(y);return r.generate(D,g)}f.generateTasks=v;function _(d,y){l(d);let D=new o.default(y);return a.pattern.isDynamicPattern(d,D)}f.isDynamicPattern=_;function E(d){return l(d),a.path.escape(d)}f.escapePath=E})(c||(c={}));function p(f,h,m){let v=n.transform([].concat(f)),_=new o.default(m),E=r.generate(v,_),d=new h(_);return E.map(d.read,d)}function l(f){if(![].concat(f).every(h=>a.string.isString(h)&&!a.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=c});H();H();function lh(e){return typeof e>"u"||e===null}function LC(e){return typeof e=="object"&&e!==null}function IC(e){return Array.isArray(e)?e:lh(e)?[]:[e]}function NC(e,t){var r,n,i,u;if(t)for(u=Object.keys(t),r=0,n=u.length;r<n;r+=1)i=u[r],e[i]=t[i];return e}function BC(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function MC(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var jC=lh,$C=LC,HC=IC,GC=BC,qC=MC,UC=NC,Te={isNothing:jC,isObject:$C,toArray:HC,repeat:GC,isNegativeZero:qC,extend:UC};function ph(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
88
88
 
89
- `+e.mark.snippet),i+" "+r):i}function ln(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=rh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ln.prototype=Object.create(Error.prototype);ln.prototype.constructor=ln;ln.prototype.toString=function(e){return this.name+": "+rh(this,e)};var Ye=ln;function wa(e,t,r,i,n){var u="",s="",o=Math.floor(n/2)-1;return i-t>o&&(u=" ... ",t=i-o+u.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:i-t+u.length}}function Ca(e,t){return Te.repeat(" ",t-e.length)+e}function DC(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],u,s=-1;u=r.exec(e.buffer);)n.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,n.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=wa(e.buffer,i[s-a],n[s-a],e.position-(i[s]-i[s-a]),l),o=Te.repeat(" ",t.indent)+Ca((e.line-a+1).toString(),p)+" | "+c.str+`
90
- `+o;for(c=wa(e.buffer,i[s],n[s],e.position,l),o+=Te.repeat(" ",t.indent)+Ca((e.line+1).toString(),p)+" | "+c.str+`
89
+ `+e.mark.snippet),n+" "+r):n}function ln(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ph(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ln.prototype=Object.create(Error.prototype);ln.prototype.constructor=ln;ln.prototype.toString=function(e){return this.name+": "+ph(this,e)};var Qe=ln;function Pa(e,t,r,n,i){var u="",s="",o=Math.floor(i/2)-1;return n-t>o&&(u=" ... ",t=n-o+u.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+u.length}}function La(e,t){return Te.repeat(" ",t-e.length)+e}function WC(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],u,s=-1;u=r.exec(e.buffer);)i.push(u.index),n.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=Pa(e.buffer,n[s-a],i[s-a],e.position-(n[s]-n[s-a]),l),o=Te.repeat(" ",t.indent)+La((e.line-a+1).toString(),p)+" | "+c.str+`
90
+ `+o;for(c=Pa(e.buffer,n[s],i[s],e.position,l),o+=Te.repeat(" ",t.indent)+La((e.line+1).toString(),p)+" | "+c.str+`
91
91
  `,o+=Te.repeat("-",t.indent+p+3+c.pos)+`^
92
- `,a=1;a<=t.linesAfter&&!(s+a>=n.length);a++)c=wa(e.buffer,i[s+a],n[s+a],e.position-(i[s]-i[s+a]),l),o+=Te.repeat(" ",t.indent)+Ca((e.line+a+1).toString(),p)+" | "+c.str+`
93
- `;return o.replace(/\n$/,"")}var xC=DC,wC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],CC=["scalar","sequence","mapping"];function kC(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function FC(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(wC.indexOf(r)===-1)throw new Ye('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=kC(t.styleAliases||null),CC.indexOf(this.kind)===-1)throw new Ye('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var je=FC;function Pd(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(u,s){u.tag===i.tag&&u.kind===i.kind&&u.multi===i.multi&&(n=s)}),r[n]=i}),r}function RC(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function Fa(e){return this.extend(e)}Fa.prototype.extend=function(e){var t=[],r=[];if(e instanceof je)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Ye("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(n){if(!(n instanceof je))throw new Ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new Ye("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new Ye("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof je))throw new Ye("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Fa.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Pd(i,"implicit"),i.compiledExplicit=Pd(i,"explicit"),i.compiledTypeMap=RC(i.compiledImplicit,i.compiledExplicit),i};var OC=Fa,TC=new je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),PC=new je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),LC=new je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),IC=new OC({explicit:[TC,PC,LC]});function NC(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function BC(){return null}function MC(e){return e===null}var jC=new je("tag:yaml.org,2002:null",{kind:"scalar",resolve:NC,construct:BC,predicate:MC,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $C(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function HC(e){return e==="true"||e==="True"||e==="TRUE"}function GC(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var qC=new je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$C,construct:HC,predicate:GC,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function UC(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function WC(e){return 48<=e&&e<=55}function KC(e){return 48<=e&&e<=57}function YC(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!UC(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!WC(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!KC(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function VC(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function QC(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Te.isNegativeZero(e)}var XC=new je("tag:yaml.org,2002:int",{kind:"scalar",resolve:YC,construct:VC,predicate:QC,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"]}}),JC=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ZC(e){return!(e===null||!JC.test(e)||e[e.length-1]==="_")}function zC(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var ek=/^[-+]?[0-9]+e/;function tk(e,t){var r;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(Te.isNegativeZero(e))return"-0.0";return r=e.toString(10),ek.test(r)?r.replace("e",".e"):r}function rk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Te.isNegativeZero(e))}var nk=new je("tag:yaml.org,2002:float",{kind:"scalar",resolve:ZC,construct:zC,predicate:rk,represent:tk,defaultStyle:"lowercase"}),ik=IC.extend({implicit:[jC,qC,XC,nk]}),ok=ik,nh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ih=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 sk(e){return e===null?!1:nh.exec(e)!==null||ih.exec(e)!==null}function ak(e){var t,r,i,n,u,s,o,a=0,c=null,p,l,f;if(t=nh.exec(e),t===null&&(t=ih.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function uk(e){return e.toISOString()}var ck=new je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:sk,construct:ak,instanceOf:Date,represent:uk});function lk(e){return e==="<<"||e===null}var pk=new je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lk}),Ha=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
94
- \r`;function fk(e){if(e===null)return!1;var t,r,i=0,n=e.length,u=Ha;for(r=0;r<n;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function dk(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,u=Ha,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function hk(e){var t="",r=0,i,n,u=e.length,s=Ha;for(i=0;i<u;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=u%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function mk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var yk=new je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fk,construct:dk,predicate:mk,represent:hk}),gk=Object.prototype.hasOwnProperty,vk=Object.prototype.toString;function _k(e){if(e===null)return!0;var t=[],r,i,n,u,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,vk.call(n)!=="[object Object]")return!1;for(u in n)if(gk.call(n,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function Ek(e){return e!==null?e:[]}var Sk=new je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_k,construct:Ek}),Ak=Object.prototype.toString;function bk(e){if(e===null)return!0;var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],Ak.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;u[t]=[n[0],i[n[0]]]}return!0}function Dk(e){if(e===null)return[];var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),u[t]=[n[0],i[n[0]]];return u}var xk=new je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bk,construct:Dk}),wk=Object.prototype.hasOwnProperty;function Ck(e){if(e===null)return!0;var t,r=e;for(t in r)if(wk.call(r,t)&&r[t]!==null)return!1;return!0}function kk(e){return e!==null?e:{}}var Fk=new je("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ck,construct:kk}),oh=ok.extend({implicit:[ck,pk],explicit:[yk,Sk,xk,Fk]}),$t=Object.prototype.hasOwnProperty,bi=1,sh=2,ah=3,Di=4,ka=1,Rk=2,Ld=3,Ok=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Tk=/[\x85\u2028\u2029]/,Pk=/[,\[\]\{\}]/,uh=/^(?:!|!!|![a-z\-]+!)$/i,ch=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Id(e){return Object.prototype.toString.call(e)}function mt(e){return e===10||e===13}function ar(e){return e===9||e===32}function Ve(e){return e===9||e===32||e===10||e===13}function Nr(e){return e===44||e===91||e===93||e===123||e===125}function Lk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Ik(e){return e===120?2:e===117?4:e===85?8:0}function Nk(e){return 48<=e&&e<=57?e-48:-1}function Nd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
95
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Bk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var lh=new Array(256),ph=new Array(256);for(sr=0;sr<256;sr++)lh[sr]=Nd(sr)?1:0,ph[sr]=Nd(sr);var sr;function Mk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||oh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 fh(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=xC(r),new Ye(t,r)}function me(e,t){throw fh(e,t)}function xi(e,t){e.onWarning&&e.onWarning.call(null,fh(e,t))}var Bd={YAML:function(e,t,r){var i,n,u;e.version!==null&&me(e,"duplication of %YAML directive"),r.length!==1&&me(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&me(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),u=parseInt(i[2],10),n!==1&&me(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=u<2,u!==1&&u!==2&&xi(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var i,n;r.length!==2&&me(e,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],uh.test(i)||me(e,"ill-formed tag handle (first argument) of the TAG directive"),$t.call(e.tagMap,i)&&me(e,'there is a previously declared suffix for "'+i+'" tag handle'),ch.test(n)||me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{me(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function jt(e,t,r,i){var n,u,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,u=o.length;n<u;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||me(e,"expected valid JSON character");else Ok.test(o)&&me(e,"the stream contains non-printable characters");e.result+=o}}function Md(e,t,r,i){var n,u,s,o;for(Te.isObject(r)||me(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)u=n[s],$t.call(t,u)||(t[u]=r[u],i[u]=!0)}function Br(e,t,r,i,n,u,s,o,a){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&me(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Id(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Id(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)Md(e,t,u[c],r);else Md(e,t,u,r);else!e.json&&!$t.call(r,n)&&$t.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,me(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[n]=u,delete r[n];return t}function Ga(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ke(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;ar(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(mt(n))for(Ga(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&xi(e,"deficient indentation"),i}function Ri(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ve(r)))}function qa(e,t){t===1?e.result+=" ":t>1&&(e.result+=Te.repeat(`
96
- `,t-1))}function jk(e,t,r){var i,n,u,s,o,a,c,p,l=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Ve(d)||Nr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Ve(n)||r&&Nr(n)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Ve(n)||r&&Nr(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Ve(i))break}else{if(e.position===e.lineStart&&Ri(e)||r&&Nr(d))break;if(mt(d))if(a=e.line,c=e.lineStart,p=e.lineIndent,ke(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(jt(e,u,s,!1),qa(e,e.line-a),u=s=e.position,o=!1),ar(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return jt(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function $k(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(jt(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else mt(r)?(jt(e,i,n,!0),qa(e,ke(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Ri(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function Hk(e,t){var r,i,n,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return jt(e,r,e.position,!0),e.position++,!0;if(o===92){if(jt(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),mt(o))ke(e,!1,t);else if(o<256&&lh[o])e.result+=ph[o],e.position++;else if((s=Ik(o))>0){for(n=s,u=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=Lk(o))>=0?u=(u<<4)+s:me(e,"expected hexadecimal character");e.result+=Bk(u),e.position++}else me(e,"unknown escape sequence");r=i=e.position}else mt(o)?(jt(e,r,i,!0),qa(e,ke(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ri(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function Gk(e,t){var r=!0,i,n,u,s=e.tag,o,a=e.anchor,c,p,l,f,d,m=Object.create(null),g,_,E,h;if(h=e.input.charCodeAt(e.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(ke(e,!0,t),h=e.input.charCodeAt(e.position),h===p)return e.position++,e.tag=s,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r?h===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),_=g=E=null,l=f=!1,h===63&&(c=e.input.charCodeAt(e.position+1),Ve(c)&&(l=f=!0,e.position++,ke(e,!0,t))),i=e.line,n=e.lineStart,u=e.position,Mr(e,t,bi,!1,!0),_=e.tag,g=e.result,ke(e,!0,t),h=e.input.charCodeAt(e.position),(f||e.line===i)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),ke(e,!0,t),Mr(e,t,bi,!1,!0),E=e.result),d?Br(e,o,m,_,g,E,i,n,u):l?o.push(Br(e,null,m,_,g,E,i,n,u)):o.push(g),ke(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function qk(e,t){var r,i,n=ka,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)ka===n?n=l===43?Ld:Rk:me(e,"repeat of a chomping mode identifier");else if((p=Nk(l))>=0)p===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?me(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(ar(l)){do l=e.input.charCodeAt(++e.position);while(ar(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!mt(l)&&l!==0)}for(;l!==0;){for(Ga(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),mt(l)){a++;continue}if(e.lineIndent<o){n===Ld?e.result+=Te.repeat(`
97
- `,u?1+a:a):n===ka&&u&&(e.result+=`
98
- `);break}for(i?ar(l)?(c=!0,e.result+=Te.repeat(`
92
+ `,a=1;a<=t.linesAfter&&!(s+a>=i.length);a++)c=Pa(e.buffer,n[s+a],i[s+a],e.position-(n[s]-n[s+a]),l),o+=Te.repeat(" ",t.indent)+La((e.line+a+1).toString(),p)+" | "+c.str+`
93
+ `;return o.replace(/\n$/,"")}var YC=WC,KC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],VC=["scalar","sequence","mapping"];function QC(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function XC(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(KC.indexOf(r)===-1)throw new Qe('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=QC(t.styleAliases||null),VC.indexOf(this.kind)===-1)throw new Qe('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var $e=XC;function Gd(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(u,s){u.tag===n.tag&&u.kind===n.kind&&u.multi===n.multi&&(i=s)}),r[i]=n}),r}function JC(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Na(e){return this.extend(e)}Na.prototype.extend=function(e){var t=[],r=[];if(e instanceof $e)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Qe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(i){if(!(i instanceof $e))throw new Qe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Qe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Qe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof $e))throw new Qe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Na.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Gd(n,"implicit"),n.compiledExplicit=Gd(n,"explicit"),n.compiledTypeMap=JC(n.compiledImplicit,n.compiledExplicit),n};var ZC=Na,zC=new $e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ek=new $e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),tk=new $e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),rk=new ZC({explicit:[zC,ek,tk]});function nk(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ik(){return null}function ok(e){return e===null}var sk=new $e("tag:yaml.org,2002:null",{kind:"scalar",resolve:nk,construct:ik,predicate:ok,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function ak(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function uk(e){return e==="true"||e==="True"||e==="TRUE"}function ck(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var lk=new $e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ak,construct:uk,predicate:ck,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function pk(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fk(e){return 48<=e&&e<=55}function dk(e){return 48<=e&&e<=57}function hk(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!pk(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!fk(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!dk(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function mk(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function gk(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Te.isNegativeZero(e)}var yk=new $e("tag:yaml.org,2002:int",{kind:"scalar",resolve:hk,construct:mk,predicate:gk,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"]}}),vk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _k(e){return!(e===null||!vk.test(e)||e[e.length-1]==="_")}function Ek(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Sk=/^[-+]?[0-9]+e/;function Ak(e,t){var r;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(Te.isNegativeZero(e))return"-0.0";return r=e.toString(10),Sk.test(r)?r.replace("e",".e"):r}function bk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Te.isNegativeZero(e))}var xk=new $e("tag:yaml.org,2002:float",{kind:"scalar",resolve:_k,construct:Ek,predicate:bk,represent:Ak,defaultStyle:"lowercase"}),Dk=rk.extend({implicit:[sk,lk,yk,xk]}),wk=Dk,fh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dh=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 Ck(e){return e===null?!1:fh.exec(e)!==null||dh.exec(e)!==null}function kk(e){var t,r,n,i,u,s,o,a=0,c=null,p,l,f;if(t=fh.exec(e),t===null&&(t=dh.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function Fk(e){return e.toISOString()}var Rk=new $e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ck,construct:kk,instanceOf:Date,represent:Fk});function Ok(e){return e==="<<"||e===null}var Tk=new $e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ok}),Va=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
94
+ \r`;function Pk(e){if(e===null)return!1;var t,r,n=0,i=e.length,u=Va;for(r=0;r<i;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function Lk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,u=Va,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function Ik(e){var t="",r=0,n,i,u=e.length,s=Va;for(n=0;n<u;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=u%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function Nk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Bk=new $e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pk,construct:Lk,predicate:Nk,represent:Ik}),Mk=Object.prototype.hasOwnProperty,jk=Object.prototype.toString;function $k(e){if(e===null)return!0;var t=[],r,n,i,u,s,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],s=!1,jk.call(i)!=="[object Object]")return!1;for(u in i)if(Mk.call(i,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function Hk(e){return e!==null?e:[]}var Gk=new $e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$k,construct:Hk}),qk=Object.prototype.toString;function Uk(e){if(e===null)return!0;var t,r,n,i,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],qk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;u[t]=[i[0],n[i[0]]]}return!0}function Wk(e){if(e===null)return[];var t,r,n,i,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),u[t]=[i[0],n[i[0]]];return u}var Yk=new $e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Uk,construct:Wk}),Kk=Object.prototype.hasOwnProperty;function Vk(e){if(e===null)return!0;var t,r=e;for(t in r)if(Kk.call(r,t)&&r[t]!==null)return!1;return!0}function Qk(e){return e!==null?e:{}}var Xk=new $e("tag:yaml.org,2002:set",{kind:"mapping",resolve:Vk,construct:Qk}),hh=wk.extend({implicit:[Rk,Tk],explicit:[Bk,Gk,Yk,Xk]}),Ht=Object.prototype.hasOwnProperty,wi=1,mh=2,gh=3,Ci=4,Ia=1,Jk=2,qd=3,Zk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zk=/[\x85\u2028\u2029]/,eF=/[,\[\]\{\}]/,yh=/^(?:!|!!|![a-z\-]+!)$/i,vh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ud(e){return Object.prototype.toString.call(e)}function gt(e){return e===10||e===13}function ar(e){return e===9||e===32}function Xe(e){return e===9||e===32||e===10||e===13}function Nr(e){return e===44||e===91||e===93||e===123||e===125}function tF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function rF(e){return e===120?2:e===117?4:e===85?8:0}function nF(e){return 48<=e&&e<=57?e-48:-1}function Wd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
95
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function iF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var _h=new Array(256),Eh=new Array(256);for(sr=0;sr<256;sr++)_h[sr]=Wd(sr)?1:0,Eh[sr]=Wd(sr);var sr;function oF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||hh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 Sh(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=YC(r),new Qe(t,r)}function me(e,t){throw Sh(e,t)}function ki(e,t){e.onWarning&&e.onWarning.call(null,Sh(e,t))}var Yd={YAML:function(e,t,r){var n,i,u;e.version!==null&&me(e,"duplication of %YAML directive"),r.length!==1&&me(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&me(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),u=parseInt(n[2],10),i!==1&&me(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=u<2,u!==1&&u!==2&&ki(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;r.length!==2&&me(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],yh.test(n)||me(e,"ill-formed tag handle (first argument) of the TAG directive"),Ht.call(e.tagMap,n)&&me(e,'there is a previously declared suffix for "'+n+'" tag handle'),vh.test(i)||me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{me(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function $t(e,t,r,n){var i,u,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,u=o.length;i<u;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||me(e,"expected valid JSON character");else Zk.test(o)&&me(e,"the stream contains non-printable characters");e.result+=o}}function Kd(e,t,r,n){var i,u,s,o;for(Te.isObject(r)||me(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,o=i.length;s<o;s+=1)u=i[s],Ht.call(t,u)||(t[u]=r[u],n[u]=!0)}function Br(e,t,r,n,i,u,s,o,a){var c,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,p=i.length;c<p;c+=1)Array.isArray(i[c])&&me(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ud(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Ud(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)Kd(e,t,u[c],r);else Kd(e,t,u,r);else!e.json&&!Ht.call(r,i)&&Ht.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,me(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[i]=u,delete r[i];return t}function Qa(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ke(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ar(i);)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(gt(i))for(Qa(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ki(e,"deficient indentation"),n}function Pi(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Xe(r)))}function Xa(e,t){t===1?e.result+=" ":t>1&&(e.result+=Te.repeat(`
96
+ `,t-1))}function sF(e,t,r){var n,i,u,s,o,a,c,p,l=e.kind,f=e.result,h;if(h=e.input.charCodeAt(e.position),Xe(h)||Nr(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Xe(i)||r&&Nr(i)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Xe(i)||r&&Nr(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Xe(n))break}else{if(e.position===e.lineStart&&Pi(e)||r&&Nr(h))break;if(gt(h))if(a=e.line,c=e.lineStart,p=e.lineIndent,ke(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&($t(e,u,s,!1),Xa(e,e.line-a),u=s=e.position,o=!1),ar(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return $t(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function aF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if($t(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else gt(r)?($t(e,n,i,!0),Xa(e,ke(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Pi(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function uF(e,t){var r,n,i,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return $t(e,r,e.position,!0),e.position++,!0;if(o===92){if($t(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),gt(o))ke(e,!1,t);else if(o<256&&_h[o])e.result+=Eh[o],e.position++;else if((s=rF(o))>0){for(i=s,u=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=tF(o))>=0?u=(u<<4)+s:me(e,"expected hexadecimal character");e.result+=iF(u),e.position++}else me(e,"unknown escape sequence");r=n=e.position}else gt(o)?($t(e,r,n,!0),Xa(e,ke(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Pi(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function cF(e,t){var r=!0,n,i,u,s=e.tag,o,a=e.anchor,c,p,l,f,h,m=Object.create(null),v,_,E,d;if(d=e.input.charCodeAt(e.position),d===91)p=93,h=!1,o=[];else if(d===123)p=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);d!==0;){if(ke(e,!0,t),d=e.input.charCodeAt(e.position),d===p)return e.position++,e.tag=s,e.anchor=a,e.kind=h?"mapping":"sequence",e.result=o,!0;r?d===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),_=v=E=null,l=f=!1,d===63&&(c=e.input.charCodeAt(e.position+1),Xe(c)&&(l=f=!0,e.position++,ke(e,!0,t))),n=e.line,i=e.lineStart,u=e.position,Mr(e,t,wi,!1,!0),_=e.tag,v=e.result,ke(e,!0,t),d=e.input.charCodeAt(e.position),(f||e.line===n)&&d===58&&(l=!0,d=e.input.charCodeAt(++e.position),ke(e,!0,t),Mr(e,t,wi,!1,!0),E=e.result),h?Br(e,o,m,_,v,E,n,i,u):l?o.push(Br(e,null,m,_,v,E,n,i,u)):o.push(v),ke(e,!0,t),d=e.input.charCodeAt(e.position),d===44?(r=!0,d=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function lF(e,t){var r,n,i=Ia,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Ia===i?i=l===43?qd:Jk:me(e,"repeat of a chomping mode identifier");else if((p=nF(l))>=0)p===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?me(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(ar(l)){do l=e.input.charCodeAt(++e.position);while(ar(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!gt(l)&&l!==0)}for(;l!==0;){for(Qa(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),gt(l)){a++;continue}if(e.lineIndent<o){i===qd?e.result+=Te.repeat(`
97
+ `,u?1+a:a):i===Ia&&u&&(e.result+=`
98
+ `);break}for(n?ar(l)?(c=!0,e.result+=Te.repeat(`
99
99
  `,u?1+a:a)):c?(c=!1,e.result+=Te.repeat(`
100
100
  `,a+1)):a===0?u&&(e.result+=" "):e.result+=Te.repeat(`
101
101
  `,a):e.result+=Te.repeat(`
102
- `,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!mt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);jt(e,r,e.position,!1)}return!0}function jd(e,t){var r,i=e.tag,n=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ve(s))));){if(o=!0,e.position++,ke(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Mr(e,t,ah,!1,!0),u.push(e.result),ke(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=u,!0):!1}function Uk(e,t,r){var i,n,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),d=null,m=null,g=null,_=!1,E=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),h=e.input.charCodeAt(e.position);h!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),u=e.line,(h===63||h===58)&&Ve(i))h===63?(_&&(Br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!0,n=!0):_?(_=!1,n=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,h=i;else{if(s=e.line,o=e.lineStart,a=e.position,!Mr(e,r,sh,!1,!0))break;if(e.line===u){for(h=e.input.charCodeAt(e.position);ar(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),Ve(h)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!1,n=!1,d=e.tag,m=e.result;else if(E)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Mr(e,t,Di,!0,n)&&(_?m=e.result:g=e.result),_||(Br(e,l,f,d,m,g,s,o,a),d=m=g=null),ke(e,!0,-1),h=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&h!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&Br(e,l,f,d,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function Wk(e){var t,r=!1,i=!1,n,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&me(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ve(s);)s===33&&(i?me(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),uh.test(n)||me(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),Pk.test(u)&&me(e,"tag suffix cannot contain flow indicator characters")}u&&!ch.test(u)&&me(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{me(e,"tag name is malformed: "+u)}return r?e.tag=u:$t.call(e.tagMap,n)?e.tag=e.tagMap[n]+u:n==="!"?e.tag="!"+u:n==="!!"?e.tag="tag:yaml.org,2002:"+u:me(e,'undeclared tag handle "'+n+'"'),!0}function Kk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ve(r)&&!Nr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Yk(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Ve(i)&&!Nr(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),$t.call(e.anchorMap,r)||me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ke(e,!0,-1),!0}function Mr(e,t,r,i,n){var u,s,o,a=1,c=!1,p=!1,l,f,d,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=Di===r||ah===r,i&&ke(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;Wk(e)||Kk(e);)ke(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||n),(a===1||Di===r)&&(bi===r||sh===r?g=t:g=t+1,_=e.position-e.lineStart,a===1?o&&(jd(e,_)||Uk(e,_,g))||Gk(e,g)?p=!0:(s&&qk(e,g)||$k(e,g)||Hk(e,g)?p=!0:Yk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):jk(e,g,bi===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&jd(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if($t.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Vk(e){var t=e.position,r,i,n,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(ke(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ve(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&me(e,"directive name must not be less than one character in length");s!==0;){for(;ar(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!mt(s));break}if(mt(s))break;for(r=e.position;s!==0&&!Ve(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&Ga(e),$t.call(Bd,i)?Bd[i](e,i,n):xi(e,'unknown document directive "'+i+'"')}if(ke(e,!0,-1),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,ke(e,!0,-1)):u&&me(e,"directives end mark is expected"),Mr(e,e.lineIndent-1,Di,!1,!0),ke(e,!0,-1),e.checkLineBreaks&&Tk.test(e.input.slice(t,e.position))&&xi(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ri(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ke(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function dh(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
103
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Mk(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Vk(r);return r.documents}function Qk(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=dh(e,r);if(typeof t!="function")return i;for(var n=0,u=i.length;n<u;n+=1)t(i[n])}function Xk(e,t){var r=dh(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ye("expected a single document in the stream, but found more")}}var Jk=Qk,Zk=Xk,hh={loadAll:Jk,load:Zk},mh=Object.prototype.toString,yh=Object.prototype.hasOwnProperty,Ua=65279,zk=9,pn=10,eF=13,tF=32,rF=33,nF=34,Ra=35,iF=37,oF=38,sF=39,aF=42,gh=44,uF=45,wi=58,cF=61,lF=62,pF=63,fF=64,vh=91,_h=93,dF=96,Eh=123,hF=124,Sh=125,$e={};$e[0]="\\0";$e[7]="\\a";$e[8]="\\b";$e[9]="\\t";$e[10]="\\n";$e[11]="\\v";$e[12]="\\f";$e[13]="\\r";$e[27]="\\e";$e[34]='\\"';$e[92]="\\\\";$e[133]="\\N";$e[160]="\\_";$e[8232]="\\L";$e[8233]="\\P";var mF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],yF=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function gF(e,t){var r,i,n,u,s,o,a;if(t===null)return{};for(r={},i=Object.keys(t),n=0,u=i.length;n<u;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&yh.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function vF(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Ye("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Te.repeat("0",i-t.length)+t}var _F=1,fn=2;function EF(e){this.schema=e.schema||oh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Te.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fn:_F,this.forceQuotes=e.forceQuotes||!1,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 $d(e,t){for(var r=Te.repeat(" ",t),i=0,n=-1,u="",s,o=e.length;i<o;)n=e.indexOf(`
104
- `,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
105
- `&&(u+=r),u+=s;return u}function Oa(e,t){return`
106
- `+Te.repeat(" ",e.indent*t)}function SF(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function Ci(e){return e===tF||e===zk}function dn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ua||65536<=e&&e<=1114111}function Hd(e){return dn(e)&&e!==Ua&&e!==eF&&e!==pn}function Gd(e,t,r){var i=Hd(e),n=i&&!Ci(e);return(r?i:i&&e!==gh&&e!==vh&&e!==_h&&e!==Eh&&e!==Sh)&&e!==Ra&&!(t===wi&&!n)||Hd(t)&&!Ci(t)&&e===Ra||t===wi&&n}function AF(e){return dn(e)&&e!==Ua&&!Ci(e)&&e!==uF&&e!==pF&&e!==wi&&e!==gh&&e!==vh&&e!==_h&&e!==Eh&&e!==Sh&&e!==Ra&&e!==oF&&e!==aF&&e!==rF&&e!==hF&&e!==cF&&e!==lF&&e!==sF&&e!==nF&&e!==iF&&e!==fF&&e!==dF}function bF(e){return!Ci(e)&&e!==wi}function cn(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Ah(e){var t=/^\n* /;return t.test(e)}var bh=1,Ta=2,Dh=3,xh=4,Ir=5;function DF(e,t,r,i,n,u,s,o){var a,c=0,p=null,l=!1,f=!1,d=i!==-1,m=-1,g=AF(cn(e,0))&&bF(cn(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=cn(e,a),!dn(c))return Ir;g=g&&Gd(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=cn(e,a),c===pn)l=!0,d&&(f=f||a-m-1>i&&e[m+1]!==" ",m=a);else if(!dn(c))return Ir;g=g&&Gd(c,p,o),p=c}f=f||d&&a-m-1>i&&e[m+1]!==" "}return!l&&!f?g&&!s&&!n(e)?bh:u===fn?Ir:Ta:r>9&&Ah(e)?Ir:s?u===fn?Ir:Ta:f?xh:Dh}function xF(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===fn?'""':"''";if(!e.noCompatMode&&(mF.indexOf(t)!==-1||yF.test(t)))return e.quotingType===fn?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return SF(e,c)}switch(DF(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!i,n)){case bh:return t;case Ta:return"'"+t.replace(/'/g,"''")+"'";case Dh:return"|"+qd(t,e.indent)+Ud($d(t,u));case xh:return">"+qd(t,e.indent)+Ud($d(wF(t,s),u));case Ir:return'"'+CF(t)+'"';default:throw new Ye("impossible error: invalid scalar style")}}()}function qd(e,t){var r=Ah(e)?String(t):"",i=e[e.length-1]===`
107
- `,n=i&&(e[e.length-2]===`
102
+ `,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!gt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);$t(e,r,e.position,!1)}return!0}function Vd(e,t){var r,n=e.tag,i=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Xe(s))));){if(o=!0,e.position++,ke(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Mr(e,t,gh,!1,!0),u.push(e.result),ke(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=u,!0):!1}function pF(e,t,r){var n,i,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),h=null,m=null,v=null,_=!1,E=!1,d;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),d=e.input.charCodeAt(e.position);d!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),u=e.line,(d===63||d===58)&&Xe(n))d===63?(_&&(Br(e,l,f,h,m,null,s,o,a),h=m=v=null),E=!0,_=!0,i=!0):_?(_=!1,i=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,d=n;else{if(s=e.line,o=e.lineStart,a=e.position,!Mr(e,r,mh,!1,!0))break;if(e.line===u){for(d=e.input.charCodeAt(e.position);ar(d);)d=e.input.charCodeAt(++e.position);if(d===58)d=e.input.charCodeAt(++e.position),Xe(d)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Br(e,l,f,h,m,null,s,o,a),h=m=v=null),E=!0,_=!1,i=!1,h=e.tag,m=e.result;else if(E)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Mr(e,t,Ci,!0,i)&&(_?m=e.result:v=e.result),_||(Br(e,l,f,h,m,v,s,o,a),h=m=v=null),ke(e,!0,-1),d=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&d!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&Br(e,l,f,h,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function fF(e){var t,r=!1,n=!1,i,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&me(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Xe(s);)s===33&&(n?me(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),yh.test(i)||me(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),eF.test(u)&&me(e,"tag suffix cannot contain flow indicator characters")}u&&!vh.test(u)&&me(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{me(e,"tag name is malformed: "+u)}return r?e.tag=u:Ht.call(e.tagMap,i)?e.tag=e.tagMap[i]+u:i==="!"?e.tag="!"+u:i==="!!"?e.tag="tag:yaml.org,2002:"+u:me(e,'undeclared tag handle "'+i+'"'),!0}function dF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Xe(r)&&!Nr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function hF(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Xe(n)&&!Nr(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ht.call(e.anchorMap,r)||me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ke(e,!0,-1),!0}function Mr(e,t,r,n,i){var u,s,o,a=1,c=!1,p=!1,l,f,h,m,v,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=Ci===r||gh===r,n&&ke(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;fF(e)||dF(e);)ke(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||i),(a===1||Ci===r)&&(wi===r||mh===r?v=t:v=t+1,_=e.position-e.lineStart,a===1?o&&(Vd(e,_)||pF(e,_,v))||cF(e,v)?p=!0:(s&&lF(e,v)||aF(e,v)||uF(e,v)?p=!0:hF(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):sF(e,v,wi===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&Vd(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ht.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,h=e.typeMap.multi[e.kind||"fallback"],l=0,f=h.length;l<f;l+=1)if(e.tag.slice(0,h[l].tag.length)===h[l].tag){m=h[l];break}m||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function mF(e){var t=e.position,r,n,i,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(ke(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Xe(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&me(e,"directive name must not be less than one character in length");s!==0;){for(;ar(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!gt(s));break}if(gt(s))break;for(r=e.position;s!==0&&!Xe(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Qa(e),Ht.call(Yd,n)?Yd[n](e,n,i):ki(e,'unknown document directive "'+n+'"')}if(ke(e,!0,-1),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,ke(e,!0,-1)):u&&me(e,"directives end mark is expected"),Mr(e,e.lineIndent-1,Ci,!1,!0),ke(e,!0,-1),e.checkLineBreaks&&zk.test(e.input.slice(t,e.position))&&ki(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Pi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ke(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function Ah(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
103
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new oF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)mF(r);return r.documents}function gF(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Ah(e,r);if(typeof t!="function")return n;for(var i=0,u=n.length;i<u;i+=1)t(n[i])}function yF(e,t){var r=Ah(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Qe("expected a single document in the stream, but found more")}}var vF=gF,_F=yF,bh={loadAll:vF,load:_F},xh=Object.prototype.toString,Dh=Object.prototype.hasOwnProperty,Ja=65279,EF=9,pn=10,SF=13,AF=32,bF=33,xF=34,Ba=35,DF=37,wF=38,CF=39,kF=42,wh=44,FF=45,Fi=58,RF=61,OF=62,TF=63,PF=64,Ch=91,kh=93,LF=96,Fh=123,IF=124,Rh=125,He={};He[0]="\\0";He[7]="\\a";He[8]="\\b";He[9]="\\t";He[10]="\\n";He[11]="\\v";He[12]="\\f";He[13]="\\r";He[27]="\\e";He[34]='\\"';He[92]="\\\\";He[133]="\\N";He[160]="\\_";He[8232]="\\L";He[8233]="\\P";var NF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],BF=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function MF(e,t){var r,n,i,u,s,o,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,u=n.length;i<u;i+=1)s=n[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&Dh.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function jF(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Qe("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Te.repeat("0",n-t.length)+t}var $F=1,fn=2;function HF(e){this.schema=e.schema||hh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Te.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=MF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fn:$F,this.forceQuotes=e.forceQuotes||!1,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 Qd(e,t){for(var r=Te.repeat(" ",t),n=0,i=-1,u="",s,o=e.length;n<o;)i=e.indexOf(`
104
+ `,n),i===-1?(s=e.slice(n),n=o):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
105
+ `&&(u+=r),u+=s;return u}function Ma(e,t){return`
106
+ `+Te.repeat(" ",e.indent*t)}function GF(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Ri(e){return e===AF||e===EF}function dn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ja||65536<=e&&e<=1114111}function Xd(e){return dn(e)&&e!==Ja&&e!==SF&&e!==pn}function Jd(e,t,r){var n=Xd(e),i=n&&!Ri(e);return(r?n:n&&e!==wh&&e!==Ch&&e!==kh&&e!==Fh&&e!==Rh)&&e!==Ba&&!(t===Fi&&!i)||Xd(t)&&!Ri(t)&&e===Ba||t===Fi&&i}function qF(e){return dn(e)&&e!==Ja&&!Ri(e)&&e!==FF&&e!==TF&&e!==Fi&&e!==wh&&e!==Ch&&e!==kh&&e!==Fh&&e!==Rh&&e!==Ba&&e!==wF&&e!==kF&&e!==bF&&e!==IF&&e!==RF&&e!==OF&&e!==CF&&e!==xF&&e!==DF&&e!==PF&&e!==LF}function UF(e){return!Ri(e)&&e!==Fi}function cn(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Oh(e){var t=/^\n* /;return t.test(e)}var Th=1,ja=2,Ph=3,Lh=4,Ir=5;function WF(e,t,r,n,i,u,s,o){var a,c=0,p=null,l=!1,f=!1,h=n!==-1,m=-1,v=qF(cn(e,0))&&UF(cn(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=cn(e,a),!dn(c))return Ir;v=v&&Jd(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=cn(e,a),c===pn)l=!0,h&&(f=f||a-m-1>n&&e[m+1]!==" ",m=a);else if(!dn(c))return Ir;v=v&&Jd(c,p,o),p=c}f=f||h&&a-m-1>n&&e[m+1]!==" "}return!l&&!f?v&&!s&&!i(e)?Th:u===fn?Ir:ja:r>9&&Oh(e)?Ir:s?u===fn?Ir:ja:f?Lh:Ph}function YF(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===fn?'""':"''";if(!e.noCompatMode&&(NF.indexOf(t)!==-1||BF.test(t)))return e.quotingType===fn?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=n||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return GF(e,c)}switch(WF(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!n,i)){case Th:return t;case ja:return"'"+t.replace(/'/g,"''")+"'";case Ph:return"|"+Zd(t,e.indent)+zd(Qd(t,u));case Lh:return">"+Zd(t,e.indent)+zd(Qd(KF(t,s),u));case Ir:return'"'+VF(t)+'"';default:throw new Qe("impossible error: invalid scalar style")}}()}function Zd(e,t){var r=Oh(e)?String(t):"",n=e[e.length-1]===`
107
+ `,i=n&&(e[e.length-2]===`
108
108
  `||e===`
109
- `),u=n?"+":i?"":"-";return r+u+`
110
- `}function Ud(e){return e[e.length-1]===`
111
- `?e.slice(0,-1):e}function wF(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
112
- `);return c=c!==-1?c:e.length,r.lastIndex=c,Wd(e.slice(0,c),t)}(),n=e[0]===`
113
- `||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",i+=o+(!n&&!u&&a!==""?`
114
- `:"")+Wd(a,t),n=u}return i}function Wd(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,u,s=0,o=0,a="";i=r.exec(e);)o=i.index,o-n>t&&(u=s>n?s:o,a+=`
115
- `+e.slice(n,u),n=u+1),s=o;return a+=`
116
- `,e.length-n>t&&s>n?a+=e.slice(n,s)+`
117
- `+e.slice(s+1):a+=e.slice(n),a.slice(1)}function CF(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=cn(e,n),i=$e[r],!i&&dn(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||vF(r);return t}function kF(e,t,r){var i="",n=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(xt(e,t,o,!1,!1)||typeof o>"u"&&xt(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function Kd(e,t,r,i){var n="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(xt(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&xt(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Oa(e,t)),e.dump&&pn===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=u,e.dump=n||"[]"}function FF(e,t,r){var i="",n=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",i!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),xt(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),xt(e,t,c,!1,!1)&&(p+=e.dump,i+=p));e.tag=n,e.dump="{"+i+"}"}function RF(e,t,r,i){var n="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ye("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!i||n!=="")&&(f+=Oa(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),xt(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&pn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=Oa(e,t)),xt(e,t+1,p,!0,l)&&(e.dump&&pn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=u,e.dump=n||"{}"}function Yd(e,t,r){var i,n,u,s,o,a;for(n=r?e.explicitTypes:e.implicitTypes,u=0,s=n.length;u<s;u+=1)if(o=n[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,mh.call(o.represent)==="[object Function]")i=o.represent(t,a);else if(yh.call(o.represent,a))i=o.represent[a](t,a);else throw new Ye("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=i}return!0}return!1}function xt(e,t,r,i,n,u,s){e.tag=null,e.dump=r,Yd(e,r,!1)||Yd(e,r,!0);var o=mh.call(e.dump),a=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(RF(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(FF(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Kd(e,t-1,e.dump,n):Kd(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(kF(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&xF(e,e.dump,t,u,a);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new Ye("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function OF(e,t){var r=[],i=[],n,u;for(Pa(e,r,i),n=0,u=i.length;n<u;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(u)}function Pa(e,t,r){var i,n,u;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,u=e.length;n<u;n+=1)Pa(e[n],t,r);else for(i=Object.keys(e),n=0,u=i.length;n<u;n+=1)Pa(e[i[n]],t,r)}function TF(e,t){t=t||{};var r=new EF(t);r.noRefs||OF(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),xt(r,0,i,!0,!0)?r.dump+`
118
- `:""}var PF=TF,LF={dump:PF};function Wa(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.")}}var _2=hh.load,E2=hh.loadAll,S2=LF.dump;var A2=Wa("safeLoad","load"),b2=Wa("safeLoadAll","loadAll"),D2=Wa("safeDump","dump");var x2=Mt(fC());j();var kh=Ae(require("os"),1),IF=U((e,t)=>{H(),t.exports=u,u.sync=s;var r=ae("fs");function i(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function n(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:i(a,c)}function u(o,a,c){r.stat(o,function(p,l){c(p,p?!1:n(l,o,a))})}function s(o,a){return n(r.statSync(o),o,a)}}),NF=U((e,t)=>{H(),t.exports=i,i.sync=n;var r=ae("fs");function i(o,a,c){r.stat(o,function(p,l){c(p,p?!1:u(l,a))})}function n(o,a){return u(r.statSync(o),a)}function u(o,a){return o.isFile()&&s(o,a)}function s(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),d=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),g=parseInt("010",8),_=parseInt("001",8),E=m|g,h=c&_||c&g&&l===d||c&m&&p===f||c&E&&f===0;return h}}),BF=U((e,t)=>{H();var r=ae("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=IF():i=NF(),t.exports=n,n.sync=u;function n(s,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){n(s,o||{},function(l,f){l?p(l):c(f)})})}i(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function u(s,o){try{return i.sync(s,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),MF=U((e,t)=>{H();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=ae("path"),n=r?";":":",u=BF(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||n,d=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:d,pathExt:m,pathExtExe:g}=o(p,l),_=[],E=v=>new Promise((x,y)=>{if(v===d.length)return l.all&&_.length?x(_):y(s(p));let A=d[v],b=/^".*"$/.test(A)?A.slice(1,-1):A,k=i.join(b,p),D=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+k:k;x(h(D,v,0))}),h=(v,x,y)=>new Promise((A,b)=>{if(y===m.length)return A(E(x+1));let k=m[y];u(v+k,{pathExt:g},(D,F)=>{if(!D&&F)if(l.all)_.push(v+k);else return A(v+k);return A(h(v,x,y+1))})});return f?E(0).then(v=>f(null,v),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:d,pathExtExe:m}=o(p,l),g=[];for(let _=0;_<f.length;_++){let E=f[_],h=/^".*"$/.test(E)?E.slice(1,-1):E,v=i.join(h,p),x=!h&&/^\.[\\\/]/.test(p)?p.slice(0,2)+v:v;for(let y=0;y<d.length;y++){let A=x+d[y];try{if(u.sync(A,{pathExt:m}))if(l.all)g.push(A);else return A}catch{}}}if(l.all&&g.length)return g;if(l.nothrow)return null;throw s(p)};t.exports=a,a.sync=c}),wh=U((e,t)=>{"use strict";H();var r=(i={})=>{let n=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}),jF=U((e,t)=>{"use strict";H();var r=ae("path"),i=MF(),n=wh();function u(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let d;try{d=i.sync(o.command,{path:c[n({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return d&&(d=r.resolve(l?o.options.cwd:"",d)),d}function s(o){return u(o)||u(o,!0)}t.exports=s}),$F=U((e,t)=>{"use strict";H();var r=/([()\][%!^"`<>&|;, *?])/g;function i(u){return u=u.replace(r,"^$1"),u}function n(u,s){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(r,"^$1"),s&&(u=u.replace(r,"^$1")),u}t.exports.command=i,t.exports.argument=n}),HF=U((e,t)=>{"use strict";H(),t.exports=/^#!(.*)/}),GF=U((e,t)=>{"use strict";H();var r=HF();t.exports=(i="")=>{let n=i.match(r);if(!n)return null;let[u,s]=n[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),qF=U((e,t)=>{"use strict";H();var r=ae("fs"),i=GF();function n(u){let s=Buffer.alloc(150),o;try{o=r.openSync(u,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return i(s.toString())}t.exports=n}),UF=U((e,t)=>{"use strict";H();var r=ae("path"),i=jF(),n=$F(),u=qF(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=i(f);let d=f.file&&u(f.file);return d?(f.args.unshift(f.file),f.command=d,i(f)):f.file}function p(f){if(!s)return f;let d=c(f),m=!o.test(d);if(f.options.forceShell||m){let g=a.test(d);f.command=r.normalize(f.command),f.command=n.command(f.command),f.args=f.args.map(E=>n.argument(E,g));let _=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${_}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,d,m){d&&!Array.isArray(d)&&(m=d,d=null),d=d?d.slice(0):[],m=Object.assign({},m);let g={command:f,args:d,options:m,file:void 0,original:{command:f,args:d}};return m.shell?g:p(g)}t.exports=l}),WF=U((e,t)=>{"use strict";H();var r=process.platform==="win32";function i(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function n(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=u(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function u(o,a){return r&&o===1&&!a.file?i(a.original,"spawn"):null}function s(o,a){return r&&o===1&&!a.file?i(a.original,"spawnSync"):null}t.exports={hookChildProcess:n,verifyENOENT:u,verifyENOENTSync:s,notFoundError:i}}),KF=U((e,t)=>{"use strict";H();var r=ae("child_process"),i=UF(),n=WF();function u(o,a,c){let p=i(o,a,c),l=r.spawn(p.command,p.args,p.options);return n.hookChildProcess(l,p),l}function s(o,a,c){let p=i(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||n.verifyENOENTSync(l.status,p),l}t.exports=u,t.exports.spawn=u,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=n}),YF=U((e,t)=>{"use strict";H(),t.exports=r=>{let i=typeof r=="string"?`
109
+ `),u=i?"+":n?"":"-";return r+u+`
110
+ `}function zd(e){return e[e.length-1]===`
111
+ `?e.slice(0,-1):e}function KF(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
112
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,eh(e.slice(0,c),t)}(),i=e[0]===`
113
+ `||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",n+=o+(!i&&!u&&a!==""?`
114
+ `:"")+eh(a,t),i=u}return n}function eh(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,u,s=0,o=0,a="";n=r.exec(e);)o=n.index,o-i>t&&(u=s>i?s:o,a+=`
115
+ `+e.slice(i,u),i=u+1),s=o;return a+=`
116
+ `,e.length-i>t&&s>i?a+=e.slice(i,s)+`
117
+ `+e.slice(s+1):a+=e.slice(i),a.slice(1)}function VF(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=cn(e,i),n=He[r],!n&&dn(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||jF(r);return t}function QF(e,t,r){var n="",i=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(wt(e,t,o,!1,!1)||typeof o>"u"&&wt(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function th(e,t,r,n){var i="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(wt(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&wt(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ma(e,t)),e.dump&&pn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=u,e.dump=i||"[]"}function XF(e,t,r){var n="",i=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",n!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),wt(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wt(e,t,c,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}function JF(e,t,r,n){var i="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Qe("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!n||i!=="")&&(f+=Ma(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),wt(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&pn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=Ma(e,t)),wt(e,t+1,p,!0,l)&&(e.dump&&pn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=u,e.dump=i||"{}"}function rh(e,t,r){var n,i,u,s,o,a;for(i=r?e.explicitTypes:e.implicitTypes,u=0,s=i.length;u<s;u+=1)if(o=i[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,xh.call(o.represent)==="[object Function]")n=o.represent(t,a);else if(Dh.call(o.represent,a))n=o.represent[a](t,a);else throw new Qe("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function wt(e,t,r,n,i,u,s){e.tag=null,e.dump=r,rh(e,r,!1)||rh(e,r,!0);var o=xh.call(e.dump),a=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(JF(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(XF(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?th(e,t-1,e.dump,i):th(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(QF(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&YF(e,e.dump,t,u,a);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new Qe("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function ZF(e,t){var r=[],n=[],i,u;for($a(e,r,n),i=0,u=n.length;i<u;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(u)}function $a(e,t,r){var n,i,u;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,u=e.length;i<u;i+=1)$a(e[i],t,r);else for(n=Object.keys(e),i=0,u=n.length;i<u;i+=1)$a(e[n[i]],t,r)}function zF(e,t){t=t||{};var r=new HF(t);r.noRefs||ZF(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),wt(r,0,n,!0,!0)?r.dump+`
118
+ `:""}var eR=zF,tR={dump:eR};function Za(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.")}}var q2=bh.load,U2=bh.loadAll,W2=tR.dump;var Y2=Za("safeLoad","load"),K2=Za("safeLoadAll","loadAll"),V2=Za("safeDump","dump");var Q2=jt(PC());j();var Bh=Se(require("os"),1),rR=U((e,t)=>{H(),t.exports=u,u.sync=s;var r=ae("fs");function n(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function i(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:n(a,c)}function u(o,a,c){r.stat(o,function(p,l){c(p,p?!1:i(l,o,a))})}function s(o,a){return i(r.statSync(o),o,a)}}),nR=U((e,t)=>{H(),t.exports=n,n.sync=i;var r=ae("fs");function n(o,a,c){r.stat(o,function(p,l){c(p,p?!1:u(l,a))})}function i(o,a){return u(r.statSync(o),a)}function u(o,a){return o.isFile()&&s(o,a)}function s(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),h=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),v=parseInt("010",8),_=parseInt("001",8),E=m|v,d=c&_||c&v&&l===h||c&m&&p===f||c&E&&f===0;return d}}),iR=U((e,t)=>{H();var r=ae("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=rR():n=nR(),t.exports=i,i.sync=u;function i(s,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){i(s,o||{},function(l,f){l?p(l):c(f)})})}n(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function u(s,o){try{return n.sync(s,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),oR=U((e,t)=>{H();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=ae("path"),i=r?";":":",u=iR(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||i,h=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",v=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&v[0]!==""&&v.unshift(""),{pathEnv:h,pathExt:v,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:h,pathExt:m,pathExtExe:v}=o(p,l),_=[],E=y=>new Promise((D,g)=>{if(y===h.length)return l.all&&_.length?D(_):g(s(p));let A=h[y],b=/^".*"$/.test(A)?A.slice(1,-1):A,k=n.join(b,p),x=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+k:k;D(d(x,y,0))}),d=(y,D,g)=>new Promise((A,b)=>{if(g===m.length)return A(E(D+1));let k=m[g];u(y+k,{pathExt:v},(x,F)=>{if(!x&&F)if(l.all)_.push(y+k);else return A(y+k);return A(d(y,D,g+1))})});return f?E(0).then(y=>f(null,y),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:h,pathExtExe:m}=o(p,l),v=[];for(let _=0;_<f.length;_++){let E=f[_],d=/^".*"$/.test(E)?E.slice(1,-1):E,y=n.join(d,p),D=!d&&/^\.[\\\/]/.test(p)?p.slice(0,2)+y:y;for(let g=0;g<h.length;g++){let A=D+h[g];try{if(u.sync(A,{pathExt:m}))if(l.all)v.push(A);else return A}catch{}}}if(l.all&&v.length)return v;if(l.nothrow)return null;throw s(p)};t.exports=a,a.sync=c}),Ih=U((e,t)=>{"use strict";H();var r=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}),sR=U((e,t)=>{"use strict";H();var r=ae("path"),n=oR(),i=Ih();function u(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let h;try{h=n.sync(o.command,{path:c[i({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return h&&(h=r.resolve(l?o.options.cwd:"",h)),h}function s(o){return u(o)||u(o,!0)}t.exports=s}),aR=U((e,t)=>{"use strict";H();var r=/([()\][%!^"`<>&|;, *?])/g;function n(u){return u=u.replace(r,"^$1"),u}function i(u,s){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(r,"^$1"),s&&(u=u.replace(r,"^$1")),u}t.exports.command=n,t.exports.argument=i}),uR=U((e,t)=>{"use strict";H(),t.exports=/^#!(.*)/}),cR=U((e,t)=>{"use strict";H();var r=uR();t.exports=(n="")=>{let i=n.match(r);if(!i)return null;let[u,s]=i[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),lR=U((e,t)=>{"use strict";H();var r=ae("fs"),n=cR();function i(u){let s=Buffer.alloc(150),o;try{o=r.openSync(u,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return n(s.toString())}t.exports=i}),pR=U((e,t)=>{"use strict";H();var r=ae("path"),n=sR(),i=aR(),u=lR(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=n(f);let h=f.file&&u(f.file);return h?(f.args.unshift(f.file),f.command=h,n(f)):f.file}function p(f){if(!s)return f;let h=c(f),m=!o.test(h);if(f.options.forceShell||m){let v=a.test(h);f.command=r.normalize(f.command),f.command=i.command(f.command),f.args=f.args.map(E=>i.argument(E,v));let _=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${_}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,h,m){h&&!Array.isArray(h)&&(m=h,h=null),h=h?h.slice(0):[],m=Object.assign({},m);let v={command:f,args:h,options:m,file:void 0,original:{command:f,args:h}};return m.shell?v:p(v)}t.exports=l}),fR=U((e,t)=>{"use strict";H();var r=process.platform==="win32";function n(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function i(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=u(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function u(o,a){return r&&o===1&&!a.file?n(a.original,"spawn"):null}function s(o,a){return r&&o===1&&!a.file?n(a.original,"spawnSync"):null}t.exports={hookChildProcess:i,verifyENOENT:u,verifyENOENTSync:s,notFoundError:n}}),dR=U((e,t)=>{"use strict";H();var r=ae("child_process"),n=pR(),i=fR();function u(o,a,c){let p=n(o,a,c),l=r.spawn(p.command,p.args,p.options);return i.hookChildProcess(l,p),l}function s(o,a,c){let p=n(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||i.verifyENOENTSync(l.status,p),l}t.exports=u,t.exports.spawn=u,t.exports.sync=s,t.exports._parse=n,t.exports._enoent=i}),hR=U((e,t)=>{"use strict";H(),t.exports=r=>{let n=typeof r=="string"?`
119
119
  `:`
120
- `.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),VF=U((e,t)=>{"use strict";H();var r=ae("path"),i=wh(),n=u=>{u={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...u};let s,o=r.resolve(u.cwd),a=[];for(;s!==o;)a.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(u.cwd,u.execPath,"..");return a.push(c),a.concat(u.path).join(r.delimiter)};t.exports=n,t.exports.default=n,t.exports.env=u=>{u={env:process.env,...u};let s={...u.env},o=i({env:s});return u.path=s[o],s[o]=t.exports(u),s}}),QF=U((e,t)=>{"use strict";H();var r=(i,n)=>{for(let u of Reflect.ownKeys(n))Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(n,u));return i};t.exports=r,t.exports.default=r}),XF=U((e,t)=>{"use strict";H();var r=QF(),i=new WeakMap,n=(u,s={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let o,a=0,c=u.displayName||u.name||"<anonymous>",p=function(...l){if(i.set(p,++a),a===1)o=u.apply(this,l),u=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,u),i.set(p,a),p};t.exports=n,t.exports.default=n,t.exports.callCount=u=>{if(!i.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return i.get(u)}}),JF=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=t}),Ch=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var t=function(){let u=n-i+1;return Array.from({length:u},r)};e.getRealtimeSignals=t;var r=function(u,s){return{name:`SIGRT${s+1}`,number:i+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,n=64;e.SIGRTMAX=n}),ZF=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var t=ae("os"),r=JF(),i=Ch(),n=function(){let s=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...s].map(u)};e.getSignals=n;var u=function({name:s,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=t.constants,d=f!==void 0;return{name:s,number:d?f:o,description:a,supported:d,action:c,forced:p,standard:l}}}),zF=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var t=ae("os"),r=ZF(),i=Ch(),n=function(){return(0,r.getSignals)().reduce(u,{})},u=function(l,{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}){return{...l,[f]:{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}}},s=n();e.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=i.SIGRTMAX+1,d=Array.from({length:f},(m,g)=>a(g,l));return Object.assign({},...d)},a=function(l,f){let d=c(l,f);if(d===void 0)return{};let{name:m,description:g,supported:_,action:E,forced:h,standard:v}=d;return{[l]:{name:m,number:l,description:g,supported:_,action:E,forced:h,standard:v}}},c=function(l,f){let d=f.find(({name:m})=>t.constants.signals[m]===l);return d!==void 0?d:f.find(m=>m.number===l)},p=o();e.signalsByNumber=p}),eR=U((e,t)=>{"use strict";H();var{signalsByName:r}=zF(),i=({timedOut:u,timeout:s,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>u?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",n=({stdout:u,stderr:s,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:d,isCanceled:m,killed:g,parsed:{options:{timeout:_}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,h=a&&a.code,v=`Command ${i({timedOut:d,timeout:_,errorCode:h,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,x=Object.prototype.toString.call(a)==="[object Error]",y=x?`${v}
121
- ${a.message}`:v,A=[y,s,u].filter(Boolean).join(`
122
- `);return x?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=y,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=u,a.stderr=s,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(d),a.isCanceled=m,a.killed=g&&!d,a};t.exports=n}),tR=U((e,t)=>{"use strict";H();var r=["stdin","stdout","stderr"],i=u=>r.some(s=>u[s]!==void 0),n=u=>{if(!u)return;let{stdio:s}=u;if(s===void 0)return r.map(a=>u[a]);if(i(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(a,c)=>s[c])};t.exports=n,t.exports.node=u=>{let s=n(u);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),rR=U((e,t)=>{H(),t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),nR=U((e,t)=>{H();var r=global.process,i=function(h){return h&&typeof h=="object"&&typeof h.removeListener=="function"&&typeof h.emit=="function"&&typeof h.reallyExit=="function"&&typeof h.listeners=="function"&&typeof h.kill=="function"&&typeof h.pid=="number"&&typeof h.on=="function"};i(r)?(n=ae("assert"),u=rR(),s=/^win/i.test(r.platform),o=ae("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),t.exports=function(h,v){if(!i(global.process))return function(){};n.equal(typeof h,"function","a callback must be provided for exit handler"),f===!1&&d();var x="exit";v&&v.alwaysLast&&(x="afterexit");var y=function(){a.removeListener(x,h),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(x,h),y},c=function(){!f||!i(global.process)||(f=!1,u.forEach(function(h){try{r.removeListener(h,l[h])}catch{}}),r.emit=_,r.reallyExit=m,a.count-=1)},t.exports.unload=c,p=function(h,v,x){a.emitted[h]||(a.emitted[h]=!0,a.emit(h,v,x))},l={},u.forEach(function(h){l[h]=function(){if(i(global.process)){var v=r.listeners(h);v.length===a.count&&(c(),p("exit",null,h),p("afterexit",null,h),s&&h==="SIGHUP"&&(h="SIGINT"),r.kill(r.pid,h))}}}),t.exports.signals=function(){return u},f=!1,d=function(){f||!i(global.process)||(f=!0,a.count+=1,u=u.filter(function(h){try{return r.on(h,l[h]),!0}catch{return!1}}),r.emit=E,r.reallyExit=g)},t.exports.load=d,m=r.reallyExit,g=function(h){!i(global.process)||(r.exitCode=h||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},_=r.emit,E=function(h,v){if(h==="exit"&&i(global.process)){v!==void 0&&(r.exitCode=v);var x=_.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),x}else return _.apply(this,arguments)}):t.exports=function(){return function(){}};var n,u,s,o,a,c,p,l,f,d,m,g,_,E}),iR=U((e,t)=>{"use strict";H();var r=ae("os"),i=nR(),n=1e3*5,u=(g,_="SIGTERM",E={})=>{let h=g(_);return s(g,_,E,h),h},s=(g,_,E,h)=>{if(!o(_,E,h))return;let v=c(E),x=setTimeout(()=>{g("SIGKILL")},v);x.unref&&x.unref()},o=(g,{forceKillAfterTimeout:_},E)=>a(g)&&_!==!1&&E,a=g=>g===r.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return n;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},p=(g,_)=>{g.kill()&&(_.isCanceled=!0)},l=(g,_,E)=>{g.kill(_),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:_}))},f=(g,{timeout:_,killSignal:E="SIGTERM"},h)=>{if(_===0||_===void 0)return h;let v,x=new Promise((A,b)=>{v=setTimeout(()=>{l(g,E,b)},_)}),y=h.finally(()=>{clearTimeout(v)});return Promise.race([x,y])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},m=async(g,{cleanup:_,detached:E},h)=>{if(!_||E)return h;let v=i(()=>{g.kill()});return h.finally(()=>{v()})};t.exports={spawnedKill:u,spawnedCancel:p,setupTimeout:f,validateTimeout:d,setExitHandler:m}}),oR=U((e,t)=>{"use strict";H();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",t.exports=r}),sR=U((e,t)=>{"use strict";H();var{PassThrough:r}=ae("stream");t.exports=i=>{i={...i};let{array:n}=i,{encoding:u}=i,s=u==="buffer",o=!1;n?o=!(u||s):u=u||"utf8",s&&(u=null);let a=new r({objectMode:o});u&&a.setEncoding(u);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),aR=U((e,t)=>{"use strict";H();var{constants:r}=ae("buffer"),i=ae("stream"),{promisify:n}=ae("util"),u=sR(),s=n(i.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=u(p);return await new Promise((d,m)=>{let g=_=>{_&&f.getBufferedLength()<=r.MAX_LENGTH&&(_.bufferedData=f.getBufferedValue()),m(_)};(async()=>{try{await s(c,f),d()}catch(_){g(_)}})(),f.on("data",()=>{f.getBufferedLength()>l&&g(new o)})}),f.getBufferedValue()}t.exports=a,t.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),t.exports.array=(c,p)=>a(c,{...p,array:!0}),t.exports.MaxBufferError=o}),uR=U((e,t)=>{"use strict";H();var{PassThrough:r}=ae("stream");t.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=u,n.isEmpty=s,n.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),n;function u(a){return Array.isArray(a)?(a.forEach(u),this):(i.push(a),a.once("end",o.bind(null,a)),a.once("error",n.emit.bind(n,"error")),a.pipe(n,{end:!1}),this)}function s(){return i.length==0}function o(a){i=i.filter(function(c){return c!==a}),!i.length&&n.readable&&n.end()}}}),cR=U((e,t)=>{"use strict";H();var r=oR(),i=aR(),n=uR(),u=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let d=n();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(d){return d.bufferedData}}},a=(l,{encoding:f,buffer:d,maxBuffer:m})=>{if(!(!l||!d))return f?i(l,{encoding:f,maxBuffer:m}):i.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:d},{encoding:m,buffer:g,maxBuffer:_},E)=>{let h=a(l,{encoding:m,buffer:g,maxBuffer:_}),v=a(f,{encoding:m,buffer:g,maxBuffer:_}),x=a(d,{encoding:m,buffer:g,maxBuffer:_*2});try{return await Promise.all([E,h,v,x])}catch(y){return Promise.all([{error:y,signal:y.signal,timedOut:y.timedOut},o(l,h),o(f,v),o(d,x)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};t.exports={handleInput:u,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),lR=U((e,t)=>{"use strict";H();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,o)=>{for(let[a,c]of i){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,a,{...c,value:p})}return s},u=s=>new Promise((o,a)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{a(c)}),s.stdin&&s.stdin.on("error",c=>{a(c)})});t.exports={mergePromise:n,getSpawnedPromise:u}}),pR=U((e,t)=>{"use strict";H();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,u=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>u(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${f}`:l.push(f)}return l};t.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),fR=U((e,t)=>{"use strict";H();var r=ae("path"),i=ae("child_process"),n=KF(),u=YF(),s=VF(),o=XF(),a=eR(),c=tR(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:d,setExitHandler:m}=iR(),{handleInput:g,getSpawnedResult:_,makeAllStream:E,validateInputSync:h}=cR(),{mergePromise:v,getSpawnedPromise:x}=lR(),{joinCommand:y,parseCommand:A,getEscapedCommand:b}=pR(),k=1e3*1e3*100,D=({env:P,extendEnv:C,preferLocal:S,localDir:R,execPath:L})=>{let M=C?{...process.env,...P}:P;return S?s.env({env:M,cwd:R,execPath:L}):M},F=(P,C,S={})=>{let R=n._parse(P,C,S);return P=R.command,C=R.args,S=R.options,S={maxBuffer:k,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=D(S),S.stdio=c(S),process.platform==="win32"&&r.basename(P,".exe")==="cmd"&&C.unshift("/q"),{file:P,args:C,options:S,parsed:R}},w=(P,C,S)=>typeof C!="string"&&!Buffer.isBuffer(C)?S===void 0?void 0:"":P.stripFinalNewline?u(C):C,O=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);d(R.options);let B;try{B=i.spawn(R.file,R.args,R.options)}catch(pe){let ne=new i.ChildProcess,T=Promise.reject(a({error:pe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1}));return v(ne,T)}let Q=x(B),Z=f(B,R.options,Q),oe=m(B,R.options,Z),N={isCanceled:!1};B.kill=p.bind(null,B.kill.bind(B)),B.cancel=l.bind(null,B,N);let le=o(async()=>{let[{error:pe,exitCode:ne,signal:T,timedOut:I},$,K,Y]=await _(B,R.options,oe),z=w(R.options,$),X=w(R.options,K),ee=w(R.options,Y);if(pe||ne!==0||T!==null){let ie=a({error:pe,exitCode:ne,signal:T,stdout:z,stderr:X,all:ee,command:L,escapedCommand:M,parsed:R,timedOut:I,isCanceled:N.isCanceled,killed:B.killed});if(!R.options.reject)return ie;throw ie}return{command:L,escapedCommand:M,exitCode:0,stdout:z,stderr:X,all:ee,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(B,R.options.input),B.all=E(B,R.options),v(B,le)};t.exports=O,t.exports.sync=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);h(R.options);let B;try{B=i.spawnSync(R.file,R.args,R.options)}catch(oe){throw a({error:oe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1})}let Q=w(R.options,B.stdout,B.error),Z=w(R.options,B.stderr,B.error);if(B.error||B.status!==0||B.signal!==null){let oe=a({stdout:Q,stderr:Z,error:B.error,signal:B.signal,exitCode:B.status,command:L,escapedCommand:M,parsed:R,timedOut:B.error&&B.error.code==="ETIMEDOUT",isCanceled:!1,killed:B.signal!==null});if(!R.options.reject)return oe;throw oe}return{command:L,escapedCommand:M,exitCode:0,stdout:Q,stderr:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(P,C)=>{let[S,...R]=A(P);return O(S,R,C)},t.exports.commandSync=(P,C)=>{let[S,...R]=A(P);return O.sync(S,R,C)},t.exports.node=(P,C,S={})=>{C&&!Array.isArray(C)&&typeof C=="object"&&(S=C,C=[]);let R=c.node(S),L=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:M=process.execPath,nodeOptions:B=L}=S;return O(M,[...B,P,...Array.isArray(C)?C:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:R,shell:!1})}});H();var dR=Mt(fR());async function Ka(e){let t={cwd:kh.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,dR.default)(e,["--version"],t);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function Ya(){let[e,t,r]=await Promise.all([Ka("yarnpkg"),Ka("npm"),Ka("pnpm")]);return{yarn:e,pnpm:t,npm:r}}H();j();var Fh=Ae(require("fs-extra")),hR=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Oi(e){let t=Fh.default.readdirSync(e).filter(r=>!hR.includes(r)).filter(r=>!/\.iml$/.test(r));return{isEmpty:t.length===0,conflicts:t}}var Ja=Ae(require("inquirer"));function Rh(e){let t=Va.default.resolve(e),r=Va.default.basename(t),i=Qa.default.existsSync(t),n=Qa.default.lstatSync(t,{throwIfNoEntry:!1});if(n&&!n.isDirectory())return{valid:!1,root:t,projectName:r,error:`${Xa.default.dim(r)} is not a directory - please try a different location`};if(i){let{isEmpty:u,conflicts:s}=Oi(t);if(!u)return{valid:!1,root:t,projectName:r,error:`${Xa.default.dim(r)} has ${s.length} conflicting ${s.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:t,projectName:r}}async function Oh({directory:e}){let t=await Ja.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!e,default:"./my-turborepo",validate:i=>{let{valid:n,error:u}=Rh(i);return!n&&u?u:!0},filter:i=>i.trim()}),{projectDirectory:r=e}=t;return Rh(r)}async function Th({packageManager:e}){let t=await Ya(),r=await Ja.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!e||!Object.keys(t).includes(e),choices:["npm","pnpm","yarn"].map(n=>({name:n,value:n,disabled:u=>{var s;return(s=t==null?void 0:t[u])==null?void 0:s.available}}))}),{packageManagerInput:i=e}=r;return{name:i,version:t[i].version}}j();var tu=Ae(require("async-retry")),wt=Ae(require("chalk")),$r=Ae(require("fs-extra")),qt=Ae(require("path")),Vh=Ae(require("semver/functions/prerelease"));j();var Ti=Ae(require("got")),za=Ae(require("tar")),Ph=require("stream"),Lh=require("util"),Ih=require("path"),Nh=require("os"),hn=require("fs"),yR=(0,Lh.promisify)(Ph.Stream.pipeline);async function Za(e){try{return(await Ti.default.head(e)).statusCode===200}catch{return!1}}async function Bh(e,t){let[,r,i,n,u,...s]=e.pathname.split("/"),o=t?t.replace(/^\//,""):s.join("/");if(n===void 0||n===""&&u===void 0)try{let c=await(0,Ti.default)(`https://api.github.com/repos/${r}/${i}`),p=JSON.parse(c.body);return{username:r,name:i,branch:p.default_branch,filePath:o}}catch{return}let a=t?`${u}/${s.join("/")}`.replace(new RegExp(`/${o}|/$`),""):u;if(r&&i&&a&&n==="tree")return{username:r,name:i,branch:a,filePath:o}}function Mh({username:e,name:t,branch:r,filePath:i}){let n=`https://api.github.com/repos/${e}/${t}/contents`,u=`${i?`/${i}`:""}/package.json`;return Za(n+u+`?ref=${r}`)}function jh(e){try{let t=new URL(e);return Za(t.href)}catch{return Za(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(e)}`)}}async function $h(e,t){let r=(0,Ih.join)((0,Nh.tmpdir)(),`${t}.temp-${Date.now()}`);return await yR(Ti.default.stream(e),(0,hn.createWriteStream)(r)),r}async function Hh(e,{username:t,name:r,branch:i,filePath:n}){let u=await $h(`https://codeload.github.com/${t}/${r}/tar.gz/${i}`,"turbo-ct-example");await za.default.x({file:u,cwd:e,strip:n?n.split("/").length+1:1,filter:s=>s.startsWith(`${r}-${i.replace(/\//g,"-")}${n?`/${n}/`:"/"}`)}),await hn.promises.unlink(u)}async function Gh(e,t){let r=await $h("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await za.default.x({file:r,cwd:e,strip:2+t.split("/").length,filter:i=>i.includes(`turbo-main/examples/${t}/`)}),await hn.promises.unlink(r)}j();var eu=Ae(require("fs-extra")),Gt=require("child_process"),qh=Ae(require("path")),Uh=Ae(require("rimraf")),gR=`
120
+ `.charCodeAt(),i=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r}}),mR=U((e,t)=>{"use strict";H();var r=ae("path"),n=Ih(),i=u=>{u={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...u};let s,o=r.resolve(u.cwd),a=[];for(;s!==o;)a.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(u.cwd,u.execPath,"..");return a.push(c),a.concat(u.path).join(r.delimiter)};t.exports=i,t.exports.default=i,t.exports.env=u=>{u={env:process.env,...u};let s={...u.env},o=n({env:s});return u.path=s[o],s[o]=t.exports(u),s}}),gR=U((e,t)=>{"use strict";H();var r=(n,i)=>{for(let u of Reflect.ownKeys(i))Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(i,u));return n};t.exports=r,t.exports.default=r}),yR=U((e,t)=>{"use strict";H();var r=gR(),n=new WeakMap,i=(u,s={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let o,a=0,c=u.displayName||u.name||"<anonymous>",p=function(...l){if(n.set(p,++a),a===1)o=u.apply(this,l),u=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,u),n.set(p,a),p};t.exports=i,t.exports.default=i,t.exports.callCount=u=>{if(!n.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return n.get(u)}}),vR=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=t}),Nh=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var t=function(){let u=i-n+1;return Array.from({length:u},r)};e.getRealtimeSignals=t;var r=function(u,s){return{name:`SIGRT${s+1}`,number:n+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),_R=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var t=ae("os"),r=vR(),n=Nh(),i=function(){let s=(0,n.getRealtimeSignals)();return[...r.SIGNALS,...s].map(u)};e.getSignals=i;var u=function({name:s,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=t.constants,h=f!==void 0;return{name:s,number:h?f:o,description:a,supported:h,action:c,forced:p,standard:l}}}),ER=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var t=ae("os"),r=_R(),n=Nh(),i=function(){return(0,r.getSignals)().reduce(u,{})},u=function(l,{name:f,number:h,description:m,supported:v,action:_,forced:E,standard:d}){return{...l,[f]:{name:f,number:h,description:m,supported:v,action:_,forced:E,standard:d}}},s=i();e.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=n.SIGRTMAX+1,h=Array.from({length:f},(m,v)=>a(v,l));return Object.assign({},...h)},a=function(l,f){let h=c(l,f);if(h===void 0)return{};let{name:m,description:v,supported:_,action:E,forced:d,standard:y}=h;return{[l]:{name:m,number:l,description:v,supported:_,action:E,forced:d,standard:y}}},c=function(l,f){let h=f.find(({name:m})=>t.constants.signals[m]===l);return h!==void 0?h:f.find(m=>m.number===l)},p=o();e.signalsByNumber=p}),SR=U((e,t)=>{"use strict";H();var{signalsByName:r}=ER(),n=({timedOut:u,timeout:s,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>u?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",i=({stdout:u,stderr:s,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:h,isCanceled:m,killed:v,parsed:{options:{timeout:_}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,d=a&&a.code,y=`Command ${n({timedOut:h,timeout:_,errorCode:d,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,D=Object.prototype.toString.call(a)==="[object Error]",g=D?`${y}
121
+ ${a.message}`:y,A=[g,s,u].filter(Boolean).join(`
122
+ `);return D?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=g,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=u,a.stderr=s,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(h),a.isCanceled=m,a.killed=v&&!h,a};t.exports=i}),AR=U((e,t)=>{"use strict";H();var r=["stdin","stdout","stderr"],n=u=>r.some(s=>u[s]!==void 0),i=u=>{if(!u)return;let{stdio:s}=u;if(s===void 0)return r.map(a=>u[a]);if(n(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(a,c)=>s[c])};t.exports=i,t.exports.node=u=>{let s=i(u);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),bR=U((e,t)=>{H(),t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),xR=U((e,t)=>{H();var r=global.process,n=function(d){return d&&typeof d=="object"&&typeof d.removeListener=="function"&&typeof d.emit=="function"&&typeof d.reallyExit=="function"&&typeof d.listeners=="function"&&typeof d.kill=="function"&&typeof d.pid=="number"&&typeof d.on=="function"};n(r)?(i=ae("assert"),u=bR(),s=/^win/i.test(r.platform),o=ae("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),t.exports=function(d,y){if(!n(global.process))return function(){};i.equal(typeof d,"function","a callback must be provided for exit handler"),f===!1&&h();var D="exit";y&&y.alwaysLast&&(D="afterexit");var g=function(){a.removeListener(D,d),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(D,d),g},c=function(){!f||!n(global.process)||(f=!1,u.forEach(function(d){try{r.removeListener(d,l[d])}catch{}}),r.emit=_,r.reallyExit=m,a.count-=1)},t.exports.unload=c,p=function(d,y,D){a.emitted[d]||(a.emitted[d]=!0,a.emit(d,y,D))},l={},u.forEach(function(d){l[d]=function(){if(n(global.process)){var y=r.listeners(d);y.length===a.count&&(c(),p("exit",null,d),p("afterexit",null,d),s&&d==="SIGHUP"&&(d="SIGINT"),r.kill(r.pid,d))}}}),t.exports.signals=function(){return u},f=!1,h=function(){f||!n(global.process)||(f=!0,a.count+=1,u=u.filter(function(d){try{return r.on(d,l[d]),!0}catch{return!1}}),r.emit=E,r.reallyExit=v)},t.exports.load=h,m=r.reallyExit,v=function(d){!n(global.process)||(r.exitCode=d||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},_=r.emit,E=function(d,y){if(d==="exit"&&n(global.process)){y!==void 0&&(r.exitCode=y);var D=_.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),D}else return _.apply(this,arguments)}):t.exports=function(){return function(){}};var i,u,s,o,a,c,p,l,f,h,m,v,_,E}),DR=U((e,t)=>{"use strict";H();var r=ae("os"),n=xR(),i=1e3*5,u=(v,_="SIGTERM",E={})=>{let d=v(_);return s(v,_,E,d),d},s=(v,_,E,d)=>{if(!o(_,E,d))return;let y=c(E),D=setTimeout(()=>{v("SIGKILL")},y);D.unref&&D.unref()},o=(v,{forceKillAfterTimeout:_},E)=>a(v)&&_!==!1&&E,a=v=>v===r.constants.signals.SIGTERM||typeof v=="string"&&v.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:v=!0})=>{if(v===!0)return i;if(!Number.isFinite(v)||v<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${v}\` (${typeof v})`);return v},p=(v,_)=>{v.kill()&&(_.isCanceled=!0)},l=(v,_,E)=>{v.kill(_),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:_}))},f=(v,{timeout:_,killSignal:E="SIGTERM"},d)=>{if(_===0||_===void 0)return d;let y,D=new Promise((A,b)=>{y=setTimeout(()=>{l(v,E,b)},_)}),g=d.finally(()=>{clearTimeout(y)});return Promise.race([D,g])},h=({timeout:v})=>{if(v!==void 0&&(!Number.isFinite(v)||v<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${v}\` (${typeof v})`)},m=async(v,{cleanup:_,detached:E},d)=>{if(!_||E)return d;let y=n(()=>{v.kill()});return d.finally(()=>{y()})};t.exports={spawnedKill:u,spawnedCancel:p,setupTimeout:f,validateTimeout:h,setExitHandler:m}}),wR=U((e,t)=>{"use strict";H();var r=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";r.writable=n=>r(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",r.readable=n=>r(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",r.duplex=n=>r.writable(n)&&r.readable(n),r.transform=n=>r.duplex(n)&&typeof n._transform=="function",t.exports=r}),CR=U((e,t)=>{"use strict";H();var{PassThrough:r}=ae("stream");t.exports=n=>{n={...n};let{array:i}=n,{encoding:u}=n,s=u==="buffer",o=!1;i?o=!(u||s):u=u||"utf8",s&&(u=null);let a=new r({objectMode:o});u&&a.setEncoding(u);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>i?p:s?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),kR=U((e,t)=>{"use strict";H();var{constants:r}=ae("buffer"),n=ae("stream"),{promisify:i}=ae("util"),u=CR(),s=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=u(p);return await new Promise((h,m)=>{let v=_=>{_&&f.getBufferedLength()<=r.MAX_LENGTH&&(_.bufferedData=f.getBufferedValue()),m(_)};(async()=>{try{await s(c,f),h()}catch(_){v(_)}})(),f.on("data",()=>{f.getBufferedLength()>l&&v(new o)})}),f.getBufferedValue()}t.exports=a,t.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),t.exports.array=(c,p)=>a(c,{...p,array:!0}),t.exports.MaxBufferError=o}),FR=U((e,t)=>{"use strict";H();var{PassThrough:r}=ae("stream");t.exports=function(){var n=[],i=new r({objectMode:!0});return i.setMaxListeners(0),i.add=u,i.isEmpty=s,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),i;function u(a){return Array.isArray(a)?(a.forEach(u),this):(n.push(a),a.once("end",o.bind(null,a)),a.once("error",i.emit.bind(i,"error")),a.pipe(i,{end:!1}),this)}function s(){return n.length==0}function o(a){n=n.filter(function(c){return c!==a}),!n.length&&i.readable&&i.end()}}}),RR=U((e,t)=>{"use strict";H();var r=wR(),n=kR(),i=FR(),u=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let h=i();return l.stdout&&h.add(l.stdout),l.stderr&&h.add(l.stderr),h},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(h){return h.bufferedData}}},a=(l,{encoding:f,buffer:h,maxBuffer:m})=>{if(!(!l||!h))return f?n(l,{encoding:f,maxBuffer:m}):n.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:h},{encoding:m,buffer:v,maxBuffer:_},E)=>{let d=a(l,{encoding:m,buffer:v,maxBuffer:_}),y=a(f,{encoding:m,buffer:v,maxBuffer:_}),D=a(h,{encoding:m,buffer:v,maxBuffer:_*2});try{return await Promise.all([E,d,y,D])}catch(g){return Promise.all([{error:g,signal:g.signal,timedOut:g.timedOut},o(l,d),o(f,y),o(h,D)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};t.exports={handleInput:u,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),OR=U((e,t)=>{"use strict";H();var r=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),i=(s,o)=>{for(let[a,c]of n){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,a,{...c,value:p})}return s},u=s=>new Promise((o,a)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{a(c)}),s.stdin&&s.stdin.on("error",c=>{a(c)})});t.exports={mergePromise:i,getSpawnedPromise:u}}),TR=U((e,t)=>{"use strict";H();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],n=/^[\w.-]+$/,i=/"/g,u=p=>typeof p!="string"||n.test(p)?p:`"${p.replace(i,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>u(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let h=l[l.length-1];h&&h.endsWith("\\")?l[l.length-1]=`${h.slice(0,-1)} ${f}`:l.push(f)}return l};t.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),PR=U((e,t)=>{"use strict";H();var r=ae("path"),n=ae("child_process"),i=dR(),u=hR(),s=mR(),o=yR(),a=SR(),c=AR(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:h,setExitHandler:m}=DR(),{handleInput:v,getSpawnedResult:_,makeAllStream:E,validateInputSync:d}=RR(),{mergePromise:y,getSpawnedPromise:D}=OR(),{joinCommand:g,parseCommand:A,getEscapedCommand:b}=TR(),k=1e3*1e3*100,x=({env:P,extendEnv:C,preferLocal:S,localDir:R,execPath:L})=>{let M=C?{...process.env,...P}:P;return S?s.env({env:M,cwd:R,execPath:L}):M},F=(P,C,S={})=>{let R=i._parse(P,C,S);return P=R.command,C=R.args,S=R.options,S={maxBuffer:k,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=x(S),S.stdio=c(S),process.platform==="win32"&&r.basename(P,".exe")==="cmd"&&C.unshift("/q"),{file:P,args:C,options:S,parsed:R}},w=(P,C,S)=>typeof C!="string"&&!Buffer.isBuffer(C)?S===void 0?void 0:"":P.stripFinalNewline?u(C):C,O=(P,C,S)=>{let R=F(P,C,S),L=g(P,C),M=b(P,C);h(R.options);let B;try{B=n.spawn(R.file,R.args,R.options)}catch(pe){let ne=new n.ChildProcess,T=Promise.reject(a({error:pe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1}));return y(ne,T)}let Q=D(B),Z=f(B,R.options,Q),oe=m(B,R.options,Z),N={isCanceled:!1};B.kill=p.bind(null,B.kill.bind(B)),B.cancel=l.bind(null,B,N);let le=o(async()=>{let[{error:pe,exitCode:ne,signal:T,timedOut:I},$,Y,K]=await _(B,R.options,oe),z=w(R.options,$),J=w(R.options,Y),ee=w(R.options,K);if(pe||ne!==0||T!==null){let ie=a({error:pe,exitCode:ne,signal:T,stdout:z,stderr:J,all:ee,command:L,escapedCommand:M,parsed:R,timedOut:I,isCanceled:N.isCanceled,killed:B.killed});if(!R.options.reject)return ie;throw ie}return{command:L,escapedCommand:M,exitCode:0,stdout:z,stderr:J,all:ee,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return v(B,R.options.input),B.all=E(B,R.options),y(B,le)};t.exports=O,t.exports.sync=(P,C,S)=>{let R=F(P,C,S),L=g(P,C),M=b(P,C);d(R.options);let B;try{B=n.spawnSync(R.file,R.args,R.options)}catch(oe){throw a({error:oe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1})}let Q=w(R.options,B.stdout,B.error),Z=w(R.options,B.stderr,B.error);if(B.error||B.status!==0||B.signal!==null){let oe=a({stdout:Q,stderr:Z,error:B.error,signal:B.signal,exitCode:B.status,command:L,escapedCommand:M,parsed:R,timedOut:B.error&&B.error.code==="ETIMEDOUT",isCanceled:!1,killed:B.signal!==null});if(!R.options.reject)return oe;throw oe}return{command:L,escapedCommand:M,exitCode:0,stdout:Q,stderr:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(P,C)=>{let[S,...R]=A(P);return O(S,R,C)},t.exports.commandSync=(P,C)=>{let[S,...R]=A(P);return O.sync(S,R,C)},t.exports.node=(P,C,S={})=>{C&&!Array.isArray(C)&&typeof C=="object"&&(S=C,C=[]);let R=c.node(S),L=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:M=process.execPath,nodeOptions:B=L}=S;return O(M,[...B,P,...Array.isArray(C)?C:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:R,shell:!1})}});H();var LR=jt(PR());async function za(e){let t={cwd:Bh.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,LR.default)(e,["--version"],t);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function hn(){let[e,t,r]=await Promise.all([za("yarnpkg"),za("npm"),za("pnpm")]);return{yarn:e,pnpm:t,npm:r}}H();j();var eu=Se(require("path")),tu=Se(require("fs-extra")),ru=Se(require("chalk"));j();var Mh=Se(require("fs-extra")),IR=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Li(e){let t=Mh.default.readdirSync(e).filter(r=>!IR.includes(r)).filter(r=>!/\.iml$/.test(r));return{isEmpty:t.length===0,conflicts:t}}var nu=Se(require("inquirer"));function jh(e){let t=eu.default.resolve(e),r=eu.default.basename(t),n=tu.default.existsSync(t),i=tu.default.lstatSync(t,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:t,projectName:r,error:`${ru.default.dim(r)} is not a directory - please try a different location`};if(n){let{isEmpty:u,conflicts:s}=Li(t);if(!u)return{valid:!1,root:t,projectName:r,error:`${ru.default.dim(r)} has ${s.length} conflicting ${s.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:t,projectName:r}}async function $h({directory:e}){let t=await nu.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!e,default:"./my-turborepo",validate:n=>{let{valid:i,error:u}=jh(n);return!i&&u?u:!0},filter:n=>n.trim()}),{projectDirectory:r=e}=t;return jh(r)}async function Hh({packageManager:e,skipTransforms:t}){if(t)return;let r=await hn(),n=await nu.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!e||!Object.keys(r).includes(e),choices:["npm","pnpm","yarn"].map(u=>{var s;return{name:u,value:u,disabled:(s=r==null?void 0:r[u])!=null&&s.available?!1:"not installed"}})}),{packageManagerInput:i=e}=n;return{name:i,version:r[i].version}}j();var su=Se(require("async-retry")),Ct=Se(require("chalk")),Mi=Se(require("fs-extra")),$r=Se(require("path"));j();var Ii=Se(require("got")),ou=Se(require("tar")),Gh=require("stream"),qh=require("util"),Uh=require("path"),Wh=require("os"),mn=require("fs"),BR=(0,qh.promisify)(Gh.Stream.pipeline);async function iu(e){try{return(await Ii.default.head(e)).statusCode===200}catch{return!1}}async function Yh(e,t){let[,r,n,i,u,...s]=e.pathname.split("/"),o=t?t.replace(/^\//,""):s.join("/");if(i===void 0||i===""&&u===void 0)try{let c=await(0,Ii.default)(`https://api.github.com/repos/${r}/${n}`),p=JSON.parse(c.body);return{username:r,name:n,branch:p.default_branch,filePath:o}}catch{return}let a=t?`${u}/${s.join("/")}`.replace(new RegExp(`/${o}|/$`),""):u;if(r&&n&&a&&i==="tree")return{username:r,name:n,branch:a,filePath:o}}function Kh({username:e,name:t,branch:r,filePath:n}){let i=`https://api.github.com/repos/${e}/${t}/contents`,u=`${n?`/${n}`:""}/package.json`;return iu(i+u+`?ref=${r}`)}function Vh(e){try{let t=new URL(e);return iu(t.href)}catch{return iu(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(e)}`)}}async function Qh(e,t){let r=(0,Uh.join)((0,Wh.tmpdir)(),`${t}.temp-${Date.now()}`);return await BR(Ii.default.stream(e),(0,mn.createWriteStream)(r)),r}async function Xh(e,{username:t,name:r,branch:n,filePath:i}){let u=await Qh(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`,"turbo-ct-example");await ou.default.x({file:u,cwd:e,strip:i?i.split("/").length+1:1,filter:s=>s.startsWith(`${r}-${n.replace(/\//g,"-")}${i?`/${i}/`:"/"}`)}),await mn.promises.unlink(u)}async function Jh(e,t){let r=await Qh("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await ou.default.x({file:r,cwd:e,strip:2+t.split("/").length,filter:n=>n.includes(`turbo-main/examples/${t}/`)}),await mn.promises.unlink(r)}j();var Ni=Se(require("fs-extra"));async function Zh(e){try{return await Ni.default.access(e,(Ni.default.constants||Ni.default).W_OK),!0}catch{return!1}}j();var MR=new Set(["basic","default"]);function Bi(e){return MR.has(e)}var au=class extends Error{};async function zh({appPath:e,example:t,examplePath:r}){let n,i,u=Bi(t);try{i=new URL(t)}catch(E){E.code!=="ERR_INVALID_URL"&&(Pe(E),process.exit(1))}i?(i.origin!=="https://github.com"&&(Pe(`Invalid URL: ${Ct.default.red(`"${t}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),n=await Yh(i,r),n||(Pe(`Unable to fetch repository information from: ${Ct.default.red(`"${t}"`)}. Please fix the URL and try again.`),process.exit(1)),await Kh(n)||(Pe(`Could not locate the repository for ${Ct.default.red(`"${t}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await Vh(t)||(Pe(`Could not locate an example named ${Ct.default.red(`"${t}"`)}. It could be due to the following:
123
+ `,`1. Your spelling of example ${Ct.default.red(`"${t}"`)} might be incorrect.
124
+ `,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1));let s=$r.default.resolve(e);await Zh($r.default.dirname(s))||(Pe("The application path is not writable, please check folder permissions and try again."),Pe("It is likely you do not have write permissions for this folder."),process.exit(1));let o=$r.default.basename(s);try{await Mi.default.mkdir(s,{recursive:!0})}catch(E){Pe("Unable to create project directory"),console.error(E),process.exit(1)}let{isEmpty:a,conflicts:c}=Li(s);a||(Pe(`${Ct.default.dim(s)} has ${c.length} conflicting ${c.length===1?"file":"files"} - please try a different location`),process.exit(1));let p=process.cwd();process.chdir(s);let l=Sn("Downloading files...");try{n?(console.log(`
125
+ Downloading files from repo ${Ct.default.cyan(t)}. This might take a moment.`),console.log(),l.start(),await(0,su.default)(()=>Xh(s,n),{retries:3})):(console.log(`
126
+ Downloading files${u?"":` for example ${Ct.default.cyan(t)}`}. This might take a moment.`),console.log(),l.start(),await(0,su.default)(()=>Jh(s,t),{retries:3}))}catch(E){let d=function(y){return typeof y=="object"&&y!==null&&typeof y.message=="string"};var _=d;throw new au(d(E)?E.message:E+"")}finally{l.stop()}let f=$r.default.join(s,"package.json"),h=Mi.default.existsSync(f),m=[];if(h){let E;try{E=Mi.default.readJsonSync(f)}catch{}E&&m.push(...Object.keys(E.scripts||{}))}let v=e;return $r.default.join(p,o)===e&&(v=o),{cdPath:v,hasPackageJson:h,availableScripts:m,repoInfo:n}}j();var yt=require("child_process"),e0=Se(require("path")),t0=Se(require("rimraf")),r0=`
123
127
  # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
124
128
 
125
129
  # dependencies
@@ -144,22 +148,18 @@ yarn-error.log*
144
148
 
145
149
  # vercel
146
150
  .vercel
147
- `;function vR(){try{return(0,Gt.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"}),!0}catch{}return!1}function _R(){try{return(0,Gt.execSync)("hg --cwd . root",{stdio:"ignore"}),!0}catch{}return!1}function Wh(e){let t=!1;try{return(0,Gt.execSync)("git --version",{stdio:"ignore"}),vR()||_R()?!1:((0,Gt.execSync)("git init",{stdio:"ignore"}),t=!0,(0,Gt.execSync)("git checkout -b main",{stdio:"ignore"}),(0,Gt.execSync)("git add -A",{stdio:"ignore"}),(0,Gt.execSync)('git commit -m "Initial commit from create-turbo"',{stdio:"ignore"}),!0)}catch{if(t)try{Uh.default.sync(qh.default.join(e,".git"))}catch{}return!1}}function Kh(e){try{eu.default.existsSync(e)||eu.default.writeFileSync(e,gR)}catch{}}j();var Pi=Ae(require("fs-extra"));async function Yh(e){try{return await Pi.default.access(e,(Pi.default.constants||Pi.default).W_OK),!0}catch{return!1}}var ru=class extends Error{};async function Qh({appPath:e,projectName:t,example:r,examplePath:i}){var y;let n,u,s=r==="basic"||r==="default";try{u=new URL(r)}catch(A){A.code!=="ERR_INVALID_URL"&&(et(A),process.exit(1))}u?(u.origin!=="https://github.com"&&(et(`Invalid URL: ${wt.default.red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),n=await Bh(u,i),n||(et(`Found invalid GitHub URL: ${wt.default.red(`"${r}"`)}. Please fix the URL and try again.`),process.exit(1)),await Mh(n)||(et(`Could not locate the repository for ${wt.default.red(`"${r}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await jh(r)||(et(`Could not locate an example named ${wt.default.red(`"${r}"`)}. It could be due to the following:
148
- `,`1. Your spelling of example ${wt.default.red(`"${r}"`)} might be incorrect.
149
- `,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1));let o=qt.default.resolve(e);await Yh(qt.default.dirname(o))||(et("The application path is not writable, please check folder permissions and try again."),et("It is likely you do not have write permissions for this folder."),process.exit(1));let a=qt.default.basename(o);try{await $r.default.mkdir(o,{recursive:!0})}catch(A){et("Unable to create project directory"),console.error(A),process.exit(1)}let{isEmpty:c,conflicts:p}=Oi(o);c||(et(`${wt.default.dim(o)} has ${p.length} conflicting ${p.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o);let f=_n("Downloading files...");try{if(n){let A=n;console.log(`
150
- Downloading files from repo ${wt.default.cyan(r)}. This might take a moment.`),console.log(),f.start(),await(0,tu.default)(()=>Hh(o,A),{retries:3})}else console.log(`
151
- Downloading files${s?"":` for example ${wt.default.cyan(r)}`}. This might take a moment.`),console.log(),f.start(),await(0,tu.default)(()=>Gh(o,r),{retries:3})}catch(A){let b=function(k){return typeof k=="object"&&k!==null&&typeof k.message=="string"};var x=b;throw new ru(b(A)?A.message:A+"")}finally{f.stop()}let d=qt.default.join(o,"package.json"),m=qt.default.join(o,"meta.json"),g=qt.default.join(o,".gitignore"),_=$r.default.existsSync(d),E=n&&n.username==="vercel"&&n.name==="turbo",h=[];if(E||!n)try{$r.default.rmSync(m,{force:!0})}catch{}if(_){let A;try{A=$r.default.readJsonSync(d)}catch{}if(A){s&&(A.name=t),(0,Vh.default)(ur.version)!==null&&((y=A==null?void 0:A.devDependencies)==null?void 0:y.turbo)&&(A.devDependencies.turbo="canary");try{$r.default.writeJsonSync(d,A,{spaces:2})}catch{}h.push(...Object.keys(A.scripts||{}))}}Kh(g),Wh(o);let v=e;return qt.default.join(l,a)===e&&(v=a),{cdPath:v,hasPackageJson:_,availableScripts:h}}function Xh(e){if(e instanceof yt.ConvertError&&e.type!=="unknown")et(ze.default.red(e.message)),process.exit(1);else throw e}var Jh={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function nu(e,t,r){let{skipInstall:i}=r;console.log(ze.default.bold(cr(`
151
+ `,jR="git rev-parse --is-inside-work-tree",$R="hg --cwd . root";function HR(){try{return(0,yt.execSync)(jR,{stdio:"ignore"}),!0}catch{}return!1}function GR(){try{return(0,yt.execSync)($R,{stdio:"ignore"}),!0}catch{}return!1}function n0(e,t){let r=!1;try{return(0,yt.execSync)("git --version",{stdio:"ignore"}),HR()||GR()?!1:((0,yt.execSync)("git init",{stdio:"ignore"}),r=!0,(0,yt.execSync)("git checkout -b main",{stdio:"ignore"}),(0,yt.execSync)("git add -A",{stdio:"ignore"}),(0,yt.execSync)(`git commit -m "${t}"`,{stdio:"ignore"}),!0)}catch{if(r)try{t0.default.sync(e0.default.join(e,".git"))}catch{}return!1}}function uu(e){try{return(0,yt.execSync)("git add -A",{stdio:"ignore"}),(0,yt.execSync)(`git commit -m "${e}"`,{stdio:"ignore"}),!0}catch{return!1}}j();var i0=require("child_process"),cu=Se(require("dns")),o0=Se(require("url"));function qR(){if(process.env.https_proxy)return process.env.https_proxy;try{let e=(0,i0.execSync)("npm config get https-proxy").toString().trim();return e!=="null"?e:void 0}catch{return}}function s0(){return new Promise(e=>{cu.default.lookup("registry.yarnpkg.com",t=>{if(!t)return e(!0);let r=qR();if(!r)return e(!1);let{hostname:n}=o0.default.parse(r);if(!n)return e(!1);cu.default.lookup(n,i=>{e(i==null)})})})}j();j();var u0=Se(Fa()),a0={name:"package-manager"};async function c0(e){let{project:t,prompts:r}=e,{root:n,packageManager:i}=r;if(i&&t.packageManager!==i.name)await(0,u0.convert)({root:n,to:i.name,options:{skipInstall:!0}});else return{result:"not-applicable",...a0};return{result:"success",...a0}}j();var lu=Se(require("path")),gn=Se(require("fs-extra")),l0=Se(require("semver/functions/prerelease"));j();var at=class extends Error{constructor(r,n){var i,u;super(r);this.name="TransformError",this.transform=(i=n==null?void 0:n.transform)!=null?i:"unknown",this.fatal=(u=n==null?void 0:n.fatal)!=null?u:!0,Error.captureStackTrace(this,at)}};var ji={name:"official-starter"};async function p0(e){var a,c,p;let{prompts:t,example:r}=e,n=Bi(r.name);if(!(!r.repo||((a=r.repo)==null?void 0:a.username)==="vercel"&&((c=r.repo)==null?void 0:c.name)==="turbo"))return{result:"not-applicable",...ji};let u=lu.default.join(t.root,"package.json"),s=lu.default.join(t.root,"meta.json"),o=gn.default.existsSync(u);try{gn.default.rmSync(s,{force:!0})}catch{}if(o){let l;try{l=gn.default.readJsonSync(u)}catch{throw new at("Unable to read package.json",{transform:ji.name,fatal:!1})}if(l){n&&(l.name=t.projectName),(0,l0.default)(ur.version)!==null&&((p=l==null?void 0:l.devDependencies)==null?void 0:p.turbo)&&(l.devDependencies.turbo="canary");try{gn.default.writeJsonSync(u,l,{spaces:2})}catch{throw new at("Unable to write package.json",{transform:ji.name,fatal:!1})}}}return{result:"success",...ji}}j();var f0=Se(require("path")),fu=Se(require("fs-extra"));var pu={name:"git-ignore"};async function d0(e){let{prompts:t}=e,r=f0.default.join(t.root,".gitignore");try{if(!fu.default.existsSync(r))fu.default.writeFileSync(r,r0);else return{result:"not-applicable",...pu}}catch{throw new at("Unable to write .gitignore",{transform:pu.name,fatal:!1})}return{result:"success",...pu}}var h0=[p0,d0,c0];function m0(e){if(e instanceof at)Pe(Ue.default.bold(e.transform),Ue.default.red(e.message)),e.fatal&&process.exit(1);else if(e instanceof qt.ConvertError&&e.type!=="unknown")Pe(Ue.default.red(e.message)),process.exit(1);else throw e}var g0={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function du(e,t,r){let{skipInstall:n,skipTransforms:i}=r;console.log(Ue.default.bold(cr(`
152
152
  >>> TURBOREPO
153
- `))),Ii("Welcome to Turborepo! Let's get you set up with a new codebase."),console.log();let{root:n,projectName:u}=await Oh({directory:e}),s=mn.default.relative(process.cwd(),n),o=s==="",a=await Th({packageManager:t}),{example:c,examplePath:p}=r,{hasPackageJson:l,availableScripts:f}=await Qh({appPath:n,projectName:u,example:c&&c!=="default"?c:"basic",examplePath:p}),d={};try{d=await(0,yt.getWorkspaceDetails)({root:n})}catch(g){Xh(g)}if(d.packageManager!==a.name)try{await(0,yt.convert)({root:n,to:a.name,options:{skipInstall:!0}})}catch(g){Xh(g)}if(Ii("Created a new Turborepo with the following:"),console.log(),d.workspaceData.workspaces.length>0){let g=d.workspaceData.workspaces.map(E=>{var h;return{group:((h=mn.default.relative(n,E.paths.root).split(mn.default.sep))==null?void 0:h[0])||"",title:mn.default.relative(n,E.paths.root),description:E.description}}).sort((E,h)=>E.title.localeCompare(h.title)),_;g.forEach(({group:E,title:h,description:v},x)=>{(x===0||E!==_)&&console.log(ze.default.cyan(E)),console.log(` - ${ze.default.bold(h)}${v?`: ${v}`:""}`),_=E})}else console.log(ze.default.cyan("apps")),console.log(` - ${ze.default.bold(u)}`);if(console.log(),l&&!i){console.log("Installing packages. This might take a couple of minutes."),console.log();let g=_n("Installing dependencies...").start();await(0,yt.install)({project:d,to:a,options:{interactive:!1}}),g.stop()}o?(console.log(`${ze.default.bold(cr(">>> Success!"))} Your new Turborepo is ready.`),console.log("Inside this directory, you can run several commands:")):(console.log(`${ze.default.bold(cr(">>> Success!"))} Created a new Turborepo at "${s}".`),console.log("Inside that directory, you can run several commands:"));let m=(0,yt.getPackageManagerMeta)(a);m&&l&&(console.log(),f.filter(g=>Jh[g]).forEach(g=>{console.log(ze.default.cyan(` ${m.command} run ${g}`)),console.log(` ${Jh[g]} all apps and packages`),console.log()}),console.log("Turborepo will cache locally by default. For an additional"),console.log("speed boost, enable Remote Caching with Vercel by"),console.log("entering the following command:"),console.log(),console.log(ze.default.cyan(` ${m.executable} turbo login`)),console.log(),console.log("We suggest that you begin by typing:"),console.log(),o||console.log(` ${ze.default.cyan("cd")} ${s}`),console.log(ze.default.cyan(` ${m.executable} turbo login`)),console.log())}var zh=new Zh.Command;zh.name(yn.default.bold(cr("create-turbo"))).description("Create a new Turborepo").usage(`${yn.default.bold("<project-directory> <package-manager>")} [options]`).argument("[project-directory]").argument("[package-manager]").option("--skip-install","Do not run a package manager install after conversion",!1).option("-e, --example [name]|[github-url]",`
153
+ `))),Hi("Welcome to Turborepo! Let's get you set up with a new codebase."),console.log();let[u,s]=await Promise.all([s0(),hn()]);u||(Pe("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:o,projectName:a}=await $h({directory:e}),c=yn.default.relative(process.cwd(),o),p=c==="",l=await Hh({packageManager:t,skipTransforms:i});t&&r.skipTransforms&&An("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:f,examplePath:h}=r,m=f&&f!=="default"?f:"basic",{hasPackageJson:v,availableScripts:_,repoInfo:E}=await zh({appPath:o,example:m,examplePath:h});n0(o,`feat(create-turbo): create ${m}`);let d={};try{d=await(0,qt.getWorkspaceDetails)({root:o})}catch(g){m0(g)}if(!i)for(let g of h0)try{let A=await g({example:{repo:E,name:m},project:d,prompts:{projectName:a,root:o,packageManager:l},opts:r});A.result==="success"&&uu(`feat(create-turbo): apply ${A.name} transform`)}catch(A){m0(A)}let y=i||!l?{name:d.packageManager,version:s[d.packageManager].version}:l;if(Hi("Created a new Turborepo with the following:"),console.log(),d.workspaceData.workspaces.length>0){let g=d.workspaceData.workspaces.map(b=>{var k;return{group:((k=yn.default.relative(o,b.paths.root).split(yn.default.sep))==null?void 0:k[0])||"",title:yn.default.relative(o,b.paths.root),description:b.description}}).sort((b,k)=>b.title.localeCompare(k.title)),A;g.forEach(({group:b,title:k,description:x},F)=>{(F===0||b!==A)&&console.log(Ue.default.cyan(b)),console.log(` - ${Ue.default.bold(k)}${x?`: ${x}`:""}`),A=b})}else console.log(Ue.default.cyan("apps")),console.log(` - ${Ue.default.bold(a)}`);if(console.log(),v&&!n){if(r.skipTransforms&&!s[d.packageManager].available)An(`Unable to install dependencies - "${m}" uses "${d.packageManager}" which could not be found.`),An(`Try running without "--skip-transforms" to convert "${m}" to a package manager that is available on your system.`),console.log();else if(y){console.log("Installing packages. This might take a couple of minutes."),console.log();let g=Sn("Installing dependencies...").start();await(0,qt.install)({project:d,to:y,options:{interactive:!1}}),uu("feat(create-turbo): install dependencies"),g.stop()}}console.log(p?`${Ue.default.bold(cr(">>> Success!"))} Your new Turborepo is ready.`:`${Ue.default.bold(cr(">>> Success!"))} Created a new Turborepo at "${c}".`);let D=(0,qt.getPackageManagerMeta)(y);D&&v&&(console.log(`Inside ${p?"this":"that"} directory, you can run several commands:`),console.log(),_.filter(g=>g0[g]).forEach(g=>{console.log(Ue.default.cyan(` ${D.command} run ${g}`)),console.log(` ${g0[g]} all apps and packages`),console.log()}),console.log("Turborepo will cache locally by default. For an additional"),console.log("speed boost, enable Remote Caching with Vercel by"),console.log("entering the following command:"),console.log(),console.log(Ue.default.cyan(` ${D.executable} turbo login`)),console.log(),console.log("We suggest that you begin by typing:"),console.log(),p||console.log(` ${Ue.default.cyan("cd")} ${c}`),console.log(Ue.default.cyan(` ${D.executable} turbo login`)),console.log())}var v0=new y0.Command;v0.name($i.default.bold(cr("create-turbo"))).description("Create a new Turborepo").usage(`${$i.default.bold("<project-directory> <package-manager>")} [options]`).argument("[project-directory]").argument("[package-manager]").option("--skip-install","Do not run a package manager install after creating the project",!1).option("--skip-transforms","Do not run any code transformation after creating the project",!1).option("-e, --example [name]|[github-url]",`
154
154
  An example to bootstrap the app with. You can use an example name
155
155
  from the official Turborepo repo or a GitHub URL. The URL can use
156
156
  any branch and/or subdirectory
157
- `).option("--example-path <path-to-example>",`
157
+ `).option("-p, --example-path <path-to-example>",`
158
158
  In a rare case, your GitHub URL might contain a branch name with
159
159
  a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
160
160
  In this case, you must specify the path to the example separately:
161
161
  --example-path foo/bar
162
- `).version(ur.version,"-v, --version","output the current version").helpOption().action(nu);zh.parseAsync().then(gn).catch(async e=>{console.log(),e.command?console.log(` ${yn.default.cyan(e.command)} has failed.`):(console.log(yn.default.red("Unexpected error. Please report it as a bug:")),console.log(e)),console.log(),await gn(),process.exit(1)});
162
+ `).version(ur.version,"-v, --version","output the current version").helpOption().action(du);v0.parseAsync().then(vn).catch(async e=>{console.log(),e.command?Pe(`${$i.default.bold(e.command)} has failed.`):(Pe("Unexpected error. Please report it as a bug:"),console.log(e)),console.log(),await vn(),process.exit(1)});
163
163
  /*!
164
164
  * fill-range <https://github.com/jonschlinkert/fill-range>
165
165
  *