ado-npm-auth 0.1.10 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ado-npm-auth.cjs +3 -3
- package/dist/index.js +187 -0
- package/lib/args.d.ts +7 -0
- package/lib/cli.d.ts +3 -0
- package/lib/fileProvider.d.ts +35 -0
- package/lib/index.d.ts +5 -0
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -1 +1,188 @@
|
|
|
1
|
+
var iC=Object.create;var Fh=Object.defineProperty;var sC=Object.getOwnPropertyDescriptor;var oC=Object.getOwnPropertyNames;var aC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty;var M=(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 Error('Dynamic require of "'+e+'" is not supported')});var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var cC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oC(t))!uC.call(e,i)&&i!==r&&Fh(e,i,{get:()=>t[i],enumerable:!(n=sC(t,i))||n.enumerable});return e};var kh=(e,t,r)=>(r=e!=null?iC(aC(e)):{},cC(t||!e||!e.__esModule?Fh(r,"default",{value:e,enumerable:!0}):r,e));var Os=F(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.getPackageDependencies=void 0;function lC(e,t,r={withDevDependencies:!0}){let n={...e.dependencies,...r.withDevDependencies&&e.devDependencies,...r.withPeerDependencies&&e.peerDependencies};return Object.keys(t).filter(i=>!!n[i])}bs.getPackageDependencies=lC});var Ph=F(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getTransitiveProviders=vr.getTransitiveConsumers=vr.getDependentMap=void 0;var fC=Os(),La=new Map;function hC(e,t=[]){return JSON.stringify({packages:e,scope:t})}function Na(e,t=[]){let r=hC(e,t);if(La.has(r))return La.get(r);let n=[],i=new Set,s=t.length>0?[...t]:Object.keys(e);for(;s.length>0;){let o=s.pop();if(i.has(o))continue;i.add(o);let a=e[o],u=(0,fC.getPackageDependencies)(a,e);if(u.length>0)for(let c of u)s.push(c),n.push([c,o]);else n.push([null,o])}return La.set(r,n),n}function dC(e){let t=Na(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}vr.getDependentMap=dC;function pC(e,t,r=[]){let n=Na(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,u]of n)a===o&&i.push(u)}}return[...s].filter(o=>!e.includes(o))}vr.getTransitiveConsumers=pC;function gC(e,t){let r=Na(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}vr.getTransitiveProviders=gC});var Dh=F(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.getInternalDeps=At.getTransitiveConsumers=At.getTransitiveDependents=At.getTransitiveProviders=At.getTransitiveDependencies=void 0;var Rs=Ph();Object.defineProperty(At,"getTransitiveConsumers",{enumerable:!0,get:function(){return Rs.getTransitiveConsumers}});Object.defineProperty(At,"getTransitiveProviders",{enumerable:!0,get:function(){return Rs.getTransitiveProviders}});var mC=Os();At.getTransitiveDependencies=Rs.getTransitiveProviders;At.getTransitiveDependents=Rs.getTransitiveConsumers;At.getInternalDeps=mC.getPackageDependencies});var Th=F(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.infoFromPackageJson=void 0;function yC(e,t){return{packageJsonPath:t,...e}}Fs.infoFromPackageJson=yC});var Lh=F((nj,Ih)=>{var Ba=class{constructor(t){this.value=t,this.next=void 0}},$a=class{constructor(){this.clear()}enqueue(t){let r=new Ba(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Ih.exports=$a});var Bh=F((ij,Nh)=>{"use strict";var vC=Lh(),EC=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new vC,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,u,...c)=>{r++;let f=(async()=>a(...c))();u(f);try{await f}catch{}n()},s=(a,u,...c)=>{t.enqueue(i.bind(null,a,u,...c)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},o=(a,...u)=>new Promise(c=>{s(a,c,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};Nh.exports=EC});var jh=F((sj,Mh)=>{"use strict";var $h=Bh(),ks=class extends Error{constructor(t){super(),this.value=t}},AC=async(e,t)=>t(await e),SC=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new ks(t[0]);return!1},wC=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=$h(r.concurrency),i=[...e].map(o=>[o,n(AC,o,t)]),s=$h(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(SC,o)))}catch(o){if(o instanceof ks)return o.value;throw o}};Mh.exports=wC});var Yh=F((oj,Ma)=>{"use strict";var qh=M("path"),Ps=M("fs"),{promisify:Hh}=M("util"),CC=jh(),_C=Hh(Ps.stat),xC=Hh(Ps.lstat),Gh={directory:"isDirectory",file:"isFile"};function Uh({type:e}){if(!(e in Gh))throw new Error(`Invalid type specified: ${e}`)}var Wh=(e,t)=>e===void 0||t[Gh[e]]();Ma.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Uh(t);let r=t.allowSymlinks?_C:xC;return CC(e,async n=>{try{let i=await r(qh.resolve(t.cwd,n));return Wh(t.type,i)}catch{return!1}},t)};Ma.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Uh(t);let r=t.allowSymlinks?Ps.statSync:Ps.lstatSync;for(let n of e)try{let i=r(qh.resolve(t.cwd,n));if(Wh(t.type,i))return n}catch{}}});var Vh=F((aj,ja)=>{"use strict";var zh=M("fs"),{promisify:bC}=M("util"),OC=bC(zh.access);ja.exports=async e=>{try{return await OC(e),!0}catch{return!1}};ja.exports.sync=e=>{try{return zh.accessSync(e),!0}catch{return!1}}});var Cn=F((uj,wn)=>{"use strict";var Er=M("path"),Ds=Yh(),Kh=Vh(),qa=Symbol("findUp.stop");wn.exports=async(e,t={})=>{let r=Er.resolve(t.cwd||""),{root:n}=Er.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Ds(i,o);let a=await e(o.cwd);return typeof a=="string"?Ds([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===qa)return;if(o)return Er.resolve(r,o);if(r===n)return;r=Er.dirname(r)}};wn.exports.sync=(e,t={})=>{let r=Er.resolve(t.cwd||""),{root:n}=Er.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Ds.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Ds.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===qa)return;if(o)return Er.resolve(r,o);if(r===n)return;r=Er.dirname(r)}};wn.exports.exists=Kh;wn.exports.sync.exists=Kh.sync;wn.exports.stop=qa});var Ts=F(Ar=>{"use strict";var Xh=Ar&&Ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getWorkspaceImplementation=Ar.getWorkspaceImplementationAndLockFile=void 0;var RC=Xh(Cn()),FC=Xh(M("path")),Qh={};function Jh(e,t=Qh){if(t[e])return t[e];let r=RC.default.sync(["lerna.json","rush.json","yarn.lock","pnpm-workspace.yaml","package-lock.json"],{cwd:e});if(r){switch(FC.default.basename(r)){case"lerna.json":t[e]={implementation:"lerna",lockFile:r};break;case"yarn.lock":t[e]={implementation:"yarn",lockFile:r};break;case"pnpm-workspace.yaml":t[e]={implementation:"pnpm",lockFile:r};break;case"rush.json":t[e]={implementation:"rush",lockFile:r};break;case"package-lock.json":t[e]={implementation:"npm",lockFile:r};break}return t[e]}}Ar.getWorkspaceImplementationAndLockFile=Jh;function kC(e,t=Qh){var r;return(r=Jh(e,t))===null||r===void 0?void 0:r.implementation}Ar.getWorkspaceImplementation=kC});var ed=F((lj,Zh)=>{"use strict";Zh.exports=(...e)=>[...new Set([].concat(...e))]});var Ha=F((fj,nd)=>{"use strict";var PC=M("stream"),td=PC.PassThrough,DC=Array.prototype.slice;nd.exports=TC;function TC(){let e=[],t=DC.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=td(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(rd(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,u())}function d(g){function S(){g.removeListener("merge2UnpipeEnd",S),g.removeListener("end",S),s&&g.removeListener("error",w),h()}function w(k){o.emit("error",k)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",S),g.on("end",S),s&&g.on("error",w),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<f.length;g++)d(f[g]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function rd(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=rd(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(td(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var id=F(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.splitWhen=_n.flatten=void 0;function IC(e){return e.reduce((t,r)=>[].concat(t,r),[])}_n.flatten=IC;function LC(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}_n.splitWhen=LC});var sd=F(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.isEnoentCodeError=void 0;function NC(e){return e.code==="ENOENT"}Is.isEnoentCodeError=NC});var od=F(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.createDirentFromStats=void 0;var Ga=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 BC(e,t){return new Ga(e,t)}Ls.createDirentFromStats=BC});var ld=F(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.convertPosixPathToPattern=De.convertWindowsPathToPattern=De.convertPathToPattern=De.escapePosixPath=De.escapeWindowsPath=De.escape=De.removeLeadingDotSegment=De.makeAbsolute=De.unixify=void 0;var $C=M("os"),MC=M("path"),ad=$C.platform()==="win32",jC=2,qC=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,HC=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,GC=/^\\\\([.?])/,UC=/\\(?![!()+@[\]{}])/g;function WC(e){return e.replace(/\\/g,"/")}De.unixify=WC;function YC(e,t){return MC.resolve(e,t)}De.makeAbsolute=YC;function zC(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(jC)}return e}De.removeLeadingDotSegment=zC;De.escape=ad?Ua:Wa;function Ua(e){return e.replace(HC,"\\$2")}De.escapeWindowsPath=Ua;function Wa(e){return e.replace(qC,"\\$2")}De.escapePosixPath=Wa;De.convertPathToPattern=ad?ud:cd;function ud(e){return Ua(e).replace(GC,"//$1").replace(UC,"/")}De.convertWindowsPathToPattern=ud;function cd(e){return Wa(e)}De.convertPosixPathToPattern=cd});var hd=F((mj,fd)=>{fd.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 gd=F((yj,pd)=>{var VC=hd(),dd={"{":"}","(":")","[":"]"},KC=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-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&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=dd[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},XC=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=dd[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};pd.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(VC(t))return!0;var n=KC;return r&&r.strict===!1&&(n=XC),n(t)}});var yd=F((vj,md)=>{"use strict";var QC=gd(),JC=M("path").posix.dirname,ZC=M("os").platform()==="win32",Ya="/",e_=/\\/g,t_=/[\{\[].*[\}\]]$/,r_=/(^|[^\\])([\{\[]|\([^\)]+$)/,n_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;md.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&ZC&&t.indexOf(Ya)<0&&(t=t.replace(e_,Ya)),t_.test(t)&&(t+=Ya),t+="a";do t=JC(t);while(QC(t)||r_.test(t));return t.replace(n_,"$1")}});var Ns=F(St=>{"use strict";St.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;St.find=(e,t)=>e.nodes.find(r=>r.type===t);St.exceedsLimit=(e,t,r=1,n)=>n===!1||!St.isInteger(e)||!St.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;St.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)};St.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);St.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;St.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;St.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);St.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Bs=F((Aj,Ed)=>{"use strict";var vd=Ns();Ed.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&vd.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&vd.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var Sd=F((Sj,Ad)=>{"use strict";Ad.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var kd=F((wj,Fd)=>{"use strict";var wd=Sd(),Yr=(e,t,r)=>{if(wd(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(wd(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),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(Yr.cache.hasOwnProperty(u))return Yr.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let S=e+"|"+t;return n.capture?`(${S})`:n.wrap===!1?S:`(?:${S})`}let l=Rd(e)||Rd(t),h={min:e,max:t,a:c,b:f},d=[],g=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),c<0){let S=f<0?Math.abs(f):1;g=Cd(S,Math.abs(c),h,n),c=h.a=0}return f>=0&&(d=Cd(c,f,h,n)),h.negatives=g,h.positives=d,h.result=i_(g,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+g.length>1&&(h.result=`(?:${h.result})`),Yr.cache[u]=h,h.result};function i_(e,t,r){let n=za(e,t,"-",!1,r)||[],i=za(t,e,"",!1,r)||[],s=za(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function s_(e,t){let r=1,n=1,i=xd(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=xd(e,r);for(i=bd(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=bd(t+1,n)-1;return s=[...s],s.sort(u_),s}function o_(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=a_(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=c_(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Cd(e,t,r,n){let i=s_(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=o_(String(o),String(c),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Od(a.count),o=c+1;continue}r.isPadded&&(l=l_(c,r,n)),f.string=l+f.pattern+Od(f.count),s.push(f),o=c+1,a=f}return s}function za(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!_d(t,"string",a)&&s.push(r+a),n&&_d(t,"string",a)&&s.push(r+a)}return s}function a_(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function u_(e,t){return e>t?1:t>e?-1:0}function _d(e,t,r){return e.some(n=>n[t]===r)}function xd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function bd(e,t){return e-e%Math.pow(10,t)}function Od(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function c_(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Rd(e){return/^-?(0+)\d/.test(e)}function l_(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}}`}}Yr.cache={};Yr.clearCache=()=>Yr.cache={};Fd.exports=Yr});var Xa=F((Cj,Bd)=>{"use strict";var f_=M("util"),Dd=kd(),Pd=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),h_=e=>t=>e===!0?Number(t):String(t),Va=e=>typeof e=="number"||typeof e=="string"&&e!=="",_i=e=>Number.isInteger(+e),Ka=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},d_=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,p_=(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},Ms=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},g_=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>Ms(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Ms(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},Td=(e,t,r,n)=>{if(r)return Dd(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Id=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Dd(e,t,r)},Ld=(...e)=>new RangeError("Invalid range arguments: "+f_.inspect(...e)),Nd=(e,t,r)=>{if(r.strictRanges===!0)throw Ld([e,t]);return[]},m_=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},y_=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ld([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=Ka(a)||Ka(u)||Ka(c),l=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&d_(e,t,n)===!1,d=n.transform||h_(h);if(n.toRegex&&r===1)return Td(Ms(e,l),Ms(t,l),!0,n);let g={negatives:[],positives:[]},S=_=>g[_<0?"negatives":"positives"].push(Math.abs(_)),w=[],k=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?S(i):w.push(p_(d(i,k),l,h)),i=o?i-r:i+r,k++;return n.toRegex===!0?r>1?g_(g,n,l):Id(w,null,{wrap:!1,...n}):w},v_=(e,t,r=1,n={})=>{if(!_i(e)&&e.length>1||!_i(t)&&t.length>1)return Nd(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Td(u,c,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?Id(f,null,{wrap:!1,options:n}):f},$s=(e,t,r,n={})=>{if(t==null&&Va(e))return[e];if(!Va(e)||!Va(t))return Nd(e,t,n);if(typeof r=="function")return $s(e,t,1,{transform:r});if(Pd(r))return $s(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,_i(r)?_i(e)&&_i(t)?y_(e,t,r,i):v_(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Pd(r)?m_(r,i):$s(e,t,1,r)};Bd.exports=$s});var jd=F((_j,Md)=>{"use strict";var E_=Xa(),$d=Ns(),A_=(e,t={})=>{let r=(n,i={})=>{let s=$d.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=$d.reduce(n.nodes),l=E_(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)c+=r(f,n);return c};return r(e)};Md.exports=A_});var Gd=F((xj,Hd)=>{"use strict";var S_=Xa(),qd=Bs(),xn=Ns(),zr=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?xn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(zr(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?zr(i,s,r):i+s);return xn.flatten(n)},w_=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(zr(a.pop(),qd(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(zr(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=xn.reduce(i.nodes);if(xn.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=S_(...l,t);h.length===0&&(h=qd(i,t)),a.push(zr(a.pop(),h)),i.nodes=[];return}let u=xn.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(zr(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(zr(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return xn.flatten(n(e))};Hd.exports=w_});var Wd=F((bj,Ud)=>{"use strict";Ud.exports={MAX_LENGTH:1e4,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:`
|
|
2
|
+
`,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 Xd=F((Oj,Kd)=>{"use strict";var C_=Bs(),{MAX_LENGTH:Yd,CHAR_BACKSLASH:Qa,CHAR_BACKTICK:__,CHAR_COMMA:x_,CHAR_DOT:b_,CHAR_LEFT_PARENTHESES:O_,CHAR_RIGHT_PARENTHESES:R_,CHAR_LEFT_CURLY_BRACE:F_,CHAR_RIGHT_CURLY_BRACE:k_,CHAR_LEFT_SQUARE_BRACKET:zd,CHAR_RIGHT_SQUARE_BRACKET:Vd,CHAR_DOUBLE_QUOTE:P_,CHAR_SINGLE_QUOTE:D_,CHAR_NO_BREAK_SPACE:T_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:I_}=Wd(),L_=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Yd,r.maxLength):Yd;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,l=0,h,d=()=>e[f++],g=S=>{if(S.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&S.type==="text"){a.value+=S.value;return}return o.nodes.push(S),S.parent=o,S.prev=a,a=S,S};for(g({type:"bos"});f<c;)if(o=s[s.length-1],h=d(),!(h===I_||h===T_)){if(h===Qa){g({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===Vd){g({type:"text",value:"\\"+h});continue}if(h===zd){u++;let S;for(;f<c&&(S=d());){if(h+=S,S===zd){u++;continue}if(S===Qa){h+=d();continue}if(S===Vd&&(u--,u===0))break}g({type:"text",value:h});continue}if(h===O_){o=g({type:"paren",nodes:[]}),s.push(o),g({type:"text",value:h});continue}if(h===R_){if(o.type!=="paren"){g({type:"text",value:h});continue}o=s.pop(),g({type:"text",value:h}),o=s[s.length-1];continue}if(h===P_||h===D_||h===__){let S=h,w;for(t.keepQuotes!==!0&&(h="");f<c&&(w=d());){if(w===Qa){h+=w+d();continue}if(w===S){t.keepQuotes===!0&&(h+=w);break}h+=w}g({type:"text",value:h});continue}if(h===F_){l++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=g(w),s.push(o),g({type:"open",value:h});continue}if(h===k_){if(o.type!=="brace"){g({type:"text",value:h});continue}let S="close";o=s.pop(),o.close=!0,g({type:S,value:h}),l--,o=s[s.length-1];continue}if(h===x_&&l>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:C_(o)}]}g({type:"comma",value:h}),o.commas++;continue}if(h===b_&&l>0&&o.commas===0){let S=o.nodes;if(l===0||S.length===0){g({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){S.pop();let w=S[S.length-1];w.value+=a.value+h,a=w,o.ranges--;continue}g({type:"dot",value:h});continue}g({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(k=>{k.nodes||(k.type==="open"&&(k.isOpen=!0),k.type==="close"&&(k.isClose=!0),k.nodes||(k.type="text"),k.invalid=!0)});let S=s[s.length-1],w=S.nodes.indexOf(o);S.nodes.splice(w,1,...o.nodes)}while(s.length>0);return g({type:"eos"}),i};Kd.exports=L_});var Zd=F((Rj,Jd)=>{"use strict";var Qd=Bs(),N_=jd(),B_=Gd(),$_=Xd(),mt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=mt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(mt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};mt.parse=(e,t={})=>$_(e,t);mt.stringify=(e,t={})=>Qd(typeof e=="string"?mt.parse(e,t):e,t);mt.compile=(e,t={})=>(typeof e=="string"&&(e=mt.parse(e,t)),N_(e,t));mt.expand=(e,t={})=>{typeof e=="string"&&(e=mt.parse(e,t));let r=B_(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};mt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?mt.compile(e,t):mt.expand(e,t);Jd.exports=mt});var xi=F((Fj,ip)=>{"use strict";var M_=M("path"),jt="\\\\/",ep=`[^${jt}]`,Jt="\\.",j_="\\+",q_="\\?",js="\\/",H_="(?=.)",tp="[^/]",Ja=`(?:${js}|$)`,rp=`(?:^|${js})`,Za=`${Jt}{1,2}${Ja}`,G_=`(?!${Jt})`,U_=`(?!${rp}${Za})`,W_=`(?!${Jt}{0,1}${Ja})`,Y_=`(?!${Za})`,z_=`[^.${js}]`,V_=`${tp}*?`,np={DOT_LITERAL:Jt,PLUS_LITERAL:j_,QMARK_LITERAL:q_,SLASH_LITERAL:js,ONE_CHAR:H_,QMARK:tp,END_ANCHOR:Ja,DOTS_SLASH:Za,NO_DOT:G_,NO_DOTS:U_,NO_DOT_SLASH:W_,NO_DOTS_SLASH:Y_,QMARK_NO_DOT:z_,STAR:V_,START_ANCHOR:rp},K_={...np,SLASH_LITERAL:`[${jt}]`,QMARK:ep,STAR:`${ep}*?`,DOTS_SLASH:`${Jt}{1,2}(?:[${jt}]|$)`,NO_DOT:`(?!${Jt})`,NO_DOTS:`(?!(?:^|[${jt}])${Jt}{1,2}(?:[${jt}]|$))`,NO_DOT_SLASH:`(?!${Jt}{0,1}(?:[${jt}]|$))`,NO_DOTS_SLASH:`(?!${Jt}{1,2}(?:[${jt}]|$))`,QMARK_NO_DOT:`[^.${jt}]`,START_ANCHOR:`(?:^|[${jt}])`,END_ANCHOR:`(?:[${jt}]|$)`},X_={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"};ip.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:X_,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:M_.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?K_:np}}});var bi=F(st=>{"use strict";var Q_=M("path"),J_=process.platform==="win32",{REGEX_BACKSLASH:Z_,REGEX_REMOVE_BACKSLASH:ex,REGEX_SPECIAL_CHARS:tx,REGEX_SPECIAL_CHARS_GLOBAL:rx}=xi();st.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);st.hasRegexChars=e=>tx.test(e);st.isRegexChar=e=>e.length===1&&st.hasRegexChars(e);st.escapeRegex=e=>e.replace(rx,"\\$1");st.toPosixSlashes=e=>e.replace(Z_,"/");st.removeBackslashes=e=>e.replace(ex,t=>t==="\\"?"":t);st.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};st.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:J_===!0||Q_.sep==="\\";st.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?st.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};st.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};st.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var hp=F((Pj,fp)=>{"use strict";var sp=bi(),{CHAR_ASTERISK:eu,CHAR_AT:nx,CHAR_BACKWARD_SLASH:Oi,CHAR_COMMA:ix,CHAR_DOT:tu,CHAR_EXCLAMATION_MARK:ru,CHAR_FORWARD_SLASH:lp,CHAR_LEFT_CURLY_BRACE:nu,CHAR_LEFT_PARENTHESES:iu,CHAR_LEFT_SQUARE_BRACKET:sx,CHAR_PLUS:ox,CHAR_QUESTION_MARK:op,CHAR_RIGHT_CURLY_BRACE:ax,CHAR_RIGHT_PARENTHESES:ap,CHAR_RIGHT_SQUARE_BRACKET:ux}=xi(),up=e=>e===lp||e===Oi,cp=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},cx=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,l=0,h=!1,d=!1,g=!1,S=!1,w=!1,k=!1,_=!1,N=!1,D=!1,A=!1,R=0,b,O,T={value:"",depth:0,isGlob:!1},x=()=>c>=n,p=()=>u.charCodeAt(c+1),m=()=>(b=O,u.charCodeAt(++c));for(;c<n;){O=m();let P;if(O===Oi){_=T.backslashes=!0,O=m(),O===nu&&(k=!0);continue}if(k===!0||O===nu){for(R++;x()!==!0&&(O=m());){if(O===Oi){_=T.backslashes=!0,m();continue}if(O===nu){R++;continue}if(k!==!0&&O===tu&&(O=m())===tu){if(h=T.isBrace=!0,g=T.isGlob=!0,A=!0,i===!0)continue;break}if(k!==!0&&O===ix){if(h=T.isBrace=!0,g=T.isGlob=!0,A=!0,i===!0)continue;break}if(O===ax&&(R--,R===0)){k=!1,h=T.isBrace=!0,A=!0;break}}if(i===!0)continue;break}if(O===lp){if(s.push(c),o.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(b===tu&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&(O===ox||O===nx||O===eu||O===op||O===ru)===!0&&p()===iu){if(g=T.isGlob=!0,S=T.isExtglob=!0,A=!0,O===ru&&c===f&&(D=!0),i===!0){for(;x()!==!0&&(O=m());){if(O===Oi){_=T.backslashes=!0,O=m();continue}if(O===ap){g=T.isGlob=!0,A=!0;break}}continue}break}if(O===eu){if(b===eu&&(w=T.isGlobstar=!0),g=T.isGlob=!0,A=!0,i===!0)continue;break}if(O===op){if(g=T.isGlob=!0,A=!0,i===!0)continue;break}if(O===sx){for(;x()!==!0&&(P=m());){if(P===Oi){_=T.backslashes=!0,m();continue}if(P===ux){d=T.isBracket=!0,g=T.isGlob=!0,A=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&O===ru&&c===f){N=T.negated=!0,f++;continue}if(r.noparen!==!0&&O===iu){if(g=T.isGlob=!0,i===!0){for(;x()!==!0&&(O=m());){if(O===iu){_=T.backslashes=!0,O=m();continue}if(O===ap){A=!0;break}}continue}break}if(g===!0){if(A=!0,i===!0)continue;break}}r.noext===!0&&(S=!1,g=!1);let E=u,C="",y="";f>0&&(C=u.slice(0,f),u=u.slice(f),l-=f),E&&g===!0&&l>0?(E=u.slice(0,l),y=u.slice(l)):g===!0?(E="",y=u):E=u,E&&E!==""&&E!=="/"&&E!==u&&up(E.charCodeAt(E.length-1))&&(E=E.slice(0,-1)),r.unescape===!0&&(y&&(y=sp.removeBackslashes(y)),E&&_===!0&&(E=sp.removeBackslashes(E)));let v={prefix:C,input:e,start:f,base:E,glob:y,isBrace:h,isBracket:d,isGlob:g,isExtglob:S,isGlobstar:w,negated:N,negatedExtglob:D};if(r.tokens===!0&&(v.maxDepth=0,up(O)||o.push(T),v.tokens=o),r.parts===!0||r.tokens===!0){let P;for(let I=0;I<s.length;I++){let L=P?P+1:f,$=s[I],U=e.slice(L,$);r.tokens&&(I===0&&f!==0?(o[I].isPrefix=!0,o[I].value=C):o[I].value=U,cp(o[I]),v.maxDepth+=o[I].depth),(I!==0||U!=="")&&a.push(U),P=$}if(P&&P+1<e.length){let I=e.slice(P+1);a.push(I),r.tokens&&(o[o.length-1].value=I,cp(o[o.length-1]),v.maxDepth+=o[o.length-1].depth)}v.slashes=s,v.parts=a}return v};fp.exports=cx});var gp=F((Dj,pp)=>{"use strict";var qs=xi(),yt=bi(),{MAX_LENGTH:Hs,POSIX_REGEX_SOURCE:lx,REGEX_NON_SPECIAL_CHARS:fx,REGEX_SPECIAL_CHARS_BACKREF:hx,REPLACEMENTS:dp}=qs,dx=(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=>yt.escapeRegex(i)).join("..")}return r},bn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,su=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=dp[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Hs,r.maxLength):Hs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=yt.isWindows(t),c=qs.globChars(u),f=qs.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:S,NO_DOT:w,NO_DOT_SLASH:k,NO_DOTS_SLASH:_,QMARK:N,QMARK_NO_DOT:D,STAR:A,START_ANCHOR:R}=c,b=q=>`(${a}(?:(?!${R}${q.dot?S:l}).)*?)`,O=r.dot?"":w,T=r.dot?N:D,x=r.bash===!0?b(r):A;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let p={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:o};e=yt.removePrefix(e,p),i=e.length;let m=[],E=[],C=[],y=s,v,P=()=>p.index===i-1,I=p.peek=(q=1)=>e[p.index+q],L=p.advance=()=>e[++p.index]||"",$=()=>e.slice(p.index+1),U=(q="",ie=0)=>{p.consumed+=q,p.index+=ie},z=q=>{p.output+=q.output!=null?q.output:q.value,U(q.value)},oe=()=>{let q=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)L(),p.start++,q++;return q%2===0?!1:(p.negated=!0,p.start++,!0)},H=q=>{p[q]++,C.push(q)},B=q=>{p[q]--,C.pop()},j=q=>{if(y.type==="globstar"){let ie=p.braces>0&&(q.type==="comma"||q.type==="brace"),G=q.extglob===!0||m.length&&(q.type==="pipe"||q.type==="paren");q.type!=="slash"&&q.type!=="paren"&&!ie&&!G&&(p.output=p.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=x,p.output+=y.output)}if(m.length&&q.type!=="paren"&&(m[m.length-1].inner+=q.value),(q.value||q.output)&&z(q),y&&y.type==="text"&&q.type==="text"){y.value+=q.value,y.output=(y.output||"")+q.value;return}q.prev=y,o.push(q),y=q},te=(q,ie)=>{let G={...f[ie],conditions:1,inner:""};G.prev=y,G.parens=p.parens,G.output=p.output;let ne=(r.capture?"(":"")+G.open;H("parens"),j({type:q,value:ie,output:p.output?"":g}),j({type:"paren",extglob:!0,value:L(),output:ne}),m.push(G)},re=q=>{let ie=q.close+(r.capture?")":""),G;if(q.type==="negate"){let ne=x;if(q.inner&&q.inner.length>1&&q.inner.includes("/")&&(ne=b(r)),(ne!==x||P()||/^\)+$/.test($()))&&(ie=q.close=`)$))${ne}`),q.inner.includes("*")&&(G=$())&&/^\.[^\\/.]+$/.test(G)){let ce=su(G,{...t,fastpaths:!1}).output;ie=q.close=`)${ce})${ne})`}q.prev.type==="bos"&&(p.negatedExtglob=!0)}j({type:"paren",extglob:!0,value:v,output:ie}),B("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let q=!1,ie=e.replace(hx,(G,ne,ce,Ee,fe,Re)=>Ee==="\\"?(q=!0,G):Ee==="?"?ne?ne+Ee+(fe?N.repeat(fe.length):""):Re===0?T+(fe?N.repeat(fe.length):""):N.repeat(ce.length):Ee==="."?l.repeat(ce.length):Ee==="*"?ne?ne+Ee+(fe?x:""):x:ne?G:`\\${G}`);return q===!0&&(r.unescape===!0?ie=ie.replace(/\\/g,""):ie=ie.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),ie===e&&r.contains===!0?(p.output=e,p):(p.output=yt.wrapOutput(ie,p,t),p)}for(;!P();){if(v=L(),v==="\0")continue;if(v==="\\"){let G=I();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){v+="\\",j({type:"text",value:v});continue}let ne=/^\\+/.exec($()),ce=0;if(ne&&ne[0].length>2&&(ce=ne[0].length,p.index+=ce,ce%2!==0&&(v+="\\")),r.unescape===!0?v=L():v+=L(),p.brackets===0){j({type:"text",value:v});continue}}if(p.brackets>0&&(v!=="]"||y.value==="["||y.value==="[^")){if(r.posix!==!1&&v===":"){let G=y.value.slice(1);if(G.includes("[")&&(y.posix=!0,G.includes(":"))){let ne=y.value.lastIndexOf("["),ce=y.value.slice(0,ne),Ee=y.value.slice(ne+2),fe=lx[Ee];if(fe){y.value=ce+fe,p.backtrack=!0,L(),!s.output&&o.indexOf(y)===1&&(s.output=g);continue}}}(v==="["&&I()!==":"||v==="-"&&I()==="]")&&(v=`\\${v}`),v==="]"&&(y.value==="["||y.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&y.value==="["&&(v="^"),y.value+=v,z({value:v});continue}if(p.quotes===1&&v!=='"'){v=yt.escapeRegex(v),y.value+=v,z({value:v});continue}if(v==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&j({type:"text",value:v});continue}if(v==="("){H("parens"),j({type:"paren",value:v});continue}if(v===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(bn("opening","("));let G=m[m.length-1];if(G&&p.parens===G.parens+1){re(m.pop());continue}j({type:"paren",value:v,output:p.parens?")":"\\)"}),B("parens");continue}if(v==="["){if(r.nobracket===!0||!$().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(bn("closing","]"));v=`\\${v}`}else H("brackets");j({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){j({type:"text",value:v,output:`\\${v}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(bn("opening","["));j({type:"text",value:v,output:`\\${v}`});continue}B("brackets");let G=y.value.slice(1);if(y.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(v=`/${v}`),y.value+=v,z({value:v}),r.literalBrackets===!1||yt.hasRegexChars(G))continue;let ne=yt.escapeRegex(y.value);if(p.output=p.output.slice(0,-y.value.length),r.literalBrackets===!0){p.output+=ne,y.value=ne;continue}y.value=`(${a}${ne}|${y.value})`,p.output+=y.value;continue}if(v==="{"&&r.nobrace!==!0){H("braces");let G={type:"brace",value:v,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};E.push(G),j(G);continue}if(v==="}"){let G=E[E.length-1];if(r.nobrace===!0||!G){j({type:"text",value:v,output:v});continue}let ne=")";if(G.dots===!0){let ce=o.slice(),Ee=[];for(let fe=ce.length-1;fe>=0&&(o.pop(),ce[fe].type!=="brace");fe--)ce[fe].type!=="dots"&&Ee.unshift(ce[fe].value);ne=dx(Ee,r),p.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ce=p.output.slice(0,G.outputIndex),Ee=p.tokens.slice(G.tokensIndex);G.value=G.output="\\{",v=ne="\\}",p.output=ce;for(let fe of Ee)p.output+=fe.output||fe.value}j({type:"brace",value:v,output:ne}),B("braces"),E.pop();continue}if(v==="|"){m.length>0&&m[m.length-1].conditions++,j({type:"text",value:v});continue}if(v===","){let G=v,ne=E[E.length-1];ne&&C[C.length-1]==="braces"&&(ne.comma=!0,G="|"),j({type:"comma",value:v,output:G});continue}if(v==="/"){if(y.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",o.pop(),y=s;continue}j({type:"slash",value:v,output:d});continue}if(v==="."){if(p.braces>0&&y.type==="dot"){y.value==="."&&(y.output=l);let G=E[E.length-1];y.type="dots",y.output+=v,y.value+=v,G.dots=!0;continue}if(p.braces+p.parens===0&&y.type!=="bos"&&y.type!=="slash"){j({type:"text",value:v,output:l});continue}j({type:"dot",value:v,output:l});continue}if(v==="?"){if(!(y&&y.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){te("qmark",v);continue}if(y&&y.type==="paren"){let ne=I(),ce=v;if(ne==="<"&&!yt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(y.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test($()))&&(ce=`\\${v}`),j({type:"text",value:v,output:ce});continue}if(r.dot!==!0&&(y.type==="slash"||y.type==="bos")){j({type:"qmark",value:v,output:D});continue}j({type:"qmark",value:v,output:N});continue}if(v==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){te("negate",v);continue}if(r.nonegate!==!0&&p.index===0){oe();continue}}if(v==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){te("plus",v);continue}if(y&&y.value==="("||r.regex===!1){j({type:"plus",value:v,output:h});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||p.parens>0){j({type:"plus",value:v});continue}j({type:"plus",value:h});continue}if(v==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){j({type:"at",extglob:!0,value:v,output:""});continue}j({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let G=fx.exec($());G&&(v+=G[0],p.index+=G[0].length),j({type:"text",value:v});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=v,y.output=x,p.backtrack=!0,p.globstar=!0,U(v);continue}let q=$();if(r.noextglob!==!0&&/^\([^?]/.test(q)){te("star",v);continue}if(y.type==="star"){if(r.noglobstar===!0){U(v);continue}let G=y.prev,ne=G.prev,ce=G.type==="slash"||G.type==="bos",Ee=ne&&(ne.type==="star"||ne.type==="globstar");if(r.bash===!0&&(!ce||q[0]&&q[0]!=="/")){j({type:"star",value:v,output:""});continue}let fe=p.braces>0&&(G.type==="comma"||G.type==="brace"),Re=m.length&&(G.type==="pipe"||G.type==="paren");if(!ce&&G.type!=="paren"&&!fe&&!Re){j({type:"star",value:v,output:""});continue}for(;q.slice(0,3)==="/**";){let xe=e[p.index+4];if(xe&&xe!=="/")break;q=q.slice(3),U("/**",3)}if(G.type==="bos"&&P()){y.type="globstar",y.value+=v,y.output=b(r),p.output=y.output,p.globstar=!0,U(v);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Ee&&P()){p.output=p.output.slice(0,-(G.output+y.output).length),G.output=`(?:${G.output}`,y.type="globstar",y.output=b(r)+(r.strictSlashes?")":"|$)"),y.value+=v,p.globstar=!0,p.output+=G.output+y.output,U(v);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&q[0]==="/"){let xe=q[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(G.output+y.output).length),G.output=`(?:${G.output}`,y.type="globstar",y.output=`${b(r)}${d}|${d}${xe})`,y.value+=v,p.output+=G.output+y.output,p.globstar=!0,U(v+L()),j({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&q[0]==="/"){y.type="globstar",y.value+=v,y.output=`(?:^|${d}|${b(r)}${d})`,p.output=y.output,p.globstar=!0,U(v+L()),j({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-y.output.length),y.type="globstar",y.output=b(r),y.value+=v,p.output+=y.output,p.globstar=!0,U(v);continue}let ie={type:"star",value:v,output:x};if(r.bash===!0){ie.output=".*?",(y.type==="bos"||y.type==="slash")&&(ie.output=O+ie.output),j(ie);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&r.regex===!0){ie.output=v,j(ie);continue}(p.index===p.start||y.type==="slash"||y.type==="dot")&&(y.type==="dot"?(p.output+=k,y.output+=k):r.dot===!0?(p.output+=_,y.output+=_):(p.output+=O,y.output+=O),I()!=="*"&&(p.output+=g,y.output+=g)),j(ie)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(bn("closing","]"));p.output=yt.escapeLast(p.output,"["),B("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(bn("closing",")"));p.output=yt.escapeLast(p.output,"("),B("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(bn("closing","}"));p.output=yt.escapeLast(p.output,"{"),B("braces")}if(r.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket")&&j({type:"maybe_slash",value:"",output:`${d}?`}),p.backtrack===!0){p.output="";for(let q of p.tokens)p.output+=q.output!=null?q.output:q.value,q.suffix&&(p.output+=q.suffix)}return p};su.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Hs,r.maxLength):Hs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=dp[e]||e;let s=yt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:g}=qs.globChars(s),S=r.dot?l:f,w=r.dot?h:f,k=r.capture?"":"?:",_={negated:!1,prefix:""},N=r.bash===!0?".*?":d;r.capture&&(N=`(${N})`);let D=O=>O.noglobstar===!0?N:`(${k}(?:(?!${g}${O.dot?c:o}).)*?)`,A=O=>{switch(O){case"*":return`${S}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${S}${N}${o}${u}${N}`;case"*/*":return`${S}${N}${a}${u}${w}${N}`;case"**":return S+D(r);case"**/*":return`(?:${S}${D(r)}${a})?${w}${u}${N}`;case"**/*.*":return`(?:${S}${D(r)}${a})?${w}${N}${o}${u}${N}`;case"**/.*":return`(?:${S}${D(r)}${a})?${o}${u}${N}`;default:{let T=/^(.*?)\.(\w+)$/.exec(O);if(!T)return;let x=A(T[1]);return x?x+o+T[2]:void 0}}},R=yt.removePrefix(e,_),b=A(R);return b&&r.strictSlashes!==!0&&(b+=`${a}?`),b};pp.exports=su});var yp=F((Tj,mp)=>{"use strict";var px=M("path"),gx=hp(),ou=gp(),au=bi(),mx=xi(),yx=e=>e&&typeof e=="object"&&!Array.isArray(e),Pe=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Pe(h,t,r));return h=>{for(let d of f){let g=d(h);if(g)return g}return!1}}let n=yx(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||{},s=au.isWindows(t),o=n?Pe.compileRe(e,t):Pe.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=Pe(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:h,match:d,output:g}=Pe.test(f,o,t,{glob:e,posix:s}),S={glob:e,state:a,regex:o,posix:s,input:f,output:g,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(S),h===!1?(S.isMatch=!1,l?S:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(S),S.isMatch=!1,l?S:!1):(typeof i.onMatch=="function"&&i.onMatch(S),l?S:!0)};return r&&(c.state=a),c};Pe.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 s=r||{},o=s.format||(i?au.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Pe.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Pe.matchBase=(e,t,r,n=au.isWindows(r))=>(t instanceof RegExp?t:Pe.makeRe(t,r)).test(px.basename(e));Pe.isMatch=(e,t,r)=>Pe(t,r)(e);Pe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Pe.parse(r,t)):ou(e,{...t,fastpaths:!1});Pe.scan=(e,t)=>gx(e,t);Pe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Pe.toRegex(a,t);return n===!0&&(u.state=e),u};Pe.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=ou.fastpaths(e,t)),i.output||(i=ou(e,t)),Pe.compileRe(i,t,r,n)};Pe.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/$^/}};Pe.constants=mx;mp.exports=Pe});var Ep=F((Ij,vp)=>{"use strict";vp.exports=yp()});var Ri=F((Lj,Cp)=>{"use strict";var Sp=M("util"),wp=Zd(),qt=Ep(),uu=bi(),Ap=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=qt(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let d of e){let g=l(d,!0);(h?!g.isMatch:g.isMatch)&&(h?n.add(g.output):(n.delete(g.output),i.add(g.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));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(f=>f.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>qt(e,t);be.isMatch=(e,t,r)=>qt(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(be(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Sp.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>be.contains(e,n,r));if(typeof t=="string"){if(Ap(e)||Ap(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(!uu.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=be(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};be.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=qt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};be.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=qt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Sp.inspect(e)}"`);return[].concat(t).every(n=>qt(n,r)(e))};be.capture=(e,t,r)=>{let n=uu.isWindows(r),s=qt.makeRe(String(e),{...r,capture:!0}).exec(n?uu.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};be.makeRe=(...e)=>qt.makeRe(...e);be.scan=(...e)=>qt.scan(...e);be.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of wp(String(n),t))r.push(qt.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]:wp(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};Cp.exports=be});var Pp=F(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.removeDuplicateSlashes=ae.matchAny=ae.convertPatternsToRe=ae.makeRe=ae.getPatternParts=ae.expandBraceExpansion=ae.expandPatternsWithBraceExpansion=ae.isAffectDepthOfReadingPattern=ae.endsWithSlashGlobStar=ae.hasGlobStar=ae.getBaseDirectory=ae.isPatternRelatedToParentDirectory=ae.getPatternsOutsideCurrentDirectory=ae.getPatternsInsideCurrentDirectory=ae.getPositivePatterns=ae.getNegativePatterns=ae.isPositivePattern=ae.isNegativePattern=ae.convertToNegativePattern=ae.convertToPositivePattern=ae.isDynamicPattern=ae.isStaticPattern=void 0;var vx=M("path"),Ex=yd(),cu=Ri(),_p="**",Ax="\\",Sx=/[*?]|^!/,wx=/\[[^[]*]/,Cx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,_x=/[!*+?@]\([^(]*\)/,xx=/,|\.\./,bx=/(?!^)\/{2,}/g;function xp(e,t={}){return!bp(e,t)}ae.isStaticPattern=xp;function bp(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Ax)||Sx.test(e)||wx.test(e)||Cx.test(e)||t.extglob!==!1&&_x.test(e)||t.braceExpansion!==!1&&Ox(e))}ae.isDynamicPattern=bp;function Ox(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 xx.test(n)}function Rx(e){return Gs(e)?e.slice(1):e}ae.convertToPositivePattern=Rx;function Fx(e){return"!"+e}ae.convertToNegativePattern=Fx;function Gs(e){return e.startsWith("!")&&e[1]!=="("}ae.isNegativePattern=Gs;function Op(e){return!Gs(e)}ae.isPositivePattern=Op;function kx(e){return e.filter(Gs)}ae.getNegativePatterns=kx;function Px(e){return e.filter(Op)}ae.getPositivePatterns=Px;function Dx(e){return e.filter(t=>!lu(t))}ae.getPatternsInsideCurrentDirectory=Dx;function Tx(e){return e.filter(lu)}ae.getPatternsOutsideCurrentDirectory=Tx;function lu(e){return e.startsWith("..")||e.startsWith("./..")}ae.isPatternRelatedToParentDirectory=lu;function Ix(e){return Ex(e,{flipBackslashes:!1})}ae.getBaseDirectory=Ix;function Lx(e){return e.includes(_p)}ae.hasGlobStar=Lx;function Rp(e){return e.endsWith("/"+_p)}ae.endsWithSlashGlobStar=Rp;function Nx(e){let t=vx.basename(e);return Rp(e)||xp(t)}ae.isAffectDepthOfReadingPattern=Nx;function Bx(e){return e.reduce((t,r)=>t.concat(Fp(r)),[])}ae.expandPatternsWithBraceExpansion=Bx;function Fp(e){let t=cu.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}ae.expandBraceExpansion=Fp;function $x(e,t){let{parts:r}=cu.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}ae.getPatternParts=$x;function kp(e,t){return cu.makeRe(e,t)}ae.makeRe=kp;function Mx(e,t){return e.map(r=>kp(r,t))}ae.convertPatternsToRe=Mx;function jx(e,t){return t.some(r=>r.test(e))}ae.matchAny=jx;function qx(e){return e.replace(bx,"/")}ae.removeDuplicateSlashes=qx});var Tp=F(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.merge=void 0;var Hx=Ha();function Gx(e){let t=Hx(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Dp(e)),t.once("end",()=>Dp(e)),t}Us.merge=Gx;function Dp(e){e.forEach(t=>t.emit("close"))}});var Ip=F(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.isEmpty=On.isString=void 0;function Ux(e){return typeof e=="string"}On.isString=Ux;function Wx(e){return e===""}On.isEmpty=Wx});var Zt=F(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.string=Ge.stream=Ge.pattern=Ge.path=Ge.fs=Ge.errno=Ge.array=void 0;var Yx=id();Ge.array=Yx;var zx=sd();Ge.errno=zx;var Vx=od();Ge.fs=Vx;var Kx=ld();Ge.path=Kx;var Xx=Pp();Ge.pattern=Xx;var Qx=Tp();Ge.stream=Qx;var Jx=Ip();Ge.string=Jx});var $p=F(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.convertPatternGroupToTask=Ue.convertPatternGroupsToTasks=Ue.groupPatternsByBaseDirectory=Ue.getNegativePatternsAsPositive=Ue.getPositivePatterns=Ue.convertPatternsToTasks=Ue.generate=void 0;var Lt=Zt();function Zx(e,t){let r=Lp(e,t),n=Lp(t.ignore,t),i=Np(r),s=Bp(r,n),o=i.filter(f=>Lt.pattern.isStaticPattern(f,t)),a=i.filter(f=>Lt.pattern.isDynamicPattern(f,t)),u=fu(o,s,!1),c=fu(a,s,!0);return u.concat(c)}Ue.generate=Zx;function Lp(e,t){let r=e;return t.braceExpansion&&(r=Lt.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Lt.pattern.removeDuplicateSlashes(n))}function fu(e,t,r){let n=[],i=Lt.pattern.getPatternsOutsideCurrentDirectory(e),s=Lt.pattern.getPatternsInsideCurrentDirectory(e),o=hu(i),a=hu(s);return n.push(...du(o,t,r)),"."in a?n.push(pu(".",s,t,r)):n.push(...du(a,t,r)),n}Ue.convertPatternsToTasks=fu;function Np(e){return Lt.pattern.getPositivePatterns(e)}Ue.getPositivePatterns=Np;function Bp(e,t){return Lt.pattern.getNegativePatterns(e).concat(t).map(Lt.pattern.convertToPositivePattern)}Ue.getNegativePatternsAsPositive=Bp;function hu(e){let t={};return e.reduce((r,n)=>{let i=Lt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}Ue.groupPatternsByBaseDirectory=hu;function du(e,t,r){return Object.keys(e).map(n=>pu(n,e[n],t,r))}Ue.convertPatternGroupsToTasks=du;function pu(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Lt.pattern.convertToNegativePattern))}}Ue.convertPatternGroupToTask=pu});var jp=F(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.read=void 0;function eb(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Mp(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){gu(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Mp(r,s);return}gu(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),gu(r,o)})})}Ws.read=eb;function Mp(e,t){e(t)}function gu(e,t){e(null,t)}});var qp=F(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.read=void 0;function tb(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}}Ys.read=tb});var Hp=F(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createFileSystemAdapter=Sr.FILE_SYSTEM_ADAPTER=void 0;var zs=M("fs");Sr.FILE_SYSTEM_ADAPTER={lstat:zs.lstat,stat:zs.stat,lstatSync:zs.lstatSync,statSync:zs.statSync};function rb(e){return e===void 0?Sr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Sr.FILE_SYSTEM_ADAPTER),e)}Sr.createFileSystemAdapter=rb});var Gp=F(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var nb=Hp(),mu=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=nb.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??r}};yu.default=mu});var Vr=F(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.statSync=wr.stat=wr.Settings=void 0;var Up=jp(),ib=qp(),vu=Gp();wr.Settings=vu.default;function sb(e,t,r){if(typeof t=="function"){Up.read(e,Eu(),t);return}Up.read(e,Eu(t),r)}wr.stat=sb;function ob(e,t){let r=Eu(t);return ib.read(e,r)}wr.statSync=ob;function Eu(e={}){return e instanceof vu.default?e:new vu.default(e)}});var zp=F((Yj,Yp)=>{var Wp;Yp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Wp||(Wp=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Kp=F((zj,Vp)=>{Vp.exports=ub;var ab=zp();function ub(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?ab(c):c()}function a(u,c,f){r[u]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,f){a(u,c,f)})}):e.forEach(function(u,c){u(function(f,l){a(c,f,l)})}):o(null),s=!1}});var Au=F(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Vs=process.versions.node.split(".");if(Vs[0]===void 0||Vs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Xp=Number.parseInt(Vs[0],10),cb=Number.parseInt(Vs[1],10),Qp=10,lb=10,fb=Xp>Qp,hb=Xp===Qp&&cb>=lb;Ks.IS_SUPPORT_READDIR_WITH_FILE_TYPES=fb||hb});var Jp=F(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.createDirentFromStats=void 0;var Su=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 db(e,t){return new Su(e,t)}Xs.createDirentFromStats=db});var wu=F(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.fs=void 0;var pb=Jp();Qs.fs=pb});var Cu=F(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.joinPathSegments=void 0;function gb(e,t,r){return e.endsWith(r)?e+t:e+r+t}Js.joinPathSegments=gb});var ig=F(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.readdir=Cr.readdirWithFileTypes=Cr.read=void 0;var mb=Vr(),Zp=Kp(),yb=Au(),eg=wu(),tg=Cu();function vb(e,t,r){if(!t.stats&&yb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){rg(e,t,r);return}ng(e,t,r)}Cr.read=vb;function rg(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Zs(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:tg.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){_u(r,s);return}let o=s.map(a=>Eb(a,t));Zp(o,(a,u)=>{if(a!==null){Zs(r,a);return}_u(r,u)})})}Cr.readdirWithFileTypes=rg;function Eb(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=eg.fs.createDirentFromStats(e.name,i),r(null,e)})}}function ng(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Zs(r,n);return}let s=i.map(o=>{let a=tg.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{mb.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:eg.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),u(null,l)})}});Zp(s,(o,a)=>{if(o!==null){Zs(r,o);return}_u(r,a)})})}Cr.readdir=ng;function Zs(e,t){e(t)}function _u(e,t){e(null,t)}});var cg=F(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.readdir=_r.readdirWithFileTypes=_r.read=void 0;var Ab=Vr(),Sb=Au(),sg=wu(),og=Cu();function wb(e,t){return!t.stats&&Sb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ag(e,t):ug(e,t)}_r.read=wb;function ag(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:og.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=sg.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}_r.readdirWithFileTypes=ag;function ug(e,t){return t.fs.readdirSync(e).map(n=>{let i=og.joinPathSegments(e,n,t.pathSegmentSeparator),s=Ab.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:sg.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}_r.readdir=ug});var lg=F(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.createFileSystemAdapter=xr.FILE_SYSTEM_ADAPTER=void 0;var Rn=M("fs");xr.FILE_SYSTEM_ADAPTER={lstat:Rn.lstat,stat:Rn.stat,lstatSync:Rn.lstatSync,statSync:Rn.statSync,readdir:Rn.readdir,readdirSync:Rn.readdirSync};function Cb(e){return e===void 0?xr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xr.FILE_SYSTEM_ADAPTER),e)}xr.createFileSystemAdapter=Cb});var fg=F(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var _b=M("path"),xb=Vr(),bb=lg(),xu=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=bb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_b.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new xb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};bu.default=xu});var eo=F(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.Settings=br.scandirSync=br.scandir=void 0;var hg=ig(),Ob=cg(),Ou=fg();br.Settings=Ou.default;function Rb(e,t,r){if(typeof t=="function"){hg.read(e,Ru(),t);return}hg.read(e,Ru(t),r)}br.scandir=Rb;function Fb(e,t){let r=Ru(t);return Ob.read(e,r)}br.scandirSync=Fb;function Ru(e={}){return e instanceof Ou.default?e:new Ou.default(e)}});var pg=F((nq,dg)=>{"use strict";function kb(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}dg.exports=kb});var mg=F((iq,Fu)=>{"use strict";var Pb=pg();function gg(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Pb(Db),i=null,s=null,o=0,a=null,u={push:S,drain:wt,saturated:wt,pause:f,paused:!1,get concurrency(){return r},set concurrency(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=A,!u.paused)for(;i&&o<r;)o++,k()},running:c,resume:d,idle:g,length:l,getQueue:h,unshift:w,empty:wt,kill:_,killAndDrain:N,error:D};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var A=i,R=0;A;)A=A.next,R++;return R}function h(){for(var A=i,R=[];A;)R.push(A.value),A=A.next;return R}function d(){if(u.paused){if(u.paused=!1,i===null){o++,k();return}for(;i&&o<r;)o++,k()}}function g(){return o===0&&u.length()===0}function S(A,R){var b=n.get();b.context=e,b.release=k,b.value=A,b.callback=R||wt,b.errorHandler=a,o>=r||u.paused?s?(s.next=b,s=b):(i=b,s=b,u.saturated()):(o++,t.call(e,b.value,b.worked))}function w(A,R){var b=n.get();b.context=e,b.release=k,b.value=A,b.callback=R||wt,b.errorHandler=a,o>=r||u.paused?i?(b.next=i,i=b):(i=b,s=b,u.saturated()):(o++,t.call(e,b.value,b.worked))}function k(A){A&&n.release(A);var R=i;R&&o<=r?u.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,t.call(e,R.value,R.worked),s===null&&u.empty()):--o===0&&u.drain()}function _(){i=null,s=null,u.drain=wt}function N(){i=null,s=null,u.drain(),u.drain=wt}function D(A){a=A}}function wt(){}function Db(){this.value=null,this.callback=wt,this.next=null,this.release=wt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=wt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Tb(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=gg(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(f){var l=new Promise(function(h,d){s(f,function(g,S){if(g){d(g);return}h(S)})});return l.catch(wt),l}function u(f){var l=new Promise(function(h,d){o(f,function(g,S){if(g){d(g);return}h(S)})});return l.catch(wt),l}function c(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}Fu.exports=gg;Fu.exports.promise=Tb});var to=F(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.joinPathSegments=Ht.replacePathSegmentSeparator=Ht.isAppliedFilter=Ht.isFatalError=void 0;function Ib(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ht.isFatalError=Ib;function Lb(e,t){return e===null||e(t)}Ht.isAppliedFilter=Lb;function Nb(e,t){return e.split(/[/\\]/).join(t)}Ht.replacePathSegmentSeparator=Nb;function Bb(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ht.joinPathSegments=Bb});var Du=F(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var $b=to(),ku=class{constructor(t,r){this._root=t,this._settings=r,this._root=$b.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Pu.default=ku});var Lu=F(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Mb=M("events"),jb=eo(),qb=mg(),ro=to(),Hb=Du(),Tu=class extends Hb.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=jb.scandir,this._emitter=new Mb.EventEmitter,this._queue=qb(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 s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!ro.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=ro.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ro.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&ro.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Iu.default=Tu});var yg=F(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var Gb=Lu(),Nu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Gb.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Ub(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Wb(t,this._storage)}),this._reader.read()}};Bu.default=Nu;function Ub(e,t){e(t)}function Wb(e,t){e(null,t)}});var vg=F(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Yb=M("stream"),zb=Lu(),$u=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new zb.default(this._root,this._settings),this._stream=new Yb.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}};Mu.default=$u});var Eg=F(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Vb=eo(),no=to(),Kb=Du(),ju=class extends Kb.default{constructor(){super(...arguments),this._scandir=Vb.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(no.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=no.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),no.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&no.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};qu.default=ju});var Ag=F(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var Xb=Eg(),Hu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Xb.default(this._root,this._settings)}read(){return this._reader.read()}};Gu.default=Hu});var Sg=F(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Qb=M("path"),Jb=eo(),Uu=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,Qb.sep),this.fsScandirSettings=new Jb.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??r}};Wu.default=Uu});var so=F(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var wg=yg(),Zb=vg(),eO=Ag(),Yu=Sg();Gt.Settings=Yu.default;function tO(e,t,r){if(typeof t=="function"){new wg.default(e,io()).read(t);return}new wg.default(e,io(t)).read(r)}Gt.walk=tO;function rO(e,t){let r=io(t);return new eO.default(e,r).read()}Gt.walkSync=rO;function nO(e,t){let r=io(t);return new Zb.default(e,r).read()}Gt.walkStream=nO;function io(e={}){return e instanceof Yu.default?e:new Yu.default(e)}});var oo=F(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var iO=M("path"),sO=Vr(),Cg=Zt(),zu=class{constructor(t){this._settings=t,this._fsStatSettings=new sO.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return iO.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Cg.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Cg.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Vu.default=zu});var Qu=F(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var oO=M("stream"),aO=Vr(),uO=so(),cO=oo(),Ku=class extends cO.default{constructor(){super(...arguments),this._walkStream=uO.walkStream,this._stat=aO.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new oO.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);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,s)=>i===null?r(s):n(i))})}};Xu.default=Ku});var _g=F(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var lO=so(),fO=oo(),hO=Qu(),Ju=class extends fO.default{constructor(){super(...arguments),this._walkAsync=lO.walk,this._readerStream=new hO.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Zu.default=Ju});var xg=F(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var Fi=Zt(),ec=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return Fi.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Fi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Fi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Fi.array.splitWhen(t,r=>r.dynamic&&Fi.pattern.hasGlobStar(r.pattern))}};tc.default=ec});var bg=F(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var dO=xg(),rc=class extends dO.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let f=s.segments[c];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};nc.default=rc});var Og=F(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var ao=Zt(),pO=bg(),ic=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new pO.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(ao.pattern.isAffectDepthOfReadingPattern);return ao.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=ao.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,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!ao.pattern.matchAny(t,r)}};sc.default=ic});var Rg=F(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Kr=Zt(),oc=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Kr.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Kr.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return s=>this._filter(s,n,i)}_filter(t,r,n){let i=Kr.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;let s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(i,n,s);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,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=Kr.path.makeAbsolute(this._settings.cwd,t);return Kr.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Kr.pattern.matchAny(t,r);return!i&&n?Kr.pattern.matchAny(t+"/",r):i}};ac.default=oc});var Fg=F(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var gO=Zt(),uc=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return gO.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};cc.default=uc});var Pg=F(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var kg=Zt(),lc=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=kg.path.makeAbsolute(this._settings.cwd,r),r=kg.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};fc.default=lc});var uo=F(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var mO=M("path"),yO=Og(),vO=Rg(),EO=Fg(),AO=Pg(),hc=class{constructor(t){this._settings=t,this.errorFilter=new EO.default(this._settings),this.entryFilter=new vO.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new yO.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new AO.default(this._settings)}_getRootDirectory(t){return mO.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}}};dc.default=hc});var Dg=F(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var SO=_g(),wO=uo(),pc=class extends wO.default{constructor(){super(...arguments),this._reader=new SO.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};gc.default=pc});var Tg=F(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var CO=M("stream"),_O=Qu(),xO=uo(),mc=class extends xO.default{constructor(){super(...arguments),this._reader=new _O.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new CO.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};yc.default=mc});var Ig=F(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var bO=Vr(),OO=so(),RO=oo(),vc=class extends RO.default{constructor(){super(...arguments),this._walkSync=OO.walkSync,this._statSync=bO.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}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)}};Ec.default=vc});var Lg=F(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var FO=Ig(),kO=uo(),Ac=class extends kO.default{constructor(){super(...arguments),this._reader=new FO.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)}};Sc.default=Ac});var Ng=F(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fn=M("fs"),PO=M("os"),DO=Math.max(PO.cpus().length,1);kn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Fn.lstat,lstatSync:Fn.lstatSync,stat:Fn.stat,statSync:Fn.statSync,readdir:Fn.readdir,readdirSync:Fn.readdirSync};var wc=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,DO),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),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},kn.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};kn.default=wc});var bc=F((Fq,$g)=>{"use strict";var Bg=$p(),TO=Dg(),IO=Tg(),LO=Lg(),Cc=Ng(),Ct=Zt();async function _c(e,t){Nt(e);let r=xc(e,TO.default,t),n=await Promise.all(r);return Ct.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){Nt(c);let l=xc(c,LO.default,f);return Ct.array.flatten(l)}e.sync=t;function r(c,f){Nt(c);let l=xc(c,IO.default,f);return Ct.stream.merge(l)}e.stream=r;function n(c,f){Nt(c);let l=[].concat(c),h=new Cc.default(f);return Bg.generate(l,h)}e.generateTasks=n;function i(c,f){Nt(c);let l=new Cc.default(f);return Ct.pattern.isDynamicPattern(c,l)}e.isDynamicPattern=i;function s(c){return Nt(c),Ct.path.escape(c)}e.escapePath=s;function o(c){return Nt(c),Ct.path.convertPathToPattern(c)}e.convertPathToPattern=o;let a;(function(c){function f(h){return Nt(h),Ct.path.escapePosixPath(h)}c.escapePath=f;function l(h){return Nt(h),Ct.path.convertPosixPathToPattern(h)}c.convertPathToPattern=l})(a=e.posix||(e.posix={}));let u;(function(c){function f(h){return Nt(h),Ct.path.escapeWindowsPath(h)}c.escapePath=f;function l(h){return Nt(h),Ct.path.convertWindowsPathToPattern(h)}c.convertPathToPattern=l})(u=e.win32||(e.win32={}))})(_c||(_c={}));function xc(e,t,r){let n=[].concat(e),i=new Cc.default(r),s=Bg.generate(n,i),o=new t(i);return s.map(o.read,o)}function Nt(e){if(![].concat(e).every(n=>Ct.string.isString(n)&&!Ct.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}$g.exports=_c});var jg=F(Xr=>{"use strict";var{promisify:NO}=M("util"),Mg=M("fs");async function Oc(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await NO(Mg[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function Rc(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return Mg[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}Xr.isFile=Oc.bind(null,"stat","isFile");Xr.isDirectory=Oc.bind(null,"stat","isDirectory");Xr.isSymlink=Oc.bind(null,"lstat","isSymbolicLink");Xr.isFileSync=Rc.bind(null,"statSync","isFile");Xr.isDirectorySync=Rc.bind(null,"statSync","isDirectory");Xr.isSymlinkSync=Rc.bind(null,"lstatSync","isSymbolicLink")});var Wg=F((Pq,Fc)=>{"use strict";var Qr=M("path"),qg=jg(),Hg=e=>e.length>1?`{${e.join(",")}}`:e[0],Gg=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return Qr.isAbsolute(r)?r:Qr.join(t,r)},BO=(e,t)=>Qr.extname(e)?`**/${e}`:`**/${e}.${Hg(t)}`,Ug=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>Qr.posix.join(e,BO(r,t.extensions))):t.files?t.files.map(r=>Qr.posix.join(e,`**/${r}`)):t.extensions?[Qr.posix.join(e,`**/*.${Hg(t.extensions)}`)]:[Qr.posix.join(e,"**")]};Fc.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await qg.isDirectory(Gg(n,t.cwd))?Ug(n,t):n));return[].concat.apply([],r)};Fc.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>qg.isDirectorySync(Gg(n,t.cwd))?Ug(n,t):n);return[].concat.apply([],r)}});var e0=F((Dq,Zg)=>{function Yg(e){return Array.isArray(e)?e:[e]}var Dc="",zg=" ",kc="\\",$O=/^\s+$/,MO=/(?:[^\\]|^)\\$/,jO=/^\\!/,qO=/^\\#/,HO=/\r?\n/g,GO=/^\.*\/|^\.+$/,Pc="/",Xg="node-ignore";typeof Symbol<"u"&&(Xg=Symbol.for("node-ignore"));var Vg=Xg,UO=(e,t,r)=>Object.defineProperty(e,t,{value:r}),WO=/([0-z])-([0-z])/g,Qg=()=>!1,YO=e=>e.replace(WO,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:Dc),zO=e=>{let{length:t}=e;return e.slice(0,t-t%2)},VO=[[/^\uFEFF/,()=>Dc],[/\\?\s+$/,e=>e.indexOf("\\")===0?zg:Dc],[/\\\s/g,()=>zg],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>kc],[/\\\\/g,()=>kc],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===kc?`\\[${r}${zO(n)}${i}`:i==="]"&&n.length%2===0?`[${YO(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Kg=Object.create(null),KO=(e,t)=>{let r=Kg[e];return r||(r=VO.reduce((n,i)=>n.replace(i[0],i[1].bind(e)),e),Kg[e]=r),t?new RegExp(r,"i"):new RegExp(r)},Lc=e=>typeof e=="string",XO=e=>e&&Lc(e)&&!$O.test(e)&&!MO.test(e)&&e.indexOf("#")!==0,QO=e=>e.split(HO),Tc=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},JO=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(jO,"!").replace(qO,"#");let i=KO(e,t);return new Tc(r,e,n,i)},ZO=(e,t)=>{throw new t(e)},er=(e,t,r)=>Lc(e)?e?er.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Jg=e=>GO.test(e);er.isNotRelative=Jg;er.convert=e=>e;var Ic=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){UO(this,Vg,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[Vg]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(XO(t)){let r=JO(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Yg(Lc(t)?QO(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&er.convert(t);return er(s,t,this._allowRelativePaths?Qg:ZO),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(Pc)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(Pc)+Pc,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Yg(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},co=e=>new Ic(e),eR=e=>er(e&&er.convert(e),e,Qg);co.isPathValid=eR;co.default=co;Zg.exports=co;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");er.convert=e;let t=/^[a-z]:\//i;er.isNotRelative=r=>t.test(r)||Jg(r)}});var r0=F((Tq,t0)=>{"use strict";t0.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var c0=F((Iq,Nc)=>{"use strict";var{promisify:tR}=M("util"),n0=M("fs"),tr=M("path"),i0=bc(),rR=e0(),ki=r0(),s0=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],nR=tR(n0.readFile),iR=e=>t=>t.startsWith("!")?"!"+tr.posix.join(e,t.slice(1)):tr.posix.join(e,t),sR=(e,t)=>{let r=ki(tr.relative(t.cwd,tr.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(iR(r))},o0=e=>{let t=rR();for(let r of e)t.add(sR(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},oR=(e,t)=>{if(e=ki(e),tr.isAbsolute(t)){if(ki(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return tr.join(e,t)},a0=(e,t)=>r=>e.ignores(ki(tr.relative(t,oR(t,r.path||r)))),aR=async(e,t)=>{let r=tr.join(t,e),n=await nR(r,"utf8");return{cwd:t,filePath:r,content:n}},uR=(e,t)=>{let r=tr.join(t,e),n=n0.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},u0=({ignore:e=[],cwd:t=ki(process.cwd())}={})=>({ignore:e,cwd:t});Nc.exports=async e=>{e=u0(e);let t=await i0("**/.gitignore",{ignore:s0.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(i=>aR(i,e.cwd))),n=o0(r);return a0(n,e.cwd)};Nc.exports.sync=e=>{e=u0(e);let r=i0.sync("**/.gitignore",{ignore:s0.concat(e.ignore),cwd:e.cwd}).map(i=>uR(i,e.cwd)),n=o0(r);return a0(n,e.cwd)}});var f0=F((Lq,l0)=>{"use strict";var{Transform:cR}=M("stream"),lo=class extends cR{constructor(){super({objectMode:!0})}},Bc=class extends lo{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},$c=class extends lo{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};l0.exports={FilterStream:Bc,UniqueStream:$c}});var m0=F((Nq,Jr)=>{"use strict";var d0=M("fs"),fo=ed(),lR=Ha(),ho=bc(),po=Wg(),Mc=c0(),{FilterStream:fR,UniqueStream:hR}=f0(),p0=()=>!1,h0=e=>e[0]==="!",dR=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},pR=(e={})=>{if(!e.cwd)return;let t;try{t=d0.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},gR=e=>e.stats instanceof d0.Stats?e.path:e,go=(e,t)=>{e=fo([].concat(e)),dR(e),pR(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,i]of e.entries()){if(h0(i))continue;let s=e.slice(n).filter(a=>h0(a)).map(a=>a.slice(1)),o={...t,ignore:t.ignore.concat(s)};r.push({pattern:i,options:o})}return r},mR=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},jc=(e,t)=>e.options.expandDirectories?mR(e,t):[e.pattern],g0=e=>e&&e.gitignore?Mc.sync({cwd:e.cwd,ignore:e.ignore}):p0,qc=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=po.sync(r.ignore)),{pattern:t,options:r}};Jr.exports=async(e,t)=>{let r=go(e,t),n=async()=>t&&t.gitignore?Mc({cwd:t.cwd,ignore:t.ignore}):p0,i=async()=>{let u=await Promise.all(r.map(async c=>{let f=await jc(c,po);return Promise.all(f.map(qc(c)))}));return fo(...u)},[s,o]=await Promise.all([n(),i()]),a=await Promise.all(o.map(u=>ho(u.pattern,u.options)));return fo(...a).filter(u=>!s(gR(u)))};Jr.exports.sync=(e,t)=>{let r=go(e,t),n=[];for(let o of r){let a=jc(o,po.sync).map(qc(o));n.push(...a)}let i=g0(t),s=[];for(let o of n)s=fo(s,ho.sync(o.pattern,o.options));return s.filter(o=>!i(o))};Jr.exports.stream=(e,t)=>{let r=go(e,t),n=[];for(let a of r){let u=jc(a,po.sync).map(qc(a));n.push(...u)}let i=g0(t),s=new fR(a=>!i(a)),o=new hR;return lR(n.map(a=>ho.stream(a.pattern,a.options))).pipe(s).pipe(o)};Jr.exports.generateGlobTasks=go;Jr.exports.hasMagic=(e,t)=>[].concat(e).some(r=>ho.isDynamicPattern(r,t));Jr.exports.gitignore=Mc});var yo=F(Pn=>{"use strict";var y0=Pn&&Pn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getPackagePaths=void 0;var mo=y0(M("path")),yR=y0(m0()),Pi={};function vR(e,t,r){if(Pi[e])return Pi[e];let n=yR.default.sync(t.map(i=>mo.default.join(i,"package.json").replace(/\\/g,"/")),{cwd:e,absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1}).map(i=>mo.default.dirname(i));return mo.default.sep==="/"?Pi[e]=n:Pi[e]=n.map(i=>i.replace(/\//g,mo.default.sep)),Pi[e]}Pn.getPackagePaths=vR});var Di=F(Dn=>{"use strict";var v0=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getWorkspacePackageInfo=void 0;var ER=v0(M("path")),AR=v0(M("fs"));function SR(e){return e?e.reduce((t,r)=>{let n,i=ER.default.join(r,"package.json");try{n=JSON.parse(AR.default.readFileSync(i,"utf-8"))}catch{return t}return[...t,{name:n.name,path:r,packageJson:{...n,packageJsonPath:i}}]},[]):[]}Dn.getWorkspacePackageInfo=SR});var Hc=F(Or=>{"use strict";var E0=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Or,"__esModule",{value:!0});Or.getWorkspaceInfoFromWorkspaceRoot=Or.getPackageJsonWorkspaceRoot=void 0;var wR=E0(M("fs")),A0=E0(M("path")),CR=Ts(),_R=yo(),xR=Di();function bR(e){var t;let r=(t=(0,CR.getWorkspaceImplementationAndLockFile)(e))===null||t===void 0?void 0:t.lockFile;return r?A0.default.dirname(r):e}Or.getPackageJsonWorkspaceRoot=bR;function OR(e){let t=A0.default.join(e,"package.json");try{return JSON.parse(wR.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}}function RR(e){let{workspaces:t}=e;if(t&&Array.isArray(t))return t;if(!t||!t.packages)throw new Error("Could not find a workspaces object in package.json");return t.packages}function FR(e){try{let t=OR(e),r=RR(t),n=(0,_R.getPackagePaths)(e,r);return(0,xR.getWorkspacePackageInfo)(n)}catch{return[]}}Or.getWorkspaceInfoFromWorkspaceRoot=FR});var vo=F(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getYarnWorkspaces=Tn.getYarnWorkspaceRoot=void 0;var S0=Hc();function w0(e){let t=(0,S0.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find yarn workspaces root");return t}Tn.getYarnWorkspaceRoot=w0;function kR(e){let t=w0(e);return(0,S0.getWorkspaceInfoFromWorkspaceRoot)(t)}Tn.getYarnWorkspaces=kR});var In=F((qq,Zr)=>{"use strict";function C0(e){return typeof e>"u"||e===null}function PR(e){return typeof e=="object"&&e!==null}function DR(e){return Array.isArray(e)?e:C0(e)?[]:[e]}function TR(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function IR(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function LR(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Zr.exports.isNothing=C0;Zr.exports.isObject=PR;Zr.exports.toArray=DR;Zr.exports.repeat=IR;Zr.exports.isNegativeZero=LR;Zr.exports.extend=TR});var Ln=F((Hq,x0)=>{"use strict";function _0(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+=`
|
|
3
|
+
|
|
4
|
+
`+e.mark.snippet),n+" "+r):n}function Ti(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=_0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ti.prototype=Object.create(Error.prototype);Ti.prototype.constructor=Ti;Ti.prototype.toString=function(t){return this.name+": "+_0(this,t)};x0.exports=Ti});var O0=F((Gq,b0)=>{"use strict";var Ii=In();function Gc(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Uc(e,t){return Ii.repeat(" ",t-e.length)+e}function NR(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=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Gc(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=Ii.repeat(" ",t.indent)+Uc((e.line-u+1).toString(),f)+" | "+c.str+`
|
|
5
|
+
`+a;for(c=Gc(e.buffer,n[o],i[o],e.position,l),a+=Ii.repeat(" ",t.indent)+Uc((e.line+1).toString(),f)+" | "+c.str+`
|
|
6
|
+
`,a+=Ii.repeat("-",t.indent+f+3+c.pos)+`^
|
|
7
|
+
`,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Gc(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=Ii.repeat(" ",t.indent)+Uc((e.line+u+1).toString(),f)+" | "+c.str+`
|
|
8
|
+
`;return a.replace(/\n$/,"")}b0.exports=NR});var We=F((Uq,F0)=>{"use strict";var R0=Ln(),BR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$R=["scalar","sequence","mapping"];function MR(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function jR(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(BR.indexOf(r)===-1)throw new R0('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=MR(t.styleAliases||null),$R.indexOf(this.kind)===-1)throw new R0('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}F0.exports=jR});var zc=F((Wq,P0)=>{"use strict";var Li=Ln(),Wc=We();function k0(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function qR(){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 Yc(e){return this.extend(e)}Yc.prototype.extend=function(t){var r=[],n=[];if(t instanceof Wc)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 Li("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Wc))throw new Li("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Li("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Li("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Wc))throw new Li("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Yc.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=k0(i,"implicit"),i.compiledExplicit=k0(i,"explicit"),i.compiledTypeMap=qR(i.compiledImplicit,i.compiledExplicit),i};P0.exports=Yc});var Vc=F((Yq,D0)=>{"use strict";var HR=We();D0.exports=new HR("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Kc=F((zq,T0)=>{"use strict";var GR=We();T0.exports=new GR("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Xc=F((Vq,I0)=>{"use strict";var UR=We();I0.exports=new UR("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Qc=F((Kq,L0)=>{"use strict";var WR=zc();L0.exports=new WR({explicit:[Vc(),Kc(),Xc()]})});var Jc=F((Xq,N0)=>{"use strict";var YR=We();function zR(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function VR(){return null}function KR(e){return e===null}N0.exports=new YR("tag:yaml.org,2002:null",{kind:"scalar",resolve:zR,construct:VR,predicate:KR,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Zc=F((Qq,B0)=>{"use strict";var XR=We();function QR(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 JR(e){return e==="true"||e==="True"||e==="TRUE"}function ZR(e){return Object.prototype.toString.call(e)==="[object Boolean]"}B0.exports=new XR("tag:yaml.org,2002:bool",{kind:"scalar",resolve:QR,construct:JR,predicate:ZR,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 el=F((Jq,$0)=>{"use strict";var eF=In(),tF=We();function rF(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function nF(e){return 48<=e&&e<=55}function iF(e){return 48<=e&&e<=57}function sF(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(!rF(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!nF(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!iF(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function oF(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 aF(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!eF.isNegativeZero(e)}$0.exports=new tF("tag:yaml.org,2002:int",{kind:"scalar",resolve:sF,construct:oF,predicate:aF,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 tl=F((Zq,j0)=>{"use strict";var M0=In(),uF=We(),cF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function lF(e){return!(e===null||!cF.test(e)||e[e.length-1]==="_")}function fF(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 hF=/^[-+]?[0-9]+e/;function dF(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(M0.isNegativeZero(e))return"-0.0";return r=e.toString(10),hF.test(r)?r.replace("e",".e"):r}function pF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||M0.isNegativeZero(e))}j0.exports=new uF("tag:yaml.org,2002:float",{kind:"scalar",resolve:lF,construct:fF,predicate:pF,represent:dF,defaultStyle:"lowercase"})});var rl=F((e6,q0)=>{"use strict";q0.exports=Qc().extend({implicit:[Jc(),Zc(),el(),tl()]})});var nl=F((t6,H0)=>{"use strict";H0.exports=rl()});var il=F((r6,W0)=>{"use strict";var gF=We(),G0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U0=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 mF(e){return e===null?!1:G0.exec(e)!==null||U0.exec(e)!==null}function yF(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=G0.exec(e),t===null&&(t=U0.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(s=+t[4],o=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function vF(e){return e.toISOString()}W0.exports=new gF("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:mF,construct:yF,instanceOf:Date,represent:vF})});var sl=F((n6,Y0)=>{"use strict";var EF=We();function AF(e){return e==="<<"||e===null}Y0.exports=new EF("tag:yaml.org,2002:merge",{kind:"scalar",resolve:AF})});var al=F((i6,z0)=>{"use strict";var SF=We(),ol=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
9
|
+
\r`;function wF(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=ol;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function CF(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=ol,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function _F(e){var t="",r=0,n,i,s=e.length,o=ol;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function xF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}z0.exports=new SF("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wF,construct:CF,predicate:xF,represent:_F})});var ul=F((s6,V0)=>{"use strict";var bF=We(),OF=Object.prototype.hasOwnProperty,RF=Object.prototype.toString;function FF(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,RF.call(i)!=="[object Object]")return!1;for(s in i)if(OF.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function kF(e){return e!==null?e:[]}V0.exports=new bF("tag:yaml.org,2002:omap",{kind:"sequence",resolve:FF,construct:kF})});var cl=F((o6,K0)=>{"use strict";var PF=We(),DF=Object.prototype.toString;function TF(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],DF.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function IF(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}K0.exports=new PF("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TF,construct:IF})});var ll=F((a6,X0)=>{"use strict";var LF=We(),NF=Object.prototype.hasOwnProperty;function BF(e){if(e===null)return!0;var t,r=e;for(t in r)if(NF.call(r,t)&&r[t]!==null)return!1;return!0}function $F(e){return e!==null?e:{}}X0.exports=new LF("tag:yaml.org,2002:set",{kind:"mapping",resolve:BF,construct:$F})});var Eo=F((u6,Q0)=>{"use strict";Q0.exports=nl().extend({implicit:[il(),sl()],explicit:[al(),ul(),cl(),ll()]})});var dm=F((c6,pl)=>{"use strict";var tn=In(),im=Ln(),MF=O0(),jF=Eo(),Fr=Object.prototype.hasOwnProperty,Ao=1,sm=2,om=3,So=4,fl=1,qF=2,J0=3,HF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,GF=/[\x85\u2028\u2029]/,UF=/[,\[\]\{\}]/,am=/^(?:!|!!|![a-z\-]+!)$/i,um=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Z0(e){return Object.prototype.toString.call(e)}function Ut(e){return e===10||e===13}function rn(e){return e===9||e===32}function ot(e){return e===9||e===32||e===10||e===13}function Nn(e){return e===44||e===91||e===93||e===123||e===125}function WF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function YF(e){return e===120?2:e===117?4:e===85?8:0}function zF(e){return 48<=e&&e<=57?e-48:-1}function em(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
10
|
+
`: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 VF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var cm=new Array(256),lm=new Array(256);for(en=0;en<256;en++)cm[en]=em(en)?1:0,lm[en]=em(en);var en;function KF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jF,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 fm(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=MF(r),new im(t,r)}function Z(e,t){throw fm(e,t)}function wo(e,t){e.onWarning&&e.onWarning.call(null,fm(e,t))}var tm={YAML:function(t,r,n){var i,s,o;t.version!==null&&Z(t,"duplication of %YAML directive"),n.length!==1&&Z(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Z(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&Z(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&wo(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Z(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],am.test(i)||Z(t,"ill-formed tag handle (first argument) of the TAG directive"),Fr.call(t.tagMap,i)&&Z(t,'there is a previously declared suffix for "'+i+'" tag handle'),um.test(s)||Z(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Z(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Rr(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Z(e,"expected valid JSON character");else HF.test(a)&&Z(e,"the stream contains non-printable characters");e.result+=a}}function rm(e,t,r,n){var i,s,o,a;for(tn.isObject(r)||Z(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Fr.call(t,s)||(t[s]=r[s],n[s]=!0)}function Bn(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&Z(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Z0(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Z0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)rm(e,t,s[c],r);else rm(e,t,s,r);else!e.json&&!Fr.call(r,i)&&Fr.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,Z(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function hl(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++):Z(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Te(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;rn(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(Ut(i))for(hl(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&&wo(e,"deficient indentation"),n}function Co(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||ot(r)))}function dl(e,t){t===1?e.result+=" ":t>1&&(e.result+=tn.repeat(`
|
|
11
|
+
`,t-1))}function XF(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),ot(d)||Nn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ot(i)||r&&Nn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ot(i)||r&&Nn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ot(n))break}else{if(e.position===e.lineStart&&Co(e)||r&&Nn(d))break;if(Ut(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,Te(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Rr(e,s,o,!1),dl(e,e.line-u),s=o=e.position,a=!1),rn(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Rr(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function QF(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(Rr(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 Ut(r)?(Rr(e,n,i,!0),dl(e,Te(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Co(e)?Z(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Z(e,"unexpected end of the stream within a single quoted scalar")}function JF(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Rr(e,r,e.position,!0),e.position++,!0;if(a===92){if(Rr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Ut(a))Te(e,!1,t);else if(a<256&&cm[a])e.result+=lm[a],e.position++;else if((o=YF(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=WF(a))>=0?s=(s<<4)+o:Z(e,"expected hexadecimal character");e.result+=VF(s),e.position++}else Z(e,"unknown escape sequence");r=n=e.position}else Ut(a)?(Rr(e,r,n,!0),dl(e,Te(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Co(e)?Z(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Z(e,"unexpected end of the stream within a double quoted scalar")}function ZF(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,g=Object.create(null),S,w,k,_;if(_=e.input.charCodeAt(e.position),_===91)f=93,d=!1,a=[];else if(_===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(Te(e,!0,t),_=e.input.charCodeAt(e.position),_===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?_===44&&Z(e,"expected the node content, but found ','"):Z(e,"missed comma between flow collection entries"),w=S=k=null,l=h=!1,_===63&&(c=e.input.charCodeAt(e.position+1),ot(c)&&(l=h=!0,e.position++,Te(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,$n(e,t,Ao,!1,!0),w=e.tag,S=e.result,Te(e,!0,t),_=e.input.charCodeAt(e.position),(h||e.line===n)&&_===58&&(l=!0,_=e.input.charCodeAt(++e.position),Te(e,!0,t),$n(e,t,Ao,!1,!0),k=e.result),d?Bn(e,a,g,w,S,k,n,i,s):l?a.push(Bn(e,null,g,w,S,k,n,i,s)):a.push(S),Te(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}Z(e,"unexpected end of the stream within a flow collection")}function ek(e,t){var r,n,i=fl,s=!1,o=!1,a=t,u=0,c=!1,f,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)fl===i?i=l===43?J0:qF:Z(e,"repeat of a chomping mode identifier");else if((f=zF(l))>=0)f===0?Z(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Z(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(rn(l)){do l=e.input.charCodeAt(++e.position);while(rn(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Ut(l)&&l!==0)}for(;l!==0;){for(hl(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Ut(l)){u++;continue}if(e.lineIndent<a){i===J0?e.result+=tn.repeat(`
|
|
12
|
+
`,s?1+u:u):i===fl&&s&&(e.result+=`
|
|
13
|
+
`);break}for(n?rn(l)?(c=!0,e.result+=tn.repeat(`
|
|
14
|
+
`,s?1+u:u)):c?(c=!1,e.result+=tn.repeat(`
|
|
15
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=tn.repeat(`
|
|
16
|
+
`,u):e.result+=tn.repeat(`
|
|
17
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Ut(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Rr(e,r,e.position,!1)}return!0}function nm(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!ot(o))));){if(a=!0,e.position++,Te(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,$n(e,t,om,!1,!0),s.push(e.result),Te(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Z(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function tk(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,g=null,S=null,w=!1,k=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(e.position);_!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(_===63||_===58)&&ot(n))_===63?(w&&(Bn(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!0,i=!0):w?(w=!1,i=!0):Z(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=n;else{if(o=e.line,a=e.lineStart,u=e.position,!$n(e,r,sm,!1,!0))break;if(e.line===s){for(_=e.input.charCodeAt(e.position);rn(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),ot(_)||Z(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Bn(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!1,i=!1,d=e.tag,g=e.result;else if(k)Z(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(k)Z(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(w&&(o=e.line,a=e.lineStart,u=e.position),$n(e,t,So,!0,i)&&(w?g=e.result:S=e.result),w||(Bn(e,l,h,d,g,S,o,a,u),d=g=S=null),Te(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&_!==0)Z(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&Bn(e,l,h,d,g,null,o,a,u),k&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),k}function rk(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&Z(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):Z(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ot(o);)o===33&&(n?Z(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),am.test(i)||Z(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),UF.test(s)&&Z(e,"tag suffix cannot contain flow indicator characters")}s&&!um.test(s)&&Z(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Z(e,"tag name is malformed: "+s)}return r?e.tag=s:Fr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Z(e,'undeclared tag handle "'+i+'"'),!0}function nk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Z(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ot(r)&&!Nn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ik(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&&!ot(n)&&!Nn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Fr.call(e.anchorMap,r)||Z(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Te(e,!0,-1),!0}function $n(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,g,S,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=So===r||om===r,n&&Te(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;rk(e)||nk(e);)Te(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||So===r)&&(Ao===r||sm===r?S=t:S=t+1,w=e.position-e.lineStart,u===1?a&&(nm(e,w)||tk(e,w,S))||ZF(e,S)?f=!0:(o&&ek(e,S)||QF(e,S)||JF(e,S)?f=!0:ik(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&Z(e,"alias node should not have any properties")):XF(e,S,Ao===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&nm(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Z(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(g=e.implicitTypes[l],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Fr.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){g=d[l];break}g||Z(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Z(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Z(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function sk(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Te(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ot(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Z(e,"directive name must not be less than one character in length");o!==0;){for(;rn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Ut(o));break}if(Ut(o))break;for(r=e.position;o!==0&&!ot(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&hl(e),Fr.call(tm,n)?tm[n](e,n,i):wo(e,'unknown document directive "'+n+'"')}if(Te(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,Te(e,!0,-1)):s&&Z(e,"directives end mark is expected"),$n(e,e.lineIndent-1,So,!1,!0),Te(e,!0,-1),e.checkLineBreaks&&GF.test(e.input.slice(t,e.position))&&wo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Co(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Te(e,!0,-1));return}if(e.position<e.length-1)Z(e,"end of the stream or a document separator is expected");else return}function hm(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
18
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new KF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Z(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;)sk(r);return r.documents}function ok(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=hm(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function ak(e,t){var r=hm(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new im("expected a single document in the stream, but found more")}}pl.exports.loadAll=ok;pl.exports.load=ak});var Im=F((l6,Tm)=>{"use strict";var bo=In(),ji=Ln(),uk=Eo(),wm=Object.prototype.toString,Cm=Object.prototype.hasOwnProperty,El=65279,ck=9,Bi=10,lk=13,fk=32,hk=33,dk=34,gl=35,pk=37,gk=38,mk=39,yk=42,_m=44,vk=45,_o=58,Ek=61,Ak=62,Sk=63,wk=64,xm=91,bm=93,Ck=96,Om=123,_k=124,Rm=125,Ye={};Ye[0]="\\0";Ye[7]="\\a";Ye[8]="\\b";Ye[9]="\\t";Ye[10]="\\n";Ye[11]="\\v";Ye[12]="\\f";Ye[13]="\\r";Ye[27]="\\e";Ye[34]='\\"';Ye[92]="\\\\";Ye[133]="\\N";Ye[160]="\\_";Ye[8232]="\\L";Ye[8233]="\\P";var xk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],bk=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ok(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&Cm.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function Rk(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 ji("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+bo.repeat("0",n-t.length)+t}var Fk=1,$i=2;function kk(e){this.schema=e.schema||uk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=bo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ok(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==='"'?$i:Fk,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 pm(e,t){for(var r=bo.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
|
|
19
|
+
`,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
20
|
+
`&&(s+=r),s+=o;return s}function ml(e,t){return`
|
|
21
|
+
`+bo.repeat(" ",e.indent*t)}function Pk(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 xo(e){return e===fk||e===ck}function Mi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==El||65536<=e&&e<=1114111}function gm(e){return Mi(e)&&e!==El&&e!==lk&&e!==Bi}function mm(e,t,r){var n=gm(e),i=n&&!xo(e);return(r?n:n&&e!==_m&&e!==xm&&e!==bm&&e!==Om&&e!==Rm)&&e!==gl&&!(t===_o&&!i)||gm(t)&&!xo(t)&&e===gl||t===_o&&i}function Dk(e){return Mi(e)&&e!==El&&!xo(e)&&e!==vk&&e!==Sk&&e!==_o&&e!==_m&&e!==xm&&e!==bm&&e!==Om&&e!==Rm&&e!==gl&&e!==gk&&e!==yk&&e!==hk&&e!==_k&&e!==Ek&&e!==Ak&&e!==mk&&e!==dk&&e!==pk&&e!==wk&&e!==Ck}function Tk(e){return!xo(e)&&e!==_o}function Ni(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 Fm(e){var t=/^\n* /;return t.test(e)}var km=1,yl=2,Pm=3,Dm=4,Mn=5;function Ik(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,g=-1,S=Dk(Ni(e,0))&&Tk(Ni(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Ni(e,u),!Mi(c))return Mn;S=S&&mm(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Ni(e,u),c===Bi)l=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!Mi(c))return Mn;S=S&&mm(c,f,a),f=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!l&&!h?S&&!o&&!i(e)?km:s===$i?Mn:yl:r>9&&Fm(e)?Mn:o?s===$i?Mn:yl:h?Dm:Pm}function Lk(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===$i?'""':"''";if(!e.noCompatMode&&(xk.indexOf(t)!==-1||bk.test(t)))return e.quotingType===$i?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return Pk(e,c)}switch(Ik(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case km:return t;case yl:return"'"+t.replace(/'/g,"''")+"'";case Pm:return"|"+ym(t,e.indent)+vm(pm(t,s));case Dm:return">"+ym(t,e.indent)+vm(pm(Nk(t,o),s));case Mn:return'"'+Bk(t,o)+'"';default:throw new ji("impossible error: invalid scalar style")}}()}function ym(e,t){var r=Fm(e)?String(t):"",n=e[e.length-1]===`
|
|
22
|
+
`,i=n&&(e[e.length-2]===`
|
|
23
|
+
`||e===`
|
|
24
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
25
|
+
`}function vm(e){return e[e.length-1]===`
|
|
26
|
+
`?e.slice(0,-1):e}function Nk(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
|
|
27
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,Em(e.slice(0,c),t)}(),i=e[0]===`
|
|
28
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
|
|
29
|
+
`:"")+Em(u,t),i=s}return n}function Em(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
|
|
30
|
+
`+e.slice(i,s),i=s+1),o=a;return u+=`
|
|
31
|
+
`,e.length-i>t&&o>i?u+=e.slice(i,o)+`
|
|
32
|
+
`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function Bk(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Ni(e,i),n=Ye[r],!n&&Mi(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||Rk(r);return t}function $k(e,t,r){var n="",i=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)),(rr(e,t,a,!1,!1)||typeof a>"u"&&rr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Am(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(rr(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&rr(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ml(e,t)),e.dump&&Bi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Mk(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),rr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rr(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function jk(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ji("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=ml(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),rr(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Bi===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=ml(e,t)),rr(e,t+1,f,!0,l)&&(e.dump&&Bi===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function Sm(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,wm.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(Cm.call(a.represent,u))n=a.represent[u](t,u);else throw new ji("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function rr(e,t,r,n,i,s,o){e.tag=null,e.dump=r,Sm(e,r,!1)||Sm(e,r,!0);var a=wm.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(jk(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(Mk(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Am(e,t-1,e.dump,i):Am(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):($k(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&Lk(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ji("unacceptable kind of an object to dump "+a)}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 qk(e,t){var r=[],n=[],i,s;for(vl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function vl(e,t,r){var n,i,s;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,s=e.length;i<s;i+=1)vl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)vl(e[n[i]],t,r)}function Hk(e,t){t=t||{};var r=new kk(t);r.noRefs||qk(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),rr(r,0,n,!0,!0)?r.dump+`
|
|
33
|
+
`:""}Tm.exports.dump=Hk});var Nm=F((f6,et)=>{"use strict";var Lm=dm(),Gk=Im();function Al(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.")}}et.exports.Type=We();et.exports.Schema=zc();et.exports.FAILSAFE_SCHEMA=Qc();et.exports.JSON_SCHEMA=rl();et.exports.CORE_SCHEMA=nl();et.exports.DEFAULT_SCHEMA=Eo();et.exports.load=Lm.load;et.exports.loadAll=Lm.loadAll;et.exports.dump=Gk.dump;et.exports.YAMLException=Ln();et.exports.types={binary:al(),float:tl(),map:Xc(),null:Jc(),pairs:cl(),set:ll(),timestamp:il(),bool:Zc(),int:el(),merge:sl(),omap:ul(),seq:Kc(),str:Vc()};et.exports.safeLoad=Al("safeLoad","load");et.exports.safeLoadAll=Al("safeLoadAll","loadAll");et.exports.safeDump=Al("safeDump","dump")});var Sl=F(jn=>{"use strict";var Uk=jn&&jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.readYaml=void 0;var Wk=Uk(M("fs"));function Yk(e){let t=Nm(),r=Wk.default.readFileSync(e,"utf8");return t.load(r)}jn.readYaml=Yk});var Oo=F(kr=>{"use strict";var Bm=kr&&kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kr,"__esModule",{value:!0});kr.getPnpmWorkspaces=kr.getPnpmWorkspaceRoot=void 0;var $m=Bm(M("path")),zk=Bm(Cn()),Vk=yo(),Kk=Di(),Xk=Sl();function Mm(e){let t=zk.default.sync("pnpm-workspace.yaml",{cwd:e});if(!t)throw new Error("Could not find pnpm workspaces root");return $m.default.dirname(t)}kr.getPnpmWorkspaceRoot=Mm;function Qk(e){try{let t=Mm(e),r=$m.default.join(t,"pnpm-workspace.yaml"),n=(0,Xk.readYaml)(r),i=(0,Vk.getPackagePaths)(t,n.packages);return(0,Kk.getWorkspacePackageInfo)(i)}catch{return[]}}kr.getPnpmWorkspaces=Qk});var wl=F((p6,Wt)=>{var jm=Wt.exports;Wt.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};Wt.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
|
|
34
|
+
`||t==="\r"};Wt.exports.isLineTerminator=function(t){return t===`
|
|
35
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029"};Wt.exports.isLineTerminatorJSON=function(t){return t===`
|
|
36
|
+
`||t==="\r"};Wt.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&jm.NonAsciiIdentifierStart.test(t)};Wt.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&jm.NonAsciiIdentifierPart.test(t)};Wt.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;Wt.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var Hi=F((g6,Ro)=>{var nr=wl();function qn(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Hn(e){return e>="0"&&e<="7"}function qi(e){return e>="0"&&e<="9"}var qm={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
|
|
37
|
+
`,r:"\r",t:" ",v:"\v","/":"/"};function Jk(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,u="",c="",f=s?nr.isLineTerminator:nr.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(c+="^");break}if(u+=l,r===a?c+="^":r>a&&(c+=e[a]===" "?" ":" "),u.length>78)break}return o+`
|
|
38
|
+
`+u+`
|
|
39
|
+
`+c}function Zk(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?nr.isLineTerminator:nr.isLineTerminatorJSON,s=r?nr.isWhiteSpace:nr.isWhiteSpaceJSON,o=e.length,a=0,u=0,c=0,f=[],l=function(){},h=function(x){return x};t._tokenize&&function(){var x=null;l=function(){if(x!==null)throw Error("internal error, token overlap");x=c},h=function(p,m){if(x!=c){var E={raw:e.substr(x,c-x),type:m,stack:f.slice(0)};p!==void 0&&(E.value=p),t._tokenize.call(null,E)}return x=null,p}}();function d(x){var p=c-u;if(!x)if(c<o){var m="'"+JSON.stringify(e[c]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+m)}else x||(x="Unexpected end of input");var E=SyntaxError(Jk(e,x,c,a,p,r));throw E.row=a+1,E.column=p+1,E}function g(x){x==="\r"&&e[c]===`
|
|
40
|
+
`&&c++,u=c,a++}function S(){for(var x;c<o;){l();var p=e[c++];return p==='"'||p==="'"&&r?h(O(p),"literal"):p==="{"?(h(void 0,"separator"),D()):p==="["?(h(void 0,"separator"),A()):p==="-"||p==="."||qi(p)||r&&(p==="+"||p==="I"||p==="N")?h(R(),"literal"):p==="n"?(N("null"),h(null,"literal")):p==="t"?(N("true"),h(!0,"literal")):p==="f"?(N("false"),h(!1,"literal")):(c--,h(void 0))}}function w(){for(var x;c<o;){l();var p=e[c++];if(p==='"'||p==="'"&&r)return h(O(p),"key");if(p==="{")return h(void 0,"separator"),D();if(p==="[")return h(void 0,"separator"),A();if(p==="."||qi(p))return h(R(!0),"key");if(r&&nr.isIdentifierStart(p)||p==="\\"&&e[c]==="u"){var m=c-1,x=b();return x===void 0?(c=m,h(void 0)):h(x,"key")}else return c--,h(void 0)}}function k(){for(l();c<o;){var x=e[c++];if(i(x))c--,h(void 0,"whitespace"),l(),c++,g(x),h(void 0,"newline"),l();else if(!s(x))if(x==="/"&&(r||n)&&(e[c]==="/"||e[c]==="*"))c--,h(void 0,"whitespace"),l(),c++,_(e[c++]==="*"),h(void 0,"comment"),l();else{c--;break}}return h(void 0,"whitespace")}function _(x){for(;c<o;){var p=e[c++];if(i(p)){if(!x){c--;return}g(p)}else if(p==="*"&&x&&e[c]==="/"){c++;return}}x&&d("Unclosed multiline comment")}function N(x){for(var p=c,m=x.length,E=1;E<m;E++)(c>=o||x[E]!=e[c])&&(c=p-1,d()),c++}function D(){for(var x=t.null_prototype?Object.create(null):{},p={},m=!1;c<o;){k();var E=w();k(),l();var C=e[c++];if(h(void 0,"separator"),C==="}"&&E===void 0)return!r&&m&&(c--,d("Trailing comma in object")),x;if(C===":"&&E!==void 0){k(),f.push(E);var y=S();f.pop(),y===void 0&&d("No value found for key "+E),typeof E!="string"&&(!r||typeof E!="number")&&d("Wrong key type: "+E),(E in p||p[E]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&d("Reserved key: "+E):(typeof t.reviver=="function"&&(y=t.reviver.call(null,E,y)),y!==void 0&&(m=!0,Object.defineProperty(x,E,{value:y,enumerable:!0,configurable:!0,writable:!0}))),k(),l();var C=e[c++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return x;d()}else c--,d()}d()}function A(){for(var x=[];c<o;){k(),f.push(x.length);var p=S();f.pop(),k(),l();var m=e[c++];if(h(void 0,"separator"),p!==void 0&&(typeof t.reviver=="function"&&(p=t.reviver.call(null,String(x.length),p)),p===void 0?(x.length++,p=!0):x.push(p)),m===",")p===void 0&&d("Elisions are not supported");else{if(m==="]")return!r&&p===void 0&&x.length&&(c--,d("Trailing comma in array")),x;c--,d()}}}function R(){c--;var x=c,p=e[c++],m,E=function(P){var I=e.substr(x,c-x);if(P)var L=parseInt(I.replace(/^0o?/,""),8);else var L=Number(I);if(Number.isNaN(L))c--,d('Bad numeric literal - "'+e.substr(x,c-x+1)+'"');else if(!r&&!I.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))c--,d('Non-json numeric literal - "'+e.substr(x,c-x+1)+'"');else return L};if((p==="-"||p==="+"&&r)&&(p=e[c++]),p==="N"&&r)return N("NaN"),NaN;if(p==="I"&&r)return N("Infinity"),E();if(p>="1"&&p<="9"){for(;c<o&&qi(e[c]);)c++;p=e[c++]}if(p==="0"){p=e[c++];var C=p==="o"||p==="O"||Hn(p),y=p==="x"||p==="X";if(r&&(C||y)){for(;c<o&&(y?qn:Hn)(e[c]);)c++;var v=1;return e[x]==="-"?(v=-1,x++):e[x]==="+"&&x++,v*E(C)}}if(p==="."){for(;c<o&&qi(e[c]);)c++;p=e[c++]}if(p==="e"||p==="E"){for(p=e[c++],(p==="-"||p==="+")&&c++;c<o&&qi(e[c]);)c++;p=e[c++]}return c--,E()}function b(){c--;for(var x="";c<o;){var p=e[c++];if(p==="\\"&&e[c]==="u"&&qn(e[c+1])&&qn(e[c+2])&&qn(e[c+3])&&qn(e[c+4])&&(p=String.fromCharCode(parseInt(e.substr(c+1,4),16)),c+=5),x.length)if(nr.isIdentifierPart(p))x+=p;else return c--,x;else if(nr.isIdentifierStart(p))x+=p;else return}d()}function O(x){for(var p="";c<o;){var m=e[c++];if(m===x)return p;if(m==="\\")if(c>=o&&d(),m=e[c++],qm[m]&&(r||m!="v"&&m!="'"))p+=qm[m];else if(r&&i(m))g(m);else if(m==="u"||m==="x"&&r){for(var E=m==="u"?4:2,C=0;C<E;C++)c>=o&&d(),qn(e[c])||d("Bad escape sequence"),c++;p+=String.fromCharCode(parseInt(e.substr(c-E,E),16))}else if(r&&Hn(m)){if(m<"4"&&Hn(e[c])&&Hn(e[c+1]))var y=3;else if(Hn(e[c]))var y=2;else var y=1;c+=y-1,p+=String.fromCharCode(parseInt(e.substr(c-y,y),8))}else r?p+=m:(c--,d());else i(m)?d():(!r&&m.charCodeAt(0)<32&&(c--,d("Unexpected control character")),p+=m)}d()}k();var T=S();if(T!==void 0||c<o){if(k(),c>=o)return typeof t.reviver=="function"&&(T=t.reviver.call(null,"",T)),T;d()}else d(c?"No data, only a whitespace":"No data, empty input")}Ro.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return Zk(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};Ro.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=Ro.exports.parse(t,r),n}});var xl=F((m6,Gm)=>{var Cl=wl();(function(){}).name||Object.defineProperty(function(){}.constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var eP={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},tP=Object.prototype.hasOwnProperty,Hm=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function _l(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var d=t._prefix?t._prefix:"";if(!t.indent)return d+l;for(var g="",S=r+(h||0),w=0;w<S;w++)g+=t.indent;return d+g+l+(h?`
|
|
41
|
+
`:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",d=0;d<l.length;d++){if(d>0){if(!Cl.isIdentifierPart(l[d]))return a(l)}else if(!Cl.isIdentifierStart(l[d]))return a(l);var g=l.charCodeAt(d);t.ascii?g<128?h+=l[d]:h+="\\u"+("0000"+g.toString(16)).slice(-4):Hm.exec(l[d])?h+="\\u"+("0000"+g.toString(16)).slice(-4):h+=l[d]}return h}function a(l){for(var h=t.quote,d=h.charCodeAt(0),g="",S=0;S<l.length;S++){var w=l.charCodeAt(S);if(w<16)w===0&&i?g+="\\0":w>=8&&w<=13&&(i||w!==11)?g+=eP[w]:i?g+="\\x0"+w.toString(16):g+="\\u000"+w.toString(16);else if(w<32)i?g+="\\x"+w.toString(16):g+="\\u00"+w.toString(16);else if(w>=32&&w<128)w===47&&S&&l[S-1]==="<"?g+="\\"+l[S]:w===92?g+="\\\\":w===d?g+="\\"+h:g+=l[S];else if(t.ascii||Cl.isLineTerminator(l[S])||Hm.exec(l[S]))if(w<256)i?g+="\\x"+w.toString(16):g+="\\u00"+w.toString(16);else if(w<4096)g+="\\u0"+w.toString(16);else if(w<65536)g+="\\u"+w.toString(16);else throw Error("weird codepoint");else g+=l[S]}return h+g+h}function u(){if(e===null)return"null";var l=[],h=0,d;if(Array.isArray(e)){d="[]";for(var g=0;g<e.length;g++){var S=_l(e[g],t,r+1,String(g));S===void 0&&(S="null"),h+=S.length+2,l.push(S+",")}}else{d="{}";var w=function(N){var D=_l(e[N],t,r+1,N);D!==void 0&&(D=o(N)+":"+(t.indent?" ":"")+D+",",h+=D.length+1,l.push(D))};if(Array.isArray(t.replacer))for(var g=0;g<t.replacer.length;g++)tP.call(e,t.replacer[g])&&w(t.replacer[g]);else{var k=Object.keys(e);t.sort_keys&&(k=k.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),k.forEach(w)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var _=l.map(function(N){return s(N,1)}).join("");return d[0]+(t.indent?`
|
|
42
|
+
`:"")+_+s(d[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var _=l.join(t.indent?" ":"");return d[0]+_+d[1]}}function c(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?c(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),c(e)):e.constructor===Date?c(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?c(e):u(e)}else return c(e)}Gm.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),_l(t,r,0,"")}});var bl=F((y6,Um)=>{var rP=Hi().tokenize;Um.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=rP(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
|
|
43
|
+
`,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var u=Array(o/a+1).join(" ");i.indent[u]=(i.indent[u]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var c=s+1;c<t.length&&!(t[c].type==="literal"||t[c].type==="key");c++)t[c].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var Xm=F((v6,Rl)=>{var Bt=M("assert"),Km=Hi().tokenize,nP=xl().stringify,iP=bl().analyze;function Ui(e){return typeof e=="object"&&e!==null}function Fo(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=nP(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=Km(s,{_addstack:t});return o.data=null,o}function Ol(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function Wm(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function Gi(e){return e==="whitespace"||e==="newline"||e==="comment"}function Ym(e,t,r){for(;Gi(e[t].type);)if(t++>=r)return!1;return t}function Gn(e,t,r){for(;Gi(e[r].type);)if(r--<t)return!1;return r}function zm(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=Gn(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;Gi(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Bt.equal(e[n].type,"separator"),Bt.equal(e[n].raw,":");Gi(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Bt.equal(e[n].type,"key"),n--}for(;Gi(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function ir(e,t){var r=Object.create(ir.prototype);t==null&&(t={});var n=r._tokens=Km(e,t);r._data=n.data,n.data=null,r._options=t;var i=iP(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function Vm(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!Ui(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}ir.prototype.set=function(e,t){if(e=Ol(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)Vm(e[i],n,!1),n=n[e[i]];i===e.length-1&&Vm(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[Ym(this._tokens,0,this._tokens.length-1),Gn(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=Wm(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=Fo(t,e,this._options);else if(r){var f=e.slice(0,i),u=Gn(this._tokens,s[0]+1,s[1]-1);Bt(u!==!1);var c=u!==!1?zm(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=Fo(t,e,this._options,!1,c),l=[];c.newline&&c.newline.length&&(l=l.concat(c.newline)),c.prefix&&c.prefix.length&&(l=l.concat(c.prefix)),Array.isArray(n)||(l=l.concat(Fo(e[e.length-1],f,this._options,!0)),c.sep1&&c.sep1.length&&(l=l.concat(c.sep1)),l.push({raw:":",type:"separator",stack:f}),c.sep2&&c.sep2.length&&(l=l.concat(c.sep2))),o.unshift.apply(o,l),this._tokens[u].type==="separator"&&this._tokens[u].stack.length===e.length-1?this._tokens[u].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),c.suffix&&c.suffix.length&&o.push.apply(o,c.suffix),Bt.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=Wm(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=Gn(this._tokens,a[0],s[0]-1);Bt.equal(this._tokens[u].type,"separator"),Bt.equal(this._tokens[u].raw,":"),s[0]=u;var u=Gn(this._tokens,a[0],s[0]-1);Bt.equal(this._tokens[u].type,"key"),Bt.equal(this._tokens[u].value,e[e.length-1]),s[0]=u}var u=Gn(this._tokens,a[0],s[0]-1);Bt.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=Ym(this._tokens,s[1]+1,a[1]),Bt.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?zm(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=Fo(t,e,this._options,!1,c)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};ir.prototype.unset=function(e){return this.set(e,void 0)};ir.prototype.get=function(e){e=Ol(e);for(var t=this._data,r=0;r<e.length;r++){if(!Ui(t))return;t=t[e[r]]}return t};ir.prototype.has=function(e){e=Ol(e);for(var t=this._data,r=0;r<e.length;r++){if(!Ui(t))return!1;t=t[e[r]]}return t!==void 0};ir.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!Ui(s)||!Ui(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};ir.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};Rl.exports.Document=ir;Rl.exports.update=function(t,r,n){return ir(t,n).update(r).toString()}});var Qm=F((E6,ko)=>{var sP=M("fs"),oP=Wi();ko.exports.register=function(){var e=M,t="extensions";e[t][".json5"]=function(r,n){r.exports=oP.parse(sP.readFileSync(n,"utf8"))}};ko.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw Wi().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};ko.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var Wi=F((S6,nn)=>{nn.exports.__defineGetter__("parse",function(){return Hi().parse});nn.exports.__defineGetter__("stringify",function(){return xl().stringify});nn.exports.__defineGetter__("tokenize",function(){return Hi().tokenize});nn.exports.__defineGetter__("update",function(){return Xm().update});nn.exports.__defineGetter__("analyze",function(){return bl().analyze});nn.exports.__defineGetter__("utils",function(){return Qm()})});var To=F(Pr=>{"use strict";var Do=Pr&&Pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRushWorkspaces=Pr.getRushWorkspaceRoot=void 0;var aP=Do(Cn()),Po=Do(M("path")),uP=Do(Wi()),cP=Do(M("fs")),lP=Di();function Jm(e){let t=aP.default.sync("rush.json",{cwd:e});if(!t)throw new Error("Could not find rush workspaces root");return Po.default.dirname(t)}Pr.getRushWorkspaceRoot=Jm;function fP(e){try{let t=Jm(e),r=Po.default.join(t,"rush.json"),n=uP.default.parse(cP.default.readFileSync(r,"utf-8")),i=Po.default.dirname(r);return(0,lP.getWorkspacePackageInfo)(n.projects.map(s=>Po.default.join(i,s.projectFolder)))}catch{return[]}}Pr.getRushWorkspaces=fP});var Fl=F(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.getNpmWorkspaces=Un.getNpmWorkspaceRoot=void 0;var Zm=Hc();function ey(e){let t=(0,Zm.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find NPM workspaces root");return t}Un.getNpmWorkspaceRoot=ey;function hP(e){let t=ey(e);return(0,Zm.getWorkspaceInfoFromWorkspaceRoot)(t)}Un.getNpmWorkspaces=hP});var kl=F(Dr=>{"use strict";var Io=Dr&&Dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.getLernaWorkspaces=Dr.getLernaWorkspaceRoot=void 0;var dP=Io(Cn()),pP=Io(M("fs")),gP=Io(Wi()),ty=Io(M("path")),mP=yo(),yP=Di();function ry(e){let t=dP.default.sync("lerna.json",{cwd:e});if(!t)throw new Error("Could not find lerna workspace root");return ty.default.dirname(t)}Dr.getLernaWorkspaceRoot=ry;function vP(e,t){try{let r=ry(e),n=ty.default.join(r,"lerna.json"),i=gP.default.parse(pP.default.readFileSync(n,"utf-8")),s=(0,mP.getPackagePaths)(r,i.packages,t);return(0,yP.getWorkspacePackageInfo)(s)}catch{return[]}}Dr.getLernaWorkspaces=vP});var No=F(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.getWorkspaces=void 0;var EP=Ts(),AP=process.env.PREFERRED_WORKSPACE_MANAGER;function SP(e){let t=AP||(0,EP.getWorkspaceImplementation)(e);if(!t)return[];switch(t){case"yarn":return vo().getYarnWorkspaces(e);case"pnpm":return Oo().getPnpmWorkspaces(e);case"rush":return To().getRushWorkspaces(e);case"npm":return Fl().getNpmWorkspaces(e);case"lerna":return kl().getLernaWorkspaces(e)}}Lo.getWorkspaces=SP});var Pl=F(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn._resetCache=Wn.getAllPackageJsonFiles=void 0;var wP=No(),Bo=new Map;function CP(e){if(Bo.has(e))return Bo.get(e);let r=(0,wP.getWorkspaces)(e).map(n=>n.packageJson.packageJsonPath);return Bo.set(e,r),r}Wn.getAllPackageJsonFiles=CP;function _P(){Bo.clear()}Wn._resetCache=_P});var ny=F(Yn=>{"use strict";var xP=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.getPackageInfos=void 0;var bP=xP(M("fs")),OP=Th(),RP=Pl();function FP(e){let t=(0,RP.getAllPackageJsonFiles)(e),r={};return t&&t.length>0?(t.forEach(n=>{try{let i=JSON.parse(bP.default.readFileSync(n,"utf-8"));r[i.name]=(0,OP.infoFromPackageJson)(i,n)}catch(i){throw i instanceof Error?new Error(`Invalid package.json file detected ${n}: ${i.message}`):i}}),r):{}}Yn.getPackageInfos=FP});var Yi=F(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.gitFailFast=_t.git=_t.clearGitObservers=_t.addGitObserver=_t.GitError=void 0;var kP=M("child_process"),$o=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};_t.GitError=$o;var PP=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,zn=[],Dl;function DP(e){return zn.push(e),()=>IP(e)}_t.addGitObserver=DP;function TP(){zn.splice(0,zn.length)}_t.clearGitObservers=TP;function IP(e){let t=zn.indexOf(e);t>-1&&zn.splice(t,1)}function iy(e,t){let r=(0,kP.spawnSync)("git",e,{maxBuffer:PP,...t}),n={stderr:r.stderr.toString().trimRight(),stdout:r.stdout.toString().trimRight(),success:r.status===0};if(!Dl){Dl=!0;for(let i of zn)i(e,n);Dl=!1}return n}_t.git=iy;function LP(e,t){var r,n;let i=iy(e,t);if(!i.success)throw t?.noExitCode||(process.exitCode=1),new $o(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
|
|
44
|
+
${(r=i.stdout)===null||r===void 0?void 0:r.toString().trimRight()}
|
|
45
|
+
${(n=i.stderr)===null||n===void 0?void 0:n.toString().trimRight()}`)}_t.gitFailFast=LP});var Tl=F(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.getWorkspaceRoot=void 0;var NP=Ts(),BP=process.env.PREFERRED_WORKSPACE_MANAGER;function $P(e){let t=BP||(0,NP.getWorkspaceImplementation)(e);if(t)switch(t){case"yarn":return vo().getYarnWorkspaceRoot(e);case"pnpm":return Oo().getPnpmWorkspaceRoot(e);case"rush":return To().getRushWorkspaceRoot(e);case"npm":return Fl().getNpmWorkspaceRoot(e);case"lerna":return kl().getLernaWorkspaceRoot(e)}}Mo.getWorkspaceRoot=$P});var Il=F(at=>{"use strict";var sy=at&&at.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(at,"__esModule",{value:!0});at.isChildOf=at.findProjectRoot=at.findPackageRoot=at.findGitRoot=at.searchUp=void 0;var zi=sy(M("path")),MP=sy(M("fs")),jP=Tl(),qP=jo();function oy(e,t){let r=zi.default.parse(t).root,n=!1;for(;!n&&t!==r;){if(MP.default.existsSync(zi.default.join(t,e))){n=!0;break}t=zi.default.dirname(t)}return n?t:null}at.searchUp=oy;function ay(e){let t=(0,qP.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return zi.default.normalize(t.stdout)}at.findGitRoot=ay;function HP(e){return oy("package.json",e)}at.findPackageRoot=HP;function GP(e){let t;try{t=(0,jP.getWorkspaceRoot)(e)}catch{}return t||ay(e)}at.findProjectRoot=GP;function UP(e,t){let r=zi.default.relative(e,t);return/^[.\/\\]+$/.test(r)}at.isChildOf=UP});var Ll=F((P6,uy)=>{"use strict";uy.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var ly=F((D6,cy)=>{"use strict";var WP=Ll();function YP(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=WP(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}cy.exports=YP});var dy=F((T6,hy)=>{"use strict";var zP=ly();function VP(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var KP=VP(zP),XP="text/plain",QP="us-ascii",fy=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),JP=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,d=""]=l.split("=").map(g=>g.trim());return h==="charset"&&(d=d.toLowerCase(),d===QP)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==XP)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function ZP(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return JP(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,u="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,d=i.pathname.slice(a,h);u+=d.replace(/\/{2,}/g,"/"),u+=l,a=h+l.length}let c=i.pathname.slice(a,i.pathname.length);u+=c.replace(/\/{2,}/g,"/"),i.pathname=u}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];fy(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])fy(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var Nl=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>Nl.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=ZP(e,t));let i=KP.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};Nl.MAX_INPUT_LENGTH=2048;hy.exports=Nl});var my=F((I6,gy)=>{"use strict";var eD=Ll();function py(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=eD(e);if(e=e.substring(e.indexOf("://")+3),py(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}gy.exports=py});var Ey=F((L6,vy)=>{"use strict";var tD=dy(),yy=my();function rD(e){var t=tD(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),yy(t.protocols)||t.protocols.length===0&&yy(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}vy.exports=rD});var Sy=F((N6,Ay)=>{"use strict";var nD=Ey();function Bl(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=nD(e),n=r.resource.split("."),i=null;switch(r.toString=function(w){return Bl.stringify(this,w)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),u=i.indexOf("tree",2),c=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:u>0?u-1:c>0?c-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],c&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var d=i.length>s&&i[s+1]==="-"?s+1:s;i.length>d+2&&["raw","src","blob","tree","edit"].indexOf(i[d+1])>=0&&(r.filepathtype=i[d+1],r.ref=i[d+2],i.length>d+3&&(r.filepath=i.slice(d+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var g=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,S=g.exec(r.pathname);return S!=null&&(r.source="bitbucket-server",S[1]==="users"?r.owner="~"+S[2]:r.owner=S[2],r.organization=r.owner,r.name=S[3],i=S[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}Bl.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?iD(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+sD(e)+i;default:return e.href}};function iD(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function sD(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}Ay.exports=Bl});var wy=F(Vn=>{"use strict";var oD=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getRepositoryName=void 0;var aD=oD(Sy());function uD(e){var t;try{let r=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),n=(0,aD.default)(r),i=r.includes(".visualstudio.com"),s=r.includes("dev.azure.com");if(!i&&!s)return n.full_name;let o=n.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(o)return`${o[2]}/${o[3]}/${n.name}`;let a=n.organization;return!a&&i&&(a=(t=n.resource.match(/([^.@]+)\.visualstudio\.com/))===null||t===void 0?void 0:t[1]),`${a}/${n.owner}/${n.name}`}catch{return""}}Vn.getRepositoryName=uD});var $l=F(Kn=>{"use strict";var _y=Kn&&Kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getDefaultRemote=void 0;var cD=_y(M("fs")),lD=_y(M("path")),fD=Il(),Cy=wy(),hD=Yi();function dD(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=k=>i&&console.log(k),o=k=>{if(n)throw new Error(k);s(k)},a=(0,fD.findGitRoot)(r),u={},c=lD.default.join(a,"package.json");try{u=JSON.parse(cD.default.readFileSync(c,"utf8").trim())}catch{o(`Could not read "${c}"`)}let{repository:f}=u,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${c}". Consider adding this info for more accurate git remote detection.`);let h=(0,Cy.getRepositoryName)(l),d=(0,hD.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let g={};if(d.stdout.split(`
|
|
46
|
+
`).forEach(k=>{let[_,N]=k.split(/\s+/),D=(0,Cy.getRepositoryName)(N);D&&(g[D]=_)}),h){if(g[h])return g[h];o(`Could not find remote pointing to repository "${h}".`)}let S=Object.values(g),w=["upstream","origin",...S];for(let k of w)if(S.includes(k))return s(`Default to remote "${k}"`),k;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}Kn.getDefaultRemote=dD});var Ml=F(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.listAllTrackedFiles=se.getDefaultBranch=se.parseRemoteBranch=se.getRemoteBranch=se.getParentBranch=se.revertLocalChanges=se.stageAndCommit=se.commit=se.stage=se.init=se.getFileAddedHash=se.getCurrentHash=se.getShortBranchName=se.getFullBranchRef=se.getBranchName=se.getUserEmail=se.getRecentCommitMessages=se.getStagedChanges=se.getChangesBetweenRefs=se.getBranchChanges=se.getChanges=se.getUnstagedChanges=se.fetchRemoteBranch=se.fetchRemote=se.getUntrackedChanges=void 0;var le=Yi();function pD(e){try{return Vi((0,le.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new le.GitError("Cannot gather information about untracked changes",t)}}se.getUntrackedChanges=pD;function gD(e,t){if(!(0,le.git)(["fetch","--",e],{cwd:t}).success)throw new le.GitError(`Cannot fetch remote "${e}"`)}se.fetchRemote=gD;function mD(e,t,r){if(!(0,le.git)(["fetch","--",e,t],{cwd:r}).success)throw new le.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}se.fetchRemoteBranch=mD;function yD(e){try{return Vi((0,le.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new le.GitError("Cannot gather information about unstaged changes",t)}}se.getUnstagedChanges=yD;function vD(e,t){try{return Vi((0,le.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new le.GitError("Cannot gather information about changes",r)}}se.getChanges=vD;function ED(e,t){return xy(e,"",[],"",t)}se.getBranchChanges=ED;function xy(e,t,r,n,i){try{return Vi((0,le.git)(["--no-pager","diff","--name-only","--relative",...r,`${e}...${t}`,...n?["--",n]:[]],{cwd:i}))}catch(s){throw new le.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,s)}}se.getChangesBetweenRefs=xy;function AD(e){try{return Vi((0,le.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(t){throw new le.GitError("Cannot gather information about staged changes",t)}}se.getStagedChanges=AD;function SD(e,t){try{let r=(0,le.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return r.success?r.stdout.split(/\n/).map(n=>n.trim()):[]}catch(r){throw new le.GitError("Cannot gather information about recent commits",r)}}se.getRecentCommitMessages=SD;function wD(e){try{let t=(0,le.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new le.GitError("Cannot gather information about user.email",t)}}se.getUserEmail=wD;function by(e){try{let t=(0,le.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new le.GitError("Cannot get branch name",t)}}se.getBranchName=by;function CD(e,t){let r=(0,le.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}se.getFullBranchRef=CD;function _D(e,t){let r=(0,le.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}se.getShortBranchName=_D;function xD(e){try{let t=(0,le.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new le.GitError("Cannot get current git hash",t)}}se.getCurrentHash=xD;function bD(e,t){let r=(0,le.git)(["rev-list","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim().split(`
|
|
47
|
+
`).slice(-1)[0]}se.getFileAddedHash=bD;function OD(e,t,r){(0,le.git)(["init"],{cwd:e});let n=(0,le.git)(["config","--list"],{cwd:e}).stdout.split(`
|
|
48
|
+
`);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new le.GitError("must include a username when initializing git repo");(0,le.git)(["config","user.name",r],{cwd:e})}if(!n.find(i=>i.includes("user.email"))){if(!t)throw new Error("must include a email when initializing git repo");(0,le.git)(["config","user.email",t],{cwd:e})}}se.init=OD;function Oy(e,t){try{e.forEach(r=>{(0,le.git)(["add",r],{cwd:t})})}catch(r){throw new le.GitError("Cannot stage changes",r)}}se.stage=Oy;function Ry(e,t,r=[]){try{let n=(0,le.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new le.GitError("Cannot commit changes",n)}}se.commit=Ry;function RD(e,t,r,n=[]){Oy(e,r),Ry(t,r,n)}se.stageAndCommit=RD;function FD(e){let t=`workspace-tools_${new Date().getTime()}`;(0,le.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,le.git)(["stash","list"]);if(r.success){let i=r.stdout.split(/\n/).find(s=>s.includes(t));if(i){let s=i.match(/^[^:]+/);if(s)return(0,le.git)(["stash","drop",s[0]]),!0}}return!1}se.revertLocalChanges=FD;function kD(e){let t=by(e);if(!t||t==="HEAD")return null;let r=(0,le.git)(["show-branch","-a"],{cwd:e});if(r.success){let i=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_")),s=i?.match(/\[(.*)\]/);return s?s[1]:null}return null}se.getParentBranch=kD;function PD(e,t){let r=(0,le.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}se.getRemoteBranch=PD;function DD(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}se.parseRemoteBranch=DD;function TD(e){let t=(0,le.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}se.getDefaultBranch=TD;function ID(e,t){let r=(0,le.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}se.listAllTrackedFiles=ID;function Vi(e){return e.success?e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules")):[]}});var Fy=F(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.getDefaultRemoteBranch=void 0;var LD=$l(),ND=Yi(),BD=Ml();function $D(...e){var t;let[r,n]=e,i=typeof r=="string"?{branch:r,cwd:n}:r,{cwd:s,branch:o}=i,a=(0,LD.getDefaultRemote)(i);if(o)return`${a}/${o}`;let u=(0,ND.git)(["remote","show",a],{cwd:s}),c;return u.success&&(c=(t=u.stdout.split(/\n/).find(f=>f.includes("HEAD branch")))===null||t===void 0?void 0:t.replace(/^\s*HEAD branch:\s+/,"")),`${a}/${c||(0,BD.getDefaultBranch)(s)}`}qo.getDefaultRemoteBranch=$D});var jo=F(Yt=>{"use strict";var MD=Yt&&Yt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ho=Yt&&Yt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MD(t,e,r)};Object.defineProperty(Yt,"__esModule",{value:!0});Ho(Yi(),Yt);Ho($l(),Yt);Ho(Fy(),Yt);Ho(Ml(),Yt)});var jl=F(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.createDependencyMap=void 0;var jD=Os();function qD(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map};for(let[n,i]of Object.entries(e)){let s=(0,jD.getPackageDependencies)(i,e,t);for(let o of s)r.dependencies.has(n)||r.dependencies.set(n,new Set),r.dependencies.get(n).add(o),r.dependents.has(o)||r.dependents.set(o,new Set),r.dependents.get(o).add(n)}return r}Go.createDependencyMap=qD});var Py=F(Xn=>{"use strict";var HD=Xn&&Xn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.createPackageGraph=void 0;var Ki=jl(),GD=HD(Ri());function UD(e,t){let r=new Set,n=[],i=new Set,s,o,a,u;function c(h,d,g,S){if(r.add(d),!h||h.includeDependencies&&g)for(let w of g){let k=f(d,w);i.has(k)||(i.add(k),n.push({name:d,dependency:w})),r.add(w)}if(!h||h.includeDependents&&S)for(let w of S){let k=f(w,d);i.has(k)||(i.add(k),n.push({name:w,dependency:d})),r.add(w)}}if(t){t=Array.isArray(t)?t:[t];for(let h of t){let d=c.bind(void 0,h),g=l(e,h);ky(e,g,d,h)}}else{let h=c.bind(void 0,void 0),d=l(e);ky(e,d,h)}return{packages:[...r],dependencies:n};function f(h,d){return`${h}->${d}`}function l(h,d){return d?d.withDevDependencies&&d.withPeerDependencies?(s??(s=(0,Ki.createDependencyMap)(h,d)),s):d.withDevDependencies&&!d.withPeerDependencies?(a??(a=(0,Ki.createDependencyMap)(h,d)),a):!d.withDevDependencies&&d.withPeerDependencies?(o??(o=(0,Ki.createDependencyMap)(h,d)),o):(u??(u=(0,Ki.createDependencyMap)(h,d)),u):(0,Ki.createDependencyMap)(h)}}Xn.createPackageGraph=UD;function ky(e,t,r,n){var i,s;let o=new Set,a=Object.keys(e),u=n?(0,GD.default)(a,n.namePatterns):a;for(;u.length>0;){let c=u.pop();if(o.has(c))continue;let f=new Set,l=[],h=[];if(!n||n.includeDependencies){l=[...(i=t.dependencies.get(c))!==null&&i!==void 0?i:[]];for(let d of l)f.add(d)}if(!n||n.includeDependents){h=[...(s=t.dependents.get(c))!==null&&s!==void 0?s:[]];for(let d of h)f.add(d)}if(r(c,l,h),o.add(c),f.size>0)for(let d of f)u.push(d)}}});var Dy=F(sr=>{"use strict";var WD=sr&&sr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),YD=sr&&sr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&WD(t,e,r)};Object.defineProperty(sr,"__esModule",{value:!0});sr.getDependentMap=void 0;YD(Py(),sr);var zD=jl();function VD(e){return(0,zD.createDependencyMap)(e).dependencies}sr.getDependentMap=VD});var Xi=F(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.nameAtVersion=void 0;function KD(e,t){return`${e}@${t}`}Uo.nameAtVersion=KD});var Ty=F(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.parsePnpmLock=void 0;var XD=Xi();function QD(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,XD.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}Wo.parsePnpmLock=QD});var Iy=F(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.parseNpmLock=void 0;var JD=Xi();function ZD(e){var t;return{object:Object.fromEntries(Object.entries((t=e.dependencies)!==null&&t!==void 0?t:{}).map(([n,i])=>[(0,JD.nameAtVersion)(n,i.version),i])),type:"success"}}Yo.parseNpmLock=ZD});var Ny=F((V6,Ly)=>{Ly.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)}([function(e,t){e.exports=M("path")},function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(u,c){function f(l,h){try{var d=a[l](h),g=d.value}catch(S){c(S);return}if(d.done)u(g);else return i.default.resolve(g).then(function(S){f("next",S)},function(S){f("throw",S)})}return f("next")})}}},function(e,t){e.exports=M("util")},function(e,t){e.exports=M("fs")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}t.MessageError=n;class i extends n{constructor(c,f,l){super(c,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}t.ResponseError=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=B(r(1))}let s=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W,V){let he=(()=>{var ye=(0,(n||i()).default)(function*(je){let we=je.src,de=je.dest,Ci=je.type,ht=je.onFresh||Et,Fe=je.onDone||Et;if(ve.has(de.toLowerCase())?V.verbose(`The case-insensitive file ${de} shouldn't be copied twice in one bulk copy`):ve.add(de.toLowerCase()),Ci==="symlink"){yield xe((m||E()).default.dirname(de)),ht(),Ke.symlink.push({dest:de,linkname:we}),Fe();return}if(Y.ignoreBasenames.indexOf((m||E()).default.basename(we))>=0)return;let ke=yield Me(we),Kt;ke.isDirectory()&&(Kt=yield ce(we));let it;try{it=yield Me(de)}catch(Ze){if(Ze.code!=="ENOENT")throw Ze}if(it){let Ze=ke.isSymbolicLink()&&it.isSymbolicLink(),Xt=ke.isDirectory()&&it.isDirectory(),It=ke.isFile()&&it.isFile();if(It&&Se.has(de)){Fe(),V.verbose(V.lang("verboseFileSkipArtifact",we));return}if(It&&ke.size===it.size&&(0,(z||oe()).fileDatesEqual)(ke.mtime,it.mtime)){Fe(),V.verbose(V.lang("verboseFileSkip",we,de,ke.size,+ke.mtime));return}if(Ze){let qe=yield G(we);if(qe===(yield G(de))){Fe(),V.verbose(V.lang("verboseFileSkipSymlink",we,de,qe));return}}if(Xt){let qe=yield ce(de);vn(Kt,"src files not initialised");for(var Pt=qe,pr=Array.isArray(Pt),dt=0,Pt=pr?Pt:Pt[Symbol.iterator]();;){var An;if(pr){if(dt>=Pt.length)break;An=Pt[dt++]}else{if(dt=Pt.next(),dt.done)break;An=dt.value}let yr=An;if(Kt.indexOf(yr)<0){let Qt=(m||E()).default.join(de,yr);if(W.add(Qt),(yield Me(Qt)).isDirectory())for(var Dt=yield ce(Qt),gr=Array.isArray(Dt),pt=0,Dt=gr?Dt:Dt[Symbol.iterator]();;){var Sn;if(gr){if(pt>=Dt.length)break;Sn=Dt[pt++]}else{if(pt=Dt.next(),pt.done)break;Sn=pt.value}let Ia=Sn;W.add((m||E()).default.join(Qt,Ia))}}}}}if(it&&it.isSymbolicLink()&&(yield(0,(z||oe()).unlink)(de),it=null),ke.isSymbolicLink()){ht();let Ze=yield G(we);Ke.symlink.push({dest:de,linkname:Ze}),Fe()}else if(ke.isDirectory()){it||(V.verbose(V.lang("verboseFileFolder",de)),yield xe(de));let Ze=de.split((m||E()).default.sep);for(;Ze.length;)ve.add(Ze.join((m||E()).default.sep).toLowerCase()),Ze.pop();vn(Kt,"src files not initialised");let Xt=Kt.length;Xt||Fe();for(var Tt=Kt,mr=Array.isArray(Tt),gt=0,Tt=mr?Tt:Tt[Symbol.iterator]();;){var Je;if(mr){if(gt>=Tt.length)break;Je=Tt[gt++]}else{if(gt=Tt.next(),gt.done)break;Je=gt.value}let It=Je;K.push({dest:(m||E()).default.join(de,It),onFresh:ht,onDone:function(qe){function yr(){return qe.apply(this,arguments)}return yr.toString=function(){return qe.toString()},yr}(function(){--Xt===0&&Fe()}),src:(m||E()).default.join(we,It)})}}else if(ke.isFile())ht(),Ke.file.push({src:we,dest:de,atime:ke.atime,mtime:ke.mtime,mode:ke.mode}),Fe();else throw new Error(`unsure how to copy this: ${we}`)});return function(we){return ye.apply(this,arguments)}})(),Se=new Set(Y.artifactFiles||[]),ve=new Set;for(var ge=K,Ae=Array.isArray(ge),pe=0,ge=Ae?ge:ge[Symbol.iterator]();;){var ft;if(Ae){if(pe>=ge.length)break;ft=ge[pe++]}else{if(pe=ge.next(),pe.done)break;ft=pe.value}let ye=ft,je=ye.onDone;ye.onDone=function(){Y.onProgress(ye.dest),je&&je()}}Y.onStart(K.length);let Ke={file:[],symlink:[],link:[]};for(;K.length;){let ye=K.splice(0,Gr);yield Promise.all(ye.map(he))}for(var Xe=Se,dr=Array.isArray(Xe),Ft=0,Xe=dr?Xe:Xe[Symbol.iterator]();;){var Ur;if(dr){if(Ft>=Xe.length)break;Ur=Xe[Ft++]}else{if(Ft=Xe.next(),Ft.done)break;Ur=Ft.value}let ye=Ur;W.has(ye)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ye)),W.delete(ye))}for(var Qe=W,wi=Array.isArray(Qe),kt=0,Qe=wi?Qe:Qe[Symbol.iterator]();;){var Wr;if(wi){if(kt>=Qe.length)break;Wr=Qe[kt++]}else{if(kt=Qe.next(),kt.done)break;Wr=kt.value}let ye=Wr;ve.has(ye.toLowerCase())&&W.delete(ye)}return Ke});return function(Y,W,V,he){return J.apply(this,arguments)}})(),o=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W,V){let he=(()=>{var ye=(0,(n||i()).default)(function*(je){let we=je.src,de=je.dest,Ci=je.onFresh||Et,ht=je.onDone||Et;if(ve.has(de.toLowerCase())){ht();return}if(ve.add(de.toLowerCase()),Y.ignoreBasenames.indexOf((m||E()).default.basename(we))>=0)return;let Fe=yield Me(we),ke;Fe.isDirectory()&&(ke=yield ce(we));let Kt=yield Rt(de);if(Kt){let Je=yield Me(de),Ze=Fe.isSymbolicLink()&&Je.isSymbolicLink(),Xt=Fe.isDirectory()&&Je.isDirectory(),It=Fe.isFile()&&Je.isFile();if(Fe.mode!==Je.mode)try{yield fe(de,Fe.mode)}catch(qe){V.verbose(qe)}if(It&&Se.has(de)){ht(),V.verbose(V.lang("verboseFileSkipArtifact",we));return}if(It&&Fe.ino!==null&&Fe.ino===Je.ino){ht(),V.verbose(V.lang("verboseFileSkip",we,de,Fe.ino));return}if(Ze){let qe=yield G(we);if(qe===(yield G(de))){ht(),V.verbose(V.lang("verboseFileSkipSymlink",we,de,qe));return}}if(Xt){let qe=yield ce(de);vn(ke,"src files not initialised");for(var dt=qe,it=Array.isArray(dt),pr=0,dt=it?dt:dt[Symbol.iterator]();;){var Pt;if(it){if(pr>=dt.length)break;Pt=dt[pr++]}else{if(pr=dt.next(),pr.done)break;Pt=pr.value}let yr=Pt;if(ke.indexOf(yr)<0){let Qt=(m||E()).default.join(de,yr);if(W.add(Qt),(yield Me(Qt)).isDirectory())for(var pt=yield ce(Qt),An=Array.isArray(pt),gr=0,pt=An?pt:pt[Symbol.iterator]();;){var Dt;if(An){if(gr>=pt.length)break;Dt=pt[gr++]}else{if(gr=pt.next(),gr.done)break;Dt=gr.value}let Ia=Dt;W.add((m||E()).default.join(Qt,Ia))}}}}}if(Fe.isSymbolicLink()){Ci();let Je=yield G(we);Ke.symlink.push({dest:de,linkname:Je}),ht()}else if(Fe.isDirectory()){V.verbose(V.lang("verboseFileFolder",de)),yield xe(de);let Je=de.split((m||E()).default.sep);for(;Je.length;)ve.add(Je.join((m||E()).default.sep).toLowerCase()),Je.pop();vn(ke,"src files not initialised");let Ze=ke.length;Ze||ht();for(var gt=ke,Sn=Array.isArray(gt),mr=0,gt=Sn?gt:gt[Symbol.iterator]();;){var Tt;if(Sn){if(mr>=gt.length)break;Tt=gt[mr++]}else{if(mr=gt.next(),mr.done)break;Tt=mr.value}let Xt=Tt;K.push({onFresh:Ci,src:(m||E()).default.join(we,Xt),dest:(m||E()).default.join(de,Xt),onDone:function(It){function qe(){return It.apply(this,arguments)}return qe.toString=function(){return It.toString()},qe}(function(){--Ze===0&&ht()})})}}else if(Fe.isFile())Ci(),Ke.link.push({src:we,dest:de,removeDest:Kt}),ht();else throw new Error(`unsure how to copy this: ${we}`)});return function(we){return ye.apply(this,arguments)}})(),Se=new Set(Y.artifactFiles||[]),ve=new Set;for(var ge=K,Ae=Array.isArray(ge),pe=0,ge=Ae?ge:ge[Symbol.iterator]();;){var ft;if(Ae){if(pe>=ge.length)break;ft=ge[pe++]}else{if(pe=ge.next(),pe.done)break;ft=pe.value}let ye=ft,je=ye.onDone||Et;ye.onDone=function(){Y.onProgress(ye.dest),je()}}Y.onStart(K.length);let Ke={file:[],symlink:[],link:[]};for(;K.length;){let ye=K.splice(0,Gr);yield Promise.all(ye.map(he))}for(var Xe=Se,dr=Array.isArray(Xe),Ft=0,Xe=dr?Xe:Xe[Symbol.iterator]();;){var Ur;if(dr){if(Ft>=Xe.length)break;Ur=Xe[Ft++]}else{if(Ft=Xe.next(),Ft.done)break;Ur=Ft.value}let ye=Ur;W.has(ye)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ye)),W.delete(ye))}for(var Qe=W,wi=Array.isArray(Qe),kt=0,Qe=wi?Qe:Qe[Symbol.iterator]();;){var Wr;if(wi){if(kt>=Qe.length)break;Wr=Qe[kt++]}else{if(kt=Qe.next(),kt.done)break;Wr=kt.value}let ye=Wr;ve.has(ye.toLowerCase())&&W.delete(ye)}return Ke});return function(Y,W,V,he){return J.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W){let V={onStart:W&&W.onStart||Et,onProgress:W&&W.onProgress||Et,possibleExtraneous:W?W.possibleExtraneous:new Set,ignoreBasenames:W&&W.ignoreBasenames||[],artifactFiles:W&&W.artifactFiles||[]},he=yield s(K,V,V.possibleExtraneous,Y);V.onStart(he.file.length+he.symlink.length+he.link.length);let Se=he.file,ve=new Map;yield(v||P()).queue(Se,(()=>{var pe=(0,(n||i()).default)(function*(ge){let ft;for(;ft=ve.get(ge.dest);)yield ft;Y.verbose(Y.lang("verboseFileCopy",ge.src,ge.dest));let Ke=(0,(z||oe()).copyFile)(ge,function(){return ve.delete(ge.dest)});return ve.set(ge.dest,Ke),V.onProgress(ge.dest),Ke});return function(ge){return pe.apply(this,arguments)}})(),Gr);let Ae=he.symlink;yield(v||P()).queue(Ae,function(pe){let ge=(m||E()).default.resolve((m||E()).default.dirname(pe.dest),pe.linkname);return Y.verbose(Y.lang("verboseFileSymlink",pe.dest,ge)),d(ge,pe.dest)})});return function(Y,W,V){return J.apply(this,arguments)}})(),u=t.hardlinkBulk=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W){let V={onStart:W&&W.onStart||Et,onProgress:W&&W.onProgress||Et,possibleExtraneous:W?W.possibleExtraneous:new Set,artifactFiles:W&&W.artifactFiles||[],ignoreBasenames:[]},he=yield o(K,V,V.possibleExtraneous,Y);V.onStart(he.file.length+he.symlink.length+he.link.length);let Se=he.link;yield(v||P()).queue(Se,(()=>{var Ae=(0,(n||i()).default)(function*(pe){Y.verbose(Y.lang("verboseFileLink",pe.src,pe.dest)),pe.removeDest&&(yield(0,(z||oe()).unlink)(pe.dest)),yield ws(pe.src,pe.dest)});return function(pe){return Ae.apply(this,arguments)}})(),Gr);let ve=he.symlink;yield(v||P()).queue(ve,function(Ae){let pe=(m||E()).default.resolve((m||E()).default.dirname(Ae.dest),Ae.linkname);return Y.verbose(Y.lang("verboseFileSymlink",Ae.dest,pe)),d(pe,Ae.dest)})});return function(Y,W,V){return J.apply(this,arguments)}})(),c=t.readFileAny=(()=>{var J=(0,(n||i()).default)(function*(K){for(var V=K,Y=Array.isArray(V),W=0,V=Y?V:V[Symbol.iterator]();;){var he;if(Y){if(W>=V.length)break;he=V[W++]}else{if(W=V.next(),W.done)break;he=W.value}let Se=he;if(yield Rt(Se))return Ta(Se)}return null});return function(Y){return J.apply(this,arguments)}})(),f=t.readJson=(()=>{var J=(0,(n||i()).default)(function*(K){return(yield l(K)).object});return function(Y){return J.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var J=(0,(n||i()).default)(function*(K){let Y=yield Ta(K);try{return{object:(0,($||U()).default)(JSON.parse(Si(Y))),content:Y}}catch(W){throw W.message=`${K}: ${W.message}`,W}});return function(Y){return J.apply(this,arguments)}})(),h=t.find=(()=>{var J=(0,(n||i()).default)(function*(K,Y){let W=Y.split((m||E()).default.sep);for(;W.length;){let V=W.concat(K).join((m||E()).default.sep);if(yield Rt(V))return V;W.pop()}return!1});return function(Y,W){return J.apply(this,arguments)}})(),d=t.symlink=(()=>{var J=(0,(n||i()).default)(function*(K,Y){try{if((yield Me(Y)).isSymbolicLink()&&(yield ne(Y))===K)return}catch(W){if(W.code!=="ENOENT")throw W}if(yield(0,(z||oe()).unlink)(Y),process.platform==="win32")yield _s(K,Y,"junction");else{let W;try{W=(m||E()).default.relative((R||b()).default.realpathSync((m||E()).default.dirname(Y)),(R||b()).default.realpathSync(K))}catch(V){if(V.code!=="ENOENT")throw V;W=(m||E()).default.relative((m||E()).default.dirname(Y),K)}yield _s(W||".",Y)}});return function(Y,W){return J.apply(this,arguments)}})(),g=t.walk=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W=new Set){let V=[],he=yield ce(K);W.size&&(he=he.filter(function(ge){return!W.has(ge)}));for(var Ae=he,Se=Array.isArray(Ae),ve=0,Ae=Se?Ae:Ae[Symbol.iterator]();;){var pe;if(Se){if(ve>=Ae.length)break;pe=Ae[ve++]}else{if(ve=Ae.next(),ve.done)break;pe=ve.value}let ge=pe,ft=Y?(m||E()).default.join(Y,ge):ge,Ke=(m||E()).default.join(K,ge),dr=yield Me(Ke);V.push({relative:ft,basename:ge,absolute:Ke,mtime:+dr.mtime}),dr.isDirectory()&&(V=V.concat(yield g(Ke,ft,W)))}return V});return function(Y,W){return J.apply(this,arguments)}})(),S=t.getFileSizeOnDisk=(()=>{var J=(0,(n||i()).default)(function*(K){let Y=yield Me(K),W=Y.size,V=Y.blksize;return Math.ceil(W/V)*V});return function(Y){return J.apply(this,arguments)}})(),w=(()=>{var J=(0,(n||i()).default)(function*(K){if(!(yield Rt(K)))return;let Y=yield re(K);for(let W=0;W<Y.length;++W){if(Y[W]===rC)return`\r
|
|
49
|
+
`;if(Y[W]===nC)return`
|
|
50
|
+
`}});return function(Y){return J.apply(this,arguments)}})(),k=t.writeFilePreservingEol=(()=>{var J=(0,(n||i()).default)(function*(K,Y){let W=(yield w(K))||(x||p()).default.EOL;W!==`
|
|
51
|
+
`&&(Y=Y.replace(/\n/g,W)),yield ie(K,Y)});return function(Y,W){return J.apply(this,arguments)}})(),_=t.hardlinksWork=(()=>{var J=(0,(n||i()).default)(function*(K){let Y="test-file"+Math.random(),W=(m||E()).default.join(K,Y),V=(m||E()).default.join(K,Y+"-link");try{yield ie(W,"test"),yield ws(W,V)}catch{return!1}finally{yield(0,(z||oe()).unlink)(W),yield(0,(z||oe()).unlink)(V)}return!0});return function(Y){return J.apply(this,arguments)}})(),N=t.makeTempDir=(()=>{var J=(0,(n||i()).default)(function*(K){let Y=(m||E()).default.join((x||p()).default.tmpdir(),`yarn-${K||""}-${Date.now()}-${Math.random()}`);return yield(0,(z||oe()).unlink)(Y),yield xe(Y),Y});return function(Y){return J.apply(this,arguments)}})(),D=t.readFirstAvailableStream=(()=>{var J=(0,(n||i()).default)(function*(K){for(var V=K,Y=Array.isArray(V),W=0,V=Y?V:V[Symbol.iterator]();;){var he;if(Y){if(W>=V.length)break;he=V[W++]}else{if(W=V.next(),W.done)break;he=W.value}let Se=he;try{let ve=yield q(Se,"r");return(R||b()).default.createReadStream(Se,{fd:ve})}catch{}}return null});return function(Y){return J.apply(this,arguments)}})(),A=t.getFirstSuitableFolder=(()=>{var J=(0,(n||i()).default)(function*(K,Y=j.W_OK|j.X_OK){let W={skipped:[],folder:null};for(var Se=K,V=Array.isArray(Se),he=0,Se=V?Se:Se[Symbol.iterator]();;){var ve;if(V){if(he>=Se.length)break;ve=Se[he++]}else{if(he=Se.next(),he.done)break;ve=he.value}let Ae=ve;try{return yield xe(Ae),yield fe(Ae,Y),W.folder=Ae,W}catch(pe){W.skipped.push({error:pe,folder:Ae})}}return W});return function(Y){return J.apply(this,arguments)}})();t.copy=xs,t.readFile=Ta,t.readFileRaw=tC,t.normalizeOS=Rh;var R;function b(){return R=B(r(3))}var O;function T(){return O=B(r(75))}var x;function p(){return x=B(r(36))}var m;function E(){return m=B(r(0))}var C;function y(){return C=B(r(84))}var v;function P(){return v=H(r(40))}var I;function L(){return I=r(40)}var $;function U(){return $=B(r(20))}var z;function oe(){return z=r(164)}function H(J){if(J&&J.__esModule)return J;var K={};if(J!=null)for(var Y in J)Object.prototype.hasOwnProperty.call(J,Y)&&(K[Y]=J[Y]);return K.default=J,K}function B(J){return J&&J.__esModule?J:{default:J}}let j=t.constants=typeof(R||b()).default.constants<"u"?(R||b()).default.constants:{R_OK:(R||b()).default.R_OK,W_OK:(R||b()).default.W_OK,X_OK:(R||b()).default.X_OK},te=t.lockQueue=new(C||y()).default("fs lock"),re=t.readFileBuffer=(0,(I||L()).promisify)((R||b()).default.readFile),q=t.open=(0,(I||L()).promisify)((R||b()).default.open),ie=t.writeFile=(0,(I||L()).promisify)((R||b()).default.writeFile),G=t.readlink=(0,(I||L()).promisify)((R||b()).default.readlink),ne=t.realpath=(0,(I||L()).promisify)((R||b()).default.realpath),ce=t.readdir=(0,(I||L()).promisify)((R||b()).default.readdir),Ee=t.rename=(0,(I||L()).promisify)((R||b()).default.rename),fe=t.access=(0,(I||L()).promisify)((R||b()).default.access),Re=t.stat=(0,(I||L()).promisify)((R||b()).default.stat),xe=t.mkdirp=(0,(I||L()).promisify)(r(116)),Rt=t.exists=(0,(I||L()).promisify)((R||b()).default.exists,!0),Me=t.lstat=(0,(I||L()).promisify)((R||b()).default.lstat),Vt=t.chmod=(0,(I||L()).promisify)((R||b()).default.chmod),ws=t.link=(0,(I||L()).promisify)((R||b()).default.link),Cs=t.glob=(0,(I||L()).promisify)((O||T()).default);t.unlink=(z||oe()).unlink;let Gr=(R||b()).default.copyFile?128:4,_s=(0,(I||L()).promisify)((R||b()).default.symlink),vn=r(7),Si=r(122),Et=()=>{};function xs(J,K,Y){return a([{src:J,dest:K}],Y)}function En(J,K){return new Promise((Y,W)=>{(R||b()).default.readFile(J,K,function(V,he){V?W(V):Y(he)})})}function Ta(J){return En(J,"utf8").then(Rh)}function tC(J){return En(J,"binary")}function Rh(J){return J.replace(/\r\n/g,`
|
|
52
|
+
`)}let rC=13,nC=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=fe;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",d=t.MANIFEST_FIELDS=[h,...l],g=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",S=t.YARN_REGISTRY="https://registry.yarnpkg.com",w=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",k=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",_=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",N=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",D=t.CACHE_VERSION=2,A=t.LOCKFILE_VERSION=1,R=t.NETWORK_CONCURRENCY=8,b=t.NETWORK_TIMEOUT=30*1e3,O=t.CHILD_CONCURRENCY=5,T=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function x(){let xe=[a()];return process.getuid&&xe.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),xe.push(i.join(n.tmpdir(),".yarn-cache")),xe}let p=t.PREFERRED_MODULE_CACHE_DIRECTORIES=x(),m=t.CONFIG_DIRECTORY=u(),E=t.DATA_DIRECTORY=c(),C=t.LINK_REGISTRY_DIRECTORY=i.join(E,"link"),y=t.GLOBAL_MODULE_DIRECTORY=i.join(E,"global"),v=t.NODE_BIN_PATH=process.execPath,P=t.YARN_BIN_PATH=I();function I(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let L=t.NODE_MODULES_FOLDER="node_modules",$=t.NODE_PACKAGE_JSON="package.json",U=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,z=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),oe=t.META_FOLDER=".yarn-meta",H=t.INTEGRITY_FILENAME=".yarn-integrity",B=t.LOCKFILE_FILENAME="yarn.lock",j=t.METADATA_FILENAME=".yarn-metadata.json",te=t.TARBALL_FILENAME=".yarn-tarball.tgz",re=t.CLEAN_FILENAME=".yarnclean",q=t.NPM_LOCK_FILENAME="package-lock.json",ie=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",G=t.DEFAULT_INDENT=" ",ne=t.SINGLE_INSTANCE_PORT=31997,ce=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",Ee=t.ENV_PATH_KEY=fe(process.platform,process.env);function fe(xe,Rt){let Me="PATH";if(xe==="win32"){Me="Path";for(let Vt in Rt)Vt.toLowerCase()==="path"&&(Me=Vt)}return Me}let Re=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,u,c,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[a,u,c,f,l,h],S=0;d=new Error(o.replace(/%s/g,function(){return g[S++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};e.exports=i},,function(e,t){e.exports=M("crypto")},,function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=u,t.hyphenate=c,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(d,g){let S=Math.min(d.length,g.length);for(let w=0;w<S;w++){let k=d.charCodeAt(w),_=g.charCodeAt(w);if(k!==_)return k-_}return d.length-g.length}function s(d){let g=[];if(d)for(let S in d)g.push([S,d[S]]);return g}function o(d,g){return d.startsWith(g)&&(d=d.slice(g.length)),d}function a(d,g){return d.endsWith(g)?d.slice(0,-g.length):d}function u(d,g){return d.endsWith(g)?d:d+g}function c(d){return d.replace(/[A-Z]/g,g=>"-"+g.charAt(0).toLowerCase())}function f(d){return/[A-Z]/.test(d)?null:n(d)}function l(d,g){if(d.length!==g.length)return!1;for(let S=0,w=d.length;S<w;S++)if(d[S]!==g[S])return!1;return!0}function h(d){return new Promise(g=>{setTimeout(g,d)})}},function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(u){return n[u]||(n[u]=o&&s[u]||(o?s:i)("Symbol."+u))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=D(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return D(s||o()).default}});var a;function u(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return D(a||u()).default}}),t.implodeEntry=m,t.explodeEntry=E;var c;function f(){return c=r(12)}var l;function h(){return l=r(29)}var d;function g(){return d=D(r(81))}var S;function w(){return S=r(6)}var k;function _(){return k=N(r(5))}function N(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var P in y)Object.prototype.hasOwnProperty.call(y,P)&&(v[P]=y[P]);return v.default=y,v}function D(y){return y&&y.__esModule?y:{default:y}}let A=r(7),R=r(0),b=r(55);function O(y){return(0,(l||h()).normalizePattern)(y).name}function T(y){return y&&Object.keys(y).length?y:void 0}function x(y){return y.resolved||(y.reference&&y.hash?`${y.reference}#${y.hash}`:null)}function p(y){return y.toString().split(" ").sort().join(" ")}function m(y,v){let P=O(y),I=v.integrity?p(v.integrity):"",L={name:P===v.name?void 0:v.name,version:v.version,uid:v.uid===v.version?void 0:v.uid,resolved:v.resolved,registry:v.registry==="npm"?void 0:v.registry,dependencies:T(v.dependencies),optionalDependencies:T(v.optionalDependencies),permissions:T(v.permissions),prebuiltVariants:T(v.prebuiltVariants)};return I&&(L.integrity=I),L}function E(y,v){v.optionalDependencies=v.optionalDependencies||{},v.dependencies=v.dependencies||{},v.uid=v.uid||v.version,v.permissions=v.permissions||{},v.registry=v.registry||"npm",v.name=v.name||O(y);let P=v.integrity;return P&&P.isIntegrity&&(v.integrity=b.parse(P)),v}class C{constructor({cache:v,source:P,parseResultType:I}={}){this.source=P||"",this.cache=v,this.parseResultType=I}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let v in this.cache)if(!/^.*@(file:|http)/.test(v)&&this.cache[v]&&!this.cache[v].integrity)return!0;return!1}static fromDirectory(v,P){return(0,(n||i()).default)(function*(){let I=R.join(v,(S||w()).LOCKFILE_FILENAME),L,$="",U;return(yield(k||_()).exists(I))?($=yield(k||_()).readFile(I),U=(0,(d||g()).default)($,I),P&&(U.type==="merge"?P.info(P.lang("lockfileMerged")):U.type==="conflict"&&P.warn(P.lang("lockfileConflict"))),L=U.object):P&&P.info(P.lang("noLockfileFound")),new C({cache:L,source:$,parseResultType:U&&U.type})})()}getLocked(v){let P=this.cache;if(!P)return;let I=v in P&&P[v];if(typeof I=="string")return this.getLocked(I);if(I)return E(v,I),I}removePattern(v){let P=this.cache;P&&delete P[v]}getLockfile(v){let P={},I=new Map,L=Object.keys(v).sort((c||f()).sortAlpha);for(var z=L,$=Array.isArray(z),U=0,z=$?z:z[Symbol.iterator]();;){var oe;if($){if(U>=z.length)break;oe=z[U++]}else{if(U=z.next(),U.done)break;oe=U.value}let H=oe,B=v[H],j=B._remote,te=B._reference;A(te,"Package is missing a reference"),A(j,"Package is missing a remote");let re=x(j),q=re&&I.get(re);if(q){P[H]=q,!q.name&&O(H)!==B.name&&(q.name=B.name);continue}let ie=m(H,{name:B.name,version:B.version,uid:B._uid,resolved:j.resolved,integrity:j.integrity,registry:j.registry,dependencies:B.dependencies,peerDependencies:B.peerDependencies,optionalDependencies:B.optionalDependencies,permissions:te.permissions,prebuiltVariants:B.prebuiltVariants});P[H]=ie,re&&I.set(re,ie)}return P}}t.default=C},,,function(e,t){e.exports=M("stream")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var u;if(s){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let c in i)n(i[c]);return i}},,function(e,t){e.exports=M("assert")},function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)},,,,function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?s=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}},,function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}},function(e,t,r){var n=r(63),i=n.Buffer;function s(a,u){for(var c in a)u[c]=a[c]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,u,c){return i(a,u,c)}s(i,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(e,t){e.exports={}},function(e,t){e.exports=M("os")},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...u){return new Promise(function(c,f){u.push(function(l,...h){let d=h;h.length<=1&&(d=h[0]),a&&(d=l,l=null),l?f(l):c(d)}),o.apply(null,u)})}}function s(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((l,h)=>{for(let g=0;g<u;g++)d();function d(){let g=o.shift();a(g).then(function(w){c.push(w),f--,f===0?l(c):o.length&&d()},h)}}):Promise.resolve(c)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),u="prototype",c=function(f,l,h){var d=f&c.F,g=f&c.G,S=f&c.S,w=f&c.P,k=f&c.B,_=f&c.W,N=g?i:i[l]||(i[l]={}),D=N[u],A=g?n:S?n[l]:(n[l]||{})[u],R,b,O;g&&(h=l);for(R in h)b=!d&&A&&A[R]!==void 0,!(b&&a(N,R))&&(O=b?A[R]:h[R],N[R]=g&&typeof A[R]!="function"?h[R]:k&&b?s(O,n):_&&A[R]==O?function(T){var x=function(p,m,E){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(p);case 2:return new T(p,m)}return new T(p,m,E)}return T.apply(this,arguments)};return x[u]=T[u],x}(O):w&&typeof O=="function"?s(Function.call,O):O,w&&((N.virtual||(N.virtual={}))[R]=O,f&c.R&&D&&!D[R]&&o(D,R,O)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(0),a=t.home=r(36).homedir(),u=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=u},function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}},function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,u){return i.call(s,a,u)};case 3:return function(a,u,c){return i.call(s,a,u,c)}}return function(){return i.apply(s,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}},function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(u,c,f){if(n(u),c=s(c,!0),n(f),i)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}},,,,function(e,t){e.exports=M("events")},function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(p,m){let E=!!(m&&m.strict);this.source=p.trim();let C=this.source.match(E?c:u);if(!C||E&&!o.some(v=>v===C[1]))return;this.algorithm=C[1],this.digest=C[2];let y=C[3];this.options=y?y.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(p){if(p&&p.strict&&!(o.some(E=>E===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(E=>E.match(f))))return"";let m=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${m}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(p){p=p||{};let m=p.sep||" ";return p.strict&&(m=m.replace(/\S+/g," ")),Object.keys(this).map(E=>this[E].map(C=>l.prototype.toString.call(C,p)).filter(C=>C.length).join(m)).filter(E=>E.length).join(m)}concat(p,m){let E=typeof p=="string"?p:S(p,m);return d(`${this.toString(m)} ${E}`,m)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(p,m){let E=d(p,m),C=E.pickAlgorithm(m);return this[C]&&E[C]&&this[C].find(y=>E[C].find(v=>y.digest===v.digest))||!1}pickAlgorithm(p){let m=p&&p.pickAlgorithm||T,E=Object.keys(this);if(!E.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return E.reduce((C,y)=>m(C,y)||C)}}e.exports.parse=d;function d(x,p){if(p=p||{},typeof x=="string")return g(x,p);if(x.algorithm&&x.digest){let m=new h;return m[x.algorithm]=[x],g(S(m,p),p)}else return g(S(x,p),p)}function g(x,p){return p.single?new l(x,p):x.trim().split(/\s+/).reduce((m,E)=>{let C=new l(E,p);if(C.algorithm&&C.digest){let y=C.algorithm;m[y]||(m[y]=[]),m[y].push(C)}return m},new h)}e.exports.stringify=S;function S(x,p){return x.algorithm&&x.digest?l.prototype.toString.call(x,p):typeof x=="string"?S(d(x,p),p):h.prototype.toString.call(x,p)}e.exports.fromHex=w;function w(x,p,m){let E=m&&m.options&&m.options.length?`?${m.options.join("?")}`:"";return d(`${p}-${n.from(x,"hex").toString("base64")}${E}`,m)}e.exports.fromData=k;function k(x,p){p=p||{};let m=p.algorithms||["sha512"],E=p.options&&p.options.length?`?${p.options.join("?")}`:"";return m.reduce((C,y)=>{let v=i.createHash(y).update(x).digest("base64"),P=new l(`${y}-${v}${E}`,p);if(P.algorithm&&P.digest){let I=P.algorithm;C[I]||(C[I]=[]),C[I].push(P)}return C},new h)}e.exports.fromStream=_;function _(x,p){p=p||{};let m=p.Promise||Promise,E=A(p);return new m((C,y)=>{x.pipe(E),x.on("error",y),E.on("error",y);let v;E.on("integrity",P=>{v=P}),E.on("end",()=>C(v)),E.on("data",()=>{})})}e.exports.checkData=N;function N(x,p,m){if(m=m||{},p=d(p,m),!Object.keys(p).length){if(m.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let E=p.pickAlgorithm(m),C=i.createHash(E).update(x).digest("base64"),y=d({algorithm:E,digest:C}),v=y.match(p,m);if(v||!m.error)return v;if(typeof m.size=="number"&&x.length!==m.size){let P=new Error(`data size mismatch when checking ${p}.
|
|
53
|
+
Wanted: ${m.size}
|
|
54
|
+
Found: ${x.length}`);throw P.code="EBADSIZE",P.found=x.length,P.expected=m.size,P.sri=p,P}else{let P=new Error(`Integrity checksum failed when using ${E}: Wanted ${p}, but got ${y}. (${x.length} bytes)`);throw P.code="EINTEGRITY",P.found=y,P.expected=p,P.algorithm=E,P.sri=p,P}}e.exports.checkStream=D;function D(x,p,m){m=m||{};let E=m.Promise||Promise,C=A(Object.assign({},m,{integrity:p}));return new E((y,v)=>{x.pipe(C),x.on("error",v),C.on("error",v);let P;C.on("verified",I=>{P=I}),C.on("end",()=>y(P)),C.on("data",()=>{})})}e.exports.integrityStream=A;function A(x){x=x||{};let p=x.integrity&&d(x.integrity,x),m=p&&Object.keys(p).length,E=m&&p.pickAlgorithm(x),C=m&&p[E],y=Array.from(new Set((x.algorithms||["sha512"]).concat(E?[E]:[]))),v=y.map(i.createHash),P=0,I=new s({transform(L,$,U){P+=L.length,v.forEach(z=>z.update(L,$)),U(null,L,$)}}).on("end",()=>{let L=x.options&&x.options.length?`?${x.options.join("?")}`:"",$=d(v.map((z,oe)=>`${y[oe]}-${z.digest("base64")}${L}`).join(" "),x),U=m&&$.match(p,x);if(typeof x.size=="number"&&P!==x.size){let z=new Error(`stream size mismatch when checking ${p}.
|
|
55
|
+
Wanted: ${x.size}
|
|
56
|
+
Found: ${P}`);z.code="EBADSIZE",z.found=P,z.expected=x.size,z.sri=p,I.emit("error",z)}else if(x.integrity&&!U){let z=new Error(`${p} integrity checksum failed when using ${E}: wanted ${C} but got ${$}. (${P} bytes)`);z.code="EINTEGRITY",z.found=$,z.expected=C,z.algorithm=E,z.sri=p,I.emit("error",z)}else I.emit("size",P),I.emit("integrity",$),U&&I.emit("verified",U)});return I}e.exports.create=R;function R(x){x=x||{};let p=x.algorithms||["sha512"],m=x.options&&x.options.length?`?${x.options.join("?")}`:"",E=p.map(i.createHash);return{update:function(C,y){return E.forEach(v=>v.update(C,y)),this},digest:function(C){return p.reduce((v,P)=>{let I=E.shift().digest("base64"),L=new l(`${P}-${I}${m}`,x);if(L.algorithm&&L.digest){let $=L.algorithm;v[$]||(v[$]=[]),v[$].push(L)}return v},new h)}}}let b=new Set(i.getHashes()),O=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(x=>b.has(x));function T(x,p){return O.indexOf(x.toLowerCase())>=O.indexOf(p.toLowerCase())?x:p}},,,,,function(e,t,r){e.exports=w,w.Minimatch=k;var n={sep:"/"};try{n=r(0)}catch{}var i=w.GLOBSTAR=k.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(p){return p.split("").reduce(function(m,E){return m[E]=!0,m},{})}var d=/\/+/;w.filter=g;function g(p,m){return m=m||{},function(E,C,y){return w(E,p,m)}}function S(p,m){p=p||{},m=m||{};var E={};return Object.keys(m).forEach(function(C){E[C]=m[C]}),Object.keys(p).forEach(function(C){E[C]=p[C]}),E}w.defaults=function(p){if(!p||!Object.keys(p).length)return w;var m=w,E=function(y,v,P){return m.minimatch(y,v,S(p,P))};return E.Minimatch=function(y,v){return new m.Minimatch(y,S(p,v))},E},k.defaults=function(p){return!p||!Object.keys(p).length?k:w.defaults(p).Minimatch};function w(p,m,E){if(typeof m!="string")throw new TypeError("glob pattern string required");return E||(E={}),!E.nocomment&&m.charAt(0)==="#"?!1:m.trim()===""?p==="":new k(m,E).match(p)}function k(p,m){if(!(this instanceof k))return new k(p,m);if(typeof p!="string")throw new TypeError("glob pattern string required");m||(m={}),p=p.trim(),n.sep!=="/"&&(p=p.split(n.sep).join("/")),this.options=m,this.set=[],this.pattern=p,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}k.prototype.debug=function(){},k.prototype.make=_;function _(){if(!this._made){var p=this.pattern,m=this.options;if(!m.nocomment&&p.charAt(0)==="#"){this.comment=!0;return}if(!p){this.empty=!0;return}this.parseNegate();var E=this.globSet=this.braceExpand();m.debug&&(this.debug=console.error),this.debug(this.pattern,E),E=this.globParts=E.map(function(C){return C.split(d)}),this.debug(this.pattern,E),E=E.map(function(C,y,v){return C.map(this.parse,this)},this),this.debug(this.pattern,E),E=E.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,E),this.set=E}}k.prototype.parseNegate=N;function N(){var p=this.pattern,m=!1,E=this.options,C=0;if(!E.nonegate){for(var y=0,v=p.length;y<v&&p.charAt(y)==="!";y++)m=!m,C++;C&&(this.pattern=p.substr(C)),this.negate=m}}w.braceExpand=function(p,m){return D(p,m)},k.prototype.braceExpand=D;function D(p,m){if(m||(this instanceof k?m=this.options:m={}),p=typeof p>"u"?this.pattern:p,typeof p>"u")throw new TypeError("undefined pattern");return m.nobrace||!p.match(/\{.*\}/)?[p]:s(p)}k.prototype.parse=R;var A={};function R(p,m){if(p.length>1024*64)throw new TypeError("pattern is too long");var E=this.options;if(!E.noglobstar&&p==="**")return i;if(p==="")return"";var C="",y=!!E.nocase,v=!1,P=[],I=[],L,$=!1,U=-1,z=-1,oe=p.charAt(0)==="."?"":E.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=this;function B(){if(L){switch(L){case"*":C+=u,y=!0;break;case"?":C+=a,y=!0;break;default:C+="\\"+L;break}H.debug("clearStateChar %j %j",L,C),L=!1}}for(var j=0,te=p.length,re;j<te&&(re=p.charAt(j));j++){if(this.debug("%s %s %s %j",p,j,C,re),v&&l[re]){C+="\\"+re,v=!1;continue}switch(re){case"/":return!1;case"\\":B(),v=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",p,j,C,re),$){this.debug(" in class"),re==="!"&&j===z+1&&(re="^"),C+=re;continue}H.debug("call clearStateChar %j",L),B(),L=re,E.noext&&B();continue;case"(":if($){C+="(";continue}if(!L){C+="\\(";continue}P.push({type:L,start:j-1,reStart:C.length,open:o[L].open,close:o[L].close}),C+=L==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",L,C),L=!1;continue;case")":if($||!P.length){C+="\\)";continue}B(),y=!0;var q=P.pop();C+=q.close,q.type==="!"&&I.push(q),q.reEnd=C.length;continue;case"|":if($||!P.length||v){C+="\\|",v=!1;continue}B(),C+="|";continue;case"[":if(B(),$){C+="\\"+re;continue}$=!0,z=j,U=C.length,C+=re;continue;case"]":if(j===z+1||!$){C+="\\"+re,v=!1;continue}if($){var ie=p.substring(z+1,j);try{RegExp("["+ie+"]")}catch{var G=this.parse(ie,A);C=C.substr(0,U)+"\\["+G[0]+"\\]",y=y||G[1],$=!1;continue}}y=!0,$=!1,C+=re;continue;default:B(),v?v=!1:l[re]&&!(re==="^"&&$)&&(C+="\\"),C+=re}}for($&&(ie=p.substr(z+1),G=this.parse(ie,A),C=C.substr(0,U)+"\\["+G[0],y=y||G[1]),q=P.pop();q;q=P.pop()){var ne=C.slice(q.reStart+q.open.length);this.debug("setting tail",C,q),ne=ne.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Et,xs,En){return En||(En="\\"),xs+xs+En+"|"}),this.debug(`tail=%j
|
|
57
|
+
%s`,ne,ne,q,C);var ce=q.type==="*"?u:q.type==="?"?a:"\\"+q.type;y=!0,C=C.slice(0,q.reStart)+ce+"\\("+ne}B(),v&&(C+="\\\\");var Ee=!1;switch(C.charAt(0)){case".":case"[":case"(":Ee=!0}for(var fe=I.length-1;fe>-1;fe--){var Re=I[fe],xe=C.slice(0,Re.reStart),Rt=C.slice(Re.reStart,Re.reEnd-8),Me=C.slice(Re.reEnd-8,Re.reEnd),Vt=C.slice(Re.reEnd);Me+=Vt;var ws=xe.split("(").length-1,Cs=Vt;for(j=0;j<ws;j++)Cs=Cs.replace(/\)[+*?]?/,"");Vt=Cs;var Gr="";Vt===""&&m!==A&&(Gr="$");var _s=xe+Rt+Vt+Gr+Me;C=_s}if(C!==""&&y&&(C="(?=.)"+C),Ee&&(C=oe+C),m===A)return[C,y];if(!y)return T(p);var vn=E.nocase?"i":"";try{var Si=new RegExp("^"+C+"$",vn)}catch{return new RegExp("$.")}return Si._glob=p,Si._src=C,Si}w.makeRe=function(p,m){return new k(p,m||{}).makeRe()},k.prototype.makeRe=b;function b(){if(this.regexp||this.regexp===!1)return this.regexp;var p=this.set;if(!p.length)return this.regexp=!1,this.regexp;var m=this.options,E=m.noglobstar?u:m.dot?c:f,C=m.nocase?"i":"",y=p.map(function(v){return v.map(function(P){return P===i?E:typeof P=="string"?x(P):P._src}).join("\\/")}).join("|");y="^(?:"+y+")$",this.negate&&(y="^(?!"+y+").*$");try{this.regexp=new RegExp(y,C)}catch{this.regexp=!1}return this.regexp}w.match=function(p,m,E){E=E||{};var C=new k(m,E);return p=p.filter(function(y){return C.match(y)}),C.options.nonull&&!p.length&&p.push(m),p},k.prototype.match=O;function O(p,m){if(this.debug("match",p,this.pattern),this.comment)return!1;if(this.empty)return p==="";if(p==="/"&&m)return!0;var E=this.options;n.sep!=="/"&&(p=p.split(n.sep).join("/")),p=p.split(d),this.debug(this.pattern,"split",p);var C=this.set;this.debug(this.pattern,"set",C);var y,v;for(v=p.length-1;v>=0&&(y=p[v],!y);v--);for(v=0;v<C.length;v++){var P=C[v],I=p;E.matchBase&&P.length===1&&(I=[y]);var L=this.matchOne(I,P,m);if(L)return E.flipNegate?!0:!this.negate}return E.flipNegate?!1:this.negate}k.prototype.matchOne=function(p,m,E){var C=this.options;this.debug("matchOne",{this:this,file:p,pattern:m}),this.debug("matchOne",p.length,m.length);for(var y=0,v=0,P=p.length,I=m.length;y<P&&v<I;y++,v++){this.debug("matchOne loop");var L=m[v],$=p[y];if(this.debug(m,L,$),L===!1)return!1;if(L===i){this.debug("GLOBSTAR",[m,L,$]);var U=y,z=v+1;if(z===I){for(this.debug("** at the end");y<P;y++)if(p[y]==="."||p[y]===".."||!C.dot&&p[y].charAt(0)===".")return!1;return!0}for(;U<P;){var oe=p[U];if(this.debug(`
|
|
58
|
+
globstar while`,p,U,m,z,oe),this.matchOne(p.slice(U),m.slice(z),E))return this.debug("globstar found match!",U,P,oe),!0;if(oe==="."||oe===".."||!C.dot&&oe.charAt(0)==="."){this.debug("dot detected!",p,U,m,z);break}this.debug("globstar swallow a segment, and continue"),U++}return!!(E&&(this.debug(`
|
|
59
|
+
>>> no match, partial?`,p,U,m,z),U===P))}var H;if(typeof L=="string"?(C.nocase?H=$.toLowerCase()===L.toLowerCase():H=$===L,this.debug("string match",L,$,H)):(H=$.match(L),this.debug("pattern match",L,$,H)),!H)return!1}if(y===P&&v===I)return!0;if(y===P)return E;if(v===I){var B=y===P-1&&p[y]==="";return B}throw new Error("wtf?")};function T(p){return p.replace(/\\(.)/g,"$1")}function x(p){return p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},u=o.name||"Function wrapped with `once`";return a.onceError=u+" shouldn't be called more than once",a.called=!1,a}},,function(e,t){e.exports=M("buffer")},,,,function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(u,c){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=u,a=c}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}},function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,u){o&&!i(o=u?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}},function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}},function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}},function(e,t,r){e.exports=b;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),u=r(54).EventEmitter,c=r(0),f=r(22),l=r(76),h=r(218),d=r(115),g=d.alphasort,S=d.alphasorti,w=d.setopts,k=d.ownProp,_=r(223),N=r(2),D=d.childrenIgnored,A=d.isIgnored,R=r(61);function b(m,E,C){if(typeof E=="function"&&(C=E,E={}),E||(E={}),E.sync){if(C)throw new TypeError("callback provided to sync glob");return h(m,E)}return new x(m,E,C)}b.sync=h;var O=b.GlobSync=h.GlobSync;b.glob=b;function T(m,E){if(E===null||typeof E!="object")return m;for(var C=Object.keys(E),y=C.length;y--;)m[C[y]]=E[C[y]];return m}b.hasMagic=function(m,E){var C=T({},E);C.noprocess=!0;var y=new x(m,C),v=y.minimatch.set;if(!m)return!1;if(v.length>1)return!0;for(var P=0;P<v[0].length;P++)if(typeof v[0][P]!="string")return!0;return!1},b.Glob=x,a(x,u);function x(m,E,C){if(typeof E=="function"&&(C=E,E=null),E&&E.sync){if(C)throw new TypeError("callback provided to sync glob");return new O(m,E)}if(!(this instanceof x))return new x(m,E,C);w(this,m,E),this._didRealPath=!1;var y=this.minimatch.set.length;this.matches=new Array(y),typeof C=="function"&&(C=R(C),this.on("error",C),this.on("end",function($){C(null,$)}));var v=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(y===0)return L();for(var P=!0,I=0;I<y;I++)this._process(this.minimatch.set[I],I,!1,L);P=!1;function L(){--v._processing,v._processing<=0&&(P?process.nextTick(function(){v._finish()}):v._finish())}}x.prototype._finish=function(){if(f(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var m=this.matches.length;if(m===0)return this._finish();for(var E=this,C=0;C<this.matches.length;C++)this._realpathSet(C,y);function y(){--m===0&&E._finish()}},x.prototype._realpathSet=function(m,E){var C=this.matches[m];if(!C)return E();var y=Object.keys(C),v=this,P=y.length;if(P===0)return E();var I=this.matches[m]=Object.create(null);y.forEach(function(L,$){L=v._makeAbs(L),i.realpath(L,v.realpathCache,function(U,z){U?U.syscall==="stat"?I[L]=!0:v.emit("error",U):I[z]=!0,--P===0&&(v.matches[m]=I,E())})})},x.prototype._mark=function(m){return d.mark(this,m)},x.prototype._makeAbs=function(m){return d.makeAbs(this,m)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var m=this._emitQueue.slice(0);this._emitQueue.length=0;for(var E=0;E<m.length;E++){var C=m[E];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var y=this._processQueue.slice(0);this._processQueue.length=0;for(var E=0;E<y.length;E++){var v=y[E];this._processing--,this._process(v[0],v[1],v[2],v[3])}}}},x.prototype._process=function(m,E,C,y){if(f(this instanceof x),f(typeof y=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([m,E,C,y]);return}for(var v=0;typeof m[v]=="string";)v++;var P;switch(v){case m.length:this._processSimple(m.join("/"),E,y);return;case 0:P=null;break;default:P=m.slice(0,v).join("/");break}var I=m.slice(v),L;P===null?L=".":((l(P)||l(m.join("/")))&&(!P||!l(P))&&(P="/"+P),L=P);var $=this._makeAbs(L);if(D(this,L))return y();var U=I[0]===s.GLOBSTAR;U?this._processGlobStar(P,L,$,I,E,C,y):this._processReaddir(P,L,$,I,E,C,y)}},x.prototype._processReaddir=function(m,E,C,y,v,P,I){var L=this;this._readdir(C,P,function($,U){return L._processReaddir2(m,E,C,y,v,P,U,I)})},x.prototype._processReaddir2=function(m,E,C,y,v,P,I,L){if(!I)return L();for(var $=y[0],U=!!this.minimatch.negate,z=$._glob,oe=this.dot||z.charAt(0)===".",H=[],B=0;B<I.length;B++){var j=I[B];if(j.charAt(0)!=="."||oe){var te;U&&!m?te=!j.match($):te=j.match($),te&&H.push(j)}}var re=H.length;if(re===0)return L();if(y.length===1&&!this.mark&&!this.stat){this.matches[v]||(this.matches[v]=Object.create(null));for(var B=0;B<re;B++){var j=H[B];m&&(m!=="/"?j=m+"/"+j:j=m+j),j.charAt(0)==="/"&&!this.nomount&&(j=c.join(this.root,j)),this._emitMatch(v,j)}return L()}y.shift();for(var B=0;B<re;B++){var j=H[B],q;m&&(m!=="/"?j=m+"/"+j:j=m+j),this._process([j].concat(y),v,P,L)}L()},x.prototype._emitMatch=function(m,E){if(!this.aborted&&!A(this,E)){if(this.paused){this._emitQueue.push([m,E]);return}var C=l(E)?E:this._makeAbs(E);if(this.mark&&(E=this._mark(E)),this.absolute&&(E=C),!this.matches[m][E]){if(this.nodir){var y=this.cache[C];if(y==="DIR"||Array.isArray(y))return}this.matches[m][E]=!0;var v=this.statCache[C];v&&this.emit("stat",E,v),this.emit("match",E)}}},x.prototype._readdirInGlobStar=function(m,E){if(this.aborted)return;if(this.follow)return this._readdir(m,!1,E);var C="lstat\0"+m,y=this,v=_(C,P);v&&n.lstat(m,v);function P(I,L){if(I&&I.code==="ENOENT")return E();var $=L&&L.isSymbolicLink();y.symlinks[m]=$,!$&&L&&!L.isDirectory()?(y.cache[m]="FILE",E()):y._readdir(m,!1,E)}},x.prototype._readdir=function(m,E,C){if(!this.aborted&&(C=_("readdir\0"+m+"\0"+E,C),!!C)){if(E&&!k(this.symlinks,m))return this._readdirInGlobStar(m,C);if(k(this.cache,m)){var y=this.cache[m];if(!y||y==="FILE")return C();if(Array.isArray(y))return C(null,y)}var v=this;n.readdir(m,p(this,m,C))}};function p(m,E,C){return function(y,v){y?m._readdirError(E,y,C):m._readdirEntries(E,v,C)}}x.prototype._readdirEntries=function(m,E,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var y=0;y<E.length;y++){var v=E[y];m==="/"?v=m+v:v=m+"/"+v,this.cache[v]=!0}return this.cache[m]=E,C(null,E)}},x.prototype._readdirError=function(m,E,C){if(!this.aborted){switch(E.code){case"ENOTSUP":case"ENOTDIR":var y=this._makeAbs(m);if(this.cache[y]="FILE",y===this.cwdAbs){var v=new Error(E.code+" invalid cwd "+this.cwd);v.path=this.cwd,v.code=E.code,this.emit("error",v),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(m)]=!1;break;default:this.cache[this._makeAbs(m)]=!1,this.strict&&(this.emit("error",E),this.abort()),this.silent||console.error("glob error",E);break}return C()}},x.prototype._processGlobStar=function(m,E,C,y,v,P,I){var L=this;this._readdir(C,P,function($,U){L._processGlobStar2(m,E,C,y,v,P,U,I)})},x.prototype._processGlobStar2=function(m,E,C,y,v,P,I,L){if(!I)return L();var $=y.slice(1),U=m?[m]:[],z=U.concat($);this._process(z,v,!1,L);var oe=this.symlinks[C],H=I.length;if(oe&&P)return L();for(var B=0;B<H;B++){var j=I[B];if(!(j.charAt(0)==="."&&!this.dot)){var te=U.concat(I[B],$);this._process(te,v,!0,L);var re=U.concat(I[B],y);this._process(re,v,!0,L)}}L()},x.prototype._processSimple=function(m,E,C){var y=this;this._stat(m,function(v,P){y._processSimple2(m,E,v,P,C)})},x.prototype._processSimple2=function(m,E,C,y,v){if(this.matches[E]||(this.matches[E]=Object.create(null)),!y)return v();if(m&&l(m)&&!this.nomount){var P=/[\/\\]$/.test(m);m.charAt(0)==="/"?m=c.join(this.root,m):(m=c.resolve(this.root,m),P&&(m+="/"))}process.platform==="win32"&&(m=m.replace(/\\/g,"/")),this._emitMatch(E,m),v()},x.prototype._stat=function(m,E){var C=this._makeAbs(m),y=m.slice(-1)==="/";if(m.length>this.maxLength)return E();if(!this.stat&&k(this.cache,C)){var v=this.cache[C];if(Array.isArray(v)&&(v="DIR"),!y||v==="DIR")return E(null,v);if(y&&v==="FILE")return E()}var P,I=this.statCache[C];if(I!==void 0){if(I===!1)return E(null,I);var L=I.isDirectory()?"DIR":"FILE";return y&&L==="FILE"?E():E(null,L,I)}var $=this,U=_("stat\0"+C,z);U&&n.lstat(C,U);function z(oe,H){if(H&&H.isSymbolicLink())return n.stat(C,function(B,j){B?$._stat2(m,C,null,H,E):$._stat2(m,C,B,j,E)});$._stat2(m,C,oe,H,E)}},x.prototype._stat2=function(m,E,C,y,v){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[E]=!1,v();var P=m.slice(-1)==="/";if(this.statCache[E]=y,E.slice(-1)==="/"&&y&&!y.isDirectory())return v(null,!1,y);var I=!0;return y&&(I=y.isDirectory()?"DIR":"FILE"),this.cache[E]=this.cache[E]||I,P&&I==="FILE"?v():v(null,I,y)}},function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),u=a[1]||"",c=!!(u&&u.charAt(1)!==":");return!!(a[2]||c)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i},,,function(e,t){e.exports=M("tty")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(C,y="lockfile"){return C=(0,(a||u()).default)(C),p(C)?E(C,y):{type:"success",object:m(C,y)}};var n;function i(){return n=S(r(2))}var s;function o(){return s=S(r(7))}var a;function u(){return a=S(r(122))}var c;function f(){return c=r(6)}var l;function h(){return l=r(4)}var d;function g(){return d=S(r(20))}function S(C){return C&&C.__esModule?C:{default:C}}let w=/^yarn lockfile v(\d+)$/,k={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},_=[k.boolean,k.string,k.number];function N(C){return _.indexOf(C.type)>=0}function*D(C){let y=!1,v=1,P=0;function I(L,$){return{line:v,col:P,type:L,value:$}}for(;C.length;){let L=0;if(C[0]===`
|
|
60
|
+
`||C[0]==="\r")L++,C[1]===`
|
|
61
|
+
`&&L++,v++,P=0,yield I(k.newline);else if(C[0]==="#"){L++;let $="";for(;C[L]!==`
|
|
62
|
+
`;)$+=C[L],L++;yield I(k.comment,$)}else if(C[0]===" ")if(y){let $="";for(let U=0;C[U]===" ";U++)$+=C[U];if($.length%2)throw new TypeError("Invalid number of spaces");L=$.length,yield I(k.indent,$.length/2)}else L++;else if(C[0]==='"'){let $="";for(let U=0;;U++){let z=C[U];if($+=z,U>0&&z==='"'&&!(C[U-1]==="\\"&&C[U-2]!=="\\"))break}L=$.length;try{yield I(k.string,JSON.parse($))}catch(U){if(U instanceof SyntaxError)yield I(k.invalid);else throw U}}else if(/^[0-9]/.test(C)){let $="";for(let U=0;/^[0-9]$/.test(C[U]);U++)$+=C[U];L=$.length,yield I(k.number,+$)}else if(/^true/.test(C))yield I(k.boolean,!0),L=4;else if(/^false/.test(C))yield I(k.boolean,!1),L=5;else if(C[0]===":")yield I(k.colon),L++;else if(C[0]===",")yield I(k.comma),L++;else if(/^[a-zA-Z\/-]/g.test(C)){let $="";for(let U=0;U<C.length;U++){let z=C[U];if(z===":"||z===" "||z===`
|
|
63
|
+
`||z==="\r"||z===",")break;$+=z}L=$.length,yield I(k.string,$)}else yield I(k.invalid);L||(yield I(k.invalid)),P+=L,y=C[0]===`
|
|
64
|
+
`||C[0]==="\r"&&C[1]===`
|
|
65
|
+
`,C=C.slice(L)}yield I(k.eof)}class A{constructor(y,v="lockfile"){this.comments=[],this.tokens=D(y),this.fileLoc=v}onComment(y){let v=y.value;(0,(s||o()).default)(typeof v=="string","expected token value to be a string");let P=v.trim(),I=P.match(w);if(I){let L=+I[1];if(L>(c||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${L} as you're on an old yarn version that only supports versions up to ${(c||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(P)}next(){let y=this.tokens.next();(0,(s||o()).default)(y,"expected a token");let v=y.done,P=y.value;if(v||!P)throw new Error("No more tokens");return P.type===k.comment?(this.onComment(P),this.next()):this.token=P}unexpected(y="Unexpected token"){throw new SyntaxError(`${y} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(y){this.token.type===y?this.next():this.unexpected()}eat(y){return this.token.type===y?(this.next(),!0):!1}parse(y=0){let v=(0,(d||g()).default)();for(;;){let B=this.token;if(B.type===k.newline){let j=this.next();if(!y)continue;if(j.type!==k.indent)break;if(j.value===y)this.next();else break}else if(B.type===k.indent)if(B.value===y)this.next();else break;else{if(B.type===k.eof)break;if(B.type===k.string){let j=B.value;(0,(s||o()).default)(j,"Expected a key");let te=[j];for(this.next();this.token.type===k.comma;){this.next();let q=this.token;q.type!==k.string&&this.unexpected("Expected string");let ie=q.value;(0,(s||o()).default)(ie,"Expected a key"),te.push(ie),this.next()}let re=this.token;if(re.type===k.colon){this.next();let q=this.parse(y+1);for(var L=te,P=Array.isArray(L),I=0,L=P?L:L[Symbol.iterator]();;){var $;if(P){if(I>=L.length)break;$=L[I++]}else{if(I=L.next(),I.done)break;$=I.value}let ie=$;v[ie]=q}if(y&&this.token.type!==k.indent)break}else if(N(re)){for(var oe=te,U=Array.isArray(oe),z=0,oe=U?oe:oe[Symbol.iterator]();;){var H;if(U){if(z>=oe.length)break;H=oe[z++]}else{if(z=oe.next(),z.done)break;H=z.value}let q=H;v[q]=re.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(B)}`)}}return v}}let R="|||||||",b=">>>>>>>",O="=======",T="<<<<<<<";function x(C){let y=[[],[]],v=C.split(/\r?\n/g),P=!1;for(;v.length;){let I=v.shift();if(I.startsWith(T)){for(;v.length;){let L=v.shift();if(L===O){P=!1;break}else if(P||L.startsWith(R)){P=!0;continue}else y[0].push(L)}for(;v.length;){let L=v.shift();if(L.startsWith(b))break;y[1].push(L)}}else y[0].push(I),y[1].push(I)}return[y[0].join(`
|
|
66
|
+
`),y[1].join(`
|
|
67
|
+
`)]}function p(C){return C.includes(T)&&C.includes(O)&&C.includes(b)}function m(C,y){let v=new A(C,y);return v.next(),v.parse()}function E(C,y){let v=x(C);try{return{type:"merge",object:Object.assign({},m(v[0],y),m(v[1],y))}}catch(P){if(P instanceof SyntaxError)return{type:"conflict",object:{}};throw P}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(212)("yarn");class a{constructor(c,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=c,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(c,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[c]=this.queue[c]||[]).push({factory:f,resolve:l,reject:h}),this.running[c]||this.shift(c)})}shift(c){this.running[c]&&(delete this.running[c],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[c];if(!f)return;var l=f.shift();let h=l.resolve,d=l.reject,g=l.factory;f.length||delete this.queue[c];let S=()=>{this.shift(c),this.shiftConcurrencyQueue()},w=()=>{this.running[c]=!0,this.runningCount++,g().then(function(k){return h(k),S(),null}).catch(function(k){d(k),S()})};this.maybePushConcurrencyQueue(w)}maybePushConcurrencyQueue(c){this.runningCount<this.maxConcurrency?c():this.concurrencyQueue.push(c)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let c=this.concurrencyQueue.shift();c&&c()}}}t.default=a},function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},,,,,,,,,,,,,,,function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n(function(){return arguments}())=="Arguments",o=function(a,u){try{return a[u]}catch{}};e.exports=function(a){var u,c,f;return a===void 0?"Undefined":a===null?"Null":typeof(c=o(u=Object(a),i))=="string"?c:s?n(u):(f=n(u))=="Object"&&typeof u.callee=="function"?"Arguments":f}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),u=r(188),c=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",g="keys",S="values",w=function(){return this};e.exports=function(k,_,N,D,A,R,b){u(N,_,D);var O=function($){if(!h&&$ in m)return m[$];switch($){case g:return function(){return new N(this,$)};case S:return function(){return new N(this,$)}}return function(){return new N(this,$)}},T=_+" Iterator",x=A==S,p=!1,m=k.prototype,E=m[l]||m[d]||A&&m[A],C=E||O(A),y=A?x?O("entries"):C:void 0,v=_=="Array"&&m.entries||E,P,I,L;if(v&&(L=f(v.call(new k)),L!==Object.prototype&&L.next&&(c(L,T,!0),!n&&typeof L[l]!="function"&&o(L,l,w))),x&&E&&E.name!==S&&(p=!0,C=function(){return E.call(this)}),(!n||b)&&(h||p||!m[l])&&o(m,l,C),a[_]=C,a[T]=w,A)if(P={values:x?C:O(S),keys:R?C:O(g),entries:y},b)for(I in P)I in m||s(m,I,P[I]);else i(i.P+i.F*(h||p),_,P);return P}},function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}},function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var u=s.f(o),c=u.resolve;return c(a),u.promise}},function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,u){return o[a]||(o[a]=u!==void 0?u:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var u=n(o).constructor,c;return u===void 0||(c=n(u)[s])==null?a:i(c)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),u=a.process,c=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,d=0,g={},S="onreadystatechange",w,k,_,N=function(){var A=+this;if(g.hasOwnProperty(A)){var R=g[A];delete g[A],R()}},D=function(A){N.call(A.data)};(!c||!f)&&(c=function(R){for(var b=[],O=1;arguments.length>O;)b.push(arguments[O++]);return g[++d]=function(){i(typeof R=="function"?R:Function(R),b)},w(d),d},f=function(R){delete g[R]},r(47)(u)=="process"?w=function(A){u.nextTick(n(N,A,1))}:h&&h.now?w=function(A){h.now(n(N,A,1))}:l?(k=new l,_=k.port2,k.port1.onmessage=D,w=n(_.postMessage,_,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(w=function(A){a.postMessage(A+"","*")},a.addEventListener("message",D,!1)):S in o("script")?w=function(A){s.appendChild(o("script"))[S]=function(){s.removeChild(this),N.call(A)}}:w=function(A){setTimeout(n(N,A,1),0)}),e.exports={set:c,clear:f}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=c,t.disable=a,t.enable=o,t.enabled=u,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var d=h,g=+new Date,S=g-(l||g);d.diff=S,d.prev=l,d.curr=g,l=g;for(var w=new Array(arguments.length),k=0;k<w.length;k++)w[k]=arguments[k];w[0]=t.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");var _=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,function(D,A){if(D==="%%")return D;_++;var R=t.formatters[A];if(typeof R=="function"){var b=w[_];D=R.call(d,b),w.splice(_,1),_--}return D}),t.formatArgs.call(d,w);var N=h.log||t.log||console.log.bind(console);N.apply(d,w)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(l=0;l<d;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var g=t.instances[l];g.enabled=t.enabled(g.namespace)}}function a(){t.enable("")}function u(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}},,function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=d;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),u=r(217);function c(g){return g&&g.syscall==="realpath"&&(g.code==="ELOOP"||g.code==="ENOMEM"||g.code==="ENAMETOOLONG")}function f(g,S,w){if(a)return i(g,S,w);typeof S=="function"&&(w=S,S=null),i(g,S,function(k,_){c(k)?u.realpath(g,S,w):w(k,_)})}function l(g,S){if(a)return s(g,S);try{return s(g,S)}catch(w){if(c(w))return u.realpathSync(g,S);throw w}}function h(){n.realpath=f,n.realpathSync=l}function d(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=c,t.alphasorti=u,t.setopts=h,t.ownProp=n,t.makeAbs=S,t.finish=d,t.mark=g,t.isIgnored=w,t.childrenIgnored=k;function n(_,N){return Object.prototype.hasOwnProperty.call(_,N)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function u(_,N){return _.toLowerCase().localeCompare(N.toLowerCase())}function c(_,N){return _.localeCompare(N)}function f(_,N){_.ignore=N.ignore||[],Array.isArray(_.ignore)||(_.ignore=[_.ignore]),_.ignore.length&&(_.ignore=_.ignore.map(l))}function l(_){var N=null;if(_.slice(-3)==="/**"){var D=_.replace(/(\/\*\*)+$/,"");N=new a(D,{dot:!0})}return{matcher:new a(_,{dot:!0}),gmatcher:N}}function h(_,N,D){if(D||(D={}),D.matchBase&&N.indexOf("/")===-1){if(D.noglobstar)throw new Error("base matching requires globstar");N="**/"+N}_.silent=!!D.silent,_.pattern=N,_.strict=D.strict!==!1,_.realpath=!!D.realpath,_.realpathCache=D.realpathCache||Object.create(null),_.follow=!!D.follow,_.dot=!!D.dot,_.mark=!!D.mark,_.nodir=!!D.nodir,_.nodir&&(_.mark=!0),_.sync=!!D.sync,_.nounique=!!D.nounique,_.nonull=!!D.nonull,_.nosort=!!D.nosort,_.nocase=!!D.nocase,_.stat=!!D.stat,_.noprocess=!!D.noprocess,_.absolute=!!D.absolute,_.maxLength=D.maxLength||1/0,_.cache=D.cache||Object.create(null),_.statCache=D.statCache||Object.create(null),_.symlinks=D.symlinks||Object.create(null),f(_,D),_.changedCwd=!1;var A=process.cwd();n(D,"cwd")?(_.cwd=i.resolve(D.cwd),_.changedCwd=_.cwd!==A):_.cwd=A,_.root=D.root||i.resolve(_.cwd,"/"),_.root=i.resolve(_.root),process.platform==="win32"&&(_.root=_.root.replace(/\\/g,"/")),_.cwdAbs=o(_.cwd)?_.cwd:S(_,_.cwd),process.platform==="win32"&&(_.cwdAbs=_.cwdAbs.replace(/\\/g,"/")),_.nomount=!!D.nomount,D.nonegate=!0,D.nocomment=!0,_.minimatch=new a(N,D),_.options=_.minimatch.options}function d(_){for(var N=_.nounique,D=N?[]:Object.create(null),A=0,R=_.matches.length;A<R;A++){var b=_.matches[A];if(!b||Object.keys(b).length===0){if(_.nonull){var O=_.minimatch.globSet[A];N?D.push(O):D[O]=!0}}else{var T=Object.keys(b);N?D.push.apply(D,T):T.forEach(function(x){D[x]=!0})}}if(N||(D=Object.keys(D)),_.nosort||(D=D.sort(_.nocase?u:c)),_.mark){for(var A=0;A<D.length;A++)D[A]=_._mark(D[A]);_.nodir&&(D=D.filter(function(x){var p=!/\/$/.test(x),m=_.cache[x]||_.cache[S(_,x)];return p&&m&&(p=m!=="DIR"&&!Array.isArray(m)),p}))}_.ignore.length&&(D=D.filter(function(x){return!w(_,x)})),_.found=D}function g(_,N){var D=S(_,N),A=_.cache[D],R=N;if(A){var b=A==="DIR"||Array.isArray(A),O=N.slice(-1)==="/";if(b&&!O?R+="/":!b&&O&&(R=R.slice(0,-1)),R!==N){var T=S(_,R);_.statCache[T]=_.statCache[D],_.cache[T]=_.cache[D]}}return R}function S(_,N){var D=N;return N.charAt(0)==="/"?D=i.join(_.root,N):o(N)||N===""?D=N:_.changedCwd?D=i.resolve(_.cwd,N):D=i.resolve(N),process.platform==="win32"&&(D=D.replace(/\\/g,"/")),D}function w(_,N){return _.ignore.length?_.ignore.some(function(D){return D.matcher.match(N)||!!(D.gmatcher&&D.gmatcher.match(N))}):!1}function k(_,N){return _.ignore.length?_.ignore.some(function(D){return!!(D.gmatcher&&D.gmatcher.match(N))}):!1}},function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,u,c,f){typeof u=="function"?(c=u,u={}):(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var d=c||function(){};a=n.resolve(a),h.mkdir(a,l,function(g){if(!g)return f=f||a,d(null,f);switch(g.code){case"ENOENT":o(n.dirname(a),u,function(S,w){S?d(S,w):o(a,u,d,w)});break;default:h.stat(a,function(S,w){S||!w.isDirectory()?d(g,f):d(null,f)});break}})}o.sync=function a(u,c,f){(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),u=n.resolve(u);try{h.mkdirSync(u,l),f=f||u}catch(g){switch(g.code){case"ENOENT":f=a(n.dirname(u),c,f),a(u,c,f);break;default:var d;try{d=h.statSync(u)}catch{throw g}if(!d.isDirectory())throw g;break}}return f}},,,,,,function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}},function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var u=n.apply(this,o),c=o[o.length-1];return typeof u=="function"&&u!==c&&Object.keys(c).forEach(function(f){u[f]=c[f]}),u}}},,,,,,,,function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}},function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=S;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function u(){return a=r(145)}let c=process.version;function f(w){return w.indexOf("true")===0||w.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(w)||/^[0-9]/g.test(w)||!/^[a-zA-Z]/g.test(w)}function l(w){return typeof w=="boolean"||typeof w=="number"||f(w)?JSON.stringify(w):w}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(w,k){return h[w]||h[k]?(h[w]||100)>(h[k]||100)?1:-1:(0,(n||i()).sortAlpha)(w,k)}function g(w,k){if(typeof w!="object")throw new TypeError;let _=k.indent,N=[],D=Object.keys(w).sort(d),A=[];for(let R=0;R<D.length;R++){let b=D[R],O=w[b];if(O==null||A.indexOf(b)>=0)continue;let T=[b];if(typeof O=="object")for(let p=R+1;p<D.length;p++){let m=D[p];O===w[m]&&T.push(m)}let x=T.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof O=="string"||typeof O=="boolean"||typeof O=="number")N.push(`${x} ${l(O)}`);else if(typeof O=="object")N.push(`${x}:
|
|
68
|
+
${g(O,{indent:_+" "})}`+(k.topLevel?`
|
|
69
|
+
`:""));else throw new TypeError;A=A.concat(T)}return _+N.join(`
|
|
70
|
+
${_}`)}function S(w,k,_){let N=g(w,{indent:"",topLevel:!0});if(k)return N;let D=[];return D.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),D.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),_&&(D.push(`# yarn v${(a||u()).version}`),D.push(`# node ${c}`)),D.push(`
|
|
71
|
+
`),D.push(N),D.join(`
|
|
72
|
+
`)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var b=(0,(n||i()).default)(function*(O,T,x){let p=O===void 0,m=O||-1;if(l===void 0){let E=yield g(T);l=R(E.mtime,x.mtime)}if(!l){if(p)try{m=yield S(T,"a",x.mode)}catch{try{m=yield S(T,"r",x.mode)}catch{return}}try{m&&(yield w(m,x.atime,x.mtime))}catch{}finally{p&&m&&(yield d(m))}}});return function(T,x,p){return b.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var u;function c(){return u=r(40)}function f(b){return b&&b.__esModule?b:{default:b}}let l,h=(0,(u||c()).promisify)((o||a()).default.readFile),d=(0,(u||c()).promisify)((o||a()).default.close),g=(0,(u||c()).promisify)((o||a()).default.lstat),S=(0,(u||c()).promisify)((o||a()).default.open),w=(0,(u||c()).promisify)((o||a()).default.futimes),k=(0,(u||c()).promisify)((o||a()).default.write),_=t.unlink=(0,(u||c()).promisify)(r(233)),N=t.copyFile=(()=>{var b=(0,(n||i()).default)(function*(O,T){try{yield _(O.dest),yield D(O.src,O.dest,0,O)}finally{T&&T()}});return function(T,x){return b.apply(this,arguments)}})(),D=(b,O,T,x)=>(o||a()).default.copyFile?new Promise((p,m)=>(o||a()).default.copyFile(b,O,T,E=>{E?m(E):s(void 0,O,x).then(()=>p()).catch(C=>m(C))})):A(b,O,T,x),A=(()=>{var b=(0,(n||i()).default)(function*(O,T,x,p){let m=yield S(T,"w",p.mode);try{let E=yield h(O);yield k(m,E,0,E.length),yield s(m,T,p)}finally{yield d(m)}});return function(T,x,p,m){return b.apply(this,arguments)}})(),R=t.fileDatesEqual=(b,O)=>{let T=b.getTime(),x=O.getTime();if(process.platform!=="win32")return T===x;if(Math.abs(T-x)<=1)return!0;let p=Math.floor(T/1e3),m=Math.floor(x/1e3);return T-p*1e3===0||x-m*1e3===0?p===m:T===x}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=u,t.getConfigDir=c;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function u(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function c(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:!0}},function(e,t,r){"use strict";e.exports=n;function n(o,a,u){o instanceof RegExp&&(o=i(o,u)),a instanceof RegExp&&(a=i(a,u));var c=s(o,a,u);return c&&{start:c[0],end:c[1],pre:u.slice(0,c[0]),body:u.slice(c[0]+o.length,c[1]),post:u.slice(c[1]+a.length)}}function i(o,a){var u=a.match(o);return u?u[0]:null}n.range=s;function s(o,a,u){var c,f,l,h,d,g=u.indexOf(o),S=u.indexOf(a,g+1),w=g;if(g>=0&&S>0){for(c=[],l=u.length;w>=0&&!d;)w==g?(c.push(w),g=u.indexOf(o,w+1)):c.length==1?d=[c.pop(),S]:(f=c.pop(),f<l&&(l=f,h=S),S=u.indexOf(a,w+1)),w=g<S&&g>=0?g:S;c.length&&(d=[l,h])}return d}},function(e,t,r){var n=r(178),i=r(174);e.exports=g;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function f(A){return parseInt(A,10)==A?parseInt(A,10):A.charCodeAt(0)}function l(A){return A.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function h(A){return A.split(s).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function d(A){if(!A)return[""];var R=[],b=i("{","}",A);if(!b)return A.split(",");var O=b.pre,T=b.body,x=b.post,p=O.split(",");p[p.length-1]+="{"+T+"}";var m=d(x);return x.length&&(p[p.length-1]+=m.shift(),p.push.apply(p,m)),R.push.apply(R,p),R}function g(A){return A?(A.substr(0,2)==="{}"&&(A="\\{\\}"+A.substr(2)),D(l(A),!0).map(h)):[]}function S(A){return A}function w(A){return"{"+A+"}"}function k(A){return/^-?0\d/.test(A)}function _(A,R){return A<=R}function N(A,R){return A>=R}function D(A,R){var b=[],O=i("{","}",A);if(!O||/\$$/.test(O.pre))return[A];var T=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(O.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(O.body),p=T||x,m=O.body.indexOf(",")>=0;if(!p&&!m)return O.post.match(/,.*\}/)?(A=O.pre+"{"+O.body+a+O.post,D(A)):[A];var E;if(p)E=O.body.split(/\.\./);else if(E=d(O.body),E.length===1&&(E=D(E[0],!1).map(w),E.length===1)){var y=O.post.length?D(O.post,!1):[""];return y.map(function(ne){return O.pre+E[0]+ne})}var C=O.pre,y=O.post.length?D(O.post,!1):[""],v;if(p){var P=f(E[0]),I=f(E[1]),L=Math.max(E[0].length,E[1].length),$=E.length==3?Math.abs(f(E[2])):1,U=_,z=I<P;z&&($*=-1,U=N);var oe=E.some(k);v=[];for(var H=P;U(H,I);H+=$){var B;if(x)B=String.fromCharCode(H),B==="\\"&&(B="");else if(B=String(H),oe){var j=L-B.length;if(j>0){var te=new Array(j+1).join("0");H<0?B="-"+te+B.slice(1):B=te+B}}v.push(B)}}else v=n(E,function(G){return D(G,!1)});for(var re=0;re<v.length;re++)for(var q=0;q<y.length;q++){var ie=C+v[re]+y[q];(!R||p||ie)&&b.push(ie)}return b}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let u=0;u<i.length;u++){let c=i[u];s&&/[a-zA-Z]/.test(c)&&c.toUpperCase()===c?(i=i.substr(0,u)+"-"+i.substr(u),s=!1,a=o,o=!0,u++):o&&a&&/[a-zA-Z]/.test(c)&&c.toLowerCase()===c?(i=i.substr(0,u-1)+"-"+i.substr(u-1),a=o,o=!1,s=!0):(s=c.toLowerCase()===c,a=o,o=c.toUpperCase()===c)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}},,function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}},function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,u,c){var f=n(a),l=i(f.length),h=s(c,l),d;if(o&&u!=u){for(;l>h;)if(d=f[h++],d!=d)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===u)return o||h||0;return!o&&-1}}},function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),u=r(203),c={},f={},l=e.exports=function(h,d,g,S,w){var k=w?function(){return h}:u(h),_=n(g,S,d?2:1),N=0,D,A,R,b;if(typeof k!="function")throw TypeError(h+" is not iterable!");if(s(k)){for(D=a(h.length);D>N;N++)if(b=d?_(o(A=h[N])[0],A[1]):_(h[N]),b===c||b===f)return b}else for(R=k.call(h);!(A=R.next()).done;)if(b=i(R,_,A.value,d),b===c||b===f)return b};l.BREAK=c,l.RETURN=f},function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}},function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}},function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(c){var u=i.return;throw u!==void 0&&n(u.call(i)),c}}},function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,u,c){a.prototype=n(o,{next:i(1,c)}),s(a,u+" Iterator")}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var u=!1;try{var c=[7],f=c[n]();f.next=function(){return{done:u=!0}},c[n]=function(){return f},o(c)}catch{}return u}},function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}},function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u=r(47)(o)=="process";e.exports=function(){var c,f,l,h=function(){var w,k;for(u&&(w=o.domain)&&w.exit();c;){k=c.fn,c=c.next;try{k()}catch(_){throw c?l():f=void 0,_}}f=void 0,w&&w.enter()};if(u)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var d=!0,g=document.createTextNode("");new s(h).observe(g,{characterData:!0}),l=function(){g.data=d=!d}}else if(a&&a.resolve){var S=a.resolve(void 0);l=function(){S.then(h)}}else l=function(){i.call(n,h)};return function(w){var k={fn:w,next:void 0};f&&(f.next=k),c||(c=k,l()),f=k}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},u="prototype",c=function(){var f=r(68)("iframe"),l=s.length,h="<",d=">",g;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",g=f.contentWindow.document,g.open(),g.write(h+"script"+d+"document.F=Object"+h+"/script"+d),g.close(),c=g.F;l--;)delete c[u][s[l]];return c()};e.exports=Object.create||function(l,h){var d;return l!==null?(a[u]=n(l),d=new a,a[u]=null,d[o]=l):d=c(),h===void 0?d:i(d,h)}},function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,u){i(a);for(var c=s(u),f=c.length,l=0,h;f>l;)n.f(a,h=c[l++],u[h]);return a}},function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}},function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,u){var c=i(a),f=0,l=[],h;for(h in c)h!=o&&n(c,h)&&l.push(h);for(;u.length>f;)n(c,h=u[f++])&&(~s(l,h)||l.push(h));return l}},function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(u){var c=typeof i[u]=="function"?i[u]:n[u];o&&c&&!c[a]&&s.f(c,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var u=String(i(o)),c=n(a),f=u.length,l,h;return c<0||c>=f?s?"":void 0:(l=u.charCodeAt(c),l<55296||l>56319||c+1===f||(h=u.charCodeAt(c+1))<56320||h>57343?s?u.charAt(c):l:s?u.slice(c,c+2):(l-55296<<10)+(h-56320)+65536)}}},function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}},function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}},function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,u){this._t=o(a),this._i=0,this._k=u},function(){var a=this._t,u=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,i(1)):u=="keys"?i(0,c):u=="values"?i(0,a[c]):i(0,[c,a[c]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),u=r(34),c=r(46),f=r(181),l=r(183),h=r(108),d=r(109).set,g=r(191)(),S=r(70),w=r(104),k=r(202),_=r(105),N="Promise",D=i.TypeError,A=i.process,R=A&&A.versions,b=R&&R.v8||"",O=i[N],T=o(A)=="process",x=function(){},p,m,E,C,y=m=S.f,v=!!function(){try{var H=O.resolve(1),B=(H.constructor={})[r(13)("species")]=function(j){j(x,x)};return(T||typeof PromiseRejectionEvent=="function")&&H.then(x)instanceof B&&b.indexOf("6.6")!==0&&k.indexOf("Chrome/66")===-1}catch{}}(),P=function(H){var B;return u(H)&&typeof(B=H.then)=="function"?B:!1},I=function(H,B){if(!H._n){H._n=!0;var j=H._c;g(function(){for(var te=H._v,re=H._s==1,q=0,ie=function(G){var ne=re?G.ok:G.fail,ce=G.resolve,Ee=G.reject,fe=G.domain,Re,xe,Rt;try{ne?(re||(H._h==2&&U(H),H._h=1),ne===!0?Re=te:(fe&&fe.enter(),Re=ne(te),fe&&(fe.exit(),Rt=!0)),Re===G.promise?Ee(D("Promise-chain cycle")):(xe=P(Re))?xe.call(Re,ce,Ee):ce(Re)):Ee(te)}catch(Me){fe&&!Rt&&fe.exit(),Ee(Me)}};j.length>q;)ie(j[q++]);H._c=[],H._n=!1,B&&!H._h&&L(H)})}},L=function(H){d.call(i,function(){var B=H._v,j=$(H),te,re,q;if(j&&(te=w(function(){T?A.emit("unhandledRejection",B,H):(re=i.onunhandledrejection)?re({promise:H,reason:B}):(q=i.console)&&q.error&&q.error("Unhandled promise rejection",B)}),H._h=T||$(H)?2:1),H._a=void 0,j&&te.e)throw te.v})},$=function(H){return H._h!==1&&(H._a||H._c).length===0},U=function(H){d.call(i,function(){var B;T?A.emit("rejectionHandled",H):(B=i.onrejectionhandled)&&B({promise:H,reason:H._v})})},z=function(H){var B=this;B._d||(B._d=!0,B=B._w||B,B._v=H,B._s=2,B._a||(B._a=B._c.slice()),I(B,!0))},oe=function(H){var B=this,j;if(!B._d){B._d=!0,B=B._w||B;try{if(B===H)throw D("Promise can't be resolved itself");(j=P(H))?g(function(){var te={_w:B,_d:!1};try{j.call(H,s(oe,te,1),s(z,te,1))}catch(re){z.call(te,re)}}):(B._v=H,B._s=1,I(B,!1))}catch(te){z.call({_w:B,_d:!1},te)}}};v||(O=function(B){f(this,O,N,"_h"),c(B),p.call(this);try{B(s(oe,this,1),s(z,this,1))}catch(j){z.call(this,j)}},p=function(B){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},p.prototype=r(196)(O.prototype,{then:function(B,j){var te=y(h(this,O));return te.ok=typeof B=="function"?B:!0,te.fail=typeof j=="function"&&j,te.domain=T?A.domain:void 0,this._c.push(te),this._a&&this._a.push(te),this._s&&I(this,!1),te.promise},catch:function(H){return this.then(void 0,H)}}),E=function(){var H=new p;this.promise=H,this.resolve=s(oe,H,1),this.reject=s(z,H,1)},S.f=y=function(H){return H===O||H===C?new E(H):m(H)}),a(a.G+a.W+a.F*!v,{Promise:O}),r(71)(O,N),r(198)(N),C=r(23)[N],a(a.S+a.F*!v,N,{reject:function(B){var j=y(this),te=j.reject;return te(B),j.promise}}),a(a.S+a.F*(n||!v),N,{resolve:function(B){return _(n&&this===C?O:this,B)}}),a(a.S+a.F*!(v&&r(189)(function(H){O.all(H).catch(x)})),N,{all:function(B){var j=this,te=y(j),re=te.resolve,q=te.reject,ie=w(function(){var G=[],ne=0,ce=1;l(B,!1,function(Ee){var fe=ne++,Re=!1;G.push(void 0),ce++,j.resolve(Ee).then(function(xe){Re||(Re=!0,G[fe]=xe,--ce||re(G))},q)}),--ce||re(G)});return ie.e&&q(ie.v),te.promise},race:function(B){var j=this,te=y(j),re=te.reject,q=w(function(){l(B,!1,function(ie){j.resolve(ie).then(te.resolve,re)})});return q.e&&re(q.v),te.promise}})},function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})},function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(u){var c=o(this,i.Promise||s.Promise),f=typeof u=="function";return this.then(f?function(l){return a(c,u()).then(function(){return l})}:u,f?function(l){return a(c,u()).then(function(){throw l})}:u)}})},function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),u=s(o);return(u.e?a.reject:a.resolve)(u.v),a.promise}})},function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],f=n[c],l=f&&f.prototype;l&&!l[o]&&i(l,o,c),s[c]=s.Array}},function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:u(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(d=h))}),c.splice(d,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function a(){var c;try{c=t.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch{}}},function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)},function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=c,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(d){return/^debug_/i.test(d)}).reduce(function(d,g){var S=g.substring(6).toLowerCase().replace(/_([a-z])/g,function(k,_){return _.toUpperCase()}),w=process.env[g];return/^(yes|on|true|enabled)$/i.test(w)?w=!0:/^(no|off|false|disabled)$/i.test(w)?w=!1:w==="null"?w=null:w=Number(w),d[S]=w,d},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts).split(`
|
|
73
|
+
`).map(function(g){return g.trim()}).join(" ")},t.formatters.O=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts)};function a(d){var g=this.namespace,S=this.useColors;if(S){var w=this.color,k="\x1B[3"+(w<8?w:"8;5;"+w),_=" "+k+";1m"+g+" \x1B[0m";d[0]=_+d[0].split(`
|
|
74
|
+
`).join(`
|
|
75
|
+
`+_),d.push(k+"m+"+t.humanize(this.diff)+"\x1B[0m")}else d[0]=u()+g+" "+d[0]}function u(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(i.format.apply(i,arguments)+`
|
|
76
|
+
`)}function f(d){d==null?delete process.env.DEBUG:process.env.DEBUG=d}function l(){return process.env.DEBUG}function h(d){d.inspectOpts={};for(var g=Object.keys(t.inspectOpts),S=0;S<g.length;S++)d.inspectOpts[g[S]]=t.inspectOpts[g[S]]}t.enable(l())},,,,function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var d=new Error;h=g}else h=S;return h;function g(w){w&&(d.message=w.message,w=d,S(w))}function S(w){if(w){if(process.throwDeprecation)throw w;if(!process.noDeprecation){var k="fs: missing callback "+(w.stack||w.message);process.traceDeprecation?console.trace(k):console.error(k)}}}}function u(h){return typeof h=="function"?h:a()}var c=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(d,g){if(d=n.resolve(d),g&&Object.prototype.hasOwnProperty.call(g,d))return g[d];var S=d,w={},k={},_,N,D,A;R();function R(){var m=l.exec(d);_=m[0].length,N=m[0],D=m[0],A="",i&&!k[D]&&(s.lstatSync(D),k[D]=!0)}for(;_<d.length;){f.lastIndex=_;var b=f.exec(d);if(A=N,N+=b[0],D=A+b[1],_=f.lastIndex,!(k[D]||g&&g[D]===D)){var O;if(g&&Object.prototype.hasOwnProperty.call(g,D))O=g[D];else{var T=s.lstatSync(D);if(!T.isSymbolicLink()){k[D]=!0,g&&(g[D]=D);continue}var x=null;if(!i){var p=T.dev.toString(32)+":"+T.ino.toString(32);w.hasOwnProperty(p)&&(x=w[p])}x===null&&(s.statSync(D),x=s.readlinkSync(D)),O=n.resolve(A,x),g&&(g[D]=O),i||(w[p]=x)}d=n.resolve(O,d.slice(_)),R()}}return g&&(g[S]=d),d},t.realpath=function(d,g,S){if(typeof S!="function"&&(S=u(g),g=null),d=n.resolve(d),g&&Object.prototype.hasOwnProperty.call(g,d))return process.nextTick(S.bind(null,null,g[d]));var w=d,k={},_={},N,D,A,R;b();function b(){var m=l.exec(d);N=m[0].length,D=m[0],A=m[0],R="",i&&!_[A]?s.lstat(A,function(E){if(E)return S(E);_[A]=!0,O()}):process.nextTick(O)}function O(){if(N>=d.length)return g&&(g[w]=d),S(null,d);f.lastIndex=N;var m=f.exec(d);return R=D,D+=m[0],A=R+m[1],N=f.lastIndex,_[A]||g&&g[A]===A?process.nextTick(O):g&&Object.prototype.hasOwnProperty.call(g,A)?p(g[A]):s.lstat(A,T)}function T(m,E){if(m)return S(m);if(!E.isSymbolicLink())return _[A]=!0,g&&(g[A]=A),process.nextTick(O);if(!i){var C=E.dev.toString(32)+":"+E.ino.toString(32);if(k.hasOwnProperty(C))return x(null,k[C],A)}s.stat(A,function(y){if(y)return S(y);s.readlink(A,function(v,P){i||(k[C]=P),x(v,P)})})}function x(m,E,C){if(m)return S(m);var y=n.resolve(R,E);g&&(g[C]=y),p(y)}function p(m){d=n.resolve(m,d.slice(N)),b()}}},function(e,t,r){e.exports=N,N.GlobSync=D;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,u=r(2),c=r(0),f=r(22),l=r(76),h=r(115),d=h.alphasort,g=h.alphasorti,S=h.setopts,w=h.ownProp,k=h.childrenIgnored,_=h.isIgnored;function N(A,R){if(typeof R=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
77
|
+
See: https://github.com/isaacs/node-glob/issues/167`);return new D(A,R).found}function D(A,R){if(!A)throw new Error("must provide pattern");if(typeof R=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
78
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof D))return new D(A,R);if(S(this,A,R),this.noprocess)return this;var b=this.minimatch.set.length;this.matches=new Array(b);for(var O=0;O<b;O++)this._process(this.minimatch.set[O],O,!1);this._finish()}D.prototype._finish=function(){if(f(this instanceof D),this.realpath){var A=this;this.matches.forEach(function(R,b){var O=A.matches[b]=Object.create(null);for(var T in R)try{T=A._makeAbs(T);var x=i.realpathSync(T,A.realpathCache);O[x]=!0}catch(p){if(p.syscall==="stat")O[A._makeAbs(T)]=!0;else throw p}})}h.finish(this)},D.prototype._process=function(A,R,b){f(this instanceof D);for(var O=0;typeof A[O]=="string";)O++;var T;switch(O){case A.length:this._processSimple(A.join("/"),R);return;case 0:T=null;break;default:T=A.slice(0,O).join("/");break}var x=A.slice(O),p;T===null?p=".":((l(T)||l(A.join("/")))&&(!T||!l(T))&&(T="/"+T),p=T);var m=this._makeAbs(p);if(!k(this,p)){var E=x[0]===s.GLOBSTAR;E?this._processGlobStar(T,p,m,x,R,b):this._processReaddir(T,p,m,x,R,b)}},D.prototype._processReaddir=function(A,R,b,O,T,x){var p=this._readdir(b,x);if(p){for(var m=O[0],E=!!this.minimatch.negate,C=m._glob,y=this.dot||C.charAt(0)===".",v=[],P=0;P<p.length;P++){var I=p[P];if(I.charAt(0)!=="."||y){var L;E&&!A?L=!I.match(m):L=I.match(m),L&&v.push(I)}}var $=v.length;if($!==0){if(O.length===1&&!this.mark&&!this.stat){this.matches[T]||(this.matches[T]=Object.create(null));for(var P=0;P<$;P++){var I=v[P];A&&(A.slice(-1)!=="/"?I=A+"/"+I:I=A+I),I.charAt(0)==="/"&&!this.nomount&&(I=c.join(this.root,I)),this._emitMatch(T,I)}return}O.shift();for(var P=0;P<$;P++){var I=v[P],U;A?U=[A,I]:U=[I],this._process(U.concat(O),T,x)}}}},D.prototype._emitMatch=function(A,R){if(!_(this,R)){var b=this._makeAbs(R);if(this.mark&&(R=this._mark(R)),this.absolute&&(R=b),!this.matches[A][R]){if(this.nodir){var O=this.cache[b];if(O==="DIR"||Array.isArray(O))return}this.matches[A][R]=!0,this.stat&&this._stat(R)}}},D.prototype._readdirInGlobStar=function(A){if(this.follow)return this._readdir(A,!1);var R,b,O;try{b=n.lstatSync(A)}catch(x){if(x.code==="ENOENT")return null}var T=b&&b.isSymbolicLink();return this.symlinks[A]=T,!T&&b&&!b.isDirectory()?this.cache[A]="FILE":R=this._readdir(A,!1),R},D.prototype._readdir=function(A,R){var b;if(R&&!w(this.symlinks,A))return this._readdirInGlobStar(A);if(w(this.cache,A)){var O=this.cache[A];if(!O||O==="FILE")return null;if(Array.isArray(O))return O}try{return this._readdirEntries(A,n.readdirSync(A))}catch(T){return this._readdirError(A,T),null}},D.prototype._readdirEntries=function(A,R){if(!this.mark&&!this.stat)for(var b=0;b<R.length;b++){var O=R[b];A==="/"?O=A+O:O=A+"/"+O,this.cache[O]=!0}return this.cache[A]=R,R},D.prototype._readdirError=function(A,R){switch(R.code){case"ENOTSUP":case"ENOTDIR":var b=this._makeAbs(A);if(this.cache[b]="FILE",b===this.cwdAbs){var O=new Error(R.code+" invalid cwd "+this.cwd);throw O.path=this.cwd,O.code=R.code,O}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(A)]=!1;break;default:if(this.cache[this._makeAbs(A)]=!1,this.strict)throw R;this.silent||console.error("glob error",R);break}},D.prototype._processGlobStar=function(A,R,b,O,T,x){var p=this._readdir(b,x);if(p){var m=O.slice(1),E=A?[A]:[],C=E.concat(m);this._process(C,T,!1);var y=p.length,v=this.symlinks[b];if(!(v&&x))for(var P=0;P<y;P++){var I=p[P];if(!(I.charAt(0)==="."&&!this.dot)){var L=E.concat(p[P],m);this._process(L,T,!0);var $=E.concat(p[P],O);this._process($,T,!0)}}}},D.prototype._processSimple=function(A,R){var b=this._stat(A);if(this.matches[R]||(this.matches[R]=Object.create(null)),!!b){if(A&&l(A)&&!this.nomount){var O=/[\/\\]$/.test(A);A.charAt(0)==="/"?A=c.join(this.root,A):(A=c.resolve(this.root,A),O&&(A+="/"))}process.platform==="win32"&&(A=A.replace(/\\/g,"/")),this._emitMatch(R,A)}},D.prototype._stat=function(A){var R=this._makeAbs(A),b=A.slice(-1)==="/";if(A.length>this.maxLength)return!1;if(!this.stat&&w(this.cache,R)){var p=this.cache[R];if(Array.isArray(p)&&(p="DIR"),!b||p==="DIR")return p;if(b&&p==="FILE")return!1}var O,T=this.statCache[R];if(!T){var x;try{x=n.lstatSync(R)}catch(m){if(m&&(m.code==="ENOENT"||m.code==="ENOTDIR"))return this.statCache[R]=!1,!1}if(x&&x.isSymbolicLink())try{T=n.statSync(R)}catch{T=x}else T=x}this.statCache[R]=T;var p=!0;return T&&(p=T.isDirectory()?"DIR":"FILE"),this.cache[R]=this.cache[R]||p,b&&p==="FILE"?!1:p},D.prototype._mark=function(A){return h.mark(this,A)},D.prototype._makeAbs=function(A){return h.makeAbs(this,A)}},,,function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}},,function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(c,f){return i[c]?(i[c].push(f),null):(i[c]=[f],a(c))}function a(c){return s(function f(){var l=i[c],h=l.length,d=u(arguments);try{for(var g=0;g<h;g++)l[g].apply(null,d)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,d)})):delete i[c]}})}function u(c){for(var f=c.length,l=[],h=0;h<f;h++)l[h]=c[h];return l}},function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}},,,function(e,t,r){e.exports=typeof r<"u"},,function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var d=typeof l;if(d==="string"&&l.length>0)return a(l);if(d==="number"&&isNaN(l)===!1)return h.long?c(l):u(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var d=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*i;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function u(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function c(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,d){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+d:Math.ceil(l/h)+" "+d+"s"}},,,,function(e,t,r){e.exports=h,h.sync=_;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function l(A){var R=["unlink","chmod","stat","lstat","rmdir","readdir"];R.forEach(function(b){A[b]=A[b]||s[b],b=b+"Sync",A[b]=A[b]||s[b]}),A.maxBusyTries=A.maxBusyTries||3,A.emfileWait=A.emfileWait||1e3,A.glob===!1&&(A.disableGlob=!0),A.disableGlob=A.disableGlob||!1,A.glob=A.glob||u}function h(A,R,b){typeof R=="function"&&(b=R,R={}),n(A,"rimraf: missing path"),n.equal(typeof A,"string","rimraf: path should be a string"),n.equal(typeof b,"function","rimraf: callback function required"),n(R,"rimraf: invalid options argument provided"),n.equal(typeof R,"object","rimraf: options should be object"),l(R);var O=0,T=null,x=0;if(R.disableGlob||!o.hasMagic(A))return m(null,[A]);R.lstat(A,function(E,C){if(!E)return m(null,[A]);o(A,R.glob,m)});function p(E){T=T||E,--x===0&&b(T)}function m(E,C){if(E)return b(E);if(x=C.length,x===0)return b();C.forEach(function(y){d(y,R,function v(P){if(P){if((P.code==="EBUSY"||P.code==="ENOTEMPTY"||P.code==="EPERM")&&O<R.maxBusyTries){O++;var I=O*100;return setTimeout(function(){d(y,R,v)},I)}if(P.code==="EMFILE"&&c<R.emfileWait)return setTimeout(function(){d(y,R,v)},c++);P.code==="ENOENT"&&(P=null)}c=0,p(P)})})}}function d(A,R,b){n(A),n(R),n(typeof b=="function"),R.lstat(A,function(O,T){if(O&&O.code==="ENOENT")return b(null);if(O&&O.code==="EPERM"&&f&&g(A,R,O,b),T&&T.isDirectory())return w(A,R,O,b);R.unlink(A,function(x){if(x){if(x.code==="ENOENT")return b(null);if(x.code==="EPERM")return f?g(A,R,x,b):w(A,R,x,b);if(x.code==="EISDIR")return w(A,R,x,b)}return b(x)})})}function g(A,R,b,O){n(A),n(R),n(typeof O=="function"),b&&n(b instanceof Error),R.chmod(A,a,function(T){T?O(T.code==="ENOENT"?null:b):R.stat(A,function(x,p){x?O(x.code==="ENOENT"?null:b):p.isDirectory()?w(A,R,b,O):R.unlink(A,O)})})}function S(A,R,b){n(A),n(R),b&&n(b instanceof Error);try{R.chmodSync(A,a)}catch(T){if(T.code==="ENOENT")return;throw b}try{var O=R.statSync(A)}catch(T){if(T.code==="ENOENT")return;throw b}O.isDirectory()?N(A,R,b):R.unlinkSync(A)}function w(A,R,b,O){n(A),n(R),b&&n(b instanceof Error),n(typeof O=="function"),R.rmdir(A,function(T){T&&(T.code==="ENOTEMPTY"||T.code==="EEXIST"||T.code==="EPERM")?k(A,R,O):T&&T.code==="ENOTDIR"?O(b):O(T)})}function k(A,R,b){n(A),n(R),n(typeof b=="function"),R.readdir(A,function(O,T){if(O)return b(O);var x=T.length;if(x===0)return R.rmdir(A,b);var p;T.forEach(function(m){h(i.join(A,m),R,function(E){if(!p){if(E)return b(p=E);--x===0&&R.rmdir(A,b)}})})})}function _(A,R){R=R||{},l(R),n(A,"rimraf: missing path"),n.equal(typeof A,"string","rimraf: path should be a string"),n(R,"rimraf: missing options"),n.equal(typeof R,"object","rimraf: options should be object");var b;if(R.disableGlob||!o.hasMagic(A))b=[A];else try{R.lstatSync(A),b=[A]}catch{b=o.sync(A,R.glob)}if(b.length)for(var O=0;O<b.length;O++){var A=b[O];try{var T=R.lstatSync(A)}catch(p){if(p.code==="ENOENT")return;p.code==="EPERM"&&f&&S(A,R,p)}try{T&&T.isDirectory()?N(A,R,null):R.unlinkSync(A)}catch(p){if(p.code==="ENOENT")return;if(p.code==="EPERM")return f?S(A,R,p):N(A,R,p);if(p.code!=="EISDIR")throw p;N(A,R,p)}}}function N(A,R,b){n(A),n(R),b&&n(b instanceof Error);try{R.rmdirSync(A)}catch(O){if(O.code==="ENOENT")return;if(O.code==="ENOTDIR")throw b;(O.code==="ENOTEMPTY"||O.code==="EEXIST"||O.code==="EPERM")&&D(A,R)}}function D(A,R){n(A),n(R),R.readdirSync(A).forEach(function(p){_(i.join(A,p),R)});var b=f?100:1,O=0;do{var T=!0;try{var x=R.rmdirSync(A,R);return T=!1,x}finally{if(++O<b&&T)continue}}while(!0)}},,,,,,function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)}])});var By=F(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.queryLockFile=void 0;var eT=Xi();function tT(e,t,r){let n=(0,eT.nameAtVersion)(e,t);return r.object[n]}zo.queryLockFile=tT});var My=F($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Gy=F(Ne=>{"use strict";var qy=Ne&&Ne.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),rT=Ne&&Ne.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nT=Ne&&Ne.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&qy(t,e,r);return rT(t,e),t},iT=Ne&&Ne.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qy(t,e,r)},Hy=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.queryLockFile=Ne.nameAtVersion=Ne.parseLockFile=void 0;var ql=Hy(Cn()),jy=Hy(M("fs")),sT=Xi();Object.defineProperty(Ne,"nameAtVersion",{enumerable:!0,get:function(){return sT.nameAtVersion}});var oT=Ty(),aT=Iy(),uT=Sl(),$t={};async function cT(e){let t=await(0,ql.default)(["yarn.lock","common/config/rush/yarn.lock"],{cwd:e});if(t){if($t[t])return $t[t];let i=(await Promise.resolve().then(()=>nT(Ny()))).parse,s=jy.default.readFileSync(t,"utf-8"),o=i(s);return $t[t]=o,o}let r=await(0,ql.default)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],{cwd:e});if(r){if($t[r])return $t[r];let i=(0,uT.readYaml)(r),s=(0,oT.parsePnpmLock)(i);return $t[r]=s,$t[r]}let n=await(0,ql.default)(["package-lock.json"],{cwd:e});if(n){if($t[n])return $t[n];let i;try{i=jy.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn\u2019t parse package-lock.json.")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return $t[n]=(0,aT.parseNpmLock)(s),$t[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}Ne.parseLockFile=cT;var lT=By();Object.defineProperty(Ne,"queryLockFile",{enumerable:!0,get:function(){return lT.queryLockFile}});iT(My(),Ne)});var Wy=F(Qn=>{"use strict";var fT=Qn&&Qn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getScopedPackages=void 0;var Uy=fT(Ri());function hT(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,Uy.default)(r,i);for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=dT(r),a=(0,Uy.default)(Object.keys(o),s);for(let u of a)for(let c of o[u])n.add(c)}return[...n]}Qn.getScopedPackages=hT;function dT(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var zy=F(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Ky=F(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=F(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var Jy=F(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.findWorkspacePath=void 0;function pT(e,t){let r=e.find(({name:n})=>n===t);if(r)return r.path}Vo.findWorkspacePath=pT});var Hl=F(Jn=>{"use strict";var Zy=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getPackagesByFiles=void 0;var gT=Zy(Ri()),mT=Zy(M("path")),yT=No();function vT(e,t,r=[],n=!1){let i=(0,yT.getWorkspaces)(e),s=new Set((0,gT.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let u=i.filter(c=>a.indexOf(mT.default.relative(e,c.path).replace(/\\/g,"/"))===0);if(u&&u.length>0){let c=u.reduce((f,l)=>f.path.length>l.path.length?f:l,u[0]);o.add(c.name)}else if(n)return i.map(c=>c.name)}return[...o]}Jn.getPackagesByFiles=vT});var tv=F(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.getChangedPackages=Zn.getChangedPackagesBetweenRefs=void 0;var or=jo(),ev=Hl();function ET(e,t,r="",n=[]){let i=[...new Set([...(0,or.getUntrackedChanges)(e)||[],...(0,or.getUnstagedChanges)(e)||[],...(0,or.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,or.getStagedChanges)(e)||[]])];return(0,ev.getPackagesByFiles)(e,i,n,!0)}Zn.getChangedPackagesBetweenRefs=ET;function AT(e,t,r=[]){let n=t||(0,or.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,or.getUntrackedChanges)(e)||[],...(0,or.getUnstagedChanges)(e)||[],...(0,or.getBranchChanges)(n,e)||[],...(0,or.getStagedChanges)(e)||[]])];return(0,ev.getPackagesByFiles)(e,i,r,!0)}Zn.getChangedPackages=AT});var rv=F(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.listOfWorkspacePackageNames=void 0;function ST(e){return e.map(({name:t})=>t)}Ko.listOfWorkspacePackageNames=ST});var nv=F(Ce=>{"use strict";var wT=Ce&&Ce.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ie=Ce&&Ce.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&wT(t,e,r)};Object.defineProperty(Ce,"__esModule",{value:!0});Ie(Dh(),Ce);Ie(ny(),Ce);Ie(jo(),Ce);Ie(Dy(),Ce);Ie(Gy(),Ce);Ie(Il(),Ce);Ie(Wy(),Ce);Ie(zy(),Ce);Ie(Ky(),Ce);Ie(Qy(),Ce);Ie(Jy(),Ce);Ie(No(),Ce);Ie(Tl(),Ce);Ie(Oo(),Ce);Ie(To(),Ce);Ie(vo(),Ce);Ie(tv(),Ce);Ie(Hl(),Ce);Ie(rv(),Ce);Ie(Pl(),Ce)});var mE=F((D9,gE)=>{var{dirname:V2,resolve:K2}=M("path");gE.exports=function*(e){for(e=K2(e);e;){yield e;let t=V2(e);t===e?e=null:e=t}}});var SE=F((T9,AE)=>{var{hasOwnProperty:sf}=Object.prototype,ia=typeof process<"u"&&process.platform==="win32"?`\r
|
|
79
|
+
`:`
|
|
80
|
+
`,of=(e,t)=>{let r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||Object.create(null),t.whitespace=t.whitespace===!0);let i=t.whitespace?" = ":"=";for(let s of Object.keys(e)){let o=e[s];if(o&&Array.isArray(o))for(let a of o)n+=oi(s+"[]")+i+oi(a)+ia;else o&&typeof o=="object"?r.push(s):n+=oi(s)+i+oi(o)+ia}t.section&&n.length&&(n="["+oi(t.section)+"]"+ia+n);for(let s of r){let o=vE(s).join("\\."),a=(t.section?t.section+".":"")+o,{whitespace:u}=t,c=of(e[s],{section:a,whitespace:u});n.length&&c.length&&(n+=ia),n+=c}return n},vE=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(t=>t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),yE=e=>{let t=Object.create(null),r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);for(let a of s){if(!a||a.match(/^\s*[;#]/))continue;let u=a.match(i);if(!u)continue;if(u[1]!==void 0){if(n=sa(u[1]),n==="__proto__"){r=Object.create(null);continue}r=t[n]=t[n]||Object.create(null);continue}let c=sa(u[2]),f=c.length>2&&c.slice(-2)==="[]",l=f?c.slice(0,-2):c;if(l==="__proto__")continue;let h=u[3]?sa(u[4]):!0,d=h==="true"||h==="false"||h==="null"?JSON.parse(h):h;f&&(sf.call(r,l)?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]),Array.isArray(r[l])?r[l].push(d):r[l]=d}let o=[];for(let a of Object.keys(t)){if(!sf.call(t,a)||typeof t[a]!="object"||Array.isArray(t[a]))continue;let u=vE(a);r=t;let c=u.pop(),f=c.replace(/\\\./g,".");for(let l of u)l!=="__proto__"&&((!sf.call(r,l)||typeof r[l]!="object")&&(r[l]=Object.create(null)),r=r[l]);r===t&&f===c||(r[f]=t[a],o.push(a))}for(let a of o)delete t[a];return t},EE=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),oi=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&EE(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),sa=(e,t)=>{if(e=(e||"").trim(),EE(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let i=0,s=e.length;i<s;i++){let o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e};AE.exports={parse:yE,decode:yE,stringify:of,encode:of,safe:oi,unsafe:sa}});var _E=F((wE,CE)=>{CE.exports=wE=rs.abbrev=rs;rs.monkeyPatch=X2;function X2(){Object.defineProperty(Array.prototype,"abbrev",{value:function(){return rs(this)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(Object.prototype,"abbrev",{value:function(){return rs(Object.keys(this))},enumerable:!1,configurable:!0,writable:!0})}function rs(e){(arguments.length!==1||!Array.isArray(e))&&(e=Array.prototype.slice.call(arguments,0));for(var t=0,r=e.length,n=[];t<r;t++)n[t]=typeof e[t]=="string"?e[t]:String(e[t]);n=n.sort(Q2);for(var i={},s="",t=0,r=n.length;t<r;t++){var o=n[t],a=n[t+1]||"",u=!0,c=!0;if(o!==a){for(var f=0,l=o.length;f<l;f++){var h=o.charAt(f);if(u=u&&h===a.charAt(f),c=c&&h===s.charAt(f),!u&&!c){f++;break}}if(s=o,f===l){i[o]=o;continue}for(var d=o.substr(0,f);f<=l;f++)i[d]=o,d+=o.charAt(f)}}return i}function Q2(e,t){return e===t?0:e>t?1:-1}});var uf=F((ur,kE)=>{var Oe=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?function(){console.error.apply(console,arguments)}:function(){},bE=M("url"),af=M("path"),OE=M("stream").Stream,xE=_E(),J2=M("os");kE.exports=ur=Z2;ur.clean=RE;ur.typeDefs={String:{type:String,validate:eL},Boolean:{type:Boolean,validate:iL},url:{type:bE,validate:sL},Number:{type:Number,validate:rL},path:{type:af,validate:tL},Stream:{type:OE,validate:oL},Date:{type:Date,validate:nL}};function Z2(e,t,r,n){r=r||process.argv,e=e||{},t=t||{},typeof n!="number"&&(n=2),Oe(e,t,r,n),r=r.slice(n);var i={},s={remain:[],cooked:r,original:r.slice(0)};return aL(r,i,s.remain,e,t),RE(i,e,ur.typeDefs),i.argv=s,Object.defineProperty(i.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),i}function RE(e,t,r){r=r||ur.typeDefs;var n={},i=[!1,!0,null,String,Array];Object.keys(e).forEach(function(s){if(s!=="argv"){var o=e[s],a=Array.isArray(o),u=t[s];a||(o=[o]),u||(u=i),u===Array&&(u=i.concat(Array)),Array.isArray(u)||(u=[u]),Oe("val=%j",o),Oe("types=",u),o=o.map(function(c){if(typeof c=="string"&&(Oe("string %j",c),c=c.trim(),c==="null"&&~u.indexOf(null)||c==="true"&&(~u.indexOf(!0)||~u.indexOf(Boolean))||c==="false"&&(~u.indexOf(!1)||~u.indexOf(Boolean))?(c=JSON.parse(c),Oe("jsonable %j",c)):~u.indexOf(Number)&&!isNaN(c)?(Oe("convert to number",c),c=+c):~u.indexOf(Date)&&!isNaN(Date.parse(c))&&(Oe("convert to date",c),c=new Date(c))),!Object.prototype.hasOwnProperty.call(t,s))return c;c===!1&&~u.indexOf(null)&&!(~u.indexOf(!1)||~u.indexOf(Boolean))&&(c=null);var f={};return f[s]=c,Oe("prevalidated val",f,c,t[s]),FE(f,s,c,t[s],r)?(Oe("validated v",f,c,t[s]),f[s]):(ur.invalidHandler?ur.invalidHandler(s,c,t[s],e):ur.invalidHandler!==!1&&Oe("invalid: "+s+"="+c,t[s]),n)}).filter(function(c){return c!==n}),!o.length&&u.indexOf(Array)===-1?(Oe("VAL HAS NO LENGTH, DELETE IT",o,s,u.indexOf(Array)),delete e[s]):a?(Oe(a,e[s],o),e[s]=o):e[s]=o[0],Oe("k=%s val=%j",s,o,e[s])}})}function eL(e,t,r){e[t]=String(r)}function tL(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);var n=process.platform==="win32",i=n?/^~(\/|\\)/:/^~\//,s=J2.homedir();return s&&r.match(i)?e[t]=af.resolve(s,r.slice(2)):e[t]=af.resolve(r),!0}function rL(e,t,r){if(Oe("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function nL(e,t,r){var n=Date.parse(r);if(Oe("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function iL(e,t,r){r instanceof Boolean?r=r.valueOf():typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function sL(e,t,r){if(r=bE.parse(String(r)),!r.host)return!1;e[t]=r.href}function oL(e,t,r){if(!(r instanceof OE))return!1;e[t]=r}function FE(e,t,r,n,i){if(Array.isArray(n)){for(let c=0,f=n.length;c<f;c++)if(n[c]!==Array&&FE(e,t,r,n[c],i))return!0;return delete e[t],!1}if(n===Array)return!0;if(n!==n)return Oe("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return Oe("Explicitly allowed %j",r),e[t]=r,!0;var s=!1,o=Object.keys(i);for(let c=0,f=o.length;c<f;c++){Oe("test type %j %j %j",t,r,o[c]);var a=i[o[c]];if(a&&(n&&n.name&&a.type&&a.type.name?n.name===a.type.name:n===a.type)){var u={};if(s=a.validate(u,t,r)!==!1,r=u[t],s){e[t]=r;break}}}return Oe("OK? %j (%j %j %j)",s,t,r,o[o.length-1]),s||delete e[t],s}function aL(e,t,r,n,i){Oe("parse",e,t,r);for(var s=xE(Object.keys(n)),o=xE(Object.keys(i)),a=0;a<e.length;a++){var u=e[a];if(Oe("arg",u),u.match(/^-{2,}$/)){r.push.apply(r,e.slice(a+1)),e[a]="--";break}var c=!1;if(u.charAt(0)==="-"&&u.length>1){var f=u.indexOf("=");if(f>-1){c=!0;var l=u.slice(f+1);u=u.slice(0,f),e.splice(a,1,u,l)}var h=uL(u,i,o,s);if(Oe("arg=%j shRes=%j",u,h),h&&(Oe(u,h),e.splice.apply(e,[a,1].concat(h)),u!==h[0])){a--;continue}u=u.replace(/^-+/,"");for(var d=null;u.toLowerCase().indexOf("no-")===0;)d=!d,u=u.slice(3);s[u]&&(u=s[u]);var g=n[u],S=Array.isArray(g);S&&g.length===1&&(S=!1,g=g[0]);var w=g===Array||S&&g.indexOf(Array)!==-1;!Object.prototype.hasOwnProperty.call(n,u)&&Object.prototype.hasOwnProperty.call(t,u)&&(Array.isArray(t[u])||(t[u]=[t[u]]),w=!0);var k,_=e[a+1],N=typeof d=="boolean"||g===Boolean||S&&g.indexOf(Boolean)!==-1||typeof g>"u"&&!c||_==="false"&&(g===null||S&&~g.indexOf(null));if(N){k=!d,(_==="true"||_==="false")&&(k=JSON.parse(_),_=null,d&&(k=!k),a++),S&&_&&(~g.indexOf(_)?(k=_,a++):_==="null"&&~g.indexOf(null)?(k=null,a++):!_.match(/^-{2,}[^-]/)&&!isNaN(_)&&~g.indexOf(Number)?(k=+_,a++):!_.match(/^-[^-]/)&&~g.indexOf(String)&&(k=_,a++)),w?(t[u]=t[u]||[]).push(k):t[u]=k;continue}g===String&&(_===void 0?_="":_.match(/^-{1,2}[^-]+/)&&(_="",a--)),_&&_.match(/^-{2,}$/)&&(_=void 0,a--),k=_===void 0?!0:_,w?(t[u]=t[u]||[]).push(k):t[u]=k,a++;continue}r.push(u)}}function uL(e,t,r,n){if(e=e.replace(/^-+/,""),n[e]===e)return null;if(t[e])return t[e]&&!Array.isArray(t[e])&&(t[e]=t[e].split(/\s+/)),t[e];var i=t.___singles;i||(i=Object.keys(t).filter(function(o){return o.length===1}).reduce(function(o,a){return o[a]=!0,o},{}),t.___singles=i,Oe("shorthand singles",i));var s=e.split("").filter(function(o){return i[o]});return s.join("")===e?s.map(function(o){return t[o]}).reduce(function(o,a){return o.concat(a)},[]):n[e]&&!t[e]?null:(r[e]&&(e=r[e]),t[e]&&!Array.isArray(t[e])&&(t[e]=t[e].split(/\s+/)),t[e])}});var LE=F((I9,oa)=>{var cr=new Map,PE=M("fs"),{dirname:DE,resolve:cf}=M("path"),cL=e=>new Promise((t,r)=>PE.lstat(e,(n,i)=>n?r(n):t(i))),TE=e=>{if(e=cf(e),cr.has(e))return Promise.resolve(cr.get(e));let t=i=>{let{uid:s,gid:o}=i;return cr.set(e,{uid:s,gid:o}),{uid:s,gid:o}},r=DE(e),n=r===e?null:i=>TE(r).then(s=>(cr.set(e,s),s));return cL(e).then(t,n)},IE=e=>{if(e=cf(e),cr.has(e))return cr.get(e);let t=DE(e),r=!0;try{let n=PE.lstatSync(e);r=!1;let{uid:i,gid:s}=n;return cr.set(e,{uid:i,gid:s}),{uid:i,gid:s}}finally{if(r&&t!==e){let n=IE(t);return cr.set(e,n),n}}},ns=new Map;oa.exports=e=>{if(e=cf(e),ns.has(e))return Promise.resolve(ns.get(e));let t=TE(e).then(r=>(ns.delete(e),r));return ns.set(e,t),t};oa.exports.sync=IE;oa.exports.clearCache=()=>{cr.clear(),ns.clear()}});var $E=F((L9,BE)=>{var{promisify:NE}=M("util"),Nr=M("fs"),lL=e=>{if(!e)e={mode:511,fs:Nr};else if(typeof e=="object")e={mode:511,fs:Nr,...e};else if(typeof e=="number")e={mode:e,fs:Nr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Nr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Nr.mkdir,e.mkdirAsync=NE(e.mkdir),e.stat=e.stat||e.fs.stat||Nr.stat,e.statAsync=NE(e.stat),e.statSync=e.statSync||e.fs.statSync||Nr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Nr.mkdirSync,e};BE.exports=lL});var jE=F((N9,ME)=>{var fL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:hL,parse:dL}=M("path"),pL=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=hL(e),fL==="win32"){let t=/[*|"<>?:]/,{root:r}=dL(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};ME.exports=pL});var WE=F((B9,UE)=>{var{dirname:qE}=M("path"),HE=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?HE(e,qE(t),t):void 0),GE=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?GE(e,qE(t),t):void 0}};UE.exports={findMade:HE,findMadeSync:GE}});var hf=F(($9,zE)=>{var{dirname:YE}=M("path"),lf=(e,t,r)=>{t.recursive=!1;let n=YE(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return lf(n,t).then(s=>lf(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},ff=(e,t,r)=>{let n=YE(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return ff(e,t,ff(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};zE.exports={mkdirpManual:lf,mkdirpManualSync:ff}});var XE=F((M9,KE)=>{var{dirname:VE}=M("path"),{findMade:gL,findMadeSync:mL}=WE(),{mkdirpManual:yL,mkdirpManualSync:vL}=hf(),EL=(e,t)=>(t.recursive=!0,VE(e)===e?t.mkdirAsync(e,t):gL(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return yL(e,t);throw i}))),AL=(e,t)=>{if(t.recursive=!0,VE(e)===e)return t.mkdirSync(e,t);let n=mL(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return vL(e,t);throw i}};KE.exports={mkdirpNative:EL,mkdirpNativeSync:AL}});var eA=F((j9,ZE)=>{var QE=M("fs"),SL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,df=SL.replace(/^v/,"").split("."),JE=+df[0]>10||+df[0]==10&&+df[1]>=12,wL=JE?e=>e.mkdir===QE.mkdir:()=>!1,CL=JE?e=>e.mkdirSync===QE.mkdirSync:()=>!1;ZE.exports={useNative:wL,useNativeSync:CL}});var oA=F((q9,sA)=>{var ai=$E(),ui=jE(),{mkdirpNative:tA,mkdirpNativeSync:rA}=XE(),{mkdirpManual:nA,mkdirpManualSync:iA}=hf(),{useNative:_L,useNativeSync:xL}=eA(),ci=(e,t)=>(e=ui(e),t=ai(t),_L(t)?tA(e,t):nA(e,t)),bL=(e,t)=>(e=ui(e),t=ai(t),xL(t)?rA(e,t):iA(e,t));ci.sync=bL;ci.native=(e,t)=>tA(ui(e),ai(t));ci.manual=(e,t)=>nA(ui(e),ai(t));ci.nativeSync=(e,t)=>rA(ui(e),ai(t));ci.manualSync=(e,t)=>iA(ui(e),ai(t));sA.exports=ci});var dA=F((H9,hA)=>{"use strict";var xt=M("fs"),an=M("path"),OL=xt.lchown?"lchown":"chown",RL=xt.lchownSync?"lchownSync":"chownSync",uA=xt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),aA=(e,t,r)=>{try{return xt[RL](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},FL=(e,t,r)=>{try{return xt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},kL=uA?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):xt.chown(e,t,r,n)}:(e,t,r,n)=>n,pf=uA?(e,t,r)=>{try{return aA(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;FL(e,t,r)}}:(e,t,r)=>aA(e,t,r),PL=process.version,cA=(e,t,r)=>xt.readdir(e,t,r),DL=(e,t)=>xt.readdirSync(e,t);/^v4\./.test(PL)&&(cA=(e,t,r)=>xt.readdir(e,r));var aa=(e,t,r,n)=>{xt[OL](e,t,r,kL(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},lA=(e,t,r,n,i)=>{if(typeof t=="string")return xt.lstat(an.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,lA(e,o,r,n,i)});if(t.isDirectory())gf(an.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=an.resolve(e,t.name);aa(o,r,n,i)});else{let s=an.resolve(e,t.name);aa(s,r,n,i)}},gf=(e,t,r,n)=>{cA(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return aa(e,t,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return aa(e,t,r,n)}};s.forEach(c=>lA(e,c,t,r,u))})},TL=(e,t,r,n)=>{if(typeof t=="string")try{let i=xt.lstatSync(an.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&fA(an.resolve(e,t.name),r,n),pf(an.resolve(e,t.name),r,n)},fA=(e,t,r)=>{let n;try{n=DL(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return pf(e,t,r);throw i}return n&&n.length&&n.forEach(i=>TL(e,i,t,r)),pf(e,t,r)};hA.exports=gf;gf.sync=fA});var yA=F((G9,mf)=>{var pA=LE(),ua=oA(),{promisify:IL}=M("util"),gA=IL(dA()),LL=process.env.__TESTING_MKDIRP_INFER_OWNER_PLATFORM__||process.platform,NL=LL==="win32",BL=process.getuid&&process.getuid()===0,mA=!NL&&BL;mf.exports=mA?(e,t)=>pA(e).then(({uid:r,gid:n})=>ua(e,t).then(i=>r!==0||n!==process.getgid()?gA(i||e,r,n).then(()=>i):i)):(e,t)=>ua(e,t);mf.exports.sync=mA?(e,t)=>{let{uid:r,gid:n}=pA.sync(e),i=ua.sync(e);return(r!==0||n!==process.getgid())&&gA.sync(i||e,r,n),i}:(e,t)=>ua.sync(e,t)});var AA=F((U9,EA)=>{var{basename:vA,dirname:$L}=M("path"),ML=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;EA.exports=e=>e?ML(vA($L(e)),vA(e)):!1});var wA=F((W9,SA)=>{var jL=typeof process=="object"&&process&&process.platform==="win32";SA.exports=jL?{sep:"\\"}:{sep:"/"}});var OA=F((Y9,bA)=>{"use strict";bA.exports=_A;function _A(e,t,r){e instanceof RegExp&&(e=CA(e,r)),t instanceof RegExp&&(t=CA(t,r));var n=xA(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function CA(e,t){var r=t.match(e);return r?r[0]:null}_A.range=xA;function xA(e,t,r){var n,i,s,o,a,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(u>=0&&c>0){if(e===t)return[u,c];for(n=[],s=r.length;f>=0&&!a;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),c]:(i=n.pop(),i<s&&(s=i,o=c),c=r.indexOf(t,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[s,o])}return a}});var LA=F((z9,IA)=>{var RA=OA();IA.exports=GL;var FA="\0SLASH"+Math.random()+"\0",kA="\0OPEN"+Math.random()+"\0",vf="\0CLOSE"+Math.random()+"\0",PA="\0COMMA"+Math.random()+"\0",DA="\0PERIOD"+Math.random()+"\0";function yf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function qL(e){return e.split("\\\\").join(FA).split("\\{").join(kA).split("\\}").join(vf).split("\\,").join(PA).split("\\.").join(DA)}function HL(e){return e.split(FA).join("\\").split(kA).join("{").split(vf).join("}").split(PA).join(",").split(DA).join(".")}function TA(e){if(!e)return[""];var t=[],r=RA("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=TA(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function GL(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),is(qL(e),!0).map(HL)):[]}function UL(e){return"{"+e+"}"}function WL(e){return/^-?0\d/.test(e)}function YL(e,t){return e<=t}function zL(e,t){return e>=t}function is(e,t){var r=[],n=RA("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?is(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||c,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+vf+n.post,is(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=TA(n.body),h.length===1&&(h=is(h[0],!1).map(UL),h.length===1))return s.map(function(x){return n.pre+h[0]+x});var d;if(f){var g=yf(h[0]),S=yf(h[1]),w=Math.max(h[0].length,h[1].length),k=h.length==3?Math.abs(yf(h[2])):1,_=YL,N=S<g;N&&(k*=-1,_=zL);var D=h.some(WL);d=[];for(var A=g;_(A,S);A+=k){var R;if(c)R=String.fromCharCode(A),R==="\\"&&(R="");else if(R=String(A),D){var b=w-R.length;if(b>0){var O=new Array(b+1).join("0");A<0?R="-"+O+R.slice(1):R=O+R}}d.push(R)}}else{d=[];for(var T=0;T<h.length;T++)d.push.apply(d,is(h[T],!1))}for(var T=0;T<d.length;T++)for(var o=0;o<s.length;o++){var a=i+d[T]+s[o];(!t||f||a)&&r.push(a)}}return r}});var ss=F((K9,Cf)=>{var vt=Cf.exports=(e,t,r={})=>(ca(t),!r.nocomment&&t.charAt(0)==="#"?!1:new li(t,r).match(e));Cf.exports=vt;var Sf=wA();vt.sep=Sf.sep;var Mt=Symbol("globstar **");vt.GLOBSTAR=Mt;var VL=LA(),NA={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},wf="[^/]",Ef=wf+"*?",KL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",XL="(?:(?!(?:\\/|^)\\.).)*?",MA=e=>e.split("").reduce((t,r)=>(t[r]=!0,t),{}),BA=MA("().*{}+?[]^$\\!"),QL=MA("[.("),$A=/\/+/;vt.filter=(e,t={})=>(r,n,i)=>vt(r,e,t);var Br=(e,t={})=>{let r={};return Object.keys(e).forEach(n=>r[n]=e[n]),Object.keys(t).forEach(n=>r[n]=t[n]),r};vt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return vt;let t=vt,r=(n,i,s)=>t(n,i,Br(e,s));return r.Minimatch=class extends t.Minimatch{constructor(i,s){super(i,Br(e,s))}},r.Minimatch.defaults=n=>t.defaults(Br(e,n)).Minimatch,r.filter=(n,i)=>t.filter(n,Br(e,i)),r.defaults=n=>t.defaults(Br(e,n)),r.makeRe=(n,i)=>t.makeRe(n,Br(e,i)),r.braceExpand=(n,i)=>t.braceExpand(n,Br(e,i)),r.match=(n,i,s)=>t.match(n,i,Br(e,s)),r};vt.braceExpand=(e,t)=>jA(e,t);var jA=(e,t={})=>(ca(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:VL(e)),JL=1024*64,ca=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>JL)throw new TypeError("pattern is too long")},Af=Symbol("subparse");vt.makeRe=(e,t)=>new li(e,t||{}).makeRe();vt.match=(e,t,r={})=>{let n=new li(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};var ZL=e=>e.replace(/\\(.)/g,"$1"),eN=e=>e.replace(/\\([^-\]])/g,"$1"),tN=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rN=e=>e.replace(/[[\]\\]/g,"\\$&"),li=class{constructor(t,r){ca(t),r||(r={}),this.options=r,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split($A)),this.debug(this.pattern,n),n=n.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var s=0,o=0,a=t.length,u=r.length;s<a&&o<u;s++,o++){this.debug("matchOne loop");var c=r[o],f=t[s];if(this.debug(r,c,f),c===!1)return!1;if(c===Mt){this.debug("GLOBSTAR",[r,c,f]);var l=s,h=o+1;if(h===u){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<a;){var d=t[l];if(this.debug(`
|
|
81
|
+
globstar while`,t,l,r,h,d),this.matchOne(t.slice(l),r.slice(h),n))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,r,h);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
|
|
82
|
+
>>> no match, partial?`,t,l,r,h),l===a))}var g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=f.match(c),this.debug("pattern match",c,f,g)),!g)return!1}if(s===a&&o===u)return!0;if(s===a)return n;if(o===u)return s===a-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return jA(this.pattern,this.options)}parse(t,r){ca(t);let n=this.options;if(t==="**")if(n.noglobstar)t="*";else return Mt;if(t==="")return"";let i="",s=!1,o=!1,a=[],u=[],c,f=!1,l=-1,h=-1,d,g,S,w=t.charAt(0)===".",k=n.dot||w,_=()=>w?"":k?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",N=b=>b.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(c){switch(c){case"*":i+=Ef,s=!0;break;case"?":i+=wf,s=!0;break;default:i+="\\"+c;break}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let b=0,O;b<t.length&&(O=t.charAt(b));b++){if(this.debug("%s %s %s %j",t,b,i,O),o){if(O==="/")return!1;BA[O]&&(i+="\\"),i+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&t.charAt(b+1)==="-"){i+=O;continue}D(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,b,i,O),f){this.debug(" in class"),O==="!"&&b===h+1&&(O="^"),i+=O;continue}this.debug("call clearStateChar %j",c),D(),c=O,n.noext&&D();continue;case"(":{if(f){i+="(";continue}if(!c){i+="\\(";continue}let T={type:c,start:b-1,reStart:i.length,open:NA[c].open,close:NA[c].close};this.debug(this.pattern," ",T),a.push(T),i+=T.open,T.start===0&&T.type!=="!"&&(w=!0,i+=N(t.slice(b+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{let T=a[a.length-1];if(f||!T){i+="\\)";continue}a.pop(),D(),s=!0,g=T,i+=g.close,g.type==="!"&&u.push(Object.assign(g,{reEnd:i.length}));continue}case"|":{let T=a[a.length-1];if(f||!T){i+="\\|";continue}D(),i+="|",T.start===0&&T.type!=="!"&&(w=!0,i+=N(t.slice(b+1)));continue}case"[":if(D(),f){i+="\\"+O;continue}f=!0,h=b,l=i.length,i+=O;continue;case"]":if(b===h+1||!f){i+="\\"+O;continue}d=t.substring(h+1,b);try{RegExp("["+rN(eN(d))+"]"),i+=O}catch{i=i.substring(0,l)+"(?:$.)"}s=!0,f=!1;continue;default:D(),BA[O]&&!(O==="^"&&f)&&(i+="\\"),i+=O;break}}for(f&&(d=t.slice(h+1),S=this.parse(d,Af),i=i.substring(0,l)+"\\["+S[0],s=s||S[1]),g=a.pop();g;g=a.pop()){let b;b=i.slice(g.reStart+g.open.length),this.debug("setting tail",i,g),b=b.replace(/((?:\\{2}){0,64})(\\?)\|/g,(T,x,p)=>(p||(p="\\"),x+x+p+"|")),this.debug(`tail=%j
|
|
83
|
+
%s`,b,b,g,i);let O=g.type==="*"?Ef:g.type==="?"?wf:"\\"+g.type;s=!0,i=i.slice(0,g.reStart)+O+"\\("+b}D(),o&&(i+="\\\\");let A=QL[i.charAt(0)];for(let b=u.length-1;b>-1;b--){let O=u[b],T=i.slice(0,O.reStart),x=i.slice(O.reStart,O.reEnd-8),p=i.slice(O.reEnd),m=i.slice(O.reEnd-8,O.reEnd)+p,E=T.split(")").length,C=T.split("(").length-E,y=p;for(let P=0;P<C;P++)y=y.replace(/\)[+*?]?/,"");p=y;let v=p===""&&r!==Af?"(?:$|\\/)":"";i=T+x+p+v+m}if(i!==""&&s&&(i="(?=.)"+i),A&&(i=_()+i),r===Af)return[i,s];if(n.nocase&&!s&&(s=t.toUpperCase()!==t.toLowerCase()),!s)return ZL(t);let R=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",R),{_glob:t,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Ef:r.dot?KL:XL,i=r.nocase?"i":"",s=t.map(o=>(o=o.map(a=>typeof a=="string"?tN(a):a===Mt?Mt:a._src).reduce((a,u)=>(a[a.length-1]===Mt&&u===Mt||a.push(u),a),[]),o.forEach((a,u)=>{a!==Mt||o[u-1]===Mt||(u===0?o.length>1?o[u+1]="(?:\\/|"+n+"\\/)?"+o[u+1]:o[u]=n:u===o.length-1?o[u-1]+="(?:\\/|"+n+")?":(o[u-1]+="(?:\\/|\\/"+n+"\\/)"+o[u+1],o[u+1]=Mt))}),o.filter(a=>a!==Mt).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;Sf.sep!=="/"&&(t=t.split(Sf.sep).join("/")),t=t.split($A),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=t.length-1;o>=0&&(s=t[o],!s);o--);for(let o=0;o<i.length;o++){let a=i[o],u=t;if(n.matchBase&&a.length===1&&(u=[s]),this.matchOne(u,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return vt.defaults(t).Minimatch}};vt.Minimatch=li});var GA=F((X9,HA)=>{"use strict";var nN=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},iN=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${nN(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,a=i+r>=t.length?t.length:i+r,u=(o===0?"":"...")+t.slice(o,a)+(a===t.length?"":"...");return{message:s+` while parsing ${t===u?"":"near "}${JSON.stringify(u)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},la=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=iN(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},sN=Symbol.for("indent"),oN=Symbol.for("newline"),aN=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,uN=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,fa=(e,t,r)=>{let n=qA(e);r=r||20;try{let[,i=`
|
|
84
|
+
`,s=" "]=n.match(uN)||n.match(aN)||[,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[oN]=i,o[sN]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new la(i,n,r,fa)}},qA=e=>String(e).replace(/^\uFEFF/,"");HA.exports=fa;fa.JSONParseError=la;fa.noExceptions=(e,t)=>{try{return JSON.parse(qA(e),t)}catch{}}});var zA=F((Q9,YA)=>{var{join:UA,basename:WA}=M("path"),cN=e=>e.bin?typeof e.bin=="string"?lN(e):Array.isArray(e.bin)?fN(e):typeof e.bin=="object"?xf(e):_f(e):_f(e),lN=e=>e.name?(e.bin={[e.name]:e.bin},xf(e)):_f(e),fN=e=>(e.bin=e.bin.reduce((t,r)=>(t[WA(r)]=r,t),{}),xf(e)),_f=e=>(delete e.bin,e),xf=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=UA("/",WA(i.replace(/\\|:/g,"/"))).substr(1);if(typeof t[i]!="string"||!s)return;let o=UA("/",t[i]).replace(/\\/g,"/").substr(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};YA.exports=cN});var Ff=F((J9,JA)=>{var{promisify:Of}=M("util"),Rf=M("fs"),hN=Of(Rf.readFile),dN=Of(Rf.lstat),pN=Of(Rf.readdir),gN=GA(),{resolve:VA,dirname:mN,join:bf,relative:yN}=M("path"),KA=e=>hN(e,"utf8").then(t=>EN(e,QA(AN(gN(t))))).catch(t=>{throw t.path=e,t}),vN=zA(),EN=async(e,t)=>{if(t.bin)return t;let r=t.directories&&t.directories.bin;if(!r||typeof r!="string")return t;let n=mN(e),i=bf(".",bf("/",r));return t.bin=await XA(n,i,{}),t},XA=async(e,t,r)=>{let n=await pN(VA(e,t)).catch(()=>[]);for(let i of n){if(i.charAt(0)===".")continue;let s=VA(e,t,i),o=await dN(s).catch(()=>null);if(o)o.isFile()?r[i]=yN(e,s):o.isDirectory()&&await XA(e,bf(t,i),r);else continue}return r},AN=e=>{for(let t of Object.keys(e).filter(r=>/^_/.test(r)))delete e[t];return e},QA=e=>(SN(e),CN(e),wN(e),_N(e),xN(e),vN(e),e);KA.normalize=QA;var SN=e=>(e.name&&e.version&&(e._id=`${e.name}@${e.version}`),e),wN=e=>{let t=e.optionalDependencies,r=e.dependencies||{};if(t&&typeof t=="object")for(let n of Object.keys(t))delete r[n];return Object.keys(r).length===0&&delete e.dependencies,e},CN=e=>{let t=e.bundledDependencies,r=e.bundleDependencies===void 0?t:e.bundleDependencies;return r===!1?e.bundleDependencies=[]:r===!0?e.bundleDependencies=Object.keys(e.dependencies||{}):r&&typeof r=="object"?Array.isArray(r)?e.bundleDependencies=r:e.bundleDependencies=Object.keys(r):delete e.bundleDependencies,delete e.bundledDependencies,e},_N=e=>{if(!e.scripts||typeof e.scripts!="object")return delete e.scripts,e;for(let[t,r]of Object.entries(e.scripts))typeof r!="string"&&delete e.scripts[t];return e},xN=e=>(e.funding&&typeof e.funding=="string"&&(e.funding={url:e.funding}),e);JA.exports=KA});var ZA=F(kf=>{var un=M("path"),Mr=process.platform==="win32",$r=M("fs"),bN=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function ON(){var e;if(bN){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function RN(e){return typeof e=="function"?e:ON()}var Z9=un.normalize;Mr?lr=/(.*?)(?:[\/\\]+|$)/g:lr=/(.*?)(?:[\/]+|$)/g;var lr;Mr?os=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:os=/^[\/]*/;var os;kf.realpathSync=function(t,r){if(t=un.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},o,a,u,c;f();function f(){var w=os.exec(t);o=w[0].length,a=w[0],u=w[0],c="",Mr&&!s[u]&&($r.lstatSync(u),s[u]=!0)}for(;o<t.length;){lr.lastIndex=o;var l=lr.exec(t);if(c=a,a+=l[0],u=c+l[1],o=lr.lastIndex,!(s[u]||r&&r[u]===u)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,u))h=r[u];else{var d=$r.lstatSync(u);if(!d.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var g=null;if(!Mr){var S=d.dev.toString(32)+":"+d.ino.toString(32);i.hasOwnProperty(S)&&(g=i[S])}g===null&&($r.statSync(u),g=$r.readlinkSync(u)),h=un.resolve(c,g),r&&(r[u]=h),Mr||(i[S]=g)}t=un.resolve(h,t.slice(o)),f()}}return r&&(r[n]=t),t};kf.realpath=function(t,r,n){if(typeof n!="function"&&(n=RN(r),r=null),t=un.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},o={},a,u,c,f;l();function l(){var w=os.exec(t);a=w[0].length,u=w[0],c=w[0],f="",Mr&&!o[c]?$r.lstat(c,function(k){if(k)return n(k);o[c]=!0,h()}):process.nextTick(h)}function h(){if(a>=t.length)return r&&(r[i]=t),n(null,t);lr.lastIndex=a;var w=lr.exec(t);return f=u,u+=w[0],c=f+w[1],a=lr.lastIndex,o[c]||r&&r[c]===c?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,c)?S(r[c]):$r.lstat(c,d)}function d(w,k){if(w)return n(w);if(!k.isSymbolicLink())return o[c]=!0,r&&(r[c]=c),process.nextTick(h);if(!Mr){var _=k.dev.toString(32)+":"+k.ino.toString(32);if(s.hasOwnProperty(_))return g(null,s[_],c)}$r.stat(c,function(N){if(N)return n(N);$r.readlink(c,function(D,A){Mr||(s[_]=A),g(D,A)})})}function g(w,k,_){if(w)return n(w);var N=un.resolve(f,k);r&&(r[_]=N),S(N)}function S(w){t=un.resolve(w,t.slice(a)),l()}}});var If=F((tH,n1)=>{n1.exports=jr;jr.realpath=jr;jr.sync=Tf;jr.realpathSync=Tf;jr.monkeypatch=kN;jr.unmonkeypatch=PN;var fi=M("fs"),Pf=fi.realpath,Df=fi.realpathSync,FN=process.version,e1=/^v[0-5]\./.test(FN),t1=ZA();function r1(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function jr(e,t,r){if(e1)return Pf(e,t,r);typeof t=="function"&&(r=t,t=null),Pf(e,t,function(n,i){r1(n)?t1.realpath(e,t,r):r(n,i)})}function Tf(e,t){if(e1)return Df(e,t);try{return Df(e,t)}catch(r){if(r1(r))return t1.realpathSync(e,t);throw r}}function kN(){fi.realpath=jr,fi.realpathSync=Tf}function PN(){fi.realpath=Pf,fi.realpathSync=Df}});var i1=F((rH,Lf)=>{typeof Object.create=="function"?Lf.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Lf.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var s1=F((nH,Bf)=>{try{if(Nf=M("util"),typeof Nf.inherits!="function")throw"";Bf.exports=Nf.inherits}catch{Bf.exports=i1()}var Nf});var Mf=F(qr=>{qr.setopts=BN;qr.ownProp=o1;qr.makeAbs=as;qr.finish=$N;qr.mark=MN;qr.isIgnored=u1;qr.childrenIgnored=jN;function o1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var DN=M("fs"),cn=M("path"),TN=ss(),a1=M("path").isAbsolute,$f=TN.Minimatch;function IN(e,t){return e.localeCompare(t,"en")}function LN(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(NN))}function NN(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new $f(r,{dot:!0})}return{matcher:new $f(e,{dot:!0}),gmatcher:t}}function BN(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,e.windowsPathsNoEscape&&(t=t.replace(/\\/g,"/")),e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||DN,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),LN(e,r),e.changedCwd=!1;var n=process.cwd();o1(r,"cwd")?(e.cwd=cn.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=cn.resolve(n),e.root=r.root||cn.resolve(e.cwd,"/"),e.root=cn.resolve(e.root),e.cwdAbs=a1(e.cwd)?e.cwd:as(e,e.cwd),e.nomount=!!r.nomount,process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),r.nonegate=!0,r.nocomment=!0,e.minimatch=new $f(t,r),e.options=e.minimatch.options}function $N(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];t?r.push(o):r[o]=!0}}else{var a=Object.keys(s);t?r.push.apply(r,a):a.forEach(function(u){r[u]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(IN)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(u){var c=!/\/$/.test(u),f=e.cache[u]||e.cache[as(e,u)];return c&&f&&(c=f!=="DIR"&&!Array.isArray(f)),c}))}e.ignore.length&&(r=r.filter(function(u){return!u1(e,u)})),e.found=r}function MN(e,t){var r=as(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),o=t.slice(-1)==="/";if(s&&!o?i+="/":!s&&o&&(i=i.slice(0,-1)),i!==t){var a=as(e,i);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return i}function as(e,t){var r=t;return t.charAt(0)==="/"?r=cn.join(e.root,t):a1(t)||t===""?r=t:e.changedCwd?r=cn.resolve(e.cwd,t):r=cn.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function u1(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function jN(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var d1=F((uH,h1)=>{h1.exports=f1;f1.GlobSync=$e;var qN=If(),c1=ss(),sH=c1.Minimatch,oH=Hf().Glob,aH=M("util"),jf=M("path"),l1=M("assert"),ha=M("path").isAbsolute,ln=Mf(),HN=ln.setopts,qf=ln.ownProp,GN=ln.childrenIgnored,UN=ln.isIgnored;function f1(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
85
|
+
See: https://github.com/isaacs/node-glob/issues/167`);return new $e(e,t).found}function $e(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
86
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof $e))return new $e(e,t);if(HN(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}$e.prototype._finish=function(){if(l1.ok(this instanceof $e),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var s=qN.realpathSync(i,e.realpathCache);n[s]=!0}catch(o){if(o.syscall==="stat")n[e._makeAbs(i)]=!0;else throw o}})}ln.finish(this)};$e.prototype._process=function(e,t,r){l1.ok(this instanceof $e);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n),o;i===null?o=".":((ha(i)||ha(e.map(function(c){return typeof c=="string"?c:"[*]"}).join("/")))&&(!i||!ha(i))&&(i="/"+i),o=i);var a=this._makeAbs(o);if(!GN(this,o)){var u=s[0]===c1.GLOBSTAR;u?this._processGlobStar(i,o,a,s,t,r):this._processReaddir(i,o,a,s,t,r)}};$e.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){for(var a=n[0],u=!!this.minimatch.negate,c=a._glob,f=this.dot||c.charAt(0)===".",l=[],h=0;h<o.length;h++){var d=o[h];if(d.charAt(0)!=="."||f){var g;u&&!e?g=!d.match(a):g=d.match(a),g&&l.push(d)}}var S=l.length;if(S!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var h=0;h<S;h++){var d=l[h];e&&(e.slice(-1)!=="/"?d=e+"/"+d:d=e+d),d.charAt(0)==="/"&&!this.nomount&&(d=jf.join(this.root,d)),this._emitMatch(i,d)}return}n.shift();for(var h=0;h<S;h++){var d=l[h],w;e?w=[e,d]:w=[d],this._process(w.concat(n),i,s)}}}};$e.prototype._emitMatch=function(e,t){if(!UN(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};$e.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,n;try{r=this.fs.lstatSync(e)}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[e]=i,!i&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};$e.prototype._readdir=function(e,t){var r;if(t&&!qf(this.symlinks,e))return this._readdirInGlobStar(e);if(qf(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};$e.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t};$e.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};$e.prototype._processGlobStar=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){var a=n.slice(1),u=e?[e]:[],c=u.concat(a);this._process(c,i,!1);var f=o.length,l=this.symlinks[r];if(!(l&&s))for(var h=0;h<f;h++){var d=o[h];if(!(d.charAt(0)==="."&&!this.dot)){var g=u.concat(o[h],a);this._process(g,i,!0);var S=u.concat(o[h],n);this._process(S,i,!0)}}}};$e.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&ha(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=jf.join(this.root,e):(e=jf.resolve(this.root,e),n&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};$e.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&qf(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||o==="DIR")return o;if(r&&o==="FILE")return!1}var n,i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t)}catch{i=s}else i=s}this.statCache[t]=i;var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,r&&o==="FILE"?!1:o};$e.prototype._mark=function(e){return ln.mark(this,e)};$e.prototype._makeAbs=function(e){return ln.makeAbs(this,e)}});var Gf=F((cH,g1)=>{g1.exports=p1;function p1(e,t){if(e&&t)return p1(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Wf=F((lH,Uf)=>{var m1=Gf();Uf.exports=m1(da);Uf.exports.strict=m1(y1);da.proto=da(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return da(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return y1(this)},configurable:!0})});function da(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function y1(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var E1=F((fH,v1)=>{var WN=Gf(),us=Object.create(null),YN=Wf();v1.exports=WN(zN);function zN(e,t){return us[e]?(us[e].push(t),null):(us[e]=[t],VN(e))}function VN(e){return YN(function t(){var r=us[e],n=r.length,i=KN(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete us[e]}})}function KN(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var Hf=F((pH,S1)=>{S1.exports=fn;var XN=If(),A1=ss(),hH=A1.Minimatch,QN=s1(),JN=M("events").EventEmitter,Yf=M("path"),zf=M("assert"),cs=M("path").isAbsolute,Kf=d1(),hn=Mf(),ZN=hn.setopts,Vf=hn.ownProp,Xf=E1(),dH=M("util"),eB=hn.childrenIgnored,tB=hn.isIgnored,rB=Wf();function fn(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return Kf(e,t)}return new me(e,t,r)}fn.sync=Kf;var nB=fn.GlobSync=Kf.GlobSync;fn.glob=fn;function iB(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}fn.hasMagic=function(e,t){var r=iB({},t);r.noprocess=!0;var n=new me(e,r),i=n.minimatch.set;if(!e)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return!0;return!1};fn.Glob=me;QN(me,JN);function me(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new nB(e,t)}if(!(this instanceof me))return new me(e,t,r);ZN(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=rB(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return a();for(var s=!0,o=0;o<n;o++)this._process(this.minimatch.set[o],o,!1,a);s=!1;function a(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish()}):i._finish())}}me.prototype._finish=function(){if(zf(this instanceof me),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();hn.finish(this),this.emit("end",this.found)}};me.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish()}};me.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,s=n.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);n.forEach(function(a,u){a=i._makeAbs(a),XN.realpath(a,i.realpathCache,function(c,f){c?c.syscall==="stat"?o[a]=!0:i.emit("error",c):o[f]=!0,--s===0&&(i.matches[e]=o,t())})})};me.prototype._mark=function(e){return hn.mark(this,e)};me.prototype._makeAbs=function(e){return hn.makeAbs(this,e)};me.prototype.abort=function(){this.aborted=!0,this.emit("abort")};me.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};me.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};me.prototype._process=function(e,t,r,n){if(zf(this instanceof me),zf(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var o=e.slice(i),a;s===null?a=".":((cs(s)||cs(e.map(function(f){return typeof f=="string"?f:"[*]"}).join("/")))&&(!s||!cs(s))&&(s="/"+s),a=s);var u=this._makeAbs(a);if(eB(this,a))return n();var c=o[0]===A1.GLOBSTAR;c?this._processGlobStar(s,a,u,o,t,r,n):this._processReaddir(s,a,u,o,t,r,n)}};me.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){return a._processReaddir2(e,t,r,n,i,s,c,o)})};me.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();for(var u=n[0],c=!!this.minimatch.negate,f=u._glob,l=this.dot||f.charAt(0)===".",h=[],d=0;d<o.length;d++){var g=o[d];if(g.charAt(0)!=="."||l){var S;c&&!e?S=!g.match(u):S=g.match(u),S&&h.push(g)}}var w=h.length;if(w===0)return a();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<w;d++){var g=h[d];e&&(e!=="/"?g=e+"/"+g:g=e+g),g.charAt(0)==="/"&&!this.nomount&&(g=Yf.join(this.root,g)),this._emitMatch(i,g)}return a()}n.shift();for(var d=0;d<w;d++){var g=h[d],k;e&&(e!=="/"?g=e+"/"+g:g=e+g),this._process([g].concat(n),i,s,a)}a()};me.prototype._emitMatch=function(e,t){if(!this.aborted&&!tB(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=cs(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}};me.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=Xf(r,s);i&&n.fs.lstat(e,i);function s(o,a){if(o&&o.code==="ENOENT")return t();var u=a&&a.isSymbolicLink();n.symlinks[e]=u,!u&&a&&!a.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t)}};me.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Xf("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!Vf(this.symlinks,e))return this._readdirInGlobStar(e,r);if(Vf(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,sB(this,e,r))}};function sB(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}me.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}};me.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};me.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){a._processGlobStar2(e,t,r,n,i,s,c,o)})};me.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n.slice(1),c=e?[e]:[],f=c.concat(u);this._process(f,i,!1,a);var l=this.symlinks[r],h=o.length;if(l&&s)return a();for(var d=0;d<h;d++){var g=o[d];if(!(g.charAt(0)==="."&&!this.dot)){var S=c.concat(o[d],u);this._process(S,i,!0,a);var w=c.concat(o[d],n);this._process(w,i,!0,a)}}a()};me.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};me.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&cs(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=Yf.join(this.root,e):(e=Yf.resolve(this.root,e),s&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()};me.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&Vf(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s,o=this.statCache[r];if(o!==void 0){if(o===!1)return t(null,o);var a=o.isDirectory()?"DIR":"FILE";return n&&a==="FILE"?t():t(null,a,o)}var u=this,c=Xf("stat\0"+r,f);c&&u.fs.lstat(r,c);function f(l,h){if(h&&h.isSymbolicLink())return u.fs.stat(r,function(d,g){d?u._stat2(e,r,null,h,t):u._stat2(e,r,d,g,t)});u._stat2(e,r,l,h,t)}};me.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,i();var s=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,s&&o==="FILE"?i():i(null,o,n)}});var R1=F((gH,O1)=>{var{promisify:oB}=M("util"),w1=M("path"),aB=AA(),uB=ss(),cB=Ff(),lB=Hf(),fB=oB(lB);function hB(e){let t=[];for(let r of e){let n=r.match(/^!+/);n&&(r=r.slice(n[0].length)),r=r.replace(/^\/+/,"");let i=n&&n[0].length%2===1;t.push({pattern:r,negate:i})}return t}function C1(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw pa({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return hB(t)}function _1(e,t){let{name:r}=e;return r||aB(t)}function x1(e){return(...t)=>{let r=e.cwd?e.cwd:process.cwd();return w1.join.apply(null,[r,...t])}}function dB(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function pa({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function pB(e){return new Map(Array.from(e,t=>t.reverse()))}async function b1(e={}){if(!e||!e.pkg)throw pa({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});let{workspaces:t=[]}=e.pkg,r=C1(t),n=new Map,i=new Map;if(!r.length)return n;let s=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**"]}),o=x1(e);for(let u of r){let c=await fB(dB(u.pattern),s());for(let f of c){let l,h=o(f,"package.json"),d=w1.dirname(h);try{l=await cB(h)}catch(w){if(w.code==="ENOENT")continue;throw w}let g=_1(l,d),S=i.get(g);S||(S=new Set,i.set(g,S)),u.negate?S.delete(d):S.add(d)}}let a=["must not have multiple workspaces with the same name"];for(let[u,c]of i)c.size!==0&&(c.size>1?gB(a,u,c):n.set(u,c.values().next().value));if(a.length>1)throw pa({Type:Error,message:a.join(`
|
|
87
|
+
`),code:"EDUPLICATEWORKSPACE"});return n}function gB(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}b1.virtual=function(e={}){if(!e||!e.lockfile)throw pa({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,i=C1(r);if(!i.length)return n;i.push({pattern:"**/node_modules/**",negate:!0});let s=x1(e);for(let o of Object.keys(t))if(o!==""){for(let a of i)if(uB(o,a.pattern)){let u=s(o),c=_1(t[o],u);a.negate?n.delete(u):n.set(u,c)}}return pB(n)};O1.exports=b1});var P1=F((mH,k1)=>{var F1=["notice","error","warn","info","verbose","http","silly","pause","resume"],mB=e=>(...t)=>process.emit("log",e,...t),Qf={};for(let e of F1)Qf[e]=mB(e);Qf.LEVELS=F1;k1.exports=Qf});var Zf=F((yH,T1)=>{var Jf=class{},D1=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e},yB=(e,t,r)=>{try{return e[t]=D1(r),!0}catch{return!1}};T1.exports={Umask:Jf,parse:D1,validate:yB}});var ls=F((vH,I1)=>{var vB="2.0.0",EB=Number.MAX_SAFE_INTEGER||9007199254740991,AB=16,SB=250,wB=["major","premajor","minor","preminor","patch","prepatch","prerelease"];I1.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:AB,MAX_SAFE_BUILD_LENGTH:SB,MAX_SAFE_INTEGER:EB,RELEASE_TYPES:wB,SEMVER_SPEC_VERSION:vB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var fs=F((EH,L1)=>{var CB=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};L1.exports=CB});var hi=F((fr,N1)=>{var{MAX_SAFE_COMPONENT_LENGTH:eh,MAX_SAFE_BUILD_LENGTH:_B,MAX_LENGTH:xB}=ls(),bB=fs();fr=N1.exports={};var OB=fr.re=[],RB=fr.safeRe=[],X=fr.src=[],Q=fr.t={},FB=0,th="[a-zA-Z0-9-]",kB=[["\\s",1],["\\d",xB],[th,_B]],PB=e=>{for(let[t,r]of kB)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},ue=(e,t,r)=>{let n=PB(t),i=FB++;bB(e,i,t),Q[e]=i,X[i]=t,OB[i]=new RegExp(t,r?"g":void 0),RB[i]=new RegExp(n,r?"g":void 0)};ue("NUMERICIDENTIFIER","0|[1-9]\\d*");ue("NUMERICIDENTIFIERLOOSE","\\d+");ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${th}*`);ue("MAINVERSION",`(${X[Q.NUMERICIDENTIFIER]})\\.(${X[Q.NUMERICIDENTIFIER]})\\.(${X[Q.NUMERICIDENTIFIER]})`);ue("MAINVERSIONLOOSE",`(${X[Q.NUMERICIDENTIFIERLOOSE]})\\.(${X[Q.NUMERICIDENTIFIERLOOSE]})\\.(${X[Q.NUMERICIDENTIFIERLOOSE]})`);ue("PRERELEASEIDENTIFIER",`(?:${X[Q.NUMERICIDENTIFIER]}|${X[Q.NONNUMERICIDENTIFIER]})`);ue("PRERELEASEIDENTIFIERLOOSE",`(?:${X[Q.NUMERICIDENTIFIERLOOSE]}|${X[Q.NONNUMERICIDENTIFIER]})`);ue("PRERELEASE",`(?:-(${X[Q.PRERELEASEIDENTIFIER]}(?:\\.${X[Q.PRERELEASEIDENTIFIER]})*))`);ue("PRERELEASELOOSE",`(?:-?(${X[Q.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${X[Q.PRERELEASEIDENTIFIERLOOSE]})*))`);ue("BUILDIDENTIFIER",`${th}+`);ue("BUILD",`(?:\\+(${X[Q.BUILDIDENTIFIER]}(?:\\.${X[Q.BUILDIDENTIFIER]})*))`);ue("FULLPLAIN",`v?${X[Q.MAINVERSION]}${X[Q.PRERELEASE]}?${X[Q.BUILD]}?`);ue("FULL",`^${X[Q.FULLPLAIN]}$`);ue("LOOSEPLAIN",`[v=\\s]*${X[Q.MAINVERSIONLOOSE]}${X[Q.PRERELEASELOOSE]}?${X[Q.BUILD]}?`);ue("LOOSE",`^${X[Q.LOOSEPLAIN]}$`);ue("GTLT","((?:<|>)?=?)");ue("XRANGEIDENTIFIERLOOSE",`${X[Q.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ue("XRANGEIDENTIFIER",`${X[Q.NUMERICIDENTIFIER]}|x|X|\\*`);ue("XRANGEPLAIN",`[v=\\s]*(${X[Q.XRANGEIDENTIFIER]})(?:\\.(${X[Q.XRANGEIDENTIFIER]})(?:\\.(${X[Q.XRANGEIDENTIFIER]})(?:${X[Q.PRERELEASE]})?${X[Q.BUILD]}?)?)?`);ue("XRANGEPLAINLOOSE",`[v=\\s]*(${X[Q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[Q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[Q.XRANGEIDENTIFIERLOOSE]})(?:${X[Q.PRERELEASELOOSE]})?${X[Q.BUILD]}?)?)?`);ue("XRANGE",`^${X[Q.GTLT]}\\s*${X[Q.XRANGEPLAIN]}$`);ue("XRANGELOOSE",`^${X[Q.GTLT]}\\s*${X[Q.XRANGEPLAINLOOSE]}$`);ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${eh}})(?:\\.(\\d{1,${eh}}))?(?:\\.(\\d{1,${eh}}))?`);ue("COERCE",`${X[Q.COERCEPLAIN]}(?:$|[^\\d])`);ue("COERCEFULL",X[Q.COERCEPLAIN]+`(?:${X[Q.PRERELEASE]})?(?:${X[Q.BUILD]})?(?:$|[^\\d])`);ue("COERCERTL",X[Q.COERCE],!0);ue("COERCERTLFULL",X[Q.COERCEFULL],!0);ue("LONETILDE","(?:~>?)");ue("TILDETRIM",`(\\s*)${X[Q.LONETILDE]}\\s+`,!0);fr.tildeTrimReplace="$1~";ue("TILDE",`^${X[Q.LONETILDE]}${X[Q.XRANGEPLAIN]}$`);ue("TILDELOOSE",`^${X[Q.LONETILDE]}${X[Q.XRANGEPLAINLOOSE]}$`);ue("LONECARET","(?:\\^)");ue("CARETTRIM",`(\\s*)${X[Q.LONECARET]}\\s+`,!0);fr.caretTrimReplace="$1^";ue("CARET",`^${X[Q.LONECARET]}${X[Q.XRANGEPLAIN]}$`);ue("CARETLOOSE",`^${X[Q.LONECARET]}${X[Q.XRANGEPLAINLOOSE]}$`);ue("COMPARATORLOOSE",`^${X[Q.GTLT]}\\s*(${X[Q.LOOSEPLAIN]})$|^$`);ue("COMPARATOR",`^${X[Q.GTLT]}\\s*(${X[Q.FULLPLAIN]})$|^$`);ue("COMPARATORTRIM",`(\\s*)${X[Q.GTLT]}\\s*(${X[Q.LOOSEPLAIN]}|${X[Q.XRANGEPLAIN]})`,!0);fr.comparatorTrimReplace="$1$2$3";ue("HYPHENRANGE",`^\\s*(${X[Q.XRANGEPLAIN]})\\s+-\\s+(${X[Q.XRANGEPLAIN]})\\s*$`);ue("HYPHENRANGELOOSE",`^\\s*(${X[Q.XRANGEPLAINLOOSE]})\\s+-\\s+(${X[Q.XRANGEPLAINLOOSE]})\\s*$`);ue("STAR","(<|>)?=?\\s*\\*");ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ga=F((AH,B1)=>{var DB=Object.freeze({loose:!0}),TB=Object.freeze({}),IB=e=>e?typeof e!="object"?DB:e:TB;B1.exports=IB});var rh=F((SH,j1)=>{var $1=/^[0-9]+$/,M1=(e,t)=>{let r=$1.test(e),n=$1.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},LB=(e,t)=>M1(t,e);j1.exports={compareIdentifiers:M1,rcompareIdentifiers:LB}});var Ve=F((wH,U1)=>{var ma=fs(),{MAX_LENGTH:q1,MAX_SAFE_INTEGER:ya}=ls(),{safeRe:H1,t:G1}=hi(),NB=ga(),{compareIdentifiers:di}=rh(),nh=class e{constructor(t,r){if(r=NB(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>q1)throw new TypeError(`version is longer than ${q1} characters`);ma("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?H1[G1.LOOSE]:H1[G1.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ya||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ya||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ya||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<ya)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ma("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),di(this.major,t.major)||di(this.minor,t.minor)||di(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(ma("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return di(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(ma("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return di(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),di(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};U1.exports=nh});var dn=F((CH,Y1)=>{var W1=Ve(),BB=(e,t,r=!1)=>{if(e instanceof W1)return e;try{return new W1(e,t)}catch(n){if(!r)return null;throw n}};Y1.exports=BB});var V1=F((_H,z1)=>{var $B=dn(),MB=(e,t)=>{let r=$B(e,t);return r?r.version:null};z1.exports=MB});var X1=F((xH,K1)=>{var jB=dn(),qB=(e,t)=>{let r=jB(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};K1.exports=qB});var Z1=F((bH,J1)=>{var Q1=Ve(),HB=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Q1(e instanceof Q1?e.version:e,r).inc(t,n,i).version}catch{return null}};J1.exports=HB});var rS=F((OH,tS)=>{var eS=dn(),GB=(e,t)=>{let r=eS(e,null,!0),n=eS(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};tS.exports=GB});var iS=F((RH,nS)=>{var UB=Ve(),WB=(e,t)=>new UB(e,t).major;nS.exports=WB});var oS=F((FH,sS)=>{var YB=Ve(),zB=(e,t)=>new YB(e,t).minor;sS.exports=zB});var uS=F((kH,aS)=>{var VB=Ve(),KB=(e,t)=>new VB(e,t).patch;aS.exports=KB});var lS=F((PH,cS)=>{var XB=dn(),QB=(e,t)=>{let r=XB(e,t);return r&&r.prerelease.length?r.prerelease:null};cS.exports=QB});var bt=F((DH,hS)=>{var fS=Ve(),JB=(e,t,r)=>new fS(e,r).compare(new fS(t,r));hS.exports=JB});var pS=F((TH,dS)=>{var ZB=bt(),e$=(e,t,r)=>ZB(t,e,r);dS.exports=e$});var mS=F((IH,gS)=>{var t$=bt(),r$=(e,t)=>t$(e,t,!0);gS.exports=r$});var va=F((LH,vS)=>{var yS=Ve(),n$=(e,t,r)=>{let n=new yS(e,r),i=new yS(t,r);return n.compare(i)||n.compareBuild(i)};vS.exports=n$});var AS=F((NH,ES)=>{var i$=va(),s$=(e,t)=>e.sort((r,n)=>i$(r,n,t));ES.exports=s$});var wS=F((BH,SS)=>{var o$=va(),a$=(e,t)=>e.sort((r,n)=>o$(n,r,t));SS.exports=a$});var hs=F(($H,CS)=>{var u$=bt(),c$=(e,t,r)=>u$(e,t,r)>0;CS.exports=c$});var Ea=F((MH,_S)=>{var l$=bt(),f$=(e,t,r)=>l$(e,t,r)<0;_S.exports=f$});var ih=F((jH,xS)=>{var h$=bt(),d$=(e,t,r)=>h$(e,t,r)===0;xS.exports=d$});var sh=F((qH,bS)=>{var p$=bt(),g$=(e,t,r)=>p$(e,t,r)!==0;bS.exports=g$});var Aa=F((HH,OS)=>{var m$=bt(),y$=(e,t,r)=>m$(e,t,r)>=0;OS.exports=y$});var Sa=F((GH,RS)=>{var v$=bt(),E$=(e,t,r)=>v$(e,t,r)<=0;RS.exports=E$});var oh=F((UH,FS)=>{var A$=ih(),S$=sh(),w$=hs(),C$=Aa(),_$=Ea(),x$=Sa(),b$=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return A$(e,r,n);case"!=":return S$(e,r,n);case">":return w$(e,r,n);case">=":return C$(e,r,n);case"<":return _$(e,r,n);case"<=":return x$(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};FS.exports=b$});var PS=F((WH,kS)=>{var O$=Ve(),R$=dn(),{safeRe:wa,t:Ca}=hi(),F$=(e,t)=>{if(e instanceof O$)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?wa[Ca.COERCEFULL]:wa[Ca.COERCE]);else{let u=t.includePrerelease?wa[Ca.COERCERTLFULL]:wa[Ca.COERCERTL],c;for(;(c=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),u.lastIndex=c.index+c[1].length+c[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return R$(`${n}.${i}.${s}${o}${a}`,t)};kS.exports=F$});var TS=F((YH,DS)=>{var ah=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};DS.exports=ah});var Ot=F((zH,BS)=>{var k$=/\s+/g,uh=class e{constructor(t,r){if(r=D$(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof ch)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(k$," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!LS(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&M$(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&B$)|(this.options.loose&&$$))+":"+t,i=IS.get(n);if(i)return i;let s=this.options.loose,o=s?ct[rt.HYPHENRANGELOOSE]:ct[rt.HYPHENRANGE];t=t.replace(o,K$(this.options.includePrerelease)),_e("hyphen replace",t),t=t.replace(ct[rt.COMPARATORTRIM],I$),_e("comparator trim",t),t=t.replace(ct[rt.TILDETRIM],L$),_e("tilde trim",t),t=t.replace(ct[rt.CARETTRIM],N$),_e("caret trim",t);let a=t.split(" ").map(l=>j$(l,this.options)).join(" ").split(/\s+/).map(l=>V$(l,this.options));s&&(a=a.filter(l=>(_e("loose invalid filter",l,this.options),!!l.match(ct[rt.COMPARATORLOOSE])))),_e("range list",a);let u=new Map,c=a.map(l=>new ch(l,this.options));for(let l of c){if(LS(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return IS.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>NS(n,r)&&t.set.some(i=>NS(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new T$(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(X$(this.set[r],t,this.options))return!0;return!1}};BS.exports=uh;var P$=TS(),IS=new P$,D$=ga(),ch=ds(),_e=fs(),T$=Ve(),{safeRe:ct,t:rt,comparatorTrimReplace:I$,tildeTrimReplace:L$,caretTrimReplace:N$}=hi(),{FLAG_INCLUDE_PRERELEASE:B$,FLAG_LOOSE:$$}=ls(),LS=e=>e.value==="<0.0.0-0",M$=e=>e.value==="",NS=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},j$=(e,t)=>(_e("comp",e,t),e=G$(e,t),_e("caret",e),e=q$(e,t),_e("tildes",e),e=W$(e,t),_e("xrange",e),e=z$(e,t),_e("stars",e),e),nt=e=>!e||e.toLowerCase()==="x"||e==="*",q$=(e,t)=>e.trim().split(/\s+/).map(r=>H$(r,t)).join(" "),H$=(e,t)=>{let r=t.loose?ct[rt.TILDELOOSE]:ct[rt.TILDE];return e.replace(r,(n,i,s,o,a)=>{_e("tilde",e,n,i,s,o,a);let u;return nt(i)?u="":nt(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:nt(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(_e("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,_e("tilde return",u),u})},G$=(e,t)=>e.trim().split(/\s+/).map(r=>U$(r,t)).join(" "),U$=(e,t)=>{_e("caret",e,t);let r=t.loose?ct[rt.CARETLOOSE]:ct[rt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{_e("caret",e,i,s,o,a,u);let c;return nt(s)?c="":nt(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:nt(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(_e("replaceCaret pr",u),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(_e("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),_e("caret return",c),c})},W$=(e,t)=>(_e("replaceXRanges",e,t),e.split(/\s+/).map(r=>Y$(r,t)).join(" ")),Y$=(e,t)=>{e=e.trim();let r=t.loose?ct[rt.XRANGELOOSE]:ct[rt.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{_e("xRange",e,n,i,s,o,a,u);let c=nt(s),f=c||nt(o),l=f||nt(a),h=l;return i==="="&&h&&(i=""),u=t.includePrerelease?"-0":"",c?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):f?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),_e("xRange return",n),n})},z$=(e,t)=>(_e("replaceStars",e,t),e.trim().replace(ct[rt.STAR],"")),V$=(e,t)=>(_e("replaceGTE0",e,t),e.trim().replace(ct[t.includePrerelease?rt.GTE0PRE:rt.GTE0],"")),K$=e=>(t,r,n,i,s,o,a,u,c,f,l,h)=>(nt(n)?r="":nt(i)?r=`>=${n}.0.0${e?"-0":""}`:nt(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,nt(c)?u="":nt(f)?u=`<${+c+1}.0.0-0`:nt(l)?u=`<${c}.${+f+1}.0-0`:h?u=`<=${c}.${f}.${l}-${h}`:e?u=`<${c}.${f}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),X$=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(_e(e[n].semver),e[n].semver!==ch.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var ds=F((VH,GS)=>{var ps=Symbol("SemVer ANY"),hh=class e{static get ANY(){return ps}constructor(t,r){if(r=$S(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),fh("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===ps?this.value="":this.value=this.operator+this.semver.version,fh("comp",this)}parse(t){let r=this.options.loose?MS[jS.COMPARATORLOOSE]:MS[jS.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new qS(n[2],this.options.loose):this.semver=ps}toString(){return this.value}test(t){if(fh("Comparator.test",t,this.options.loose),this.semver===ps||t===ps)return!0;if(typeof t=="string")try{t=new qS(t,this.options)}catch{return!1}return lh(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new HS(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new HS(this.value,r).test(t.semver):(r=$S(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||lh(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||lh(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};GS.exports=hh;var $S=ga(),{safeRe:MS,t:jS}=hi(),lh=oh(),fh=fs(),qS=Ve(),HS=Ot()});var gs=F((KH,US)=>{var Q$=Ot(),J$=(e,t,r)=>{try{t=new Q$(t,r)}catch{return!1}return t.test(e)};US.exports=J$});var YS=F((XH,WS)=>{var Z$=Ot(),eM=(e,t)=>new Z$(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));WS.exports=eM});var VS=F((QH,zS)=>{var tM=Ve(),rM=Ot(),nM=(e,t,r)=>{let n=null,i=null,s=null;try{s=new rM(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new tM(n,r))}),n};zS.exports=nM});var XS=F((JH,KS)=>{var iM=Ve(),sM=Ot(),oM=(e,t,r)=>{let n=null,i=null,s=null;try{s=new sM(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new iM(n,r))}),n};KS.exports=oM});var ZS=F((ZH,JS)=>{var dh=Ve(),aM=Ot(),QS=hs(),uM=(e,t)=>{e=new aM(e,t);let r=new dh("0.0.0");if(e.test(r)||(r=new dh("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new dh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||QS(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||QS(r,s))&&(r=s)}return r&&e.test(r)?r:null};JS.exports=uM});var tw=F((e8,ew)=>{var cM=Ot(),lM=(e,t)=>{try{return new cM(e,t).range||"*"}catch{return null}};ew.exports=lM});var _a=F((t8,sw)=>{var fM=Ve(),iw=ds(),{ANY:hM}=iw,dM=Ot(),pM=gs(),rw=hs(),nw=Ea(),gM=Sa(),mM=Aa(),yM=(e,t,r,n)=>{e=new fM(e,n),t=new dM(t,n);let i,s,o,a,u;switch(r){case">":i=rw,s=gM,o=nw,a=">",u=">=";break;case"<":i=nw,s=mM,o=rw,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pM(e,t,n))return!1;for(let c=0;c<t.set.length;++c){let f=t.set[c],l=null,h=null;if(f.forEach(d=>{d.semver===hM&&(d=new iw(">=0.0.0")),l=l||d,h=h||d,i(d.semver,l.semver,n)?l=d:o(d.semver,h.semver,n)&&(h=d)}),l.operator===a||l.operator===u||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===u&&o(e,h.semver))return!1}return!0};sw.exports=yM});var aw=F((r8,ow)=>{var vM=_a(),EM=(e,t,r)=>vM(e,t,">",r);ow.exports=EM});var cw=F((n8,uw)=>{var AM=_a(),SM=(e,t,r)=>AM(e,t,"<",r);uw.exports=SM});var hw=F((i8,fw)=>{var lw=Ot(),wM=(e,t,r)=>(e=new lw(e,r),t=new lw(t,r),e.intersects(t,r));fw.exports=wM});var pw=F((s8,dw)=>{var CM=gs(),_M=bt();dw.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>_M(f,l,r));for(let f of o)CM(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let u=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return u.length<c.length?u:t}});var Aw=F((o8,Ew)=>{var gw=Ot(),gh=ds(),{ANY:ph}=gh,ms=gs(),mh=bt(),xM=(e,t,r={})=>{if(e===t)return!0;e=new gw(e,r),t=new gw(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=OM(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},bM=[new gh(">=0.0.0-0")],mw=[new gh(">=0.0.0")],OM=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ph){if(t.length===1&&t[0].semver===ph)return!0;r.includePrerelease?e=bM:e=mw}if(t.length===1&&t[0].semver===ph){if(r.includePrerelease)return!0;t=mw}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=yw(i,d,r):d.operator==="<"||d.operator==="<="?s=vw(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=mh(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!ms(d,String(i),r)||s&&!ms(d,String(s),r))return null;for(let g of t)if(!ms(d,String(g),r))return!1;return!0}let a,u,c,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let d of t){if(f=f||d.operator===">"||d.operator===">=",c=c||d.operator==="<"||d.operator==="<=",i){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(a=yw(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!ms(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=vw(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!ms(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&c&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},yw=(e,t,r)=>{if(!e)return t;let n=mh(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},vw=(e,t,r)=>{if(!e)return t;let n=mh(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Ew.exports=xM});var _w=F((a8,Cw)=>{var yh=hi(),Sw=ls(),RM=Ve(),ww=rh(),FM=dn(),kM=V1(),PM=X1(),DM=Z1(),TM=rS(),IM=iS(),LM=oS(),NM=uS(),BM=lS(),$M=bt(),MM=pS(),jM=mS(),qM=va(),HM=AS(),GM=wS(),UM=hs(),WM=Ea(),YM=ih(),zM=sh(),VM=Aa(),KM=Sa(),XM=oh(),QM=PS(),JM=ds(),ZM=Ot(),e3=gs(),t3=YS(),r3=VS(),n3=XS(),i3=ZS(),s3=tw(),o3=_a(),a3=aw(),u3=cw(),c3=hw(),l3=pw(),f3=Aw();Cw.exports={parse:FM,valid:kM,clean:PM,inc:DM,diff:TM,major:IM,minor:LM,patch:NM,prerelease:BM,compare:$M,rcompare:MM,compareLoose:jM,compareBuild:qM,sort:HM,rsort:GM,gt:UM,lt:WM,eq:YM,neq:zM,gte:VM,lte:KM,cmp:XM,coerce:QM,Comparator:JM,Range:ZM,satisfies:e3,toComparators:t3,maxSatisfying:r3,minSatisfying:n3,minVersion:i3,validRange:s3,outside:o3,gtr:a3,ltr:u3,intersects:c3,simplifyRange:l3,subset:f3,SemVer:RM,re:yh.re,src:yh.src,tokens:yh.t,SEMVER_SPEC_VERSION:Sw.SEMVER_SPEC_VERSION,RELEASE_TYPES:Sw.RELEASE_TYPES,compareIdentifiers:ww.compareIdentifiers,rcompareIdentifiers:ww.rcompareIdentifiers}});var xa=F((u8,vh)=>{var Hr=uf(),{Umask:h3,validate:d3}=Zf(),xw=_w(),p3=(e,t,r)=>{let n=xw.valid(r);if(!n)return!1;e[t]=n},g3=Hr.typeDefs.path.validate,m3=(e,t,r)=>typeof r!="string"?!1:g3(e,t,r);vh.exports={...Hr.typeDefs,semver:{type:xw,validate:p3,description:"full valid SemVer string"},Umask:{type:h3,validate:d3,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Hr.typeDefs.url,description:'full url with "http://"'},path:{...Hr.typeDefs.path,validate:m3,description:"valid filesystem path"},Number:{...Hr.typeDefs.Number,description:"numeric value"},Boolean:{...Hr.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Hr.typeDefs.Date,description:"valid Date string"}};Hr.typeDefs=vh.exports});var Rw=F((c8,Ow)=>{var{URL:bw}=M("url");Ow.exports=e=>{let t=new bw(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new bw(".",r);return`//${n.host}${n.pathname}`}});var Eh=F((l8,Fw)=>{var y3=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Fw.exports=(e,t)=>e.replace(y3,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var Dw=F((f8,Pw)=>{var ys=xa(),v3=Eh(),{resolve:kw}=M("path"),{parse:E3}=Zf(),Ah=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,u=new Set([].concat(s[t])),c=u.has(ys.path.type),f=u.has(ys.Boolean.type),l=c||u.has(ys.String.type),h=u.has(ys.Umask.type),d=u.has(ys.Number.type),g=!n&&u.has(Array);if(Array.isArray(e))return g?e.map(S=>Ah(S,t,r,!0)):e;if(e=e.trim(),g)return Ah(e.split(`
|
|
88
|
+
|
|
89
|
+
`),t,r);if(f&&!l&&e==="")return!0;if(!l&&!c&&!d)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=v3(e,a),c&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=kw(o,e.slice(2)):e=kw(e)),h)try{return E3(e)}catch{return e}return d&&!isNaN(e)&&(e=+e),e};Pw.exports=Ah});var Lw=F((h8,Iw)=>{var A3=xa(),Tw=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>Tw(t));for(let{type:t,description:r}of Object.values(A3))if(t===e)return r||t;return e};Iw.exports=e=>[].concat(Tw(e)).filter(t=>t!==void 0)});var Mw=F((d8,$w)=>{var S3=(e,t)=>!/^[/@_]/.test(e)&&typeof Sh(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Sh=e=>Array.isArray(e)?e.map(t=>Sh(t)).join(`
|
|
90
|
+
|
|
91
|
+
`):e==null||e===!1?"":typeof e=="object"?null:String(e),Nw=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:w3(e,t),w3=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Bw=(e,t,r)=>{let n=Sh(r),i=S3(t,n);i&&n!==null&&(e[i]=n)},C3=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let u in i){let{deprecated:c,envExport:f=!0}=n[u]||{};c||f===!1||(Nw(r[u],i[u])?Nw(s[u],i[u])||Bw(t,u,i[u]):a.has(u)&&!o.has(u)||Bw(t,u,i[u]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),M.main&&M.main.filename&&(t.npm_execpath=M.main.filename),t.NODE=t.npm_node_execpath=e.execPath};$w.exports=C3});var Vw=F((g8,zw)=>{var _3=mE(),jw=SE(),pi=uf(),x3=yA(),b3=R1(),O3=Ff(),hr=P1(),qw=process.getuid&&process.getuid(),R3=process.getgid&&process.getgid(),{resolve:pn,dirname:ba,join:F3}=M("path"),{homedir:k3}=M("os"),{promisify:Ei}=M("util"),Ai=M("fs"),P3=Ei(Ai.readFile),D3=Ei(Ai.writeFile),T3=Ei(Ai.chmod),I3=Ei(Ai.chown),L3=Ei(Ai.unlink),Oa=Ei(Ai.stat),Ra=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Hw=(e,t,r)=>{Object.defineProperty(e,t,{get:r,set(n){Object.defineProperty(e,t,{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})},vs=xa(),gn=Rw(),N3=Eh(),B3=Dw(),$3=Lw(),M3=Mw(),Yw=new Set(["global","user","project"]),Es=new Set(["default","builtin",...Yw,"env","cli"]),wh=Symbol("loaded"),lt=Symbol("get"),Gw=Symbol("find"),gi=Symbol("loadObject"),As=Symbol("loadFile"),Ch=Symbol("checkDeprecated"),Uw=Symbol("flatten"),mn=Symbol("flatOptions"),_h=class{static get typeDefs(){return vs}constructor({definitions:t,shorthands:r,flatten:n,npmPath:i,env:s=process.env,argv:o=process.argv,platform:a=process.platform,execPath:u=process.execPath,cwd:c=process.cwd()}){this.definitions=t;let f={},l={};this.deprecated={};for(let[g,S]of Object.entries(t))l[g]=S.default,f[g]=S.type,S.deprecated&&(this.deprecated[g]=S.deprecated.trim().replace(/\n +/,`
|
|
92
|
+
`));this[mn]=null,this[Uw]=n,this.types=f,this.shorthands=r,this.defaults=l,this.npmPath=i,this.argv=o,this.env=s,this.execPath=u,this.platform=a,this.cwd=c,this.globalPrefix=null,this.localPrefix=null,this.home=null;let h=[...Es];this.data=new Map;let d=null;for(let g of h)this.data.set(g,d=new xh(d));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:g}of this.data.values())this.list.unshift(g);Object.freeze(this.list),this[wh]=!1}get loaded(){return this[wh]}get prefix(){return this[lt]("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");return this[Gw](t)}[Gw](t){let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(Ra(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this[lt](t,r)}[lt](t,r=null){if(r!==null&&!Es.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||Ra(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Es.has(n))throw new Error("invalid config location param: "+n);this[Ch](t);let{data:i}=this.data.get(n);i[t]=r,this.data.get(n)[vi]=null,this[mn]=null}get flat(){if(this[mn])return this[mn];process.emit("time","config:load:flatten"),this[mn]={};for(let{data:t}of this.data.values())this[Uw](t,this[mn]);return process.emit("timeEnd","config:load:flatten"),this[mn]}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Es.has(r))throw new Error("invalid config location param: "+r);delete this.data.get(r).data[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");process.emit("time","config:load"),process.emit("time","config:load:defaults"),this.loadDefaults(),process.emit("timeEnd","config:load:defaults"),process.emit("time","config:load:builtin"),await this.loadBuiltinConfig(),process.emit("timeEnd","config:load:builtin"),process.emit("time","config:load:cli"),this.loadCLI(),process.emit("timeEnd","config:load:cli"),process.emit("time","config:load:env"),this.loadEnv(),process.emit("timeEnd","config:load:env"),process.emit("time","config:load:project"),await this.loadProjectConfig(),process.emit("timeEnd","config:load:project"),process.emit("time","config:load:user"),await this.loadUserConfig(),process.emit("timeEnd","config:load:user"),process.emit("time","config:load:global"),await this.loadGlobalConfig(),process.emit("timeEnd","config:load:global"),process.emit("time","config:load:validate"),this.validate(),process.emit("timeEnd","config:load:validate"),this[wh]=!0,process.emit("time","config:load:credentials");let t=this.get("registry"),r=this.getCredentialsByURI(t);try{this.setCredentialsByURI(t,r)}catch{}process.emit("timeEnd","config:load:credentials"),this.globalPrefix=this.get("prefix"),process.emit("time","config:load:setEnvs"),this.setEnvs(),process.emit("timeEnd","config:load:setEnvs"),process.emit("timeEnd","config:load")}loadDefaults(){this.loadGlobalPrefix(),this.loadHome(),this[gi]({...this.defaults,prefix:this.globalPrefix},"default","default values");let{data:t}=this.data.get("default");Hw(t,"metrics-registry",()=>this[lt]("registry")),Hw(t,"globalconfig",()=>pn(this[lt]("prefix"),"etc/npmrc"))}loadHome(){if(this.env.HOME)return this.home=this.env.HOME;this.home=k3()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=ba(this.execPath):(this.globalPrefix=ba(ba(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=F3(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this[gi](t,"env","environment")}loadCLI(){pi.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=pi(this.types,this.shorthands,this.argv);pi.invalidHandler=null,this.parsedArgv=t.argv,delete t.argv,this[gi](t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[vi]=!0,pi.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),pi.clean(r.data,this.types,this.typeDefs),pi.invalidHandler=null,r[vi]}else{let r=!0;for(let[n]of this.data.entries()){if(n==="default"||n==="builtin"||n==="cli")continue;let i=this.validate(n);r=r&&i}return r}}isDefault(t){let[r,...n]=[...Es],i=this.data.get(r).data;return Ra(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!Ra(o,t)})}invalidHandler(t,r,n,i,s){hr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[vi]=!1,Array.isArray(n)&&(n.includes(vs.url.type)?n=vs.url.type:n.includes(vs.path.type)&&(n=vs.path.type));let o=$3(n),a=o.indexOf(Array)!==-1,u=o.filter(h=>h!==void 0&&h!==Array),f="Must be"+(u.length===1&&a?" one or more":u.length>1&&a?" one or more of:":u.length>1?" one of:":""),l=u.length===1?u[0]:u.filter(h=>h!==Array).map(h=>typeof h=="string"?h:JSON.stringify(h)).join(", ");hr.warn("invalid config",f,l)}[gi](t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&hr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let u=N3(o,this.env),c=this.parseField(a,u);r!=="default"&&this[Ch](u,r,t,[o,a]),s.data[u]=c}}}[Ch](t,r,n,i){this.deprecated[t]&&hr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return B3(t,r,this,n)}async[As](t,r){process.emit("time","config:load:file:"+t),await P3(t,"utf8").then(n=>this[gi](jw.parse(n),r,t),n=>this[gi](null,r,t,n)),process.emit("timeEnd","config:load:file:"+t)}loadBuiltinConfig(){return this[As](pn(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this[lt]("global")===!0||this[lt]("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=pn(this.localPrefix,".npmrc");if(t!==this[lt]("userconfig"))return this[As](t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this[lt]("prefix","cli");if(t){this.localPrefix=t;return}let r=this[lt]("workspaces","cli"),n=this[lt]("global")||this[lt]("location")==="global";for(let i of _3(this.cwd)){let s=await Oa(pn(i,"node_modules")).then(a=>a.isDirectory()).catch(()=>!1),o=await Oa(pn(i,"package.json")).then(a=>a.isFile()).catch(()=>!1);if(!this.localPrefix&&(s||o)){if(this.localPrefix=i,r===!1||n)return;continue}if(this.localPrefix&&o){let a=await O3(pn(i,"package.json")).catch(()=>!1);if(!a)continue;let u=await b3({cwd:i,pkg:a});for(let c of u.values())if(c===this.localPrefix){await Oa(pn(this.localPrefix,".npmrc")).then(h=>h.isFile()).catch(()=>!1)&&hr.warn(`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,hr.info(`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this[As](this[lt]("userconfig"),"user")}loadGlobalConfig(){return this[As](this[lt]("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!Yw.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[mi]={...r.data},r[yi]=null,t==="user"){let o=this.get("registry"),a=this.getCredentialsByURI(o);try{this.setCredentialsByURI(o,a)}catch{}}let n=jw.stringify(r.data).trim()+`
|
|
93
|
+
`;if(!n.trim()){await L3(r.source).catch(o=>{});return}let i=ba(r.source);if(await x3(i),await D3(r.source,n,"utf8"),qw===0){let o=await Oa(i).catch(()=>null);o&&(o.uid!==qw||o.gid!==R3)&&await I3(r.source,o.uid,o.gid).catch(()=>{})}let s=t==="user"?384:438;await T3(r.source,s)}clearCredentialsByURI(t){let r=gn(t);gn(this.get("registry"))===r&&(this.delete("-authtoken","user"),this.delete("_authToken","user"),this.delete("_authtoken","user"),this.delete("_auth","user"),this.delete("_password","user"),this.delete("username","user")),this.delete(`${r}:_authToken`,"user"),this.delete(`${r}:_auth`,"user"),this.delete(`${r}:_password`,"user"),this.delete(`${r}:username`,"user"),this.delete(`${r}:email`,"user"),this.delete(`${r}:certfile`,"user"),this.delete(`${r}:keyfile`,"user")}setCredentialsByURI(t,{token:r,username:n,password:i,email:s,certfile:o,keyfile:a}){let u=gn(t),c=gn(this.get("registry"));if(c===u&&(this.delete("_password","user"),this.delete("username","user"),this.delete("_auth","user"),this.delete("_authtoken","user"),this.delete("-authtoken","user"),this.delete("_authToken","user")),u===c&&(s=s||this.get("email","user")||this.get(`${u}:email`,"user"),s&&this.set("email",s,"user")),this.delete(`${u}:always-auth`,"user"),this.delete(`${u}:email`,"user"),o&&a&&(this.set(`${u}:certfile`,o,"user"),this.set(`${u}:keyfile`,a,"user")),r)this.set(`${u}:_authToken`,r,"user"),this.delete(`${u}:_password`,"user"),this.delete(`${u}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${u}:_authToken`,"user"),this.set(`${u}:username`,n,"user");let f=Buffer.from(i,"utf8").toString("base64");this.set(`${u}:_password`,f,"user")}else if(!o||!a)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=gn(t),n={},i=["`_auth`, `_authToken`, `username` and `_password` must be scoped to a registry.","see `npm help npmrc` for more information."].join(" "),s=this.get(`${r}:email`)||this.get("email");s&&(n.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(n.certfile=o,n.keyfile=a);let u=gn(this.get("registry"))&&this.get("_authToken"),c=this.get(`${r}:_authToken`)||u;if(c)return c===u&&hr.warn("config",i),n.token=c,n;let f=this.get(`${r}:username`),l=this.get(`${r}:_password`);if(f&&l){n.username=f,n.password=Buffer.from(l,"base64").toString("utf8");let N=`${n.username}:${n.password}`;return n.auth=Buffer.from(N,"utf8").toString("base64"),n}let h=this.get(`${r}:_auth`);if(h){let D=Buffer.from(h,"base64").toString("utf8").split(":");return n.username=D.shift(),n.password=D.join(":"),n.auth=h,n}let d=gn(this.get("registry"));if(r!==d)return n;let g=this.get("username"),S=this.get("_password");if(g&&S){hr.warn("config",i),n.username=g,n.password=Buffer.from(S,"base64").toString("utf8");let N=`${n.username}:${n.password}`;return n.auth=Buffer.from(N,"utf8").toString("base64"),n}let w=this.get("_auth");if(!w)return n;hr.warn("config",i);let _=Buffer.from(w,"base64").toString("utf8").split(":");return n.username=_.shift(),n.password=_.join(":"),n.auth=w,n}setEnvs(){M3(this)}},Ww=Symbol("data"),mi=Symbol("raw"),yi=Symbol("loadError"),Fa=Symbol("source"),vi=Symbol("valid"),xh=class{constructor(t){this[Ww]=Object.create(t&&t.data),this[Fa]=null,this[yi]=null,this[mi]=null,this[vi]=!0}get data(){return this[Ww]}get valid(){return this[vi]}set source(t){if(this[Fa])throw new Error("cannot set ConfigData source more than once");this[Fa]=t}get source(){return this[Fa]}set loadError(t){if(this[yi]||this[mi])throw new Error("cannot set ConfigData loadError after load");this[yi]=t}get loadError(){return this[yi]}set raw(t){if(this[mi]||this[yi])throw new Error("cannot set ConfigData raw after load");this[mi]=t}get raw(){return this[mi]}};zw.exports=_h});var uv=kh(nv(),1);import{join as ov}from"node:path";import bT from"node:fs/promises";import av from"node:path";import{homedir as OT}from"node:os";var CT=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},ei=(e,t="")=>{try{let{organization:r}=CT(e);return r}catch{return t}};function Tr(e){return Buffer.from(e||"").toString("base64")}var Xo=e=>Buffer.from(e,"base64").toString("utf8");import _T from"https";var xT={port:443,method:"GET"},iv=async e=>new Promise((t,r)=>{let n={...xT,...e};_T.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&n?.headers?.Accept==="application/json"&&(a=JSON.parse(o.toString().trim())),u?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",c=>{r(new Error(c))})}).end()});var sv=async({password:e,organization:t})=>{let r=`Basic ${Tr(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await iv(n)}catch(i){if(i.statusCode===404)return;throw i}};var cv="me",lv="me@example.com",ti=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&av.basename(n)===this.workspaceFileName)i=av.resolve(n);else{let o=(0,uv.getWorkspaceRoot)(process.cwd())||"";i=ov(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||OT()||"";this.userFilePath=ov(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await bT.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await sv({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:ei(i)},isValid:!1,fileProvider:this})}return t}};function bv(e){return typeof e>"u"||e===null}function RT(e){return typeof e=="object"&&e!==null}function FT(e){return Array.isArray(e)?e:bv(e)?[]:[e]}function kT(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function PT(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function DT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var TT=bv,IT=RT,LT=FT,NT=PT,BT=DT,$T=kT,Be={isNothing:TT,isObject:IT,toArray:LT,repeat:NT,isNegativeZero:BT,extend:$T};function Ov(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+=`
|
|
94
|
+
|
|
95
|
+
`+e.mark.snippet),n+" "+r):n}function Ji(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ov(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ji.prototype=Object.create(Error.prototype);Ji.prototype.constructor=Ji;Ji.prototype.toString=function(t){return this.name+": "+Ov(this,t)};var tt=Ji;function Gl(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Ul(e,t){return Be.repeat(" ",t-e.length)+e}function MT(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=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Gl(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=Be.repeat(" ",t.indent)+Ul((e.line-u+1).toString(),f)+" | "+c.str+`
|
|
96
|
+
`+a;for(c=Gl(e.buffer,n[o],i[o],e.position,l),a+=Be.repeat(" ",t.indent)+Ul((e.line+1).toString(),f)+" | "+c.str+`
|
|
97
|
+
`,a+=Be.repeat("-",t.indent+f+3+c.pos)+`^
|
|
98
|
+
`,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Gl(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=Be.repeat(" ",t.indent)+Ul((e.line+u+1).toString(),f)+" | "+c.str+`
|
|
99
|
+
`;return a.replace(/\n$/,"")}var jT=MT,qT=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],HT=["scalar","sequence","mapping"];function GT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function UT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(qT.indexOf(r)===-1)throw new tt('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=GT(t.styleAliases||null),HT.indexOf(this.kind)===-1)throw new tt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var He=UT;function fv(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function WT(){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 Yl(e){return this.extend(e)}Yl.prototype.extend=function(t){var r=[],n=[];if(t instanceof He)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 tt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof He))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new tt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new tt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof He))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Yl.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=fv(i,"implicit"),i.compiledExplicit=fv(i,"explicit"),i.compiledTypeMap=WT(i.compiledImplicit,i.compiledExplicit),i};var Rv=Yl,Fv=new He("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),kv=new He("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Pv=new He("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Dv=new Rv({explicit:[Fv,kv,Pv]});function YT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function zT(){return null}function VT(e){return e===null}var Tv=new He("tag:yaml.org,2002:null",{kind:"scalar",resolve:YT,construct:zT,predicate:VT,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function KT(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 XT(e){return e==="true"||e==="True"||e==="TRUE"}function QT(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Iv=new He("tag:yaml.org,2002:bool",{kind:"scalar",resolve:KT,construct:XT,predicate:QT,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 JT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ZT(e){return 48<=e&&e<=55}function eI(e){return 48<=e&&e<=57}function tI(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(!JT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!ZT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!eI(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function rI(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 nI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Be.isNegativeZero(e)}var Lv=new He("tag:yaml.org,2002:int",{kind:"scalar",resolve:tI,construct:rI,predicate:nI,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"]}}),iI=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function sI(e){return!(e===null||!iI.test(e)||e[e.length-1]==="_")}function oI(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 aI=/^[-+]?[0-9]+e/;function uI(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(Be.isNegativeZero(e))return"-0.0";return r=e.toString(10),aI.test(r)?r.replace("e",".e"):r}function cI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Be.isNegativeZero(e))}var Nv=new He("tag:yaml.org,2002:float",{kind:"scalar",resolve:sI,construct:oI,predicate:cI,represent:uI,defaultStyle:"lowercase"}),Bv=Dv.extend({implicit:[Tv,Iv,Lv,Nv]}),$v=Bv,Mv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jv=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 lI(e){return e===null?!1:Mv.exec(e)!==null||jv.exec(e)!==null}function fI(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=Mv.exec(e),t===null&&(t=jv.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(s=+t[4],o=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function hI(e){return e.toISOString()}var qv=new He("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lI,construct:fI,instanceOf:Date,represent:hI});function dI(e){return e==="<<"||e===null}var Hv=new He("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dI}),Ql=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
100
|
+
\r`;function pI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Ql;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function gI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Ql,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function mI(e){var t="",r=0,n,i,s=e.length,o=Ql;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function yI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Gv=new He("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pI,construct:gI,predicate:yI,represent:mI}),vI=Object.prototype.hasOwnProperty,EI=Object.prototype.toString;function AI(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,EI.call(i)!=="[object Object]")return!1;for(s in i)if(vI.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function SI(e){return e!==null?e:[]}var Uv=new He("tag:yaml.org,2002:omap",{kind:"sequence",resolve:AI,construct:SI}),wI=Object.prototype.toString;function CI(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],wI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function _I(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var Wv=new He("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:CI,construct:_I}),xI=Object.prototype.hasOwnProperty;function bI(e){if(e===null)return!0;var t,r=e;for(t in r)if(xI.call(r,t)&&r[t]!==null)return!1;return!0}function OI(e){return e!==null?e:{}}var Yv=new He("tag:yaml.org,2002:set",{kind:"mapping",resolve:bI,construct:OI}),Jl=$v.extend({implicit:[qv,Hv],explicit:[Gv,Uv,Wv,Yv]}),Lr=Object.prototype.hasOwnProperty,Qo=1,zv=2,Vv=3,Jo=4,Wl=1,RI=2,hv=3,FI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kI=/[\x85\u2028\u2029]/,PI=/[,\[\]\{\}]/,Kv=/^(?:!|!!|![a-z\-]+!)$/i,Xv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function dv(e){return Object.prototype.toString.call(e)}function zt(e){return e===10||e===13}function on(e){return e===9||e===32}function ut(e){return e===9||e===32||e===10||e===13}function ni(e){return e===44||e===91||e===93||e===123||e===125}function DI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function TI(e){return e===120?2:e===117?4:e===85?8:0}function II(e){return 48<=e&&e<=57?e-48:-1}function pv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
101
|
+
`: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 LI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Qv=new Array(256),Jv=new Array(256);for(sn=0;sn<256;sn++)Qv[sn]=pv(sn)?1:0,Jv[sn]=pv(sn);var sn;function NI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Jl,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 Zv(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=jT(r),new tt(t,r)}function ee(e,t){throw Zv(e,t)}function Zo(e,t){e.onWarning&&e.onWarning.call(null,Zv(e,t))}var gv={YAML:function(t,r,n){var i,s,o;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Zo(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Kv.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Lr.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),Xv.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ee(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Ir(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ee(e,"expected valid JSON character");else FI.test(a)&&ee(e,"the stream contains non-printable characters");e.result+=a}}function mv(e,t,r,n){var i,s,o,a;for(Be.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Lr.call(t,s)||(t[s]=r[s],n[s]=!0)}function ii(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&dv(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&dv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)mv(e,t,s[c],r);else mv(e,t,s,r);else!e.json&&!Lr.call(r,i)&&Lr.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,ee(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Zl(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++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Le(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;on(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(zt(i))for(Zl(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&&Zo(e,"deficient indentation"),n}function ra(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||ut(r)))}function ef(e,t){t===1?e.result+=" ":t>1&&(e.result+=Be.repeat(`
|
|
102
|
+
`,t-1))}function BI(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),ut(d)||ni(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ut(i)||r&&ni(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ut(i)||r&&ni(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ut(n))break}else{if(e.position===e.lineStart&&ra(e)||r&&ni(d))break;if(zt(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,Le(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Ir(e,s,o,!1),ef(e,e.line-u),s=o=e.position,a=!1),on(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ir(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function $I(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(Ir(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 zt(r)?(Ir(e,n,i,!0),ef(e,Le(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ra(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}function MI(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Ir(e,r,e.position,!0),e.position++,!0;if(a===92){if(Ir(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),zt(a))Le(e,!1,t);else if(a<256&&Qv[a])e.result+=Jv[a],e.position++;else if((o=TI(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=DI(a))>=0?s=(s<<4)+o:ee(e,"expected hexadecimal character");e.result+=LI(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else zt(a)?(Ir(e,r,n,!0),ef(e,Le(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ra(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}function jI(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,g=Object.create(null),S,w,k,_;if(_=e.input.charCodeAt(e.position),_===91)f=93,d=!1,a=[];else if(_===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(Le(e,!0,t),_=e.input.charCodeAt(e.position),_===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?_===44&&ee(e,"expected the node content, but found ','"):ee(e,"missed comma between flow collection entries"),w=S=k=null,l=h=!1,_===63&&(c=e.input.charCodeAt(e.position+1),ut(c)&&(l=h=!0,e.position++,Le(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,si(e,t,Qo,!1,!0),w=e.tag,S=e.result,Le(e,!0,t),_=e.input.charCodeAt(e.position),(h||e.line===n)&&_===58&&(l=!0,_=e.input.charCodeAt(++e.position),Le(e,!0,t),si(e,t,Qo,!1,!0),k=e.result),d?ii(e,a,g,w,S,k,n,i,s):l?a.push(ii(e,null,g,w,S,k,n,i,s)):a.push(S),Le(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}function qI(e,t){var r,n,i=Wl,s=!1,o=!1,a=t,u=0,c=!1,f,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)Wl===i?i=l===43?hv:RI:ee(e,"repeat of a chomping mode identifier");else if((f=II(l))>=0)f===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ee(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(on(l)){do l=e.input.charCodeAt(++e.position);while(on(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!zt(l)&&l!==0)}for(;l!==0;){for(Zl(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),zt(l)){u++;continue}if(e.lineIndent<a){i===hv?e.result+=Be.repeat(`
|
|
103
|
+
`,s?1+u:u):i===Wl&&s&&(e.result+=`
|
|
104
|
+
`);break}for(n?on(l)?(c=!0,e.result+=Be.repeat(`
|
|
105
|
+
`,s?1+u:u)):c?(c=!1,e.result+=Be.repeat(`
|
|
106
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=Be.repeat(`
|
|
107
|
+
`,u):e.result+=Be.repeat(`
|
|
108
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!zt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Ir(e,r,e.position,!1)}return!0}function yv(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!ut(o))));){if(a=!0,e.position++,Le(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,si(e,t,Vv,!1,!0),s.push(e.result),Le(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function HI(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,g=null,S=null,w=!1,k=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(e.position);_!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(_===63||_===58)&&ut(n))_===63?(w&&(ii(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!0,i=!0):w?(w=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=n;else{if(o=e.line,a=e.lineStart,u=e.position,!si(e,r,zv,!1,!0))break;if(e.line===s){for(_=e.input.charCodeAt(e.position);on(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),ut(_)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(ii(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!1,i=!1,d=e.tag,g=e.result;else if(k)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(k)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(w&&(o=e.line,a=e.lineStart,u=e.position),si(e,t,Jo,!0,i)&&(w?g=e.result:S=e.result),w||(ii(e,l,h,d,g,S,o,a,u),d=g=S=null),Le(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&_!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&ii(e,l,h,d,g,null,o,a,u),k&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),k}function GI(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ut(o);)o===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Kv.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),PI.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}s&&!Xv.test(s)&&ee(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ee(e,"tag name is malformed: "+s)}return r?e.tag=s:Lr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}function UI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ut(r)&&!ni(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function WI(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&&!ut(n)&&!ni(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Lr.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Le(e,!0,-1),!0}function si(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,g,S,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Jo===r||Vv===r,n&&Le(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;GI(e)||UI(e);)Le(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Jo===r)&&(Qo===r||zv===r?S=t:S=t+1,w=e.position-e.lineStart,u===1?a&&(yv(e,w)||HI(e,w,S))||jI(e,S)?f=!0:(o&&qI(e,S)||$I(e,S)||MI(e,S)?f=!0:WI(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):BI(e,S,Qo===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&yv(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(g=e.implicitTypes[l],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Lr.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){g=d[l];break}g||ee(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function YI(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Le(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ut(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");o!==0;){for(;on(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!zt(o));break}if(zt(o))break;for(r=e.position;o!==0&&!ut(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Zl(e),Lr.call(gv,n)?gv[n](e,n,i):Zo(e,'unknown document directive "'+n+'"')}if(Le(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,Le(e,!0,-1)):s&&ee(e,"directives end mark is expected"),si(e,e.lineIndent-1,Jo,!1,!0),Le(e,!0,-1),e.checkLineBreaks&&kI.test(e.input.slice(t,e.position))&&Zo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ra(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Le(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}function eE(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
109
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new NI(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(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;)YI(r);return r.documents}function zI(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=eE(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function VI(e,t){var r=eE(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new tt("expected a single document in the stream, but found more")}}var KI=zI,XI=VI,tE={loadAll:KI,load:XI},rE=Object.prototype.toString,nE=Object.prototype.hasOwnProperty,tf=65279,QI=9,Zi=10,JI=13,ZI=32,e2=33,t2=34,zl=35,r2=37,n2=38,i2=39,s2=42,iE=44,o2=45,ea=58,a2=61,u2=62,c2=63,l2=64,sE=91,oE=93,f2=96,aE=123,h2=124,uE=125,ze={};ze[0]="\\0";ze[7]="\\a";ze[8]="\\b";ze[9]="\\t";ze[10]="\\n";ze[11]="\\v";ze[12]="\\f";ze[13]="\\r";ze[27]="\\e";ze[34]='\\"';ze[92]="\\\\";ze[133]="\\N";ze[160]="\\_";ze[8232]="\\L";ze[8233]="\\P";var d2=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],p2=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function g2(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&nE.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function m2(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 tt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Be.repeat("0",n-t.length)+t}var y2=1,es=2;function v2(e){this.schema=e.schema||Jl,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Be.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=g2(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==='"'?es:y2,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 vv(e,t){for(var r=Be.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
|
|
110
|
+
`,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
111
|
+
`&&(s+=r),s+=o;return s}function Vl(e,t){return`
|
|
112
|
+
`+Be.repeat(" ",e.indent*t)}function E2(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 ta(e){return e===ZI||e===QI}function ts(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==tf||65536<=e&&e<=1114111}function Ev(e){return ts(e)&&e!==tf&&e!==JI&&e!==Zi}function Av(e,t,r){var n=Ev(e),i=n&&!ta(e);return(r?n:n&&e!==iE&&e!==sE&&e!==oE&&e!==aE&&e!==uE)&&e!==zl&&!(t===ea&&!i)||Ev(t)&&!ta(t)&&e===zl||t===ea&&i}function A2(e){return ts(e)&&e!==tf&&!ta(e)&&e!==o2&&e!==c2&&e!==ea&&e!==iE&&e!==sE&&e!==oE&&e!==aE&&e!==uE&&e!==zl&&e!==n2&&e!==s2&&e!==e2&&e!==h2&&e!==a2&&e!==u2&&e!==i2&&e!==t2&&e!==r2&&e!==l2&&e!==f2}function S2(e){return!ta(e)&&e!==ea}function Qi(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 cE(e){var t=/^\n* /;return t.test(e)}var lE=1,Kl=2,fE=3,hE=4,ri=5;function w2(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,g=-1,S=A2(Qi(e,0))&&S2(Qi(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Qi(e,u),!ts(c))return ri;S=S&&Av(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Qi(e,u),c===Zi)l=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!ts(c))return ri;S=S&&Av(c,f,a),f=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!l&&!h?S&&!o&&!i(e)?lE:s===es?ri:Kl:r>9&&cE(e)?ri:o?s===es?ri:Kl:h?hE:fE}function C2(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===es?'""':"''";if(!e.noCompatMode&&(d2.indexOf(t)!==-1||p2.test(t)))return e.quotingType===es?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return E2(e,c)}switch(w2(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case lE:return t;case Kl:return"'"+t.replace(/'/g,"''")+"'";case fE:return"|"+Sv(t,e.indent)+wv(vv(t,s));case hE:return">"+Sv(t,e.indent)+wv(vv(_2(t,o),s));case ri:return'"'+x2(t)+'"';default:throw new tt("impossible error: invalid scalar style")}}()}function Sv(e,t){var r=cE(e)?String(t):"",n=e[e.length-1]===`
|
|
113
|
+
`,i=n&&(e[e.length-2]===`
|
|
114
|
+
`||e===`
|
|
115
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
116
|
+
`}function wv(e){return e[e.length-1]===`
|
|
117
|
+
`?e.slice(0,-1):e}function _2(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
|
|
118
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,Cv(e.slice(0,c),t)}(),i=e[0]===`
|
|
119
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
|
|
120
|
+
`:"")+Cv(u,t),i=s}return n}function Cv(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
|
|
121
|
+
`+e.slice(i,s),i=s+1),o=a;return u+=`
|
|
122
|
+
`,e.length-i>t&&o>i?u+=e.slice(i,o)+`
|
|
123
|
+
`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function x2(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Qi(e,i),n=ze[r],!n&&ts(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||m2(r);return t}function b2(e,t,r){var n="",i=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)),(ar(e,t,a,!1,!1)||typeof a>"u"&&ar(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function _v(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(ar(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&ar(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Vl(e,t)),e.dump&&Zi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function O2(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),ar(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ar(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function R2(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new tt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Vl(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),ar(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Zi===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Vl(e,t)),ar(e,t+1,f,!0,l)&&(e.dump&&Zi===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function xv(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,rE.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(nE.call(a.represent,u))n=a.represent[u](t,u);else throw new tt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function ar(e,t,r,n,i,s,o){e.tag=null,e.dump=r,xv(e,r,!1)||xv(e,r,!0);var a=rE.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(R2(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(O2(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?_v(e,t-1,e.dump,i):_v(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(b2(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&C2(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new tt("unacceptable kind of an object to dump "+a)}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 F2(e,t){var r=[],n=[],i,s;for(Xl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Xl(e,t,r){var n,i,s;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,s=e.length;i<s;i+=1)Xl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Xl(e[n[i]],t,r)}function k2(e,t){t=t||{};var r=new v2(t);r.noRefs||F2(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),ar(r,0,n,!0,!0)?r.dump+`
|
|
124
|
+
`:""}var P2=k2,D2={dump:P2};function rf(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 T2=He,I2=Rv,L2=Dv,N2=Bv,B2=$v,$2=Jl,M2=tE.load,j2=tE.loadAll,q2=D2.dump,H2=tt,G2={binary:Gv,float:Nv,map:Pv,null:Tv,pairs:Wv,set:Yv,timestamp:qv,bool:Iv,int:Lv,merge:Hv,omap:Uv,seq:kv,str:Fv},U2=rf("safeLoad","load"),W2=rf("safeLoadAll","loadAll"),Y2=rf("safeDump","dump"),z2={Type:T2,Schema:I2,FAILSAFE_SCHEMA:L2,JSON_SCHEMA:N2,CORE_SCHEMA:B2,DEFAULT_SCHEMA:$2,load:M2,loadAll:j2,dump:q2,YAMLException:H2,types:G2,safeLoad:U2,safeLoadAll:W2,safeDump:Y2},nf=z2;import dE from"node:fs/promises";var na=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var pE=class extends ti{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(var i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:ei(o)},u=Xo(s.npmAuthIdent||""),c=u.indexOf(":");c>0&&(a.userName=u.substring(0,c),a.authToken=u.substring(c+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(na(r.npmRegistryServer)),r.npmScopes)for(var n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(var n of t){let s="//"+n.registry,o=r.npmRegistries[s]||{};o.npmAlwaysAuth===void 0&&(o.npmAlwaysAuth=!0),o.npmAuthIdent=Tr(`${n.userName}:${n.authToken}`),r.npmRegistries[s]=o}let i=nf.dump(r);await dE.writeFile(this.userFilePath,i)}async paseYarnRc(t){let r=await dE.readFile(t,"utf8");return nf.load(r,{filename:t})}};var Xw=kh(Vw(),1);import Ss from"node:fs/promises";import{EOL as bh}from"node:os";import j3 from"node:path";var Kw=class extends ti{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await Ss.readFile(this.userFilePath,"utf-8")).split(bh).filter(n=>!n.includes("registry=")).join(bh);await Ss.writeFile(this.userFilePath,r)}catch{await Ss.writeFile(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new Xw.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${j3.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>na(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:ei(n)},t.set(o.registry,o)),i){case"_password":o.authToken=Xo(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let u=t.get(this.toRegistryAndFunctionKey(s,o));return u!==void 0?(r.delete(u),u):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||cv}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||lv}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${Tr(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await Ss.writeFile(this.userFilePath,i.join(bh),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await Ss.readFile(t,{encoding:"utf8"})).split(`
|
|
125
|
+
`).map(a=>a.trim()),o=[];for(let a of s){let u=a.indexOf("/:");if(a.startsWith("//")&&u>=2){let c=a.substring(2,u+1),f=a.substring(u+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),d=r(a,c,l,h);d&&o.push(d)}else if(n){let c=n(a);c&&o.push(c)}}return o}};import{hostname as Q3}from"os";import{arch as V3,platform as K3}from"os";import{exec as q3}from"node:child_process";import{promisify as H3}from"node:util";var ka=H3(q3);import{arch as W3,platform as Qw}from"os";import{release as G3,platform as U3}from"os";var yn=()=>U3()==="linux"&&G3().toLowerCase().includes("wsl");var Jw=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return yn()||e[Qw()]&&e[Qw()].includes(W3())};var Oh;var Y3=["npm","exec","--silent","--yes","azureauth","--"],z3={...process.env,npm_config_registry:"https://registry.npmjs.org"},Pa=()=>(Oh||(Oh=yn()?["azureauth.exe"]:Y3),{command:Oh,env:z3});import{spawnSync as X3}from"child_process";var Da;var Zw=async()=>{if(Da===void 0){let{command:e,env:t}=Pa(),r=`${e.join(" ")} --version`;try{let n=await ka(r,{env:t}),[,i]=n.stdout.split(".");Da=parseInt(i)>=8}catch{Da=!1}}return Da};var eC=async(e,t)=>{if(!Jw())throw new Error(`AzureAuth is not supported for platform ${K3()} and architecture ${V3()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Pa(),i=[...r,"ado","pat",`--prompt-hint ${yn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(yn())try{if(s=X3(i[0],i.slice(1),{encoding:"utf-8"}),s.status===0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await ka(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await Zw()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var X8=async(e,t=!1,r)=>{let n=`${Q3()}-${e}`,s=(await eC({promptHint:`${n} .npmrc PAT`,organization:e,displayName:`${n}-npmrc-pat`,scope:["vso.packaging"],timeout:"30",output:"json"},r)).token;return t?Tr(s):s};export{ti as FileProvider,Kw as NpmrcFileProvider,pE as YarnRcFileProvider,lv as defaultEmail,cv as defaultUser,X8 as generateNpmrcPat};
|
|
126
|
+
/*! Bundled license information:
|
|
127
|
+
|
|
128
|
+
is-extglob/index.js:
|
|
129
|
+
(*!
|
|
130
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
131
|
+
*
|
|
132
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
133
|
+
* Licensed under the MIT License.
|
|
134
|
+
*)
|
|
135
|
+
|
|
136
|
+
is-glob/index.js:
|
|
137
|
+
(*!
|
|
138
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
139
|
+
*
|
|
140
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
141
|
+
* Released under the MIT License.
|
|
142
|
+
*)
|
|
143
|
+
|
|
144
|
+
is-number/index.js:
|
|
145
|
+
(*!
|
|
146
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
147
|
+
*
|
|
148
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
149
|
+
* Released under the MIT License.
|
|
150
|
+
*)
|
|
151
|
+
|
|
152
|
+
to-regex-range/index.js:
|
|
153
|
+
(*!
|
|
154
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
155
|
+
*
|
|
156
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
157
|
+
* Released under the MIT License.
|
|
158
|
+
*)
|
|
159
|
+
|
|
160
|
+
fill-range/index.js:
|
|
161
|
+
(*!
|
|
162
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
163
|
+
*
|
|
164
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
165
|
+
* Licensed under the MIT License.
|
|
166
|
+
*)
|
|
167
|
+
|
|
168
|
+
queue-microtask/index.js:
|
|
169
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
170
|
+
|
|
171
|
+
run-parallel/index.js:
|
|
172
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
173
|
+
|
|
174
|
+
git-url-parse/lib/index.js:
|
|
175
|
+
(*!
|
|
176
|
+
* buildToken
|
|
177
|
+
* Builds OAuth token prefix (helper function)
|
|
178
|
+
*
|
|
179
|
+
* @name buildToken
|
|
180
|
+
* @function
|
|
181
|
+
* @param {GitUrl} obj The parsed Git url object.
|
|
182
|
+
* @return {String} token prefix
|
|
183
|
+
*)
|
|
184
|
+
|
|
185
|
+
js-yaml/dist/js-yaml.mjs:
|
|
186
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
187
|
+
*/
|
|
1
188
|
//# sourceMappingURL=index.js.map
|