create-turbo 1.8.9-canary.1 → 1.9.0-canary.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/cli.js +196 -0
  2. package/package.json +15 -8
  3. package/dist/index.js +0 -424
  4. package/templates/_shared_ts/.eslintrc.js +0 -10
  5. package/templates/_shared_ts/README.md +0 -25
  6. package/templates/_shared_ts/apps/docs/.eslintrc.js +0 -4
  7. package/templates/_shared_ts/apps/docs/README.md +0 -30
  8. package/templates/_shared_ts/apps/docs/next-env.d.ts +0 -5
  9. package/templates/_shared_ts/apps/docs/next.config.js +0 -4
  10. package/templates/_shared_ts/apps/docs/package.json +0 -27
  11. package/templates/_shared_ts/apps/docs/pages/index.tsx +0 -10
  12. package/templates/_shared_ts/apps/docs/tsconfig.json +0 -5
  13. package/templates/_shared_ts/apps/web/.eslintrc.js +0 -4
  14. package/templates/_shared_ts/apps/web/README.md +0 -30
  15. package/templates/_shared_ts/apps/web/next-env.d.ts +0 -5
  16. package/templates/_shared_ts/apps/web/next.config.js +0 -4
  17. package/templates/_shared_ts/apps/web/package.json +0 -27
  18. package/templates/_shared_ts/apps/web/pages/index.tsx +0 -10
  19. package/templates/_shared_ts/apps/web/tsconfig.json +0 -5
  20. package/templates/_shared_ts/gitignore +0 -33
  21. package/templates/_shared_ts/package.json +0 -23
  22. package/templates/_shared_ts/packages/eslint-config-custom/index.js +0 -11
  23. package/templates/_shared_ts/packages/eslint-config-custom/package.json +0 -19
  24. package/templates/_shared_ts/packages/tsconfig/README.md +0 -3
  25. package/templates/_shared_ts/packages/tsconfig/base.json +0 -20
  26. package/templates/_shared_ts/packages/tsconfig/nextjs.json +0 -22
  27. package/templates/_shared_ts/packages/tsconfig/package.json +0 -10
  28. package/templates/_shared_ts/packages/tsconfig/react-library.json +0 -11
  29. package/templates/_shared_ts/packages/ui/Button.tsx +0 -4
  30. package/templates/_shared_ts/packages/ui/index.tsx +0 -2
  31. package/templates/_shared_ts/packages/ui/package.json +0 -18
  32. package/templates/_shared_ts/packages/ui/tsconfig.json +0 -5
  33. package/templates/_shared_ts/turbo.json +0 -16
  34. package/templates/berry/.yarnrc.yml +0 -1
  35. package/templates/berry/README.md +0 -73
  36. package/templates/npm/README.md +0 -73
  37. package/templates/pnpm/README.md +0 -73
  38. package/templates/pnpm/apps/docs/package.json +0 -27
  39. package/templates/pnpm/apps/web/package.json +0 -27
  40. package/templates/pnpm/package.json +0 -19
  41. package/templates/pnpm/packages/ui/package.json +0 -19
  42. package/templates/pnpm/pnpm-workspace.yaml +0 -3
  43. package/templates/yarn/README.md +0 -73
  44. package/templates/yarn/package.json +0 -19
package/dist/cli.js ADDED
@@ -0,0 +1,196 @@
1
+ #!/usr/bin/env node
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
+
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
+ `,u?1+a:a)):c?(c=!1,e.result+=zt.repeat(`
16
+ `,a+1)):a===0?u&&(e.result+=" "):e.result+=zt.repeat(`
17
+ `,a):e.result+=zt.repeat(`
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
+ `||e===`
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
+
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
+
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
+
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
+ `,o+=Fe.repeat("-",t.indent+p+3+c.pos)+`^
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
+ `,u?1+a:a)):c?(c=!1,e.result+=Fe.repeat(`
54
+ `,a+1)):a===0?u&&(e.result+=" "):e.result+=Fe.repeat(`
55
+ `,a):e.result+=Fe.repeat(`
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
+ `||e===`
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
+ `:`
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
+ ${t.workspaceData.globs.map(o=>` - "${o}"`).join(`
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
+ >>> 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)}},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.1",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:*","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
+
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
+
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
+
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
+ `,o+=Te.repeat("-",t.indent+p+3+c.pos)+`^
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
+ `,u?1+a:a)):c?(c=!1,e.result+=Te.repeat(`
100
+ `,a+1)):a===0?u&&(e.result+=" "):e.result+=Te.repeat(`
101
+ `,a):e.result+=Te.repeat(`
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
+ `||e===`
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
+ `:`
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=`
127
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
128
+
129
+ # dependencies
130
+ node_modules
131
+ .pnp
132
+ .pnp.js
133
+
134
+ # testing
135
+ coverage
136
+
137
+ # misc
138
+ .DS_Store
139
+ *.pem
140
+
141
+ # debug
142
+ npm-debug.log*
143
+ yarn-debug.log*
144
+ yarn-error.log*
145
+
146
+ # turbo
147
+ .turbo
148
+
149
+ # vercel
150
+ .vercel
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
+ >>> TURBOREPO
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
+ An example to bootstrap the app with. You can use an example name
155
+ from the official Turborepo repo or a GitHub URL. The URL can use
156
+ any branch and/or subdirectory
157
+ `).option("-p, --example-path <path-to-example>",`
158
+ In a rare case, your GitHub URL might contain a branch name with
159
+ a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
160
+ In this case, you must specify the path to the example separately:
161
+ --example-path foo/bar
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
+ /*!
164
+ * fill-range <https://github.com/jonschlinkert/fill-range>
165
+ *
166
+ * Copyright (c) 2014-present, Jon Schlinkert.
167
+ * Licensed under the MIT License.
168
+ */
169
+ /*!
170
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
171
+ *
172
+ * Copyright (c) 2014-2016, Jon Schlinkert.
173
+ * Licensed under the MIT License.
174
+ */
175
+ /*!
176
+ * is-glob <https://github.com/jonschlinkert/is-glob>
177
+ *
178
+ * Copyright (c) 2014-2017, Jon Schlinkert.
179
+ * Released under the MIT License.
180
+ */
181
+ /*!
182
+ * is-number <https://github.com/jonschlinkert/is-number>
183
+ *
184
+ * Copyright (c) 2014-present, Jon Schlinkert.
185
+ * Released under the MIT License.
186
+ */
187
+ /*!
188
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
189
+ *
190
+ * Copyright (c) 2015-present, Jon Schlinkert.
191
+ * Released under the MIT License.
192
+ */
193
+ /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
194
+ /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
195
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
196
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */