The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/.yarn/plugins/@yarnpkg/plugin-outdated.cjs

33 lines
48 KiB

/* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-outdated",
factory: function (require) {
var plugin=(()=>{var _r=Object.create,ye=Object.defineProperty,xr=Object.defineProperties,br=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertyNames,tt=Object.getOwnPropertySymbols,Hr=Object.getPrototypeOf,rt=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable;var nt=(e,t,r)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))rt.call(t,r)&&nt(e,r,t[r]);if(tt)for(var r of tt(t))wr.call(t,r)&&nt(e,r,t[r]);return e},B=(e,t)=>xr(e,Sr(t)),Tr=e=>ye(e,"__esModule",{value:!0});var W=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var G=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$r=(e,t)=>{for(var r in t)ye(e,r,{get:t[r],enumerable:!0})},Lr=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of vr(t))!rt.call(e,n)&&n!=="default"&&ye(e,n,{get:()=>t[n],enumerable:!(r=br(t,n))||r.enumerable});return e},J=e=>Lr(Tr(ye(e!=null?_r(Hr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var He=G(Y=>{"use strict";Y.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Y.find=(e,t)=>e.nodes.find(r=>r.type===t);Y.exceedsLimit=(e,t,r=1,n)=>n===!1||!Y.isInteger(e)||!Y.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Y.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)};Y.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0==0?(e.invalid=!0,!0):!1;Y.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0==0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Y.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Y.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Y.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s<n.length;s++){let a=n[s];Array.isArray(a)?r(a,t):a!==void 0&&t.push(a)}return t};return r(e),t}});var we=G((es,at)=>{"use strict";var st=He();at.exports=(e,t={})=>{let r=(n,s={})=>{let a=t.escapeInvalid&&st.isInvalidBrace(s),i=n.invalid===!0&&t.escapeInvalid===!0,o="";if(n.value)return(a||i)&&st.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let h of n.nodes)o+=r(h);return o};return r(e)}});var ot=G((ts,it)=>{"use strict";it.exports=function(e){return typeof e=="number"?e-e==0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var yt=G((rs,dt)=>{"use strict";var ut=ot(),ce=(e,t,r)=>{if(ut(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ut(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n=w({relaxZeros:!0},r);typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),a=String(n.shorthand),i=String(n.capture),o=String(n.wrap),h=e+":"+t+"="+s+a+i+o;if(ce.cache.hasOwnProperty(h))return ce.cache[h].result;let d=Math.min(e,t),f=Math.max(e,t);if(Math.abs(d-f)===1){let A=e+"|"+t;return n.capture?`(${A})`:n.wrap===!1?A:`(?:${A})`}let R=gt(e)||gt(t),p={min:e,max:t,a:d,b:f},v=[],m=[];if(R&&(p.isPadded=R,p.maxLen=String(p.max).length),d<0){let A=f<0?Math.abs(f):1;m=ct(A,Math.abs(d),p,n),d=p.a=0}return f>=0&&(v=ct(d,f,p,n)),p.negatives=m,p.positives=v,p.result=Or(m,v,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&v.length+m.length>1&&(p.result=`(?:${p.result})`),ce.cache[h]=p,p.result};function Or(e,t,r){let n=Ie(e,t,"-",!1,r)||[],s=Ie(t,e,"",!1,r)||[],a=Ie(e,t,"-?",!0,r)||[];return n.concat(a).concat(s).join("|")}function kr(e,t){let r=1,n=1,s=pt(e,r),a=new Set([t]);for(;e<=s&&s<=t;)a.add(s),r+=1,s=pt(e,r);for(s=ft(t+1,n)-1;e<s&&s<=t;)a.add(s),n+=1,s=ft(t+1,n)-1;return a=[...a],a.sort(Dr),a}function Nr(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Ir(e,t),s=n.length,a="",i=0;for(let o=0;o<s;o++){let[h,d]=n[o];h===d?a+=h:h!=="0"||d!=="9"?a+=Pr(h,d,r):i++}return i&&(a+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:a,count:[i],digits:s}}function ct(e,t,r,n){let s=kr(e,t),a=[],i=e,o;for(let h=0;h<s.length;h++){let d=s[h],f=Nr(String(i),String(d),n),R="";if(!r.isPadded&&o&&o.pattern===f.pattern){o.count.length>1&&o.count.pop(),o.count.push(f.count[0]),o.string=o.pattern+ht(o.count),i=d+1;continue}r.isPadded&&(R=Mr(d,r,n)),f.string=R+f.pattern+ht(f.count),a.push(f),i=d+1,o=f}return a}function Ie(e,t,r,n,s){let a=[];for(let i of e){let{string:o}=i;!n&&!lt(t,"string",o)&&a.push(r+o),n&&lt(t,"string",o)&&a.push(r+o)}return a}function Ir(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Dr(e,t){return e>t?1:t>e?-1:0}function lt(e,t,r){return e.some(n=>n[t]===r)}function pt(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ft(e,t){return e-e%Math.pow(10,t)}function ht(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Pr(e,t,r){return`[${e}${t-e==1?"":"-"}${t}]`}function gt(e){return/^-?(0+)\d/.test(e)}function Mr(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}ce.cache={};ce.clearCache=()=>ce.cache={};dt.exports=ce});var Me=G((ns,bt)=>{"use strict";var Br=W("util"),Rt=yt(),At=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ur=e=>t=>e===!0?Number(t):String(t),De=e=>typeof e=="number"||typeof e=="string"&&e!=="",Re=e=>Number.isInteger(+e),Pe=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Gr=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Fr=(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},mt=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},jr=(e,t)=>{e.negatives.sort((i,o)=>i<o?-1:i>o?1:0),e.positives.sort((i,o)=>i<o?-1:i>o?1:0);let r=t.capture?"":"?:",n="",s="",a;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(s=`-(${r}${e.negatives.join("|")})`),n&&s?a=`${n}|${s}`:a=n||s,t.wrap?`(${r}${a})`:a},Ct=(e,t,r,n)=>{if(r)return Rt(e,t,w({wrap:!1},n));let s=String.fromCharCode(e);if(e===t)return s;let a=String.fromCharCode(t);return`[${s}-${a}]`},Et=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return Rt(e,t,r)},_t=(...e)=>new RangeError("Invalid range arguments: "+Br.inspect(...e)),xt=(e,t,r)=>{if(r.strictRanges===!0)throw _t([e,t]);return[]},Kr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},qr=(e,t,r=1,n={})=>{let s=Number(e),a=Number(t);if(!Number.isInteger(s)||!Number.isInteger(a)){if(n.strictRanges===!0)throw _t([e,t]);return[]}s===0&&(s=0),a===0&&(a=0);let i=s>a,o=String(e),h=String(t),d=String(r);r=Math.max(Math.abs(r),1);let f=Pe(o)||Pe(h)||Pe(d),R=f?Math.max(o.length,h.length,d.length):0,p=f===!1&&Gr(e,t,n)===!1,v=n.transform||Ur(p);if(n.toRegex&&r===1)return Ct(mt(e,R),mt(t,R),!0,n);let m={negatives:[],positives:[]},A=k=>m[k<0?"negatives":"positives"].push(Math.abs(k)),E=[],b=0;for(;i?s>=a:s<=a;)n.toRegex===!0&&r>1?A(s):E.push(Fr(v(s,b),R,p)),s=i?s-r:s+r,b++;return n.toRegex===!0?r>1?jr(m,n):Et(E,null,w({wrap:!1},n)):E},Wr=(e,t,r=1,n={})=>{if(!Re(e)&&e.length>1||!Re(t)&&t.length>1)return xt(e,t,n);let s=n.transform||(p=>String.fromCharCode(p)),a=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),o=a>i,h=Math.min(a,i),d=Math.max(a,i);if(n.toRegex&&r===1)return Ct(h,d,!1,n);let f=[],R=0;for(;o?a>=i:a<=i;)f.push(s(a,R)),a=o?a-r:a+r,R++;return n.toRegex===!0?Et(f,null,{wrap:!1,options:n}):f},Te=(e,t,r,n={})=>{if(t==null&&De(e))return[e];if(!De(e)||!De(t))return xt(e,t,n);if(typeof r=="function")return Te(e,t,1,{transform:r});if(At(r))return Te(e,t,0,r);let s=w({},n);return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,Re(r)?Re(e)&&Re(t)?qr(e,t,r,s):Wr(e,t,Math.max(Math.abs(r),1),s):r!=null&&!At(r)?Kr(r,s):Te(e,t,1,r)};bt.exports=Te});var Ht=G((ss,vt)=>{"use strict";var Qr=Me(),St=He(),Xr=(e,t={})=>{let r=(n,s={})=>{let a=St.isInvalidBrace(s),i=n.invalid===!0&&t.escapeInvalid===!0,o=a===!0||i===!0,h=t.escapeInvalid===!0?"\\":"",d="";if(n.isOpen===!0||n.isClose===!0)return h+n.value;if(n.type==="open")return o?h+n.value:"(";if(n.type==="close")return o?h+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":o?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=St.reduce(n.nodes),R=Qr(...f,B(w({},t),{wrap:!1,toRegex:!0}));if(R.length!==0)return f.length>1&&R.length>1?`(${R})`:R}if(n.nodes)for(let f of n.nodes)d+=r(f,n);return d};return r(e)};vt.exports=Xr});var $t=G((as,Tt)=>{"use strict";var zr=Me(),wt=we(),pe=He(),le=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pe.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let a of s)n.push(le(a,t,r));else for(let a of t)r===!0&&typeof a=="string"&&(a=`{${a}}`),n.push(Array.isArray(a)?le(s,a,r):s+a);return pe.flatten(n)},Zr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,a={})=>{s.queue=[];let i=a,o=a.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,o=i.queue;if(s.invalid||s.dollar){o.push(le(o.pop(),wt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){o.push(le(o.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let R=pe.reduce(s.nodes);if(pe.exceedsLimit(...R,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=zr(...R,t);p.length===0&&(p=wt(s,t)),o.push(le(o.pop(),p)),s.nodes=[];return}let h=pe.encloseBrace(s),d=s.queue,f=s;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,d=f.queue;for(let R=0;R<s.nodes.length;R++){let p=s.nodes[R];if(p.type==="comma"&&s.type==="brace"){R===1&&d.push(""),d.push("");continue}if(p.type==="close"){o.push(le(o.pop(),d,h));continue}if(p.value&&p.type!=="open"){d.push(le(d.pop(),p.value));continue}p.nodes&&n(p,s)}return d};return pe.flatten(n(e))};Tt.exports=Zr});var Ot=G((is,Lt)=>{"use strict";Lt.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
`,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 Pt=G((os,Dt)=>{"use strict";var Vr=we(),{MAX_LENGTH:kt,CHAR_BACKSLASH:Be,CHAR_BACKTICK:Yr,CHAR_COMMA:Jr,CHAR_DOT:en,CHAR_LEFT_PARENTHESES:tn,CHAR_RIGHT_PARENTHESES:rn,CHAR_LEFT_CURLY_BRACE:nn,CHAR_RIGHT_CURLY_BRACE:sn,CHAR_LEFT_SQUARE_BRACKET:Nt,CHAR_RIGHT_SQUARE_BRACKET:It,CHAR_DOUBLE_QUOTE:an,CHAR_SINGLE_QUOTE:on,CHAR_NO_BREAK_SPACE:un,CHAR_ZERO_WIDTH_NOBREAK_SPACE:cn}=Ot(),ln=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(kt,r.maxLength):kt;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},a=[s],i=s,o=s,h=0,d=e.length,f=0,R=0,p,v={},m=()=>e[f++],A=E=>{if(E.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&E.type==="text"){o.value+=E.value;return}return i.nodes.push(E),E.parent=i,E.prev=o,o=E,E};for(A({type:"bos"});f<d;)if(i=a[a.length-1],p=m(),!(p===cn||p===un)){if(p===Be){A({type:"text",value:(t.keepEscaping?p:"")+m()});continue}if(p===It){A({type:"text",value:"\\"+p});continue}if(p===Nt){h++;let E=!0,b;for(;f<d&&(b=m());){if(p+=b,b===Nt){h++;continue}if(b===Be){p+=m();continue}if(b===It&&(h--,h===0))break}A({type:"text",value:p});continue}if(p===tn){i=A({type:"paren",nodes:[]}),a.push(i),A({type:"text",value:p});continue}if(p===rn){if(i.type!=="paren"){A({type:"text",value:p});continue}i=a.pop(),A({type:"text",value:p}),i=a[a.length-1];continue}if(p===an||p===on||p===Yr){let E=p,b;for(t.keepQuotes!==!0&&(p="");f<d&&(b=m());){if(b===Be){p+=b+m();continue}if(b===E){t.keepQuotes===!0&&(p+=b);break}p+=b}A({type:"text",value:p});continue}if(p===nn){R++;let E=o.value&&o.value.slice(-1)==="$"||i.dollar===!0;i=A({type:"brace",open:!0,close:!1,dollar:E,depth:R,commas:0,ranges:0,nodes:[]}),a.push(i),A({type:"open",value:p});continue}if(p===sn){if(i.type!=="brace"){A({type:"text",value:p});continue}let E="close";i=a.pop(),i.close=!0,A({type:E,value:p}),R--,i=a[a.length-1];continue}if(p===Jr&&R>0){if(i.ranges>0){i.ranges=0;let E=i.nodes.shift();i.nodes=[E,{type:"text",value:Vr(i)}]}A({type:"comma",value:p}),i.commas++;continue}if(p===en&&R>0&&i.commas===0){let E=i.nodes;if(R===0||E.length===0){A({type:"text",value:p});continue}if(o.type==="dot"){if(i.range=[],o.value+=p,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){E.pop();let b=E[E.length-1];b.value+=o.value+p,o=b,i.ranges--;continue}A({type:"dot",value:p});continue}A({type:"text",value:p})}do if(i=a.pop(),i.type!=="root"){i.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 E=a[a.length-1],b=E.nodes.indexOf(i);E.nodes.splice(b,1,...i.nodes)}while(a.length>0);return A({type:"eos"}),s};Dt.exports=ln});var Ut=G((us,Bt)=>{"use strict";var Mt=we(),pn=Ht(),fn=$t(),hn=Pt(),z=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=z.create(n,t);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(z.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};z.parse=(e,t={})=>hn(e,t);z.stringify=(e,t={})=>typeof e=="string"?Mt(z.parse(e,t),t):Mt(e,t);z.compile=(e,t={})=>(typeof e=="string"&&(e=z.parse(e,t)),pn(e,t));z.expand=(e,t={})=>{typeof e=="string"&&(e=z.parse(e,t));let r=fn(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};z.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?z.compile(e,t):z.expand(e,t);Bt.exports=z});var Ae=G((cs,qt)=>{"use strict";var gn=W("path"),ne="\\\\/",Gt=`[^${ne}]`,ae="\\.",dn="\\+",yn="\\?",$e="\\/",Rn="(?=.)",Ft="[^/]",Ue=`(?:${$e}|$)`,jt=`(?:^|${$e})`,Ge=`${ae}{1,2}${Ue}`,An=`(?!${ae})`,mn=`(?!${jt}${Ge})`,Cn=`(?!${ae}{0,1}${Ue})`,En=`(?!${Ge})`,_n=`[^.${$e}]`,xn=`${Ft}*?`,Kt={DOT_LITERAL:ae,PLUS_LITERAL:dn,QMARK_LITERAL:yn,SLASH_LITERAL:$e,ONE_CHAR:Rn,QMARK:Ft,END_ANCHOR:Ue,DOTS_SLASH:Ge,NO_DOT:An,NO_DOTS:mn,NO_DOT_SLASH:Cn,NO_DOTS_SLASH:En,QMARK_NO_DOT:_n,STAR:xn,START_ANCHOR:jt},bn=B(w({},Kt),{SLASH_LITERAL:`[${ne}]`,QMARK:Gt,STAR:`${Gt}*?`,DOTS_SLASH:`${ae}{1,2}(?:[${ne}]|$)`,NO_DOT:`(?!${ae})`,NO_DOTS:`(?!(?:^|[${ne}])${ae}{1,2}(?:[${ne}]|$))`,NO_DOT_SLASH:`(?!${ae}{0,1}(?:[${ne}]|$))`,NO_DOTS_SLASH:`(?!${ae}{1,2}(?:[${ne}]|$))`,QMARK_NO_DOT:`[^.${ne}]`,START_ANCHOR:`(?:^|[${ne}])`,END_ANCHOR:`(?:[${ne}]|$)`}),Sn={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"};qt.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Sn,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:gn.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?bn:Kt}}});var me=G(Q=>{"use strict";var vn=W("path"),Hn=process.platform==="win32",{REGEX_BACKSLASH:wn,REGEX_REMOVE_BACKSLASH:Tn,REGEX_SPECIAL_CHARS:$n,REGEX_SPECIAL_CHARS_GLOBAL:Ln}=Ae();Q.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Q.hasRegexChars=e=>$n.test(e);Q.isRegexChar=e=>e.length===1&&Q.hasRegexChars(e);Q.escapeRegex=e=>e.replace(Ln,"\\$1");Q.toPosixSlashes=e=>e.replace(wn,"/");Q.removeBackslashes=e=>e.replace(Tn,t=>t==="\\"?"":t);Q.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Q.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Hn===!0||vn.sep==="\\";Q.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Q.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Q.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Q.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",a=`${n}(?:${e})${s}`;return t.negated===!0&&(a=`(?:^(?!${a}).*$)`),a}});var Jt=G((ps,Yt)=>{"use strict";var Wt=me(),{CHAR_ASTERISK:Fe,CHAR_AT:On,CHAR_BACKWARD_SLASH:Ce,CHAR_COMMA:kn,CHAR_DOT:je,CHAR_EXCLAMATION_MARK:Ke,CHAR_FORWARD_SLASH:Qt,CHAR_LEFT_CURLY_BRACE:qe,CHAR_LEFT_PARENTHESES:We,CHAR_LEFT_SQUARE_BRACKET:Nn,CHAR_PLUS:In,CHAR_QUESTION_MARK:Xt,CHAR_RIGHT_CURLY_BRACE:Dn,CHAR_RIGHT_PARENTHESES:zt,CHAR_RIGHT_SQUARE_BRACKET:Pn}=Ae(),Zt=e=>e===Qt||e===Ce,Vt=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?Infinity:1)},Mn=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,a=[],i=[],o=[],h=e,d=-1,f=0,R=0,p=!1,v=!1,m=!1,A=!1,E=!1,b=!1,k=!1,N=!1,ee=!1,F=!1,ie=0,j,C,H={value:"",depth:0,isGlob:!1},U=()=>d>=n,l=()=>h.charCodeAt(d+1),L=()=>(j=C,h.charCodeAt(++d));for(;d<n;){C=L();let K;if(C===Ce){k=H.backslashes=!0,C=L(),C===qe&&(b=!0);continue}if(b===!0||C===qe){for(ie++;U()!==!0&&(C=L());){if(C===Ce){k=H.backslashes=!0,L();continue}if(C===qe){ie++;continue}if(b!==!0&&C===je&&(C=L())===je){if(p=H.isBrace=!0,m=H.isGlob=!0,F=!0,s===!0)continue;break}if(b!==!0&&C===kn){if(p=H.isBrace=!0,m=H.isGlob=!0,F=!0,s===!0)continue;break}if(C===Dn&&(ie--,ie===0)){b=!1,p=H.isBrace=!0,F=!0;break}}if(s===!0)continue;break}if(C===Qt){if(a.push(d),i.push(H),H={value:"",depth:0,isGlob:!1},F===!0)continue;if(j===je&&d===f+1){f+=2;continue}R=d+1;continue}if(r.noext!==!0&&(C===In||C===On||C===Fe||C===Xt||C===Ke)===!0&&l()===We){if(m=H.isGlob=!0,A=H.isExtglob=!0,F=!0,C===Ke&&d===f&&(ee=!0),s===!0){for(;U()!==!0&&(C=L());){if(C===Ce){k=H.backslashes=!0,C=L();continue}if(C===zt){m=H.isGlob=!0,F=!0;break}}continue}break}if(C===Fe){if(j===Fe&&(E=H.isGlobstar=!0),m=H.isGlob=!0,F=!0,s===!0)continue;break}if(C===Xt){if(m=H.isGlob=!0,F=!0,s===!0)continue;break}if(C===Nn){for(;U()!==!0&&(K=L());){if(K===Ce){k=H.backslashes=!0,L();continue}if(K===Pn){v=H.isBracket=!0,m=H.isGlob=!0,F=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&C===Ke&&d===f){N=H.negated=!0,f++;continue}if(r.noparen!==!0&&C===We){if(m=H.isGlob=!0,s===!0){for(;U()!==!0&&(C=L());){if(C===We){k=H.backslashes=!0,C=L();continue}if(C===zt){F=!0;break}}continue}break}if(m===!0){if(F=!0,s===!0)continue;break}}r.noext===!0&&(A=!1,m=!1);let T=h,oe="",u="";f>0&&(oe=h.slice(0,f),h=h.slice(f),R-=f),T&&m===!0&&R>0?(T=h.slice(0,R),u=h.slice(R)):m===!0?(T="",u=h):T=h,T&&T!==""&&T!=="/"&&T!==h&&Zt(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(u&&(u=Wt.removeBackslashes(u)),T&&k===!0&&(T=Wt.removeBackslashes(T)));let c={prefix:oe,input:e,start:f,base:T,glob:u,isBrace:p,isBracket:v,isGlob:m,isExtglob:A,isGlobstar:E,negated:N,negatedExtglob:ee};if(r.tokens===!0&&(c.maxDepth=0,Zt(C)||i.push(H),c.tokens=i),r.parts===!0||r.tokens===!0){let K;for(let S=0;S<a.length;S++){let te=K?K+1:f,re=a[S],X=e.slice(te,re);r.tokens&&(S===0&&f!==0?(i[S].isPrefix=!0,i[S].value=oe):i[S].value=X,Vt(i[S]),c.maxDepth+=i[S].depth),(S!==0||X!=="")&&o.push(X),K=re}if(K&&K+1<e.length){let S=e.slice(K+1);o.push(S),r.tokens&&(i[i.length-1].value=S,Vt(i[i.length-1]),c.maxDepth+=i[i.length-1].depth)}c.slashes=a,c.parts=o}return c};Yt.exports=Mn});var nr=G((fs,rr)=>{"use strict";var Le=Ae(),Z=me(),{MAX_LENGTH:Oe,POSIX_REGEX_SOURCE:Bn,REGEX_NON_SPECIAL_CHARS:Un,REGEX_SPECIAL_CHARS_BACKREF:Gn,REPLACEMENTS:er}=Le,Fn=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(s=>Z.escapeRegex(s)).join("..")}return r},fe=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,tr=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=er[e]||e;let r=w({},t),n=typeof r.maxLength=="number"?Math.min(Oe,r.maxLength):Oe,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},i=[a],o=r.capture?"":"?:",h=Z.isWindows(t),d=Le.globChars(h),f=Le.extglobChars(d),{DOT_LITERAL:R,PLUS_LITERAL:p,SLASH_LITERAL:v,ONE_CHAR:m,DOTS_SLASH:A,NO_DOT:E,NO_DOT_SLASH:b,NO_DOTS_SLASH:k,QMARK:N,QMARK_NO_DOT:ee,STAR:F,START_ANCHOR:ie}=d,j=y=>`(${o}(?:(?!${ie}${y.dot?A:R}).)*?)`,C=r.dot?"":E,H=r.dot?N:ee,U=r.bash===!0?j(r):F;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let l={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:i};e=Z.removePrefix(e,l),s=e.length;let L=[],T=[],oe=[],u=a,c,K=()=>l.index===s-1,S=l.peek=(y=1)=>e[l.index+y],te=l.advance=()=>e[++l.index]||"",re=()=>e.slice(l.index+1),X=(y="",$=0)=>{l.consumed+=y,l.index+=$},xe=y=>{l.output+=y.output!=null?y.output:y.value,X(y.value)},Cr=()=>{let y=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)te(),l.start++,y++;return y%2==0?!1:(l.negated=!0,l.start++,!0)},be=y=>{l[y]++,oe.push(y)},ue=y=>{l[y]--,oe.pop()},x=y=>{if(u.type==="globstar"){let $=l.braces>0&&(y.type==="comma"||y.type==="brace"),g=y.extglob===!0||L.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!$&&!g&&(l.output=l.output.slice(0,-u.output.length),u.type="star",u.value="*",u.output=U,l.output+=u.output)}if(L.length&&y.type!=="paren"&&(L[L.length-1].inner+=y.value),(y.value||y.output)&&xe(y),u&&u.type==="text"&&y.type==="text"){u.value+=y.value,u.output=(u.output||"")+y.value;return}y.prev=u,i.push(y),u=y},Se=(y,$)=>{let g=B(w({},f[$]),{conditions:1,inner:""});g.prev=u,g.parens=l.parens,g.output=l.output;let _=(r.capture?"(":"")+g.open;be("parens"),x({type:y,value:$,output:l.output?"":m}),x({type:"paren",extglob:!0,value:te(),output:_}),L.push(g)},Er=y=>{let $=y.close+(r.capture?")":""),g;if(y.type==="negate"){let _=U;y.inner&&y.inner.length>1&&y.inner.includes("/")&&(_=j(r)),(_!==U||K()||/^\)+$/.test(re()))&&($=y.close=`)$))${_}`),y.inner.includes("*")&&(g=re())&&/^\.[^\\/.]+$/.test(g)&&($=y.close=`)${g})${_})`),y.prev.type==="bos"&&(l.negatedExtglob=!0)}x({type:"paren",extglob:!0,value:c,output:$}),ue("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,$=e.replace(Gn,(g,_,I,q,M,Ne)=>q==="\\"?(y=!0,g):q==="?"?_?_+q+(M?N.repeat(M.length):""):Ne===0?H+(M?N.repeat(M.length):""):N.repeat(I.length):q==="."?R.repeat(I.length):q==="*"?_?_+q+(M?U:""):U:_?g:`\\${g}`);return y===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,g=>g.length%2==0?"\\\\":g?"\\":"")),$===e&&r.contains===!0?(l.output=e,l):(l.output=Z.wrapOutput($,l,t),l)}for(;!K();){if(c=te(),c==="\0")continue;if(c==="\\"){let g=S();if(g==="/"&&r.bash!==!0||g==="."||g===";")continue;if(!g){c+="\\",x({type:"text",value:c});continue}let _=/^\\+/.exec(re()),I=0;if(_&&_[0].length>2&&(I=_[0].length,l.index+=I,I%2!=0&&(c+="\\")),r.unescape===!0?c=te():c+=te(),l.brackets===0){x({type:"text",value:c});continue}}if(l.brackets>0&&(c!=="]"||u.value==="["||u.value==="[^")){if(r.posix!==!1&&c===":"){let g=u.value.slice(1);if(g.includes("[")&&(u.posix=!0,g.includes(":"))){let _=u.value.lastIndexOf("["),I=u.value.slice(0,_),q=u.value.slice(_+2),M=Bn[q];if(M){u.value=I+M,l.backtrack=!0,te(),!a.output&&i.indexOf(u)===1&&(a.output=m);continue}}}(c==="["&&S()!==":"||c==="-"&&S()==="]")&&(c=`\\${c}`),c==="]"&&(u.value==="["||u.value==="[^")&&(c=`\\${c}`),r.posix===!0&&c==="!"&&u.value==="["&&(c="^"),u.value+=c,xe({value:c});continue}if(l.quotes===1&&c!=='"'){c=Z.escapeRegex(c),u.value+=c,xe({value:c});continue}if(c==='"'){l.quotes=l.quotes===1?0:1,r.keepQuotes===!0&&x({type:"text",value:c});continue}if(c==="("){be("parens"),x({type:"paren",value:c});continue}if(c===")"){if(l.parens===0&&r.strictBrackets===!0)throw new SyntaxError(fe("opening","("));let g=L[L.length-1];if(g&&l.parens===g.parens+1){Er(L.pop());continue}x({type:"paren",value:c,output:l.parens?")":"\\)"}),ue("parens");continue}if(c==="["){if(r.nobracket===!0||!re().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(fe("closing","]"));c=`\\${c}`}else be("brackets");x({type:"bracket",value:c});continue}if(c==="]"){if(r.nobracket===!0||u&&u.type==="bracket"&&u.value.length===1){x({type:"text",value:c,output:`\\${c}`});continue}if(l.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(fe("opening","["));x({type:"text",value:c,output:`\\${c}`});continue}ue("brackets");let g=u.value.slice(1);if(u.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(c=`/${c}`),u.value+=c,xe({value:c}),r.literalBrackets===!1||Z.hasRegexChars(g))continue;let _=Z.escapeRegex(u.value);if(l.output=l.output.slice(0,-u.value.length),r.literalBrackets===!0){l.output+=_,u.value=_;continue}u.value=`(${o}${_}|${u.value})`,l.output+=u.value;continue}if(c==="{"&&r.nobrace!==!0){be("braces");let g={type:"brace",value:c,output:"(",outputIndex:l.output.length,tokensIndex:l.tokens.length};T.push(g),x(g);continue}if(c==="}"){let g=T[T.length-1];if(r.nobrace===!0||!g){x({type:"text",value:c,output:c});continue}let _=")";if(g.dots===!0){let I=i.slice(),q=[];for(let M=I.length-1;M>=0&&(i.pop(),I[M].type!=="brace");M--)I[M].type!=="dots"&&q.unshift(I[M].value);_=Fn(q,r),l.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){let I=l.output.slice(0,g.outputIndex),q=l.tokens.slice(g.tokensIndex);g.value=g.output="\\{",c=_="\\}",l.output=I;for(let M of q)l.output+=M.output||M.value}x({type:"brace",value:c,output:_}),ue("braces"),T.pop();continue}if(c==="|"){L.length>0&&L[L.length-1].conditions++,x({type:"text",value:c});continue}if(c===","){let g=c,_=T[T.length-1];_&&oe[oe.length-1]==="braces"&&(_.comma=!0,g="|"),x({type:"comma",value:c,output:g});continue}if(c==="/"){if(u.type==="dot"&&l.index===l.start+1){l.start=l.index+1,l.consumed="",l.output="",i.pop(),u=a;continue}x({type:"slash",value:c,output:v});continue}if(c==="."){if(l.braces>0&&u.type==="dot"){u.value==="."&&(u.output=R);let g=T[T.length-1];u.type="dots",u.output+=c,u.value+=c,g.dots=!0;continue}if(l.braces+l.parens===0&&u.type!=="bos"&&u.type!=="slash"){x({type:"text",value:c,output:R});continue}x({type:"dot",value:c,output:R});continue}if(c==="?"){if(!(u&&u.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Se("qmark",c);continue}if(u&&u.type==="paren"){let _=S(),I=c;if(_==="<"&&!Z.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(u.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(re()))&&(I=`\\${c}`),x({type:"text",value:c,output:I});continue}if(r.dot!==!0&&(u.type==="slash"||u.type==="bos")){x({type:"qmark",value:c,output:ee});continue}x({type:"qmark",value:c,output:N});continue}if(c==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){Se("negate",c);continue}if(r.nonegate!==!0&&l.index===0){Cr();continue}}if(c==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Se("plus",c);continue}if(u&&u.value==="("||r.regex===!1){x({type:"plus",value:c,output:p});continue}if(u&&(u.type==="bracket"||u.type==="paren"||u.type==="brace")||l.parens>0){x({type:"plus",value:c});continue}x({type:"plus",value:p});continue}if(c==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){x({type:"at",extglob:!0,value:c,output:""});continue}x({type:"text",value:c});continue}if(c!=="*"){(c==="$"||c==="^")&&(c=`\\${c}`);let g=Un.exec(re());g&&(c+=g[0],l.index+=g[0].length),x({type:"text",value:c});continue}if(u&&(u.type==="globstar"||u.star===!0)){u.type="star",u.star=!0,u.value+=c,u.output=U,l.backtrack=!0,l.globstar=!0,X(c);continue}let y=re();if(r.noextglob!==!0&&/^\([^?]/.test(y)){Se("star",c);continue}if(u.type==="star"){if(r.noglobstar===!0){X(c);continue}let g=u.prev,_=g.prev,I=g.type==="slash"||g.type==="bos",q=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!I||y[0]&&y[0]!=="/")){x({type:"star",value:c,output:""});continue}let M=l.braces>0&&(g.type==="comma"||g.type==="brace"),Ne=L.length&&(g.type==="pipe"||g.type==="paren");if(!I&&g.type!=="paren"&&!M&&!Ne){x({type:"star",value:c,output:""});continue}for(;y.slice(0,3)==="/**";){let ve=e[l.index+4];if(ve&&ve!=="/")break;y=y.slice(3),X("/**",3)}if(g.type==="bos"&&K()){u.type="globstar",u.value+=c,u.output=j(r),l.output=u.output,l.globstar=!0,X(c);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!q&&K()){l.output=l.output.slice(0,-(g.output+u.output).length),g.output=`(?:${g.output}`,u.type="globstar",u.output=j(r)+(r.strictSlashes?")":"|$)"),u.value+=c,l.globstar=!0,l.output+=g.output+u.output,X(c);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&y[0]==="/"){let ve=y[1]!==void 0?"|$":"";l.output=l.output.slice(0,-(g.output+u.output).length),g.output=`(?:${g.output}`,u.type="globstar",u.output=`${j(r)}${v}|${v}${ve})`,u.value+=c,l.output+=g.output+u.output,l.globstar=!0,X(c+te()),x({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&y[0]==="/"){u.type="globstar",u.value+=c,u.output=`(?:^|${v}|${j(r)}${v})`,l.output=u.output,l.globstar=!0,X(c+te()),x({type:"slash",value:"/",output:""});continue}l.output=l.output.slice(0,-u.output.length),u.type="globstar",u.output=j(r),u.value+=c,l.output+=u.output,l.globstar=!0,X(c);continue}let $={type:"star",value:c,output:U};if(r.bash===!0){$.output=".*?",(u.type==="bos"||u.type==="slash")&&($.output=C+$.output),x($);continue}if(u&&(u.type==="bracket"||u.type==="paren")&&r.regex===!0){$.output=c,x($);continue}(l.index===l.start||u.type==="slash"||u.type==="dot")&&(u.type==="dot"?(l.output+=b,u.output+=b):r.dot===!0?(l.output+=k,u.output+=k):(l.output+=C,u.output+=C),S()!=="*"&&(l.output+=m,u.output+=m)),x($)}for(;l.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(fe("closing","]"));l.output=Z.escapeLast(l.output,"["),ue("brackets")}for(;l.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(fe("closing",")"));l.output=Z.escapeLast(l.output,"("),ue("parens")}for(;l.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(fe("closing","}"));l.output=Z.escapeLast(l.output,"{"),ue("braces")}if(r.strictSlashes!==!0&&(u.type==="star"||u.type==="bracket")&&x({type:"maybe_slash",value:"",output:`${v}?`}),l.backtrack===!0){l.output="";for(let y of l.tokens)l.output+=y.output!=null?y.output:y.value,y.suffix&&(l.output+=y.suffix)}return l};tr.fastpaths=(e,t)=>{let r=w({},t),n=typeof r.maxLength=="number"?Math.min(Oe,r.maxLength):Oe,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=er[e]||e;let a=Z.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:h,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:R,NO_DOTS_SLASH:p,STAR:v,START_ANCHOR:m}=Le.globChars(a),A=r.dot?R:f,E=r.dot?p:f,b=r.capture?"":"?:",k={negated:!1,prefix:""},N=r.bash===!0?".*?":v;r.capture&&(N=`(${N})`);let ee=C=>C.noglobstar===!0?N:`(${b}(?:(?!${m}${C.dot?d:i}).)*?)`,F=C=>{switch(C){case"*":return`${A}${h}${N}`;case".*":return`${i}${h}${N}`;case"*.*":return`${A}${N}${i}${h}${N}`;case"*/*":return`${A}${N}${o}${h}${E}${N}`;case"**":return A+ee(r);case"**/*":return`(?:${A}${ee(r)}${o})?${E}${h}${N}`;case"**/*.*":return`(?:${A}${ee(r)}${o})?${E}${N}${i}${h}${N}`;case"**/.*":return`(?:${A}${ee(r)}${o})?${i}${h}${N}`;default:{let H=/^(.*?)\.(\w+)$/.exec(C);if(!H)return;let U=F(H[1]);return U?U+i+H[2]:void 0}}},ie=Z.removePrefix(e,k),j=F(ie);return j&&r.strictSlashes!==!0&&(j+=`${o}?`),j};rr.exports=tr});var ar=G((hs,sr)=>{"use strict";var jn=W("path"),Kn=Jt(),Qe=nr(),Xe=me(),qn=Ae(),Wn=e=>e&&typeof e=="object"&&!Array.isArray(e),D=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(p=>D(p,t,r));return p=>{for(let v of f){let m=v(p);if(m)return m}return!1}}let n=Wn(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},a=Xe.isWindows(t),i=n?D.compileRe(e,t):D.makeRe(e,t,!1,!0),o=i.state;delete i.state;let h=()=>!1;if(s.ignore){let f=B(w({},t),{ignore:null,onMatch:null,onResult:null});h=D(s.ignore,f,r)}let d=(f,R=!1)=>{let{isMatch:p,match:v,output:m}=D.test(f,i,t,{glob:e,posix:a}),A={glob:e,state:o,regex:i,posix:a,input:f,output:m,match:v,isMatch:p};return typeof s.onResult=="function"&&s.onResult(A),p===!1?(A.isMatch=!1,R?A:!1):h(f)?(typeof s.onIgnore=="function"&&s.onIgnore(A),A.isMatch=!1,R?A:!1):(typeof s.onMatch=="function"&&s.onMatch(A),R?A:!0)};return r&&(d.state=o),d};D.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},i=a.format||(s?Xe.toPosixSlashes:null),o=e===n,h=o&&i?i(e):e;return o===!1&&(h=i?i(e):e,o=h===n),(o===!1||a.capture===!0)&&(a.matchBase===!0||a.basename===!0?o=D.matchBase(e,t,r,s):o=t.exec(h)),{isMatch:Boolean(o),match:o,output:h}};D.matchBase=(e,t,r,n=Xe.isWindows(r))=>(t instanceof RegExp?t:D.makeRe(t,r)).test(jn.basename(e));D.isMatch=(e,t,r)=>D(t,r)(e);D.parse=(e,t)=>Array.isArray(e)?e.map(r=>D.parse(r,t)):Qe(e,B(w({},t),{fastpaths:!1}));D.scan=(e,t)=>Kn(e,t);D.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},a=s.contains?"":"^",i=s.contains?"":"$",o=`${a}(?:${e.output})${i}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let h=D.toRegex(o,t);return n===!0&&(h.state=e),h};D.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=Qe.fastpaths(e,t)),s.output||(s=Qe(e,t)),D.compileRe(s,t,r,n)};D.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/$^/}};D.constants=qn;sr.exports=D});var or=G((gs,ir)=>{"use strict";ir.exports=ar()});var fr=G((ds,pr)=>{"use strict";var ur=W("util"),cr=Ut(),se=or(),ze=me(),lr=e=>e===""||e==="./",O=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,s=new Set,a=new Set,i=0,o=f=>{a.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let R=se(String(t[f]),B(w({},r),{onResult:o}),!0),p=R.state.negated||R.state.negatedExtglob;p&&i++;for(let v of e){let m=R(v,!0);!(p?!m.isMatch:m.isMatch)||(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let d=(i===t.length?[...a]:[...s]).filter(f=>!n.has(f));if(r&&d.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 d};O.match=O;O.matcher=(e,t)=>se(e,t);O.isMatch=(e,t,r)=>se(t,r)(e);O.any=O.isMatch;O.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,s=[],a=o=>{r.onResult&&r.onResult(o),s.push(o.output)},i=O(e,t,B(w({},r),{onResult:a}));for(let o of s)i.includes(o)||n.add(o);return[...n]};O.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ur.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>O.contains(e,n,r));if(typeof t=="string"){if(lr(e)||lr(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return O.isMatch(e,t,B(w({},r),{contains:!0}))};O.matchKeys=(e,t,r)=>{if(!ze.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=O(Object.keys(e),t,r),s={};for(let a of n)s[a]=e[a];return s};O.some=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let a=se(String(s),r);if(n.some(i=>a(i)))return!0}return!1};O.every=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let a=se(String(s),r);if(!n.every(i=>a(i)))return!1}return!0};O.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ur.inspect(e)}"`);return[].concat(t).every(n=>se(n,r)(e))};O.capture=(e,t,r)=>{let n=ze.isWindows(r),a=se.makeRe(String(e),B(w({},r),{capture:!0})).exec(n?ze.toPosixSlashes(t):t);if(a)return a.slice(1).map(i=>i===void 0?"":i)};O.makeRe=(...e)=>se.makeRe(...e);O.scan=(...e)=>se.scan(...e);O.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let s of cr(String(n),t))r.push(se.parse(s,t));return r};O.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:cr(e,t)};O.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return O.braces(e,B(w({},t),{expand:!0}))};pr.exports=O});var Vn={};$r(Vn,{default:()=>Zn});var ke=J(W("@yarnpkg/cli")),P=J(W("@yarnpkg/core")),V=J(W("clipanion")),Je=J(fr()),mr=J(W("path")),et=J(W("semver")),de=J(W("typanion"));var he=J(W("@yarnpkg/core")),yr=J(W("@yarnpkg/plugin-essentials"));var Ee=J(W("semver")),hr=Boolean;function Qn(e){var s;let[t,r,n]=(s=e.match(/(github|bitbucket|gitlab):(.+)/))!=null?s:[];return r?`https://${r}.${r==="bitbucket"?"org":"com"}/${n}`:`https://github.com/${e}`}function gr(e){let{homepage:t,repository:r}=e.raw;return t||(typeof r=="string"?Qn(r):r==null?void 0:r.url)}function dr(e,t){return Ee.default.parse(t).prerelease.length?Ee.default.lt(e,t):Ee.default.lt(Ee.default.coerce(e),t)}var Ze=class{constructor(t,r,n,s){this.configuration=t;this.project=r;this.workspace=n;this.cache=s}async fetch({descriptor:t,includeRange:r,includeURL:n,pkg:s}){let[a,i,o]=await Promise.all([this.suggest(s,"latest"),r?this.suggest(s,t.range):Promise.resolve(),n?this.fetchURL(s):Promise.resolve()]);if(!a){let h=he.structUtils.prettyIdent(this.configuration,s);throw new Error(`Could not fetch candidate for ${h}.`)}return{latest:a.range,range:i==null?void 0:i.range,url:o}}suggest(t,r){return yr.suggestUtils.fetchDescriptorFrom(t,r,{cache:this.cache,preserveModifier:!1,project:this.project,workspace:this.workspace})}async fetchURL(t){var a;let r=this.configuration.makeFetcher(),n=await r.fetch(t,{cache:this.cache,checksums:this.project.storedChecksums,fetcher:r,project:this.project,report:new he.ThrowReport,skipIntegrityCheck:!0}),s;try{s=await he.Manifest.find(n.prefixPath,{baseFs:n.packageFs})}finally{(a=n.releaseFs)==null||a.call(n)}return gr(s)}};var ge=J(W("@yarnpkg/core")),Xn=/^([0-9]+\.)([0-9]+\.)(.+)$/,Rr=["name","current","range","latest","workspace","type","url"],Ve=class{constructor(t,r,n,s){this.report=t;this.configuration=r;this.dependencies=n;this.extraColumns=s;this.sizes=null;this.headers={current:"Current",latest:"Latest",name:"Package",range:"Range",type:"Package Type",url:"URL",workspace:"Workspace"}}print(){this.sizes=this.getColumnSizes(),this.printHeader(),this.dependencies.forEach(t=>{var s,a;let r=this.getDiffColor(t.severity.latest),n=this.getDiffColor(t.severity.range);this.printRow({current:t.current.padEnd(this.sizes.current),latest:this.formatVersion(t,"latest",r),name:this.applyColor(t.name.padEnd(this.sizes.name),r),range:this.formatVersion(t,"range",n),type:t.type.padEnd(this.sizes.type),url:(s=t.url)==null?void 0:s.padEnd(this.sizes.url),workspace:(a=t.workspace)==null?void 0:a.padEnd(this.sizes.workspace)})})}applyColor(t,r){return ge.formatUtils.pretty(this.configuration,t,r)}formatVersion(t,r,n){var d;let s=(d=t[r])==null?void 0:d.padEnd(this.sizes[r]);if(!s)return;let a=s.match(Xn);if(!a)return s;let i=["red","yellow","green"].indexOf(n)+1,o=a.slice(1,i).join(""),h=a.slice(i).join("");return o+ge.formatUtils.pretty(this.configuration,this.applyColor(h,n),"bold")}getDiffColor(t="patch"){return{major:"red",minor:"yellow",patch:"green"}[t]}getColumnSizes(){let t=Rr.reduce((r,n)=>B(w({},r),{[n]:this.headers[n].length}),{});for(let r of this.dependencies)for(let[n,s]of Object.entries(r)){let a=t[n],i=(s||"").length;t[n]=a>i?a:i}return t}formatColumnHeader(t){return ge.formatUtils.pretty(this.configuration,this.headers[t].padEnd(this.sizes[t]),"bold")}printHeader(){this.printRow({current:this.formatColumnHeader("current"),latest:this.formatColumnHeader("latest"),name:this.formatColumnHeader("name"),range:this.formatColumnHeader("range"),type:this.formatColumnHeader("type"),url:this.formatColumnHeader("url"),workspace:this.formatColumnHeader("workspace")})}printRow(t){let r=Rr.filter(n=>{var s;return(s=this.extraColumns[n])!=null?s:!0}).map(n=>t[n]).join(" ").trim();this.report.reportInfo(ge.MessageName.UNNAMED,r)}};var Ye=["dependencies","devDependencies"],Ar=["major","minor","patch"];var _e=class extends ke.BaseCommand{constructor(){super(...arguments);this.patterns=V.Option.Rest();this.workspace=V.Option.Array("-w,--workspace",{description:"Only search for dependencies in the specified workspaces. If no workspaces are specified, only searches for outdated dependencies in the current workspace.",validator:de.default.isArray(de.default.isString())});this.check=V.Option.Boolean("-c,--check",!1,{description:"Exit with exit code 1 when outdated dependencies are found"});this.json=V.Option.Boolean("--json",!1,{description:"Format the output as JSON"});this.severity=V.Option.Array("-s,--severity",{description:"Filter results based on the severity of the update",validator:de.default.isArray(de.default.isEnum(Ar))});this.type=V.Option.String("-t,--type",{description:"Filter results based on the dependency type",validator:de.default.isEnum(Ye)});this.includeURL=V.Option.Boolean("--url",!1,{description:"Include the homepage URL of each package in the output"});this.includeRange=V.Option.Boolean("--range",!1,{description:"Include the latest version of the package which satisfies the current range specified in the manifest."})}async execute(){let{cache:t,configuration:r,project:n,workspace:s}=await this.loadProject(),a=new Ze(r,n,s,t),i=this.getWorkspaces(n),o=this.getDependencies(r,i);if(this.json){let f=(await this.getOutdatedDependencies(n,a,o)).map(R=>B(w({},R),{severity:R.severity.latest}));this.context.stdout.write(JSON.stringify(f)+`
`);return}return(await P.StreamReport.start({configuration:r,stdout:this.context.stdout},async d=>{await this.checkOutdatedDependencies(r,n,o,a,d)})).exitCode()}async checkOutdatedDependencies(t,r,n,s,a){let i=null;await a.startTimerPromise("Checking for outdated dependencies",async()=>{let o=n.length,h=P.StreamReport.progressViaCounter(o);a.reportProgress(h),i=await this.getOutdatedDependencies(r,s,n,h)}),a.reportSeparator(),i.length?(new Ve(a,t,i,{range:this.includeRange,url:this.includeURL,workspace:this.includeWorkspace(r)}).print(),a.reportSeparator(),this.printOutdatedCount(a,i.length)):this.printUpToDate(t,a)}async loadProject(){let t=await P.Configuration.find(this.context.cwd,this.context.plugins),[r,{project:n,workspace:s}]=await Promise.all([P.Cache.find(t),P.Project.find(t,this.context.cwd)]);if(await n.restoreInstallState(),!s)throw new ke.WorkspaceRequiredError(n.cwd,this.context.cwd);return{cache:r,configuration:t,project:n,workspace:s}}getWorkspaces(t){let r=this.workspace;return r?r[0]==="."?t.workspaces.filter(n=>n.cwd===this.context.cwd):t.workspaces.filter(n=>{let s=[...r,...r.map(a=>mr.default.join(this.context.cwd,a))];return Je.default.some([this.getWorkspaceName(n),n.cwd],s)}):t.workspaces}includeWorkspace(t){return t.workspaces.length>1}get dependencyTypes(){return this.type?[this.type]:Ye}getDependencies(t,r){let n=[];for(let a of r){let{anchoredLocator:i,project:o}=a,h=o.storedPackages.get(i.locatorHash);h||this.throw(t,i);for(let d of this.dependencyTypes)for(let f of a.manifest[d].values()){let{range:R}=f;if(R.includes(":")&&!/(npm|patch):/.test(R))continue;let p=h.dependencies.get(f.identHash);p||this.throw(t,f);let v=o.storedResolutions.get(p.descriptorHash);v||this.throw(t,p);let m=o.storedPackages.get(v);m||this.throw(t,p),n.push({dependencyType:d,descriptor:f,name:P.structUtils.stringifyIdent(f),pkg:m,workspace:a})}}if(!this.patterns.length)return n;let s=n.filter(({name:a})=>Je.default.isMatch(a,this.patterns));if(!s.length)throw new V.UsageError(`Pattern ${P.formatUtils.prettyList(t,this.patterns,P.FormatType.CODE)} doesn't match any packages referenced by any workspace`);return s}throw(t,r){let n=P.structUtils.prettyIdent(t,r);throw new Error(`Package for ${n} not found in the project`)}getSeverity(t,r){let n=et.default.coerce(t),s=et.default.coerce(r);return n.major===0||s.major>n.major?"major":s.minor>n.minor?"minor":"patch"}async getOutdatedDependencies(t,r,n,s){let a=n.map(async({dependencyType:i,descriptor:o,name:h,pkg:d,workspace:f})=>{if(f.project.tryWorkspaceByLocator(d))return;let{latest:R,range:p,url:v}=await r.fetch({descriptor:o,includeRange:this.includeRange,includeURL:this.includeURL,pkg:d});if(s==null||s.tick(),dr(d.version,R))return{current:d.version,latest:R,name:h,range:p,severity:{latest:this.getSeverity(d.version,R),range:p?this.getSeverity(d.version,p):void 0},type:i,url:v,workspace:this.includeWorkspace(t)?this.getWorkspaceName(f):void 0}});return(await Promise.all(a)).filter(hr).filter(i=>{var o,h;return(h=(o=this.severity)==null?void 0:o.includes(i.severity.latest))!=null?h:!0}).sort((i,o)=>i.name.localeCompare(o.name))}getWorkspaceName(t){return t.manifest.name?P.structUtils.stringifyIdent(t.manifest.name):t.computeCandidateName()}printOutdatedCount(t,r){let n=[P.MessageName.UNNAMED,r===1?"1 dependency is out of date":`${r} dependencies are out of date`];this.check?t.reportError(...n):t.reportWarning(...n)}printUpToDate(t,r){let n="\u2728 All your dependencies are up to date!";r.reportInfo(P.MessageName.UNNAMED,P.formatUtils.pretty(t,n,"green"))}};_e.paths=[["outdated"]],_e.usage=V.Command.Usage({description:"view outdated dependencies",details:`
This command finds outdated dependencies in a project and prints the result in a table or JSON format.
This command accepts glob patterns as arguments to filter the output. Make sure to escape the patterns, to prevent your own shell from trying to expand them.
`,examples:[["View outdated dependencies","yarn outdated"],["View outdated dependencies with the `@babel` scope","yarn outdated '@babel/*'"],["Filter results to only include devDependencies","yarn outdated --type devDependencies"],["Filter results to only include major version updates","yarn outdated --severity major"]]});var zn={commands:[_e]},Zn=zn;return Vn;})();
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/
return plugin;
}
};