ado-npm-auth 0.10.3 → 0.11.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.
Files changed (2) hide show
  1. package/dist/ado-npm-auth.cjs +114 -116
  2. package/package.json +4 -4
@@ -1,114 +1,112 @@
1
- "use strict";var lO=Object.create;var dg=Object.defineProperty;var fO=Object.getOwnPropertyDescriptor;var hO=Object.getOwnPropertyNames;var pO=Object.getPrototypeOf,dO=Object.prototype.hasOwnProperty;var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of hO(t))!dO.call(e,i)&&i!==r&&dg(e,i,{get:()=>t[i],enumerable:!(n=fO(t,i))||n.enumerable});return e};var Ve=(e,t,r)=>(r=e!=null?lO(pO(e)):{},gO(t||!e||!e.__esModule?dg(r,"default",{value:e,enumerable:!0}):r,e));var Bn=A(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.processGitOutput=gt.gitFailFast=gt.git=gt.clearGitObservers=gt.addGitObserver=gt.GitError=void 0;var mO=require("child_process"),nn=class extends Error{constructor(t,r,n){r instanceof Error?super(`${t}: ${r.message}`):n?.stderr?super(`${t} -- stderr:
2
- ${n.stderr}`):super(t),this.originalError=r,this.gitOutput=n}};gt.GitError=nn;var yO=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,AO=!!process.env.GIT_DEBUG,$n=[],dc;function wO(e){return $n.push(e),()=>EO(e)}gt.addGitObserver=wO;function bO(){$n.splice(0,$n.length)}gt.clearGitObservers=bO;function EO(e){let t=$n.indexOf(e);t>-1&&$n.splice(t,1)}function gg(e,t){if(e.some(c=>c.startsWith("--upload-pack")))throw new nn("git command contains --upload-pack, which is not allowed: "+e.join(" "));let r=`git ${e.join(" ")}`,{throwOnError:n,description:i=r,debug:s=AO,...o}=t||{};s&&console.log(r);let a;try{a=(0,mO.spawnSync)("git",e,{maxBuffer:yO,...o})}catch(c){throw new nn(`${i} failed (while spawning process)`,c)}let u={...a,stderr:(a.stderr||"").toString().trimEnd(),stdout:(a.stdout||"").toString().trimEnd(),success:a.status===0};if(s&&(console.log("exited with code "+a.status),u.stdout&&console.log(`git stdout:
1
+ "use strict";var wP=Object.create;var og=Object.defineProperty;var bP=Object.getOwnPropertyDescriptor;var EP=Object.getOwnPropertyNames;var _P=Object.getPrototypeOf,SP=Object.prototype.hasOwnProperty;var E=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var vP=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of EP(e))!SP.call(t,i)&&i!==r&&og(t,i,{get:()=>e[i],enumerable:!(n=bP(e,i))||n.enumerable});return t};var pt=(t,e,r)=>(r=t!=null?wP(_P(t)):{},vP(e||!t||!t.__esModule?og(r,"default",{value:t,enumerable:!0}):r,t));var Vn=E(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.processGitOutput=Lt.gitFailFast=Lt.git=Lt.clearGitObservers=Lt.addGitObserver=Lt.GitError=void 0;var CP=require("child_process"),mn=class extends Error{constructor(e,r,n){r instanceof Error?super(`${e}: ${r.message}`):n?.stderr?super(`${e} -- stderr:
2
+ ${n.stderr}`):super(e),this.originalError=r,this.gitOutput=n}};Lt.GitError=mn;var xP=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,PP=!!process.env.GIT_DEBUG,Yn=[],Ac;function OP(t){return Yn.push(t),()=>LP(t)}Lt.addGitObserver=OP;function RP(){Yn.splice(0,Yn.length)}Lt.clearGitObservers=RP;function LP(t){let e=Yn.indexOf(t);e>-1&&Yn.splice(e,1)}function ag(t,e){if(t.some(c=>c.startsWith("--upload-pack")))throw new mn("git command contains --upload-pack, which is not allowed: "+t.join(" "));let r=`git ${t.join(" ")}`,{throwOnError:n,description:i=r,debug:s=PP,...o}=e||{};s&&console.log(r);let a;try{a=(0,CP.spawnSync)("git",t,{maxBuffer:xP,...o})}catch(c){throw new mn(`${i} failed (while spawning process)`,c)}let u={...a,stderr:(a.stderr||"").toString().trimEnd(),stdout:(a.stdout||"").toString().trimEnd(),success:a.status===0};if(s&&(console.log("exited with code "+a.status),u.stdout&&console.log(`git stdout:
3
3
  `,u.stdout),u.stderr&&console.warn(`git stderr:
4
- `,u.stderr)),!dc){dc=!0;for(let c of $n)c(e,u);dc=!1}if(!u.success&&n)throw new nn(`${i} failed${u.stderr?`
5
- ${u.stderr}`:""}`,void 0,u);return u}gt.git=gg;function _O(e,t){let r=gg(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new nn(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
4
+ `,u.stderr)),!Ac){Ac=!0;for(let c of Yn)c(t,u);Ac=!1}if(!u.success&&n)throw new mn(`${i} failed${u.stderr?`
5
+ ${u.stderr}`:""}`,void 0,u);return u}Lt.git=ag;function DP(t,e){let r=ag(t,e);if(!r.success)throw e?.noExitCode||(process.exitCode=1),new mn(`CRITICAL ERROR: running git command: git ${t.join(" ")}!
6
6
  ${r.stdout?.toString().trimEnd()}
7
- ${r.stderr?.toString().trimEnd()}`)}gt.gitFailFast=_O;function vO(e,t){return e.success?e.stdout.split(/\n/).map(r=>r.trim()).filter(r=>!!r&&(!t?.excludeNodeModules||!r.includes("node_modules"))):[]}gt.processGitOutput=vO});var gc=A(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.getConfigValue=void 0;var SO=Bn();function CO(e){let{key:t,...r}=e,n=(0,SO.git)(["config",t],r);return n.success?n.stdout.trim():null}co.getConfigValue=CO});var mc=A((r6,mg)=>{"use strict";mg.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 Ag=A((n6,yg)=>{"use strict";var xO=mc();function PO(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=xO(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}yg.exports=PO});var Sg=A((i6,vg)=>{"use strict";var OO=Ag();function RO(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var FO=RO(OO);function LO(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var bg={},DO="text/plain",TO="us-ascii",wg=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),kO=(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,p=""]=l.split("=").map(d=>d.trim());return h==="charset"&&(p=p.toLowerCase(),p===TO)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==DO)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function NO(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 kO(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,p=i.pathname.slice(a,h);u+=p.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];wg(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()])wg(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 IO=Object.freeze({__proto__:null,default:NO}),$O=LO(IO);Object.defineProperty(bg,"__esModule",{value:!0});var BO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MO=$O,jO=Eg(MO),qO=FO.default,WO=Eg(qO);function Eg(e){return e&&e.__esModule?e:{default:e}}var _g=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,i=function(u){var c=new Error(u);throw c.subject_url=t,c};(typeof t!="string"||!t.trim())&&i("Invalid url."),t.length>e.MAX_INPUT_LENGTH&&i("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),r&&((typeof r>"u"?"undefined":BO(r))!=="object"&&(r={stripHash:!1}),t=(0,jO.default)(t,r));var s=(0,WO.default)(t);if(s.parse_failed){var o=s.href.match(n);o?(s.protocols=["ssh"],s.protocol="ssh",s.resource=o[2],s.host=o[2],s.user=o[1],s.pathname="/"+o[3],s.parse_failed=!1):i("URL parsing failed.")}return s};_g.MAX_INPUT_LENGTH=2048;var UO=bg.default=_g;vg.exports=UO});var Pg=A((s6,xg)=>{"use strict";var GO=mc();function Cg(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=GO(e);if(e=e.substring(e.indexOf("://")+3),Cg(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}xg.exports=Cg});var Fg=A((o6,Rg)=>{"use strict";var HO=Sg(),Og=Pg();function zO(e){let t=HO(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),Og(t.protocols)||t.protocols.length===0&&Og(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}Rg.exports=zO});var Dg=A((a6,Lg)=>{"use strict";var YO=Fg();function yc(e,t){if(t=t||[],typeof e!="string")throw new Error("The url must be a string.");if(!t.every(function(_){return typeof _=="string"}))throw new Error("The refs should contain only strings");var r=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;r.test(e)&&(e="https://github.com/"+e);var n=YO(e),i=n.resource.split("."),s=null;switch(n.toString=function(_){return yc.stringify(this,_)},n.source=i.length>2?i.slice(1-i.length).join("."):n.source=n.resource,n.git_suffix=/\.git$/.test(n.pathname),n.name=decodeURIComponent((n.pathname||n.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),n.owner=decodeURIComponent(n.user),n.source){case"git.cloudforge.com":n.owner=n.user,n.organization=i[0],n.source="cloudforge.com";break;case"visualstudio.com":if(n.resource==="vs-ssh.visualstudio.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3],n.full_name=s[2]+"/"+s[3]);break}else{s=n.name.split("/"),s.length===2?(n.owner=s[1],n.name=s[1],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name);break}case"dev.azure.com":case"azure.com":if(n.resource==="ssh.dev.azure.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3]);break}else{s=n.name.split("/"),s.length===5?(n.organization=s[0],n.owner=s[1],n.name=s[4],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name),n.query&&n.query.path&&(n.filepath=n.query.path.replace(/^\/+/g,"")),n.query&&n.query.version&&(n.ref=n.query.version.replace(/^GB/,""));break}default:s=n.name.split("/");var o=s.length-1;if(s.length>=2){var a=s.indexOf("-",2),u=s.indexOf("blob",2),c=s.indexOf("tree",2),f=s.indexOf("commit",2),l=s.indexOf("issues",2),h=s.indexOf("src",2),p=s.indexOf("raw",2),d=s.indexOf("edit",2);o=a>0?a-1:u>0&&c>0?Math.min(u-1,c-1):u>0?u-1:l>0?l-1:c>0?c-1:f>0?f-1:h>0?h-1:p>0?p-1:d>0?d-1:o,n.owner=s.slice(0,o).join("/"),n.name=s[o],f&&l<0&&(n.commit=s[o+2])}n.ref="",n.filepathtype="",n.filepath="";var g=s.length>o&&s[o+1]==="-"?o+1:o;s.length>g+2&&["raw","src","blob","tree","edit"].indexOf(s[g+1])>=0&&(n.filepathtype=s[g+1],n.ref=s[g+2],s.length>g+3&&(n.filepath=s.slice(g+3).join("/"))),n.organization=n.owner;break}n.full_name||(n.full_name=n.owner,n.name&&(n.full_name&&(n.full_name+="/"),n.full_name+=n.name)),n.owner.startsWith("scm/")&&(n.source="bitbucket-server",n.owner=n.owner.replace("scm/",""),n.organization=n.owner,n.full_name=n.owner+"/"+n.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,b=m.exec(n.pathname);return b!=null&&(n.source="bitbucket-server",b[1]==="users"?n.owner="~"+b[2]:n.owner=b[2],n.organization=n.owner,n.name=b[3],s=b[4].split("/"),s.length>1&&(["raw","browse"].indexOf(s[1])>=0?(n.filepathtype=s[1],s.length>2&&(n.filepath=s.slice(2).join("/"))):s[1]==="commits"&&s.length>2&&(n.commit=s[2])),n.full_name=n.owner+"/"+n.name,n.query.at?n.ref=n.query.at:n.ref=""),t.length!==0&&n.ref&&(n.ref=XO(n.href,t)||n.ref,n.filepath=n.href.split(n.ref+"/")[1]),n}yc.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?VO(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+KO(e)+i;default:return e.href}};function VO(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function KO(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:var t=e.full_name.split("/").map(function(r){return encodeURIComponent(r)}).join("/");return t}}function XO(e,t){var r="";return t.forEach(function(n){e.includes(n)&&n.length>r.length&&(r=n)}),r}Lg.exports=yc});var Tg=A(Mn=>{"use strict";var JO=Mn&&Mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.getRepositoryName=void 0;var QO=JO(Dg());function ZO(e){try{let t=(0,QO.default)(e.replace("/_optimized/","/").replace("/DefaultCollection/","/")),r=t.host||"",n=r.endsWith(".visualstudio.com");if(!n&&r!=="dev.azure.com"&&r!=="ssh.dev.azure.com")return t.full_name;let i=t.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(i)return`${i[2]}/${i[3]}/${t.name}`;let s=t.organization;return!s&&n&&(s=r.match(/([^.@]+)\.visualstudio\.com$/)?.[1]),`${s}/${t.owner}/${t.name}`}catch{return""}}Mn.getRepositoryName=ZO});var Ac=A(jn=>{"use strict";var Ng=jn&&jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.getDefaultRemote=void 0;var eR=Ng(require("fs")),tR=Ng(require("path")),rR=wc(),kg=Tg(),nR=Bn();function iR(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=b=>i&&console.log(b),o=b=>{if(n)throw new Error(b);s(b)},a=(0,rR.findGitRoot)(r),u={},c=tR.default.join(a,"package.json");try{u=JSON.parse(eR.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,kg.getRepositoryName)(l),p=(0,nR.git)(["remote","-v"],{cwd:r});p.success||o(`Could not determine available git remotes under "${r}"`);let d={};if(p.stdout.split(`
8
- `).forEach(b=>{let[_,P]=b.split(/\s+/),F=(0,kg.getRepositoryName)(P);F&&(d[F]=_)}),h){if(d[h])return d[h];o(`Could not find remote pointing to repository "${h}".`)}let g=Object.values(d),m=["upstream","origin",...g];for(let b of m)if(g.includes(b))return s(`Default to remote "${b}"`),b;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}jn.getDefaultRemote=iR});var vc=A(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.listAllTrackedFiles=ne.getDefaultBranch=ne.parseRemoteBranch=ne.getRemoteBranch=ne.getParentBranch=ne.revertLocalChanges=ne.stageAndCommit=ne.commit=ne.stage=ne.init=ne.getFileAddedHash=ne.getCurrentHash=ne.getShortBranchName=ne.getFullBranchRef=ne.getBranchName=ne.getUserEmail=ne.getRecentCommitMessages=ne.getStagedChanges=ne.getChangesBetweenRefs=ne.getBranchChanges=ne.getChanges=ne.getUnstagedChanges=ne.fetchRemoteBranch=ne.fetchRemote=ne.getUntrackedChanges=void 0;var bc=gc(),ye=Bn(),Ec=["--no-pager","diff","--name-only","--relative"];function sR(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,ye.git)(["ls-files","--others","--exclude-standard"],{description:"Gathering information about untracked changes",throwOnError:!0,...t});return(0,ye.processGitOutput)(r,{excludeNodeModules:!0})}ne.getUntrackedChanges=sR;function Ig(e,t){let{remote:r,remoteBranch:n,options:i,...s}=typeof e=="string"?{remote:e,cwd:t}:e;if(n&&!r)throw new Error('Must provide "remote" when using "remoteBranch" option');let o=["fetch","--",...r?[r]:[],...n?[n]:[],...i||[]];(0,ye.git)(o,{description:r?`Fetching ${n?`branch "${n}" from `:""}remote "${r}"`:"Fetching all remotes",throwOnError:!0,...s})}ne.fetchRemote=Ig;function oR(e,t,r){Ig({remote:e,remoteBranch:t,cwd:r,throwOnError:!0})}ne.fetchRemoteBranch=oR;function aR(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,ye.git)(Ec,{description:"Gathering information about unstaged changes",throwOnError:!0,...t});return(0,ye.processGitOutput)(r,{excludeNodeModules:!0})}ne.getUnstagedChanges=aR;function uR(e,t){return _c({fromRef:e,cwd:t,throwOnError:!0})}ne.getChanges=uR;function cR(e,t){let{branch:r,...n}=typeof e=="string"?{branch:e,cwd:t}:e;return _c({fromRef:r,throwOnError:!0,...n})}ne.getBranchChanges=cR;function _c(e,t,r,n,i){let s;typeof e=="string"?s={cwd:i}:{fromRef:e,toRef:t,options:r,pattern:n,...s}=e;let o=`${e}...${t||""}`,a=(0,ye.git)([...Ec,...r||[],o,...n?["--",n]:[]],{description:`Gathering information about changes between refs (${o})`,throwOnError:!0,...s});return(0,ye.processGitOutput)(a,{excludeNodeModules:!0})}ne.getChangesBetweenRefs=_c;function lR(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,ye.git)([...Ec,"--staged"],{description:"Gathering information about staged changes",throwOnError:!0,...t});return(0,ye.processGitOutput)(r,{excludeNodeModules:!0})}ne.getStagedChanges=lR;function fR(e,t){let{branch:r,...n}=typeof e=="string"?{branch:e,cwd:t}:e,i=(0,ye.git)(["log","--decorate","--pretty=format:%s",`${r}..HEAD`],{description:`Getting recent commit messages for branch "${r}"`,...n});return(0,ye.processGitOutput)(i)}ne.getRecentCommitMessages=fR;function $g(e){let t=typeof e=="string"?{cwd:e}:e;return(0,bc.getConfigValue)({key:"user.email",...t})}ne.getUserEmail=$g;function Bg(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,ye.git)(["rev-parse","--abbrev-ref","HEAD"],{description:"Getting current branch name",...t});return r.success?r.stdout:null}ne.getBranchName=Bg;function hR(e,t){let{branch:r,...n}=typeof e=="string"?{branch:e,cwd:t}:e,i=(0,ye.git)(["show-ref","--heads",r],n);return i.success?i.stdout.split(" ")[1]:null}ne.getFullBranchRef=hR;function pR(e,t){let{fullBranchRef:r,...n}=typeof e=="string"?{fullBranchRef:e,cwd:t}:e,i=(0,ye.git)(["rev-parse","--abbrev-ref",r],n);return i.success&&i.stdout||null}ne.getShortBranchName=pR;function dR(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,ye.git)(["rev-parse","HEAD"],{description:"Getting current git hash",...t});return r.success?r.stdout:null}ne.getCurrentHash=dR;function gR(e,t){let{filename:r,...n}=typeof e=="string"?{filename:e,cwd:t}:e,i=(0,ye.git)(["rev-list","--max-count=1","HEAD",r],n);return i.success?i.stdout.trim():void 0}ne.getFileAddedHash=gR;function mR(e,t,r){let{email:n,username:i,...s}=typeof e=="string"?{cwd:e,email:t,username:r}:e;if((0,ye.git)(["init"],{...s,throwOnError:!0}),!(0,bc.getConfigValue)({key:"user.name",...s})){if(!i)throw new Error("must include a username when initializing git repo");(0,ye.git)(["config","user.name",i],s)}if(!$g(s)){if(!n)throw new Error("must include a email when initializing git repo");(0,ye.git)(["config","user.email",n],s)}}ne.init=mR;function Mg(e,t){let{patterns:r,...n}=Array.isArray(e)?{patterns:e,cwd:t}:e;for(let i of r)(0,ye.git)(["add",i],{...n,description:`Staging changes (git add ${i})`})}ne.stage=Mg;function jg(e,t,r){let{message:n,options:i,...s}=typeof e=="string"?{message:e,cwd:t,options:r}:e;(0,ye.git)(["commit","-m",n,...i||[]],{throwOnError:!0,description:"Committing changes",...s})}ne.commit=jg;function yR(e,t,r,n){let i=Array.isArray(e)?{patterns:e,message:t,cwd:r,options:n}:e;Mg(i),jg(i)}ne.stageAndCommit=yR;function AR(e){let t=typeof e=="string"?{cwd:e}:e,r=`workspace-tools_${new Date().getTime()}`;if(!(0,ye.git)(["stash","push","-u","-m",r],t).success)return!1;let n=(0,ye.git)(["stash","list"],t);if(n.success){let i=n.stdout.split(/\n/).find(s=>s.includes(r))?.match(/^[^:]+/);if(i)return(0,ye.git)(["stash","drop",i[0]],t),!0}return!1}ne.revertLocalChanges=AR;function wR(e){let t=Bg({cwd:e});if(!t||t==="HEAD")return null;let r=(0,ye.git)(["show-branch","-a"],{cwd:e});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}ne.getParentBranch=wR;function bR(e,t){let r=typeof e=="string"?{branch:e,cwd:t}:e,n=(0,ye.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${r.branch}@{u}`],r);return n.success?n.stdout.trim():null}ne.getRemoteBranch=bR;function ER(e){if(typeof e=="string"){let s=e,o=s.indexOf("/",0);return{remote:s.substring(0,o),remoteBranch:s.substring(o+1)}}let{branch:t,knownRemotes:r=["origin","upstream"],...n}=e;if(!t.includes("/"))return{remote:"",remoteBranch:t};let i=r.find(s=>t.startsWith(`${s}/`));return i||(i=(0,ye.git)(["remote"],n).stdout.trim().split(/\n/).find(o=>t.startsWith(`${o}/`))),i?{remote:i,remoteBranch:t.slice(i.length+1)}:{remote:"",remoteBranch:t}}ne.parseRemoteBranch=ER;function _R(e){let t=typeof e=="string"?{cwd:e}:e;return(0,bc.getConfigValue)({key:"init.defaultBranch",...t})||"master"}ne.getDefaultBranch=_R;function vR(e,t){let{patterns:r,...n}=Array.isArray(e)?{patterns:e,cwd:t}:e,i=(0,ye.git)(["ls-files",...r],{throwOnError:!0,...n});return(0,ye.processGitOutput)(i)}ne.listAllTrackedFiles=vR});var qg=A(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.getDefaultRemoteBranch=void 0;var SR=Ac(),CR=Bn(),xR=vc();function PR(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,SR.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,CR.git)(["remote","show",o],{cwd:i}),u;return a.success&&(u=a.stdout.split(/\n/).find(c=>c.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),u||(u=(0,xR.getDefaultBranch)({cwd:i,throwOnError:n.strict})),`${o}/${u}`}lo.getDefaultRemoteBranch=PR});var Wg=A(Re=>{"use strict";var OR=Re&&Re.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Sc=Re&&Re.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&OR(t,e,r)};Object.defineProperty(Re,"__esModule",{value:!0});Re.getConfigValue=Re.gitFailFast=Re.git=Re.clearGitObservers=Re.addGitObserver=Re.GitError=void 0;var Bi=Bn();Object.defineProperty(Re,"GitError",{enumerable:!0,get:function(){return Bi.GitError}});Object.defineProperty(Re,"addGitObserver",{enumerable:!0,get:function(){return Bi.addGitObserver}});Object.defineProperty(Re,"clearGitObservers",{enumerable:!0,get:function(){return Bi.clearGitObservers}});Object.defineProperty(Re,"git",{enumerable:!0,get:function(){return Bi.git}});Object.defineProperty(Re,"gitFailFast",{enumerable:!0,get:function(){return Bi.gitFailFast}});var RR=gc();Object.defineProperty(Re,"getConfigValue",{enumerable:!0,get:function(){return RR.getConfigValue}});Sc(Ac(),Re);Sc(qg(),Re);Sc(vc(),Re)});var hr=A(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.logVerboseWarning=void 0;function FR(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
9
- `:""}`,t?.stack||t||"")}fo.logVerboseWarning=FR});var wc=A(mt=>{"use strict";var Gg=mt&&mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mt,"__esModule",{value:!0});mt.isChildOf=mt.findProjectRoot=mt.findPackageRoot=mt.findGitRoot=mt.searchUp=void 0;var Pr=Gg(require("path")),LR=Gg(require("fs")),DR=Cc(),TR=Wg(),Ug=hr();function Hg(e,t){let r=typeof e=="string"?[e]:e;t=Pr.default.resolve(t);let n=Pr.default.parse(t).root,i;for(;!i&&t!==n&&(i=r.find(s=>LR.default.existsSync(Pr.default.join(t,s))),!i);)t=Pr.default.dirname(t);return i?Pr.default.join(t,i):void 0}mt.searchUp=Hg;function zg(e){let t=(0,TR.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return Pr.default.normalize(t.stdout)}mt.findGitRoot=zg;function kR(e){let t=Hg("package.json",e);return t&&Pr.default.dirname(t)}mt.findPackageRoot=kR;function NR(e){let t;try{t=(0,DR.getWorkspaceManagerRoot)(e)}catch(r){(0,Ug.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,Ug.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||zg(e)}mt.findProjectRoot=NR;function IR(e,t){let r=Pr.default.relative(e,t);return/^[.\/\\]+$/.test(r)}mt.isChildOf=IR});var xc=A(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.isCachingEnabled=qn.setCachingEnabled=void 0;var Yg=!0;function $R(e){Yg=e}qn.setCachingEnabled=$R;function BR(){return Yg}qn.isCachingEnabled=BR});var Wn=A(Or=>{"use strict";var MR=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Or,"__esModule",{value:!0});Or.getWorkspaceManagerAndRoot=Or.getPreferredWorkspaceManager=void 0;var Vg=MR(require("path")),jR=wc(),qR=xc(),WR=new Map,Mi={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function Kg(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&Mi[e]?e:void 0}Or.getPreferredWorkspaceManager=Kg;function UR(e,t,r){if(t=t||WR,(0,qR.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||Kg();let n=(0,jR.searchUp)(r&&Mi[r]||Object.values(Mi),e);if(n){let i=Vg.default.basename(n);t.set(e,{manager:Object.keys(Mi).find(s=>Mi[s]===i),root:Vg.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}Or.getWorkspaceManagerAndRoot=UR});var Xg=A(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.splitWhen=Un.flatten=void 0;function GR(e){return e.reduce((t,r)=>[].concat(t,r),[])}Un.flatten=GR;function HR(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}Un.splitWhen=HR});var Jg=A(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.isEnoentCodeError=void 0;function zR(e){return e.code==="ENOENT"}ho.isEnoentCodeError=zR});var Qg=A(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.createDirentFromStats=void 0;var Pc=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 YR(e,t){return new Pc(e,t)}po.createDirentFromStats=YR});var rm=A(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.convertPosixPathToPattern=ke.convertWindowsPathToPattern=ke.convertPathToPattern=ke.escapePosixPath=ke.escapeWindowsPath=ke.escape=ke.removeLeadingDotSegment=ke.makeAbsolute=ke.unixify=void 0;var VR=require("os"),KR=require("path"),Zg=VR.platform()==="win32",XR=2,JR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,QR=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,ZR=/^\\\\([.?])/,eF=/\\(?![!()+@[\]{}])/g;function tF(e){return e.replace(/\\/g,"/")}ke.unixify=tF;function rF(e,t){return KR.resolve(e,t)}ke.makeAbsolute=rF;function nF(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(XR)}return e}ke.removeLeadingDotSegment=nF;ke.escape=Zg?Oc:Rc;function Oc(e){return e.replace(QR,"\\$2")}ke.escapeWindowsPath=Oc;function Rc(e){return e.replace(JR,"\\$2")}ke.escapePosixPath=Rc;ke.convertPathToPattern=Zg?em:tm;function em(e){return Oc(e).replace(ZR,"//$1").replace(eF,"/")}ke.convertWindowsPathToPattern=em;function tm(e){return Rc(e)}ke.convertPosixPathToPattern=tm});var im=A((E6,nm)=>{nm.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 am=A((_6,om)=>{var iF=im(),sm={"{":"}","(":")","[":"]"},sF=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=sm[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},oF=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=sm[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};om.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(iF(t))return!0;var n=sF;return r&&r.strict===!1&&(n=oF),n(t)}});var cm=A((v6,um)=>{"use strict";var aF=am(),uF=require("path").posix.dirname,cF=require("os").platform()==="win32",Fc="/",lF=/\\/g,fF=/[\{\[].*[\}\]]$/,hF=/(^|[^\\])([\{\[]|\([^\)]+$)/,pF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;um.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&cF&&t.indexOf(Fc)<0&&(t=t.replace(lF,Fc)),fF.test(t)&&(t+=Fc),t+="a";do t=uF(t);while(aF(t)||hF.test(t));return t.replace(pF,"$1")}});var go=A(Ft=>{"use strict";Ft.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ft.find=(e,t)=>e.nodes.find(r=>r.type===t);Ft.exceedsLimit=(e,t,r=1,n)=>n===!1||!Ft.isInteger(e)||!Ft.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Ft.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)};Ft.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Ft.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;Ft.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ft.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ft.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 mo=A((C6,fm)=>{"use strict";var lm=go();fm.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&lm.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&lm.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 pm=A((x6,hm)=>{"use strict";hm.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var _m=A((P6,Em)=>{"use strict";var dm=pm(),sn=(e,t,r)=>{if(dm(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(dm(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(sn.cache.hasOwnProperty(u))return sn.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let l=bm(e)||bm(t),h={min:e,max:t,a:c,b:f},p=[],d=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),c<0){let g=f<0?Math.abs(f):1;d=gm(g,Math.abs(c),h,n),c=h.a=0}return f>=0&&(p=gm(c,f,h,n)),h.negatives=d,h.positives=p,h.result=dF(d,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+d.length>1&&(h.result=`(?:${h.result})`),sn.cache[u]=h,h.result};function dF(e,t,r){let n=Lc(e,t,"-",!1,r)||[],i=Lc(t,e,"",!1,r)||[],s=Lc(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function gF(e,t){let r=1,n=1,i=ym(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=ym(e,r);for(i=Am(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Am(t+1,n)-1;return s=[...s],s.sort(AF),s}function mF(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=yF(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+=wF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function gm(e,t,r,n){let i=gF(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=mF(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+wm(a.count),o=c+1;continue}r.isPadded&&(l=bF(c,r,n)),f.string=l+f.pattern+wm(f.count),s.push(f),o=c+1,a=f}return s}function Lc(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!mm(t,"string",a)&&s.push(r+a),n&&mm(t,"string",a)&&s.push(r+a)}return s}function yF(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function AF(e,t){return e>t?1:t>e?-1:0}function mm(e,t,r){return e.some(n=>n[t]===r)}function ym(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Am(e,t){return e-e%Math.pow(10,t)}function wm(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function wF(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function bm(e){return/^-?(0+)\d/.test(e)}function bF(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}}`}}sn.cache={};sn.clearCache=()=>sn.cache={};Em.exports=sn});var kc=A((O6,Rm)=>{"use strict";var EF=require("util"),Sm=_m(),vm=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),_F=e=>t=>e===!0?Number(t):String(t),Dc=e=>typeof e=="number"||typeof e=="string"&&e!=="",ji=e=>Number.isInteger(+e),Tc=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},vF=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,SF=(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},Ao=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},CF=(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=>Ao(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Ao(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},Cm=(e,t,r,n)=>{if(r)return Sm(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},xm=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Sm(e,t,r)},Pm=(...e)=>new RangeError("Invalid range arguments: "+EF.inspect(...e)),Om=(e,t,r)=>{if(r.strictRanges===!0)throw Pm([e,t]);return[]},xF=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},PF=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Pm([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=Tc(a)||Tc(u)||Tc(c),l=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&vF(e,t,n)===!1,p=n.transform||_F(h);if(n.toRegex&&r===1)return Cm(Ao(e,l),Ao(t,l),!0,n);let d={negatives:[],positives:[]},g=_=>d[_<0?"negatives":"positives"].push(Math.abs(_)),m=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?g(i):m.push(SF(p(i,b),l,h)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?CF(d,n,l):xm(m,null,{wrap:!1,...n}):m},OF=(e,t,r=1,n={})=>{if(!ji(e)&&e.length>1||!ji(t)&&t.length>1)return Om(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 Cm(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?xm(f,null,{wrap:!1,options:n}):f},yo=(e,t,r,n={})=>{if(t==null&&Dc(e))return[e];if(!Dc(e)||!Dc(t))return Om(e,t,n);if(typeof r=="function")return yo(e,t,1,{transform:r});if(vm(r))return yo(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,ji(r)?ji(e)&&ji(t)?PF(e,t,r,i):OF(e,t,Math.max(Math.abs(r),1),i):r!=null&&!vm(r)?xF(r,i):yo(e,t,1,r)};Rm.exports=yo});var Dm=A((R6,Lm)=>{"use strict";var RF=kc(),Fm=go(),FF=(e,t={})=>{let r=(n,i={})=>{let s=Fm.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=Fm.reduce(n.nodes),l=RF(...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)};Lm.exports=FF});var Nm=A((F6,km)=>{"use strict";var LF=kc(),Tm=mo(),Gn=go(),on=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Gn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(on(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?on(i,s,r):i+s);return Gn.flatten(n)},DF=(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(on(a.pop(),Tm(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(on(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=Gn.reduce(i.nodes);if(Gn.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=LF(...l,t);h.length===0&&(h=Tm(i,t)),a.push(on(a.pop(),h)),i.nodes=[];return}let u=Gn.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(on(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(on(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return Gn.flatten(n(e))};km.exports=DF});var $m=A((L6,Im)=>{"use strict";Im.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:`
10
- `,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 Wm=A((D6,qm)=>{"use strict";var TF=mo(),{MAX_LENGTH:Bm,CHAR_BACKSLASH:Nc,CHAR_BACKTICK:kF,CHAR_COMMA:NF,CHAR_DOT:IF,CHAR_LEFT_PARENTHESES:$F,CHAR_RIGHT_PARENTHESES:BF,CHAR_LEFT_CURLY_BRACE:MF,CHAR_RIGHT_CURLY_BRACE:jF,CHAR_LEFT_SQUARE_BRACKET:Mm,CHAR_RIGHT_SQUARE_BRACKET:jm,CHAR_DOUBLE_QUOTE:qF,CHAR_SINGLE_QUOTE:WF,CHAR_NO_BREAK_SPACE:UF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:GF}=$m(),HF=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Bm,r.maxLength):Bm;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,p=()=>e[f++],d=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(d({type:"bos"});f<c;)if(o=s[s.length-1],h=p(),!(h===GF||h===UF)){if(h===Nc){d({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===jm){d({type:"text",value:"\\"+h});continue}if(h===Mm){u++;let g;for(;f<c&&(g=p());){if(h+=g,g===Mm){u++;continue}if(g===Nc){h+=p();continue}if(g===jm&&(u--,u===0))break}d({type:"text",value:h});continue}if(h===$F){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===BF){if(o.type!=="paren"){d({type:"text",value:h});continue}o=s.pop(),d({type:"text",value:h}),o=s[s.length-1];continue}if(h===qF||h===WF||h===kF){let g=h,m;for(t.keepQuotes!==!0&&(h="");f<c&&(m=p());){if(m===Nc){h+=m+p();continue}if(m===g){t.keepQuotes===!0&&(h+=m);break}h+=m}d({type:"text",value:h});continue}if(h===MF){l++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=d(m),s.push(o),d({type:"open",value:h});continue}if(h===jF){if(o.type!=="brace"){d({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,d({type:g,value:h}),l--,o=s[s.length-1];continue}if(h===NF&&l>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:TF(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===IF&&l>0&&o.commas===0){let g=o.nodes;if(l===0||g.length===0){d({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"){g.pop();let m=g[g.length-1];m.value+=a.value+h,a=m,o.ranges--;continue}d({type:"dot",value:h});continue}d({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let g=s[s.length-1],m=g.nodes.indexOf(o);g.nodes.splice(m,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),i};qm.exports=HF});var Hm=A((T6,Gm)=>{"use strict";var Um=mo(),zF=Dm(),YF=Nm(),VF=Wm(),_t=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=_t.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(_t.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};_t.parse=(e,t={})=>VF(e,t);_t.stringify=(e,t={})=>Um(typeof e=="string"?_t.parse(e,t):e,t);_t.compile=(e,t={})=>(typeof e=="string"&&(e=_t.parse(e,t)),zF(e,t));_t.expand=(e,t={})=>{typeof e=="string"&&(e=_t.parse(e,t));let r=YF(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};_t.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?_t.compile(e,t):_t.expand(e,t);Gm.exports=_t});var qi=A((k6,Xm)=>{"use strict";var KF=require("path"),Qt="\\\\/",zm=`[^${Qt}]`,XF=0,pr="\\.",JF="\\+",QF="\\?",wo="\\/",ZF="(?=.)",Ym="[^/]",Ic=`(?:${wo}|$)`,Vm=`(?:^|${wo})`,$c=`${pr}{1,2}${Ic}`,eL=`(?!${pr})`,tL=`(?!${Vm}${$c})`,rL=`(?!${pr}{0,1}${Ic})`,nL=`(?!${$c})`,iL=`[^.${wo}]`,sL=`${Ym}*?`,Km={DOT_LITERAL:pr,PLUS_LITERAL:JF,QMARK_LITERAL:QF,SLASH_LITERAL:wo,ONE_CHAR:ZF,QMARK:Ym,END_ANCHOR:Ic,DOTS_SLASH:$c,NO_DOT:eL,NO_DOTS:tL,NO_DOT_SLASH:rL,NO_DOTS_SLASH:nL,QMARK_NO_DOT:iL,STAR:sL,START_ANCHOR:Vm},oL={...Km,SLASH_LITERAL:`[${Qt}]`,QMARK:zm,STAR:`${zm}*?`,DOTS_SLASH:`${pr}{1,2}(?:[${Qt}]|$)`,NO_DOT:`(?!${pr})`,NO_DOTS:`(?!(?:^|[${Qt}])${pr}{1,2}(?:[${Qt}]|$))`,NO_DOT_SLASH:`(?!${pr}{0,1}(?:[${Qt}]|$))`,NO_DOTS_SLASH:`(?!${pr}{1,2}(?:[${Qt}]|$))`,QMARK_NO_DOT:`[^.${Qt}]`,START_ANCHOR:`(?:^|[${Qt}])`,END_ANCHOR:`(?:[${Qt}]|$)`},aL={__proto__:null,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"};Xm.exports={DEFAULT_MAX_EXTGLOB_RECURSION:XF,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:aL,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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:KF.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?oL:Km}}});var Wi=A(yt=>{"use strict";var uL=require("path"),cL=process.platform==="win32",{REGEX_BACKSLASH:lL,REGEX_REMOVE_BACKSLASH:fL,REGEX_SPECIAL_CHARS:hL,REGEX_SPECIAL_CHARS_GLOBAL:pL}=qi();yt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);yt.hasRegexChars=e=>hL.test(e);yt.isRegexChar=e=>e.length===1&&yt.hasRegexChars(e);yt.escapeRegex=e=>e.replace(pL,"\\$1");yt.toPosixSlashes=e=>e.replace(lL,"/");yt.removeBackslashes=e=>e.replace(fL,t=>t==="\\"?"":t);yt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};yt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:cL===!0||uL.sep==="\\";yt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?yt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};yt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};yt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var i0=A((I6,n0)=>{"use strict";var Jm=Wi(),{CHAR_ASTERISK:Bc,CHAR_AT:dL,CHAR_BACKWARD_SLASH:Ui,CHAR_COMMA:gL,CHAR_DOT:Mc,CHAR_EXCLAMATION_MARK:jc,CHAR_FORWARD_SLASH:r0,CHAR_LEFT_CURLY_BRACE:qc,CHAR_LEFT_PARENTHESES:Wc,CHAR_LEFT_SQUARE_BRACKET:mL,CHAR_PLUS:yL,CHAR_QUESTION_MARK:Qm,CHAR_RIGHT_CURLY_BRACE:AL,CHAR_RIGHT_PARENTHESES:Zm,CHAR_RIGHT_SQUARE_BRACKET:wL}=qi(),e0=e=>e===r0||e===Ui,t0=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},bL=(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,p=!1,d=!1,g=!1,m=!1,b=!1,_=!1,P=!1,F=!1,k=!1,q=0,M,$,j={value:"",depth:0,isGlob:!1},x=()=>c>=n,w=()=>u.charCodeAt(c+1),R=()=>(M=$,u.charCodeAt(++c));for(;c<n;){$=R();let re;if($===Ui){_=j.backslashes=!0,$=R(),$===qc&&(b=!0);continue}if(b===!0||$===qc){for(q++;x()!==!0&&($=R());){if($===Ui){_=j.backslashes=!0,R();continue}if($===qc){q++;continue}if(b!==!0&&$===Mc&&($=R())===Mc){if(h=j.isBrace=!0,d=j.isGlob=!0,k=!0,i===!0)continue;break}if(b!==!0&&$===gL){if(h=j.isBrace=!0,d=j.isGlob=!0,k=!0,i===!0)continue;break}if($===AL&&(q--,q===0)){b=!1,h=j.isBrace=!0,k=!0;break}}if(i===!0)continue;break}if($===r0){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},k===!0)continue;if(M===Mc&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&($===yL||$===dL||$===Bc||$===Qm||$===jc)===!0&&w()===Wc){if(d=j.isGlob=!0,g=j.isExtglob=!0,k=!0,$===jc&&c===f&&(F=!0),i===!0){for(;x()!==!0&&($=R());){if($===Ui){_=j.backslashes=!0,$=R();continue}if($===Zm){d=j.isGlob=!0,k=!0;break}}continue}break}if($===Bc){if(M===Bc&&(m=j.isGlobstar=!0),d=j.isGlob=!0,k=!0,i===!0)continue;break}if($===Qm){if(d=j.isGlob=!0,k=!0,i===!0)continue;break}if($===mL){for(;x()!==!0&&(re=R());){if(re===Ui){_=j.backslashes=!0,R();continue}if(re===wL){p=j.isBracket=!0,d=j.isGlob=!0,k=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&$===jc&&c===f){P=j.negated=!0,f++;continue}if(r.noparen!==!0&&$===Wc){if(d=j.isGlob=!0,i===!0){for(;x()!==!0&&($=R());){if($===Wc){_=j.backslashes=!0,$=R();continue}if($===Zm){k=!0;break}}continue}break}if(d===!0){if(k=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,d=!1);let L=u,W="",v="";f>0&&(W=u.slice(0,f),u=u.slice(f),l-=f),L&&d===!0&&l>0?(L=u.slice(0,l),v=u.slice(l)):d===!0?(L="",v=u):L=u,L&&L!==""&&L!=="/"&&L!==u&&e0(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(v&&(v=Jm.removeBackslashes(v)),L&&_===!0&&(L=Jm.removeBackslashes(L)));let O={prefix:W,input:e,start:f,base:L,glob:v,isBrace:h,isBracket:p,isGlob:d,isExtglob:g,isGlobstar:m,negated:P,negatedExtglob:F};if(r.tokens===!0&&(O.maxDepth=0,e0($)||o.push(j),O.tokens=o),r.parts===!0||r.tokens===!0){let re;for(let V=0;V<s.length;V++){let Ae=re?re+1:f,le=s[V],ge=e.slice(Ae,le);r.tokens&&(V===0&&f!==0?(o[V].isPrefix=!0,o[V].value=W):o[V].value=ge,t0(o[V]),O.maxDepth+=o[V].depth),(V!==0||ge!=="")&&a.push(ge),re=le}if(re&&re+1<e.length){let V=e.slice(re+1);a.push(V),r.tokens&&(o[o.length-1].value=V,t0(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=s,O.parts=a}return O};n0.exports=bL});var c0=A(($6,u0)=>{"use strict";var Gi=qi(),Ke=Wi(),{MAX_LENGTH:bo,POSIX_REGEX_SOURCE:EL,REGEX_NON_SPECIAL_CHARS:_L,REGEX_SPECIAL_CHARS_BACKREF:vL,REPLACEMENTS:s0}=Gi,SL=(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=>Ke.escapeRegex(i)).join("..")}return r},Hn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,o0=e=>{let t=[],r=0,n=0,i=0,s="",o=!1;for(let a of e){if(o===!0){s+=a,o=!1;continue}if(a==="\\"){s+=a,o=!0;continue}if(a==='"'){i=i===1?0:1,s+=a;continue}if(i===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(s),s="";continue}}}s+=a}return t.push(s),t},CL=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},a0=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(CL(t))return t.replace(/\\(.)/g,"$1")},xL=e=>{let t=e.map(a0).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let i=t[r],s=t[n],o=i[0];if(!(!o||i!==o.repeat(i.length)||s!==o.repeat(s.length))&&(i===s||i.startsWith(s)||s.startsWith(i)))return!0}return!1},Uc=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,i=0,s=!1;for(let o=1;o<e.length;o++){let a=e[o];if(s===!0){s=!1;continue}if(a==="\\"){s=!0;continue}if(a==='"'){i=i===1?0:1;continue}if(i!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},PL=e=>{let t=0,r=[];for(;t<e.length;){let i=Uc(e.slice(t),!1);if(!i||i.type!=="*")return;let s=o0(i.body).map(a=>a.trim());if(s.length!==1)return;let o=a0(s[0]);if(!o||o.length!==1)return;r.push(o),t+=i.end+1}return r.length<1?void 0:`${r.length===1?Ke.escapeRegex(r[0]):`[${r.map(i=>Ke.escapeRegex(i)).join("")}]`}*`},OL=e=>{let t=0,r=e.trim(),n=Uc(r);for(;n;)t++,r=n.body.trim(),n=Uc(r);return t},RL=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Gi.DEFAULT_MAX_EXTGLOB_RECURSION,n=o0(e).map(i=>i.trim());if(n.length>1&&(n.some(i=>i==="")||n.some(i=>/^[*?]+$/.test(i))||xL(n)))return{risky:!0};for(let i of n){let s=PL(i);if(s)return{risky:!0,safeOutput:s};if(OL(i)>r)return{risky:!0}}return{risky:!1}},Gc=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=s0[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(bo,r.maxLength):bo,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=Ke.isWindows(t),c=Gi.globChars(u),f=Gi.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK:P,QMARK_NO_DOT:F,STAR:k,START_ANCHOR:q}=c,M=T=>`(${a}(?:(?!${q}${T.dot?g:l}).)*?)`,$=r.dot?"":m,j=r.dot?P:F,x=r.bash===!0?M(r):k;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Ke.removePrefix(e,w),i=e.length;let R=[],L=[],W=[],v=s,O,re=()=>w.index===i-1,V=w.peek=(T=1)=>e[w.index+T],Ae=w.advance=()=>e[++w.index]||"",le=()=>e.slice(w.index+1),ge=(T="",ae=0)=>{w.consumed+=T,w.index+=ae},Te=T=>{w.output+=T.output!=null?T.output:T.value,ge(T.value)},st=()=>{let T=1;for(;V()==="!"&&(V(2)!=="("||V(3)==="?");)Ae(),w.start++,T++;return T%2===0?!1:(w.negated=!0,w.start++,!0)},Q=T=>{w[T]++,W.push(T)},dt=T=>{w[T]--,W.pop()},B=T=>{if(v.type==="globstar"){let ae=w.braces>0&&(T.type==="comma"||T.type==="brace"),N=T.extglob===!0||R.length&&(T.type==="pipe"||T.type==="paren");T.type!=="slash"&&T.type!=="paren"&&!ae&&!N&&(w.output=w.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=x,w.output+=v.output)}if(R.length&&T.type!=="paren"&&(R[R.length-1].inner+=T.value),(T.value||T.output)&&Te(T),v&&v.type==="text"&&T.type==="text"){v.value+=T.value,v.output=(v.output||"")+T.value;return}T.prev=v,o.push(T),v=T},me=(T,ae)=>{let N={...f[ae],conditions:1,inner:""};N.prev=v,N.parens=w.parens,N.output=w.output,N.startIndex=w.index,N.tokensIndex=o.length;let ie=(r.capture?"(":"")+N.open;Q("parens"),B({type:T,value:ae,output:w.output?"":d}),B({type:"paren",extglob:!0,value:Ae(),output:ie}),R.push(N)},Se=T=>{let ae=e.slice(T.startIndex,w.index+1),N=e.slice(T.startIndex+2,w.index),ie=RL(N,r);if((T.type==="plus"||T.type==="star")&&ie.risky){let E=ie.safeOutput?(T.output?"":d)+(r.capture?`(${ie.safeOutput})`:ie.safeOutput):void 0,S=o[T.tokensIndex];S.type="text",S.value=ae,S.output=E||Ke.escapeRegex(ae);for(let I=T.tokensIndex+1;I<o.length;I++)o[I].value="",o[I].output="",delete o[I].suffix;w.output=T.output+S.output,w.backtrack=!0,B({type:"paren",extglob:!0,value:O,output:""}),dt("parens");return}let fe=T.close+(r.capture?")":""),Ce;if(T.type==="negate"){let E=x;if(T.inner&&T.inner.length>1&&T.inner.includes("/")&&(E=M(r)),(E!==x||re()||/^\)+$/.test(le()))&&(fe=T.close=`)$))${E}`),T.inner.includes("*")&&(Ce=le())&&/^\.[^\\/.]+$/.test(Ce)){let S=Gc(Ce,{...t,fastpaths:!1}).output;fe=T.close=`)${S})${E})`}T.prev.type==="bos"&&(w.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:O,output:fe}),dt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let T=!1,ae=e.replace(vL,(N,ie,fe,Ce,E,S)=>Ce==="\\"?(T=!0,N):Ce==="?"?ie?ie+Ce+(E?P.repeat(E.length):""):S===0?j+(E?P.repeat(E.length):""):P.repeat(fe.length):Ce==="."?l.repeat(fe.length):Ce==="*"?ie?ie+Ce+(E?x:""):x:ie?N:`\\${N}`);return T===!0&&(r.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,N=>N.length%2===0?"\\\\":N?"\\":"")),ae===e&&r.contains===!0?(w.output=e,w):(w.output=Ke.wrapOutput(ae,w,t),w)}for(;!re();){if(O=Ae(),O==="\0")continue;if(O==="\\"){let N=V();if(N==="/"&&r.bash!==!0||N==="."||N===";")continue;if(!N){O+="\\",B({type:"text",value:O});continue}let ie=/^\\+/.exec(le()),fe=0;if(ie&&ie[0].length>2&&(fe=ie[0].length,w.index+=fe,fe%2!==0&&(O+="\\")),r.unescape===!0?O=Ae():O+=Ae(),w.brackets===0){B({type:"text",value:O});continue}}if(w.brackets>0&&(O!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&O===":"){let N=v.value.slice(1);if(N.includes("[")&&(v.posix=!0,N.includes(":"))){let ie=v.value.lastIndexOf("["),fe=v.value.slice(0,ie),Ce=v.value.slice(ie+2),E=EL[Ce];if(E){v.value=fe+E,w.backtrack=!0,Ae(),!s.output&&o.indexOf(v)===1&&(s.output=d);continue}}}(O==="["&&V()!==":"||O==="-"&&V()==="]")&&(O=`\\${O}`),O==="]"&&(v.value==="["||v.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&v.value==="["&&(O="^"),v.value+=O,Te({value:O});continue}if(w.quotes===1&&O!=='"'){O=Ke.escapeRegex(O),v.value+=O,Te({value:O});continue}if(O==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&B({type:"text",value:O});continue}if(O==="("){Q("parens"),B({type:"paren",value:O});continue}if(O===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Hn("opening","("));let N=R[R.length-1];if(N&&w.parens===N.parens+1){Se(R.pop());continue}B({type:"paren",value:O,output:w.parens?")":"\\)"}),dt("parens");continue}if(O==="["){if(r.nobracket===!0||!le().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Hn("closing","]"));O=`\\${O}`}else Q("brackets");B({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){B({type:"text",value:O,output:`\\${O}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Hn("opening","["));B({type:"text",value:O,output:`\\${O}`});continue}dt("brackets");let N=v.value.slice(1);if(v.posix!==!0&&N[0]==="^"&&!N.includes("/")&&(O=`/${O}`),v.value+=O,Te({value:O}),r.literalBrackets===!1||Ke.hasRegexChars(N))continue;let ie=Ke.escapeRegex(v.value);if(w.output=w.output.slice(0,-v.value.length),r.literalBrackets===!0){w.output+=ie,v.value=ie;continue}v.value=`(${a}${ie}|${v.value})`,w.output+=v.value;continue}if(O==="{"&&r.nobrace!==!0){Q("braces");let N={type:"brace",value:O,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};L.push(N),B(N);continue}if(O==="}"){let N=L[L.length-1];if(r.nobrace===!0||!N){B({type:"text",value:O,output:O});continue}let ie=")";if(N.dots===!0){let fe=o.slice(),Ce=[];for(let E=fe.length-1;E>=0&&(o.pop(),fe[E].type!=="brace");E--)fe[E].type!=="dots"&&Ce.unshift(fe[E].value);ie=SL(Ce,r),w.backtrack=!0}if(N.comma!==!0&&N.dots!==!0){let fe=w.output.slice(0,N.outputIndex),Ce=w.tokens.slice(N.tokensIndex);N.value=N.output="\\{",O=ie="\\}",w.output=fe;for(let E of Ce)w.output+=E.output||E.value}B({type:"brace",value:O,output:ie}),dt("braces"),L.pop();continue}if(O==="|"){R.length>0&&R[R.length-1].conditions++,B({type:"text",value:O});continue}if(O===","){let N=O,ie=L[L.length-1];ie&&W[W.length-1]==="braces"&&(ie.comma=!0,N="|"),B({type:"comma",value:O,output:N});continue}if(O==="/"){if(v.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",o.pop(),v=s;continue}B({type:"slash",value:O,output:p});continue}if(O==="."){if(w.braces>0&&v.type==="dot"){v.value==="."&&(v.output=l);let N=L[L.length-1];v.type="dots",v.output+=O,v.value+=O,N.dots=!0;continue}if(w.braces+w.parens===0&&v.type!=="bos"&&v.type!=="slash"){B({type:"text",value:O,output:l});continue}B({type:"dot",value:O,output:l});continue}if(O==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&V()==="("&&V(2)!=="?"){me("qmark",O);continue}if(v&&v.type==="paren"){let ie=V(),fe=O;if(ie==="<"&&!Ke.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(le()))&&(fe=`\\${O}`),B({type:"text",value:O,output:fe});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){B({type:"qmark",value:O,output:F});continue}B({type:"qmark",value:O,output:P});continue}if(O==="!"){if(r.noextglob!==!0&&V()==="("&&(V(2)!=="?"||!/[!=<:]/.test(V(3)))){me("negate",O);continue}if(r.nonegate!==!0&&w.index===0){st();continue}}if(O==="+"){if(r.noextglob!==!0&&V()==="("&&V(2)!=="?"){me("plus",O);continue}if(v&&v.value==="("||r.regex===!1){B({type:"plus",value:O,output:h});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||w.parens>0){B({type:"plus",value:O});continue}B({type:"plus",value:h});continue}if(O==="@"){if(r.noextglob!==!0&&V()==="("&&V(2)!=="?"){B({type:"at",extglob:!0,value:O,output:""});continue}B({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let N=_L.exec(le());N&&(O+=N[0],w.index+=N[0].length),B({type:"text",value:O});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=O,v.output=x,w.backtrack=!0,w.globstar=!0,ge(O);continue}let T=le();if(r.noextglob!==!0&&/^\([^?]/.test(T)){me("star",O);continue}if(v.type==="star"){if(r.noglobstar===!0){ge(O);continue}let N=v.prev,ie=N.prev,fe=N.type==="slash"||N.type==="bos",Ce=ie&&(ie.type==="star"||ie.type==="globstar");if(r.bash===!0&&(!fe||T[0]&&T[0]!=="/")){B({type:"star",value:O,output:""});continue}let E=w.braces>0&&(N.type==="comma"||N.type==="brace"),S=R.length&&(N.type==="pipe"||N.type==="paren");if(!fe&&N.type!=="paren"&&!E&&!S){B({type:"star",value:O,output:""});continue}for(;T.slice(0,3)==="/**";){let I=e[w.index+4];if(I&&I!=="/")break;T=T.slice(3),ge("/**",3)}if(N.type==="bos"&&re()){v.type="globstar",v.value+=O,v.output=M(r),w.output=v.output,w.globstar=!0,ge(O);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&!Ce&&re()){w.output=w.output.slice(0,-(N.output+v.output).length),N.output=`(?:${N.output}`,v.type="globstar",v.output=M(r)+(r.strictSlashes?")":"|$)"),v.value+=O,w.globstar=!0,w.output+=N.output+v.output,ge(O);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&T[0]==="/"){let I=T[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(N.output+v.output).length),N.output=`(?:${N.output}`,v.type="globstar",v.output=`${M(r)}${p}|${p}${I})`,v.value+=O,w.output+=N.output+v.output,w.globstar=!0,ge(O+Ae()),B({type:"slash",value:"/",output:""});continue}if(N.type==="bos"&&T[0]==="/"){v.type="globstar",v.value+=O,v.output=`(?:^|${p}|${M(r)}${p})`,w.output=v.output,w.globstar=!0,ge(O+Ae()),B({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-v.output.length),v.type="globstar",v.output=M(r),v.value+=O,w.output+=v.output,w.globstar=!0,ge(O);continue}let ae={type:"star",value:O,output:x};if(r.bash===!0){ae.output=".*?",(v.type==="bos"||v.type==="slash")&&(ae.output=$+ae.output),B(ae);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){ae.output=O,B(ae);continue}(w.index===w.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(w.output+=b,v.output+=b):r.dot===!0?(w.output+=_,v.output+=_):(w.output+=$,v.output+=$),V()!=="*"&&(w.output+=d,v.output+=d)),B(ae)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hn("closing","]"));w.output=Ke.escapeLast(w.output,"["),dt("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hn("closing",")"));w.output=Ke.escapeLast(w.output,"("),dt("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hn("closing","}"));w.output=Ke.escapeLast(w.output,"{"),dt("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&B({type:"maybe_slash",value:"",output:`${p}?`}),w.backtrack===!0){w.output="";for(let T of w.tokens)w.output+=T.output!=null?T.output:T.value,T.suffix&&(w.output+=T.suffix)}return w};Gc.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(bo,r.maxLength):bo,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=s0[e]||e;let s=Ke.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:p,START_ANCHOR:d}=Gi.globChars(s),g=r.dot?l:f,m=r.dot?h:f,b=r.capture?"":"?:",_={negated:!1,prefix:""},P=r.bash===!0?".*?":p;r.capture&&(P=`(${P})`);let F=$=>$.noglobstar===!0?P:`(${b}(?:(?!${d}${$.dot?c:o}).)*?)`,k=$=>{switch($){case"*":return`${g}${u}${P}`;case".*":return`${o}${u}${P}`;case"*.*":return`${g}${P}${o}${u}${P}`;case"*/*":return`${g}${P}${a}${u}${m}${P}`;case"**":return g+F(r);case"**/*":return`(?:${g}${F(r)}${a})?${m}${u}${P}`;case"**/*.*":return`(?:${g}${F(r)}${a})?${m}${P}${o}${u}${P}`;case"**/.*":return`(?:${g}${F(r)}${a})?${o}${u}${P}`;default:{let j=/^(.*?)\.(\w+)$/.exec($);if(!j)return;let x=k(j[1]);return x?x+o+j[2]:void 0}}},q=Ke.removePrefix(e,_),M=k(q);return M&&r.strictSlashes!==!0&&(M+=`${a}?`),M};u0.exports=Gc});var f0=A((B6,l0)=>{"use strict";var FL=require("path"),LL=i0(),Hc=c0(),zc=Wi(),DL=qi(),TL=e=>e&&typeof e=="object"&&!Array.isArray(e),Fe=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Fe(h,t,r));return h=>{for(let p of f){let d=p(h);if(d)return d}return!1}}let n=TL(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=zc.isWindows(t),o=n?Fe.compileRe(e,t):Fe.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=Fe(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:h,match:p,output:d}=Fe.test(f,o,t,{glob:e,posix:s}),g={glob:e,state:a,regex:o,posix:s,input:f,output:d,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(g),h===!1?(g.isMatch=!1,l?g:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,l?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),l?g:!0)};return r&&(c.state=a),c};Fe.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?zc.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=Fe.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Fe.matchBase=(e,t,r,n=zc.isWindows(r))=>(t instanceof RegExp?t:Fe.makeRe(t,r)).test(FL.basename(e));Fe.isMatch=(e,t,r)=>Fe(t,r)(e);Fe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Fe.parse(r,t)):Hc(e,{...t,fastpaths:!1});Fe.scan=(e,t)=>LL(e,t);Fe.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=Fe.toRegex(a,t);return n===!0&&(u.state=e),u};Fe.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=Hc.fastpaths(e,t)),i.output||(i=Hc(e,t)),Fe.compileRe(i,t,r,n)};Fe.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/$^/}};Fe.constants=DL;l0.exports=Fe});var p0=A((M6,h0)=>{"use strict";h0.exports=f0()});var w0=A((j6,A0)=>{"use strict";var g0=require("util"),m0=Hm(),Zt=p0(),Yc=Wi(),d0=e=>e===""||e==="./",y0=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},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=Zt(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let p of e){let d=l(p,!0);(h?!d.isMatch:d.isMatch)&&(h?n.add(d.output):(n.delete(d.output),i.add(d.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)=>Zt(e,t);be.isMatch=(e,t,r)=>Zt(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: "${g0.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>be.contains(e,n,r));if(typeof t=="string"){if(d0(e)||d0(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(!Yc.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=Zt(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=Zt(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: "${g0.inspect(e)}"`);return[].concat(t).every(n=>Zt(n,r)(e))};be.capture=(e,t,r)=>{let n=Yc.isWindows(r),s=Zt.makeRe(String(e),{...r,capture:!0}).exec(n?Yc.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};be.makeRe=(...e)=>Zt.makeRe(...e);be.scan=(...e)=>Zt.scan(...e);be.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of m0(String(n),t))r.push(Zt.parse(i,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!y0(e)?[e]:m0(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};be.hasBraces=y0;A0.exports=be});var R0=A(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.isAbsolute=se.partitionAbsoluteAndRelative=se.removeDuplicateSlashes=se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;var b0=require("path"),kL=cm(),Vc=w0(),E0="**",NL="\\",IL=/[*?]|^!/,$L=/\[[^[]*]/,BL=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,ML=/[!*+?@]\([^(]*\)/,jL=/,|\.\./,qL=/(?!^)\/{2,}/g;function _0(e,t={}){return!v0(e,t)}se.isStaticPattern=_0;function v0(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(NL)||IL.test(e)||$L.test(e)||BL.test(e)||t.extglob!==!1&&ML.test(e)||t.braceExpansion!==!1&&WL(e))}se.isDynamicPattern=v0;function WL(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 jL.test(n)}function UL(e){return Eo(e)?e.slice(1):e}se.convertToPositivePattern=UL;function GL(e){return"!"+e}se.convertToNegativePattern=GL;function Eo(e){return e.startsWith("!")&&e[1]!=="("}se.isNegativePattern=Eo;function S0(e){return!Eo(e)}se.isPositivePattern=S0;function HL(e){return e.filter(Eo)}se.getNegativePatterns=HL;function zL(e){return e.filter(S0)}se.getPositivePatterns=zL;function YL(e){return e.filter(t=>!Kc(t))}se.getPatternsInsideCurrentDirectory=YL;function VL(e){return e.filter(Kc)}se.getPatternsOutsideCurrentDirectory=VL;function Kc(e){return e.startsWith("..")||e.startsWith("./..")}se.isPatternRelatedToParentDirectory=Kc;function KL(e){return kL(e,{flipBackslashes:!1})}se.getBaseDirectory=KL;function XL(e){return e.includes(E0)}se.hasGlobStar=XL;function C0(e){return e.endsWith("/"+E0)}se.endsWithSlashGlobStar=C0;function JL(e){let t=b0.basename(e);return C0(e)||_0(t)}se.isAffectDepthOfReadingPattern=JL;function QL(e){return e.reduce((t,r)=>t.concat(x0(r)),[])}se.expandPatternsWithBraceExpansion=QL;function x0(e){let t=Vc.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}se.expandBraceExpansion=x0;function ZL(e,t){let{parts:r}=Vc.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}se.getPatternParts=ZL;function P0(e,t){return Vc.makeRe(e,t)}se.makeRe=P0;function eD(e,t){return e.map(r=>P0(r,t))}se.convertPatternsToRe=eD;function tD(e,t){return t.some(r=>r.test(e))}se.matchAny=tD;function rD(e){return e.replace(qL,"/")}se.removeDuplicateSlashes=rD;function nD(e){let t=[],r=[];for(let n of e)O0(n)?t.push(n):r.push(n);return[t,r]}se.partitionAbsoluteAndRelative=nD;function O0(e){return b0.isAbsolute(e)}se.isAbsolute=O0});var T0=A((W6,D0)=>{"use strict";var iD=require("stream"),F0=iD.PassThrough,sD=Array.prototype.slice;D0.exports=oD;function oD(){let e=[],t=sD.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=F0(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(L0(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 p(d){function g(){d.removeListener("merge2UnpipeEnd",g),d.removeListener("end",g),s&&d.removeListener("error",m),h()}function m(b){o.emit("error",b)}if(d._readableState.endEmitted)return h();d.on("merge2UnpipeEnd",g),d.on("end",g),s&&d.on("error",m),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<f.length;d++)p(f[d]);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 L0(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=L0(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(F0(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var N0=A(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.merge=void 0;var aD=T0();function uD(e){let t=aD(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>k0(e)),t.once("end",()=>k0(e)),t}_o.merge=uD;function k0(e){e.forEach(t=>t.emit("close"))}});var I0=A(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.isEmpty=zn.isString=void 0;function cD(e){return typeof e=="string"}zn.isString=cD;function lD(e){return e===""}zn.isEmpty=lD});var dr=A(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var fD=Xg();Xe.array=fD;var hD=Jg();Xe.errno=hD;var pD=Qg();Xe.fs=pD;var dD=rm();Xe.path=dD;var gD=R0();Xe.pattern=gD;var mD=N0();Xe.stream=mD;var yD=I0();Xe.string=yD});var j0=A(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.convertPatternGroupToTask=Je.convertPatternGroupsToTasks=Je.groupPatternsByBaseDirectory=Je.getNegativePatternsAsPositive=Je.getPositivePatterns=Je.convertPatternsToTasks=Je.generate=void 0;var Ht=dr();function AD(e,t){let r=$0(e,t),n=$0(t.ignore,t),i=B0(r),s=M0(r,n),o=i.filter(f=>Ht.pattern.isStaticPattern(f,t)),a=i.filter(f=>Ht.pattern.isDynamicPattern(f,t)),u=Xc(o,s,!1),c=Xc(a,s,!0);return u.concat(c)}Je.generate=AD;function $0(e,t){let r=e;return t.braceExpansion&&(r=Ht.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Ht.pattern.removeDuplicateSlashes(n))}function Xc(e,t,r){let n=[],i=Ht.pattern.getPatternsOutsideCurrentDirectory(e),s=Ht.pattern.getPatternsInsideCurrentDirectory(e),o=Jc(i),a=Jc(s);return n.push(...Qc(o,t,r)),"."in a?n.push(Zc(".",s,t,r)):n.push(...Qc(a,t,r)),n}Je.convertPatternsToTasks=Xc;function B0(e){return Ht.pattern.getPositivePatterns(e)}Je.getPositivePatterns=B0;function M0(e,t){return Ht.pattern.getNegativePatterns(e).concat(t).map(Ht.pattern.convertToPositivePattern)}Je.getNegativePatternsAsPositive=M0;function Jc(e){let t={};return e.reduce((r,n)=>{let i=Ht.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}Je.groupPatternsByBaseDirectory=Jc;function Qc(e,t,r){return Object.keys(e).map(n=>Zc(n,e[n],t,r))}Je.convertPatternGroupsToTasks=Qc;function Zc(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ht.pattern.convertToNegativePattern))}}Je.convertPatternGroupToTask=Zc});var W0=A(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.read=void 0;function wD(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){q0(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){el(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){q0(r,s);return}el(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),el(r,o)})})}vo.read=wD;function q0(e,t){e(t)}function el(e,t){e(null,t)}});var U0=A(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.read=void 0;function bD(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}}So.read=bD});var G0=A(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.createFileSystemAdapter=Rr.FILE_SYSTEM_ADAPTER=void 0;var Co=require("fs");Rr.FILE_SYSTEM_ADAPTER={lstat:Co.lstat,stat:Co.stat,lstatSync:Co.lstatSync,statSync:Co.statSync};function ED(e){return e===void 0?Rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Rr.FILE_SYSTEM_ADAPTER),e)}Rr.createFileSystemAdapter=ED});var H0=A(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var _D=G0(),tl=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=_D.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}};rl.default=tl});var an=A(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.statSync=Fr.stat=Fr.Settings=void 0;var z0=W0(),vD=U0(),nl=H0();Fr.Settings=nl.default;function SD(e,t,r){if(typeof t=="function"){z0.read(e,il(),t);return}z0.read(e,il(t),r)}Fr.stat=SD;function CD(e,t){let r=il(t);return vD.read(e,r)}Fr.statSync=CD;function il(e={}){return e instanceof nl.default?e:new nl.default(e)}});var K0=A((Q6,V0)=>{var Y0;V0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Y0||(Y0=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var J0=A((Z6,X0)=>{X0.exports=PD;var xD=K0();function PD(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?xD(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 sl=A(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xo=process.versions.node.split(".");if(xo[0]===void 0||xo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Q0=Number.parseInt(xo[0],10),OD=Number.parseInt(xo[1],10),Z0=10,RD=10,FD=Q0>Z0,LD=Q0===Z0&&OD>=RD;Po.IS_SUPPORT_READDIR_WITH_FILE_TYPES=FD||LD});var ey=A(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.createDirentFromStats=void 0;var ol=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 DD(e,t){return new ol(e,t)}Oo.createDirentFromStats=DD});var al=A(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.fs=void 0;var TD=ey();Ro.fs=TD});var ul=A(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.joinPathSegments=void 0;function kD(e,t,r){return e.endsWith(r)?e+t:e+r+t}Fo.joinPathSegments=kD});var oy=A(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.readdir=Lr.readdirWithFileTypes=Lr.read=void 0;var ND=an(),ty=J0(),ID=sl(),ry=al(),ny=ul();function $D(e,t,r){if(!t.stats&&ID.IS_SUPPORT_READDIR_WITH_FILE_TYPES){iy(e,t,r);return}sy(e,t,r)}Lr.read=$D;function iy(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Lo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:ny.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){cl(r,s);return}let o=s.map(a=>BD(a,t));ty(o,(a,u)=>{if(a!==null){Lo(r,a);return}cl(r,u)})})}Lr.readdirWithFileTypes=iy;function BD(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=ry.fs.createDirentFromStats(e.name,i),r(null,e)})}}function sy(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Lo(r,n);return}let s=i.map(o=>{let a=ny.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{ND.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:ry.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),u(null,l)})}});ty(s,(o,a)=>{if(o!==null){Lo(r,o);return}cl(r,a)})})}Lr.readdir=sy;function Lo(e,t){e(t)}function cl(e,t){e(null,t)}});var fy=A(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.readdir=Dr.readdirWithFileTypes=Dr.read=void 0;var MD=an(),jD=sl(),ay=al(),uy=ul();function qD(e,t){return!t.stats&&jD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?cy(e,t):ly(e,t)}Dr.read=qD;function cy(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:uy.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=ay.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Dr.readdirWithFileTypes=cy;function ly(e,t){return t.fs.readdirSync(e).map(n=>{let i=uy.joinPathSegments(e,n,t.pathSegmentSeparator),s=MD.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:ay.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Dr.readdir=ly});var hy=A(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.createFileSystemAdapter=Tr.FILE_SYSTEM_ADAPTER=void 0;var Yn=require("fs");Tr.FILE_SYSTEM_ADAPTER={lstat:Yn.lstat,stat:Yn.stat,lstatSync:Yn.lstatSync,statSync:Yn.statSync,readdir:Yn.readdir,readdirSync:Yn.readdirSync};function WD(e){return e===void 0?Tr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Tr.FILE_SYSTEM_ADAPTER),e)}Tr.createFileSystemAdapter=WD});var py=A(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var UD=require("path"),GD=an(),HD=hy(),ll=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=HD.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,UD.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new GD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};fl.default=ll});var Do=A(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var dy=oy(),zD=fy(),hl=py();kr.Settings=hl.default;function YD(e,t,r){if(typeof t=="function"){dy.read(e,pl(),t);return}dy.read(e,pl(t),r)}kr.scandir=YD;function VD(e,t){let r=pl(t);return zD.read(e,r)}kr.scandirSync=VD;function pl(e={}){return e instanceof hl.default?e:new hl.default(e)}});var my=A((cz,gy)=>{"use strict";function KD(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}}gy.exports=KD});var Ay=A((lz,dl)=>{"use strict";var XD=my();function yy(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=XD(JD),i=null,s=null,o=0,a=null,u={push:g,drain:Lt,saturated:Lt,pause:f,paused:!1,get concurrency(){return r},set concurrency(k){if(!(k>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=k,!u.paused)for(;i&&o<r;)o++,b()},running:c,resume:p,idle:d,length:l,getQueue:h,unshift:m,empty:Lt,kill:_,killAndDrain:P,error:F};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var k=i,q=0;k;)k=k.next,q++;return q}function h(){for(var k=i,q=[];k;)q.push(k.value),k=k.next;return q}function p(){if(u.paused){if(u.paused=!1,i===null){o++,b();return}for(;i&&o<r;)o++,b()}}function d(){return o===0&&u.length()===0}function g(k,q){var M=n.get();M.context=e,M.release=b,M.value=k,M.callback=q||Lt,M.errorHandler=a,o>=r||u.paused?s?(s.next=M,s=M):(i=M,s=M,u.saturated()):(o++,t.call(e,M.value,M.worked))}function m(k,q){var M=n.get();M.context=e,M.release=b,M.value=k,M.callback=q||Lt,M.errorHandler=a,o>=r||u.paused?i?(M.next=i,i=M):(i=M,s=M,u.saturated()):(o++,t.call(e,M.value,M.worked))}function b(k){k&&n.release(k);var q=i;q&&o<=r?u.paused?o--:(s===i&&(s=null),i=q.next,q.next=null,t.call(e,q.value,q.worked),s===null&&u.empty()):--o===0&&u.drain()}function _(){i=null,s=null,u.drain=Lt}function P(){i=null,s=null,u.drain(),u.drain=Lt}function F(k){a=k}}function Lt(){}function JD(){this.value=null,this.callback=Lt,this.next=null,this.release=Lt,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=Lt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function QD(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=yy(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,p){s(f,function(d,g){if(d){p(d);return}h(g)})});return l.catch(Lt),l}function u(f){var l=new Promise(function(h,p){o(f,function(d,g){if(d){p(d);return}h(g)})});return l.catch(Lt),l}function c(){var f=new Promise(function(l){process.nextTick(function(){if(i.idle())l();else{var h=i.drain;i.drain=function(){typeof h=="function"&&h(),l(),i.drain=h}}})});return f}}dl.exports=yy;dl.exports.promise=QD});var To=A(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.joinPathSegments=er.replacePathSegmentSeparator=er.isAppliedFilter=er.isFatalError=void 0;function ZD(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}er.isFatalError=ZD;function eT(e,t){return e===null||e(t)}er.isAppliedFilter=eT;function tT(e,t){return e.split(/[/\\]/).join(t)}er.replacePathSegmentSeparator=tT;function rT(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}er.joinPathSegments=rT});var yl=A(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var nT=To(),gl=class{constructor(t,r){this._root=t,this._settings=r,this._root=nT.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ml.default=gl});var bl=A(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var iT=require("events"),sT=Do(),oT=Ay(),ko=To(),aT=yl(),Al=class extends aT.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=sT.scandir,this._emitter=new iT.EventEmitter,this._queue=oT(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||!ko.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=ko.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ko.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&ko.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};wl.default=Al});var wy=A(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var uT=bl(),El=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new uT.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{cT(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{lT(t,this._storage)}),this._reader.read()}};_l.default=El;function cT(e,t){e(t)}function lT(e,t){e(null,t)}});var by=A(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var fT=require("stream"),hT=bl(),vl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new hT.default(this._root,this._settings),this._stream=new fT.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}};Sl.default=vl});var Ey=A(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var pT=Do(),No=To(),dT=yl(),Cl=class extends dT.default{constructor(){super(...arguments),this._scandir=pT.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)}};xl.default=Cl});var _y=A(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var gT=Ey(),Pl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new gT.default(this._root,this._settings)}read(){return this._reader.read()}};Ol.default=Pl});var vy=A(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var mT=require("path"),yT=Do(),Rl=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,mT.sep),this.fsScandirSettings=new yT.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}};Fl.default=Rl});var $o=A(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.Settings=tr.walkStream=tr.walkSync=tr.walk=void 0;var Sy=wy(),AT=by(),wT=_y(),Ll=vy();tr.Settings=Ll.default;function bT(e,t,r){if(typeof t=="function"){new Sy.default(e,Io()).read(t);return}new Sy.default(e,Io(t)).read(r)}tr.walk=bT;function ET(e,t){let r=Io(t);return new wT.default(e,r).read()}tr.walkSync=ET;function _T(e,t){let r=Io(t);return new AT.default(e,r).read()}tr.walkStream=_T;function Io(e={}){return e instanceof Ll.default?e:new Ll.default(e)}});var Bo=A(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var vT=require("path"),ST=an(),Cy=dr(),Dl=class{constructor(t){this._settings=t,this._fsStatSettings=new ST.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return vT.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Cy.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Cy.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Tl.default=Dl});var Il=A(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var CT=require("stream"),xT=an(),PT=$o(),OT=Bo(),kl=class extends OT.default{constructor(){super(...arguments),this._walkStream=PT.walkStream,this._stat=xT.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new CT.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))})}};Nl.default=kl});var xy=A(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var RT=$o(),FT=Bo(),LT=Il(),$l=class extends FT.default{constructor(){super(...arguments),this._walkAsync=RT.walk,this._readerStream=new LT.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))})}};Bl.default=$l});var Py=A(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var Hi=dr(),Ml=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 Hi.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Hi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Hi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Hi.array.splitWhen(t,r=>r.dynamic&&Hi.pattern.hasGlobStar(r.pattern))}};jl.default=Ml});var Oy=A(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var DT=Py(),ql=class extends DT.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}};Wl.default=ql});var Ry=A(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var Mo=dr(),TT=Oy(),Ul=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 TT.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Mo.pattern.isAffectDepthOfReadingPattern);return Mo.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Mo.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!Mo.pattern.matchAny(t,r)}};Gl.default=Ul});var Fy=A(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var Nr=dr(),Hl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,i]=Nr.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:Nr.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:Nr.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Nr.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(t,r){let n=Nr.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_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()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let i=Nr.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let i=Nr.pattern.matchAny(t,r);return!i&&n?Nr.pattern.matchAny(t+"/",r):i}};zl.default=Hl});var Ly=A(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var kT=dr(),Yl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return kT.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Vl.default=Yl});var Ty=A(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Dy=dr(),Kl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Dy.path.makeAbsolute(this._settings.cwd,r),r=Dy.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Xl.default=Kl});var jo=A(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var NT=require("path"),IT=Ry(),$T=Fy(),BT=Ly(),MT=Ty(),Jl=class{constructor(t){this._settings=t,this.errorFilter=new BT.default(this._settings),this.entryFilter=new $T.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new IT.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new MT.default(this._settings)}_getRootDirectory(t){return NT.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}}};Ql.default=Jl});var ky=A(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var jT=xy(),qT=jo(),Zl=class extends qT.default{constructor(){super(...arguments),this._reader=new jT.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)}};ef.default=Zl});var Ny=A(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var WT=require("stream"),UT=Il(),GT=jo(),tf=class extends GT.default{constructor(){super(...arguments),this._reader=new UT.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new WT.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)}};rf.default=tf});var Iy=A(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});var HT=an(),zT=$o(),YT=Bo(),nf=class extends YT.default{constructor(){super(...arguments),this._walkSync=zT.walkSync,this._statSync=HT.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)}};sf.default=nf});var $y=A(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var VT=Iy(),KT=jo(),of=class extends KT.default{constructor(){super(...arguments),this._reader=new VT.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)}};af.default=of});var By=A(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Vn=require("fs"),XT=require("os"),JT=Math.max(XT.cpus().length,1);Kn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Vn.lstat,lstatSync:Vn.lstatSync,stat:Vn.stat,statSync:Vn.statSync,readdir:Vn.readdir,readdirSync:Vn.readdirSync};var uf=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,JT),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=uf});var qy=A((Nz,jy)=>{"use strict";var My=j0(),QT=ky(),ZT=Ny(),ek=$y(),cf=By(),Dt=dr();async function lf(e,t){zt(e);let r=ff(e,QT.default,t),n=await Promise.all(r);return Dt.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){zt(c);let l=ff(c,ek.default,f);return Dt.array.flatten(l)}e.sync=t;function r(c,f){zt(c);let l=ff(c,ZT.default,f);return Dt.stream.merge(l)}e.stream=r;function n(c,f){zt(c);let l=[].concat(c),h=new cf.default(f);return My.generate(l,h)}e.generateTasks=n;function i(c,f){zt(c);let l=new cf.default(f);return Dt.pattern.isDynamicPattern(c,l)}e.isDynamicPattern=i;function s(c){return zt(c),Dt.path.escape(c)}e.escapePath=s;function o(c){return zt(c),Dt.path.convertPathToPattern(c)}e.convertPathToPattern=o;let a;(function(c){function f(h){return zt(h),Dt.path.escapePosixPath(h)}c.escapePath=f;function l(h){return zt(h),Dt.path.convertPosixPathToPattern(h)}c.convertPathToPattern=l})(a=e.posix||(e.posix={}));let u;(function(c){function f(h){return zt(h),Dt.path.escapeWindowsPath(h)}c.escapePath=f;function l(h){return zt(h),Dt.path.convertWindowsPathToPattern(h)}c.convertPathToPattern=l})(u=e.win32||(e.win32={}))})(lf||(lf={}));function ff(e,t,r){let n=[].concat(e),i=new cf.default(r),s=My.generate(n,i),o=new t(i);return s.map(o.read,o)}function zt(e){if(![].concat(e).every(n=>Dt.string.isString(n)&&!Dt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}jy.exports=lf});var Wo=A($r=>{"use strict";var Wy=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($r,"__esModule",{value:!0});$r.getPackagePathsAsync=$r.getPackagePaths=void 0;var qo=Wy(require("path")),Uy=Wy(qy()),Gy=xc(),Ir={},Hy={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function tk(e,t){return(0,Gy.isCachingEnabled)()&&Ir[e]||(Ir[e]=Uy.default.sync(zy(t),{cwd:e,...Hy}).map(Yy)),Ir[e]}$r.getPackagePaths=tk;async function rk(e,t){return(0,Gy.isCachingEnabled)()&&Ir[e]||(Ir[e]=(await(0,Uy.default)(zy(t),{cwd:e,...Hy})).map(Yy)),Ir[e]}$r.getPackagePathsAsync=rk;function zy(e){return e.map(t=>qo.default.join(t,"package.json").replace(/\\/g,"/"))}function Yy(e){let t=qo.default.dirname(e);return qo.default.sep==="/"?t:t.replace(/\//g,qo.default.sep)}});var hf=A(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.infoFromPackageJson=void 0;function nk(e,t){return{packageJsonPath:t,...e}}Uo.infoFromPackageJson=nk});var gf=A(Br=>{"use strict";var df=Br&&Br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Br,"__esModule",{value:!0});Br.getPackageInfoAsync=Br.getPackageInfo=void 0;var pf=df(require("fs")),ik=df(require("fs/promises")),Vy=df(require("path")),Ky=hf(),Go=hr();function sk(e){let t=Vy.default.join(e,"package.json");try{if(!pf.default.existsSync(t)){(0,Go.logVerboseWarning)(`File does not exist: ${t}`);return}let r=JSON.parse(pf.default.readFileSync(t,"utf-8"));return(0,Ky.infoFromPackageJson)(r,t)}catch(r){(0,Go.logVerboseWarning)(`Error reading or parsing ${t}: ${r?.message||r}`)}}Br.getPackageInfo=sk;async function ok(e){let t=Vy.default.join(e,"package.json");try{if(!pf.default.existsSync(t)){(0,Go.logVerboseWarning)(`File does not exist: ${t}`);return}let r=JSON.parse(await ik.default.readFile(t,"utf-8"));return(0,Ky.infoFromPackageJson)(r,t)}catch(r){(0,Go.logVerboseWarning)(`Error reading or parsing ${t}: ${r?.message||r}`)}}Br.getPackageInfoAsync=ok});var zi=A(Mr=>{"use strict";var Xy=Mr&&Mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.getWorkspacePackageInfoAsync=Mr.getWorkspacePackageInfo=void 0;var ak=Xy(require("path")),uk=Xy(require("fs/promises")),ck=hr(),lk=hf(),fk=gf();function hk(e){return e?e.map(t=>{let r=(0,fk.getPackageInfo)(t);return r?{name:r.name,path:t,packageJson:r}:null}).filter(Boolean):[]}Mr.getWorkspacePackageInfo=hk;async function pk(e){if(!e)return[];let t=e.map(async r=>{let n=ak.default.join(r,"package.json");try{let i=JSON.parse(await uk.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,lk.infoFromPackageJson)(i,n)}}catch(i){return(0,ck.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}Mr.getWorkspacePackageInfoAsync=pk});var mf=A(Tt=>{"use strict";var Jy=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getWorkspaceInfoFromWorkspaceRootAsync=Tt.getWorkspaceInfoFromWorkspaceRoot=Tt.getPackagePathsFromWorkspaceRootAsync=Tt.getPackagePathsFromWorkspaceRoot=void 0;var dk=Jy(require("fs")),gk=Jy(require("path")),Qy=Wo(),Zy=zi(),Ho=hr();function eA(e){let t=gk.default.join(e,"package.json"),r;try{r=JSON.parse(dk.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function tA(e){try{let t=eA(e);return t?(0,Qy.getPackagePaths)(e,t):[]}catch(t){return(0,Ho.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Tt.getPackagePathsFromWorkspaceRoot=tA;async function rA(e){try{let t=eA(e);return t?(0,Qy.getPackagePathsAsync)(e,t):[]}catch(t){return(0,Ho.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Tt.getPackagePathsFromWorkspaceRootAsync=rA;function mk(e){try{let t=tA(e);return(0,Zy.getWorkspacePackageInfo)(t)}catch(t){return(0,Ho.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Tt.getWorkspaceInfoFromWorkspaceRoot=mk;async function yk(e){try{let t=await rA(e);return(0,Zy.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Ho.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Tt.getWorkspaceInfoFromWorkspaceRootAsync=yk});var Xn=A((qz,un)=>{"use strict";function nA(e){return typeof e>"u"||e===null}function Ak(e){return typeof e=="object"&&e!==null}function wk(e){return Array.isArray(e)?e:nA(e)?[]:[e]}function bk(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 Ek(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function _k(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}un.exports.isNothing=nA;un.exports.isObject=Ak;un.exports.toArray=wk;un.exports.repeat=Ek;un.exports.isNegativeZero=_k;un.exports.extend=bk});var Jn=A((Wz,sA)=>{"use strict";function iA(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+=`
11
-
12
- `+e.mark.snippet),n+" "+r):n}function Yi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=iA(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Yi.prototype=Object.create(Error.prototype);Yi.prototype.constructor=Yi;Yi.prototype.toString=function(t){return this.name+": "+iA(this,t)};sA.exports=Yi});var aA=A((Uz,oA)=>{"use strict";var Vi=Xn();function yf(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 Af(e,t){return Vi.repeat(" ",t-e.length)+e}function vk(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=yf(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=Vi.repeat(" ",t.indent)+Af((e.line-u+1).toString(),f)+" | "+c.str+`
13
- `+a;for(c=yf(e.buffer,n[o],i[o],e.position,l),a+=Vi.repeat(" ",t.indent)+Af((e.line+1).toString(),f)+" | "+c.str+`
14
- `,a+=Vi.repeat("-",t.indent+f+3+c.pos)+`^
15
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=yf(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=Vi.repeat(" ",t.indent)+Af((e.line+u+1).toString(),f)+" | "+c.str+`
16
- `;return a.replace(/\n$/,"")}oA.exports=vk});var Qe=A((Gz,cA)=>{"use strict";var uA=Jn(),Sk=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ck=["scalar","sequence","mapping"];function xk(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Pk(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Sk.indexOf(r)===-1)throw new uA('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=xk(t.styleAliases||null),Ck.indexOf(this.kind)===-1)throw new uA('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}cA.exports=Pk});var Ef=A((Hz,fA)=>{"use strict";var Ki=Jn(),wf=Qe();function lA(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 Ok(){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 bf(e){return this.extend(e)}bf.prototype.extend=function(t){var r=[],n=[];if(t instanceof wf)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 Ki("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof wf))throw new Ki("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ki("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 Ki("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 wf))throw new Ki("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(bf.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=lA(i,"implicit"),i.compiledExplicit=lA(i,"explicit"),i.compiledTypeMap=Ok(i.compiledImplicit,i.compiledExplicit),i};fA.exports=bf});var _f=A((zz,hA)=>{"use strict";var Rk=Qe();hA.exports=new Rk("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var vf=A((Yz,pA)=>{"use strict";var Fk=Qe();pA.exports=new Fk("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Sf=A((Vz,dA)=>{"use strict";var Lk=Qe();dA.exports=new Lk("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Cf=A((Kz,gA)=>{"use strict";var Dk=Ef();gA.exports=new Dk({explicit:[_f(),vf(),Sf()]})});var xf=A((Xz,mA)=>{"use strict";var Tk=Qe();function kk(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Nk(){return null}function Ik(e){return e===null}mA.exports=new Tk("tag:yaml.org,2002:null",{kind:"scalar",resolve:kk,construct:Nk,predicate:Ik,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Pf=A((Jz,yA)=>{"use strict";var $k=Qe();function Bk(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 Mk(e){return e==="true"||e==="True"||e==="TRUE"}function jk(e){return Object.prototype.toString.call(e)==="[object Boolean]"}yA.exports=new $k("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Bk,construct:Mk,predicate:jk,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 Of=A((Qz,AA)=>{"use strict";var qk=Xn(),Wk=Qe();function Uk(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Gk(e){return 48<=e&&e<=55}function Hk(e){return 48<=e&&e<=57}function zk(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(!Uk(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Gk(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!Hk(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function Yk(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 Vk(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qk.isNegativeZero(e)}AA.exports=new Wk("tag:yaml.org,2002:int",{kind:"scalar",resolve:zk,construct:Yk,predicate:Vk,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 Rf=A((Zz,bA)=>{"use strict";var wA=Xn(),Kk=Qe(),Xk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jk(e){return!(e===null||!Xk.test(e)||e[e.length-1]==="_")}function Qk(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 Zk=/^[-+]?[0-9]+e/;function eN(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(wA.isNegativeZero(e))return"-0.0";return r=e.toString(10),Zk.test(r)?r.replace("e",".e"):r}function tN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||wA.isNegativeZero(e))}bA.exports=new Kk("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jk,construct:Qk,predicate:tN,represent:eN,defaultStyle:"lowercase"})});var Ff=A((e4,EA)=>{"use strict";EA.exports=Cf().extend({implicit:[xf(),Pf(),Of(),Rf()]})});var Lf=A((t4,_A)=>{"use strict";_A.exports=Ff()});var Df=A((r4,CA)=>{"use strict";var rN=Qe(),vA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),SA=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 nN(e){return e===null?!1:vA.exec(e)!==null||SA.exec(e)!==null}function iN(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=vA.exec(e),t===null&&(t=SA.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 sN(e){return e.toISOString()}CA.exports=new rN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nN,construct:iN,instanceOf:Date,represent:sN})});var Tf=A((n4,xA)=>{"use strict";var oN=Qe();function aN(e){return e==="<<"||e===null}xA.exports=new oN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:aN})});var Nf=A((i4,PA)=>{"use strict";var uN=Qe(),kf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
17
- \r`;function cN(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=kf;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 lN(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=kf,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 fN(e){var t="",r=0,n,i,s=e.length,o=kf;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 hN(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}PA.exports=new uN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:cN,construct:lN,predicate:hN,represent:fN})});var If=A((s4,OA)=>{"use strict";var pN=Qe(),dN=Object.prototype.hasOwnProperty,gN=Object.prototype.toString;function mN(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,gN.call(i)!=="[object Object]")return!1;for(s in i)if(dN.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 yN(e){return e!==null?e:[]}OA.exports=new pN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:mN,construct:yN})});var $f=A((o4,RA)=>{"use strict";var AN=Qe(),wN=Object.prototype.toString;function bN(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],wN.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function EN(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}RA.exports=new AN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bN,construct:EN})});var Bf=A((a4,FA)=>{"use strict";var _N=Qe(),vN=Object.prototype.hasOwnProperty;function SN(e){if(e===null)return!0;var t,r=e;for(t in r)if(vN.call(r,t)&&r[t]!==null)return!1;return!0}function CN(e){return e!==null?e:{}}FA.exports=new _N("tag:yaml.org,2002:set",{kind:"mapping",resolve:SN,construct:CN})});var zo=A((u4,LA)=>{"use strict";LA.exports=Lf().extend({implicit:[Df(),Tf()],explicit:[Nf(),If(),$f(),Bf()]})});var VA=A((c4,Wf)=>{"use strict";var ln=Xn(),BA=Jn(),xN=aA(),PN=zo(),qr=Object.prototype.hasOwnProperty,Yo=1,MA=2,jA=3,Vo=4,Mf=1,ON=2,DA=3,RN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,FN=/[\x85\u2028\u2029]/,LN=/[,\[\]\{\}]/,qA=/^(?:!|!!|![a-z\-]+!)$/i,WA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function TA(e){return Object.prototype.toString.call(e)}function rr(e){return e===10||e===13}function fn(e){return e===9||e===32}function At(e){return e===9||e===32||e===10||e===13}function Qn(e){return e===44||e===91||e===93||e===123||e===125}function DN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function TN(e){return e===120?2:e===117?4:e===85?8:0}function kN(e){return 48<=e&&e<=57?e-48:-1}function kA(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
18
- `: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 NN(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function UA(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var GA=new Array(256),HA=new Array(256);for(cn=0;cn<256;cn++)GA[cn]=kA(cn)?1:0,HA[cn]=kA(cn);var cn;function IN(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||PN,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 zA(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=xN(r),new BA(t,r)}function ee(e,t){throw zA(e,t)}function Ko(e,t){e.onWarning&&e.onWarning.call(null,zA(e,t))}var NA={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&&Ko(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],qA.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),qr.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),WA.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 jr(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 RN.test(a)&&ee(e,"the stream contains non-printable characters");e.result+=a}}function IA(e,t,r,n){var i,s,o,a;for(ln.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],qr.call(t,s)||(UA(t,s,r[s]),n[s]=!0)}function Zn(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"&&TA(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&TA(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)IA(e,t,s[c],r);else IA(e,t,s,r);else!e.json&&!qr.call(r,i)&&qr.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,ee(e,"duplicated mapping key")),UA(t,i,s),delete r[i];return t}function jf(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 Ne(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;fn(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(rr(i))for(jf(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&&Ko(e,"deficient indentation"),n}function Xo(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||At(r)))}function qf(e,t){t===1?e.result+=" ":t>1&&(e.result+=ln.repeat(`
19
- `,t-1))}function $N(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),At(p)||Qn(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),At(i)||r&&Qn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),At(i)||r&&Qn(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),At(n))break}else{if(e.position===e.lineStart&&Xo(e)||r&&Qn(p))break;if(rr(p))if(u=e.line,c=e.lineStart,f=e.lineIndent,Ne(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(jr(e,s,o,!1),qf(e,e.line-u),s=o=e.position,a=!1),fn(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return jr(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function BN(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(jr(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 rr(r)?(jr(e,n,i,!0),qf(e,Ne(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Xo(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 MN(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 jr(e,r,e.position,!0),e.position++,!0;if(a===92){if(jr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),rr(a))Ne(e,!1,t);else if(a<256&&GA[a])e.result+=HA[a],e.position++;else if((o=TN(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=DN(a))>=0?s=(s<<4)+o:ee(e,"expected hexadecimal character");e.result+=NN(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else rr(a)?(jr(e,r,n,!0),qf(e,Ne(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Xo(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 jN(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,p,d=Object.create(null),g,m,b,_;if(_=e.input.charCodeAt(e.position),_===91)f=93,p=!1,a=[];else if(_===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(Ne(e,!0,t),_=e.input.charCodeAt(e.position),_===f)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=a,!0;r?_===44&&ee(e,"expected the node content, but found ','"):ee(e,"missed comma between flow collection entries"),m=g=b=null,l=h=!1,_===63&&(c=e.input.charCodeAt(e.position+1),At(c)&&(l=h=!0,e.position++,Ne(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,ei(e,t,Yo,!1,!0),m=e.tag,g=e.result,Ne(e,!0,t),_=e.input.charCodeAt(e.position),(h||e.line===n)&&_===58&&(l=!0,_=e.input.charCodeAt(++e.position),Ne(e,!0,t),ei(e,t,Yo,!1,!0),b=e.result),p?Zn(e,a,d,m,g,b,n,i,s):l?a.push(Zn(e,null,d,m,g,b,n,i,s)):a.push(g),Ne(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 qN(e,t){var r,n,i=Mf,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)Mf===i?i=l===43?DA:ON:ee(e,"repeat of a chomping mode identifier");else if((f=kN(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(fn(l)){do l=e.input.charCodeAt(++e.position);while(fn(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!rr(l)&&l!==0)}for(;l!==0;){for(jf(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),rr(l)){u++;continue}if(e.lineIndent<a){i===DA?e.result+=ln.repeat(`
20
- `,s?1+u:u):i===Mf&&s&&(e.result+=`
21
- `);break}for(n?fn(l)?(c=!0,e.result+=ln.repeat(`
22
- `,s?1+u:u)):c?(c=!1,e.result+=ln.repeat(`
23
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=ln.repeat(`
24
- `,u):e.result+=ln.repeat(`
25
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!rr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);jr(e,r,e.position,!1)}return!0}function $A(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),!At(o))));){if(a=!0,e.position++,Ne(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,ei(e,t,jA,!1,!0),s.push(e.result),Ne(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 WN(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),p=null,d=null,g=null,m=!1,b=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(e.position);_!==0;){if(!m&&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)&&At(n))_===63?(m&&(Zn(e,l,h,p,d,null,o,a,u),p=d=g=null),b=!0,m=!0,i=!0):m?(m=!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,!ei(e,r,MA,!1,!0))break;if(e.line===s){for(_=e.input.charCodeAt(e.position);fn(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),At(_)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Zn(e,l,h,p,d,null,o,a,u),p=d=g=null),b=!0,m=!1,i=!1,p=e.tag,d=e.result;else if(b)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(b)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)&&(m&&(o=e.line,a=e.lineStart,u=e.position),ei(e,t,Vo,!0,i)&&(m?d=e.result:g=e.result),m||(Zn(e,l,h,p,d,g,o,a,u),p=d=g=null),Ne(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 m&&Zn(e,l,h,p,d,null,o,a,u),b&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),b}function UN(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&&!At(o);)o===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),qA.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),LN.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}s&&!WA.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:qr.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 GN(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&&!At(r)&&!Qn(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 HN(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&&!At(n)&&!Qn(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),qr.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ne(e,!0,-1),!0}function ei(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,p,d,g,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Vo===r||jA===r,n&&Ne(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;UN(e)||GN(e);)Ne(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||Vo===r)&&(Yo===r||MA===r?g=t:g=t+1,m=e.position-e.lineStart,u===1?a&&($A(e,m)||WN(e,m,g))||jN(e,g)?f=!0:(o&&qN(e,g)||BN(e,g)||MN(e,g)?f=!0:HN(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):$N(e,g,Yo===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&$A(e,m))),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(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(qr.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,p=e.typeMap.multi[e.kind||"fallback"],l=0,h=p.length;l<h;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){d=p[l];break}d||ee(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.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 zN(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&&(Ne(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&&!At(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(;fn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!rr(o));break}if(rr(o))break;for(r=e.position;o!==0&&!At(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&jf(e),qr.call(NA,n)?NA[n](e,n,i):Ko(e,'unknown document directive "'+n+'"')}if(Ne(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,Ne(e,!0,-1)):s&&ee(e,"directives end mark is expected"),ei(e,e.lineIndent-1,Vo,!1,!0),Ne(e,!0,-1),e.checkLineBreaks&&FN.test(e.input.slice(t,e.position))&&Ko(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Xo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ne(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 YA(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
26
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new IN(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;)zN(r);return r.documents}function YN(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=YA(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function VN(e,t){var r=YA(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new BA("expected a single document in the stream, but found more")}}Wf.exports.loadAll=YN;Wf.exports.load=VN});var gw=A((l4,dw)=>{"use strict";var Zo=Xn(),es=Jn(),KN=zo(),nw=Object.prototype.toString,iw=Object.prototype.hasOwnProperty,Yf=65279,XN=9,Ji=10,JN=13,QN=32,ZN=33,eI=34,Uf=35,tI=37,rI=38,nI=39,iI=42,sw=44,sI=45,Jo=58,oI=61,aI=62,uI=63,cI=64,ow=91,aw=93,lI=96,uw=123,fI=124,cw=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 hI=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],pI=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function dI(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&&iw.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function gI(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 es("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Zo.repeat("0",n-t.length)+t}var mI=1,Qi=2;function yI(e){this.schema=e.schema||KN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Zo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=dI(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==='"'?Qi:mI,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 KA(e,t){for(var r=Zo.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
27
- `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
28
- `&&(s+=r),s+=o;return s}function Gf(e,t){return`
29
- `+Zo.repeat(" ",e.indent*t)}function AI(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 Qo(e){return e===QN||e===XN}function Zi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Yf||65536<=e&&e<=1114111}function XA(e){return Zi(e)&&e!==Yf&&e!==JN&&e!==Ji}function JA(e,t,r){var n=XA(e),i=n&&!Qo(e);return(r?n:n&&e!==sw&&e!==ow&&e!==aw&&e!==uw&&e!==cw)&&e!==Uf&&!(t===Jo&&!i)||XA(t)&&!Qo(t)&&e===Uf||t===Jo&&i}function wI(e){return Zi(e)&&e!==Yf&&!Qo(e)&&e!==sI&&e!==uI&&e!==Jo&&e!==sw&&e!==ow&&e!==aw&&e!==uw&&e!==cw&&e!==Uf&&e!==rI&&e!==iI&&e!==ZN&&e!==fI&&e!==oI&&e!==aI&&e!==nI&&e!==eI&&e!==tI&&e!==cI&&e!==lI}function bI(e){return!Qo(e)&&e!==Jo}function Xi(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 lw(e){var t=/^\n* /;return t.test(e)}var fw=1,Hf=2,hw=3,pw=4,ti=5;function EI(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,g=wI(Xi(e,0))&&bI(Xi(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Xi(e,u),!Zi(c))return ti;g=g&&JA(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Xi(e,u),c===Ji)l=!0,p&&(h=h||u-d-1>n&&e[d+1]!==" ",d=u);else if(!Zi(c))return ti;g=g&&JA(c,f,a),f=c}h=h||p&&u-d-1>n&&e[d+1]!==" "}return!l&&!h?g&&!o&&!i(e)?fw:s===Qi?ti:Hf:r>9&&lw(e)?ti:o?s===Qi?ti:Hf:h?pw:hw}function _I(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===Qi?'""':"''";if(!e.noCompatMode&&(hI.indexOf(t)!==-1||pI.test(t)))return e.quotingType===Qi?'"'+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 AI(e,c)}switch(EI(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case fw:return t;case Hf:return"'"+t.replace(/'/g,"''")+"'";case hw:return"|"+QA(t,e.indent)+ZA(KA(t,s));case pw:return">"+QA(t,e.indent)+ZA(KA(vI(t,o),s));case ti:return'"'+SI(t,o)+'"';default:throw new es("impossible error: invalid scalar style")}})()}function QA(e,t){var r=lw(e)?String(t):"",n=e[e.length-1]===`
30
- `,i=n&&(e[e.length-2]===`
31
- `||e===`
7
+ ${r.stderr?.toString().trimEnd()}`)}Lt.gitFailFast=DP;function FP(t,e){return t.success?t.stdout.split(/\n/).map(r=>r.trim()).filter(r=>!!r&&(!e?.excludeNodeModules||!r.includes("node_modules"))):[]}Lt.processGitOutput=FP});var wc=E(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.getConfigValue=void 0;var TP=Vn();function kP(t){let{key:e,...r}=t,n=(0,TP.git)(["config",e],r);return n.success?n.stdout.trim():null}yo.getConfigValue=kP});var bc=E((oH,ug)=>{"use strict";ug.exports=function(e,r){r===!0&&(r=0);var n="";if(typeof e=="string")try{n=new URL(e).protocol}catch{}else e&&e.constructor===URL&&(n=e.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var lg=E((aH,cg)=>{"use strict";var NP=bc();function IP(t){var e={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:t,query:{},parse_failed:!1};try{var r=new URL(t);e.protocols=NP(r),e.protocol=e.protocols[0],e.port=r.port,e.resource=r.hostname,e.host=r.host,e.user=r.username||"",e.password=r.password||"",e.pathname=r.pathname,e.hash=r.hash.slice(1),e.search=r.search.slice(1),e.href=r.href,e.query=Object.fromEntries(r.searchParams)}catch{e.protocols=["file"],e.protocol=e.protocols[0],e.port="",e.resource="",e.user="",e.pathname="",e.hash="",e.search="",e.href=t,e.query={},e.parse_failed=!0}return e}cg.exports=IP});var mg=E((uH,gg)=>{"use strict";var $P=lg();function MP(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var BP=MP($P);function jP(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var hg={},qP="text/plain",WP="us-ascii",fg=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),UP=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[p,d=""]=l.split("=").map(g=>g.trim());return p==="charset"&&(d=d.toLowerCase(),d===WP)?"":`${p}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==qP)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function GP(t,e){if(e={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,...e},t=t.trim(),/^data:/i.test(t))return UP(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.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],p=f.index,d=i.pathname.slice(a,p);u+=d.replace(/\/{2,}/g,"/"),u+=l,a=p+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(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];fg(a,e.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])fg(o,e.removeQueryParameters)&&i.searchParams.delete(o);if(e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}var HP=Object.freeze({__proto__:null,default:GP}),zP=jP(HP);Object.defineProperty(hg,"__esModule",{value:!0});var YP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VP=zP,KP=pg(VP),XP=BP.default,JP=pg(XP);function pg(t){return t&&t.__esModule?t:{default:t}}var dg=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,i=function(u){var c=new Error(u);throw c.subject_url=e,c};(typeof e!="string"||!e.trim())&&i("Invalid url."),e.length>t.MAX_INPUT_LENGTH&&i("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),r&&((typeof r>"u"?"undefined":YP(r))!=="object"&&(r={stripHash:!1}),e=(0,KP.default)(e,r));var s=(0,JP.default)(e);if(s.parse_failed){var o=s.href.match(n);o?(s.protocols=["ssh"],s.protocol="ssh",s.resource=o[2],s.host=o[2],s.user=o[1],s.pathname="/"+o[3],s.parse_failed=!1):i("URL parsing failed.")}return s};dg.MAX_INPUT_LENGTH=2048;var QP=hg.default=dg;gg.exports=QP});var wg=E((cH,Ag)=>{"use strict";var ZP=bc();function yg(t){if(Array.isArray(t))return t.indexOf("ssh")!==-1||t.indexOf("rsync")!==-1;if(typeof t!="string")return!1;var e=ZP(t);if(t=t.substring(t.indexOf("://")+3),yg(e))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!t.match(r)&&t.indexOf("@")<t.indexOf(":")}Ag.exports=yg});var _g=E((lH,Eg)=>{"use strict";var eO=mg(),bg=wg();function tO(t){let e=eO(t);return e.token="",e.password==="x-oauth-basic"?e.token=e.user:e.user==="x-token-auth"&&(e.token=e.password),bg(e.protocols)||e.protocols.length===0&&bg(t)?e.protocol="ssh":e.protocols.length?e.protocol=e.protocols[0]:(e.protocol="file",e.protocols=["file"]),e.href=e.href.replace(/\/$/,""),e}Eg.exports=tO});var vg=E((fH,Sg)=>{"use strict";var rO=_g();function Ec(t,e){if(e=e||[],typeof t!="string")throw new Error("The url must be a string.");if(!e.every(function(v){return typeof v=="string"}))throw new Error("The refs should contain only strings");var r=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;r.test(t)&&(t="https://github.com/"+t);var n=rO(t),i=n.resource.split("."),s=null;switch(n.toString=function(v){return Ec.stringify(this,v)},n.source=i.length>2?i.slice(1-i.length).join("."):n.source=n.resource,n.git_suffix=/\.git$/.test(n.pathname),n.name=decodeURIComponent((n.pathname||n.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),n.owner=decodeURIComponent(n.user),n.source){case"git.cloudforge.com":n.owner=n.user,n.organization=i[0],n.source="cloudforge.com";break;case"visualstudio.com":if(n.resource==="vs-ssh.visualstudio.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3],n.full_name=s[2]+"/"+s[3]);break}else{s=n.name.split("/"),s.length===2?(n.owner=s[1],n.name=s[1],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name);break}case"dev.azure.com":case"azure.com":if(n.resource==="ssh.dev.azure.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3]);break}else{s=n.name.split("/"),s.length===5?(n.organization=s[0],n.owner=s[1],n.name=s[4],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name),n.query&&n.query.path&&(n.filepath=n.query.path.replace(/^\/+/g,"")),n.query&&n.query.version&&(n.ref=n.query.version.replace(/^GB/,""));break}default:s=n.name.split("/");var o=s.length-1;if(s.length>=2){var a=s.indexOf("-",2),u=s.indexOf("blob",2),c=s.indexOf("tree",2),f=s.indexOf("commit",2),l=s.indexOf("issues",2),p=s.indexOf("src",2),d=s.indexOf("raw",2),g=s.indexOf("edit",2);o=a>0?a-1:u>0&&c>0?Math.min(u-1,c-1):u>0?u-1:l>0?l-1:c>0?c-1:f>0?f-1:p>0?p-1:d>0?d-1:g>0?g-1:o,n.owner=s.slice(0,o).join("/"),n.name=s[o],f&&l<0&&(n.commit=s[o+2])}n.ref="",n.filepathtype="",n.filepath="";var m=s.length>o&&s[o+1]==="-"?o+1:o;s.length>m+2&&["raw","src","blob","tree","edit"].indexOf(s[m+1])>=0&&(n.filepathtype=s[m+1],n.ref=s[m+2],s.length>m+3&&(n.filepath=s.slice(m+3).join("/"))),n.organization=n.owner;break}n.full_name||(n.full_name=n.owner,n.name&&(n.full_name&&(n.full_name+="/"),n.full_name+=n.name)),n.owner.startsWith("scm/")&&(n.source="bitbucket-server",n.owner=n.owner.replace("scm/",""),n.organization=n.owner,n.full_name=n.owner+"/"+n.name);var y=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,_=y.exec(n.pathname);return _!=null&&(n.source="bitbucket-server",_[1]==="users"?n.owner="~"+_[2]:n.owner=_[2],n.organization=n.owner,n.name=_[3],s=_[4].split("/"),s.length>1&&(["raw","browse"].indexOf(s[1])>=0?(n.filepathtype=s[1],s.length>2&&(n.filepath=s.slice(2).join("/"))):s[1]==="commits"&&s.length>2&&(n.commit=s[2])),n.full_name=n.owner+"/"+n.name,n.query.at?n.ref=n.query.at:n.ref=""),e.length!==0&&n.ref&&(n.ref=sO(n.href,e)||n.ref,n.filepath=n.href.split(n.ref+"/")[1]),n}Ec.stringify=function(t,e){e=e||(t.protocols&&t.protocols.length?t.protocols.join("+"):t.protocol);var r=t.port?":"+t.port:"",n=t.user||"git",i=t.git_suffix?".git":"";switch(e){case"ssh":return r?"ssh://"+n+"@"+t.resource+r+"/"+t.full_name+i:n+"@"+t.resource+":"+t.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return e+"://"+n+"@"+t.resource+r+"/"+t.full_name+i;case"http":case"https":var s=t.token?nO(t):t.user&&(t.protocols.includes("http")||t.protocols.includes("https"))?t.user+"@":"";return e+"://"+s+t.resource+r+"/"+iO(t)+i;default:return t.href}};function nO(t){return t.source==="bitbucket.org"?"x-token-auth:"+t.token+"@":t.token+"@"}function iO(t){if(t.source==="bitbucket-server")return"scm/"+t.full_name;var e=t.full_name.split("/").map(function(r){return encodeURIComponent(r)}).join("/");return e}function sO(t,e){var r="";return e.forEach(function(n){t.includes(n)&&n.length>r.length&&(r=n)}),r}Sg.exports=Ec});var Cg=E(Kn=>{"use strict";var oO=Kn&&Kn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getRepositoryName=void 0;var aO=oO(vg());function uO(t){try{let e=(0,aO.default)(t.replace("/_optimized/","/").replace("/DefaultCollection/","/")),r=e.host||"",n=r.endsWith(".visualstudio.com");if(!n&&r!=="dev.azure.com"&&r!=="ssh.dev.azure.com")return e.full_name;let i=e.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(i)return`${i[2]}/${i[3]}/${e.name}`;let s=e.organization;return!s&&n&&(s=r.match(/([^.@]+)\.visualstudio\.com$/)?.[1]),`${s}/${e.owner}/${e.name}`}catch{return""}}Kn.getRepositoryName=uO});var _c=E(Xn=>{"use strict";var Pg=Xn&&Xn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getDefaultRemote=void 0;var cO=Pg(require("fs")),lO=Pg(require("path")),fO=Sc(),xg=Cg(),hO=Vn();function pO(t){let e=typeof t=="string"?{cwd:t}:t,{cwd:r,strict:n,verbose:i}=e,s=_=>i&&console.log(_),o=_=>{if(n)throw new Error(_);s(_)},a=(0,fO.findGitRoot)(r),u={},c=lO.default.join(a,"package.json");try{u=JSON.parse(cO.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 p=(0,xg.getRepositoryName)(l),d=(0,hO.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let g={};if(d.stdout.split(`
8
+ `).forEach(_=>{let[v,F]=_.split(/\s+/),k=(0,xg.getRepositoryName)(F);k&&(g[k]=v)}),p){if(g[p])return g[p];o(`Could not find remote pointing to repository "${p}".`)}let m=Object.values(g),y=["upstream","origin",...m];for(let _ of y)if(m.includes(_))return s(`Default to remote "${_}"`),_;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}Xn.getDefaultRemote=pO});var Pc=E(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.listAllTrackedFiles=Ee.getDefaultBranch=Ee.parseRemoteBranch=Ee.getRemoteBranch=Ee.getParentBranch=Ee.revertLocalChanges=Ee.stageAndCommit=Ee.commit=Ee.stage=Ee.init=Ee.getFileAddedHash=Ee.getCurrentHash=Ee.getShortBranchName=Ee.getFullBranchRef=Ee.getBranchName=Ee.getUserEmail=Ee.getRecentCommitMessages=Ee.getStagedChanges=Ee.getChangesBetweenRefs=Ee.getBranchChanges=Ee.getChanges=Ee.getUnstagedChanges=Ee.fetchRemoteBranch=Ee.fetchRemote=Ee.getUntrackedChanges=void 0;var vc=wc(),$e=Vn(),Cc=["--no-pager","diff","--name-only","--relative"];function dO(t){let e=typeof t=="string"?{cwd:t}:t,r=(0,$e.git)(["ls-files","--others","--exclude-standard"],{description:"Gathering information about untracked changes",throwOnError:!0,...e});return(0,$e.processGitOutput)(r,{excludeNodeModules:!0})}Ee.getUntrackedChanges=dO;function Og(t,e){let{remote:r,remoteBranch:n,options:i,...s}=typeof t=="string"?{remote:t,cwd:e}:t;if(n&&!r)throw new Error('Must provide "remote" when using "remoteBranch" option');let o=["fetch","--",...r?[r]:[],...n?[n]:[],...i||[]];(0,$e.git)(o,{description:r?`Fetching ${n?`branch "${n}" from `:""}remote "${r}"`:"Fetching all remotes",throwOnError:!0,...s})}Ee.fetchRemote=Og;function gO(t,e,r){Og({remote:t,remoteBranch:e,cwd:r,throwOnError:!0})}Ee.fetchRemoteBranch=gO;function mO(t){let e=typeof t=="string"?{cwd:t}:t,r=(0,$e.git)(Cc,{description:"Gathering information about unstaged changes",throwOnError:!0,...e});return(0,$e.processGitOutput)(r,{excludeNodeModules:!0})}Ee.getUnstagedChanges=mO;function yO(t,e){return xc({fromRef:t,cwd:e,throwOnError:!0})}Ee.getChanges=yO;function AO(t,e){let{branch:r,...n}=typeof t=="string"?{branch:t,cwd:e}:t;return xc({fromRef:r,throwOnError:!0,...n})}Ee.getBranchChanges=AO;function xc(t,e,r,n,i){let s;typeof t=="string"?s={cwd:i}:{fromRef:t,toRef:e,options:r,pattern:n,...s}=t;let o=`${t}...${e||""}`,a=(0,$e.git)([...Cc,...r||[],o,...n?["--",n]:[]],{description:`Gathering information about changes between refs (${o})`,throwOnError:!0,...s});return(0,$e.processGitOutput)(a,{excludeNodeModules:!0})}Ee.getChangesBetweenRefs=xc;function wO(t){let e=typeof t=="string"?{cwd:t}:t,r=(0,$e.git)([...Cc,"--staged"],{description:"Gathering information about staged changes",throwOnError:!0,...e});return(0,$e.processGitOutput)(r,{excludeNodeModules:!0})}Ee.getStagedChanges=wO;function bO(t,e){let{branch:r,...n}=typeof t=="string"?{branch:t,cwd:e}:t,i=(0,$e.git)(["log","--decorate","--pretty=format:%s",`${r}..HEAD`],{description:`Getting recent commit messages for branch "${r}"`,...n});return(0,$e.processGitOutput)(i)}Ee.getRecentCommitMessages=bO;function Rg(t){let e=typeof t=="string"?{cwd:t}:t;return(0,vc.getConfigValue)({key:"user.email",...e})}Ee.getUserEmail=Rg;function Lg(t){let e=typeof t=="string"?{cwd:t}:t,r=(0,$e.git)(["rev-parse","--abbrev-ref","HEAD"],{description:"Getting current branch name",...e});return r.success?r.stdout:null}Ee.getBranchName=Lg;function EO(t,e){let{branch:r,...n}=typeof t=="string"?{branch:t,cwd:e}:t,i=(0,$e.git)(["show-ref","--heads",r],n);return i.success?i.stdout.split(" ")[1]:null}Ee.getFullBranchRef=EO;function _O(t,e){let{fullBranchRef:r,...n}=typeof t=="string"?{fullBranchRef:t,cwd:e}:t,i=(0,$e.git)(["rev-parse","--abbrev-ref",r],n);return i.success&&i.stdout||null}Ee.getShortBranchName=_O;function SO(t){let e=typeof t=="string"?{cwd:t}:t,r=(0,$e.git)(["rev-parse","HEAD"],{description:"Getting current git hash",...e});return r.success?r.stdout:null}Ee.getCurrentHash=SO;function vO(t,e){let{filename:r,...n}=typeof t=="string"?{filename:t,cwd:e}:t,i=(0,$e.git)(["rev-list","--max-count=1","HEAD",r],n);return i.success?i.stdout.trim():void 0}Ee.getFileAddedHash=vO;function CO(t,e,r){let{email:n,username:i,...s}=typeof t=="string"?{cwd:t,email:e,username:r}:t;if((0,$e.git)(["init"],{...s,throwOnError:!0}),!(0,vc.getConfigValue)({key:"user.name",...s})){if(!i)throw new Error("must include a username when initializing git repo");(0,$e.git)(["config","user.name",i],s)}if(!Rg(s)){if(!n)throw new Error("must include a email when initializing git repo");(0,$e.git)(["config","user.email",n],s)}}Ee.init=CO;function Dg(t,e){let{patterns:r,...n}=Array.isArray(t)?{patterns:t,cwd:e}:t;for(let i of r)(0,$e.git)(["add",i],{...n,description:`Staging changes (git add ${i})`})}Ee.stage=Dg;function Fg(t,e,r){let{message:n,options:i,...s}=typeof t=="string"?{message:t,cwd:e,options:r}:t;(0,$e.git)(["commit","-m",n,...i||[]],{throwOnError:!0,description:"Committing changes",...s})}Ee.commit=Fg;function xO(t,e,r,n){let i=Array.isArray(t)?{patterns:t,message:e,cwd:r,options:n}:t;Dg(i),Fg(i)}Ee.stageAndCommit=xO;function PO(t){let e=typeof t=="string"?{cwd:t}:t,r=`workspace-tools_${new Date().getTime()}`;if(!(0,$e.git)(["stash","push","-u","-m",r],e).success)return!1;let n=(0,$e.git)(["stash","list"],e);if(n.success){let i=n.stdout.split(/\n/).find(s=>s.includes(r))?.match(/^[^:]+/);if(i)return(0,$e.git)(["stash","drop",i[0]],e),!0}return!1}Ee.revertLocalChanges=PO;function OO(t){let e=Lg({cwd:t});if(!e||e==="HEAD")return null;let r=(0,$e.git)(["show-branch","-a"],{cwd:t});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(e)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}Ee.getParentBranch=OO;function RO(t,e){let r=typeof t=="string"?{branch:t,cwd:e}:t,n=(0,$e.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${r.branch}@{u}`],r);return n.success?n.stdout.trim():null}Ee.getRemoteBranch=RO;function LO(t){if(typeof t=="string"){let s=t,o=s.indexOf("/",0);return{remote:s.substring(0,o),remoteBranch:s.substring(o+1)}}let{branch:e,knownRemotes:r=["origin","upstream"],...n}=t;if(!e.includes("/"))return{remote:"",remoteBranch:e};let i=r.find(s=>e.startsWith(`${s}/`));return i||(i=(0,$e.git)(["remote"],n).stdout.trim().split(/\n/).find(o=>e.startsWith(`${o}/`))),i?{remote:i,remoteBranch:e.slice(i.length+1)}:{remote:"",remoteBranch:e}}Ee.parseRemoteBranch=LO;function DO(t){let e=typeof t=="string"?{cwd:t}:t;return(0,vc.getConfigValue)({key:"init.defaultBranch",...e})||"master"}Ee.getDefaultBranch=DO;function FO(t,e){let{patterns:r,...n}=Array.isArray(t)?{patterns:t,cwd:e}:t,i=(0,$e.git)(["ls-files",...r],{throwOnError:!0,...n});return(0,$e.processGitOutput)(i)}Ee.listAllTrackedFiles=FO});var Tg=E(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getDefaultRemoteBranch=void 0;var TO=_c(),kO=Vn(),NO=Pc();function IO(...t){let[e,r]=t,n=typeof e=="string"?{branch:e,cwd:r}:e,{cwd:i,branch:s}=n,o=(0,TO.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,kO.git)(["remote","show",o],{cwd:i}),u;return a.success&&(u=a.stdout.split(/\n/).find(c=>c.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),u||(u=(0,NO.getDefaultBranch)({cwd:i,throwOnError:n.strict})),`${o}/${u}`}Ao.getDefaultRemoteBranch=IO});var kg=E(Je=>{"use strict";var $O=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Oc=Je&&Je.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&$O(e,t,r)};Object.defineProperty(Je,"__esModule",{value:!0});Je.getConfigValue=Je.gitFailFast=Je.git=Je.clearGitObservers=Je.addGitObserver=Je.GitError=void 0;var zi=Vn();Object.defineProperty(Je,"GitError",{enumerable:!0,get:function(){return zi.GitError}});Object.defineProperty(Je,"addGitObserver",{enumerable:!0,get:function(){return zi.addGitObserver}});Object.defineProperty(Je,"clearGitObservers",{enumerable:!0,get:function(){return zi.clearGitObservers}});Object.defineProperty(Je,"git",{enumerable:!0,get:function(){return zi.git}});Object.defineProperty(Je,"gitFailFast",{enumerable:!0,get:function(){return zi.gitFailFast}});var MO=wc();Object.defineProperty(Je,"getConfigValue",{enumerable:!0,get:function(){return MO.getConfigValue}});Oc(_c(),Je);Oc(Tg(),Je);Oc(Pc(),Je)});var Pr=E(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.logVerboseWarning=void 0;function BO(t,e){process.env.VERBOSE&&console.warn(`${t}${e?`:
9
+ `:""}`,e?.stack||e||"")}wo.logVerboseWarning=BO});var Sc=E(Dt=>{"use strict";var Ig=Dt&&Dt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isChildOf=Dt.findProjectRoot=Dt.findPackageRoot=Dt.findGitRoot=Dt.searchUp=void 0;var qr=Ig(require("path")),jO=Ig(require("fs")),qO=Rc(),WO=kg(),Ng=Pr();function $g(t,e){let r=typeof t=="string"?[t]:t;e=qr.default.resolve(e);let n=qr.default.parse(e).root,i;for(;!i&&e!==n&&(i=r.find(s=>jO.default.existsSync(qr.default.join(e,s))),!i);)e=qr.default.dirname(e);return i?qr.default.join(e,i):void 0}Dt.searchUp=$g;function Mg(t){let e=(0,WO.git)(["rev-parse","--show-toplevel"],{cwd:t});if(!e.success)throw new Error(`Directory "${t}" is not in a git repository`);return qr.default.normalize(e.stdout)}Dt.findGitRoot=Mg;function UO(t){let e=$g("package.json",t);return e&&qr.default.dirname(e)}Dt.findPackageRoot=UO;function GO(t){let e;try{e=(0,qO.getWorkspaceManagerRoot)(t)}catch(r){(0,Ng.logVerboseWarning)(`Error getting workspace root for ${t}`,r)}return e||(0,Ng.logVerboseWarning)(`Could not find workspace root for ${t}. Falling back to git root.`),e||Mg(t)}Dt.findProjectRoot=GO;function HO(t,e){let r=qr.default.relative(t,e);return/^[.\/\\]+$/.test(r)}Dt.isChildOf=HO});var Lc=E(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.isCachingEnabled=Jn.setCachingEnabled=void 0;var Bg=!0;function zO(t){Bg=t}Jn.setCachingEnabled=zO;function YO(){return Bg}Jn.isCachingEnabled=YO});var Qn=E(Wr=>{"use strict";var VO=Wr&&Wr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.getWorkspaceManagerAndRoot=Wr.getPreferredWorkspaceManager=void 0;var jg=VO(require("path")),KO=Sc(),XO=Lc(),JO=new Map,Yi={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function qg(){let t=process.env.PREFERRED_WORKSPACE_MANAGER;return t&&Yi[t]?t:void 0}Wr.getPreferredWorkspaceManager=qg;function QO(t,e,r){if(e=e||JO,(0,XO.isCachingEnabled)()&&e.has(t))return e.get(t);r=r||qg();let n=(0,KO.searchUp)(r&&Yi[r]||Object.values(Yi),t);if(n){let i=jg.default.basename(n);e.set(t,{manager:Object.keys(Yi).find(s=>Yi[s]===i),root:jg.default.dirname(n)})}else e.set(t,void 0);return e.get(t)}Wr.getWorkspaceManagerAndRoot=QO});var Wg=E(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.splitWhen=Zn.flatten=void 0;function ZO(t){return t.reduce((e,r)=>[].concat(e,r),[])}Zn.flatten=ZO;function eR(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Zn.splitWhen=eR});var Ug=E(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.isEnoentCodeError=void 0;function tR(t){return t.code==="ENOENT"}bo.isEnoentCodeError=tR});var Gg=E(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.createDirentFromStats=void 0;var Dc=class{constructor(e,r){this.name=e,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 rR(t,e){return new Dc(t,e)}Eo.createDirentFromStats=rR});var Vg=E(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.convertPosixPathToPattern=tt.convertWindowsPathToPattern=tt.convertPathToPattern=tt.escapePosixPath=tt.escapeWindowsPath=tt.escape=tt.removeLeadingDotSegment=tt.makeAbsolute=tt.unixify=void 0;var nR=require("os"),iR=require("path"),Hg=nR.platform()==="win32",sR=2,oR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,aR=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,uR=/^\\\\([.?])/,cR=/\\(?![!()+@[\]{}])/g;function lR(t){return t.replace(/\\/g,"/")}tt.unixify=lR;function fR(t,e){return iR.resolve(t,e)}tt.makeAbsolute=fR;function hR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(sR)}return t}tt.removeLeadingDotSegment=hR;tt.escape=Hg?Fc:Tc;function Fc(t){return t.replace(aR,"\\$2")}tt.escapeWindowsPath=Fc;function Tc(t){return t.replace(oR,"\\$2")}tt.escapePosixPath=Tc;tt.convertPathToPattern=Hg?zg:Yg;function zg(t){return Fc(t).replace(uR,"//$1").replace(cR,"/")}tt.convertWindowsPathToPattern=zg;function Yg(t){return Tc(t)}tt.convertPosixPathToPattern=Yg});var Xg=E((CH,Kg)=>{Kg.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Zg=E((xH,Qg)=>{var pR=Xg(),Jg={"{":"}","(":")","[":"]"},dR=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=Jg[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},gR=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Jg[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Qg.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(pR(e))return!0;var n=dR;return r&&r.strict===!1&&(n=gR),n(e)}});var tm=E((PH,em)=>{"use strict";var mR=Zg(),yR=require("path").posix.dirname,AR=require("os").platform()==="win32",kc="/",wR=/\\/g,bR=/[\{\[].*[\}\]]$/,ER=/(^|[^\\])([\{\[]|\([^\)]+$)/,_R=/\\([\!\*\?\|\[\]\(\)\{\}])/g;em.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&AR&&e.indexOf(kc)<0&&(e=e.replace(wR,kc)),bR.test(e)&&(e+=kc),e+="a";do e=yR(e);while(mR(e)||ER.test(e));return e.replace(_R,"$1")}});var _o=E(Ht=>{"use strict";Ht.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ht.find=(t,e)=>t.nodes.find(r=>r.type===e);Ht.exceedsLimit=(t,e,r=1,n)=>n===!1||!Ht.isInteger(t)||!Ht.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Ht.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ht.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Ht.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Ht.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ht.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Ht.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var So=E((RH,nm)=>{"use strict";var rm=_o();nm.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&rm.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&rm.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(t)}});var sm=E((LH,im)=>{"use strict";im.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var dm=E((DH,pm)=>{"use strict";var om=sm(),yn=(t,e,r)=>{if(om(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(om(e)===!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=t+":"+e+"="+i+s+o+a;if(yn.cache.hasOwnProperty(u))return yn.cache[u].result;let c=Math.min(t,e),f=Math.max(t,e);if(Math.abs(c-f)===1){let m=t+"|"+e;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let l=hm(t)||hm(e),p={min:t,max:e,a:c,b:f},d=[],g=[];if(l&&(p.isPadded=l,p.maxLen=String(p.max).length),c<0){let m=f<0?Math.abs(f):1;g=am(m,Math.abs(c),p,n),c=p.a=0}return f>=0&&(d=am(c,f,p,n)),p.negatives=g,p.positives=d,p.result=SR(g,d,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&d.length+g.length>1&&(p.result=`(?:${p.result})`),yn.cache[u]=p,p.result};function SR(t,e,r){let n=Nc(t,e,"-",!1,r)||[],i=Nc(e,t,"",!1,r)||[],s=Nc(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function vR(t,e){let r=1,n=1,i=cm(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=cm(t,r);for(i=lm(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=lm(e+1,n)-1;return s=[...s],s.sort(PR),s}function CR(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=xR(t,e),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+=OR(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function am(t,e,r,n){let i=vR(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],f=CR(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+fm(a.count),o=c+1;continue}r.isPadded&&(l=RR(c,r,n)),f.string=l+f.pattern+fm(f.count),s.push(f),o=c+1,a=f}return s}function Nc(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!um(e,"string",a)&&s.push(r+a),n&&um(e,"string",a)&&s.push(r+a)}return s}function xR(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function PR(t,e){return t>e?1:e>t?-1:0}function um(t,e,r){return t.some(n=>n[e]===r)}function cm(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function lm(t,e){return t-t%Math.pow(10,e)}function fm(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function OR(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hm(t){return/^-?(0+)\d/.test(t)}function RR(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).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}}`}}yn.cache={};yn.clearCache=()=>yn.cache={};pm.exports=yn});var Mc=E((FH,Em)=>{"use strict";var LR=require("util"),mm=dm(),gm=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),DR=t=>e=>t===!0?Number(e):String(e),Ic=t=>typeof t=="number"||typeof t=="string"&&t!=="",Vi=t=>Number.isInteger(+t),$c=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},FR=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,TR=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Co=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},kR=(t,e,r)=>{t.negatives.sort((a,u)=>a<u?-1:a>u?1:0),t.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=e.capture?"":"?:",i="",s="",o;return t.positives.length&&(i=t.positives.map(a=>Co(String(a),r)).join("|")),t.negatives.length&&(s=`-(${n}${t.negatives.map(a=>Co(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,e.wrap?`(${n}${o})`:o},ym=(t,e,r,n)=>{if(r)return mm(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Am=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return mm(t,e,r)},wm=(...t)=>new RangeError("Invalid range arguments: "+LR.inspect(...t)),bm=(t,e,r)=>{if(r.strictRanges===!0)throw wm([t,e]);return[]},NR=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},IR=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw wm([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let f=$c(a)||$c(u)||$c(c),l=f?Math.max(a.length,u.length,c.length):0,p=f===!1&&FR(t,e,n)===!1,d=n.transform||DR(p);if(n.toRegex&&r===1)return ym(Co(t,l),Co(e,l),!0,n);let g={negatives:[],positives:[]},m=v=>g[v<0?"negatives":"positives"].push(Math.abs(v)),y=[],_=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):y.push(TR(d(i,_),l,p)),i=o?i-r:i+r,_++;return n.toRegex===!0?r>1?kR(g,n,l):Am(y,null,{wrap:!1,...n}):y},$R=(t,e,r=1,n={})=>{if(!Vi(t)&&t.length>1||!Vi(e)&&e.length>1)return bm(t,e,n);let i=n.transform||(p=>String.fromCharCode(p)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return ym(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?Am(f,null,{wrap:!1,options:n}):f},vo=(t,e,r,n={})=>{if(e==null&&Ic(t))return[t];if(!Ic(t)||!Ic(e))return bm(t,e,n);if(typeof r=="function")return vo(t,e,1,{transform:r});if(gm(r))return vo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Vi(r)?Vi(t)&&Vi(e)?IR(t,e,r,i):$R(t,e,Math.max(Math.abs(r),1),i):r!=null&&!gm(r)?NR(r,i):vo(t,e,1,r)};Em.exports=vo});var vm=E((TH,Sm)=>{"use strict";var MR=Mc(),_m=_o(),BR=(t,e={})=>{let r=(n,i={})=>{let s=_m.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.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=_m.reduce(n.nodes),l=MR(...f,{...e,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(t)};Sm.exports=BR});var Pm=E((kH,xm)=>{"use strict";var jR=Mc(),Cm=So(),ei=_o(),An=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?ei.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(An(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?An(i,s,r):i+s);return ei.flatten(n)},qR=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.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(An(a.pop(),Cm(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(An(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=ei.reduce(i.nodes);if(ei.exceedsLimit(...l,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=jR(...l,e);p.length===0&&(p=Cm(i,e)),a.push(An(a.pop(),p)),i.nodes=[];return}let u=ei.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 p=i.nodes[l];if(p.type==="comma"&&i.type==="brace"){l===1&&c.push(""),c.push("");continue}if(p.type==="close"){a.push(An(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(An(c.pop(),p.value));continue}p.nodes&&n(p,i)}return c};return ei.flatten(n(t))};xm.exports=qR});var Rm=E((NH,Om)=>{"use strict";Om.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:`
10
+ `,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 km=E((IH,Tm)=>{"use strict";var WR=So(),{MAX_LENGTH:Lm,CHAR_BACKSLASH:Bc,CHAR_BACKTICK:UR,CHAR_COMMA:GR,CHAR_DOT:HR,CHAR_LEFT_PARENTHESES:zR,CHAR_RIGHT_PARENTHESES:YR,CHAR_LEFT_CURLY_BRACE:VR,CHAR_RIGHT_CURLY_BRACE:KR,CHAR_LEFT_SQUARE_BRACKET:Dm,CHAR_RIGHT_SQUARE_BRACKET:Fm,CHAR_DOUBLE_QUOTE:XR,CHAR_SINGLE_QUOTE:JR,CHAR_NO_BREAK_SPACE:QR,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ZR}=Rm(),eL=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Lm,r.maxLength):Lm;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,f=0,l=0,p,d=()=>t[f++],g=m=>{if(m.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&m.type==="text"){a.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=a,a=m,m};for(g({type:"bos"});f<c;)if(o=s[s.length-1],p=d(),!(p===ZR||p===QR)){if(p===Bc){g({type:"text",value:(e.keepEscaping?p:"")+d()});continue}if(p===Fm){g({type:"text",value:"\\"+p});continue}if(p===Dm){u++;let m;for(;f<c&&(m=d());){if(p+=m,m===Dm){u++;continue}if(m===Bc){p+=d();continue}if(m===Fm&&(u--,u===0))break}g({type:"text",value:p});continue}if(p===zR){o=g({type:"paren",nodes:[]}),s.push(o),g({type:"text",value:p});continue}if(p===YR){if(o.type!=="paren"){g({type:"text",value:p});continue}o=s.pop(),g({type:"text",value:p}),o=s[s.length-1];continue}if(p===XR||p===JR||p===UR){let m=p,y;for(e.keepQuotes!==!0&&(p="");f<c&&(y=d());){if(y===Bc){p+=y+d();continue}if(y===m){e.keepQuotes===!0&&(p+=y);break}p+=y}g({type:"text",value:p});continue}if(p===VR){l++;let y={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(y),s.push(o),g({type:"open",value:p});continue}if(p===KR){if(o.type!=="brace"){g({type:"text",value:p});continue}let m="close";o=s.pop(),o.close=!0,g({type:m,value:p}),l--,o=s[s.length-1];continue}if(p===GR&&l>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:WR(o)}]}g({type:"comma",value:p}),o.commas++;continue}if(p===HR&&l>0&&o.commas===0){let m=o.nodes;if(l===0||m.length===0){g({type:"text",value:p});continue}if(a.type==="dot"){if(o.range=[],a.value+=p,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"){m.pop();let y=m[m.length-1];y.value+=a.value+p,a=y,o.ranges--;continue}g({type:"dot",value:p});continue}g({type:"text",value:p})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(_=>{_.nodes||(_.type==="open"&&(_.isOpen=!0),_.type==="close"&&(_.isClose=!0),_.nodes||(_.type="text"),_.invalid=!0)});let m=s[s.length-1],y=m.nodes.indexOf(o);m.nodes.splice(y,1,...o.nodes)}while(s.length>0);return g({type:"eos"}),i};Tm.exports=eL});var $m=E(($H,Im)=>{"use strict";var Nm=So(),tL=vm(),rL=Pm(),nL=km(),$t=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=$t.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat($t.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};$t.parse=(t,e={})=>nL(t,e);$t.stringify=(t,e={})=>Nm(typeof t=="string"?$t.parse(t,e):t,e);$t.compile=(t,e={})=>(typeof t=="string"&&(t=$t.parse(t,e)),tL(t,e));$t.expand=(t,e={})=>{typeof t=="string"&&(t=$t.parse(t,e));let r=rL(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};$t.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?$t.compile(t,e):$t.expand(t,e);Im.exports=$t});var Ki=E((MH,Wm)=>{"use strict";var iL=require("path"),pr="\\\\/",Mm=`[^${pr}]`,sL=0,Or="\\.",oL="\\+",aL="\\?",xo="\\/",uL="(?=.)",Bm="[^/]",jc=`(?:${xo}|$)`,jm=`(?:^|${xo})`,qc=`${Or}{1,2}${jc}`,cL=`(?!${Or})`,lL=`(?!${jm}${qc})`,fL=`(?!${Or}{0,1}${jc})`,hL=`(?!${qc})`,pL=`[^.${xo}]`,dL=`${Bm}*?`,qm={DOT_LITERAL:Or,PLUS_LITERAL:oL,QMARK_LITERAL:aL,SLASH_LITERAL:xo,ONE_CHAR:uL,QMARK:Bm,END_ANCHOR:jc,DOTS_SLASH:qc,NO_DOT:cL,NO_DOTS:lL,NO_DOT_SLASH:fL,NO_DOTS_SLASH:hL,QMARK_NO_DOT:pL,STAR:dL,START_ANCHOR:jm},gL={...qm,SLASH_LITERAL:`[${pr}]`,QMARK:Mm,STAR:`${Mm}*?`,DOTS_SLASH:`${Or}{1,2}(?:[${pr}]|$)`,NO_DOT:`(?!${Or})`,NO_DOTS:`(?!(?:^|[${pr}])${Or}{1,2}(?:[${pr}]|$))`,NO_DOT_SLASH:`(?!${Or}{0,1}(?:[${pr}]|$))`,NO_DOTS_SLASH:`(?!${Or}{1,2}(?:[${pr}]|$))`,QMARK_NO_DOT:`[^.${pr}]`,START_ANCHOR:`(?:^|[${pr}])`,END_ANCHOR:`(?:[${pr}]|$)`},mL={__proto__:null,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"};Wm.exports={DEFAULT_MAX_EXTGLOB_RECURSION:sL,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:mL,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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:iL.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?gL:qm}}});var Xi=E(Ft=>{"use strict";var yL=require("path"),AL=process.platform==="win32",{REGEX_BACKSLASH:wL,REGEX_REMOVE_BACKSLASH:bL,REGEX_SPECIAL_CHARS:EL,REGEX_SPECIAL_CHARS_GLOBAL:_L}=Ki();Ft.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ft.hasRegexChars=t=>EL.test(t);Ft.isRegexChar=t=>t.length===1&&Ft.hasRegexChars(t);Ft.escapeRegex=t=>t.replace(_L,"\\$1");Ft.toPosixSlashes=t=>t.replace(wL,"/");Ft.removeBackslashes=t=>t.replace(bL,e=>e==="\\"?"":e);Ft.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ft.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:AL===!0||yL.sep==="\\";Ft.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Ft.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Ft.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ft.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Xm=E((jH,Km)=>{"use strict";var Um=Xi(),{CHAR_ASTERISK:Wc,CHAR_AT:SL,CHAR_BACKWARD_SLASH:Ji,CHAR_COMMA:vL,CHAR_DOT:Uc,CHAR_EXCLAMATION_MARK:Gc,CHAR_FORWARD_SLASH:Vm,CHAR_LEFT_CURLY_BRACE:Hc,CHAR_LEFT_PARENTHESES:zc,CHAR_LEFT_SQUARE_BRACKET:CL,CHAR_PLUS:xL,CHAR_QUESTION_MARK:Gm,CHAR_RIGHT_CURLY_BRACE:PL,CHAR_RIGHT_PARENTHESES:Hm,CHAR_RIGHT_SQUARE_BRACKET:OL}=Ki(),zm=t=>t===Vm||t===Ji,Ym=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},RL=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,f=0,l=0,p=!1,d=!1,g=!1,m=!1,y=!1,_=!1,v=!1,F=!1,k=!1,W=!1,Z=0,ee,X,te={value:"",depth:0,isGlob:!1},L=()=>c>=n,b=()=>u.charCodeAt(c+1),T=()=>(ee=X,u.charCodeAt(++c));for(;c<n;){X=T();let de;if(X===Ji){v=te.backslashes=!0,X=T(),X===Hc&&(_=!0);continue}if(_===!0||X===Hc){for(Z++;L()!==!0&&(X=T());){if(X===Ji){v=te.backslashes=!0,T();continue}if(X===Hc){Z++;continue}if(_!==!0&&X===Uc&&(X=T())===Uc){if(p=te.isBrace=!0,g=te.isGlob=!0,W=!0,i===!0)continue;break}if(_!==!0&&X===vL){if(p=te.isBrace=!0,g=te.isGlob=!0,W=!0,i===!0)continue;break}if(X===PL&&(Z--,Z===0)){_=!1,p=te.isBrace=!0,W=!0;break}}if(i===!0)continue;break}if(X===Vm){if(s.push(c),o.push(te),te={value:"",depth:0,isGlob:!1},W===!0)continue;if(ee===Uc&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&(X===xL||X===SL||X===Wc||X===Gm||X===Gc)===!0&&b()===zc){if(g=te.isGlob=!0,m=te.isExtglob=!0,W=!0,X===Gc&&c===f&&(k=!0),i===!0){for(;L()!==!0&&(X=T());){if(X===Ji){v=te.backslashes=!0,X=T();continue}if(X===Hm){g=te.isGlob=!0,W=!0;break}}continue}break}if(X===Wc){if(ee===Wc&&(y=te.isGlobstar=!0),g=te.isGlob=!0,W=!0,i===!0)continue;break}if(X===Gm){if(g=te.isGlob=!0,W=!0,i===!0)continue;break}if(X===CL){for(;L()!==!0&&(de=T());){if(de===Ji){v=te.backslashes=!0,T();continue}if(de===OL){d=te.isBracket=!0,g=te.isGlob=!0,W=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&X===Gc&&c===f){F=te.negated=!0,f++;continue}if(r.noparen!==!0&&X===zc){if(g=te.isGlob=!0,i===!0){for(;L()!==!0&&(X=T());){if(X===zc){v=te.backslashes=!0,X=T();continue}if(X===Hm){W=!0;break}}continue}break}if(g===!0){if(W=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,g=!1);let N=u,re="",C="";f>0&&(re=u.slice(0,f),u=u.slice(f),l-=f),N&&g===!0&&l>0?(N=u.slice(0,l),C=u.slice(l)):g===!0?(N="",C=u):N=u,N&&N!==""&&N!=="/"&&N!==u&&zm(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),r.unescape===!0&&(C&&(C=Um.removeBackslashes(C)),N&&v===!0&&(N=Um.removeBackslashes(N)));let R={prefix:re,input:t,start:f,base:N,glob:C,isBrace:p,isBracket:d,isGlob:g,isExtglob:m,isGlobstar:y,negated:F,negatedExtglob:k};if(r.tokens===!0&&(R.maxDepth=0,zm(X)||o.push(te),R.tokens=o),r.parts===!0||r.tokens===!0){let de;for(let $=0;$<s.length;$++){let De=de?de+1:f,_e=s[$],Fe=t.slice(De,_e);r.tokens&&($===0&&f!==0?(o[$].isPrefix=!0,o[$].value=re):o[$].value=Fe,Ym(o[$]),R.maxDepth+=o[$].depth),($!==0||Fe!=="")&&a.push(Fe),de=_e}if(de&&de+1<t.length){let $=t.slice(de+1);a.push($),r.tokens&&(o[o.length-1].value=$,Ym(o[o.length-1]),R.maxDepth+=o[o.length-1].depth)}R.slashes=s,R.parts=a}return R};Km.exports=RL});var t0=E((qH,e0)=>{"use strict";var Qi=Ki(),dt=Xi(),{MAX_LENGTH:Po,POSIX_REGEX_SOURCE:LL,REGEX_NON_SPECIAL_CHARS:DL,REGEX_SPECIAL_CHARS_BACKREF:FL,REPLACEMENTS:Jm}=Qi,TL=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>dt.escapeRegex(i)).join("..")}return r},ti=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Qm=t=>{let e=[],r=0,n=0,i=0,s="",o=!1;for(let a of t){if(o===!0){s+=a,o=!1;continue}if(a==="\\"){s+=a,o=!0;continue}if(a==='"'){i=i===1?0:1,s+=a;continue}if(i===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){e.push(s),s="";continue}}}s+=a}return e.push(s),e},kL=t=>{let e=!1;for(let r of t){if(e===!0){e=!1;continue}if(r==="\\"){e=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Zm=t=>{let e=t.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),r=!0);if(kL(e))return e.replace(/\\(.)/g,"$1")},NL=t=>{let e=t.map(Zm).filter(Boolean);for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++){let i=e[r],s=e[n],o=i[0];if(!(!o||i!==o.repeat(i.length)||s!==o.repeat(s.length))&&(i===s||i.startsWith(s)||s.startsWith(i)))return!0}return!1},Yc=(t,e=!0)=>{if(t[0]!=="+"&&t[0]!=="*"||t[1]!=="(")return;let r=0,n=0,i=0,s=!1;for(let o=1;o<t.length;o++){let a=t[o];if(s===!0){s=!1;continue}if(a==="\\"){s=!0;continue}if(a==='"'){i=i===1?0:1;continue}if(i!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return e===!0&&o!==t.length-1?void 0:{type:t[0],body:t.slice(2,o),end:o}}}}},IL=t=>{let e=0,r=[];for(;e<t.length;){let i=Yc(t.slice(e),!1);if(!i||i.type!=="*")return;let s=Qm(i.body).map(a=>a.trim());if(s.length!==1)return;let o=Zm(s[0]);if(!o||o.length!==1)return;r.push(o),e+=i.end+1}return r.length<1?void 0:`${r.length===1?dt.escapeRegex(r[0]):`[${r.map(i=>dt.escapeRegex(i)).join("")}]`}*`},$L=t=>{let e=0,r=t.trim(),n=Yc(r);for(;n;)e++,r=n.body.trim(),n=Yc(r);return e},ML=(t,e)=>{if(e.maxExtglobRecursion===!1)return{risky:!1};let r=typeof e.maxExtglobRecursion=="number"?e.maxExtglobRecursion:Qi.DEFAULT_MAX_EXTGLOB_RECURSION,n=Qm(t).map(i=>i.trim());if(n.length>1&&(n.some(i=>i==="")||n.some(i=>/^[*?]+$/.test(i))||NL(n)))return{risky:!0};for(let i of n){let s=IL(i);if(s)return{risky:!0,safeOutput:s};if($L(i)>r)return{risky:!0}}return{risky:!1}},Vc=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Jm[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(Po,r.maxLength):Po,i=t.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=dt.isWindows(e),c=Qi.globChars(u),f=Qi.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:_,NO_DOTS_SLASH:v,QMARK:F,QMARK_NO_DOT:k,STAR:W,START_ANCHOR:Z}=c,ee=j=>`(${a}(?:(?!${Z}${j.dot?m:l}).)*?)`,X=r.dot?"":y,te=r.dot?F:k,L=r.bash===!0?ee(r):W;r.capture&&(L=`(${L})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let b={input:t,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};t=dt.removePrefix(t,b),i=t.length;let T=[],N=[],re=[],C=s,R,de=()=>b.index===i-1,$=b.peek=(j=1)=>t[b.index+j],De=b.advance=()=>t[++b.index]||"",_e=()=>t.slice(b.index+1),Fe=(j="",we=0)=>{b.consumed+=j,b.index+=we},Me=j=>{b.output+=j.output!=null?j.output:j.value,Fe(j.value)},st=()=>{let j=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)De(),b.start++,j++;return j%2===0?!1:(b.negated=!0,b.start++,!0)},he=j=>{b[j]++,re.push(j)},Xe=j=>{b[j]--,re.pop()},Q=j=>{if(C.type==="globstar"){let we=b.braces>0&&(j.type==="comma"||j.type==="brace"),M=j.extglob===!0||T.length&&(j.type==="pipe"||j.type==="paren");j.type!=="slash"&&j.type!=="paren"&&!we&&!M&&(b.output=b.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=L,b.output+=C.output)}if(T.length&&j.type!=="paren"&&(T[T.length-1].inner+=j.value),(j.value||j.output)&&Me(j),C&&C.type==="text"&&j.type==="text"){C.value+=j.value,C.output=(C.output||"")+j.value;return}j.prev=C,o.push(j),C=j},Pe=(j,we)=>{let M={...f[we],conditions:1,inner:""};M.prev=C,M.parens=b.parens,M.output=b.output,M.startIndex=b.index,M.tokensIndex=o.length;let me=(r.capture?"(":"")+M.open;he("parens"),Q({type:j,value:we,output:b.output?"":g}),Q({type:"paren",extglob:!0,value:De(),output:me}),T.push(M)},Te=j=>{let we=t.slice(j.startIndex,b.index+1),M=t.slice(j.startIndex+2,b.index),me=ML(M,r);if((j.type==="plus"||j.type==="star")&&me.risky){let S=me.safeOutput?(j.output?"":g)+(r.capture?`(${me.safeOutput})`:me.safeOutput):void 0,x=o[j.tokensIndex];x.type="text",x.value=we,x.output=S||dt.escapeRegex(we);for(let V=j.tokensIndex+1;V<o.length;V++)o[V].value="",o[V].output="",delete o[V].suffix;b.output=j.output+x.output,b.backtrack=!0,Q({type:"paren",extglob:!0,value:R,output:""}),Xe("parens");return}let Ce=j.close+(r.capture?")":""),Ie;if(j.type==="negate"){let S=L;if(j.inner&&j.inner.length>1&&j.inner.includes("/")&&(S=ee(r)),(S!==L||de()||/^\)+$/.test(_e()))&&(Ce=j.close=`)$))${S}`),j.inner.includes("*")&&(Ie=_e())&&/^\.[^\\/.]+$/.test(Ie)){let x=Vc(Ie,{...e,fastpaths:!1}).output;Ce=j.close=`)${x})${S})`}j.prev.type==="bos"&&(b.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:R,output:Ce}),Xe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let j=!1,we=t.replace(FL,(M,me,Ce,Ie,S,x)=>Ie==="\\"?(j=!0,M):Ie==="?"?me?me+Ie+(S?F.repeat(S.length):""):x===0?te+(S?F.repeat(S.length):""):F.repeat(Ce.length):Ie==="."?l.repeat(Ce.length):Ie==="*"?me?me+Ie+(S?L:""):L:me?M:`\\${M}`);return j===!0&&(r.unescape===!0?we=we.replace(/\\/g,""):we=we.replace(/\\+/g,M=>M.length%2===0?"\\\\":M?"\\":"")),we===t&&r.contains===!0?(b.output=t,b):(b.output=dt.wrapOutput(we,b,e),b)}for(;!de();){if(R=De(),R==="\0")continue;if(R==="\\"){let M=$();if(M==="/"&&r.bash!==!0||M==="."||M===";")continue;if(!M){R+="\\",Q({type:"text",value:R});continue}let me=/^\\+/.exec(_e()),Ce=0;if(me&&me[0].length>2&&(Ce=me[0].length,b.index+=Ce,Ce%2!==0&&(R+="\\")),r.unescape===!0?R=De():R+=De(),b.brackets===0){Q({type:"text",value:R});continue}}if(b.brackets>0&&(R!=="]"||C.value==="["||C.value==="[^")){if(r.posix!==!1&&R===":"){let M=C.value.slice(1);if(M.includes("[")&&(C.posix=!0,M.includes(":"))){let me=C.value.lastIndexOf("["),Ce=C.value.slice(0,me),Ie=C.value.slice(me+2),S=LL[Ie];if(S){C.value=Ce+S,b.backtrack=!0,De(),!s.output&&o.indexOf(C)===1&&(s.output=g);continue}}}(R==="["&&$()!==":"||R==="-"&&$()==="]")&&(R=`\\${R}`),R==="]"&&(C.value==="["||C.value==="[^")&&(R=`\\${R}`),r.posix===!0&&R==="!"&&C.value==="["&&(R="^"),C.value+=R,Me({value:R});continue}if(b.quotes===1&&R!=='"'){R=dt.escapeRegex(R),C.value+=R,Me({value:R});continue}if(R==='"'){b.quotes=b.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:R});continue}if(R==="("){he("parens"),Q({type:"paren",value:R});continue}if(R===")"){if(b.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ti("opening","("));let M=T[T.length-1];if(M&&b.parens===M.parens+1){Te(T.pop());continue}Q({type:"paren",value:R,output:b.parens?")":"\\)"}),Xe("parens");continue}if(R==="["){if(r.nobracket===!0||!_e().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ti("closing","]"));R=`\\${R}`}else he("brackets");Q({type:"bracket",value:R});continue}if(R==="]"){if(r.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){Q({type:"text",value:R,output:`\\${R}`});continue}if(b.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ti("opening","["));Q({type:"text",value:R,output:`\\${R}`});continue}Xe("brackets");let M=C.value.slice(1);if(C.posix!==!0&&M[0]==="^"&&!M.includes("/")&&(R=`/${R}`),C.value+=R,Me({value:R}),r.literalBrackets===!1||dt.hasRegexChars(M))continue;let me=dt.escapeRegex(C.value);if(b.output=b.output.slice(0,-C.value.length),r.literalBrackets===!0){b.output+=me,C.value=me;continue}C.value=`(${a}${me}|${C.value})`,b.output+=C.value;continue}if(R==="{"&&r.nobrace!==!0){he("braces");let M={type:"brace",value:R,output:"(",outputIndex:b.output.length,tokensIndex:b.tokens.length};N.push(M),Q(M);continue}if(R==="}"){let M=N[N.length-1];if(r.nobrace===!0||!M){Q({type:"text",value:R,output:R});continue}let me=")";if(M.dots===!0){let Ce=o.slice(),Ie=[];for(let S=Ce.length-1;S>=0&&(o.pop(),Ce[S].type!=="brace");S--)Ce[S].type!=="dots"&&Ie.unshift(Ce[S].value);me=TL(Ie,r),b.backtrack=!0}if(M.comma!==!0&&M.dots!==!0){let Ce=b.output.slice(0,M.outputIndex),Ie=b.tokens.slice(M.tokensIndex);M.value=M.output="\\{",R=me="\\}",b.output=Ce;for(let S of Ie)b.output+=S.output||S.value}Q({type:"brace",value:R,output:me}),Xe("braces"),N.pop();continue}if(R==="|"){T.length>0&&T[T.length-1].conditions++,Q({type:"text",value:R});continue}if(R===","){let M=R,me=N[N.length-1];me&&re[re.length-1]==="braces"&&(me.comma=!0,M="|"),Q({type:"comma",value:R,output:M});continue}if(R==="/"){if(C.type==="dot"&&b.index===b.start+1){b.start=b.index+1,b.consumed="",b.output="",o.pop(),C=s;continue}Q({type:"slash",value:R,output:d});continue}if(R==="."){if(b.braces>0&&C.type==="dot"){C.value==="."&&(C.output=l);let M=N[N.length-1];C.type="dots",C.output+=R,C.value+=R,M.dots=!0;continue}if(b.braces+b.parens===0&&C.type!=="bos"&&C.type!=="slash"){Q({type:"text",value:R,output:l});continue}Q({type:"dot",value:R,output:l});continue}if(R==="?"){if(!(C&&C.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Pe("qmark",R);continue}if(C&&C.type==="paren"){let me=$(),Ce=R;if(me==="<"&&!dt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(me)||me==="<"&&!/<([!=]|\w+>)/.test(_e()))&&(Ce=`\\${R}`),Q({type:"text",value:R,output:Ce});continue}if(r.dot!==!0&&(C.type==="slash"||C.type==="bos")){Q({type:"qmark",value:R,output:k});continue}Q({type:"qmark",value:R,output:F});continue}if(R==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){Pe("negate",R);continue}if(r.nonegate!==!0&&b.index===0){st();continue}}if(R==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Pe("plus",R);continue}if(C&&C.value==="("||r.regex===!1){Q({type:"plus",value:R,output:p});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||b.parens>0){Q({type:"plus",value:R});continue}Q({type:"plus",value:p});continue}if(R==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Q({type:"at",extglob:!0,value:R,output:""});continue}Q({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let M=DL.exec(_e());M&&(R+=M[0],b.index+=M[0].length),Q({type:"text",value:R});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=R,C.output=L,b.backtrack=!0,b.globstar=!0,Fe(R);continue}let j=_e();if(r.noextglob!==!0&&/^\([^?]/.test(j)){Pe("star",R);continue}if(C.type==="star"){if(r.noglobstar===!0){Fe(R);continue}let M=C.prev,me=M.prev,Ce=M.type==="slash"||M.type==="bos",Ie=me&&(me.type==="star"||me.type==="globstar");if(r.bash===!0&&(!Ce||j[0]&&j[0]!=="/")){Q({type:"star",value:R,output:""});continue}let S=b.braces>0&&(M.type==="comma"||M.type==="brace"),x=T.length&&(M.type==="pipe"||M.type==="paren");if(!Ce&&M.type!=="paren"&&!S&&!x){Q({type:"star",value:R,output:""});continue}for(;j.slice(0,3)==="/**";){let V=t[b.index+4];if(V&&V!=="/")break;j=j.slice(3),Fe("/**",3)}if(M.type==="bos"&&de()){C.type="globstar",C.value+=R,C.output=ee(r),b.output=C.output,b.globstar=!0,Fe(R);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&!Ie&&de()){b.output=b.output.slice(0,-(M.output+C.output).length),M.output=`(?:${M.output}`,C.type="globstar",C.output=ee(r)+(r.strictSlashes?")":"|$)"),C.value+=R,b.globstar=!0,b.output+=M.output+C.output,Fe(R);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&j[0]==="/"){let V=j[1]!==void 0?"|$":"";b.output=b.output.slice(0,-(M.output+C.output).length),M.output=`(?:${M.output}`,C.type="globstar",C.output=`${ee(r)}${d}|${d}${V})`,C.value+=R,b.output+=M.output+C.output,b.globstar=!0,Fe(R+De()),Q({type:"slash",value:"/",output:""});continue}if(M.type==="bos"&&j[0]==="/"){C.type="globstar",C.value+=R,C.output=`(?:^|${d}|${ee(r)}${d})`,b.output=C.output,b.globstar=!0,Fe(R+De()),Q({type:"slash",value:"/",output:""});continue}b.output=b.output.slice(0,-C.output.length),C.type="globstar",C.output=ee(r),C.value+=R,b.output+=C.output,b.globstar=!0,Fe(R);continue}let we={type:"star",value:R,output:L};if(r.bash===!0){we.output=".*?",(C.type==="bos"||C.type==="slash")&&(we.output=X+we.output),Q(we);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&r.regex===!0){we.output=R,Q(we);continue}(b.index===b.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(b.output+=_,C.output+=_):r.dot===!0?(b.output+=v,C.output+=v):(b.output+=X,C.output+=X),$()!=="*"&&(b.output+=g,C.output+=g)),Q(we)}for(;b.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing","]"));b.output=dt.escapeLast(b.output,"["),Xe("brackets")}for(;b.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing",")"));b.output=dt.escapeLast(b.output,"("),Xe("parens")}for(;b.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing","}"));b.output=dt.escapeLast(b.output,"{"),Xe("braces")}if(r.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${d}?`}),b.backtrack===!0){b.output="";for(let j of b.tokens)b.output+=j.output!=null?j.output:j.value,j.suffix&&(b.output+=j.suffix)}return b};Vc.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(Po,r.maxLength):Po,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=Jm[t]||t;let s=dt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:g}=Qi.globChars(s),m=r.dot?l:f,y=r.dot?p:f,_=r.capture?"":"?:",v={negated:!1,prefix:""},F=r.bash===!0?".*?":d;r.capture&&(F=`(${F})`);let k=X=>X.noglobstar===!0?F:`(${_}(?:(?!${g}${X.dot?c:o}).)*?)`,W=X=>{switch(X){case"*":return`${m}${u}${F}`;case".*":return`${o}${u}${F}`;case"*.*":return`${m}${F}${o}${u}${F}`;case"*/*":return`${m}${F}${a}${u}${y}${F}`;case"**":return m+k(r);case"**/*":return`(?:${m}${k(r)}${a})?${y}${u}${F}`;case"**/*.*":return`(?:${m}${k(r)}${a})?${y}${F}${o}${u}${F}`;case"**/.*":return`(?:${m}${k(r)}${a})?${o}${u}${F}`;default:{let te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;let L=W(te[1]);return L?L+o+te[2]:void 0}}},Z=dt.removePrefix(t,v),ee=W(Z);return ee&&r.strictSlashes!==!0&&(ee+=`${a}?`),ee};e0.exports=Vc});var n0=E((WH,r0)=>{"use strict";var BL=require("path"),jL=Xm(),Kc=t0(),Xc=Xi(),qL=Ki(),WL=t=>t&&typeof t=="object"&&!Array.isArray(t),Qe=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(p=>Qe(p,e,r));return p=>{for(let d of f){let g=d(p);if(g)return g}return!1}}let n=WL(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Xc.isWindows(e),o=n?Qe.compileRe(t,e):Qe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};u=Qe(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:p,match:d,output:g}=Qe.test(f,o,e,{glob:t,posix:s}),m={glob:t,state:a,regex:o,posix:s,input:f,output:g,match:d,isMatch:p};return typeof i.onResult=="function"&&i.onResult(m),p===!1?(m.isMatch=!1,l?m:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,l?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),l?m:!0)};return r&&(c.state=a),c};Qe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Xc.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Qe.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Qe.matchBase=(t,e,r,n=Xc.isWindows(r))=>(e instanceof RegExp?e:Qe.makeRe(e,r)).test(BL.basename(t));Qe.isMatch=(t,e,r)=>Qe(e,r)(t);Qe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Qe.parse(r,e)):Kc(t,{...e,fastpaths:!1});Qe.scan=(t,e)=>jL(t,e);Qe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Qe.toRegex(a,e);return n===!0&&(u.state=t),u};Qe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Kc.fastpaths(t,e)),i.output||(i=Kc(t,e)),Qe.compileRe(i,e,r,n)};Qe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Qe.constants=qL;r0.exports=Qe});var s0=E((UH,i0)=>{"use strict";i0.exports=n0()});var f0=E((GH,l0)=>{"use strict";var a0=require("util"),u0=$m(),dr=s0(),Jc=Xi(),o0=t=>t===""||t==="./",c0=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},je=(t,e,r)=>{e=[].concat(e),t=[].concat(t);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<e.length;f++){let l=dr(String(e[f]),{...r,onResult:a},!0),p=l.state.negated||l.state.negatedExtglob;p&&o++;for(let d of t){let g=l(d,!0);(p?!g.isMatch:g.isMatch)&&(p?n.add(g.output):(n.delete(g.output),i.add(g.output)))}}let c=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return c};je.match=je;je.matcher=(t,e)=>dr(t,e);je.isMatch=(t,e,r)=>dr(e,r)(t);je.any=je.isMatch;je.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(je(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};je.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${a0.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>je.contains(t,n,r));if(typeof e=="string"){if(o0(t)||o0(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return je.isMatch(t,e,{...r,contains:!0})};je.matchKeys=(t,e,r)=>{if(!Jc.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=je(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};je.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=dr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};je.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=dr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};je.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${a0.inspect(t)}"`);return[].concat(e).every(n=>dr(n,r)(t))};je.capture=(t,e,r)=>{let n=Jc.isWindows(r),s=dr.makeRe(String(t),{...r,capture:!0}).exec(n?Jc.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};je.makeRe=(...t)=>dr.makeRe(...t);je.scan=(...t)=>dr.scan(...t);je.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of u0(String(n),e))r.push(dr.parse(i,e));return r};je.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!c0(t)?[t]:u0(t,e)};je.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return je.braces(t,{...e,expand:!0})};je.hasBraces=c0;l0.exports=je});var E0=E(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isAbsolute=Se.partitionAbsoluteAndRelative=Se.removeDuplicateSlashes=Se.matchAny=Se.convertPatternsToRe=Se.makeRe=Se.getPatternParts=Se.expandBraceExpansion=Se.expandPatternsWithBraceExpansion=Se.isAffectDepthOfReadingPattern=Se.endsWithSlashGlobStar=Se.hasGlobStar=Se.getBaseDirectory=Se.isPatternRelatedToParentDirectory=Se.getPatternsOutsideCurrentDirectory=Se.getPatternsInsideCurrentDirectory=Se.getPositivePatterns=Se.getNegativePatterns=Se.isPositivePattern=Se.isNegativePattern=Se.convertToNegativePattern=Se.convertToPositivePattern=Se.isDynamicPattern=Se.isStaticPattern=void 0;var h0=require("path"),UL=tm(),Qc=f0(),p0="**",GL="\\",HL=/[*?]|^!/,zL=/\[[^[]*]/,YL=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,VL=/[!*+?@]\([^(]*\)/,KL=/,|\.\./,XL=/(?!^)\/{2,}/g;function d0(t,e={}){return!g0(t,e)}Se.isStaticPattern=d0;function g0(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(GL)||HL.test(t)||zL.test(t)||YL.test(t)||e.extglob!==!1&&VL.test(t)||e.braceExpansion!==!1&&JL(t))}Se.isDynamicPattern=g0;function JL(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return KL.test(n)}function QL(t){return Oo(t)?t.slice(1):t}Se.convertToPositivePattern=QL;function ZL(t){return"!"+t}Se.convertToNegativePattern=ZL;function Oo(t){return t.startsWith("!")&&t[1]!=="("}Se.isNegativePattern=Oo;function m0(t){return!Oo(t)}Se.isPositivePattern=m0;function eD(t){return t.filter(Oo)}Se.getNegativePatterns=eD;function tD(t){return t.filter(m0)}Se.getPositivePatterns=tD;function rD(t){return t.filter(e=>!Zc(e))}Se.getPatternsInsideCurrentDirectory=rD;function nD(t){return t.filter(Zc)}Se.getPatternsOutsideCurrentDirectory=nD;function Zc(t){return t.startsWith("..")||t.startsWith("./..")}Se.isPatternRelatedToParentDirectory=Zc;function iD(t){return UL(t,{flipBackslashes:!1})}Se.getBaseDirectory=iD;function sD(t){return t.includes(p0)}Se.hasGlobStar=sD;function y0(t){return t.endsWith("/"+p0)}Se.endsWithSlashGlobStar=y0;function oD(t){let e=h0.basename(t);return y0(t)||d0(e)}Se.isAffectDepthOfReadingPattern=oD;function aD(t){return t.reduce((e,r)=>e.concat(A0(r)),[])}Se.expandPatternsWithBraceExpansion=aD;function A0(t){let e=Qc.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}Se.expandBraceExpansion=A0;function uD(t,e){let{parts:r}=Qc.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Se.getPatternParts=uD;function w0(t,e){return Qc.makeRe(t,e)}Se.makeRe=w0;function cD(t,e){return t.map(r=>w0(r,e))}Se.convertPatternsToRe=cD;function lD(t,e){return e.some(r=>r.test(t))}Se.matchAny=lD;function fD(t){return t.replace(XL,"/")}Se.removeDuplicateSlashes=fD;function hD(t){let e=[],r=[];for(let n of t)b0(n)?e.push(n):r.push(n);return[e,r]}Se.partitionAbsoluteAndRelative=hD;function b0(t){return h0.isAbsolute(t)}Se.isAbsolute=b0});var C0=E((zH,v0)=>{"use strict";var pD=require("stream"),_0=pD.PassThrough,dD=Array.prototype.slice;v0.exports=gD;function gD(){let t=[],e=dD.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.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=_0(n);function a(){for(let f=0,l=arguments.length;f<l;f++)t.push(S0(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function p(){--l>0||(r=!1,u())}function d(g){function m(){g.removeListener("merge2UnpipeEnd",m),g.removeListener("end",m),s&&g.removeListener("error",y),p()}function y(_){o.emit("error",_)}if(g._readableState.endEmitted)return p();g.on("merge2UnpipeEnd",m),g.on("end",m),s&&g.on("error",y),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<f.length;g++)d(f[g]);p()}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")}),e.length&&a.apply(null,e),o}function S0(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=S0(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(_0(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var P0=E(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.merge=void 0;var mD=C0();function yD(t){let e=mD(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>x0(t)),e.once("end",()=>x0(t)),e}Ro.merge=yD;function x0(t){t.forEach(e=>e.emit("close"))}});var O0=E(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.isEmpty=ri.isString=void 0;function AD(t){return typeof t=="string"}ri.isString=AD;function wD(t){return t===""}ri.isEmpty=wD});var Rr=E(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.string=gt.stream=gt.pattern=gt.path=gt.fs=gt.errno=gt.array=void 0;var bD=Wg();gt.array=bD;var ED=Ug();gt.errno=ED;var _D=Gg();gt.fs=_D;var SD=Vg();gt.path=SD;var vD=E0();gt.pattern=vD;var CD=P0();gt.stream=CD;var xD=O0();gt.string=xD});var F0=E(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.convertPatternGroupToTask=mt.convertPatternGroupsToTasks=mt.groupPatternsByBaseDirectory=mt.getNegativePatternsAsPositive=mt.getPositivePatterns=mt.convertPatternsToTasks=mt.generate=void 0;var or=Rr();function PD(t,e){let r=R0(t,e),n=R0(e.ignore,e),i=L0(r),s=D0(r,n),o=i.filter(f=>or.pattern.isStaticPattern(f,e)),a=i.filter(f=>or.pattern.isDynamicPattern(f,e)),u=el(o,s,!1),c=el(a,s,!0);return u.concat(c)}mt.generate=PD;function R0(t,e){let r=t;return e.braceExpansion&&(r=or.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>or.pattern.removeDuplicateSlashes(n))}function el(t,e,r){let n=[],i=or.pattern.getPatternsOutsideCurrentDirectory(t),s=or.pattern.getPatternsInsideCurrentDirectory(t),o=tl(i),a=tl(s);return n.push(...rl(o,e,r)),"."in a?n.push(nl(".",s,e,r)):n.push(...rl(a,e,r)),n}mt.convertPatternsToTasks=el;function L0(t){return or.pattern.getPositivePatterns(t)}mt.getPositivePatterns=L0;function D0(t,e){return or.pattern.getNegativePatterns(t).concat(e).map(or.pattern.convertToPositivePattern)}mt.getNegativePatternsAsPositive=D0;function tl(t){let e={};return t.reduce((r,n)=>{let i=or.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}mt.groupPatternsByBaseDirectory=tl;function rl(t,e,r){return Object.keys(t).map(n=>nl(n,t[n],e,r))}mt.convertPatternGroupsToTasks=rl;function nl(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(or.pattern.convertToNegativePattern))}}mt.convertPatternGroupToTask=nl});var k0=E(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.read=void 0;function OD(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){T0(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){il(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){T0(r,s);return}il(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),il(r,o)})})}Lo.read=OD;function T0(t,e){t(e)}function il(t,e){t(null,e)}});var N0=E(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.read=void 0;function RD(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Do.read=RD});var I0=E(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.createFileSystemAdapter=Ur.FILE_SYSTEM_ADAPTER=void 0;var Fo=require("fs");Ur.FILE_SYSTEM_ADAPTER={lstat:Fo.lstat,stat:Fo.stat,lstatSync:Fo.lstatSync,statSync:Fo.statSync};function LD(t){return t===void 0?Ur.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ur.FILE_SYSTEM_ADAPTER),t)}Ur.createFileSystemAdapter=LD});var $0=E(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var DD=I0(),sl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=DD.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};ol.default=sl});var wn=E(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.statSync=Gr.stat=Gr.Settings=void 0;var M0=k0(),FD=N0(),al=$0();Gr.Settings=al.default;function TD(t,e,r){if(typeof e=="function"){M0.read(t,ul(),e);return}M0.read(t,ul(e),r)}Gr.stat=TD;function kD(t,e){let r=ul(e);return FD.read(t,r)}Gr.statSync=kD;function ul(t={}){return t instanceof al.default?t:new al.default(t)}});var q0=E((r9,j0)=>{var B0;j0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(B0||(B0=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var U0=E((n9,W0)=>{W0.exports=ID;var ND=q0();function ID(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?ND(c):c()}function a(u,c,f){r[u]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){t[u](function(c,f){a(u,c,f)})}):t.forEach(function(u,c){u(function(f,l){a(c,f,l)})}):o(null),s=!1}});var cl=E(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var To=process.versions.node.split(".");if(To[0]===void 0||To[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var G0=Number.parseInt(To[0],10),$D=Number.parseInt(To[1],10),H0=10,MD=10,BD=G0>H0,jD=G0===H0&&$D>=MD;ko.IS_SUPPORT_READDIR_WITH_FILE_TYPES=BD||jD});var z0=E(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.createDirentFromStats=void 0;var ll=class{constructor(e,r){this.name=e,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 qD(t,e){return new ll(t,e)}No.createDirentFromStats=qD});var fl=E(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.fs=void 0;var WD=z0();Io.fs=WD});var hl=E($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.joinPathSegments=void 0;function UD(t,e,r){return t.endsWith(r)?t+e:t+r+e}$o.joinPathSegments=UD});var Q0=E(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.readdir=Hr.readdirWithFileTypes=Hr.read=void 0;var GD=wn(),Y0=U0(),HD=cl(),V0=fl(),K0=hl();function zD(t,e,r){if(!e.stats&&HD.IS_SUPPORT_READDIR_WITH_FILE_TYPES){X0(t,e,r);return}J0(t,e,r)}Hr.read=zD;function X0(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Mo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:K0.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){pl(r,s);return}let o=s.map(a=>YD(a,e));Y0(o,(a,u)=>{if(a!==null){Mo(r,a);return}pl(r,u)})})}Hr.readdirWithFileTypes=X0;function YD(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=V0.fs.createDirentFromStats(t.name,i),r(null,t)})}}function J0(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Mo(r,n);return}let s=i.map(o=>{let a=K0.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{GD.stat(a,e.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:V0.fs.createDirentFromStats(o,f)};e.stats&&(l.stats=f),u(null,l)})}});Y0(s,(o,a)=>{if(o!==null){Mo(r,o);return}pl(r,a)})})}Hr.readdir=J0;function Mo(t,e){t(e)}function pl(t,e){t(null,e)}});var ny=E(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.readdir=zr.readdirWithFileTypes=zr.read=void 0;var VD=wn(),KD=cl(),Z0=fl(),ey=hl();function XD(t,e){return!e.stats&&KD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ty(t,e):ry(t,e)}zr.read=XD;function ty(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:ey.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=Z0.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}zr.readdirWithFileTypes=ty;function ry(t,e){return e.fs.readdirSync(t).map(n=>{let i=ey.joinPathSegments(t,n,e.pathSegmentSeparator),s=VD.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:Z0.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}zr.readdir=ry});var iy=E(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.createFileSystemAdapter=Yr.FILE_SYSTEM_ADAPTER=void 0;var ni=require("fs");Yr.FILE_SYSTEM_ADAPTER={lstat:ni.lstat,stat:ni.stat,lstatSync:ni.lstatSync,statSync:ni.statSync,readdir:ni.readdir,readdirSync:ni.readdirSync};function JD(t){return t===void 0?Yr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Yr.FILE_SYSTEM_ADAPTER),t)}Yr.createFileSystemAdapter=JD});var sy=E(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var QD=require("path"),ZD=wn(),eF=iy(),dl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=eF.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,QD.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ZD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};gl.default=dl});var Bo=E(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Settings=Vr.scandirSync=Vr.scandir=void 0;var oy=Q0(),tF=ny(),ml=sy();Vr.Settings=ml.default;function rF(t,e,r){if(typeof e=="function"){oy.read(t,yl(),e);return}oy.read(t,yl(e),r)}Vr.scandir=rF;function nF(t,e){let r=yl(e);return tF.read(t,r)}Vr.scandirSync=nF;function yl(t={}){return t instanceof ml.default?t:new ml.default(t)}});var uy=E((p9,ay)=>{"use strict";function iF(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}ay.exports=iF});var ly=E((d9,Al)=>{"use strict";var sF=uy();function cy(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=sF(oF),i=null,s=null,o=0,a=null,u={push:m,drain:zt,saturated:zt,pause:f,paused:!1,get concurrency(){return r},set concurrency(W){if(!(W>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=W,!u.paused)for(;i&&o<r;)o++,_()},running:c,resume:d,idle:g,length:l,getQueue:p,unshift:y,empty:zt,kill:v,killAndDrain:F,error:k};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var W=i,Z=0;W;)W=W.next,Z++;return Z}function p(){for(var W=i,Z=[];W;)Z.push(W.value),W=W.next;return Z}function d(){if(u.paused){if(u.paused=!1,i===null){o++,_();return}for(;i&&o<r;)o++,_()}}function g(){return o===0&&u.length()===0}function m(W,Z){var ee=n.get();ee.context=t,ee.release=_,ee.value=W,ee.callback=Z||zt,ee.errorHandler=a,o>=r||u.paused?s?(s.next=ee,s=ee):(i=ee,s=ee,u.saturated()):(o++,e.call(t,ee.value,ee.worked))}function y(W,Z){var ee=n.get();ee.context=t,ee.release=_,ee.value=W,ee.callback=Z||zt,ee.errorHandler=a,o>=r||u.paused?i?(ee.next=i,i=ee):(i=ee,s=ee,u.saturated()):(o++,e.call(t,ee.value,ee.worked))}function _(W){W&&n.release(W);var Z=i;Z&&o<=r?u.paused?o--:(s===i&&(s=null),i=Z.next,Z.next=null,e.call(t,Z.value,Z.worked),s===null&&u.empty()):--o===0&&u.drain()}function v(){i=null,s=null,u.drain=zt}function F(){i=null,s=null,u.drain(),u.drain=zt}function k(W){a=W}}function zt(){}function oF(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function aF(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,l){e.call(this,f).then(function(p){l(null,p)},l)}var i=cy(t,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(p,d){s(f,function(g,m){if(g){d(g);return}p(m)})});return l.catch(zt),l}function u(f){var l=new Promise(function(p,d){o(f,function(g,m){if(g){d(g);return}p(m)})});return l.catch(zt),l}function c(){var f=new Promise(function(l){process.nextTick(function(){if(i.idle())l();else{var p=i.drain;i.drain=function(){typeof p=="function"&&p(),l(),i.drain=p}}})});return f}}Al.exports=cy;Al.exports.promise=aF});var jo=E(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.joinPathSegments=gr.replacePathSegmentSeparator=gr.isAppliedFilter=gr.isFatalError=void 0;function uF(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}gr.isFatalError=uF;function cF(t,e){return t===null||t(e)}gr.isAppliedFilter=cF;function lF(t,e){return t.split(/[/\\]/).join(e)}gr.replacePathSegmentSeparator=lF;function fF(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}gr.joinPathSegments=fF});var El=E(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var hF=jo(),wl=class{constructor(e,r){this._root=e,this._settings=r,this._root=hF.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};bl.default=wl});var vl=E(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var pF=require("events"),dF=Bo(),gF=ly(),qo=jo(),mF=El(),_l=class extends mF.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=dF.scandir,this._emitter=new pF.EventEmitter,this._queue=gF(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!qo.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=qo.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),qo.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&qo.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Sl.default=_l});var fy=E(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var yF=vl(),Cl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new yF.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{AF(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{wF(e,this._storage)}),this._reader.read()}};xl.default=Cl;function AF(t,e){t(e)}function wF(t,e){t(null,e)}});var hy=E(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var bF=require("stream"),EF=vl(),Pl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new EF.default(this._root,this._settings),this._stream=new bF.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ol.default=Pl});var py=E(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var _F=Bo(),Wo=jo(),SF=El(),Rl=class extends SF.default{constructor(){super(...arguments),this._scandir=_F.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Wo.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Wo.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Wo.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Wo.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ll.default=Rl});var dy=E(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var vF=py(),Dl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new vF.default(this._root,this._settings)}read(){return this._reader.read()}};Fl.default=Dl});var gy=E(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var CF=require("path"),xF=Bo(),Tl=class{constructor(e={}){this._options=e,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,CF.sep),this.fsScandirSettings=new xF.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};kl.default=Tl});var Go=E(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.Settings=mr.walkStream=mr.walkSync=mr.walk=void 0;var my=fy(),PF=hy(),OF=dy(),Nl=gy();mr.Settings=Nl.default;function RF(t,e,r){if(typeof e=="function"){new my.default(t,Uo()).read(e);return}new my.default(t,Uo(e)).read(r)}mr.walk=RF;function LF(t,e){let r=Uo(e);return new OF.default(t,r).read()}mr.walkSync=LF;function DF(t,e){let r=Uo(e);return new PF.default(t,r).read()}mr.walkStream=DF;function Uo(t={}){return t instanceof Nl.default?t:new Nl.default(t)}});var Ho=E($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var FF=require("path"),TF=wn(),yy=Rr(),Il=class{constructor(e){this._settings=e,this._fsStatSettings=new TF.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return FF.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:yy.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!yy.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};$l.default=Il});var jl=E(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var kF=require("stream"),NF=wn(),IF=Go(),$F=Ho(),Ml=class extends $F.default{constructor(){super(...arguments),this._walkStream=IF.walkStream,this._stat=NF.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new kF.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[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(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Bl.default=Ml});var Ay=E(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var MF=Go(),BF=Ho(),jF=jl(),ql=class extends BF.default{constructor(){super(...arguments),this._walkAsync=MF.walk,this._readerStream=new jF.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Wl.default=ql});var wy=E(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var Zi=Rr(),Ul=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Zi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Zi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};Gl.default=Ul});var by=E(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var qF=wy(),Hl=class extends qF.default{match(e){let r=e.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}};zl.default=Hl});var Ey=E(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var zo=Rr(),WF=by(),Yl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new WF.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(zo.pattern.isAffectDepthOfReadingPattern);return zo.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=zo.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!zo.pattern.matchAny(e,r)}};Vl.default=Yl});var _y=E(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Kr=Rr(),Kl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,i]=Kr.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:Kr.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:Kr.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Kr.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(e,r){let n=Kr.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let i=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let i=Kr.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let i=Kr.pattern.matchAny(e,r);return!i&&n?Kr.pattern.matchAny(e+"/",r):i}};Xl.default=Kl});var Sy=E(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var UF=Rr(),Jl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return UF.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ql.default=Jl});var Cy=E(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var vy=Rr(),Zl=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=vy.path.makeAbsolute(this._settings.cwd,r),r=vy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};ef.default=Zl});var Yo=E(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var GF=require("path"),HF=Ey(),zF=_y(),YF=Sy(),VF=Cy(),tf=class{constructor(e){this._settings=e,this.errorFilter=new YF.default(this._settings),this.entryFilter=new zF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new HF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new VF.default(this._settings)}_getRootDirectory(e){return GF.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};rf.default=tf});var xy=E(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});var KF=Ay(),XF=Yo(),nf=class extends XF.default{constructor(){super(...arguments),this._reader=new KF.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};sf.default=nf});var Py=E(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var JF=require("stream"),QF=jl(),ZF=Yo(),of=class extends ZF.default{constructor(){super(...arguments),this._reader=new QF.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new JF.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(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};af.default=of});var Oy=E(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var eT=wn(),tT=Go(),rT=Ho(),uf=class extends rT.default{constructor(){super(...arguments),this._walkSync=tT.walkSync,this._statSync=eT.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};cf.default=uf});var Ry=E(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var nT=Oy(),iT=Yo(),lf=class extends iT.default{constructor(){super(...arguments),this._reader=new nT.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};ff.default=lf});var Ly=E(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ii=require("fs"),sT=require("os"),oT=Math.max(sT.cpus().length,1);si.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ii.lstat,lstatSync:ii.lstatSync,stat:ii.stat,statSync:ii.statSync,readdir:ii.readdir,readdirSync:ii.readdirSync};var hf=class{constructor(e={}){this._options=e,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,oT),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},si.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};si.default=hf});var Ty=E((B9,Fy)=>{"use strict";var Dy=F0(),aT=xy(),uT=Py(),cT=Ry(),pf=Ly(),Yt=Rr();async function df(t,e){ar(t);let r=gf(t,aT.default,e),n=await Promise.all(r);return Yt.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(c,f){ar(c);let l=gf(c,cT.default,f);return Yt.array.flatten(l)}t.sync=e;function r(c,f){ar(c);let l=gf(c,uT.default,f);return Yt.stream.merge(l)}t.stream=r;function n(c,f){ar(c);let l=[].concat(c),p=new pf.default(f);return Dy.generate(l,p)}t.generateTasks=n;function i(c,f){ar(c);let l=new pf.default(f);return Yt.pattern.isDynamicPattern(c,l)}t.isDynamicPattern=i;function s(c){return ar(c),Yt.path.escape(c)}t.escapePath=s;function o(c){return ar(c),Yt.path.convertPathToPattern(c)}t.convertPathToPattern=o;let a;(function(c){function f(p){return ar(p),Yt.path.escapePosixPath(p)}c.escapePath=f;function l(p){return ar(p),Yt.path.convertPosixPathToPattern(p)}c.convertPathToPattern=l})(a=t.posix||(t.posix={}));let u;(function(c){function f(p){return ar(p),Yt.path.escapeWindowsPath(p)}c.escapePath=f;function l(p){return ar(p),Yt.path.convertWindowsPathToPattern(p)}c.convertPathToPattern=l})(u=t.win32||(t.win32={}))})(df||(df={}));function gf(t,e,r){let n=[].concat(t),i=new pf.default(r),s=Dy.generate(n,i),o=new e(i);return s.map(o.read,o)}function ar(t){if(![].concat(t).every(n=>Yt.string.isString(n)&&!Yt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Fy.exports=df});var Ko=E(Jr=>{"use strict";var ky=Jr&&Jr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.getPackagePathsAsync=Jr.getPackagePaths=void 0;var Vo=ky(require("path")),Ny=ky(Ty()),Iy=Lc(),Xr={},$y={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function lT(t,e){return(0,Iy.isCachingEnabled)()&&Xr[t]||(Xr[t]=Ny.default.sync(My(e),{cwd:t,...$y}).map(By)),Xr[t]}Jr.getPackagePaths=lT;async function fT(t,e){return(0,Iy.isCachingEnabled)()&&Xr[t]||(Xr[t]=(await(0,Ny.default)(My(e),{cwd:t,...$y})).map(By)),Xr[t]}Jr.getPackagePathsAsync=fT;function My(t){return t.map(e=>Vo.default.join(e,"package.json").replace(/\\/g,"/"))}function By(t){let e=Vo.default.dirname(t);return Vo.default.sep==="/"?e:e.replace(/\//g,Vo.default.sep)}});var mf=E(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.infoFromPackageJson=void 0;function hT(t,e){return{packageJsonPath:e,...t}}Xo.infoFromPackageJson=hT});var wf=E(Qr=>{"use strict";var Af=Qr&&Qr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getPackageInfoAsync=Qr.getPackageInfo=void 0;var yf=Af(require("fs")),pT=Af(require("fs/promises")),jy=Af(require("path")),qy=mf(),Jo=Pr();function dT(t){let e=jy.default.join(t,"package.json");try{if(!yf.default.existsSync(e)){(0,Jo.logVerboseWarning)(`File does not exist: ${e}`);return}let r=JSON.parse(yf.default.readFileSync(e,"utf-8"));return(0,qy.infoFromPackageJson)(r,e)}catch(r){(0,Jo.logVerboseWarning)(`Error reading or parsing ${e}: ${r?.message||r}`)}}Qr.getPackageInfo=dT;async function gT(t){let e=jy.default.join(t,"package.json");try{if(!yf.default.existsSync(e)){(0,Jo.logVerboseWarning)(`File does not exist: ${e}`);return}let r=JSON.parse(await pT.default.readFile(e,"utf-8"));return(0,qy.infoFromPackageJson)(r,e)}catch(r){(0,Jo.logVerboseWarning)(`Error reading or parsing ${e}: ${r?.message||r}`)}}Qr.getPackageInfoAsync=gT});var es=E(Zr=>{"use strict";var Wy=Zr&&Zr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getWorkspacePackageInfoAsync=Zr.getWorkspacePackageInfo=void 0;var mT=Wy(require("path")),yT=Wy(require("fs/promises")),AT=Pr(),wT=mf(),bT=wf();function ET(t){return t?t.map(e=>{let r=(0,bT.getPackageInfo)(e);return r?{name:r.name,path:e,packageJson:r}:null}).filter(Boolean):[]}Zr.getWorkspacePackageInfo=ET;async function _T(t){if(!t)return[];let e=t.map(async r=>{let n=mT.default.join(r,"package.json");try{let i=JSON.parse(await yT.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,wT.infoFromPackageJson)(i,n)}}catch(i){return(0,AT.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(e)).filter(Boolean)}Zr.getWorkspacePackageInfoAsync=_T});var bf=E(Vt=>{"use strict";var Uy=Vt&&Vt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.getWorkspaceInfoFromWorkspaceRootAsync=Vt.getWorkspaceInfoFromWorkspaceRoot=Vt.getPackagePathsFromWorkspaceRootAsync=Vt.getPackagePathsFromWorkspaceRoot=void 0;var ST=Uy(require("fs")),vT=Uy(require("path")),Gy=Ko(),Hy=es(),Qo=Pr();function zy(t){let e=vT.default.join(t,"package.json"),r;try{r=JSON.parse(ST.default.readFileSync(e,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function Yy(t){try{let e=zy(t);return e?(0,Gy.getPackagePaths)(t,e):[]}catch(e){return(0,Qo.logVerboseWarning)(`Error getting package paths for ${t}`,e),[]}}Vt.getPackagePathsFromWorkspaceRoot=Yy;async function Vy(t){try{let e=zy(t);return e?(0,Gy.getPackagePathsAsync)(t,e):[]}catch(e){return(0,Qo.logVerboseWarning)(`Error getting package paths for ${t}`,e),[]}}Vt.getPackagePathsFromWorkspaceRootAsync=Vy;function CT(t){try{let e=Yy(t);return(0,Hy.getWorkspacePackageInfo)(e)}catch(e){return(0,Qo.logVerboseWarning)(`Error getting workspace info for ${t}`,e),[]}}Vt.getWorkspaceInfoFromWorkspaceRoot=CT;async function xT(t){try{let e=await Vy(t);return(0,Hy.getWorkspacePackageInfoAsync)(e)}catch(e){return(0,Qo.logVerboseWarning)(`Error getting workspace info for ${t}`,e),[]}}Vt.getWorkspaceInfoFromWorkspaceRootAsync=xT});var oi=E((H9,bn)=>{"use strict";function Ky(t){return typeof t>"u"||t===null}function PT(t){return typeof t=="object"&&t!==null}function OT(t){return Array.isArray(t)?t:Ky(t)?[]:[t]}function RT(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function LT(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function DT(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}bn.exports.isNothing=Ky;bn.exports.isObject=PT;bn.exports.toArray=OT;bn.exports.repeat=LT;bn.exports.isNegativeZero=DT;bn.exports.extend=RT});var ai=E((z9,Jy)=>{"use strict";function Xy(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
11
+
12
+ `+t.mark.snippet),n+" "+r):n}function ts(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Xy(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ts.prototype=Object.create(Error.prototype);ts.prototype.constructor=ts;ts.prototype.toString=function(e){return this.name+": "+Xy(this,e)};Jy.exports=ts});var Zy=E((Y9,Qy)=>{"use strict";var rs=oi();function Ef(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function _f(t,e){return rs.repeat(" ",e-t.length)+t}function FT(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(t.line+e.linesAfter,i.length).toString().length,l=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Ef(t.buffer,n[o-u],i[o-u],t.position-(n[o]-n[o-u]),l),a=rs.repeat(" ",e.indent)+_f((t.line-u+1).toString(),f)+" | "+c.str+`
13
+ `+a;for(c=Ef(t.buffer,n[o],i[o],t.position,l),a+=rs.repeat(" ",e.indent)+_f((t.line+1).toString(),f)+" | "+c.str+`
14
+ `,a+=rs.repeat("-",e.indent+f+3+c.pos)+`^
15
+ `,u=1;u<=e.linesAfter&&!(o+u>=i.length);u++)c=Ef(t.buffer,n[o+u],i[o+u],t.position-(n[o]-n[o+u]),l),a+=rs.repeat(" ",e.indent)+_f((t.line+u+1).toString(),f)+" | "+c.str+`
16
+ `;return a.replace(/\n$/,"")}Qy.exports=FT});var yt=E((V9,tA)=>{"use strict";var eA=ai(),TT=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kT=["scalar","sequence","mapping"];function NT(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function IT(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(TT.indexOf(r)===-1)throw new eA('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=NT(e.styleAliases||null),kT.indexOf(this.kind)===-1)throw new eA('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}tA.exports=IT});var Cf=E((K9,nA)=>{"use strict";var ns=ai(),Sf=yt();function rA(t,e){var r=[];return t[e].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 $T(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function vf(t){return this.extend(t)}vf.prototype.extend=function(e){var r=[],n=[];if(e instanceof Sf)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new ns("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Sf))throw new ns("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ns("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 ns("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 Sf))throw new ns("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(vf.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=rA(i,"implicit"),i.compiledExplicit=rA(i,"explicit"),i.compiledTypeMap=$T(i.compiledImplicit,i.compiledExplicit),i};nA.exports=vf});var xf=E((X9,iA)=>{"use strict";var MT=yt();iA.exports=new MT("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})});var Pf=E((J9,sA)=>{"use strict";var BT=yt();sA.exports=new BT("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})});var Of=E((Q9,oA)=>{"use strict";var jT=yt();oA.exports=new jT("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})});var Rf=E((Z9,aA)=>{"use strict";var qT=Cf();aA.exports=new qT({explicit:[xf(),Pf(),Of()]})});var Lf=E((e8,uA)=>{"use strict";var WT=yt();function UT(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function GT(){return null}function HT(t){return t===null}uA.exports=new WT("tag:yaml.org,2002:null",{kind:"scalar",resolve:UT,construct:GT,predicate:HT,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Df=E((t8,cA)=>{"use strict";var zT=yt();function YT(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function VT(t){return t==="true"||t==="True"||t==="TRUE"}function KT(t){return Object.prototype.toString.call(t)==="[object Boolean]"}cA.exports=new zT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:YT,construct:VT,predicate:KT,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})});var Ff=E((r8,lA)=>{"use strict";var XT=oi(),JT=yt();function QT(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function ZT(t){return 48<=t&&t<=55}function ek(t){return 48<=t&&t<=57}function tk(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!QT(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!ZT(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!ek(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function rk(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function nk(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!XT.isNegativeZero(t)}lA.exports=new JT("tag:yaml.org,2002:int",{kind:"scalar",resolve:tk,construct:rk,predicate:nk,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Tf=E((n8,hA)=>{"use strict";var fA=oi(),ik=yt(),sk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ok(t){return!(t===null||!sk.test(t)||t[t.length-1]==="_")}function ak(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var uk=/^[-+]?[0-9]+e/;function ck(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fA.isNegativeZero(t))return"-0.0";return r=t.toString(10),uk.test(r)?r.replace("e",".e"):r}function lk(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||fA.isNegativeZero(t))}hA.exports=new ik("tag:yaml.org,2002:float",{kind:"scalar",resolve:ok,construct:ak,predicate:lk,represent:ck,defaultStyle:"lowercase"})});var kf=E((i8,pA)=>{"use strict";pA.exports=Rf().extend({implicit:[Lf(),Df(),Ff(),Tf()]})});var Nf=E((s8,dA)=>{"use strict";dA.exports=kf()});var If=E((o8,yA)=>{"use strict";var fk=yt(),gA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),mA=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 hk(t){return t===null?!1:gA.exec(t)!==null||mA.exec(t)!==null}function pk(t){var e,r,n,i,s,o,a,u=0,c=null,f,l,p;if(e=gA.exec(t),e===null&&(e=mA.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(f=+e[10],l=+(e[11]||0),c=(f*60+l)*6e4,e[9]==="-"&&(c=-c)),p=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&p.setTime(p.getTime()-c),p}function dk(t){return t.toISOString()}yA.exports=new fk("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hk,construct:pk,instanceOf:Date,represent:dk})});var $f=E((a8,AA)=>{"use strict";var gk=yt();function mk(t){return t==="<<"||t===null}AA.exports=new gk("tag:yaml.org,2002:merge",{kind:"scalar",resolve:mk})});var Bf=E((u8,wA)=>{"use strict";var yk=yt(),Mf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
17
+ \r`;function Ak(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=Mf;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function wk(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=Mf,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));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 bk(t){var e="",r=0,n,i,s=t.length,o=Mf;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function Ek(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}wA.exports=new yk("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ak,construct:wk,predicate:Ek,represent:bk})});var jf=E((c8,bA)=>{"use strict";var _k=yt(),Sk=Object.prototype.hasOwnProperty,vk=Object.prototype.toString;function Ck(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,vk.call(i)!=="[object Object]")return!1;for(s in i)if(Sk.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function xk(t){return t!==null?t:[]}bA.exports=new _k("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ck,construct:xk})});var qf=E((l8,EA)=>{"use strict";var Pk=yt(),Ok=Object.prototype.toString;function Rk(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],Ok.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function Lk(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}EA.exports=new Pk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Rk,construct:Lk})});var Wf=E((f8,_A)=>{"use strict";var Dk=yt(),Fk=Object.prototype.hasOwnProperty;function Tk(t){if(t===null)return!0;var e,r=t;for(e in r)if(Fk.call(r,e)&&r[e]!==null)return!1;return!0}function kk(t){return t!==null?t:{}}_A.exports=new Dk("tag:yaml.org,2002:set",{kind:"mapping",resolve:Tk,construct:kk})});var Zo=E((h8,SA)=>{"use strict";SA.exports=Nf().extend({implicit:[If(),$f()],explicit:[Bf(),jf(),qf(),Wf()]})});var jA=E((p8,zf)=>{"use strict";var _n=oi(),LA=ai(),Nk=Zy(),Ik=Zo(),tn=Object.prototype.hasOwnProperty,ea=1,DA=2,FA=3,ta=4,Uf=1,$k=2,vA=3,Mk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Bk=/[\x85\u2028\u2029]/,jk=/[,\[\]\{\}]/,TA=/^(?:!|!!|![a-z\-]+!)$/i,kA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function CA(t){return Object.prototype.toString.call(t)}function yr(t){return t===10||t===13}function Sn(t){return t===9||t===32}function Tt(t){return t===9||t===32||t===10||t===13}function ui(t){return t===44||t===91||t===93||t===123||t===125}function qk(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Wk(t){return t===120?2:t===117?4:t===85?8:0}function Uk(t){return 48<=t&&t<=57?t-48:-1}function xA(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
18
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Gk(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function NA(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var IA=new Array(256),$A=new Array(256);for(En=0;En<256;En++)IA[En]=xA(En)?1:0,$A[En]=xA(En);var En;function Hk(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Ik,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function MA(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Nk(r),new LA(e,r)}function Ae(t,e){throw MA(t,e)}function ra(t,e){t.onWarning&&t.onWarning.call(null,MA(t,e))}var PA={YAML:function(e,r,n){var i,s,o;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Ae(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&ra(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],TA.test(i)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),tn.call(e.tagMap,i)&&Ae(e,'there is a previously declared suffix for "'+i+'" tag handle'),kA.test(s)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Ae(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function en(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Ae(t,"expected valid JSON character");else Mk.test(a)&&Ae(t,"the stream contains non-printable characters");t.result+=a}}function OA(t,e,r,n){var i,s,o,a;for(_n.isObject(r)||Ae(t,"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],tn.call(e,s)||(NA(e,s,r[s]),n[s]=!0)}function ci(t,e,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])&&Ae(t,"nested arrays are not supported inside keys"),typeof i=="object"&&CA(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&CA(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)OA(t,e,s[c],r);else OA(t,e,s,r);else!t.json&&!tn.call(r,i)&&tn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,Ae(t,"duplicated mapping key")),NA(e,i,s),delete r[i];return e}function Gf(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Ae(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function rt(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Sn(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(yr(i))for(Gf(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&ra(t,"deficient indentation"),n}function na(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Tt(r)))}function Hf(t,e){e===1?t.result+=" ":e>1&&(t.result+=_n.repeat(`
19
+ `,e-1))}function zk(t,e,r){var n,i,s,o,a,u,c,f,l=t.kind,p=t.result,d;if(d=t.input.charCodeAt(t.position),Tt(d)||ui(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=t.input.charCodeAt(t.position+1),Tt(i)||r&&ui(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),Tt(i)||r&&ui(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),Tt(n))break}else{if(t.position===t.lineStart&&na(t)||r&&ui(d))break;if(yr(d))if(u=t.line,c=t.lineStart,f=t.lineIndent,rt(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=c,t.lineIndent=f;break}}a&&(en(t,s,o,!1),Hf(t,t.line-u),s=o=t.position,a=!1),Sn(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return en(t,s,o,!1),t.result?!0:(t.kind=l,t.result=p,!1)}function Yk(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(en(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else yr(r)?(en(t,n,i,!0),Hf(t,rt(t,!1,e)),n=i=t.position):t.position===t.lineStart&&na(t)?Ae(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Ae(t,"unexpected end of the stream within a single quoted scalar")}function Vk(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return en(t,r,t.position,!0),t.position++,!0;if(a===92){if(en(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),yr(a))rt(t,!1,e);else if(a<256&&IA[a])t.result+=$A[a],t.position++;else if((o=Wk(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=qk(a))>=0?s=(s<<4)+o:Ae(t,"expected hexadecimal character");t.result+=Gk(s),t.position++}else Ae(t,"unknown escape sequence");r=n=t.position}else yr(a)?(en(t,r,n,!0),Hf(t,rt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&na(t)?Ae(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Ae(t,"unexpected end of the stream within a double quoted scalar")}function Kk(t,e){var r=!0,n,i,s,o=t.tag,a,u=t.anchor,c,f,l,p,d,g=Object.create(null),m,y,_,v;if(v=t.input.charCodeAt(t.position),v===91)f=93,d=!1,a=[];else if(v===123)f=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),v=t.input.charCodeAt(++t.position);v!==0;){if(rt(t,!0,e),v=t.input.charCodeAt(t.position),v===f)return t.position++,t.tag=o,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=a,!0;r?v===44&&Ae(t,"expected the node content, but found ','"):Ae(t,"missed comma between flow collection entries"),y=m=_=null,l=p=!1,v===63&&(c=t.input.charCodeAt(t.position+1),Tt(c)&&(l=p=!0,t.position++,rt(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,li(t,e,ea,!1,!0),y=t.tag,m=t.result,rt(t,!0,e),v=t.input.charCodeAt(t.position),(p||t.line===n)&&v===58&&(l=!0,v=t.input.charCodeAt(++t.position),rt(t,!0,e),li(t,e,ea,!1,!0),_=t.result),d?ci(t,a,g,y,m,_,n,i,s):l?a.push(ci(t,null,g,y,m,_,n,i,s)):a.push(m),rt(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(r=!0,v=t.input.charCodeAt(++t.position)):r=!1}Ae(t,"unexpected end of the stream within a flow collection")}function Xk(t,e){var r,n,i=Uf,s=!1,o=!1,a=e,u=0,c=!1,f,l;if(l=t.input.charCodeAt(t.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(t.kind="scalar",t.result="";l!==0;)if(l=t.input.charCodeAt(++t.position),l===43||l===45)Uf===i?i=l===43?vA:$k:Ae(t,"repeat of a chomping mode identifier");else if((f=Uk(l))>=0)f===0?Ae(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(t,"repeat of an indentation width identifier"):(a=e+f-1,o=!0);else break;if(Sn(l)){do l=t.input.charCodeAt(++t.position);while(Sn(l));if(l===35)do l=t.input.charCodeAt(++t.position);while(!yr(l)&&l!==0)}for(;l!==0;){for(Gf(t),t.lineIndent=0,l=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&l===32;)t.lineIndent++,l=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),yr(l)){u++;continue}if(t.lineIndent<a){i===vA?t.result+=_n.repeat(`
20
+ `,s?1+u:u):i===Uf&&s&&(t.result+=`
21
+ `);break}for(n?Sn(l)?(c=!0,t.result+=_n.repeat(`
22
+ `,s?1+u:u)):c?(c=!1,t.result+=_n.repeat(`
23
+ `,u+1)):u===0?s&&(t.result+=" "):t.result+=_n.repeat(`
24
+ `,u):t.result+=_n.repeat(`
25
+ `,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!yr(l)&&l!==0;)l=t.input.charCodeAt(++t.position);en(t,r,t.position,!1)}return!0}function RA(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Ae(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!Tt(o))));){if(a=!0,t.position++,rt(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,li(t,e,FA,!1,!0),s.push(t.result),rt(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Ae(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function Jk(t,e,r){var n,i,s,o,a,u,c=t.tag,f=t.anchor,l={},p=Object.create(null),d=null,g=null,m=null,y=!1,_=!1,v;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),v=t.input.charCodeAt(t.position);v!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Ae(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(v===63||v===58)&&Tt(n))v===63?(y&&(ci(t,l,p,d,g,null,o,a,u),d=g=m=null),_=!0,y=!0,i=!0):y?(y=!1,i=!0):Ae(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,v=n;else{if(o=t.line,a=t.lineStart,u=t.position,!li(t,r,DA,!1,!0))break;if(t.line===s){for(v=t.input.charCodeAt(t.position);Sn(v);)v=t.input.charCodeAt(++t.position);if(v===58)v=t.input.charCodeAt(++t.position),Tt(v)||Ae(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ci(t,l,p,d,g,null,o,a,u),d=g=m=null),_=!0,y=!1,i=!1,d=t.tag,g=t.result;else if(_)Ae(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=f,!0}else if(_)Ae(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,u=t.position),li(t,e,ta,!0,i)&&(y?g=t.result:m=t.result),y||(ci(t,l,p,d,g,m,o,a,u),d=g=m=null),rt(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&v!==0)Ae(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&ci(t,l,p,d,g,null,o,a,u),_&&(t.tag=c,t.anchor=f,t.kind="mapping",t.result=l),_}function Qk(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Ae(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Ae(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Tt(o);)o===33&&(n?Ae(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),TA.test(i)||Ae(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),jk.test(s)&&Ae(t,"tag suffix cannot contain flow indicator characters")}s&&!kA.test(s)&&Ae(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Ae(t,"tag name is malformed: "+s)}return r?t.tag=s:tn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:Ae(t,'undeclared tag handle "'+i+'"'),!0}function Zk(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Ae(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Tt(r)&&!ui(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Ae(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function eN(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Tt(n)&&!ui(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Ae(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tn.call(t.anchorMap,r)||Ae(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],rt(t,!0,-1),!0}function li(t,e,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,p,d,g,m,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=ta===r||FA===r,n&&rt(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;Qk(t)||Zk(t);)rt(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||ta===r)&&(ea===r||DA===r?m=e:m=e+1,y=t.position-t.lineStart,u===1?a&&(RA(t,y)||Jk(t,y,m))||Kk(t,m)?f=!0:(o&&Xk(t,m)||Yk(t,m)||Vk(t,m)?f=!0:eN(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&Ae(t,"alias node should not have any properties")):zk(t,m,ea===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(f=a&&RA(t,y))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Ae(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,p=t.implicitTypes.length;l<p;l+=1)if(g=t.implicitTypes[l],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(tn.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,d=t.typeMap.multi[t.kind||"fallback"],l=0,p=d.length;l<p;l+=1)if(t.tag.slice(0,d[l].tag.length)===d[l].tag){g=d[l];break}g||Ae(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Ae(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Ae(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}function tN(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(rt(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Tt(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Ae(t,"directive name must not be less than one character in length");o!==0;){for(;Sn(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!yr(o));break}if(yr(o))break;for(r=t.position;o!==0&&!Tt(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&Gf(t),tn.call(PA,n)?PA[n](t,n,i):ra(t,'unknown document directive "'+n+'"')}if(rt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,rt(t,!0,-1)):s&&Ae(t,"directives end mark is expected"),li(t,t.lineIndent-1,ta,!1,!0),rt(t,!0,-1),t.checkLineBreaks&&Bk.test(t.input.slice(e,t.position))&&ra(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&na(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,rt(t,!0,-1));return}if(t.position<t.length-1)Ae(t,"end of the stream or a document separator is expected");else return}function BA(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
26
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Hk(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Ae(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;)tN(r);return r.documents}function rN(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=BA(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function nN(t,e){var r=BA(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new LA("expected a single document in the stream, but found more")}}zf.exports.loadAll=rN;zf.exports.load=nN});var aw=E((d8,ow)=>{"use strict";var oa=oi(),us=ai(),iN=Zo(),KA=Object.prototype.toString,XA=Object.prototype.hasOwnProperty,Jf=65279,sN=9,ss=10,oN=13,aN=32,uN=33,cN=34,Yf=35,lN=37,fN=38,hN=39,pN=42,JA=44,dN=45,ia=58,gN=61,mN=62,yN=63,AN=64,QA=91,ZA=93,wN=96,ew=123,bN=124,tw=125,At={};At[0]="\\0";At[7]="\\a";At[8]="\\b";At[9]="\\t";At[10]="\\n";At[11]="\\v";At[12]="\\f";At[13]="\\r";At[27]="\\e";At[34]='\\"';At[92]="\\\\";At[133]="\\N";At[160]="\\_";At[8232]="\\L";At[8233]="\\P";var EN=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_N=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function SN(t,e){var r,n,i,s,o,a,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&XA.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function vN(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new us("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oa.repeat("0",n-e.length)+e}var CN=1,os=2;function xN(t){this.schema=t.schema||iN,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=oa.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=SN(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?os:CN,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function qA(t,e){for(var r=oa.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
27
+ `,n),i===-1?(o=t.slice(n),n=a):(o=t.slice(n,i+1),n=i+1),o.length&&o!==`
28
+ `&&(s+=r),s+=o;return s}function Vf(t,e){return`
29
+ `+oa.repeat(" ",t.indent*e)}function PN(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function sa(t){return t===aN||t===sN}function as(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Jf||65536<=t&&t<=1114111}function WA(t){return as(t)&&t!==Jf&&t!==oN&&t!==ss}function UA(t,e,r){var n=WA(t),i=n&&!sa(t);return(r?n:n&&t!==JA&&t!==QA&&t!==ZA&&t!==ew&&t!==tw)&&t!==Yf&&!(e===ia&&!i)||WA(e)&&!sa(e)&&t===Yf||e===ia&&i}function ON(t){return as(t)&&t!==Jf&&!sa(t)&&t!==dN&&t!==yN&&t!==ia&&t!==JA&&t!==QA&&t!==ZA&&t!==ew&&t!==tw&&t!==Yf&&t!==fN&&t!==pN&&t!==uN&&t!==bN&&t!==gN&&t!==mN&&t!==hN&&t!==cN&&t!==lN&&t!==AN&&t!==wN}function RN(t){return!sa(t)&&t!==ia}function is(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function rw(t){var e=/^\n* /;return e.test(t)}var nw=1,Kf=2,iw=3,sw=4,fi=5;function LN(t,e,r,n,i,s,o,a){var u,c=0,f=null,l=!1,p=!1,d=n!==-1,g=-1,m=ON(is(t,0))&&RN(is(t,t.length-1));if(e||o)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=is(t,u),!as(c))return fi;m=m&&UA(c,f,a),f=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=is(t,u),c===ss)l=!0,d&&(p=p||u-g-1>n&&t[g+1]!==" ",g=u);else if(!as(c))return fi;m=m&&UA(c,f,a),f=c}p=p||d&&u-g-1>n&&t[g+1]!==" "}return!l&&!p?m&&!o&&!i(t)?nw:s===os?fi:Kf:r>9&&rw(t)?fi:o?s===os?fi:Kf:p?sw:iw}function DN(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===os?'""':"''";if(!t.noCompatMode&&(EN.indexOf(e)!==-1||_N.test(e)))return t.quotingType===os?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return PN(t,c)}switch(LN(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!n,i)){case nw:return e;case Kf:return"'"+e.replace(/'/g,"''")+"'";case iw:return"|"+GA(e,t.indent)+HA(qA(e,s));case sw:return">"+GA(e,t.indent)+HA(qA(FN(e,o),s));case fi:return'"'+TN(e,o)+'"';default:throw new us("impossible error: invalid scalar style")}})()}function GA(t,e){var r=rw(t)?String(e):"",n=t[t.length-1]===`
30
+ `,i=n&&(t[t.length-2]===`
31
+ `||t===`
32
32
  `),s=i?"+":n?"":"-";return r+s+`
33
- `}function ZA(e){return e[e.length-1]===`
34
- `?e.slice(0,-1):e}function vI(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
35
- `);return c=c!==-1?c:e.length,r.lastIndex=c,ew(e.slice(0,c),t)})(),i=e[0]===`
36
- `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
37
- `:"")+ew(u,t),i=s}return n}function ew(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+=`
38
- `+e.slice(i,s),i=s+1),o=a;return u+=`
39
- `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
40
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function SI(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Xi(e,i),n=Ze[r],!n&&Zi(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||gI(r);return t}function CI(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)),(gr(e,t,a,!1,!1)||typeof a>"u"&&gr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function tw(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)),(gr(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&gr(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Gf(e,t)),e.dump&&Ji===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function xI(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)),gr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gr(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function PI(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 es("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Gf(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),gr(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Ji===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Gf(e,t)),gr(e,t+1,f,!0,l)&&(e.dump&&Ji===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function rw(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,nw.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(iw.call(a.represent,u))n=a.represent[u](t,u);else throw new es("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function gr(e,t,r,n,i,s,o){e.tag=null,e.dump=r,rw(e,r,!1)||rw(e,r,!0);var a=nw.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?(PI(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(xI(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?tw(e,t-1,e.dump,i):tw(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(CI(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&_I(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new es("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 OI(e,t){var r=[],n=[],i,s;for(zf(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function zf(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)zf(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)zf(e[n[i]],t,r)}function RI(e,t){t=t||{};var r=new yI(t);r.noRefs||OI(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),gr(r,0,n,!0,!0)?r.dump+`
41
- `:""}dw.exports.dump=RI});var yw=A((f4,at)=>{"use strict";var mw=VA(),FI=gw();function Vf(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.")}}at.exports.Type=Qe();at.exports.Schema=Ef();at.exports.FAILSAFE_SCHEMA=Cf();at.exports.JSON_SCHEMA=Ff();at.exports.CORE_SCHEMA=Lf();at.exports.DEFAULT_SCHEMA=zo();at.exports.load=mw.load;at.exports.loadAll=mw.loadAll;at.exports.dump=FI.dump;at.exports.YAMLException=Jn();at.exports.types={binary:Nf(),float:Rf(),map:Sf(),null:xf(),pairs:$f(),set:Bf(),timestamp:Df(),bool:Pf(),int:Of(),merge:Tf(),omap:If(),seq:vf(),str:_f()};at.exports.safeLoad=Vf("safeLoad","load");at.exports.safeLoadAll=Vf("safeLoadAll","loadAll");at.exports.safeDump=Vf("safeDump","dump")});var Kf=A(ri=>{"use strict";var LI=ri&&ri.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ri,"__esModule",{value:!0});ri.readYaml=void 0;var DI=LI(require("fs"));function TI(e){let t=yw(),r=DI.default.readFileSync(e,"utf8");return t.load(r)}ri.readYaml=TI});var _w=A(Pe=>{"use strict";var Aw=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.getCatalogs=Pe.getWorkspacesAsync=Pe.getWorkspaces=Pe.getYarnCatalogs=Pe.getYarnWorkspacesAsync=Pe.getYarnWorkspaces=Pe.getWorkspacePackagePathsAsync=Pe.getWorkspacePackagePaths=Pe.getYarnWorkspaceRoot=void 0;var kI=Aw(require("fs")),NI=Aw(require("path")),II=ta(),ea=mf(),$I=gf(),BI=hr(),MI=Kf();function ni(e){let t=(0,II.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}Pe.getYarnWorkspaceRoot=ni;function jI(e){let t=ni(e);return(0,ea.getPackagePathsFromWorkspaceRoot)(t)}Pe.getWorkspacePackagePaths=jI;function qI(e){let t=ni(e);return(0,ea.getPackagePathsFromWorkspaceRootAsync)(t)}Pe.getWorkspacePackagePathsAsync=qI;function ww(e){let t=ni(e);return(0,ea.getWorkspaceInfoFromWorkspaceRoot)(t)}Pe.getYarnWorkspaces=ww;Pe.getWorkspaces=ww;function bw(e){let t=ni(e);return(0,ea.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Pe.getYarnWorkspacesAsync=bw;Pe.getWorkspacesAsync=bw;function Ew(e){try{let t=ni(e),r=NI.default.join(t,".yarnrc.yml");if(kI.default.existsSync(r)){let n=(0,MI.readYaml)(r);if(n?.catalog||n?.catalogs)return{default:n.catalog,named:n.catalogs}}else{let n=(0,$I.getPackageInfo)(t)?.workspaces;if(n&&!Array.isArray(n)&&(n?.catalog||n?.catalogs))return{named:n.catalogs,default:n.catalog}}}catch(t){(0,BI.logVerboseWarning)(`Error getting yarn catalogs for ${e}`,t);return}}Pe.getYarnCatalogs=Ew;Pe.getCatalogs=Ew});var Rw=A(Ie=>{"use strict";var WI=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getCatalogs=Ie.getWorkspacesAsync=Ie.getWorkspaces=Ie.getPnpmCatalogs=Ie.getPnpmWorkspacesAsync=Ie.getPnpmWorkspaces=Ie.getWorkspacePackagePaths=Ie.getPnpmWorkspaceRoot=void 0;var UI=WI(require("path")),GI=Wo(),vw=zi(),HI=Kf(),ra=hr(),zI=Wn();function Sw(e){let t=Cw(e),r=UI.default.join(t,"pnpm-workspace.yaml");return{root:t,workspaceYaml:(0,HI.readYaml)(r)}}function Cw(e){let t=(0,zI.getWorkspaceManagerAndRoot)(e,void 0,"pnpm")?.root;if(!t)throw new Error("Could not find pnpm workspace root from "+e);return t}Ie.getPnpmWorkspaceRoot=Cw;function Xf(e){try{let{root:t,workspaceYaml:r}=Sw(e);return(0,GI.getPackagePaths)(t,r.packages)}catch(t){return(0,ra.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}Ie.getWorkspacePackagePaths=Xf;function xw(e){try{let t=Xf(e);return(0,vw.getWorkspacePackageInfo)(t)}catch(t){return(0,ra.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}Ie.getPnpmWorkspaces=xw;Ie.getWorkspaces=xw;async function Pw(e){try{let t=Xf(e);return(0,vw.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,ra.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}Ie.getPnpmWorkspacesAsync=Pw;Ie.getWorkspacesAsync=Pw;function Ow(e){try{let{workspaceYaml:t}=Sw(e);return!t.catalog&&!t.catalogs?void 0:{default:t.catalog,named:t.catalogs}}catch(t){(0,ra.logVerboseWarning)(`Error getting pnpm catalogs for ${e}`,t);return}}Ie.getPnpmCatalogs=Ow;Ie.getCatalogs=Ow});var Jf=A((g4,nr)=>{var Fw=nr.exports;nr.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"};nr.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
42
- `||t==="\r"};nr.exports.isLineTerminator=function(t){return t===`
43
- `||t==="\r"||t==="\u2028"||t==="\u2029"};nr.exports.isLineTerminatorJSON=function(t){return t===`
44
- `||t==="\r"};nr.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&Fw.NonAsciiIdentifierStart.test(t)};nr.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&Fw.NonAsciiIdentifierPart.test(t)};nr.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]/;nr.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 rs=A((m4,na)=>{var mr=Jf();function ii(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function si(e){return e>="0"&&e<="7"}function ts(e){return e>="0"&&e<="9"}var Lw={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
45
- `,r:"\r",t:" ",v:"\v","/":"/"};function YI(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,u="",c="",f=s?mr.isLineTerminator:mr.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+`
33
+ `}function HA(t){return t[t.length-1]===`
34
+ `?t.slice(0,-1):t}function FN(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=t.indexOf(`
35
+ `);return c=c!==-1?c:t.length,r.lastIndex=c,zA(t.slice(0,c),e)})(),i=t[0]===`
36
+ `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
37
+ `:"")+zA(u,e),i=s}return n}function zA(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,u+=`
38
+ `+t.slice(i,s),i=s+1),o=a;return u+=`
39
+ `,t.length-i>e&&o>i?u+=t.slice(i,o)+`
40
+ `+t.slice(o+1):u+=t.slice(i),u.slice(1)}function TN(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=is(t,i),n=At[r],!n&&as(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||vN(r);return e}function kN(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Lr(t,e,a,!1,!1)||typeof a>"u"&&Lr(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function YA(t,e,r,n){var i="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(Lr(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&Lr(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Vf(t,e)),t.dump&&ss===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function NN(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),t.condenseFlow&&(f+='"'),u=s[o],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),Lr(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Lr(t,e,c,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function IN(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,u,c,f,l,p;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new us("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)p="",(!n||i!=="")&&(p+=Vf(t,e)),c=o[a],f=r[c],t.replacer&&(f=t.replacer.call(r,c,f)),Lr(t,e+1,c,!0,!0,!0)&&(l=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,l&&(t.dump&&ss===t.dump.charCodeAt(0)?p+="?":p+="? "),p+=t.dump,l&&(p+=Vf(t,e)),Lr(t,e+1,f,!0,l)&&(t.dump&&ss===t.dump.charCodeAt(0)?p+=":":p+=": ",p+=t.dump,i+=p));t.tag=s,t.dump=i||"{}"}function VA(t,e,r){var n,i,s,o,a,u;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,KA.call(a.represent)==="[object Function]")n=a.represent(e,u);else if(XA.call(a.represent,u))n=a.represent[u](e,u);else throw new us("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Lr(t,e,r,n,i,s,o){t.tag=null,t.dump=r,VA(t,r,!1)||VA(t,r,!0);var a=KA.call(t.dump),u=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=a==="[object Object]"||a==="[object Array]",l,p;if(f&&(l=t.duplicates.indexOf(r),p=l!==-1),(t.tag!==null&&t.tag!=="?"||p||t.indent!==2&&e>0)&&(i=!1),p&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(f&&p&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(IN(t,e,t.dump,i),p&&(t.dump="&ref_"+l+t.dump)):(NN(t,e,t.dump),p&&(t.dump="&ref_"+l+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?YA(t,e-1,t.dump,i):YA(t,e,t.dump,i),p&&(t.dump="&ref_"+l+t.dump)):(kN(t,e,t.dump),p&&(t.dump="&ref_"+l+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&DN(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new us("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function $N(t,e){var r=[],n=[],i,s;for(Xf(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function Xf(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)Xf(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)Xf(t[n[i]],e,r)}function MN(t,e){e=e||{};var r=new xN(e);r.noRefs||$N(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Lr(r,0,n,!0,!0)?r.dump+`
41
+ `:""}ow.exports.dump=MN});var cw=E((g8,St)=>{"use strict";var uw=jA(),BN=aw();function Qf(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}St.exports.Type=yt();St.exports.Schema=Cf();St.exports.FAILSAFE_SCHEMA=Rf();St.exports.JSON_SCHEMA=kf();St.exports.CORE_SCHEMA=Nf();St.exports.DEFAULT_SCHEMA=Zo();St.exports.load=uw.load;St.exports.loadAll=uw.loadAll;St.exports.dump=BN.dump;St.exports.YAMLException=ai();St.exports.types={binary:Bf(),float:Tf(),map:Of(),null:Lf(),pairs:qf(),set:Wf(),timestamp:If(),bool:Df(),int:Ff(),merge:$f(),omap:jf(),seq:Pf(),str:xf()};St.exports.safeLoad=Qf("safeLoad","load");St.exports.safeLoadAll=Qf("safeLoadAll","loadAll");St.exports.safeDump=Qf("safeDump","dump")});var Zf=E(hi=>{"use strict";var jN=hi&&hi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hi,"__esModule",{value:!0});hi.readYaml=void 0;var qN=jN(require("fs"));function WN(t){let e=cw(),r=qN.default.readFileSync(t,"utf8");return e.load(r)}hi.readYaml=WN});var dw=E(Ve=>{"use strict";var lw=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.getCatalogs=Ve.getWorkspacesAsync=Ve.getWorkspaces=Ve.getYarnCatalogs=Ve.getYarnWorkspacesAsync=Ve.getYarnWorkspaces=Ve.getWorkspacePackagePathsAsync=Ve.getWorkspacePackagePaths=Ve.getYarnWorkspaceRoot=void 0;var UN=lw(require("fs")),GN=lw(require("path")),HN=ua(),aa=bf(),zN=wf(),YN=Pr(),VN=Zf();function pi(t){let e=(0,HN.getWorkspaceManagerAndRoot)(t,void 0,"yarn")?.root;if(!e)throw new Error("Could not find yarn workspace root from "+t);return e}Ve.getYarnWorkspaceRoot=pi;function KN(t){let e=pi(t);return(0,aa.getPackagePathsFromWorkspaceRoot)(e)}Ve.getWorkspacePackagePaths=KN;function XN(t){let e=pi(t);return(0,aa.getPackagePathsFromWorkspaceRootAsync)(e)}Ve.getWorkspacePackagePathsAsync=XN;function fw(t){let e=pi(t);return(0,aa.getWorkspaceInfoFromWorkspaceRoot)(e)}Ve.getYarnWorkspaces=fw;Ve.getWorkspaces=fw;function hw(t){let e=pi(t);return(0,aa.getWorkspaceInfoFromWorkspaceRootAsync)(e)}Ve.getYarnWorkspacesAsync=hw;Ve.getWorkspacesAsync=hw;function pw(t){try{let e=pi(t),r=GN.default.join(e,".yarnrc.yml");if(UN.default.existsSync(r)){let n=(0,VN.readYaml)(r);if(n?.catalog||n?.catalogs)return{default:n.catalog,named:n.catalogs}}else{let n=(0,zN.getPackageInfo)(e)?.workspaces;if(n&&!Array.isArray(n)&&(n?.catalog||n?.catalogs))return{named:n.catalogs,default:n.catalog}}}catch(e){(0,YN.logVerboseWarning)(`Error getting yarn catalogs for ${t}`,e);return}}Ve.getYarnCatalogs=pw;Ve.getCatalogs=pw});var Ew=E(nt=>{"use strict";var JN=nt&&nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nt,"__esModule",{value:!0});nt.getCatalogs=nt.getWorkspacesAsync=nt.getWorkspaces=nt.getPnpmCatalogs=nt.getPnpmWorkspacesAsync=nt.getPnpmWorkspaces=nt.getWorkspacePackagePaths=nt.getPnpmWorkspaceRoot=void 0;var QN=JN(require("path")),ZN=Ko(),gw=es(),eI=Zf(),ca=Pr(),tI=Qn();function mw(t){let e=yw(t),r=QN.default.join(e,"pnpm-workspace.yaml");return{root:e,workspaceYaml:(0,eI.readYaml)(r)}}function yw(t){let e=(0,tI.getWorkspaceManagerAndRoot)(t,void 0,"pnpm")?.root;if(!e)throw new Error("Could not find pnpm workspace root from "+t);return e}nt.getPnpmWorkspaceRoot=yw;function eh(t){try{let{root:e,workspaceYaml:r}=mw(t);return(0,ZN.getPackagePaths)(e,r.packages)}catch(e){return(0,ca.logVerboseWarning)(`Error getting pnpm workspace package paths for ${t}`,e),[]}}nt.getWorkspacePackagePaths=eh;function Aw(t){try{let e=eh(t);return(0,gw.getWorkspacePackageInfo)(e)}catch(e){return(0,ca.logVerboseWarning)(`Error getting pnpm workspaces for ${t}`,e),[]}}nt.getPnpmWorkspaces=Aw;nt.getWorkspaces=Aw;async function ww(t){try{let e=eh(t);return(0,gw.getWorkspacePackageInfoAsync)(e)}catch(e){return(0,ca.logVerboseWarning)(`Error getting pnpm workspaces for ${t}`,e),[]}}nt.getPnpmWorkspacesAsync=ww;nt.getWorkspacesAsync=ww;function bw(t){try{let{workspaceYaml:e}=mw(t);return!e.catalog&&!e.catalogs?void 0:{default:e.catalog,named:e.catalogs}}catch(e){(0,ca.logVerboseWarning)(`Error getting pnpm catalogs for ${t}`,e);return}}nt.getPnpmCatalogs=bw;nt.getCatalogs=bw});var th=E((w8,Ar)=>{var _w=Ar.exports;Ar.exports.isWhiteSpace=function(e){return e===" "||e==="\xA0"||e==="\uFEFF"||e>=" "&&e<="\r"||e==="\u1680"||e>="\u2000"&&e<="\u200A"||e==="\u2028"||e==="\u2029"||e==="\u202F"||e==="\u205F"||e==="\u3000"};Ar.exports.isWhiteSpaceJSON=function(e){return e===" "||e===" "||e===`
42
+ `||e==="\r"};Ar.exports.isLineTerminator=function(e){return e===`
43
+ `||e==="\r"||e==="\u2028"||e==="\u2029"};Ar.exports.isLineTerminatorJSON=function(e){return e===`
44
+ `||e==="\r"};Ar.exports.isIdentifierStart=function(e){return e==="$"||e==="_"||e>="A"&&e<="Z"||e>="a"&&e<="z"||e>="\x80"&&_w.NonAsciiIdentifierStart.test(e)};Ar.exports.isIdentifierPart=function(e){return e==="$"||e==="_"||e>="A"&&e<="Z"||e>="a"&&e<="z"||e>="0"&&e<="9"||e>="\x80"&&_w.NonAsciiIdentifierPart.test(e)};Ar.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]/;Ar.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 ls=E((b8,la)=>{var Dr=th();function di(t){return t>="0"&&t<="9"||t>="A"&&t<="F"||t>="a"&&t<="f"}function gi(t){return t>="0"&&t<="7"}function cs(t){return t>="0"&&t<="9"}var Sw={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
45
+ `,r:"\r",t:" ",v:"\v","/":"/"};function rI(t,e,r,n,i,s){var o=e+" at "+(n+1)+":"+(i+1),a=r-i-1,u="",c="",f=s?Dr.isLineTerminator:Dr.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=t[++a];if(f(l)||a===t.length){r>=a&&(c+="^");break}if(u+=l,r===a?c+="^":r>a&&(c+=t[a]===" "?" ":" "),u.length>78)break}return o+`
46
46
  `+u+`
47
- `+c}function VI(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?mr.isLineTerminator:mr.isLineTerminatorJSON,s=r?mr.isWhiteSpace:mr.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(w,R){if(x!=c){var L={raw:e.substr(x,c-x),type:R,stack:f.slice(0)};w!==void 0&&(L.value=w),t._tokenize.call(null,L)}return x=null,w}})();function p(x){var w=c-u;if(!x)if(c<o){var R="'"+JSON.stringify(e[c]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+R)}else x||(x="Unexpected end of input");var L=SyntaxError(YI(e,x,c,a,w,r));throw L.row=a+1,L.column=w+1,L}function d(x){x==="\r"&&e[c]===`
48
- `&&c++,u=c,a++}function g(){for(var x;c<o;){l();var w=e[c++];return w==='"'||w==="'"&&r?h($(w),"literal"):w==="{"?(h(void 0,"separator"),F()):w==="["?(h(void 0,"separator"),k()):w==="-"||w==="."||ts(w)||r&&(w==="+"||w==="I"||w==="N")?h(q(),"literal"):w==="n"?(P("null"),h(null,"literal")):w==="t"?(P("true"),h(!0,"literal")):w==="f"?(P("false"),h(!1,"literal")):(c--,h(void 0))}}function m(){for(var x;c<o;){l();var w=e[c++];if(w==='"'||w==="'"&&r)return h($(w),"key");if(w==="{")return h(void 0,"separator"),F();if(w==="[")return h(void 0,"separator"),k();if(w==="."||ts(w))return h(q(!0),"key");if(r&&mr.isIdentifierStart(w)||w==="\\"&&e[c]==="u"){var R=c-1,x=M();return x===void 0?(c=R,h(void 0)):h(x,"key")}else return c--,h(void 0)}}function b(){for(l();c<o;){var x=e[c++];if(i(x))c--,h(void 0,"whitespace"),l(),c++,d(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 w=e[c++];if(i(w)){if(!x){c--;return}d(w)}else if(w==="*"&&x&&e[c]==="/"){c++;return}}x&&p("Unclosed multiline comment")}function P(x){for(var w=c,R=x.length,L=1;L<R;L++)(c>=o||x[L]!=e[c])&&(c=w-1,p()),c++}function F(){for(var x=t.null_prototype?Object.create(null):{},w={},R=!1;c<o;){b();var L=m();b(),l();var W=e[c++];if(h(void 0,"separator"),W==="}"&&L===void 0)return!r&&R&&(c--,p("Trailing comma in object")),x;if(W===":"&&L!==void 0){b(),f.push(L);var v=g();f.pop(),v===void 0&&p("No value found for key "+L),typeof L!="string"&&(!r||typeof L!="number")&&p("Wrong key type: "+L),(L in w||w[L]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&p("Reserved key: "+L):(typeof t.reviver=="function"&&(v=t.reviver.call(null,L,v)),v!==void 0&&(R=!0,Object.defineProperty(x,L,{value:v,enumerable:!0,configurable:!0,writable:!0}))),b(),l();var W=e[c++];if(h(void 0,"separator"),W===",")continue;if(W==="}")return x;p()}else c--,p()}p()}function k(){for(var x=[];c<o;){b(),f.push(x.length);var w=g();f.pop(),b(),l();var R=e[c++];if(h(void 0,"separator"),w!==void 0&&(typeof t.reviver=="function"&&(w=t.reviver.call(null,String(x.length),w)),w===void 0?(x.length++,w=!0):x.push(w)),R===",")w===void 0&&p("Elisions are not supported");else{if(R==="]")return!r&&w===void 0&&x.length&&(c--,p("Trailing comma in array")),x;c--,p()}}}function q(){c--;var x=c,w=e[c++],R,L=function(re){var V=e.substr(x,c-x);if(re)var Ae=parseInt(V.replace(/^0o?/,""),8);else var Ae=Number(V);if(Number.isNaN(Ae))c--,p('Bad numeric literal - "'+e.substr(x,c-x+1)+'"');else if(!r&&!V.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))c--,p('Non-json numeric literal - "'+e.substr(x,c-x+1)+'"');else return Ae};if((w==="-"||w==="+"&&r)&&(w=e[c++]),w==="N"&&r)return P("NaN"),NaN;if(w==="I"&&r)return P("Infinity"),L();if(w>="1"&&w<="9"){for(;c<o&&ts(e[c]);)c++;w=e[c++]}if(w==="0"){w=e[c++];var W=w==="o"||w==="O"||si(w),v=w==="x"||w==="X";if(r&&(W||v)){for(;c<o&&(v?ii:si)(e[c]);)c++;var O=1;return e[x]==="-"?(O=-1,x++):e[x]==="+"&&x++,O*L(W)}}if(w==="."){for(;c<o&&ts(e[c]);)c++;w=e[c++]}if(w==="e"||w==="E"){for(w=e[c++],(w==="-"||w==="+")&&c++;c<o&&ts(e[c]);)c++;w=e[c++]}return c--,L()}function M(){c--;for(var x="";c<o;){var w=e[c++];if(w==="\\"&&e[c]==="u"&&ii(e[c+1])&&ii(e[c+2])&&ii(e[c+3])&&ii(e[c+4])&&(w=String.fromCharCode(parseInt(e.substr(c+1,4),16)),c+=5),x.length)if(mr.isIdentifierPart(w))x+=w;else return c--,x;else if(mr.isIdentifierStart(w))x+=w;else return}p()}function $(x){for(var w="";c<o;){var R=e[c++];if(R===x)return w;if(R==="\\")if(c>=o&&p(),R=e[c++],Lw[R]&&(r||R!="v"&&R!="'"))w+=Lw[R];else if(r&&i(R))d(R);else if(R==="u"||R==="x"&&r){for(var L=R==="u"?4:2,W=0;W<L;W++)c>=o&&p(),ii(e[c])||p("Bad escape sequence"),c++;w+=String.fromCharCode(parseInt(e.substr(c-L,L),16))}else if(r&&si(R)){if(R<"4"&&si(e[c])&&si(e[c+1]))var v=3;else if(si(e[c]))var v=2;else var v=1;c+=v-1,w+=String.fromCharCode(parseInt(e.substr(c-v,v),8))}else r?w+=R:(c--,p());else i(R)?p():(!r&&R.charCodeAt(0)<32&&(c--,p("Unexpected control character")),w+=R)}p()}b();var j=g();if(j!==void 0||c<o){if(b(),c>=o)return typeof t.reviver=="function"&&(j=t.reviver.call(null,"",j)),j;p()}else p(c?"No data, only a whitespace":"No data, empty input")}na.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 VI(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}}};na.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=na.exports.parse(t,r),n}});var eh=A((y4,Tw)=>{var Qf=Jf();(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 KI={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},XI=Object.prototype.hasOwnProperty,Dw=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function Zf(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var p=t._prefix?t._prefix:"";if(!t.indent)return p+l;for(var d="",g=r+(h||0),m=0;m<g;m++)d+=t.indent;return p+d+l+(h?`
49
- `:"")}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="",p=0;p<l.length;p++){if(p>0){if(!Qf.isIdentifierPart(l[p]))return a(l)}else if(!Qf.isIdentifierStart(l[p]))return a(l);var d=l.charCodeAt(p);t.ascii?d<128?h+=l[p]:h+="\\u"+("0000"+d.toString(16)).slice(-4):Dw.exec(l[p])?h+="\\u"+("0000"+d.toString(16)).slice(-4):h+=l[p]}return h}function a(l){for(var h=t.quote,p=h.charCodeAt(0),d="",g=0;g<l.length;g++){var m=l.charCodeAt(g);if(m<16)m===0&&i?d+="\\0":m>=8&&m<=13&&(i||m!==11)?d+=KI[m]:i?d+="\\x0"+m.toString(16):d+="\\u000"+m.toString(16);else if(m<32)i?d+="\\x"+m.toString(16):d+="\\u00"+m.toString(16);else if(m>=32&&m<128)m===47&&g&&l[g-1]==="<"?d+="\\"+l[g]:m===92?d+="\\\\":m===p?d+="\\"+h:d+=l[g];else if(t.ascii||Qf.isLineTerminator(l[g])||Dw.exec(l[g]))if(m<256)i?d+="\\x"+m.toString(16):d+="\\u00"+m.toString(16);else if(m<4096)d+="\\u0"+m.toString(16);else if(m<65536)d+="\\u"+m.toString(16);else throw Error("weird codepoint");else d+=l[g]}return h+d+h}function u(){if(e===null)return"null";var l=[],h=0,p;if(Array.isArray(e)){p="[]";for(var d=0;d<e.length;d++){var g=Zf(e[d],t,r+1,String(d));g===void 0&&(g="null"),h+=g.length+2,l.push(g+",")}}else{p="{}";var m=function(P){var F=Zf(e[P],t,r+1,P);F!==void 0&&(F=o(P)+":"+(t.indent?" ":"")+F+",",h+=F.length+1,l.push(F))};if(Array.isArray(t.replacer))for(var d=0;d<t.replacer.length;d++)XI.call(e,t.replacer[d])&&m(t.replacer[d]);else{var b=Object.keys(e);t.sort_keys&&(b=b.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),b.forEach(m)}}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(P){return s(P,1)}).join("");return p[0]+(t.indent?`
50
- `:"")+_+s(p[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 p[0]+_+p[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)}Tw.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),Zf(t,r,0,"")}});var th=A((A4,kw)=>{var JI=rs().tokenize;kw.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=JI(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
51
- `,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 jw=A((w4,nh)=>{var Yt=require("assert"),Mw=rs().tokenize,QI=eh().stringify,ZI=th().analyze;function is(e){return typeof e=="object"&&e!==null}function ia(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=QI(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=Mw(s,{_addstack:t});return o.data=null,o}function rh(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 Nw(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 ns(e){return e==="whitespace"||e==="newline"||e==="comment"}function Iw(e,t,r){for(;ns(e[t].type);)if(t++>=r)return!1;return t}function oi(e,t,r){for(;ns(e[r].type);)if(r--<t)return!1;return r}function $w(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=oi(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;ns(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Yt.equal(e[n].type,"separator"),Yt.equal(e[n].raw,":");ns(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Yt.equal(e[n].type,"key"),n--}for(;ns(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 yr(e,t){var r=Object.create(yr.prototype);t==null&&(t={});var n=r._tokens=Mw(e,t);r._data=n.data,n.data=null,r._options=t;var i=ZI(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 Bw(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!is(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}yr.prototype.set=function(e,t){if(e=rh(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++)Bw(e[i],n,!1),n=n[e[i]];i===e.length-1&&Bw(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=[Iw(this._tokens,0,this._tokens.length-1),oi(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=Nw(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=ia(t,e,this._options);else if(r){var f=e.slice(0,i),u=oi(this._tokens,s[0]+1,s[1]-1);Yt(u!==!1);var c=u!==!1?$w(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=ia(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(ia(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),Yt.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=Nw(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=oi(this._tokens,a[0],s[0]-1);Yt.equal(this._tokens[u].type,"separator"),Yt.equal(this._tokens[u].raw,":"),s[0]=u;var u=oi(this._tokens,a[0],s[0]-1);Yt.equal(this._tokens[u].type,"key"),Yt.equal(this._tokens[u].value,e[e.length-1]),s[0]=u}var u=oi(this._tokens,a[0],s[0]-1);Yt.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=Iw(this._tokens,s[1]+1,a[1]),Yt.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?$w(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=ia(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};yr.prototype.unset=function(e){return this.set(e,void 0)};yr.prototype.get=function(e){e=rh(e);for(var t=this._data,r=0;r<e.length;r++){if(!is(t))return;t=t[e[r]]}return t};yr.prototype.has=function(e){e=rh(e);for(var t=this._data,r=0;r<e.length;r++){if(!is(t))return!1;t=t[e[r]]}return t!==void 0};yr.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!is(s)||!is(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())}}};yr.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};nh.exports.Document=yr;nh.exports.update=function(t,r,n){return yr(t,n).update(r).toString()}});var qw=A((b4,sa)=>{var e$=require("fs"),t$=ss();sa.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=t$.parse(e$.readFileSync(n,"utf8"))}};sa.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw ss().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};sa.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var ss=A((E4,hn)=>{hn.exports.__defineGetter__("parse",function(){return rs().parse});hn.exports.__defineGetter__("stringify",function(){return eh().stringify});hn.exports.__defineGetter__("tokenize",function(){return rs().tokenize});hn.exports.__defineGetter__("update",function(){return jw().update});hn.exports.__defineGetter__("analyze",function(){return th().analyze});hn.exports.__defineGetter__("utils",function(){return qw()})});var zw=A(et=>{"use strict";var sh=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(et,"__esModule",{value:!0});et.getWorkspacesAsync=et.getWorkspaces=et.getRushWorkspacesAsync=et.getRushWorkspaces=et.getWorkspacePackagePaths=et.getRushWorkspaceRoot=void 0;var ih=sh(require("path")),r$=sh(ss()),n$=sh(require("fs")),Ww=zi(),oh=hr(),i$=Wn();function Uw(e){let t=(0,i$.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}et.getRushWorkspaceRoot=Uw;function ah(e){try{let t=Uw(e),r=ih.default.join(t,"rush.json"),n=r$.default.parse(n$.default.readFileSync(r,"utf-8")),i=ih.default.dirname(r);return n.projects.map(s=>ih.default.join(i,s.projectFolder))}catch(t){return(0,oh.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}et.getWorkspacePackagePaths=ah;function Gw(e){try{let t=ah(e);return(0,Ww.getWorkspacePackageInfo)(t)}catch(t){return(0,oh.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}et.getRushWorkspaces=Gw;et.getWorkspaces=Gw;async function Hw(e){try{let t=ah(e);return(0,Ww.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,oh.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}et.getRushWorkspacesAsync=Hw;et.getWorkspacesAsync=Hw});var Kw=A(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.getWorkspacesAsync=wt.getWorkspaces=wt.getNpmWorkspacesAsync=wt.getNpmWorkspaces=wt.getWorkspacePackagePathsAsync=wt.getWorkspacePackagePaths=void 0;var s$=ta(),oa=mf();function aa(e){let t=(0,s$.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function o$(e){let t=aa(e);return(0,oa.getPackagePathsFromWorkspaceRoot)(t)}wt.getWorkspacePackagePaths=o$;function a$(e){let t=aa(e);return(0,oa.getPackagePathsFromWorkspaceRootAsync)(t)}wt.getWorkspacePackagePathsAsync=a$;function Yw(e){let t=aa(e);return(0,oa.getWorkspaceInfoFromWorkspaceRoot)(t)}wt.getNpmWorkspaces=Yw;wt.getWorkspaces=Yw;function Vw(e){let t=aa(e);return(0,oa.getWorkspaceInfoFromWorkspaceRootAsync)(t)}wt.getNpmWorkspacesAsync=Vw;wt.getWorkspacesAsync=Vw});var Zw=A(bt=>{"use strict";var uh=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bt,"__esModule",{value:!0});bt.getWorkspacesAsync=bt.getWorkspaces=bt.getLernaWorkspacesAsync=bt.getLernaWorkspaces=bt.getWorkspacePackagePaths=void 0;var u$=uh(require("fs")),c$=uh(ss()),l$=uh(require("path")),f$=Wo(),Xw=zi(),ch=hr(),h$=Wn();function p$(e){let t=(0,h$.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function lh(e){try{let t=p$(e),r=l$.default.join(t,"lerna.json"),n=c$.default.parse(u$.default.readFileSync(r,"utf-8"));return(0,f$.getPackagePaths)(t,n.packages)}catch(t){return(0,ch.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}bt.getWorkspacePackagePaths=lh;function Jw(e){try{let t=lh(e);return(0,Xw.getWorkspacePackageInfo)(t)}catch(t){return(0,ch.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}bt.getLernaWorkspaces=Jw;bt.getWorkspaces=Jw;async function Qw(e){try{let t=lh(e);return(0,Xw.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,ch.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}bt.getLernaWorkspacesAsync=Qw;bt.getWorkspacesAsync=Qw});var eb=A(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.getWorkspaceUtilities=void 0;var d$=Wn();function g$(e){switch((0,d$.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return _w();case"pnpm":return Rw();case"rush":return zw();case"npm":return Kw();case"lerna":return Zw()}}ua.getWorkspaceUtilities=g$});var ta=A(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.getWorkspaceUtilities=ai.getWorkspaceManagerAndRoot=void 0;var m$=Wn();Object.defineProperty(ai,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return m$.getWorkspaceManagerAndRoot}});var y$=eb();Object.defineProperty(ai,"getWorkspaceUtilities",{enumerable:!0,get:function(){return y$.getWorkspaceUtilities}})});var Cc=A(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getWorkspaceManagerRoot=ui.getWorkspaceRoot=void 0;var A$=ta();function w$(e,t){return tb(e,t)}ui.getWorkspaceRoot=w$;function tb(e,t){return(0,A$.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}ui.getWorkspaceManagerRoot=tb});var pE=A(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.walkUp=void 0;var hE=require("path"),WB=function*(e){for(e=(0,hE.resolve)(e);e;){yield e;let t=(0,hE.dirname)(e);if(t===e)break;e=t}};Ea.walkUp=WB});var Th=A((V4,yE)=>{var{hasOwnProperty:Lh}=Object.prototype,Dh=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
47
+ `+c}function nI(t,e){var r=!1,n=!1;e.legacy||e.mode==="json"||(e.mode==="cjson"?n=!0:(e.mode,r=!0));var i=r?Dr.isLineTerminator:Dr.isLineTerminatorJSON,s=r?Dr.isWhiteSpace:Dr.isWhiteSpaceJSON,o=t.length,a=0,u=0,c=0,f=[],l=function(){},p=function(L){return L};e._tokenize&&(function(){var L=null;l=function(){if(L!==null)throw Error("internal error, token overlap");L=c},p=function(b,T){if(L!=c){var N={raw:t.substr(L,c-L),type:T,stack:f.slice(0)};b!==void 0&&(N.value=b),e._tokenize.call(null,N)}return L=null,b}})();function d(L){var b=c-u;if(!L)if(c<o){var T="'"+JSON.stringify(t[c]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";L||(L="Unexpected token "+T)}else L||(L="Unexpected end of input");var N=SyntaxError(rI(t,L,c,a,b,r));throw N.row=a+1,N.column=b+1,N}function g(L){L==="\r"&&t[c]===`
48
+ `&&c++,u=c,a++}function m(){for(var L;c<o;){l();var b=t[c++];return b==='"'||b==="'"&&r?p(X(b),"literal"):b==="{"?(p(void 0,"separator"),k()):b==="["?(p(void 0,"separator"),W()):b==="-"||b==="."||cs(b)||r&&(b==="+"||b==="I"||b==="N")?p(Z(),"literal"):b==="n"?(F("null"),p(null,"literal")):b==="t"?(F("true"),p(!0,"literal")):b==="f"?(F("false"),p(!1,"literal")):(c--,p(void 0))}}function y(){for(var L;c<o;){l();var b=t[c++];if(b==='"'||b==="'"&&r)return p(X(b),"key");if(b==="{")return p(void 0,"separator"),k();if(b==="[")return p(void 0,"separator"),W();if(b==="."||cs(b))return p(Z(!0),"key");if(r&&Dr.isIdentifierStart(b)||b==="\\"&&t[c]==="u"){var T=c-1,L=ee();return L===void 0?(c=T,p(void 0)):p(L,"key")}else return c--,p(void 0)}}function _(){for(l();c<o;){var L=t[c++];if(i(L))c--,p(void 0,"whitespace"),l(),c++,g(L),p(void 0,"newline"),l();else if(!s(L))if(L==="/"&&(r||n)&&(t[c]==="/"||t[c]==="*"))c--,p(void 0,"whitespace"),l(),c++,v(t[c++]==="*"),p(void 0,"comment"),l();else{c--;break}}return p(void 0,"whitespace")}function v(L){for(;c<o;){var b=t[c++];if(i(b)){if(!L){c--;return}g(b)}else if(b==="*"&&L&&t[c]==="/"){c++;return}}L&&d("Unclosed multiline comment")}function F(L){for(var b=c,T=L.length,N=1;N<T;N++)(c>=o||L[N]!=t[c])&&(c=b-1,d()),c++}function k(){for(var L=e.null_prototype?Object.create(null):{},b={},T=!1;c<o;){_();var N=y();_(),l();var re=t[c++];if(p(void 0,"separator"),re==="}"&&N===void 0)return!r&&T&&(c--,d("Trailing comma in object")),L;if(re===":"&&N!==void 0){_(),f.push(N);var C=m();f.pop(),C===void 0&&d("No value found for key "+N),typeof N!="string"&&(!r||typeof N!="number")&&d("Wrong key type: "+N),(N in b||b[N]!=null)&&e.reserved_keys!=="replace"?e.reserved_keys==="throw"&&d("Reserved key: "+N):(typeof e.reviver=="function"&&(C=e.reviver.call(null,N,C)),C!==void 0&&(T=!0,Object.defineProperty(L,N,{value:C,enumerable:!0,configurable:!0,writable:!0}))),_(),l();var re=t[c++];if(p(void 0,"separator"),re===",")continue;if(re==="}")return L;d()}else c--,d()}d()}function W(){for(var L=[];c<o;){_(),f.push(L.length);var b=m();f.pop(),_(),l();var T=t[c++];if(p(void 0,"separator"),b!==void 0&&(typeof e.reviver=="function"&&(b=e.reviver.call(null,String(L.length),b)),b===void 0?(L.length++,b=!0):L.push(b)),T===",")b===void 0&&d("Elisions are not supported");else{if(T==="]")return!r&&b===void 0&&L.length&&(c--,d("Trailing comma in array")),L;c--,d()}}}function Z(){c--;var L=c,b=t[c++],T,N=function(de){var $=t.substr(L,c-L);if(de)var De=parseInt($.replace(/^0o?/,""),8);else var De=Number($);if(Number.isNaN(De))c--,d('Bad numeric literal - "'+t.substr(L,c-L+1)+'"');else if(!r&&!$.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))c--,d('Non-json numeric literal - "'+t.substr(L,c-L+1)+'"');else return De};if((b==="-"||b==="+"&&r)&&(b=t[c++]),b==="N"&&r)return F("NaN"),NaN;if(b==="I"&&r)return F("Infinity"),N();if(b>="1"&&b<="9"){for(;c<o&&cs(t[c]);)c++;b=t[c++]}if(b==="0"){b=t[c++];var re=b==="o"||b==="O"||gi(b),C=b==="x"||b==="X";if(r&&(re||C)){for(;c<o&&(C?di:gi)(t[c]);)c++;var R=1;return t[L]==="-"?(R=-1,L++):t[L]==="+"&&L++,R*N(re)}}if(b==="."){for(;c<o&&cs(t[c]);)c++;b=t[c++]}if(b==="e"||b==="E"){for(b=t[c++],(b==="-"||b==="+")&&c++;c<o&&cs(t[c]);)c++;b=t[c++]}return c--,N()}function ee(){c--;for(var L="";c<o;){var b=t[c++];if(b==="\\"&&t[c]==="u"&&di(t[c+1])&&di(t[c+2])&&di(t[c+3])&&di(t[c+4])&&(b=String.fromCharCode(parseInt(t.substr(c+1,4),16)),c+=5),L.length)if(Dr.isIdentifierPart(b))L+=b;else return c--,L;else if(Dr.isIdentifierStart(b))L+=b;else return}d()}function X(L){for(var b="";c<o;){var T=t[c++];if(T===L)return b;if(T==="\\")if(c>=o&&d(),T=t[c++],Sw[T]&&(r||T!="v"&&T!="'"))b+=Sw[T];else if(r&&i(T))g(T);else if(T==="u"||T==="x"&&r){for(var N=T==="u"?4:2,re=0;re<N;re++)c>=o&&d(),di(t[c])||d("Bad escape sequence"),c++;b+=String.fromCharCode(parseInt(t.substr(c-N,N),16))}else if(r&&gi(T)){if(T<"4"&&gi(t[c])&&gi(t[c+1]))var C=3;else if(gi(t[c]))var C=2;else var C=1;c+=C-1,b+=String.fromCharCode(parseInt(t.substr(c-C,C),8))}else r?b+=T:(c--,d());else i(T)?d():(!r&&T.charCodeAt(0)<32&&(c--,d("Unexpected control character")),b+=T)}d()}_();var te=m();if(te!==void 0||c<o){if(_(),c>=o)return typeof e.reviver=="function"&&(te=e.reviver.call(null,"",te)),te;d()}else d(c?"No data, only a whitespace":"No data, empty input")}la.exports.parse=function(e,r){if(typeof r=="function"&&(r={reviver:r}),e!==void 0){typeof e!="string"&&(e=String(e)),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 nI(e,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}}};la.exports.tokenize=function(e,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=la.exports.parse(e,r),n}});var ih=E((E8,Cw)=>{var rh=th();(function(){}).name||Object.defineProperty((function(){}).constructor.prototype,"name",{get:function(){var t=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:t}),t}});var iI={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},sI=Object.prototype.hasOwnProperty,vw=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function nh(t,e,r,n){var i=e.mode==="json5"||!e.mode;function s(l,p){var d=e._prefix?e._prefix:"";if(!e.indent)return d+l;for(var g="",m=r+(p||0),y=0;y<m;y++)g+=e.indent;return d+g+l+(p?`
49
+ `:"")}function o(l){if(e.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var p="",d=0;d<l.length;d++){if(d>0){if(!rh.isIdentifierPart(l[d]))return a(l)}else if(!rh.isIdentifierStart(l[d]))return a(l);var g=l.charCodeAt(d);e.ascii?g<128?p+=l[d]:p+="\\u"+("0000"+g.toString(16)).slice(-4):vw.exec(l[d])?p+="\\u"+("0000"+g.toString(16)).slice(-4):p+=l[d]}return p}function a(l){for(var p=e.quote,d=p.charCodeAt(0),g="",m=0;m<l.length;m++){var y=l.charCodeAt(m);if(y<16)y===0&&i?g+="\\0":y>=8&&y<=13&&(i||y!==11)?g+=iI[y]:i?g+="\\x0"+y.toString(16):g+="\\u000"+y.toString(16);else if(y<32)i?g+="\\x"+y.toString(16):g+="\\u00"+y.toString(16);else if(y>=32&&y<128)y===47&&m&&l[m-1]==="<"?g+="\\"+l[m]:y===92?g+="\\\\":y===d?g+="\\"+p:g+=l[m];else if(e.ascii||rh.isLineTerminator(l[m])||vw.exec(l[m]))if(y<256)i?g+="\\x"+y.toString(16):g+="\\u00"+y.toString(16);else if(y<4096)g+="\\u0"+y.toString(16);else if(y<65536)g+="\\u"+y.toString(16);else throw Error("weird codepoint");else g+=l[m]}return p+g+p}function u(){if(t===null)return"null";var l=[],p=0,d;if(Array.isArray(t)){d="[]";for(var g=0;g<t.length;g++){var m=nh(t[g],e,r+1,String(g));m===void 0&&(m="null"),p+=m.length+2,l.push(m+",")}}else{d="{}";var y=function(F){var k=nh(t[F],e,r+1,F);k!==void 0&&(k=o(F)+":"+(e.indent?" ":"")+k+",",p+=k.length+1,l.push(k))};if(Array.isArray(e.replacer))for(var g=0;g<e.replacer.length;g++)sI.call(t,e.replacer[g])&&y(e.replacer[g]);else{var _=Object.keys(t);e.sort_keys&&(_=_.sort(typeof e.sort_keys=="function"?e.sort_keys:void 0)),_.forEach(y)}}if(p-=2,e.indent&&(p>e._splitMax-r*e.indent.length||p>e._splitMin)){e.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var v=l.map(function(F){return s(F,1)}).join("");return d[0]+(e.indent?`
50
+ `:"")+v+s(d[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var v=l.join(e.indent?" ":"");return d[0]+v+d[1]}}function c(l){switch(typeof e.replacer=="function"&&(l=e.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;default:return JSON.stringify(l)}}if(e._stringify_key)return o(t);if(typeof t=="object"){if(t===null)return"null";var f;return(typeof(f=t.toJSON5)=="function"&&e.mode!=="json"||typeof(f=t.toJSON)=="function")&&(t=f.call(t,n)),t===null?"null":typeof t!="object"?c(t):t.constructor===Number||t.constructor===Boolean||t.constructor===String?(t=t.valueOf(),c(t)):t.constructor===Date?c(t.toISOString()):typeof e.replacer=="function"&&(t=e.replacer.call(null,n,t),typeof t!="object")?c(t):u(t)}else return c(t)}Cw.exports.stringify=function(e,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),nh(e,r,0,"")}});var sh=E((_8,xw)=>{var oI=ls().tokenize;xw.exports.analyze=function(e,r){r==null&&(r={}),Array.isArray(e)||(e=oI(e,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
51
+ `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<e.length;s++){if(e[s].type==="newline"){if(e[s+1]&&e[s+1].type==="whitespace"&&(e[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),e[s+1].raw.match(/^\x20+$/))){var o=e[s+1].raw.length,a=e[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[e[s].raw]=(i.newline[e[s].raw]||0)+1}if(e[s].type==="newline"&&(n.has_newlines=!0),e[s].type==="whitespace"&&(n.has_whitespace=!0),e[s].type==="comment"&&(n.has_comments=!0),e[s].type==="key"&&e[s].raw[0]!=='"'&&e[s].raw[0]!=="'"&&(n.quote_keys=!1),(e[s].type==="key"||e[s].type==="literal")&&(e[s].raw[0]==='"'||e[s].raw[0]==="'")&&(i.quote[e[s].raw[0]]=(i.quote[e[s].raw[0]]||0)+1),e[s].type==="separator"&&e[s].raw===",")for(var c=s+1;c<e.length&&!(e[c].type==="literal"||e[c].type==="key");c++)e[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,p){return i[f][l]>i[f][p]?l:p}));return n}});var Fw=E((S8,ah)=>{var ur=require("assert"),Dw=ls().tokenize,aI=ih().stringify,uI=sh().analyze;function hs(t){return typeof t=="object"&&t!==null}function fa(t,e,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=aI(t,r);if(n)return[{raw:s,type:"key",stack:e,value:t}];r._addstack=e;var o=Dw(s,{_addstack:e});return o.data=null,o}function oh(t){if(typeof t=="number"&&(t=String(t)),t===""&&(t=[]),typeof t=="string"&&(t=t.split(".")),!Array.isArray(t))throw Error("Invalid path type, string or array expected");return t}function Pw(t,e,r,n,i){for(;r[n].stack[e]!=t;)if(n++>=i)return!1;for(;r[i].stack[e]!=t;)if(i--<n)return!1;return[n,i]}function fs(t){return t==="whitespace"||t==="newline"||t==="comment"}function Ow(t,e,r){for(;fs(t[e].type);)if(e++>=r)return!1;return e}function mi(t,e,r){for(;fs(t[r].type);)if(r--<e)return!1;return r}function Rw(t,e,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(t[n].type==="separator"&&t[n].stack.length!==i+1&&t[n].raw!==","||(t[n].type==="separator"&&(n=mi(t,r,n-1)),n===!1))return s;for(;t[n].stack.length>i;)n--;if(!e){for(;fs(t[n].type);){if(n<r)return s;if(t[n].type==="whitespace")s.sep2.unshift(t[n]);else return s;n--}for(ur.equal(t[n].type,"separator"),ur.equal(t[n].raw,":");fs(t[--n].type);){if(n<r)return s;if(t[n].type==="whitespace")s.sep1.unshift(t[n]);else return s}ur.equal(t[n].type,"key"),n--}for(;fs(t[n].type);){if(n<r)return s;if(t[n].type==="whitespace")s.prefix.unshift(t[n]);else return t[n].type==="newline"&&s.newline.unshift(t[n]),s;n--}return s}function Fr(t,e){var r=Object.create(Fr.prototype);e==null&&(e={});var n=r._tokens=Dw(t,e);r._data=n.data,n.data=null,r._options=e;var i=uI(t,e);return e.indent==null&&(e.indent=i.indent),e.quote==null&&(e.quote=i.quote),e.quote_keys==null&&(e.quote_keys=i.quote_keys),e.no_trailing_comma==null&&(e.no_trailing_comma=!i.has_trailing_comma),r}function Lw(t,e,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+t+"'"+i)}if(!hs(e))throw n(" of an non-object");if(Array.isArray(e))if(String(t).match(/^\d+$/)){if(t=Number(String(t)),e.length<t||r&&e.length===t)throw n(", out of bounds");if(r&&e.length!==t+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}Fr.prototype.set=function(t,e){if(t=oh(t),t.length===0){if(e===void 0)throw Error("can't remove root document");this._data=e;var r=!1}else{for(var n=this._data,i=0;i<t.length-1;i++)Lw(t[i],n,!1),n=n[t[i]];i===t.length-1&&Lw(t[i],n,e===void 0);var r=!(t[i]in n);e===void 0?Array.isArray(n)?n.pop():delete n[t[i]]:n[t[i]]=e}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[Ow(this._tokens,0,this._tokens.length-1),mi(this._tokens,0,this._tokens.length-1)],i=0;i<t.length-1;i++)if(s=Pw(t[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(t.length===0)var o=fa(e,t,this._options);else if(r){var f=t.slice(0,i),u=mi(this._tokens,s[0]+1,s[1]-1);ur(u!==!1);var c=u!==!1?Rw(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=fa(e,t,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(fa(t[t.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===t.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),ur.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=Pw(t[i],i,this._tokens,s[0],s[1]),e===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=mi(this._tokens,a[0],s[0]-1);ur.equal(this._tokens[u].type,"separator"),ur.equal(this._tokens[u].raw,":"),s[0]=u;var u=mi(this._tokens,a[0],s[0]-1);ur.equal(this._tokens[u].type,"key"),ur.equal(this._tokens[u].value,t[t.length-1]),s[0]=u}var u=mi(this._tokens,a[0],s[0]-1);ur.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=Ow(this._tokens,s[1]+1,a[1]),ur.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?Rw(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=fa(e,t,this._options,!1,c)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};Fr.prototype.unset=function(t){return this.set(t,void 0)};Fr.prototype.get=function(t){t=oh(t);for(var e=this._data,r=0;r<t.length;r++){if(!hs(e))return;e=e[t[r]]}return e};Fr.prototype.has=function(t){t=oh(t);for(var e=this._data,r=0;r<t.length;r++){if(!hs(e))return!1;e=e[t[r]]}return e!==void 0};Fr.prototype.update=function(t){var e=this;return r([],e._data,t),e;function r(n,i,s){if(!hs(s)||!hs(i))s!==i&&e.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))e.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())}}};Fr.prototype.toString=function(){return this._tokens.map(function(t){return t.raw}).join("")};ah.exports.Document=Fr;ah.exports.update=function(e,r,n){return Fr(e,n).update(r).toString()}});var Tw=E((v8,ha)=>{var cI=require("fs"),lI=ps();ha.exports.register=function(){var t=require,e="extensions";t[e][".json5"]=function(r,n){r.exports=lI.parse(cI.readFileSync(n,"utf8"))}};ha.exports.patch_JSON_parse=function(){var t=JSON.parse;JSON.parse=function(e,r){try{return t(e,r)}catch(n){throw ps().parse(e,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};ha.exports.middleware=function(){return function(t,e,r){throw Error("this function is removed, use express-json5 instead")}}});var ps=E((C8,vn)=>{vn.exports.__defineGetter__("parse",function(){return ls().parse});vn.exports.__defineGetter__("stringify",function(){return ih().stringify});vn.exports.__defineGetter__("tokenize",function(){return ls().tokenize});vn.exports.__defineGetter__("update",function(){return Fw().update});vn.exports.__defineGetter__("analyze",function(){return sh().analyze});vn.exports.__defineGetter__("utils",function(){return Tw()})});var Mw=E(wt=>{"use strict";var ch=wt&&wt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wt,"__esModule",{value:!0});wt.getWorkspacesAsync=wt.getWorkspaces=wt.getRushWorkspacesAsync=wt.getRushWorkspaces=wt.getWorkspacePackagePaths=wt.getRushWorkspaceRoot=void 0;var uh=ch(require("path")),fI=ch(ps()),hI=ch(require("fs")),kw=es(),lh=Pr(),pI=Qn();function Nw(t){let e=(0,pI.getWorkspaceManagerAndRoot)(t,void 0,"rush")?.root;if(!e)throw new Error("Could not find rush workspace root from "+t);return e}wt.getRushWorkspaceRoot=Nw;function fh(t){try{let e=Nw(t),r=uh.default.join(e,"rush.json"),n=fI.default.parse(hI.default.readFileSync(r,"utf-8")),i=uh.default.dirname(r);return n.projects.map(s=>uh.default.join(i,s.projectFolder))}catch(e){return(0,lh.logVerboseWarning)(`Error getting rush workspace package paths for ${t}`,e),[]}}wt.getWorkspacePackagePaths=fh;function Iw(t){try{let e=fh(t);return(0,kw.getWorkspacePackageInfo)(e)}catch(e){return(0,lh.logVerboseWarning)(`Error getting rush workspaces for ${t}`,e),[]}}wt.getRushWorkspaces=Iw;wt.getWorkspaces=Iw;async function $w(t){try{let e=fh(t);return(0,kw.getWorkspacePackageInfoAsync)(e)}catch(e){return(0,lh.logVerboseWarning)(`Error getting rush workspaces for ${t}`,e),[]}}wt.getRushWorkspacesAsync=$w;wt.getWorkspacesAsync=$w});var qw=E(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.getWorkspacesAsync=kt.getWorkspaces=kt.getNpmWorkspacesAsync=kt.getNpmWorkspaces=kt.getWorkspacePackagePathsAsync=kt.getWorkspacePackagePaths=void 0;var dI=ua(),pa=bf();function da(t){let e=(0,dI.getWorkspaceManagerAndRoot)(t,void 0,"npm")?.root;if(!e)throw new Error("Could not find npm workspace root from "+t);return e}function gI(t){let e=da(t);return(0,pa.getPackagePathsFromWorkspaceRoot)(e)}kt.getWorkspacePackagePaths=gI;function mI(t){let e=da(t);return(0,pa.getPackagePathsFromWorkspaceRootAsync)(e)}kt.getWorkspacePackagePathsAsync=mI;function Bw(t){let e=da(t);return(0,pa.getWorkspaceInfoFromWorkspaceRoot)(e)}kt.getNpmWorkspaces=Bw;kt.getWorkspaces=Bw;function jw(t){let e=da(t);return(0,pa.getWorkspaceInfoFromWorkspaceRootAsync)(e)}kt.getNpmWorkspacesAsync=jw;kt.getWorkspacesAsync=jw});var Hw=E(Nt=>{"use strict";var hh=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getWorkspacesAsync=Nt.getWorkspaces=Nt.getLernaWorkspacesAsync=Nt.getLernaWorkspaces=Nt.getWorkspacePackagePaths=void 0;var yI=hh(require("fs")),AI=hh(ps()),wI=hh(require("path")),bI=Ko(),Ww=es(),ph=Pr(),EI=Qn();function _I(t){let e=(0,EI.getWorkspaceManagerAndRoot)(t,void 0,"lerna")?.root;if(!e)throw new Error("Could not find lerna workspace root from "+t);return e}function dh(t){try{let e=_I(t),r=wI.default.join(e,"lerna.json"),n=AI.default.parse(yI.default.readFileSync(r,"utf-8"));return(0,bI.getPackagePaths)(e,n.packages)}catch(e){return(0,ph.logVerboseWarning)(`Error getting lerna workspace package paths for ${t}`,e),[]}}Nt.getWorkspacePackagePaths=dh;function Uw(t){try{let e=dh(t);return(0,Ww.getWorkspacePackageInfo)(e)}catch(e){return(0,ph.logVerboseWarning)(`Error getting lerna workspaces for ${t}`,e),[]}}Nt.getLernaWorkspaces=Uw;Nt.getWorkspaces=Uw;async function Gw(t){try{let e=dh(t);return(0,Ww.getWorkspacePackageInfoAsync)(e)}catch(e){return(0,ph.logVerboseWarning)(`Error getting lerna workspaces for ${t}`,e),[]}}Nt.getLernaWorkspacesAsync=Gw;Nt.getWorkspacesAsync=Gw});var zw=E(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.getWorkspaceUtilities=void 0;var SI=Qn();function vI(t){switch((0,SI.getWorkspaceManagerAndRoot)(t)?.manager){case"yarn":return dw();case"pnpm":return Ew();case"rush":return Mw();case"npm":return qw();case"lerna":return Hw()}}ga.getWorkspaceUtilities=vI});var ua=E(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.getWorkspaceUtilities=yi.getWorkspaceManagerAndRoot=void 0;var CI=Qn();Object.defineProperty(yi,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return CI.getWorkspaceManagerAndRoot}});var xI=zw();Object.defineProperty(yi,"getWorkspaceUtilities",{enumerable:!0,get:function(){return xI.getWorkspaceUtilities}})});var Rc=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.getWorkspaceManagerRoot=Ai.getWorkspaceRoot=void 0;var PI=ua();function OI(t,e){return Yw(t,e)}Ai.getWorkspaceRoot=OI;function Yw(t,e){return(0,PI.getWorkspaceManagerAndRoot)(t,void 0,e)?.root}Ai.getWorkspaceManagerRoot=Yw});var Eb=E(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.walkUp=void 0;var bb=require("path"),WI=function*(t){for(t=(0,bb.resolve)(t);t;){yield t;let e=(0,bb.dirname)(t);if(e===t)break;t=e}};_a.walkUp=WI});var vh=E((h6,Cb)=>{var{hasOwnProperty:_h}=Object.prototype,Sh=(t,e={})=>{typeof e=="string"&&(e={section:e}),e.align=e.align===!0,e.newline=e.newline===!0,e.sort=e.sort===!0,e.whitespace=e.whitespace===!0||e.align===!0,e.platform=e.platform||typeof process<"u"&&process.platform,e.bracketedArray=e.bracketedArray!==!1;let r=e.platform==="win32"?`\r
52
52
  `:`
53
- `,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=wr(s.filter(c=>e[c]===null||Array.isArray(e[c])||typeof e[c]!="object").map(c=>Array.isArray(e[c])?`${c}[]`:c).concat([""]).reduce((c,f)=>wr(c).length>=wr(f).length?c:f)).length);let a="",u=t.bracketedArray?"[]":"";for(let c of s){let f=e[c];if(f&&Array.isArray(f))for(let l of f)a+=wr(`${c}${u}`).padEnd(o," ")+n+wr(l)+r;else f&&typeof f=="object"?i.push(c):a+=wr(c).padEnd(o," ")+n+wr(f)+r}t.section&&a.length&&(a="["+wr(t.section)+"]"+(t.newline?r+r:r)+a);for(let c of i){let f=gE(c,".").join("\\."),l=(t.section?t.section+".":"")+f,h=Dh(e[c],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function gE(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var dE=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let f=c.match(s);if(!f)continue;if(f[1]!==void 0){if(i=_a(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=_a(f[2]),h;t.bracketedArray?h=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,h=a[l]>1);let p=h&&l.endsWith("[]")?l.slice(0,-2):l;if(p==="__proto__")continue;let d=f[3]?_a(f[4]):!0,g=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;h&&(Lh.call(n,p)?Array.isArray(n[p])||(n[p]=[n[p]]):n[p]=[]),Array.isArray(n[p])?n[p].push(g):n[p]=g}let u=[];for(let c of Object.keys(r)){if(!Lh.call(r,c)||typeof r[c]!="object"||Array.isArray(r[c]))continue;let f=gE(c,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let p of f)p!=="__proto__"&&((!Lh.call(n,p)||typeof n[p]!="object")&&(n[p]=Object.create(null)),n=n[p]);n===r&&h===l||(n[h]=r[c],u.push(c))}for(let c of u)delete r[c];return r},mE=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),wr=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&mE(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),_a=e=>{if(e=(e||"").trim(),mE(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let n=0,i=e.length;n<i;n++){let s=e.charAt(n);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};yE.exports={parse:dE,decode:dE,stringify:Dh,encode:Dh,safe:wr,unsafe:_a}});var wE=A((K4,AE)=>{AE.exports=UB;function UB(...e){let t=e;e.length===1&&(Array.isArray(e[0])||typeof e[0]=="string")&&(t=[].concat(e[0]));for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(GB);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",u=!0,c=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(u=u&&h===a.charAt(f),c=c&&h===n.charAt(f),!u&&!c){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let h=o.slice(0,f);f<=l;f++)r[h]=o,h+=o.charAt(f)}return r}function GB(e,t){return e===t?0:e>t?1:-1}});var kh=A((X4,bE)=>{bE.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var Ih=A((J4,SE)=>{var EE=require("url"),Nh=require("path"),_E=require("stream").Stream,HB=require("os"),vE=kh();function zB(e,t,r){e[t]=String(r)}function YB(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=HB.homedir();return s&&r.match(i)?e[t]=Nh.resolve(s,r.slice(2)):e[t]=Nh.resolve(r),!0}function VB(e,t,r){if(vE("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function KB(e,t,r){let n=Date.parse(r);if(vE("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function XB(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function JB(e,t,r){if(r=EE.parse(String(r)),!r.host)return!1;e[t]=r.href}function QB(e,t,r){if(!(r instanceof _E))return!1;e[t]=r}SE.exports={String:{type:String,validate:zB},Boolean:{type:Boolean,validate:XB},url:{type:EE,validate:JB},Number:{type:Number,validate:VB},path:{type:Nh,validate:YB},Stream:{type:_E,validate:QB},Date:{type:Date,validate:KB},Array:{type:Array}}});var DE=A((Q4,LE)=>{var va=wE(),we=kh(),ZB=Ih(),xE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),PE=(e,{types:t,dynamicTypes:r})=>{let n=xE(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},mi=(e,t)=>t&&e===t,sr=(e,t)=>t&&e.indexOf(t)!==-1,eM=(e,t)=>t&&!sr(e,t);function tM(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:u}={}){we(t,r,e,n);let c={},f={remain:[],cooked:e,original:e.slice(0)};return RE(e,c,f.remain,{typeDefs:n,types:t,dynamicTypes:u,shorthands:r,unknownHandler:s,abbrevHandler:o}),OE(c,{types:t,dynamicTypes:u,typeDefs:n,invalidHandler:i,typeDefault:a}),c.argv=f,Object.defineProperty(c.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),c}function OE(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,u=r.Array?.type,c=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),u&&s.push(u));let h={};Object.keys(e).forEach(p=>{if(p==="argv")return;let d=e[p];we("val=%j",d);let g=Array.isArray(d),[m,b]=PE(p,{types:t,dynamicTypes:n}),_=b;g||(d=[d]),_||(_=s),mi(_,u)&&(_=s.concat(u)),Array.isArray(_)||(_=[_]),we("val=%j",d),we("types=",_),d=d.map(P=>{if(typeof P=="string"&&(we("string %j",P),P=P.trim(),P==="null"&&~_.indexOf(null)||P==="true"&&(~_.indexOf(!0)||sr(_,c))||P==="false"&&(~_.indexOf(!1)||sr(_,c))?(P=JSON.parse(P),we("jsonable %j",P)):sr(_,a)&&!isNaN(P)?(we("convert to number",P),P=+P):sr(_,f)&&!isNaN(Date.parse(P))&&(we("convert to date",P),P=new Date(P))),!m){if(!l)return P;b=s}P===!1&&~_.indexOf(null)&&!(~_.indexOf(!1)||sr(_,c))&&(P=null);let F={};return F[p]=P,we("prevalidated val",F,P,b),$h(F,p,P,b,{typeDefs:r})?(we("validated v",F,P,b),F[p]):(i?i(p,P,b,e):i!==!1&&we("invalid: "+p+"="+P,b),h)}).filter(P=>P!==h),!d.length&&eM(_,u)?(we("VAL HAS NO LENGTH, DELETE IT",d,p,_.indexOf(u)),delete e[p]):g?(we(g,e[p],d),e[p]=d):e[p]=d[0],we("k=%s val=%j",p,d,e[p])})}function $h(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let u=0,c=n.length;u<c;u++)if(!mi(n[u],s)&&$h(e,t,r,n[u],{typeDefs:i}))return!0;return delete e[t],!1}if(mi(n,s))return!0;if(n!==n)return we("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return we("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let u=0,c=a.length;u<c;u++){we("test type %j %j %j",t,r,a[u]);let f=i[a[u]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,t,r)!==!1,r=l[t],o){e[t]=r;break}}}return we("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function RE(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:u}={}){let c=i.String?.type,f=i.Number?.type,l=i.Array?.type,h=i.Boolean?.type;we("parse",e,t,r);let p=va(Object.keys(n));we("abbrevs=%j",p);let d=va(Object.keys(s));for(let g=0;g<e.length;g++){let m=e[g];if(we("arg",m),m.match(/^-{2,}$/)){r.push.apply(r,e.slice(g+1)),e[g]="--";break}let b=!1;if(m.charAt(0)==="-"&&m.length>1){let _=m.indexOf("=");if(_>-1){b=!0;let R=m.slice(_+1);m=m.slice(0,_),e.splice(g,1,m,R)}let P=FE(m,d,p,{shorthands:s,abbrevHandler:u});if(we("arg=%j shRes=%j",m,P),P&&(e.splice.apply(e,[g,1].concat(P)),m!==P[0])){g--;continue}m=m.replace(/^-+/,"");let F=null;for(;m.toLowerCase().indexOf("no-")===0;)F=!F,m=m.slice(3);p[m]&&p[m]!==m&&(u?u(m,p[m]):u!==!1&&we(`abbrev: ${m} -> ${p[m]}`),m=p[m]);let[k,q]=PE(m,{types:n,dynamicTypes:o}),M=Array.isArray(q);M&&q.length===1&&(M=!1,q=q[0]);let $=mi(q,l)||M&&sr(q,l);!k&&xE(t,m)&&(Array.isArray(t[m])||(t[m]=[t[m]]),$=!0);let j,x=e[g+1],w=typeof F=="boolean"||mi(q,h)||M&&sr(q,h)||typeof q>"u"&&!b||x==="false"&&(q===null||M&&~q.indexOf(null));if(typeof q>"u"){let R=!b&&x&&!x?.startsWith("-")&&!["true","false"].includes(x);a?R?a(m,x):a(m):a!==!1&&(we(`unknown: ${m}`),R&&we(`unknown: ${x} parsed as normal opt`))}if(w){j=!F,(x==="true"||x==="false")&&(j=JSON.parse(x),x=null,F&&(j=!j),g++),M&&x&&(~q.indexOf(x)?(j=x,g++):x==="null"&&~q.indexOf(null)?(j=null,g++):!x.match(/^-{2,}[^-]/)&&!isNaN(x)&&sr(q,f)?(j=+x,g++):!x.match(/^-[^-]/)&&sr(q,c)&&(j=x,g++)),$?(t[m]=t[m]||[]).push(j):t[m]=j;continue}mi(q,c)&&(x===void 0?x="":x.match(/^-{1,2}[^-]+/)&&(x="",g--)),x&&x.match(/^-{2,}$/)&&(x=void 0,g--),j=x===void 0?!0:x,$?(t[m]=t[m]||[]).push(j):t[m]=j,g++;continue}r.push(m)}}var CE=Symbol("singles"),rM=(e,t)=>{let r=t[CE];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[CE]=r,we("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function FE(e,...t){let{abbrevHandler:r,types:n={},shorthands:i={}}=t.length?t.pop():{},s=t[0]??va(Object.keys(i)),o=t[1]??va(Object.keys(n));if(e=e.replace(/^-+/,""),o[e]===e)return null;if(i[e])return i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e];let a=rM(e,i);return a?a.map(u=>i[u]).reduce((u,c)=>u.concat(c),[]):o[e]&&!i[e]?null:(s[e]&&(r?r(e,s[e]):r!==!1&&we(`abbrev: ${e} -> ${s[e]}`),e=s[e]),i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e])}LE.exports={nopt:tM,clean:OE,parse:RE,validate:$h,resolveShort:FE,typeDefs:ZB}});var Mh=A((vt,TE)=>{var Bh=DE(),nM=Ih();TE.exports=vt=iM;vt.clean=sM;vt.typeDefs=nM;vt.lib=Bh;function iM(e,t,r=process.argv,n=2){return Bh.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:vt.typeDefs,invalidHandler:vt.invalidHandler,unknownHandler:vt.unknownHandler,abbrevHandler:vt.abbrevHandler})}function sM(e,t,r=vt.typeDefs){return Bh.clean(e,{types:t||{},typeDefs:r,invalidHandler:vt.invalidHandler,unknownHandler:vt.unknownHandler,abbrevHandler:vt.abbrevHandler})}});var Sa=A((Z4,kE)=>{var oM=Symbol("proc-log.meta");kE.exports={META:oM,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var jh=A((eY,IE)=>{var NE=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}`)}else{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}},aM=(e,t,r)=>{try{return e[t]=NE(r),!0}catch{return!1}};IE.exports={parse:NE,validate:aM}});var fs=A((tY,$E)=>{"use strict";var uM=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};$E.exports=uM});var hs=A((rY,BE)=>{"use strict";var cM="2.0.0",lM=Number.MAX_SAFE_INTEGER||9007199254740991,fM=16,hM=250,pM=["major","premajor","minor","preminor","patch","prepatch","prerelease"];BE.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:fM,MAX_SAFE_BUILD_LENGTH:hM,MAX_SAFE_INTEGER:lM,RELEASE_TYPES:pM,SEMVER_SPEC_VERSION:cM,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var yi=A((or,ME)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:qh,MAX_SAFE_BUILD_LENGTH:dM,MAX_LENGTH:gM}=hs(),mM=fs();or=ME.exports={};var yM=or.re=[],AM=or.safeRe=[],G=or.src=[],wM=or.safeSrc=[],H=or.t={},bM=0,Wh="[a-zA-Z0-9-]",EM=[["\\s",1],["\\d",gM],[Wh,dM]],_M=e=>{for(let[t,r]of EM)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},ce=(e,t,r)=>{let n=_M(t),i=bM++;mM(e,i,t),H[e]=i,G[i]=t,wM[i]=n,yM[i]=new RegExp(t,r?"g":void 0),AM[i]=new RegExp(n,r?"g":void 0)};ce("NUMERICIDENTIFIER","0|[1-9]\\d*");ce("NUMERICIDENTIFIERLOOSE","\\d+");ce("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Wh}*`);ce("MAINVERSION",`(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})`);ce("MAINVERSIONLOOSE",`(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})`);ce("PRERELEASEIDENTIFIER",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIER]})`);ce("PRERELEASEIDENTIFIERLOOSE",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIERLOOSE]})`);ce("PRERELEASE",`(?:-(${G[H.PRERELEASEIDENTIFIER]}(?:\\.${G[H.PRERELEASEIDENTIFIER]})*))`);ce("PRERELEASELOOSE",`(?:-?(${G[H.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${G[H.PRERELEASEIDENTIFIERLOOSE]})*))`);ce("BUILDIDENTIFIER",`${Wh}+`);ce("BUILD",`(?:\\+(${G[H.BUILDIDENTIFIER]}(?:\\.${G[H.BUILDIDENTIFIER]})*))`);ce("FULLPLAIN",`v?${G[H.MAINVERSION]}${G[H.PRERELEASE]}?${G[H.BUILD]}?`);ce("FULL",`^${G[H.FULLPLAIN]}$`);ce("LOOSEPLAIN",`[v=\\s]*${G[H.MAINVERSIONLOOSE]}${G[H.PRERELEASELOOSE]}?${G[H.BUILD]}?`);ce("LOOSE",`^${G[H.LOOSEPLAIN]}$`);ce("GTLT","((?:<|>)?=?)");ce("XRANGEIDENTIFIERLOOSE",`${G[H.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ce("XRANGEIDENTIFIER",`${G[H.NUMERICIDENTIFIER]}|x|X|\\*`);ce("XRANGEPLAIN",`[v=\\s]*(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:${G[H.PRERELEASE]})?${G[H.BUILD]}?)?)?`);ce("XRANGEPLAINLOOSE",`[v=\\s]*(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:${G[H.PRERELEASELOOSE]})?${G[H.BUILD]}?)?)?`);ce("XRANGE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAIN]}$`);ce("XRANGELOOSE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAINLOOSE]}$`);ce("COERCEPLAIN",`(^|[^\\d])(\\d{1,${qh}})(?:\\.(\\d{1,${qh}}))?(?:\\.(\\d{1,${qh}}))?`);ce("COERCE",`${G[H.COERCEPLAIN]}(?:$|[^\\d])`);ce("COERCEFULL",G[H.COERCEPLAIN]+`(?:${G[H.PRERELEASE]})?(?:${G[H.BUILD]})?(?:$|[^\\d])`);ce("COERCERTL",G[H.COERCE],!0);ce("COERCERTLFULL",G[H.COERCEFULL],!0);ce("LONETILDE","(?:~>?)");ce("TILDETRIM",`(\\s*)${G[H.LONETILDE]}\\s+`,!0);or.tildeTrimReplace="$1~";ce("TILDE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAIN]}$`);ce("TILDELOOSE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAINLOOSE]}$`);ce("LONECARET","(?:\\^)");ce("CARETTRIM",`(\\s*)${G[H.LONECARET]}\\s+`,!0);or.caretTrimReplace="$1^";ce("CARET",`^${G[H.LONECARET]}${G[H.XRANGEPLAIN]}$`);ce("CARETLOOSE",`^${G[H.LONECARET]}${G[H.XRANGEPLAINLOOSE]}$`);ce("COMPARATORLOOSE",`^${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]})$|^$`);ce("COMPARATOR",`^${G[H.GTLT]}\\s*(${G[H.FULLPLAIN]})$|^$`);ce("COMPARATORTRIM",`(\\s*)${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]}|${G[H.XRANGEPLAIN]})`,!0);or.comparatorTrimReplace="$1$2$3";ce("HYPHENRANGE",`^\\s*(${G[H.XRANGEPLAIN]})\\s+-\\s+(${G[H.XRANGEPLAIN]})\\s*$`);ce("HYPHENRANGELOOSE",`^\\s*(${G[H.XRANGEPLAINLOOSE]})\\s+-\\s+(${G[H.XRANGEPLAINLOOSE]})\\s*$`);ce("STAR","(<|>)?=?\\s*\\*");ce("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ce("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ca=A((nY,jE)=>{"use strict";var vM=Object.freeze({loose:!0}),SM=Object.freeze({}),CM=e=>e?typeof e!="object"?vM:e:SM;jE.exports=CM});var Uh=A((iY,UE)=>{"use strict";var qE=/^[0-9]+$/,WE=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=qE.test(e),n=qE.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},xM=(e,t)=>WE(t,e);UE.exports={compareIdentifiers:WE,rcompareIdentifiers:xM}});var rt=A((sY,HE)=>{"use strict";var xa=fs(),{MAX_LENGTH:GE,MAX_SAFE_INTEGER:Pa}=hs(),{safeRe:Oa,t:Ra}=yi(),PM=Ca(),{compareIdentifiers:Gh}=Uh(),Hh=class e{constructor(t,r){if(r=PM(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>GE)throw new TypeError(`version is longer than ${GE} characters`);xa("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Oa[Ra.LOOSE]:Oa[Ra.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>Pa||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Pa||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Pa||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<Pa)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(xa("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)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}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(xa("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 Gh(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(xa("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 Gh(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?Oa[Ra.PRERELEASELOOSE]:Oa[Ra.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}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"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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(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]),Gh(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}};HE.exports=Hh});var gn=A((oY,YE)=>{"use strict";var zE=rt(),OM=(e,t,r=!1)=>{if(e instanceof zE)return e;try{return new zE(e,t)}catch(n){if(!r)return null;throw n}};YE.exports=OM});var Fa=A((aY,VE)=>{"use strict";var RM=gn(),FM=(e,t)=>{let r=RM(e,t);return r?r.version:null};VE.exports=FM});var La=A((uY,Vh)=>{var Hr=Mh(),{validate:LM}=jh(),zh=class{},Yh=class{},DM=Fa(),TM=(e,t,r)=>{let n=DM(r);if(!n)return!1;e[t]=n},kM=Hr.typeDefs.path.validate,NM=(e,t,r)=>typeof r!="string"?!1:kM(e,t,r);Vh.exports={...Hr.typeDefs,semver:{type:Yh,validate:TM,description:"full valid SemVer string"},Umask:{type:zh,validate:LM,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Hr.typeDefs.url,description:'full url with "http://"'},path:{...Hr.typeDefs.path,validate:NM,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 JE=A((cY,XE)=>{var{URL:KE}=require("node:url");XE.exports=e=>{let t=new KE(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new KE(".",r);return`//${n.host}${n.pathname}`}});var Kh=A((lY,QE)=>{var IM=/(?<!\\)(\\*)\$\{([^${}?]+)(\?)?\}/g;QE.exports=(e,t)=>e.replace(IM,(r,n,i,s)=>{let o=s==="?"?"":`\${${i}}`,a=t[i]!==void 0?t[i]:o;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+a})});var t_=A((fY,e_)=>{var Ai=La(),$M=Kh(),{resolve:ZE}=require("node:path"),{parse:BM}=jh(),Xh=(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(Ai.path.type),f=u.has(Ai.Boolean.type),l=c||u.has(Ai.String.type),h=u.has(Ai.Umask.type),p=u.has(Ai.Number.type),d=!n&&u.has(Array),g=u.has(Ai.Date.type);if(Array.isArray(e))return d?e.map(m=>Xh(m,t,r,!0)):e;if(e=e.trim(),d)return Xh(e.split(`
54
-
55
- `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!c&&!p)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=$M(e,a),g)return new Date(e);if(c&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=ZE(o,e.slice(2)):e=ZE(e)),h)try{return BM(e)}catch{return e}return p&&!isNaN(e)&&(e=+e),e};e_.exports=Xh});var s_=A((hY,i_)=>{var MM=(e,t)=>!/^[/@_]/.test(e)&&typeof Jh(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Jh=e=>Array.isArray(e)?e.map(t=>Jh(t)).join(`
56
-
57
- `):e==null||e===!1?"":typeof e=="object"?null:String(e),r_=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:jM(e,t),jM=(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},n_=(e,t,r)=>{let n=Jh(r),i=MM(t,n);i&&n!==null&&(e[i]=n)},qM=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||(r_(r[u],i[u])?r_(s[u],i[u])||n_(t,u,i[u]):a.has(u)&&!o.has(u)||n_(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"]),t.npm_config_node_gyp=i["node-gyp"],t.npm_config_npm_version=i["npm-version"]||"unknown",t.npm_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};i_.exports=qM});var a_=A((pY,o_)=>{"use strict";var Qh=class extends Error{constructor(t){let r="Invalid auth configuration found: ";r+=t.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=t}};o_.exports={ErrInvalidAuth:Qh}});var l_=A((dY,c_)=>{var WM=La(),u_=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>u_(t));for(let{type:t,description:r}of Object.values(WM))if(t===e)return r||t;return e};c_.exports=e=>[].concat(u_(e)).filter(t=>t!==void 0)});var ep=A((gY,d_)=>{"use strict";var UM=Symbol.for("indent"),GM=Symbol.for("newline"),HM=`
58
- `,zM=" ",YM=/^\uFEFF/,VM=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,KM=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,f_=/^Unexpected token '?(.)'?(,)? /i,XM=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},h_=e=>String(e).replace(YM,""),Zh=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),JM=(e,t,r=20)=>{let n=e.message;if(!t)return Zh(n,"empty string");let i=n.match(f_),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(f_,`Unexpected token ${JSON.stringify(i[1])} (${XM(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return Zh(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,u=o+r>=t.length?t.length:o+r,c=`${a?"...":""}${t.slice(a,u)}${u===t.length?"":"..."}`;return Zh(n,`${t===c?"":"near "}${JSON.stringify(c)}`,o)},Da=class extends SyntaxError{constructor(t,r,n,i){let s=JM(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}},p_=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(KM)||e.match(VM)||[null,"",""];r[GM]=n[1]??HM,r[UM]=n[2]??zM}return r},Ta=(e,t,r)=>{let n=h_(e);try{return p_(n,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new Da(i,n,r,Ta)}};d_.exports=Ta;Ta.JSONParseError=Da;Ta.noExceptions=(e,t)=>{try{return p_(h_(e),t)}catch{}}});var y_=A((mY,m_)=>{var tp=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),QM=e=>{for(let t of tp)e&&e[t]&&(e[t]=Object.keys(e[t]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=e[t][n],r),{}));return e},g_=({content:e,originalContent:t})=>{let r=QM({...e});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...t};for(let a of tp)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=t||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};g_.knownKeys=tp;m_.exports=g_});var w_=A((yY,A_)=>{var ZM=({content:e,originalContent:t={}})=>{let r=e.scripts;if(!r)return t;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...t,scripts:{...r}}};A_.exports=ZM});var E_=A((AY,b_)=>{var ej=({content:e,originalContent:t={}})=>{let r=e.workspaces;if(!r)return t;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...t,workspaces:[...r]}};b_.exports=ej});var rp=A((wY,__)=>{"use strict";var tj=gn(),rj=(e,t)=>{let r=tj(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};__.exports=rj});var S_=A((bY,v_)=>{var nj=Symbol("proc-log.meta");v_.exports={META:nj,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var Ia=A(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.LRUCache=void 0;var ij=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,x_=new Set,np=typeof process=="object"&&process?process:{},P_=(e,t,r,n)=>{typeof np.emitWarning=="function"?np.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},ka=globalThis.AbortController,C_=globalThis.AbortSignal;if(typeof ka>"u"){C_=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},ka=class{constructor(){t()}signal=new C_;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=np.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,P_("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var sj=e=>!x_.has(e),vY=Symbol("type"),zr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),O_=e=>zr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?wi:null:null,wi=class extends Array{constructor(t){super(t),this.fill(0)}},ip=class e{heap;length;static#e=!1;static create(t){let r=O_(t);if(!r)return[];e.#e=!0;let n=new e(t,r);return e.#e=!1,n}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},sp=class e{#e;#r;#t;#n;#o;#h;#p;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#d;#f;#c;#i;#m;#E;#b;#y;#O;#A;#v;#x;#w;#_;#P;#g;#s;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#w,sizes:t.#v,keyMap:t.#f,keyList:t.#c,valList:t.#i,next:t.#m,prev:t.#E,get head(){return t.#b},get tail(){return t.#y},free:t.#O,isBackgroundFetch:r=>t.#l(r),backgroundFetch:(r,n,i,s)=>t.#U(r,n,i,s),moveToTail:r=>t.#$(r),indexes:r=>t.#F(r),rindexes:r=>t.#D(r),isStale:r=>t.#C(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#d}get size(){return this.#a}get fetchMethod(){return this.#h}get memoMethod(){return this.#p}get dispose(){return this.#t}get onInsert(){return this.#n}get disposeAfter(){return this.#o}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:c,onInsert:f,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:p,maxSize:d=0,maxEntrySize:g=0,sizeCalculation:m,fetchMethod:b,memoMethod:_,noDeleteOnFetchRejection:P,noDeleteOnStaleGet:F,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:q,ignoreFetchAbort:M,perf:$}=t;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=$??ij,r!==0&&!zr(r))throw new TypeError("max option must be a nonnegative integer");let j=r?O_(r):Array;if(!j)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=g||this.#r,this.sizeCalculation=m,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(_!==void 0&&typeof _!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#p=_,b!==void 0&&typeof b!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#h=b,this.#P=!!b,this.#f=new Map,this.#c=new Array(r).fill(void 0),this.#i=new Array(r).fill(void 0),this.#m=new j(r),this.#E=new j(r),this.#b=0,this.#y=0,this.#O=ip.create(r),this.#a=0,this.#d=0,typeof c=="function"&&(this.#t=c),typeof f=="function"&&(this.#n=f),typeof l=="function"?(this.#o=l,this.#A=[]):(this.#o=void 0,this.#A=void 0),this.#_=!!this.#t,this.#s=!!this.#n,this.#g=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!P,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!M,this.maxEntrySize!==0){if(this.#r!==0&&!zr(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!zr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#B()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!F,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=zr(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!zr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let x="LRU_CACHE_UNBOUNDED";sj(x)&&(x_.add(x),P_("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,e))}}getRemainingTTL(t){return this.#f.has(t)?1/0:0}#T(){let t=new wi(this.#e),r=new wi(this.#e);this.#w=t,this.#x=r,this.#q=(s,o,a=this.#u.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#C(s)&&this.#L(this.#c[s],"expire")},o+1);u.unref&&u.unref()}},this.#R=s=>{r[s]=t[s]!==0?this.#u.now():0},this.#S=(s,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;s.ttl=a,s.start=u,s.now=n||i();let c=s.now-u;s.remainingTTL=a-c}};let n=0,i=()=>{let s=this.#u.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#f.get(s);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let c=(n||i())-u;return a-c},this.#C=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#R=()=>{};#S=()=>{};#q=()=>{};#C=()=>!1;#B(){let t=new wi(this.#e);this.#d=0,this.#v=t,this.#k=r=>{this.#d-=t[r],t[r]=0},this.#N=(r,n,i,s)=>{if(this.#l(n))return 0;if(!zr(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!zr(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#M=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#d>s;)this.#I(!0)}this.#d+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#d)}}#k=t=>{};#M=(t,r,n)=>{};#N=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#F({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#y;!(!this.#W(r)||((t||!this.#C(r))&&(yield r),r===this.#b));)r=this.#E[r]}*#D({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#b;!(!this.#W(r)||((t||!this.#C(r))&&(yield r),r===this.#y));)r=this.#m[r]}#W(t){return t!==void 0&&this.#f.get(this.#c[t])===t}*entries(){for(let t of this.#F())this.#i[t]!==void 0&&this.#c[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#c[t],this.#i[t]])}*rentries(){for(let t of this.#D())this.#i[t]!==void 0&&this.#c[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#c[t],this.#i[t]])}*keys(){for(let t of this.#F()){let r=this.#c[t];r!==void 0&&!this.#l(this.#i[t])&&(yield r)}}*rkeys(){for(let t of this.#D()){let r=this.#c[t];r!==void 0&&!this.#l(this.#i[t])&&(yield r)}}*values(){for(let t of this.#F())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}*rvalues(){for(let t of this.#D())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(t,r=this){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#c[n],this)}}rforEach(t,r=this){for(let n of this.#D()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#c[n],this)}}purgeStale(){let t=!1;for(let r of this.#D({allowStale:!0}))this.#C(r)&&(this.#L(this.#c[r],"expire"),t=!0);return t}info(t){let r=this.#f.get(t);if(r===void 0)return;let n=this.#i[r],i=this.#l(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#w&&this.#x){let o=this.#w[r],a=this.#x[r];if(o&&a){let u=o-(this.#u.now()-a);s.ttl=u,s.start=Date.now()}}return this.#v&&(s.size=this.#v[r]),s}dump(){let t=[];for(let r of this.#F({allowStale:!0})){let n=this.#c[r],i=this.#i[r],s=this.#l(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#w&&this.#x){o.ttl=this.#w[r];let a=this.#u.now()-this.#x[r];o.start=Math.floor(Date.now()-a)}this.#v&&(o.size=this.#v[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=this.#u.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,f=this.#N(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.#L(t,"set"),this;let l=this.#a===0?void 0:this.#f.get(t);if(l===void 0)l=this.#a===0?this.#y:this.#O.length!==0?this.#O.pop():this.#a===this.#e?this.#I(!1):this.#a,this.#c[l]=t,this.#i[l]=r,this.#f.set(t,l),this.#m[this.#y]=l,this.#E[l]=this.#y,this.#y=l,this.#a++,this.#M(l,f,u),u&&(u.set="add"),c=!1,this.#s&&this.#n?.(r,t,"add");else{this.#$(l);let h=this.#i[l];if(r!==h){if(this.#P&&this.#l(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!o&&(this.#_&&this.#t?.(p,t,"set"),this.#g&&this.#A?.push([p,t,"set"]))}else o||(this.#_&&this.#t?.(h,t,"set"),this.#g&&this.#A?.push([h,t,"set"]));if(this.#k(l),this.#M(l,f,u),this.#i[l]=r,u){u.set="replace";let p=h&&this.#l(h)?h.__staleWhileFetching:h;p!==void 0&&(u.oldValue=p)}}else u&&(u.set="update");this.#s&&this.onInsert?.(r,t,r===h?"update":"replace")}if(i!==0&&!this.#w&&this.#T(),this.#w&&(c||this.#q(l,i,s),u&&this.#S(u,l)),!o&&this.#g&&this.#A){let h=this.#A,p;for(;p=h?.shift();)this.#o?.(...p)}return this}pop(){try{for(;this.#a;){let t=this.#i[this.#b];if(this.#I(!0),this.#l(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#g&&this.#A){let t=this.#A,r;for(;r=t?.shift();)this.#o?.(...r)}}}#I(t){let r=this.#b,n=this.#c[r],i=this.#i[r];return this.#P&&this.#l(i)?i.__abortController.abort(new Error("evicted")):(this.#_||this.#g)&&(this.#_&&this.#t?.(i,n,"evict"),this.#g&&this.#A?.push([i,n,"evict"])),this.#k(r),t&&(this.#c[r]=void 0,this.#i[r]=void 0,this.#O.push(r)),this.#a===1?(this.#b=this.#y=0,this.#O.length=0):this.#b=this.#m[r],this.#f.delete(n),this.#a--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#f.get(t);if(s!==void 0){let o=this.#i[s];if(this.#l(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#C(s))i&&(i.has="stale",this.#S(i,s));else return n&&this.#R(s),i&&(i.has="hit",this.#S(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#f.get(t);if(i===void 0||!n&&this.#C(i))return;let s=this.#i[i];return this.#l(s)?s.__staleWhileFetching:s}#U(t,r,n,i){let s=r===void 0?void 0:this.#i[r];if(this.#l(s))return s;let o=new ka,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:i},c=(g,m=!1)=>{let{aborted:b}=o.signal,_=n.ignoreFetchAbort&&g!==void 0;if(n.status&&(b&&!m?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,_&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!_&&!m)return l(o.signal.reason);let P=p,F=this.#i[r];return(F===p||_&&m&&F===void 0)&&(g===void 0?P.__staleWhileFetching!==void 0?this.#i[r]=P.__staleWhileFetching:this.#L(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,g,u.options))),g},f=g=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=g),l(g)),l=g=>{let{aborted:m}=o.signal,b=m&&n.allowStaleOnFetchAbort,_=b||n.allowStaleOnFetchRejection,P=_||n.noDeleteOnFetchRejection,F=p;if(this.#i[r]===p&&(!P||F.__staleWhileFetching===void 0?this.#L(t,"fetch"):b||(this.#i[r]=F.__staleWhileFetching)),_)return n.status&&F.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),F.__staleWhileFetching;if(F.__returned===F)throw g},h=(g,m)=>{let b=this.#h?.(t,s,u);b&&b instanceof Promise&&b.then(_=>g(_===void 0?void 0:_),m),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(g(void 0),n.allowStaleOnFetchAbort&&(g=_=>c(_,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(h).then(c,f),d=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,d,{...u.options,status:void 0}),r=this.#f.get(t)):this.#i[r]=d,d}#l(t){if(!this.#P)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof ka}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:g,forceRefresh:m=!1,status:b,signal:_}=r;if(!this.#P)return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});let P={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:c,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:b,signal:_},F=this.#f.get(t);if(F===void 0){b&&(b.fetch="miss");let k=this.#U(t,F,P,g);return k.__returned=k}else{let k=this.#i[F];if(this.#l(k)){let x=n&&k.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",x&&(b.returnedStale=!0)),x?k.__staleWhileFetching:k.__returned=k}let q=this.#C(F);if(!m&&!q)return b&&(b.fetch="hit"),this.#$(F),i&&this.#R(F),b&&this.#S(b,F),k;let M=this.#U(t,F,P,g),j=M.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=q?"stale":"refresh",j&&q&&(b.returnedStale=!0)),j?M.__staleWhileFetching:M.__returned=M}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#p;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let u=n(t,a,{options:o,context:i});return this.set(t,u,o),u}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#f.get(t);if(a!==void 0){let u=this.#i[a],c=this.#l(u);return o&&this.#S(o,a),this.#C(a)?(o&&(o.get="stale"),c?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(s||this.#L(t,"expire"),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),c?u.__staleWhileFetching:(this.#$(a),i&&this.#R(a),u))}else o&&(o.get="miss")}#G(t,r){this.#E[r]=t,this.#m[t]=r}#$(t){t!==this.#y&&(t===this.#b?this.#b=this.#m[t]:this.#G(this.#E[t],this.#m[t]),this.#G(this.#y,t),this.#y=t)}delete(t){return this.#L(t,"delete")}#L(t,r){let n=!1;if(this.#a!==0){let i=this.#f.get(t);if(i!==void 0)if(n=!0,this.#a===1)this.#j(r);else{this.#k(i);let s=this.#i[i];if(this.#l(s)?s.__abortController.abort(new Error("deleted")):(this.#_||this.#g)&&(this.#_&&this.#t?.(s,t,r),this.#g&&this.#A?.push([s,t,r])),this.#f.delete(t),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#y)this.#y=this.#E[i];else if(i===this.#b)this.#b=this.#m[i];else{let o=this.#E[i];this.#m[o]=this.#m[i];let a=this.#m[i];this.#E[a]=this.#E[i]}this.#a--,this.#O.push(i)}}if(this.#g&&this.#A?.length){let i=this.#A,s;for(;s=i?.shift();)this.#o?.(...s)}return n}clear(){return this.#j("delete")}#j(t){for(let r of this.#D({allowStale:!0})){let n=this.#i[r];if(this.#l(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#c[r];this.#_&&this.#t?.(n,i,t),this.#g&&this.#A?.push([n,i,t])}}if(this.#f.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#w&&this.#x&&(this.#w.fill(0),this.#x.fill(0)),this.#v&&this.#v.fill(0),this.#b=0,this.#y=0,this.#O.length=0,this.#d=0,this.#a=0,this.#g&&this.#A){let r=this.#A,n;for(;n=r?.shift();)this.#o?.(...n)}}};Na.LRUCache=sp});var L_=A((CY,F_)=>{"use strict";var pe=(...e)=>e.every(t=>t)?e.join(""):"",Be=e=>e?encodeURIComponent(e):"",R_=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),oj={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${pe("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${pe("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${pe("/",i,"/",Be(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${pe("/",i,"/",Be(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Be(n||"HEAD")}/${s}${pe("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Be(n||"HEAD")}/${s}${pe("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${pe("/",n,"/",Be(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${pe(e,"@")}${t}/${r}/${n}.git${pe("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Be(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${pe("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${pe("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:R_},Yr={};Yr.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${pe(e,"@")}raw.githubusercontent.com/${t}/${r}/${Be(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${pe(e,"@")}${t}/${r}/${n}.git${pe("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Be(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};Yr.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${pe("/",i,"/",Be(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Be(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};Yr.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Be(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};Yr.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${pe("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${pe("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${pe("/",Be(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${pe("/",Be(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${pe("/",Be(r))}${pe("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${pe("/",Be(r))}${pe("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${pe("/",Be(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${pe("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${pe("/",Be(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${pe("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${pe("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${pe("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Be(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+R_(e)}};Yr.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Be(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${pe("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Be(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(Yr))Yr[e]=Object.assign({},oj,t);F_.exports=Yr});var ap=A((xY,T_)=>{var aj=require("url"),op=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},D_=e=>{try{return new aj.URL(e)}catch{}},uj=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n)||e.substr(r,3)==="://")return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},cj=e=>{let t=op(e,"@","#"),r=op(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),op(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};T_.exports=(e,t)=>{let r=t?uj(e,t):e;return D_(r)||D_(cj(r))}});var N_=A((PY,k_)=>{"use strict";var lj=ap(),fj=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,u=o===-1||t>-1&&o>t,c=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,l=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),p=!e.startsWith(".");return a&&l&&h&&p&&u&&c&&f};k_.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=fj(e)?`github:${e}`:e,s=lj(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],u=o||a;if(!u)return;let c=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,h=null,p=null,d=null;try{if(o){let g=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,m=g.indexOf("@");m>-1&&(g=g.slice(m+1));let b=g.lastIndexOf("/");b>-1?(h=decodeURIComponent(g.slice(0,b)),h||(h=null),p=decodeURIComponent(g.slice(b+1))):p=decodeURIComponent(g),p.endsWith(".git")&&(p=p.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),d="shortcut"}else{if(!c.protocols.includes(s.protocol))return;let g=c.extract(s);if(!g)return;h=g.user&&decodeURIComponent(g.user),p=decodeURIComponent(g.project),l=decodeURIComponent(g.committish),d=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(g){if(g instanceof URIError)return;throw g}return[u,h,f,p,l,d,t]}});var Ba=A((OY,I_)=>{"use strict";var{LRUCache:hj}=Ia(),pj=L_(),dj=N_(),gj=ap(),up=new hj({max:1e3});function mj(e){try{let{protocol:t,hostname:r,pathname:n}=new URL(e);if(!r)return null;let i=/(?:git\+)http:$/.test(t)?"http:":"https:",s=n.replace(/\.git$/,"");return`${i}//${r}${s}`}catch{return null}}var $a=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#e[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#r={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#e[t]=r,e.#e.byDomain[r.domain]=t,e.#e.byShortcut[`${t}:`]=t,e.#r[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!up.has(n)){let i=dj(t,r,{gitHosts:e.#e,protocols:e.#r});up.set(n,i?new e(...i):void 0)}return up.get(n)}static fromManifest(t,r={}){if(!t||typeof t!="object")return;let n=t.repository,i=n&&(typeof n=="string"?n:typeof n=="object"&&typeof n.url=="string"?n.url:null);if(!i)throw new Error("no repository");let s=i&&e.fromUrl(i.replace(/^git\+/,""),r)||null;if(s)return s;let o=mj(i);return e.fromUrl(o,r)||o}static parseUrl(t){return gj(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(pj))$a.addHost(e,t);I_.exports=$a});var B_=A(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.range=mn.balanced=void 0;var yj=(e,t,r)=>{let n=e instanceof RegExp?$_(e,r):e,i=t instanceof RegExp?$_(t,r):t,s=n!==null&&i!=null&&(0,mn.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}};mn.balanced=yj;var $_=(e,t)=>{let r=t.match(e);return r?r[0]:null},Aj=(e,t,r)=>{let 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;){if(f===u)n.push(f),u=r.indexOf(e,f+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,c])}else i=n.pop(),i!==void 0&&i<s&&(s=i,o=c),c=r.indexOf(t,f+1);f=u<c&&u>=0?u:c}n.length&&o!==void 0&&(a=[s,o])}return a};mn.range=Aj});var H_=A(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.EXPANSION_MAX=void 0;bi.expand=Lj;var M_=B_(),j_="\0SLASH"+Math.random()+"\0",q_="\0OPEN"+Math.random()+"\0",lp="\0CLOSE"+Math.random()+"\0",W_="\0COMMA"+Math.random()+"\0",U_="\0PERIOD"+Math.random()+"\0",wj=new RegExp(j_,"g"),bj=new RegExp(q_,"g"),Ej=new RegExp(lp,"g"),_j=new RegExp(W_,"g"),vj=new RegExp(U_,"g"),Sj=/\\\\/g,Cj=/\\{/g,xj=/\\}/g,Pj=/\\,/g,Oj=/\\./g;bi.EXPANSION_MAX=1e5;function cp(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Rj(e){return e.replace(Sj,j_).replace(Cj,q_).replace(xj,lp).replace(Pj,W_).replace(Oj,U_)}function Fj(e){return e.replace(wj,"\\").replace(bj,"{").replace(Ej,"}").replace(_j,",").replace(vj,".")}function G_(e){if(!e)return[""];let t=[],r=(0,M_.balanced)("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:s}=r,o=n.split(",");o[o.length-1]+="{"+i+"}";let a=G_(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function Lj(e,t={}){if(!e)return[];let{max:r=bi.EXPANSION_MAX}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),ps(Rj(e),r,!0).map(Fj)}function Dj(e){return"{"+e+"}"}function Tj(e){return/^-?0\d/.test(e)}function kj(e,t){return e<=t}function Nj(e,t){return e>=t}function ps(e,t,r){let n=[],i=(0,M_.balanced)("{","}",e);if(!i)return[e];let s=i.pre,o=i.post.length?ps(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(let a=0;a<o.length&&a<t;a++){let u=s+"{"+i.body+"}"+o[a];n.push(u)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=a||u,f=i.body.indexOf(",")>=0;if(!c&&!f)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+lp+i.post,ps(e,t,!0)):[e];let l;if(c)l=i.body.split(/\.\./);else if(l=G_(i.body),l.length===1&&l[0]!==void 0&&(l=ps(l[0],t,!1).map(Dj),l.length===1))return o.map(p=>i.pre+l[0]+p);let h;if(c&&l[0]!==void 0&&l[1]!==void 0){let p=cp(l[0]),d=cp(l[1]),g=Math.max(l[0].length,l[1].length),m=l.length===3&&l[2]!==void 0?Math.abs(cp(l[2])):1,b=kj;d<p&&(m*=-1,b=Nj);let P=l.some(Tj);h=[];for(let F=p;b(F,d);F+=m){let k;if(u)k=String.fromCharCode(F),k==="\\"&&(k="");else if(k=String(F),P){let q=g-k.length;if(q>0){let M=new Array(q+1).join("0");F<0?k="-"+M+k.slice(1):k=M+k}}h.push(k)}}else{h=[];for(let p=0;p<l.length;p++)h.push.apply(h,ps(l[p],t,!1))}for(let p=0;p<h.length;p++)for(let d=0;d<o.length&&n.length<t;d++){let g=s+h[p]+o[d];(!r||c||g)&&n.push(g)}}return n}});var z_=A(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.assertValidPattern=void 0;var Ij=1024*64,$j=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>Ij)throw new TypeError("pattern is too long")};Ma.assertValidPattern=$j});var V_=A(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.parseClass=void 0;var Bj={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ds=e=>e.replace(/[[\]\\-]/g,"\\$&"),Mj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Y_=e=>e.join(""),jj=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,u=!1,c=!1,f=r,l="";e:for(;s<e.length;){let g=e.charAt(s);if((g==="!"||g==="^")&&s===r+1){c=!0,s++;continue}if(g==="]"&&o&&!u){f=s+1;break}if(o=!0,g==="\\"&&!u){u=!0,s++;continue}if(g==="["&&!u){for(let[m,[b,_,P]]of Object.entries(Bj))if(e.startsWith(m,s)){if(l)return["$.",!1,e.length-r,!0];s+=m.length,P?i.push(b):n.push(b),a=a||_;continue e}}if(u=!1,l){g>l?n.push(ds(l)+"-"+ds(g)):g===l&&n.push(ds(g)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(ds(g+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=g,s+=2;continue}n.push(ds(g)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let g=n[0].length===2?n[0].slice(-1):n[0];return[Mj(g),!1,f-r,!1]}let h="["+(c?"^":"")+Y_(n)+"]",p="["+(c?"":"^")+Y_(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,a,f-r,!0]};ja.parseClass=jj});var Wa=A(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.unescape=void 0;var qj=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");qa.unescape=qj});var pp=A(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.AST=void 0;var Wj=V_(),Ua=Wa(),Uj=new Set(["!","?","+","*","@"]),K_=e=>Uj.has(e),Gj="(?!(?:^|/)\\.\\.?(?:$|/))",Ga="(?!\\.)",Hj=new Set(["[","."]),zj=new Set(["..","."]),Yj=new Set("().*{}+?[]^$\\!"),Vj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hp="[^/]",X_=hp+"*?",J_=hp+"+?",fp=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#p;#u=!1;#a;#d;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#p=this.#e===this?[]:this.#e.#p,t==="!"&&!this.#e.#u&&this.#p.push(this),this.#h=this.#o?this.#o.#n.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#n)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#d!==void 0?this.#d:this.type?this.#d=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#d=this.#n.map(t=>String(t)).join("")}#c(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let t;for(;t=this.#p.pop();){if(t.type!=="!")continue;let r=t,n=r.#o;for(;n;){for(let i=r.#h+1;!n.type&&i<n.#n.length;i++)for(let s of t.#n){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#n[i])}r=n,n=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#n.push(r)}}toJSON(){let t=this.type===null?this.#n.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#n.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let t=this.#o;for(let r=0;r<this.#h;r++){let n=t.#n[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#n.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#n)r.copyIn(n);return r}static#i(t,r,n,i){let s=!1,o=!1,a=-1,u=!1;if(r.type===null){let p=n,d="";for(;p<t.length;){let g=t.charAt(p++);if(s||g==="\\"){s=!s,d+=g;continue}if(o){p===a+1?(g==="^"||g==="!")&&(u=!0):g==="]"&&!(p===a+2&&u)&&(o=!1),d+=g;continue}else if(g==="["){o=!0,a=p,u=!1,d+=g;continue}if(!i.noext&&K_(g)&&t.charAt(p)==="("){r.push(d),d="";let m=new e(g,r);p=e.#i(t,m,p,i),r.push(m);continue}d+=g}return r.push(d),p}let c=n+1,f=new e(null,r),l=[],h="";for(;c<t.length;){let p=t.charAt(c++);if(s||p==="\\"){s=!s,h+=p;continue}if(o){c===a+1?(p==="^"||p==="!")&&(u=!0):p==="]"&&!(c===a+2&&u)&&(o=!1),h+=p;continue}else if(p==="["){o=!0,a=c,u=!1,h+=p;continue}if(K_(p)&&t.charAt(c)==="("){f.push(h),h="";let d=new e(p,f);f.push(d),c=e.#i(t,d,c,i);continue}if(p==="|"){f.push(h),h="",l.push(f),f=new e(null,r);continue}if(p===")")return h===""&&r.#n.length===0&&(r.#f=!0),f.push(h),h="",r.push(...l,f),c;h+=p}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],c}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#i(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#c(),!this.type){let u=this.isStart()&&this.isEnd()&&!this.#n.some(p=>typeof p!="string"),c=this.#n.map(p=>{let[d,g,m,b]=typeof p=="string"?e.#E(p,this.#r,u):p.toRegExpSource(t);return this.#r=this.#r||m,this.#t=this.#t||b,d}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&zj.has(this.#n[0]))){let d=Hj,g=r&&d.has(c.charAt(0))||c.startsWith("\\.")&&d.has(c.charAt(2))||c.startsWith("\\.\\.")&&d.has(c.charAt(4)),m=!r&&!t&&d.has(c.charAt(0));f=g?Gj:m?Ga:""}let l="";return this.isEnd()&&this.#e.#u&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+c+l,(0,Ua.unescape)(c),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#m(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString();return this.#n=[u],this.type=null,this.#r=void 0,[u,(0,Ua.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!Ga?"":this.#m(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#f)a=(this.isStart()&&!r?Ga:"")+J_;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Ga:"")+X_+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+u}return[a,(0,Ua.unescape)(s),this.#r=!!this.#r,this.#t]}#m(t){return this.#n.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(t);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#E(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let u=t.charAt(a);if(i){i=!1,s+=(Yj.has(u)?"\\":"")+u;continue}if(u==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[c,f,l,h]=(0,Wj.parseClass)(t,a);if(l){s+=c,o=o||f,a+=l-1,r=r||h;continue}}if(u==="*"){s+=n&&t==="*"?J_:X_,r=!0;continue}if(u==="?"){s+=hp,r=!0;continue}s+=Vj(u)}return[s,(0,Ua.unescape)(t),!!r,o]}};Ha.AST=fp});var dp=A(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.escape=void 0;var Kj=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");za.escape=Kj});var br=A(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.unescape=X.escape=X.AST=X.Minimatch=X.match=X.makeRe=X.braceExpand=X.defaults=X.filter=X.GLOBSTAR=X.sep=X.minimatch=void 0;var Xj=H_(),Ya=z_(),ev=pp(),Jj=dp(),Qj=Wa(),Zj=(e,t,r={})=>((0,Ya.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new yn(t,r).match(e));X.minimatch=Zj;var eq=/^\*+([^+@!?\*\[\(]*)$/,tq=e=>t=>!t.startsWith(".")&&t.endsWith(e),rq=e=>t=>t.endsWith(e),nq=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),iq=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),sq=/^\*+\.\*+$/,oq=e=>!e.startsWith(".")&&e.includes("."),aq=e=>e!=="."&&e!==".."&&e.includes("."),uq=/^\.\*+$/,cq=e=>e!=="."&&e!==".."&&e.startsWith("."),lq=/^\*+$/,fq=e=>e.length!==0&&!e.startsWith("."),hq=e=>e.length!==0&&e!=="."&&e!=="..",pq=/^\?+([^+@!?\*\[\(]*)?$/,dq=([e,t=""])=>{let r=tv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},gq=([e,t=""])=>{let r=rv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},mq=([e,t=""])=>{let r=rv([e]);return t?n=>r(n)&&n.endsWith(t):r},yq=([e,t=""])=>{let r=tv([e]);return t?n=>r(n)&&n.endsWith(t):r},tv=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},rv=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},nv=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Q_={win32:{sep:"\\"},posix:{sep:"/"}};X.sep=nv==="win32"?Q_.win32.sep:Q_.posix.sep;X.minimatch.sep=X.sep;X.GLOBSTAR=Symbol("globstar **");X.minimatch.GLOBSTAR=X.GLOBSTAR;var Aq="[^/]",wq=Aq+"*?",bq="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Eq="(?:(?!(?:\\/|^)\\.).)*?",_q=(e,t={})=>r=>(0,X.minimatch)(r,e,t);X.filter=_q;X.minimatch.filter=X.filter;var kt=(e,t={})=>Object.assign({},e,t),vq=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return X.minimatch;let t=X.minimatch;return Object.assign((n,i,s={})=>t(n,i,kt(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,kt(e,s))}static defaults(i){return t.defaults(kt(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,kt(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,kt(e,s))}},unescape:(n,i={})=>t.unescape(n,kt(e,i)),escape:(n,i={})=>t.escape(n,kt(e,i)),filter:(n,i={})=>t.filter(n,kt(e,i)),defaults:n=>t.defaults(kt(e,n)),makeRe:(n,i={})=>t.makeRe(n,kt(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,kt(e,i)),match:(n,i,s={})=>t.match(n,i,kt(e,s)),sep:t.sep,GLOBSTAR:X.GLOBSTAR})};X.defaults=vq;X.minimatch.defaults=X.defaults;var Sq=(e,t={})=>((0,Ya.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Xj.expand)(e));X.braceExpand=Sq;X.minimatch.braceExpand=X.braceExpand;var Cq=(e,t={})=>new yn(e,t).makeRe();X.makeRe=Cq;X.minimatch.makeRe=X.makeRe;var xq=(e,t,r={})=>{let n=new yn(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};X.match=xq;X.minimatch.match=X.match;var Z_=/[?*]|[+@!]\(.*?\)|\[|\]/,Pq=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,Ya.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||nv,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}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(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Z_.test(s[2]))&&!Z_.test(s[3]),c=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(c)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],u=n[i+2],c=n[i+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,o=[],a="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])o.push(a==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])o.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])o.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.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=!1){let i=this.options;if(this.isWindows){let g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),m=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),b=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),_=!b&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),P=m?3:g?0:void 0,F=_?3:b?0:void 0;if(typeof P=="number"&&typeof F=="number"){let[k,q]=[t[P],r[F]];k.toLowerCase()===q.toLowerCase()&&(r[F]=k,F>P?r=r.slice(F):P>F&&(t=t.slice(P)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,u=t.length,c=r.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var f=r[a],l=t[o];if(this.debug(r,f,l),f===!1)return!1;if(f===X.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,p=a+1;if(p===c){for(this.debug("** at the end");o<u;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<u;){var d=t[h];if(this.debug(`
59
- globstar while`,t,h,r,p,d),this.matchOne(t.slice(h),r.slice(p),n))return this.debug("globstar found match!",h,u,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,h,r,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(n&&(this.debug(`
60
- >>> no match, partial?`,t,h,r,p),h===u))}let g;if(typeof f=="string"?(g=l===f,this.debug("string match",f,l,g)):(g=f.test(l),this.debug("pattern match",f,l,g)),!g)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,X.braceExpand)(this.pattern,this.options)}parse(t){(0,Ya.assertValidPattern)(t);let r=this.options;if(t==="**")return X.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(lq))?i=r.dot?hq:fq:(n=t.match(eq))?i=(r.nocase?r.dot?iq:nq:r.dot?rq:tq)(n[1]):(n=t.match(pq))?i=(r.nocase?r.dot?gq:dq:r.dot?mq:yq)(n):(n=t.match(sq))?i=r.dot?aq:oq:(n=t.match(uq))&&(i=cq);let s=ev.AST.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}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?wq:r.dot?bq:Eq,i=new Set(r.nocase?["i"]:[]),s=t.map(u=>{let c=u.map(l=>{if(l instanceof RegExp)for(let h of l.flags.split(""))i.add(h);return typeof l=="string"?Pq(l):l===X.GLOBSTAR?X.GLOBSTAR:l._src});c.forEach((l,h)=>{let p=c[h+1],d=c[h-1];l!==X.GLOBSTAR||d===X.GLOBSTAR||(d===void 0?p!==void 0&&p!==X.GLOBSTAR?c[h+1]="(?:\\/|"+n+"\\/)?"+p:c[h]=n:p===void 0?c[h-1]=d+"(?:\\/|\\/"+n+")?":p!==X.GLOBSTAR&&(c[h-1]=d+"(?:\\/|\\/"+n+"\\/)"+p,c[h+1]=X.GLOBSTAR))});let f=c.filter(l=>l!==X.GLOBSTAR);if(this.partial&&f.length>=1){let l=[];for(let h=1;h<=f.length;h++)l.push(f.slice(0,h).join("/"));return"(?:"+l.join("|")+")"}return f.join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}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;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let u=s[a],c=i;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return X.minimatch.defaults(t).Minimatch}};X.Minimatch=yn;var Oq=pp();Object.defineProperty(X,"AST",{enumerable:!0,get:function(){return Oq.AST}});var Rq=dp();Object.defineProperty(X,"escape",{enumerable:!0,get:function(){return Rq.escape}});var Fq=Wa();Object.defineProperty(X,"unescape",{enumerable:!0,get:function(){return Fq.unescape}});X.minimatch.AST=ev.AST;X.minimatch.Minimatch=yn;X.minimatch.escape=Jj.escape;X.minimatch.unescape=Qj.unescape});var _p=A(lt=>{"use strict";var Lq=lt&&lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lt,"__esModule",{value:!0});lt.Minipass=lt.isWritable=lt.isReadable=lt.isStream=void 0;var iv=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ep=require("node:events"),uv=Lq(require("node:stream")),Dq=require("node:string_decoder"),Tq=e=>!!e&&typeof e=="object"&&(e instanceof eu||e instanceof uv.default||(0,lt.isReadable)(e)||(0,lt.isWritable)(e));lt.isStream=Tq;var kq=e=>!!e&&typeof e=="object"&&e instanceof Ep.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==uv.default.Writable.prototype.pipe;lt.isReadable=kq;var Nq=e=>!!e&&typeof e=="object"&&e instanceof Ep.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";lt.isWritable=Nq;var Er=Symbol("EOF"),_r=Symbol("maybeEmitEnd"),Vr=Symbol("emittedEnd"),Va=Symbol("emittingEnd"),gs=Symbol("emittedError"),Ka=Symbol("closed"),sv=Symbol("read"),Xa=Symbol("flush"),ov=Symbol("flushChunk"),Vt=Symbol("encoding"),Ei=Symbol("decoder"),We=Symbol("flowing"),ms=Symbol("paused"),_i=Symbol("resume"),Ue=Symbol("buffer"),ct=Symbol("pipes"),Ge=Symbol("bufferLength"),gp=Symbol("bufferPush"),Ja=Symbol("bufferShift"),nt=Symbol("objectMode"),Le=Symbol("destroyed"),mp=Symbol("error"),yp=Symbol("emitData"),av=Symbol("emitEnd"),Ap=Symbol("emitEnd2"),ar=Symbol("async"),wp=Symbol("abort"),Qa=Symbol("aborted"),ys=Symbol("signal"),An=Symbol("dataListeners"),St=Symbol("discarded"),As=e=>Promise.resolve().then(e),Iq=e=>e(),$q=e=>e==="end"||e==="finish"||e==="prefinish",Bq=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Mq=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Za=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[_i](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},bp=class extends Za{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},jq=e=>!!e.objectMode,qq=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",eu=class extends Ep.EventEmitter{[We]=!1;[ms]=!1;[ct]=[];[Ue]=[];[nt];[Vt];[ar];[Ei];[Er]=!1;[Vr]=!1;[Va]=!1;[Ka]=!1;[gs]=null;[Ge]=0;[Le]=!1;[ys];[Qa]=!1;[An]=0;[St]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");jq(r)?(this[nt]=!0,this[Vt]=null):qq(r)?(this[Vt]=r.encoding,this[nt]=!1):(this[nt]=!1,this[Vt]=null),this[ar]=!!r.async,this[Ei]=this[Vt]?new Dq.StringDecoder(this[Vt]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ue]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ct]});let{signal:n}=r;n&&(this[ys]=n,n.aborted?this[wp]():n.addEventListener("abort",()=>this[wp]()))}get bufferLength(){return this[Ge]}get encoding(){return this[Vt]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[nt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[ar]}set async(t){this[ar]=this[ar]||!!t}[wp](){this[Qa]=!0,this.emit("abort",this[ys]?.reason),this.destroy(this[ys]?.reason)}get aborted(){return this[Qa]}set aborted(t){}write(t,r,n){if(this[Qa])return!1;if(this[Er])throw new Error("write after end");if(this[Le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[ar]?As:Iq;if(!this[nt]&&!Buffer.isBuffer(t)){if(Mq(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(Bq(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[nt]?(this[We]&&this[Ge]!==0&&this[Xa](!0),this[We]?this.emit("data",t):this[gp](t),this[Ge]!==0&&this.emit("readable"),n&&i(n),this[We]):t.length?(typeof t=="string"&&!(r===this[Vt]&&!this[Ei]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Vt]&&(t=this[Ei].write(t)),this[We]&&this[Ge]!==0&&this[Xa](!0),this[We]?this.emit("data",t):this[gp](t),this[Ge]!==0&&this.emit("readable"),n&&i(n),this[We]):(this[Ge]!==0&&this.emit("readable"),n&&i(n),this[We])}read(t){if(this[Le])return null;if(this[St]=!1,this[Ge]===0||t===0||t&&t>this[Ge])return this[_r](),null;this[nt]&&(t=null),this[Ue].length>1&&!this[nt]&&(this[Ue]=[this[Vt]?this[Ue].join(""):Buffer.concat(this[Ue],this[Ge])]);let r=this[sv](t||null,this[Ue][0]);return this[_r](),r}[sv](t,r){if(this[nt])this[Ja]();else{let n=r;t===n.length||t===null?this[Ja]():typeof n=="string"?(this[Ue][0]=n.slice(t),r=n.slice(0,t),this[Ge]-=t):(this[Ue][0]=n.subarray(t),r=n.subarray(0,t),this[Ge]-=t)}return this.emit("data",r),!this[Ue].length&&!this[Er]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r="utf8"),t!==void 0&&this.write(t,r),n&&this.once("end",n),this[Er]=!0,this.writable=!1,(this[We]||!this[ms])&&this[_r](),this}[_i](){this[Le]||(!this[An]&&!this[ct].length&&(this[St]=!0),this[ms]=!1,this[We]=!0,this.emit("resume"),this[Ue].length?this[Xa]():this[Er]?this[_r]():this.emit("drain"))}resume(){return this[_i]()}pause(){this[We]=!1,this[ms]=!0,this[St]=!1}get destroyed(){return this[Le]}get flowing(){return this[We]}get paused(){return this[ms]}[gp](t){this[nt]?this[Ge]+=1:this[Ge]+=t.length,this[Ue].push(t)}[Ja](){return this[nt]?this[Ge]-=1:this[Ge]-=this[Ue][0].length,this[Ue].shift()}[Xa](t=!1){do;while(this[ov](this[Ja]())&&this[Ue].length);!t&&!this[Ue].length&&!this[Er]&&this.emit("drain")}[ov](t){return this.emit("data",t),this[We]}pipe(t,r){if(this[Le])return t;this[St]=!1;let n=this[Vr];return r=r||{},t===iv.stdout||t===iv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[ct].push(r.proxyErrors?new bp(this,t,r):new Za(this,t,r)),this[ar]?As(()=>this[_i]()):this[_i]()),t}unpipe(t){let r=this[ct].find(n=>n.dest===t);r&&(this[ct].length===1?(this[We]&&this[An]===0&&(this[We]=!1),this[ct]=[]):this[ct].splice(this[ct].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);if(t==="data")this[St]=!1,this[An]++,!this[ct].length&&!this[We]&&this[_i]();else if(t==="readable"&&this[Ge]!==0)super.emit("readable");else if($q(t)&&this[Vr])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[gs]){let i=r;this[ar]?As(()=>i.call(this,this[gs])):i.call(this,this[gs])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[An]=this.listeners("data").length,this[An]===0&&!this[St]&&!this[ct].length&&(this[We]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[An]=0,!this[St]&&!this[ct].length&&(this[We]=!1)),r}get emittedEnd(){return this[Vr]}[_r](){!this[Va]&&!this[Vr]&&!this[Le]&&this[Ue].length===0&&this[Er]&&(this[Va]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ka]&&this.emit("close"),this[Va]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Le&&this[Le])return!1;if(t==="data")return!this[nt]&&!n?!1:this[ar]?(As(()=>this[yp](n)),!0):this[yp](n);if(t==="end")return this[av]();if(t==="close"){if(this[Ka]=!0,!this[Vr]&&!this[Le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[gs]=n,super.emit(mp,n);let s=!this[ys]||this.listeners("error").length?super.emit("error",n):!1;return this[_r](),s}else if(t==="resume"){let s=super.emit("resume");return this[_r](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,...r);return this[_r](),i}[yp](t){for(let n of this[ct])n.dest.write(t)===!1&&this.pause();let r=this[St]?!1:super.emit("data",t);return this[_r](),r}[av](){return this[Vr]?!1:(this[Vr]=!0,this.readable=!1,this[ar]?(As(()=>this[Ap]()),!0):this[Ap]())}[Ap](){if(this[Ei]){let r=this[Ei].end();if(r){for(let n of this[ct])n.dest.write(r);this[St]||super.emit("data",r)}}for(let r of this[ct])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[nt]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[nt]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[nt])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Vt]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(Le,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[St]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Er])return r();let s,o,a=l=>{this.off("data",u),this.off("end",c),this.off(Le,f),r(),o(l)},u=l=>{this.off("error",a),this.off("end",c),this.off(Le,f),this.pause(),s({value:l,done:!!this[Er]})},c=()=>{this.off("error",a),this.off("data",u),this.off(Le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,h)=>{o=h,s=l,this.once(Le,f),this.once("error",a),this.once("end",c),this.once("data",u)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[St]=!1;let t=!1,r=()=>(this.pause(),this.off(mp,r),this.off(Le,r),this.off("end",r),t=!0,{done:!0,value:void 0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(mp,r),this.once(Le,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[Le])return t?this.emit("error",t):this.emit(Le),this;this[Le]=!0,this[St]=!0,this[Ue].length=0,this[Ge]=0;let r=this;return typeof r.close=="function"&&!this[Ka]&&r.close(),t?this.emit("error",t):this.emit(Le),this}static get isStream(){return lt.isStream}};lt.Minipass=eu});var _v=A(de=>{"use strict";var Wq=de&&de.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Uq=de&&de.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Gq=de&&de.__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)&&Wq(t,e,r);return Uq(t,e),t};Object.defineProperty(de,"__esModule",{value:!0});de.PathScurry=de.Path=de.PathScurryDarwin=de.PathScurryPosix=de.PathScurryWin32=de.PathScurryBase=de.PathPosix=de.PathWin32=de.PathBase=de.ChildrenCache=de.ResolveCache=void 0;var uu=Ia(),su=require("node:path"),Hq=require("node:url"),bs=require("fs"),zq=Gq(require("node:fs")),Yq=bs.realpathSync.native,tu=require("node:fs/promises"),cv=_p(),Es={lstatSync:bs.lstatSync,readdir:bs.readdir,readdirSync:bs.readdirSync,readlinkSync:bs.readlinkSync,realpathSync:Yq,promises:{lstat:tu.lstat,readdir:tu.readdir,readlink:tu.readlink,realpath:tu.realpath}},dv=e=>!e||e===Es||e===zq?Es:{...Es,...e,promises:{...Es.promises,...e.promises||{}}},gv=/^\\\\\?\\([a-z]:)\\?$/i,Vq=e=>e.replace(/\//g,"\\").replace(gv,"$1\\"),Kq=/[\\\/]/,It=0,mv=1,yv=2,ur=4,Av=6,wv=8,wn=10,bv=12,Nt=15,ws=~Nt,vp=16,lv=32,_s=64,Kt=128,ru=256,iu=512,fv=_s|Kt|iu,Xq=1023,Sp=e=>e.isFile()?wv:e.isDirectory()?ur:e.isSymbolicLink()?wn:e.isCharacterDevice()?yv:e.isBlockDevice()?Av:e.isSocket()?bv:e.isFIFO()?mv:It,hv=new uu.LRUCache({max:2**12}),vs=e=>{let t=hv.get(e);if(t)return t;let r=e.normalize("NFKD");return hv.set(e,r),r},pv=new uu.LRUCache({max:2**12}),nu=e=>{let t=pv.get(e);if(t)return t;let r=vs(e.toLowerCase());return pv.set(e,r),r},Ss=class extends uu.LRUCache{constructor(){super({max:256})}};de.ResolveCache=Ss;var ou=class extends uu.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};de.ChildrenCache=ou;var Ev=Symbol("PathScurry setAsCwd"),Ye=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#t;get mode(){return this.#t}#n;get nlink(){return this.#n}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#p;get rdev(){return this.#p}#u;get blksize(){return this.#u}#a;get ino(){return this.#a}#d;get size(){return this.#d}#f;get blocks(){return this.#f}#c;get atimeMs(){return this.#c}#i;get mtimeMs(){return this.#i}#m;get ctimeMs(){return this.#m}#E;get birthtimeMs(){return this.#E}#b;get atime(){return this.#b}#y;get mtime(){return this.#y}#O;get ctime(){return this.#O}#A;get birthtime(){return this.#A}#v;#x;#w;#_;#P;#g;#s;#T;#R;#S;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=It,n,i,s,o,a){this.name=t,this.#v=s?nu(t):vs(t),this.#s=r&Xq,this.nocase=s,this.roots=i,this.root=n||this,this.#T=o,this.#w=a.fullpath,this.#P=a.relative,this.#g=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=dv(a.fs)}depth(){return this.#x!==void 0?this.#x:this.parent?this.#x=this.parent.depth()+1:this.#x=0}childrenCache(){return this.#T}resolve(t){if(!t)return this;let r=this.getRootString(t),i=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#q(i):this.#q(i)}#q(t){let r=this;for(let n of t)r=r.child(n);return r}children(){let t=this.#T.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#T.set(this,r),this.#s&=~vp,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?nu(t):vs(t);for(let u of n)if(u.#v===i)return u;let s=this.parent?this.sep:"",o=this.#w?this.#w+s+t:void 0,a=this.newChild(t,It,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#s|=Kt),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#P!==void 0)return this.#P;let t=this.name,r=this.parent;if(!r)return this.#P=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let t=this.name,r=this.parent;if(!r)return this.#g=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#w!==void 0)return this.#w;let t=this.name,r=this.parent;if(!r)return this.#w=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#w=i}fullpathPosix(){if(this.#_!==void 0)return this.#_;if(this.sep==="/")return this.#_=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#_=`//?/${i}`:this.#_=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#_=n}isUnknown(){return(this.#s&Nt)===It}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#s&Nt)===wv}isDirectory(){return(this.#s&Nt)===ur}isCharacterDevice(){return(this.#s&Nt)===yv}isBlockDevice(){return(this.#s&Nt)===Av}isFIFO(){return(this.#s&Nt)===mv}isSocket(){return(this.#s&Nt)===bv}isSymbolicLink(){return(this.#s&wn)===wn}lstatCached(){return this.#s&lv?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#S}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let t=this.#s&Nt;return!(t!==It&&t!==wn||this.#s&ru||this.#s&Kt)}calledReaddir(){return!!(this.#s&vp)}isENOENT(){return!!(this.#s&Kt)}isNamed(t){return this.nocase?this.#v===nu(t):this.#v===vs(t)}async readlink(){let t=this.#R;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#R=n}catch(r){this.#W(r.code);return}}readlinkSync(){let t=this.#R;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#R=n}catch(r){this.#W(r.code);return}}#C(t){this.#s|=vp;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#B()}}#B(){this.#s&Kt||(this.#s=(this.#s|Kt)&ws,this.#k())}#k(){let t=this.children();t.provisional=0;for(let r of t)r.#B()}#M(){this.#s|=iu,this.#N()}#N(){if(this.#s&_s)return;let t=this.#s;(t&Nt)===ur&&(t&=ws),this.#s=t|_s,this.#k()}#F(t=""){t==="ENOTDIR"||t==="EPERM"?this.#N():t==="ENOENT"?this.#B():this.children().provisional=0}#D(t=""){t==="ENOTDIR"?this.parent.#N():t==="ENOENT"&&this.#B()}#W(t=""){let r=this.#s;r|=ru,t==="ENOENT"&&(r|=Kt),(t==="EINVAL"||t==="UNKNOWN")&&(r&=ws),this.#s=r,t==="ENOTDIR"&&this.parent&&this.parent.#N()}#I(t,r){return this.#l(t,r)||this.#U(t,r)}#U(t,r){let n=Sp(t),i=this.newChild(t.name,n,{parent:this}),s=i.#s&Nt;return s!==ur&&s!==wn&&s!==It&&(i.#s|=_s),r.unshift(i),r.provisional++,i}#l(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?nu(t.name):vs(t.name))===i.#v)return this.#G(t,i,n,r)}}#G(t,r,n,i){let s=r.name;return r.#s=r.#s&ws|Sp(t),s!==t.name&&(r.name=t.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if((this.#s&Kt)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#D(t.code)}}lstatSync(){if((this.#s&Kt)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#D(t.code)}}#$(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:u,ctimeMs:c,dev:f,gid:l,ino:h,mode:p,mtime:d,mtimeMs:g,nlink:m,rdev:b,size:_,uid:P}=t;this.#b=r,this.#c=n,this.#A=i,this.#E=s,this.#u=o,this.#f=a,this.#O=u,this.#m=c,this.#r=f,this.#h=l,this.#a=h,this.#t=p,this.#y=d,this.#i=g,this.#n=m,this.#p=b,this.#d=_,this.#o=P;let F=Sp(t);this.#s=this.#s&ws|F|lv,F!==It&&F!==ur&&F!==wn&&(this.#s|=_s)}#L=[];#j=!1;#z(t){this.#j=!1;let r=this.#L.slice();this.#L.length=0,r.forEach(n=>n(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#L.push(t),this.#j)return;this.#j=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#F(s.code),n.provisional=0;else{for(let a of o)this.#I(a,n);this.#C(n)}this.#z(n.slice(0,n.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#H)await this.#H;else{let n=()=>{};this.#H=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#I(i,t);this.#C(t)}catch(i){this.#F(i.code),t.provisional=0}this.#H=void 0,n()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#I(n,t);this.#C(t)}catch(n){this.#F(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#s&fv)return!1;let t=Nt&this.#s;return t===It||t===ur||t===wn}shouldWalk(t,r){return(this.#s&ur)===ur&&!(this.#s&fv)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#S)return this.#S;if(!((iu|ru|Kt)&this.#s))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#S=this.resolve(t)}catch{this.#M()}}realpathSync(){if(this.#S)return this.#S;if(!((iu|ru|Kt)&this.#s))try{let t=this.#e.realpathSync(this.fullpath());return this.#S=this.resolve(t)}catch{this.#M()}}[Ev](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#P=n.join(this.sep),i.#g=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#P=void 0,i.#g=void 0,i=i.parent}};de.PathBase=Ye;var Cs=class e extends Ye{sep="\\";splitSep=Kq;constructor(t,r=It,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=It,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return su.win32.parse(t).root}getRoot(t){if(t=Vq(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=n;return this.roots[t]=new Os(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(gv,"$1\\"),t===r}};de.PathWin32=Cs;var xs=class e extends Ye{splitSep="/";sep="/";constructor(t,r=It,n,i,s,o,a){super(t,r,n,i,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=It,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};de.PathPosix=xs;var Ps=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=Es}={}){this.#n=dv(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,Hq.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Ss,this.#r=new Ss,this.#t=new ou(s);let u=a.substring(this.rootPath.length).split(n);if(u.length===1&&!u[0]&&u.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let c=this.root,f=u.length-1,l=r.sep,h=this.rootPath,p=!1;for(let d of u){let g=f--;c=c.child(d,{relative:new Array(g).fill("..").join(l),relativePosix:new Array(g).fill("..").join("/"),fullpath:h+=(p?"":l)+d}),p=!0}this.cwd=c}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#t}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n}=r;if(t.canReaddir()){let i=await t.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n=!0}=r;return t.canReaddir()?n?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t.withFileTypes,t=this.cwd);let n=await t.readlink();return r?n:n?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t.withFileTypes,t=this.cwd);let n=t.readlinkSync();return r?n:n?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t.withFileTypes,t=this.cwd);let n=await t.realpath();return r?n:n?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t.withFileTypes,t=this.cwd);let n=t.realpathSync();return r?n:n?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let u=new Set,c=(l,h)=>{u.add(l),l.readdirCB((p,d)=>{if(p)return h(p);let g=d.length;if(!g)return h();let m=()=>{--g===0&&h()};for(let b of d)(!s||s(b))&&a.push(n?b:b.fullpath()),i&&b.isSymbolicLink()?b.realpath().then(_=>_?.isUnknown()?_.lstat():_).then(_=>_?.shouldWalk(u,o)?c(_,m):m()):b.shouldWalk(u,o)?c(b,m):m()},!0)},f=t;return new Promise((l,h)=>{c(f,p=>{if(p)return h(p);l(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let u=new Set([t]);for(let c of u){let f=c.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let h=l;if(l.isSymbolicLink()){if(!(i&&(h=l.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(u,o)&&u.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield n?t:t.fullpath());let a=new Set([t]);for(let u of a){let c=u.readdirSync();for(let f of c){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new cv.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let u=new Set,c=[t],f=0,l=()=>{let h=!1;for(;!h;){let p=c.shift();if(!p){f===0&&a.end();return}f++,u.add(p);let d=(m,b,_=!1)=>{if(m)return a.emit("error",m);if(i&&!_){let P=[];for(let F of b)F.isSymbolicLink()&&P.push(F.realpath().then(k=>k?.isUnknown()?k.lstat():k));if(P.length){Promise.all(P).then(()=>d(null,b,!0));return}}for(let P of b)P&&(!s||s(P))&&(a.write(n?P:P.fullpath())||(h=!0));f--;for(let P of b){let F=P.realpathCached()||P;F.shouldWalk(u,o)&&c.push(F)}h&&!a.flowing?a.once("drain",l):g||l()},g=!0;p.readdirCB(d,!0),g=!1}};return l(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Ye||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new cv.Minipass({objectMode:!0}),u=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let c=[t],f=0,l=()=>{let h=!1;for(;!h;){let p=c.shift();if(!p){f===0&&a.end();return}f++,u.add(p);let d=p.readdirSync();for(let g of d)(!s||s(g))&&(a.write(n?g:g.fullpath())||(h=!0));f--;for(let g of d){let m=g;if(g.isSymbolicLink()){if(!(i&&(m=g.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(u,o)&&c.push(m)}}h&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[Ev](r)}};de.PathScurryBase=Ps;var Os=class extends Ps{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,su.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return su.win32.parse(t).root.toUpperCase()}newRoot(t){return new Cs(this.rootPath,ur,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};de.PathScurryWin32=Os;var Rs=class extends Ps{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,su.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new xs(this.rootPath,ur,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};de.PathScurryPosix=Rs;var au=class extends Rs{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};de.PathScurryDarwin=au;de.Path=process.platform==="win32"?Cs:xs;de.PathScurry=process.platform==="win32"?Os:process.platform==="darwin"?au:Rs});var xp=A(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.Pattern=void 0;var Jq=br(),Qq=e=>e.length>=1,Zq=e=>e.length>=1,Cp=class e{#e;#r;#t;length;#n;#o;#h;#p;#u;#a;#d=!0;constructor(t,r,n,i){if(!Qq(t))throw new TypeError("empty pattern list");if(!Zq(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#t=n,this.#n=i,this.#t===0){if(this.isUNC()){let[s,o,a,u,...c]=this.#e,[f,l,h,p,...d]=this.#r;c[0]===""&&(c.shift(),d.shift());let g=[s,o,a,u,""].join("/"),m=[f,l,h,p,""].join("/");this.#e=[g,...c],this.#r=[m,...d],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...u]=this.#r;o[0]===""&&(o.shift(),u.shift());let c=s+"/",f=a+"/";this.#e=[c,...o],this.#r=[f,...u],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===Jq.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#h=this.#h||(this.#t===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#r,this.#t+1,this.#n),this.#o.#a=this.#a,this.#o.#u=this.#u,this.#o.#p=this.#p,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#n==="win32"&&this.#t===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#p!==void 0?this.#p:this.#p=this.#n==="win32"&&this.#t===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#t===0?t:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#d)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#d?!1:(this.#d=!1,!0)}};cu.Pattern=Cp});var Op=A(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.Ignore=void 0;var vv=br(),eW=xp(),tW=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Pp=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=tW}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new vv.Minimatch(t,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new eW.Pattern(i,s,0,this.platform),a=new vv.Minimatch(o.globString(),this.mmopts),u=s[s.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),u&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),n=`${r}/`,i=t.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",n=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};lu.Ignore=Pp});var Cv=A(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Processor=cr.SubWalks=cr.MatchRecord=cr.HasWalkedCache=void 0;var Sv=br(),fu=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let n=t.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};cr.HasWalkedCache=fu;var hu=class{store=new Map;add(t,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(t);this.store.set(t,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};cr.MatchRecord=hu;var pu=class{store=new Map;add(t,r){if(!t.canReaddir())return;let n=this.store.get(t);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};cr.SubWalks=pu;var Rp=class e{hasWalkedCache;matches=new hu;subwalks=new pu;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new fu}processPatterns(t,r){this.patterns=r;let n=r.map(i=>[t,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let u,c,f=!1;for(;typeof(u=s.pattern())=="string"&&(c=s.rest());)i=i.resolve(u),s=c,f=!0;if(u=s.pattern(),c=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof u=="string"){let l=u===".."||u===""||u===".";this.matches.add(i.resolve(u),a,l);continue}else if(u===Sv.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=c?.pattern(),h=c?.rest();if(!c||(l===""||l===".")&&!h)this.matches.add(i,a,l===""||l===".");else if(l===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else u instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let n=this.subwalks.get(t),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),u=o.pattern(),c=o.rest();u===Sv.GLOBSTAR?i.testGlobstar(s,o,c,a):u instanceof RegExp?i.testRegExp(s,u,c,a):i.testString(s,u,c,a)}return i}testGlobstar(t,r,n,i){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(t,n):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,n.rest(),i);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(t,s,n.rest(),i)}}testRegExp(t,r,n,i){r.test(t.name)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}testString(t,r,n,i){t.isNamed(r)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}};cr.Processor=Rp});var Ov=A(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.GlobStream=Kr.GlobWalker=Kr.GlobUtil=void 0;var rW=_p(),xv=Op(),Pv=Cv(),nW=(e,t)=>typeof e=="string"?new xv.Ignore([e],t):Array.isArray(e)?new xv.Ignore(e,t):e,Fs=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#t;signal;maxDepth;includeChildMatches;constructor(t,r,n){if(this.patterns=t,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=nW(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(t){return this.seen.has(t)||!!this.#r?.ignored?.(t)}#o(t){return!!this.#r?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||await t.realpath(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#n(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||t.realpathSync(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#n(t))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${t.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(n){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(t,r,n){let i=await this.matchCheck(t,n);i&&this.matchFinish(i,r)}matchSync(t,r,n){let i=this.matchCheckSync(t,n);i&&this.matchFinish(i,r)}walkCB(t,r,n){this.signal?.aborted&&n(),this.walkCB2(t,r,new Pv.Processor(this.opts),n)}walkCB2(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||(s++,this.match(a,u,c).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirCached();a.calledReaddir()?this.walkCB3(a,u,n,o):a.readdirCB((c,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||(s++,this.match(a,u,c).then(()=>o()));for(let[a,u]of n.subwalks.entries())s++,this.walkCB2(a,u,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new Pv.Processor(this.opts),n)}walkCB2Sync(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||this.matchSync(a,u,c);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirSync();this.walkCB3Sync(a,u,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||this.matchSync(a,u,c);for(let[a,u]of n.subwalks.entries())s++,this.walkCB2Sync(a,u,n.child(),o);o()}};Kr.GlobUtil=Fs;var Fp=class extends Fs{matches=new Set;constructor(t,r,n){super(t,r,n)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Kr.GlobWalker=Fp;var Lp=class extends Fs{results;constructor(t,r,n){super(t,r,n),this.results=new rW.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Kr.GlobStream=Lp});var Tp=A(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.Glob=void 0;var iW=br(),sW=require("node:url"),du=_v(),oW=xp(),gu=Ov(),aW=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Dp=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,sW.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(u=>u.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(u=>u.includes("/")?u:`./**/${u}`)}if(this.pattern=t,this.platform=r.platform||aW,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let u=r.platform==="win32"?du.PathScurryWin32:r.platform==="darwin"?du.PathScurryDarwin:r.platform?du.PathScurryPosix:du.PathScurry;this.scurry=new u(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(u=>new iW.Minimatch(u,i)),[o,a]=s.reduce((u,c)=>(u[0].push(...c.set),u[1].push(...c.globParts),u),[[],[]]);this.patterns=o.map((u,c)=>{let f=a[c];if(!f)throw new Error("invalid pattern object");return new oW.Pattern(u,f,0,this.platform)})}async walk(){return[...await new gu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new gu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new gu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new gu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};mu.Glob=Dp});var kp=A(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.hasMagic=void 0;var uW=br(),cW=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new uW.Minimatch(r,t).hasMagic())return!0;return!1};yu.hasMagic=cW});var Bp=A(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.glob=he.sync=he.iterate=he.iterateSync=he.stream=he.streamSync=he.Ignore=he.hasMagic=he.Glob=he.unescape=he.escape=void 0;he.globStreamSync=Ls;he.globStream=Np;he.globSync=Ip;he.globIterateSync=Ds;he.globIterate=$p;var Rv=br(),bn=Tp(),lW=kp(),Lv=br();Object.defineProperty(he,"escape",{enumerable:!0,get:function(){return Lv.escape}});Object.defineProperty(he,"unescape",{enumerable:!0,get:function(){return Lv.unescape}});var fW=Tp();Object.defineProperty(he,"Glob",{enumerable:!0,get:function(){return fW.Glob}});var hW=kp();Object.defineProperty(he,"hasMagic",{enumerable:!0,get:function(){return hW.hasMagic}});var pW=Op();Object.defineProperty(he,"Ignore",{enumerable:!0,get:function(){return pW.Ignore}});function Ls(e,t={}){return new bn.Glob(e,t).streamSync()}function Np(e,t={}){return new bn.Glob(e,t).stream()}function Ip(e,t={}){return new bn.Glob(e,t).walkSync()}async function Fv(e,t={}){return new bn.Glob(e,t).walk()}function Ds(e,t={}){return new bn.Glob(e,t).iterateSync()}function $p(e,t={}){return new bn.Glob(e,t).iterate()}he.streamSync=Ls;he.stream=Object.assign(Np,{sync:Ls});he.iterateSync=Ds;he.iterate=Object.assign($p,{sync:Ds});he.sync=Object.assign(Ip,{stream:Ls,iterate:Ds});he.glob=Object.assign(Fv,{glob:Fv,globSync:Ip,sync:he.sync,globStream:Np,stream:he.stream,globStreamSync:Ls,streamSync:he.streamSync,globIterate:$p,iterate:he.iterate,globIterateSync:Ds,iterateSync:he.iterateSync,Glob:bn.Glob,hasMagic:lW.hasMagic,escape:Rv.escape,unescape:Rv.unescape});he.glob.glob=he.glob});var Mp=A((VY,dW)=>{dW.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Dv=A((KY,gW)=>{gW.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var Tv=A((XY,mW)=>{mW.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var Nv=A((JY,kv)=>{"use strict";var yW=[].concat(Mp()).concat(Dv()),AW=Tv();kv.exports=function(e){var t=0;function r(){return t<e.length}function n(d){if(d instanceof RegExp){var g=e.slice(t),m=g.match(d);if(m)return t+=m[0].length,m[0]}else if(e.indexOf(d,t)===t)return t+=d.length,d}function i(){n(/[ ]*/)}function s(){for(var d,g=["WITH","AND","OR","(",")",":","+"],m=0;m<g.length&&(d=n(g[m]),!d);m++);if(d==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var d=o();if(!d)throw new Error("Expected idstring at offset "+t);return d}function u(){if(n("DocumentRef-")){var d=a();return{type:"DOCUMENTREF",string:d}}}function c(){if(n("LicenseRef-")){var d=a();return{type:"LICENSEREF",string:d}}}function f(){var d=t,g=o();if(yW.indexOf(g)!==-1)return{type:"LICENSE",string:g};if(AW.indexOf(g)!==-1)return{type:"EXCEPTION",string:g};t=d}function l(){return s()||u()||c()||f()}for(var h=[];r()&&(i(),!!r());){var p=l();if(!p)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(p)}return h}});var $v=A((QY,Iv)=>{"use strict";Iv.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(g){var m=n();if(m&&m.type==="OPERATOR"&&g===m.string)return i(),m.string}function o(){if(s("WITH")){var g=n();if(g&&g.type==="EXCEPTION")return i(),g.string;throw new Error("Expected exception after `WITH`")}}function a(){var g=t,m="",b=n();if(b.type==="DOCUMENTREF"&&(i(),m+="DocumentRef-"+b.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(b=n(),b.type==="LICENSEREF")return i(),m+="LicenseRef-"+b.string,{license:m};t=g}function u(){var g=n();if(g&&g.type==="LICENSE"){i();var m={license:g.string};s("+")&&(m.plus=!0);var b=o();return b&&(m.exception=b),m}}function c(){var g=s("(");if(g){var m=p();if(!s(")"))throw new Error("Expected `)`");return m}}function f(){return c()||a()||u()}function l(g,m){return function b(){var _=m();if(_){if(!s(g))return _;var P=b();if(!P)throw new Error("Expected expression");return{left:_,conjunction:g.toLowerCase(),right:P}}}}var h=l("AND",f),p=l("OR",h),d=p();if(!d||r())throw new Error("Syntax error");return d}});var jp=A((ZY,Bv)=>{"use strict";var wW=Nv(),bW=$v();Bv.exports=function(e){return bW(wW(e))}});var Yv=A((e5,zv)=>{var EW=jp(),_W=Mp();function Au(e){try{return EW(e),!0}catch{return!1}}function Hv(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Mv=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Hv),vW=0,SW=1,jv=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],qp=_W.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),CW=Object.keys(qp).map(function(t){return[t,qp[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});qp=void 0;var qv=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(CW).sort(Hv),xW=0,PW=1,Wv=function(e){for(var t=0;t<jv.length;t++){var r=jv[t](e).trim();if(r!==e&&Au(r))return r}return null},Uv=function(e){for(var t=e.toUpperCase(),r=0;r<qv.length;r++){var n=qv[r];if(t.indexOf(n[xW])>-1)return n[PW]}return null},Gv=function(e,t){for(var r=0;r<Mv.length;r++){var n=Mv[r],i=n[vW];if(e.indexOf(i)>-1){var s=e.replace(i,n[SW]),o=t(s);if(o!==null)return o}}return null};zv.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?OW(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Au(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Au(s))return n(s);var o=Wv(e);return o!==null||(o=Gv(e,function(a){return Au(a)?a:Wv(a)}),o!==null)||(o=Uv(e),o!==null)||(o=Gv(e,Uv),o!==null)?n(o):null};function OW(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var Jv=A((t5,Xv)=>{var RW=jp(),FW=Yv(),Vv='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',LW=/^SEE LICEN[CS]E IN (.+)$/;function Kv(e,t){return t.slice(0,e.length)===e}function Wp(e){if(e.hasOwnProperty("license")){var t=e.license;return Kv("LicenseRef",t)||Kv("DocumentRef",t)}else return Wp(e.left)||Wp(e.right)}Xv.exports=function(e){var t;try{t=RW(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=LW.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Vv]};if(e.trim().length!==0){var i=FW(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Wp(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Vv]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var n1=A((r5,r1)=>{var{URL:Up}=require("node:url"),Qv=Ba(),DW=Jv(),Zv={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},e1=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function TW(e){let t=e.trim().split(`
61
- `),r=0;for(;t[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<t.length&&t[n].trim();)n++;return t.slice(r,n).join(" ").trim()}function t1(e){if(typeof e!="string"){let s=e.name||"",o=e.url||e.web,a=o?" ("+o+")":"",u=e.email||e.mail,c=u?" <"+u+">":"";e=s+c+a}let t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t?.[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function kW(e,t){e.description&&typeof e.description!="string"&&(t?.push("'description' field should be a string"),delete e.description),e.readme&&!e.description&&e.readme!=="ERROR: No README data found!"&&(e.description=TW(e.readme)),e.description===void 0&&delete e.description,e.description||t?.push("No description"),e.modules&&(t?.push("modules field is deprecated"),delete e.modules);let r=e.files;if(r&&!Array.isArray(r)?(t?.push("Invalid 'files' member"),delete e.files):e.files&&(e.files=e.files.filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),e.man&&typeof e.man=="string"&&(e.man=[e.man]),!e.bugs&&e.repository?.url){let o=Qv.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")e1(e.bugs)?e.bugs={email:e.bugs}:Up.canParse(e.bugs)?e.bugs={url:e.bugs}:t?.push("Bug string field must be url, email, or {email,url}");else{for(let a in e.bugs)["web","name"].includes(a)&&(t?.push(`bugs['${a}'] should probably be bugs['url'].`),e.bugs.url=e.bugs[a],delete e.bugs[a]);let o=e.bugs;e.bugs={},o.url&&(Up.canParse(o.url)?e.bugs.url=o.url:t?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&e1(o.email)?e.bugs.email=o.email:t?.push("bugs.email field must be a string email. Deleted."))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,t?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,t?.push("keywords should be an array of strings")):e.keywords&&(e.keywords=e.keywords.filter(function(o){return typeof o!="string"||!o?(t?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(e[n]&&!e[i]&&(e[i]=e[n],delete e[n]),e[i]&&!Array.isArray(e[i])?(t?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete e[i]):e[i]&&(e[i]=e[i].filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid bundleDependencies member: ${o}`),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,o)||(t?.push(`Non-dependency in bundleDependencies: ${o}`),e.dependencies[o]="*"),!0)})),!e.homepage&&e.repository&&e.repository.url){let o=Qv.fromUrl(e.repository.url);o&&(e.homepage=o.docs())}e.homepage&&(typeof e.homepage!="string"?(t?.push("homepage field must be a string url. Deleted."),delete e.homepage):Up.canParse(e.homepage)||(e.homepage="http://"+e.homepage)),e.readme||(t?.push("No README data"),e.readme="ERROR: No README data found!");let s=e.license||e.licence;s?typeof s!="string"||s.length<1||s.trim()===""?t?.push("license should be a valid SPDX license expression"):DW(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=t1(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(t1))});for(let o in Zv)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${Zv[o]}.`)}r1.exports={normalizeData:kW}});var s1=A(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.sync=vi.isexe=void 0;var NW=require("fs"),IW=require("fs/promises"),$W=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i1(await(0,IW.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};vi.isexe=$W;var BW=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i1((0,NW.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};vi.sync=BW;var i1=(e,t)=>e.isFile()&&MW(e,t),MW=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=e.mode,a=e.uid,u=e.gid,c=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=c|f;return!!(o&l||o&f&&s.has(u)||o&c&&a===r||o&h&&r===0)}});var a1=A(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.sync=Si.isexe=void 0;var jW=require("fs"),qW=require("fs/promises"),WW=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return o1(await(0,qW.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Si.isexe=WW;var UW=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return o1((0,jW.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Si.sync=UW;var GW=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=e.substring(e.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},o1=(e,t,r)=>e.isFile()&&GW(t,r)});var c1=A(u1=>{"use strict";Object.defineProperty(u1,"__esModule",{value:!0})});var g1=A(je=>{"use strict";var l1=je&&je.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),HW=je&&je.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),f1=je&&je.__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)&&l1(t,e,r);return HW(t,e),t},zW=je&&je.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&l1(t,e,r)};Object.defineProperty(je,"__esModule",{value:!0});je.sync=je.isexe=je.posix=je.win32=void 0;var h1=f1(s1());je.posix=h1;var p1=f1(a1());je.win32=p1;zW(c1(),je);var YW=process.env._ISEXE_TEST_PLATFORM_||process.platform,d1=YW==="win32"?p1:h1;je.isexe=d1.isexe;je.sync=d1.sync});var Gp=A((a5,S1)=>{var{isexe:VW,sync:KW}=g1(),{join:XW,delimiter:JW,sep:m1,posix:y1}=require("path"),A1=process.platform==="win32",w1=new RegExp(`[${y1.sep}${m1===y1.sep?"":m1}]`.replace(/(\\)/g,"\\$1")),QW=new RegExp(`^\\.${w1.source}`),b1=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),E1=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=JW})=>{let i=e.match(w1)?[""]:[...A1?[process.cwd()]:[],...(t||"").split(n)];if(A1){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},_1=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&QW.test(t)?t.slice(0,2):"")+XW(r,t)},v1=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=E1(e,t),s=[];for(let o of r){let a=_1(o,e);for(let u of n){let c=a+u;if(await VW(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;s.push(c)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw b1(e)},ZW=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=E1(e,t),s=[];for(let o of r){let a=_1(o,e);for(let u of n){let c=a+u;if(KW(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;s.push(c)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw b1(e)};S1.exports=v1;v1.sync=ZW});var x1=A((u5,C1)=>{"use strict";var e3=(e,t)=>{if(!e.length)return'""';let r;if(!/[ \t\n\v"]/.test(e))r=e;else{r='"';for(let n=0;n<=e.length;++n){let i=0;for(;e[n]==="\\";)++n,++i;if(n===e.length){r+="\\".repeat(i*2);break}e[n]==='"'?(r+="\\".repeat(i*2+1),r+=e[n]):(r+="\\".repeat(i),r+=e[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),t&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},t3=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";C1.exports={cmd:e3,sh:t3}});var L1=A((c5,F1)=>{"use strict";var{spawn:r3}=require("child_process"),n3=require("os"),i3=Gp(),P1=x1(),zp=(e,t,r={},n={})=>{if(r.shell)return R1(e,t,r,n);let i,s,o=new Promise((p,d)=>{i=p,s=d}),a=new Error("command failed"),u=[],c=[],f=p=>({cmd:e,args:t,...p,...o3(u,c,r),...n}),l=(p,d)=>{let g=f(d);s(Object.assign(p,g))},h=r3(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",p=>u.push(p)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",p=>c.push(p)),h.stderr.on("error",l)),h.on("close",(p,d)=>{p||d?l(a,{code:p,signal:d}):i(f({code:p,signal:d}))}),o},R1=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let c=!1,f="",l=!1;for(let p=0;p<e.length;++p){let d=e.charAt(p);if(d===" "&&!l)break;f+=d,(d==='"'||d==="'")&&(l=!l)}let h;try{h=i3.sync(f,{path:s.env&&O1(s.env,"PATH")||process.env.PATH,pathext:s.env&&O1(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}c=h.endsWith(".cmd")||h.endsWith(".bat");for(let p of t)a+=` ${P1.cmd(p,c)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let c of t)a+=` ${P1.sh(c)}`;o.push("-c",a)}return zp(i,o,s,n)},s3=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&n3.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),R1(o,i,n,r)};zp.open=s3;var Hp=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Hp(e[t],t):!1,o3=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Hp(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Hp(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},O1=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};F1.exports=zp});var k1=A((l5,T1)=>{"use strict";function D1(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function a3(e,t,r){if(!e||typeof e=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof t=="object"&&(r=t,t=void 0),t!=null&&(r.code=t);try{return D1(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),D1(new i,r)}}T1.exports=a3});var I1=A((f5,N1)=>{function $t(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}N1.exports=$t;$t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};$t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};$t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};$t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};$t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};$t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};$t.prototype.start=$t.prototype.try;$t.prototype.errors=function(){return this._errors};$t.prototype.attempts=function(){return this._attempts};$t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var $1=A(En=>{var u3=I1();En.operation=function(e){var t=En.timeouts(e);return new u3(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};En.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};En.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};En.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(u){var c=En.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),l.apply(this,arguments))}),c.attempt(function(){u.apply(e,f)})}.bind(e,o),e[s].options=t}}});var M1=A((p5,B1)=>{B1.exports=$1()});var W1=A((d5,q1)=>{"use strict";var c3=k1(),l3=M1(),f3=Object.prototype.hasOwnProperty;function j1(e){return e&&e.code==="EPROMISERETRY"&&f3.call(e,"retried")}function h3(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=l3.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw j1(a)&&(a=a.retried),c3(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){j1(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}q1.exports=h3});var Xp=A((g5,U1)=>{var Ts=class extends Error{shouldRetry(){return!1}},Yp=class extends Ts{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},Vp=class extends Ts{constructor(){super("The git reference could not be found")}},Kp=class extends Ts{constructor(){super("An unknown git error occurred")}};U1.exports={GitConnectionError:Yp,GitPathspecError:Vp,GitUnknownError:Kp}});var H1=A((m5,G1)=>{var{GitConnectionError:p3,GitPathspecError:d3,GitUnknownError:g3}=Xp(),m3=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),y3=/pathspec .* did not match any file\(s\) known to git/;function A3(e){let t=e.stderr,r;return m3.test(t)?r=new p3(t):y3.test(t)?r=new d3(t):r=new g3(t),Object.assign(r,e)}G1.exports=A3});var K1=A((y5,Jp)=>{var z1=require("node:fs"),w3=require("node:os"),b3=require("node:path"),E3=Th(),Y1=b3.join(w3.homedir(),".gitconfig"),ks=null,V1=()=>{if(ks===null)try{if(ks={},z1.existsSync(Y1)){let e=z1.readFileSync(Y1,"utf-8");ks=E3.parse(e)}}catch{ks={}}return ks},_3=()=>{let e=V1();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},v3=process.env.GIT_SSH_COMMAND!==void 0,S3=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:C3,askPassSetInConfig:x3}=_3(),P3={...S3||x3?{}:{GIT_ASKPASS:"echo"},...v3||C3?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Jp.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...P3,...process.env}});Jp.exports.loadGitConfig=V1});var J1=A((A5,X1)=>{var O3=Gp(),Qp;try{Qp=O3.sync("git")}catch{}X1.exports=(e={})=>e.git?e.git:!Qp||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Qp});var Ns=A((w5,Q1)=>{var R3=L1(),F3=W1(),{log:L3}=Sa(),D3=H1(),T3=K1();Q1.exports=(e,t={})=>{let n=J1()(t);if(n instanceof Error)return Promise.reject(n);let i=t.allowReplace||e[0]==="--no-replace-objects"?e:["--no-replace-objects",...e],s=t.retry;return s==null&&(s={retries:t.fetchRetries||2,factor:t.fetchRetryFactor||10,maxTimeout:t.fetchRetryMaxtimeout||6e4,minTimeout:t.fetchRetryMintimeout||1e3}),F3((o,a)=>(a!==1&&L3.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),R3(n,i,T3(t)).catch(u=>{let c=D3(u);if(!c.shouldRetry(a))throw c;o(c)})),s)}});var tS=A((b5,eS)=>{"use strict";var Z1=rt(),k3=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Z1(e instanceof Z1?e.version:e,r).inc(t,n,i).version}catch{return null}};eS.exports=k3});var iS=A((E5,nS)=>{"use strict";var rS=gn(),N3=(e,t)=>{let r=rS(e,null,!0),n=rS(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){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};nS.exports=N3});var oS=A((_5,sS)=>{"use strict";var I3=rt(),$3=(e,t)=>new I3(e,t).major;sS.exports=$3});var uS=A((v5,aS)=>{"use strict";var B3=rt(),M3=(e,t)=>new B3(e,t).minor;aS.exports=M3});var lS=A((S5,cS)=>{"use strict";var j3=rt(),q3=(e,t)=>new j3(e,t).patch;cS.exports=q3});var hS=A((C5,fS)=>{"use strict";var W3=gn(),U3=(e,t)=>{let r=W3(e,t);return r&&r.prerelease.length?r.prerelease:null};fS.exports=U3});var Bt=A((x5,dS)=>{"use strict";var pS=rt(),G3=(e,t,r)=>new pS(e,r).compare(new pS(t,r));dS.exports=G3});var mS=A((P5,gS)=>{"use strict";var H3=Bt(),z3=(e,t,r)=>H3(t,e,r);gS.exports=z3});var AS=A((O5,yS)=>{"use strict";var Y3=Bt(),V3=(e,t)=>Y3(e,t,!0);yS.exports=V3});var wu=A((R5,bS)=>{"use strict";var wS=rt(),K3=(e,t,r)=>{let n=new wS(e,r),i=new wS(t,r);return n.compare(i)||n.compareBuild(i)};bS.exports=K3});var _S=A((F5,ES)=>{"use strict";var X3=wu(),J3=(e,t)=>e.sort((r,n)=>X3(r,n,t));ES.exports=J3});var SS=A((L5,vS)=>{"use strict";var Q3=wu(),Z3=(e,t)=>e.sort((r,n)=>Q3(n,r,t));vS.exports=Z3});var Is=A((D5,CS)=>{"use strict";var eU=Bt(),tU=(e,t,r)=>eU(e,t,r)>0;CS.exports=tU});var bu=A((T5,xS)=>{"use strict";var rU=Bt(),nU=(e,t,r)=>rU(e,t,r)<0;xS.exports=nU});var Zp=A((k5,PS)=>{"use strict";var iU=Bt(),sU=(e,t,r)=>iU(e,t,r)===0;PS.exports=sU});var ed=A((N5,OS)=>{"use strict";var oU=Bt(),aU=(e,t,r)=>oU(e,t,r)!==0;OS.exports=aU});var Eu=A((I5,RS)=>{"use strict";var uU=Bt(),cU=(e,t,r)=>uU(e,t,r)>=0;RS.exports=cU});var _u=A(($5,FS)=>{"use strict";var lU=Bt(),fU=(e,t,r)=>lU(e,t,r)<=0;FS.exports=fU});var td=A((B5,LS)=>{"use strict";var hU=Zp(),pU=ed(),dU=Is(),gU=Eu(),mU=bu(),yU=_u(),AU=(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 hU(e,r,n);case"!=":return pU(e,r,n);case">":return dU(e,r,n);case">=":return gU(e,r,n);case"<":return mU(e,r,n);case"<=":return yU(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};LS.exports=AU});var TS=A((M5,DS)=>{"use strict";var wU=rt(),bU=gn(),{safeRe:vu,t:Su}=yi(),EU=(e,t)=>{if(e instanceof wU)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?vu[Su.COERCEFULL]:vu[Su.COERCE]);else{let u=t.includePrerelease?vu[Su.COERCERTLFULL]:vu[Su.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 bU(`${n}.${i}.${s}${o}${a}`,t)};DS.exports=EU});var NS=A((j5,kS)=>{"use strict";var rd=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}};kS.exports=rd});var Mt=A((q5,MS)=>{"use strict";var _U=/\s+/g,nd=class e{constructor(t,r){if(r=SU(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof id)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(_U," "),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=>!$S(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&&LU(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&&RU)|(this.options.loose&&FU))+":"+t,i=IS.get(n);if(i)return i;let s=this.options.loose,o=s?ft[it.HYPHENRANGELOOSE]:ft[it.HYPHENRANGE];t=t.replace(o,qU(this.options.includePrerelease)),Ee("hyphen replace",t),t=t.replace(ft[it.COMPARATORTRIM],xU),Ee("comparator trim",t),t=t.replace(ft[it.TILDETRIM],PU),Ee("tilde trim",t),t=t.replace(ft[it.CARETTRIM],OU),Ee("caret trim",t);let a=t.split(" ").map(l=>DU(l,this.options)).join(" ").split(/\s+/).map(l=>jU(l,this.options));s&&(a=a.filter(l=>(Ee("loose invalid filter",l,this.options),!!l.match(ft[it.COMPARATORLOOSE])))),Ee("range list",a);let u=new Map,c=a.map(l=>new id(l,this.options));for(let l of c){if($S(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=>BS(n,r)&&t.set.some(i=>BS(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 CU(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(WU(this.set[r],t,this.options))return!0;return!1}};MS.exports=nd;var vU=NS(),IS=new vU,SU=Ca(),id=$s(),Ee=fs(),CU=rt(),{safeRe:ft,t:it,comparatorTrimReplace:xU,tildeTrimReplace:PU,caretTrimReplace:OU}=yi(),{FLAG_INCLUDE_PRERELEASE:RU,FLAG_LOOSE:FU}=hs(),$S=e=>e.value==="<0.0.0-0",LU=e=>e.value==="",BS=(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},DU=(e,t)=>(e=e.replace(ft[it.BUILD],""),Ee("comp",e,t),e=NU(e,t),Ee("caret",e),e=TU(e,t),Ee("tildes",e),e=$U(e,t),Ee("xrange",e),e=MU(e,t),Ee("stars",e),e),ht=e=>!e||e.toLowerCase()==="x"||e==="*",TU=(e,t)=>e.trim().split(/\s+/).map(r=>kU(r,t)).join(" "),kU=(e,t)=>{let r=t.loose?ft[it.TILDELOOSE]:ft[it.TILDE];return e.replace(r,(n,i,s,o,a)=>{Ee("tilde",e,n,i,s,o,a);let u;return ht(i)?u="":ht(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:ht(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ee("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ee("tilde return",u),u})},NU=(e,t)=>e.trim().split(/\s+/).map(r=>IU(r,t)).join(" "),IU=(e,t)=>{Ee("caret",e,t);let r=t.loose?ft[it.CARETLOOSE]:ft[it.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{Ee("caret",e,i,s,o,a,u);let c;return ht(s)?c="":ht(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:ht(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Ee("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`):(Ee("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`),Ee("caret return",c),c})},$U=(e,t)=>(Ee("replaceXRanges",e,t),e.split(/\s+/).map(r=>BU(r,t)).join(" ")),BU=(e,t)=>{e=e.trim();let r=t.loose?ft[it.XRANGELOOSE]:ft[it.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{Ee("xRange",e,n,i,s,o,a,u);let c=ht(s),f=c||ht(o),l=f||ht(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`),Ee("xRange return",n),n})},MU=(e,t)=>(Ee("replaceStars",e,t),e.trim().replace(ft[it.STAR],"")),jU=(e,t)=>(Ee("replaceGTE0",e,t),e.trim().replace(ft[t.includePrerelease?it.GTE0PRE:it.GTE0],"")),qU=e=>(t,r,n,i,s,o,a,u,c,f,l,h)=>(ht(n)?r="":ht(i)?r=`>=${n}.0.0${e?"-0":""}`:ht(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,ht(c)?u="":ht(f)?u=`<${+c+1}.0.0-0`:ht(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()),WU=(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(Ee(e[n].semver),e[n].semver!==id.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 $s=A((W5,HS)=>{"use strict";var Bs=Symbol("SemVer ANY"),ad=class e{static get ANY(){return Bs}constructor(t,r){if(r=jS(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),od("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Bs?this.value="":this.value=this.operator+this.semver.version,od("comp",this)}parse(t){let r=this.options.loose?qS[WS.COMPARATORLOOSE]:qS[WS.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 US(n[2],this.options.loose):this.semver=Bs}toString(){return this.value}test(t){if(od("Comparator.test",t,this.options.loose),this.semver===Bs||t===Bs)return!0;if(typeof t=="string")try{t=new US(t,this.options)}catch{return!1}return sd(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 GS(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new GS(this.value,r).test(t.semver):(r=jS(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("=")||sd(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||sd(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};HS.exports=ad;var jS=Ca(),{safeRe:qS,t:WS}=yi(),sd=td(),od=fs(),US=rt(),GS=Mt()});var Ci=A((U5,zS)=>{"use strict";var UU=Mt(),GU=(e,t,r)=>{try{t=new UU(t,r)}catch{return!1}return t.test(e)};zS.exports=GU});var VS=A((G5,YS)=>{"use strict";var HU=Mt(),zU=(e,t)=>new HU(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));YS.exports=zU});var XS=A((H5,KS)=>{"use strict";var YU=rt(),VU=Mt(),KU=(e,t,r)=>{let n=null,i=null,s=null;try{s=new VU(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new YU(n,r))}),n};KS.exports=KU});var QS=A((z5,JS)=>{"use strict";var XU=rt(),JU=Mt(),QU=(e,t,r)=>{let n=null,i=null,s=null;try{s=new JU(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new XU(n,r))}),n};JS.exports=QU});var tC=A((Y5,eC)=>{"use strict";var ud=rt(),ZU=Mt(),ZS=Is(),eG=(e,t)=>{e=new ZU(e,t);let r=new ud("0.0.0");if(e.test(r)||(r=new ud("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 ud(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||ZS(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||ZS(r,s))&&(r=s)}return r&&e.test(r)?r:null};eC.exports=eG});var cd=A((V5,rC)=>{"use strict";var tG=Mt(),rG=(e,t)=>{try{return new tG(e,t).range||"*"}catch{return null}};rC.exports=rG});var Cu=A((K5,oC)=>{"use strict";var nG=rt(),sC=$s(),{ANY:iG}=sC,sG=Mt(),oG=Ci(),nC=Is(),iC=bu(),aG=_u(),uG=Eu(),cG=(e,t,r,n)=>{e=new nG(e,n),t=new sG(t,n);let i,s,o,a,u;switch(r){case">":i=nC,s=aG,o=iC,a=">",u=">=";break;case"<":i=iC,s=uG,o=nC,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oG(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(p=>{p.semver===iG&&(p=new sC(">=0.0.0")),l=l||p,h=h||p,i(p.semver,l.semver,n)?l=p:o(p.semver,h.semver,n)&&(h=p)}),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};oC.exports=cG});var uC=A((X5,aC)=>{"use strict";var lG=Cu(),fG=(e,t,r)=>lG(e,t,">",r);aC.exports=fG});var lC=A((J5,cC)=>{"use strict";var hG=Cu(),pG=(e,t,r)=>hG(e,t,"<",r);cC.exports=pG});var pC=A((Q5,hC)=>{"use strict";var fC=Mt(),dG=(e,t,r)=>(e=new fC(e,r),t=new fC(t,r),e.intersects(t,r));hC.exports=dG});var gC=A((Z5,dC)=>{"use strict";var gG=Ci(),mG=Bt();dC.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>mG(f,l,r));for(let f of o)gG(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 EC=A((e7,bC)=>{"use strict";var mC=Mt(),fd=$s(),{ANY:ld}=fd,Ms=Ci(),hd=Bt(),yG=(e,t,r={})=>{if(e===t)return!0;e=new mC(e,r),t=new mC(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=wG(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},AG=[new fd(">=0.0.0-0")],yC=[new fd(">=0.0.0")],wG=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ld){if(t.length===1&&t[0].semver===ld)return!0;r.includePrerelease?e=AG:e=yC}if(t.length===1&&t[0].semver===ld){if(r.includePrerelease)return!0;t=yC}let n=new Set,i,s;for(let p of e)p.operator===">"||p.operator===">="?i=AC(i,p,r):p.operator==="<"||p.operator==="<="?s=wC(s,p,r):n.add(p.semver);if(n.size>1)return null;let o;if(i&&s){if(o=hd(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!Ms(p,String(i),r)||s&&!Ms(p,String(s),r))return null;for(let d of t)if(!Ms(p,String(d),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 p of t){if(f=f||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(a=AC(i,p,r),a===p&&a!==i)return!1}else if(i.operator===">="&&!Ms(i.semver,String(p),r))return!1}if(s){if(l&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===l.major&&p.semver.minor===l.minor&&p.semver.patch===l.patch&&(l=!1),p.operator==="<"||p.operator==="<="){if(u=wC(s,p,r),u===p&&u!==s)return!1}else if(s.operator==="<="&&!Ms(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&o!==0)return!1}return!(i&&c&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},AC=(e,t,r)=>{if(!e)return t;let n=hd(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},wC=(e,t,r)=>{if(!e)return t;let n=hd(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};bC.exports=yG});var js=A((t7,SC)=>{"use strict";var pd=yi(),_C=hs(),bG=rt(),vC=Uh(),EG=gn(),_G=Fa(),vG=rp(),SG=tS(),CG=iS(),xG=oS(),PG=uS(),OG=lS(),RG=hS(),FG=Bt(),LG=mS(),DG=AS(),TG=wu(),kG=_S(),NG=SS(),IG=Is(),$G=bu(),BG=Zp(),MG=ed(),jG=Eu(),qG=_u(),WG=td(),UG=TS(),GG=$s(),HG=Mt(),zG=Ci(),YG=VS(),VG=XS(),KG=QS(),XG=tC(),JG=cd(),QG=Cu(),ZG=uC(),eH=lC(),tH=pC(),rH=gC(),nH=EC();SC.exports={parse:EG,valid:_G,clean:vG,inc:SG,diff:CG,major:xG,minor:PG,patch:OG,prerelease:RG,compare:FG,rcompare:LG,compareLoose:DG,compareBuild:TG,sort:kG,rsort:NG,gt:IG,lt:$G,eq:BG,neq:MG,gte:jG,lte:qG,cmp:WG,coerce:UG,Comparator:GG,Range:HG,satisfies:zG,toComparators:YG,maxSatisfying:VG,minSatisfying:KG,minVersion:XG,validRange:JG,outside:QG,gtr:ZG,ltr:eH,intersects:tH,simplifyRange:rH,subset:nH,SemVer:bG,re:pd.re,src:pd.src,tokens:pd.t,SEMVER_SPEC_VERSION:_C.SEMVER_SPEC_VERSION,RELEASE_TYPES:_C.RELEASE_TYPES,compareIdentifiers:vC.compareIdentifiers,rcompareIdentifiers:vC.rcompareIdentifiers}});var PC=A((r7,xC)=>{var CC=js();xC.exports=e=>iH(e.reduce(lH,{versions:{},"dist-tags":{},refs:{},shas:{}}));var iH=e=>aH(sH(oH(e))),sH=e=>(Object.keys(e.refs).forEach(t=>{let r=e.refs[t];e.shas[r.sha]?e.shas[r.sha].push(t):e.shas[r.sha]=[t]}),e),oH=e=>(Object.keys(e.refs).filter(t=>t.endsWith("^{}")).forEach(t=>{let r=e.refs[t],n=e.refs[t.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete e.refs[t])}),e),aH=e=>{let t=e.refs.HEAD||{};return Object.keys(e.versions).forEach(n=>{let i=e.versions[n];e.refs.latest&&i.sha===e.refs.latest.sha?e["dist-tags"].latest=n:i.sha===t.sha&&(e["dist-tags"].HEAD=n,e.refs.latest||(e["dist-tags"].latest=n))}),e},uH=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",cH=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=uH(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},lH=(e,t)=>{let r=cH(t);if(!r)return e;if(e.refs[r.ref]=r,e.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&CC.valid(n[1],!0)&&(e.versions[CC.clean(n[1],!0)]=r)}return e}});var dd=A((n7,RC)=>{var fH=Ns(),{LRUCache:hH}=Ia(),pH=PC(),OC=new hH({max:100,ttl:300*1e3});RC.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=OC.get(e);if(i)return i}let{stdout:r}=await fH(["ls-remote",e],t),n=pH(r.trim().split(`
62
- `));return OC.set(e,n),n}});var LC=A(FC=>{var dH=e=>(e.fakePlatform||process.platform)==="win32";FC.isWindows=dH});var TC=A((s7,DC)=>{"use strict";var{builtinModules:gH}=require("module"),mH=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),yH=["node_modules","favicon.ico"];function AH(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),qs(t,r);if(e===void 0)return r.push("name cannot be undefined"),qs(t,r);if(typeof e!="string")return r.push("name must be a string"),qs(t,r);if(e.length||r.push("name length must be greater than zero"),e.startsWith(".")&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),yH.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is not a valid package name")}),gH.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(e)!==e){var n=e.match(mH);if(n){var i=n[1],s=n[2];if(s.startsWith(".")&&r.push("name cannot start with a period"),encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return qs(t,r)}r.push("name can only contain URL-friendly characters")}return qs(t,r)}var qs=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};DC.exports=AH});var WC=A((o7,Hs)=>{"use strict";var Gs=process.platform==="win32",{URL:gd}=require("node:url"),xi=Gs?require("node:path/win32"):require("node:path"),{homedir:wH}=require("node:os"),bH=Ba(),kC=js(),BC=TC(),{log:EH}=Sa(),MC=Gs?/\\|[/]/:/[/]/,jC=/^(?:git[+])?[a-z]+:/i,_H=/^[^@]+@[^:.]+\.[^:]+:.+$/i,yd=/[.](?:tgz|tar\.gz|tar)$/i,vH=/:[0-9]+(\/|$)/i,SH=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,CH=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,NC="https://registry.npmjs.org";function Ws(e,t){let r,n;if(typeof e=="object")return e instanceof Us&&(!t||t===e.where)?e:e.name&&e.rawSpec?Ws.resolve(e.name,e.rawSpec,t||e.where):Ws(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return jC.test(e)?n=e:_H.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(MC.test(s)||yd.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):BC(e).validForOldPackages?(r=e,n="*"):n=e,qC(r,n,t,e)}function xH(e){return e?e.toLowerCase().startsWith("file:")?!0:Gs?SH.test(e):CH.test(e):!1}function PH(e){return e?e.toLowerCase().startsWith("npm:"):!1}function qC(e,t,r,n){let i=new Us({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),xH(t))return $C(i,r);if(PH(t))return IH(i,r);let s=bH.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?TH(i,s):t&&jC.test(t)?NH(i):t&&(MC.test(t)||yd.test(t))?$C(i,r):$H(i)}function OH(e,t=NC){let r=Ws(e);if(r.type!=="version")throw LH(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==NC&&(n+="?repository_url="+t),n}function RH(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function FH(e,t){let r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function LH(e,t){let r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var Us=class{constructor(t){this.type=t.type,this.registry=t.registry,this.where=t.where,t.raw==null?this.raw=t.name?`${t.name}@${t.rawSpec}`:t.rawSpec:this.raw=t.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=t.rawSpec||"",this.saveSpec=t.saveSpec,this.fetchSpec=t.fetchSpec,t.name&&this.setName(t.name),this.gitRange=t.gitRange,this.gitCommittish=t.gitCommittish,this.gitSubdir=t.gitSubdir,this.hosted=t.hosted}setName(t){let r=BC(t);if(!r.validForOldPackages)throw RH(t,r,this.raw);return this.name=t,this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):void 0,this.escapedName=t.replace("/","%2f"),this}toString(){let t=[];this.name!=null&&this.name!==""&&t.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&t.push(r),t.length?t.join("@"):this.raw}toJSON(){let t=Object.assign({},this);return delete t.hosted,t}};function md(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${i}`;continue}EH.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var DH=new Map([["\0","%00"],[" ","%09"],[`
63
- `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",Gs?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function IC(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${DH.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function $C(e,t){e.type=yd.test(e.rawSpec)?"file":"directory",e.where=t;let r=IC(e.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new gd(r,`${IC(xi.resolve(t))}/`),i=new gd(r)}catch(a){let u=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(u,{raw:e.rawSpec,spec:e,where:t,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return Gs&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=xi.resolve(wH(),s.substr(3))):xi.isAbsolute(r.slice(5))?e.saveSpec=`file:${xi.resolve(o)}`:e.saveSpec=`file:${xi.relative(t,o)}`,e.fetchSpec=xi.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function TH(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),md(e,t.committish),e}function kH(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function NH(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(vH))return e.type="git",md(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new gd(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",md(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",e.fetchSpec=r.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw kH(r.protocol,t)}return e}function IH(e,t){let r=Ws(e.rawSpec.substr(4),t);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function $H(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=kC.valid(t,!0),n=kC.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw FH(t,e.raw);e.type="tag"}return e}Hs.exports=Ws;Hs.exports.resolve=qC;Hs.exports.toPurl=OH;Hs.exports.Result=Us});var YC=A((a7,zC)=>{var _n=require("node:process"),BH=require("node:os"),MH=require("node:fs");function jH(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function UC(){return _n.platform}function GC(){return _n.arch}var qH="/usr/bin/ldd";function WH(){try{let e=MH.readFileSync(qH,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function UH(){let e=_n.report.excludeNetwork;_n.report.excludeNetwork=!0;let t=_n.report.getReport();return _n.report.excludeNetwork=e,t.header?.glibcVersionRuntime?vr="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(jH)?vr="musl":vr=null,vr}var vr;function HC(e){if(e==="linux")return vr===void 0&&(vr=WH(),vr===void 0&&(vr=UH())),vr}function GH(e={}){let t=e.os||UC();return{cpu:{name:e.cpu||GC()},libc:{name:e.libc||HC(t)},os:{name:t,version:e.osVersion||BH.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||_n.version}}}zC.exports={cpu:GC,libc:HC,os:UC,devEngines:GH}});var KC=A((u7,VC)=>{var HH=Ci(),zH=cd(),YH=["ignore","warn","error","download"],VH=["name","version","onFail"],KH=["packageManager","runtime","cpu","libc","os"];function XH(e,t,r){let{engine:n}=r;if(typeof e!="object"||e===null||Array.isArray(e))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(e);for(let s of i)if(!VH.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof e.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof t.name!="string"||t.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof e.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!YH.includes(e.onFail))throw new Error(`Invalid onFail value "${e.onFail}" for "${n}"`)}if(e.name!==t.name)return new Error(`Invalid name "${e.name}" does not match "${t.name}" for "${n}"`);if(i.includes("version")){if(typeof e.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof t.version!="string"||t.version==="")throw new Error(`Unable to determine "version" for "${n}" "${e.name}"`);if(zH(e.version)){if(!HH(t.version,e.version,r.semver))return new Error(`Invalid semver version "${e.version}" does not match "${t.version}" for "${n}"`)}else if(e.version!==t.version)return new Error(`Invalid version "${e.version}" does not match "${t.version}" for "${n}"`)}}function JH(e,t={},r={}){if(typeof e!="object"||e===null||Array.isArray(e))throw new Error('Invalid non-object value for "devEngines"');let n=[];for(let i of Object.keys(e)){if(!KH.includes(i))throw new Error(`Invalid property "devEngines.${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let u=[];for(let f of o){let l=XH(f,a,{...r,engine:i});l&&u.push(l)}if(u.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid devEngines.${i}`),{errors:u,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}VC.exports={checkDevEngines:JH}});var QC=A((c7,JC)=>{var XC=js(),xu=YC(),{checkDevEngines:QH}=KC(),ZH=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!XC.satisfies(i,s.node,o),u=t&&s.npm&&!XC.satisfies(t,s.npm,o);if(a||u)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},e9=(e,t=!1,r={})=>{if(t)return;let n=r.os||xu.os(),i=r.cpu||xu.cpu(),s=r.libc||xu.libc(n),o=e.os?Ad(n,e.os):!0,a=e.cpu?Ad(i,e.cpu):!0,u=e.libc?Ad(s,e.libc):!0;if(e.libc&&!s&&(u=!1),!o||!a||!u)throw Object.assign(new Error("Unsupported platform"),{pkgid:e._id,current:{os:n,cpu:i,libc:s},required:{os:e.os,cpu:e.cpu,libc:e.libc},code:"EBADPLATFORM"})},Ad=(e,t)=>{if(typeof t=="string"&&(t=[t]),t.length===1&&t[0]==="any")return!0;let r=0,n=!1;for(let i of t){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,e===o)return!1}else n=n||e===o}return n||r===t.length};JC.exports={checkEngine:ZH,checkPlatform:e9,checkDevEngines:QH,currentEnv:xu}});var rx=A((l7,tx)=>{var{join:ZC,basename:ex}=require("path"),t9=e=>e.bin?typeof e.bin=="string"?r9(e):Array.isArray(e.bin)?n9(e):typeof e.bin=="object"?bd(e):wd(e):wd(e),r9=e=>e.name?(e.bin={[e.name]:e.bin},bd(e)):wd(e),n9=e=>(e.bin=e.bin.reduce((t,r)=>(t[ex(r)]=r,t),{}),bd(e)),wd=e=>(delete e.bin,e),bd=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=ZC("/",ex(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=ZC("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};tx.exports=t9});var sx=A((f7,ix)=>{"use strict";var nx=WC(),zs=js(),{checkEngine:i9}=QC(),s9=rx(),Ed=(e,t,r)=>{try{return i9(e,t,r),!0}catch{return!1}},Pu=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,o9={includePrerelease:!0,loose:!0},Ou=(e,t)=>t&&zs.satisfies(e,t,o9),_d=(e,t)=>e&&Ou(e.version,t)?{...e,_shouldAvoid:!0}:e,Ys=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:u=null,avoidStrict:c=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(c){let $={...r,avoidStrict:!1},j=Ys(e,t,$);if(!j||!j._shouldAvoid)return j;let x=Ys(e,`^${j.version}`,$);if(!x||!x._shouldAvoid)return{...x,_outsideDependencyRange:!0,_isSemVerMajor:!1};let w=Ys(e,"*",$);if(!w||!w._shouldAvoid)return{...w,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:u,before:i,versions:Object.keys(h)})}let p=a&&e.stagedVersions&&e.stagedVersions.versions||{},d=e.policyRestrictions&&e.policyRestrictions.versions||{},g=i&&l?+new Date(i):1/0,b=nx.resolve(f,t||n).type,_=e["dist-tags"]||{};if(b!=="tag"&&b!=="version"&&b!=="range")throw new Error("Only tag, version, and range are supported");if(t&&b==="tag"){let $=_[t];return Pu(l,$,g)?_d(h[$]||p[$]||d[$],u):Ys(e,`<=${$}`,r)}if(t&&b==="version"){let $=zs.clean(t,{loose:!0}),j=h[$]||p[$]||d[$];return Pu(l,$,g)?_d(j,u):null}let P=b==="range"?t:"*",F=_[n];if(F&&(P==="*"||zs.satisfies(F,P,{loose:!0}))&&!d[F]&&!Ou(F,u)){let $=h[F];if($&&Pu(l,F,g)&&Ed($,o,s)&&!$.deprecated&&!p[F])return $}let k=Object.entries(h).concat(Object.entries(p)).concat(Object.entries(d)).filter(([$])=>Pu(l,$,g));if(!k.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:b,wanted:t,before:i,versions:Object.keys(h)});let q={loose:!0},M=k.filter(([$])=>zs.satisfies($,P,{loose:!0})).sort(($,j)=>{let[x,w]=$,[R,L]=j,W=!Ou(x,u),v=!Ou(R,u),O=!d[x],re=!d[R],V=!p[x],Ae=!p[R],le=!w.deprecated,ge=!L.deprecated,Te=Ed(w,o,s),st=Ed(L,o,s);return v-W||re-O||Ae-V||(ge&&st)-(le&&Te)||st-Te||ge-le||zs.rcompare(x,R,q)});return _d(M[0]&&M[0][1],u)};ix.exports=(e,t,r={})=>{let n=Ys(e,t,r),i=n&&s9(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:u="latest"}=r,c=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${c}`:""),h=i&&!!o[i.version],p=h?s.message:"",d=h?`Could not download ${l} due to policy violations:
64
- ${p}`:`No matching version found for ${l}.`,g=h?"E403":"ETARGET";throw Object.assign(new Error(d),{code:g,type:nx.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:u})}});var cx=A((h7,ux)=>{var a9=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:u9}=require("url"),ox=require("path"),c9=dd(),Vs=Ns(),{isWindows:Ru}=LC(),l9=sx(),vd=require("fs/promises");ux.exports=(e,t="HEAD",r=null,n={})=>c9(e,n).then(i=>h9(e,i,t,p9(i,t,n),r||f9(e,n.cwd),n));var Sd=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:a9.has(u9(e).host),f9=(e,t=process.cwd())=>ox.resolve(t,ox.basename(e.replace(/[/\\]?\.git$/,""))),h9=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?m9(e,n,i,s):n.type==="tag"||n.type==="branch"?g9(e,n,i,s):d9(e,n,i,s):y9(e,r,i,s),p9=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?l9(e,n.gitRange,r):t?e.refs[t]?e.refs[t]:e.shas[t]?e.refs[e.shas[t][0]]:null:e.refs.HEAD:null},d9=(e,t,r,n)=>{let i=Sd(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>Vs(a,{...n,cwd:r});return vd.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>Ru(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>ax(r,n)).then(()=>t.sha)},g9=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return Sd(e,n)&&i.push("--depth=1"),Ru(n)&&i.push("--config","core.longpaths=true"),Vs(i,n).then(()=>t.sha)},m9=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return Sd(e,n)&&i.push("--depth=1"),Ru(n)&&i.push("--config","core.longpaths=true"),Vs(i,n).then(()=>t.sha)},ax=async(e,t)=>await vd.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?Vs(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,y9=(e,t,r,n)=>{let i=Ru(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>Vs(a,{...n,cwd:r});return vd.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>ax(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var Cd=A((p7,lx)=>{var{stat:A9}=require("fs/promises");lx.exports=({cwd:e=process.cwd()}={})=>A9(e+"/.git").then(()=>!0,()=>!1)});var hx=A((d7,fx)=>{var w9=Cd(),{dirname:b9}=require("path");fx.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await w9({cwd:e}))return e;let r=b9(e);if(e===t||e===r)return null;e=r}}});var dx=A((g7,px)=>{var E9=Ns();px.exports=(e={})=>E9(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var mx=A((m7,gx)=>{gx.exports={clone:cx(),revs:dd(),spawn:Ns(),is:Cd(),find:hx(),isClean:dx(),errors:Xp()}});var _x=A((y7,Ex)=>{var _9=Fa(),v9=rp(),Xr=require("node:fs/promises"),xe=require("node:path"),{log:wx}=S_(),S9=require("node:module"),xd;function yx(){return xd||(xd=Ba()),xd}var Pd;function Fu(){return Pd||(Pd=Bp().glob),Pd}function C9(e,t){if(e.bin&&(typeof e.bin=="string"&&e.name?(t?.push('"bin" was converted to an object'),e.bin={[e.name]:e.bin}):Array.isArray(e.bin)&&(t?.push('"bin" was converted to an object'),e.bin=e.bin.reduce((r,n)=>(r[xe.basename(n)]=n,r),{})),typeof e.bin=="object")){for(let r in e.bin){if(typeof e.bin[r]!="string"){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let n=xe.basename(Pi(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=Pi(e.bin[r]);if(!i){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete e.bin[r],t?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==e.bin[r]&&t?.push(`"bin[${n}]" script name ${i} was invalid and removed`),e.bin[n]=i}return Object.keys(e.bin).length===0&&(t?.push('empty "bin" was removed'),delete e.bin),e}delete e.bin}function x9(e,t){if(e.man){let r=[];for(let n of Array.isArray(e.man)?e.man:[e.man])typeof n!="string"?t?.push(`removed invalid "man [${n}]"`):r.push(Pi(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function P9(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function O9(e){if(e.charAt(0)!=="@")return!1;let t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Ax(e){return e.replace(/\\|:/g,"/")}function Pi(e){let t=Ax(xe.join(".",xe.join("/",Ax(e))));return t.startsWith("./")?"":t}function bx(e,{strict:t,steps:r,changes:n,allowLegacyCase:i}){let s=e.content,o=`${s.name??""}@${s.version??""}`;if(r.includes("fixName")||r.includes("fixNameField")||r.includes("normalizeData"))if(!s.name&&!t)n?.push('Missing "name" field was set to an empty string'),s.name="";else{if(typeof s.name!="string")throw new Error("name field must be a string.");if(!t){let a=s.name.trim();s.name!==a&&(n?.push('Whitespace was trimmed from "name"'),s.name=a)}if(s.name.startsWith(".")||!(O9(s.name)||P9(s.name))||t&&!i&&s.name!==s.name.toLowerCase()||s.name.toLowerCase()==="node_modules"||s.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(s.name))}if(r.includes("fixName")&&S9.builtinModules.includes(s.name)&&wx.warn("package-json",o,`Package name "${s.name}" conflicts with a Node.js built-in module name`),r.includes("fixVersionField")||r.includes("normalizeData")){let a=!t;if(!s.version)s.version="";else{if(!_9(s.version,a))throw new Error(`Invalid version: "${s.version}"`);let u=v9(s.version,a);u!==s.version&&(n?.push(`"version" was cleaned and set to "${u}"`),s.version=u)}}if(r.includes("_attributes"))for(let a in s)a.startsWith("_")&&(n?.push(`"${a}" was removed`),delete e.content[a]);if(r.includes("_id")&&s.name&&s.version&&(n?.push(`"_id" was set to ${o}`),s._id=o),r.includes("bundledDependencies")&&(s.bundleDependencies===void 0&&s.bundledDependencies!==void 0&&(s.bundleDependencies=s.bundledDependencies,n?.push('Deleted incorrect "bundledDependencies"')),delete s.bundledDependencies),r.includes("bundleDependencies")){let a=s.bundleDependencies;a===!1&&!r.includes("bundleDependenciesDeleteFalse")?(n?.push('"bundleDependencies" was changed from "false" to "[]"'),s.bundleDependencies=[]):a===!0?(n?.push('"bundleDependencies" was auto-populated from "dependencies"'),s.bundleDependencies=Object.keys(s.dependencies||{})):a&&typeof a=="object"?Array.isArray(a)||(n?.push('"bundleDependencies" was changed from an object to an array'),s.bundleDependencies=Object.keys(a)):"bundleDependencies"in s&&(n?.push('"bundleDependencies" was removed'),delete s.bundleDependencies)}if(r.includes("optionalDedupe")&&s.dependencies&&s.optionalDependencies&&typeof s.optionalDependencies=="object"){for(let a in s.optionalDependencies)n?.push(`optionalDependencies."${a}" was removed`),delete s.dependencies[a];Object.keys(s.dependencies).length||(n?.push('Empty "optionalDependencies" was removed'),delete s.dependencies)}if((r.includes("scripts")||r.includes("scriptpath"))&&s.scripts!==void 0){let a=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof s.scripts=="object")for(let u in s.scripts)typeof s.scripts[u]!="string"?(delete s.scripts[u],n?.push(`Invalid scripts."${u}" was removed`)):r.includes("scriptpath")&&a.test(s.scripts[u])&&(s.scripts[u]=s.scripts[u].replace(a,""),n?.push(`scripts entry "${u}" was fixed to remove node_modules/.bin reference`));else n?.push('Removed invalid "scripts"'),delete s.scripts}if(r.includes("funding")&&s.funding&&typeof s.funding=="string"&&(s.funding={url:s.funding},n?.push('"funding" was changed to an object with a url attribute')),(r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(s.repositories&&(n?.push(`"repository" was set to the first entry in "repositories" (${s.repository})`),s.repository=s.repositories[0]),s.repository&&(typeof s.repository=="string"&&(n?.push('"repository" was changed from a string to an object'),s.repository={type:"git",url:s.repository}),s.repository.url))){let a=yx().fromUrl(s.repository.url),u;a&&(a.getDefaultRepresentation()==="shortcut"?u=a.https():u=a.toString(),u!==s.repository.url&&(n?.push(`"repository.url" was normalized to "${u}"`),s.repository.url=u))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let a of["dependencies","devDependencies","optionalDependencies"])if(s[a]){let u=!0;if(typeof s[a]=="string"&&(n?.push(`"${a}" was converted from a string into an object`),s[a]=s[a].trim().split(/[\n\r\s\t ,]+/),u=!1),Array.isArray(s[a])){u&&n?.push(`"${a}" was converted from an array into an object`);let c={};for(let f of s[a])if(typeof f=="string"){let l=f.trim().split(/(:?[@\s><=])/),h=l.shift(),p=l.join("").replace(/^@/,"").trim();c[h]=p}s[a]=c}}for(let a of["dependencies","devDependencies"])if(a in s)if(!s[a]||typeof s[a]!="object")n?.push(`Removed invalid "${a}"`),delete s[a];else for(let u in s[a]){typeof s[a][u]!="string"&&(n?.push(`Removed invalid "${a}.${u}"`),delete s[a][u]);let f=yx().fromUrl(s[a][u])?.toString();f&&f!==s[a][u]&&(n?.push(`Normalized git reference to "${a}.${u}"`),s[a][u]=f.toString())}}if(r.includes("normalizeData")){let{normalizeData:a}=n1();a(s,n)}}async function R9(e,{steps:t,root:r,changes:n}){let i=e.content,s=i.scripts||{},o=`${i.name??""}@${i.version??""}`;if(t.includes("gypfile")&&!s.install&&!s.preinstall&&i.gypfile!==!1&&(await Fu()("*.gyp",{cwd:e.path})).length&&(s.install="node-gyp rebuild",i.scripts=s,i.gypfile=!0,n?.push('"scripts.install" was set to "node-gyp rebuild"'),n?.push('"gypfile" was set to "true"')),t.includes("serverjs")&&!s.start)try{await Xr.access(xe.join(e.path,"server.js")),s.start="node server.js",i.scripts=s,n?.push('"scripts.start" was set to "node server.js"')}catch{}if(t.includes("authors")&&!i.contributors)try{let u=(await Xr.readFile(xe.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(c=>c.replace(/^\s*#.*$/,"").trim()).filter(c=>c);i.contributors=u,n?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(t.includes("readme")&&!i.readme){let a=/\.m?a?r?k?d?o?w?n?$/i,u=await Fu()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),c;for(let f of u)if(!f.endsWith(xe.sep)){if(f.match(a)){c=f;break}f.endsWith("README")&&(c=f)}if(c){let f=await Xr.readFile(xe.join(e.path,c),"utf8");i.readme=f,i.readmeFilename=c,n?.push(`"readme" was set to the contents of ${c}`),n?.push(`"readmeFilename" was set to ${c}`)}i.readme||(i.readme="ERROR: No README data found!")}if(t.includes("mans")){if(i.directories?.man&&!i.man){let a=Pi(i.directories.man),u=xe.resolve(e.path,a),c=await Fu()("**/*.[0-9]",{cwd:u});i.man=c.map(f=>xe.relative(e.path,xe.join(u,f)).split(xe.sep).join("/"))}x9(i,n)}if(t.includes("binDir")&&i.directories?.bin&&!i.bin){let a=Pi(i.directories.bin),u=await Fu()("**",{cwd:xe.resolve(e.path,a)});i.bin=u.reduce((c,f)=>{if(f&&!f.startsWith(".")){let l=xe.basename(f);c[l]=`${a}/${Pi(f)}`}return c},{})}else(t.includes("bin")||t.includes("binDir")||t.includes("binRefs"))&&C9(i,n);if(t.includes("gitHead")&&!i.gitHead){let u=await mx().find({cwd:e.path,root:r}),c;if(u)try{c=await Xr.readFile(xe.resolve(u,".git/HEAD"),"utf8")}catch{}let f;if(c)if(c.startsWith("ref: ")){let l=c.replace(/^ref: /,"").trim(),h=xe.resolve(u,".git",l);try{f=await Xr.readFile(h,"utf8"),f=f.replace(/^ref: /,"").trim()}catch{}if(!f){let p=xe.resolve(u,".git/packed-refs");try{let d=await Xr.readFile(p,"utf8");if(d){d=d.split(`
65
- `);for(let g=0;g<d.length;g++){let m=d[g].match(/^([0-9a-f]{40}) (.+)$/);if(m&&m[2].trim()===l){f=m[1];break}}}}catch{}}}else f=c.trim();f&&(i.gitHead=f)}if(t.includes("fillTypes")){let a=i.main||"index.js";if(typeof a!="string")throw new TypeError('The "main" attribute must be of type string.');let c=`./${xe.join(xe.dirname(a),xe.basename(a,xe.extname(a)))}.d.ts`;if(!("types"in i||"typings"in i))try{await Xr.access(xe.join(e.path,c)),i.types=c.split(xe.sep).join("/")}catch{}}if(t.includes("binRefs")&&i.bin instanceof Object)for(let a in i.bin)try{await Xr.access(xe.resolve(e.path,i.bin[a]))}catch{wx.warn("package-json",o,`No bin file found at ${i.bin[a]}`)}}async function F9(e,t){if(!e.content)throw new Error("Can not normalize without content");await R9(e,t),bx(e,t)}function L9(e,t){bx(e,t)}Ex.exports={normalize:F9,syncNormalize:L9}});var xx=A((A7,Cx)=>{var{readFile:D9}=require("fs/promises"),T9=ep();async function vx(e){try{return await D9(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function Sx(e){try{return T9(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function k9(e){let t=await vx(e);return Sx(t)}Cx.exports={read:vx,parse:Sx,readPackage:k9}});var Ox=A((w7,Px)=>{function N9(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:u,funding:c,license:f,author:l,maintainers:h,contributors:p,type:d,imports:g,exports:m,main:b,browser:_,types:P,bin:F,man:k,directories:q,files:M,workspaces:$,scripts:j,config:x,dependencies:w,devDependencies:R,peerDependencies:L,peerDependenciesMeta:W,optionalDependencies:v,bundledDependencies:O,bundleDependencies:re,engines:V,os:Ae,cpu:le,publishConfig:ge,devEngines:Te,licenses:st,overrides:Q,...dt}=e;return{...typeof t<"u"?{name:t}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof u<"u"?{repository:u}:{},...typeof c<"u"?{funding:c}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof h<"u"?{maintainers:h}:{},...typeof p<"u"?{contributors:p}:{},...typeof d<"u"?{type:d}:{},...typeof g<"u"?{imports:g}:{},...typeof m<"u"?{exports:m}:{},...typeof b<"u"?{main:b}:{},...typeof _<"u"?{browser:_}:{},...typeof P<"u"?{types:P}:{},...typeof F<"u"?{bin:F}:{},...typeof k<"u"?{man:k}:{},...typeof q<"u"?{directories:q}:{},...typeof M<"u"?{files:M}:{},...typeof $<"u"?{workspaces:$}:{},...typeof j<"u"?{scripts:j}:{},...typeof x<"u"?{config:x}:{},...typeof w<"u"?{dependencies:w}:{},...typeof R<"u"?{devDependencies:R}:{},...typeof L<"u"?{peerDependencies:L}:{},...typeof W<"u"?{peerDependenciesMeta:W}:{},...typeof v<"u"?{optionalDependencies:v}:{},...typeof O<"u"?{bundledDependencies:O}:{},...typeof re<"u"?{bundleDependencies:re}:{},...typeof V<"u"?{engines:V}:{},...typeof Ae<"u"?{os:Ae}:{},...typeof le<"u"?{cpu:le}:{},...typeof ge<"u"?{publishConfig:ge}:{},...typeof Te<"u"?{devEngines:Te}:{},...typeof st<"u"?{licenses:st}:{},...typeof Q<"u"?{overrides:Q}:{},...dt}}Px.exports={packageSort:N9}});var Fd=A((b7,Lx)=>{var{readFile:I9,writeFile:$9}=require("node:fs/promises"),{resolve:Rx}=require("node:path"),B9=ep(),Fx=y_(),M9=w_(),j9=E_(),{normalize:Od,syncNormalize:q9}=_x(),{read:W9,parse:U9}=xx(),{packageSort:G9}=Ox(),H9=new Set([Fx,M9,j9]),z9=new Set([...Fx.knownKeys,"scripts","workspaces"]),Rd=class e{static fixSteps=Object.freeze(["binRefs","bundleDependencies","fixName","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin","binDir"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(t,r={}){let n=new e;return await n.create(t),r.data?n.update(r.data):n}static async load(t,r={}){let n=new e;if(!r.create)return n.load(t);try{return await n.load(t)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(t)}}static async fix(t,r){let n=new e;return await n.load(t,!0),n.fix(r)}static async prepare(t,r){let n=new e;return await n.load(t,!0),n.prepare(r)}static async normalize(t,r){let n=new e;return await n.load(t),n.normalize(r)}#e;#r;#t="";#n=!0;async load(t,r){this.#e=t;let n;try{this.#t=await W9(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=Rx(this.path,"index.js"),s;try{s=await I9(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#n=!1,this}return this.fromJSON(this.#t)}fromJSON(t){return this.#r=U9(t),this}fromContent(t){if(!t||typeof t!="object")throw new Error("Content data must be an object");return this.#r=t,this.#n=!1,this}fromComment(t){if(t=t.split(/^\/\*\*package(?:\s|$)/m),t.length<2)throw new Error("File has no package in comments");if(t=t[1],t=t.split(/\*\*\/$/m),t.length<2)throw new Error("File has no package in comments");return t=t[0],t=t.replace(/^\s*\*/mg,""),this.#r=B9(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return Rx(this.path,"package.json")}create(t){return this.#e=t,this.#r={},this}update(t){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of H9)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))z9.has(r)||(this.content[r]=n);return this}async save({sort:t}={}){if(!this.#n)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
66
- `:n,a=t?G9(i):i,u=`${JSON.stringify(a,null,s)}
67
- `.replace(/\n/g,o);if(u.trim()!==this.#t.trim()){let c=await $9(this.filename,u);return this.#t=u,c}}syncNormalize(t={}){return t.steps=this.constructor.normalizeSteps.filter(r=>r!=="_attributes"),q9(this,t),this}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await Od(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await Od(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await Od(this,t),this}};Lx.exports=Rd});var kx=A((E7,Tx)=>{var{basename:Dx,dirname:Y9}=require("path"),V9=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;Tx.exports=e=>e?V9(Dx(Y9(e)),Dx(e)):!1});var jx=A((_7,Mx)=>{var Nx=require("path"),K9=kx(),{minimatch:Ks}=br(),X9=Fd(),{glob:J9}=Bp();function Q9(e){let t=[],r=[];for(let n of e){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];Ks(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of Ks.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function Ix(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw Lu({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return Q9(t)}function $x(e,t){return e.name||K9(t)}function Z9(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function Lu({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function e8(e){return new Map(Array.from(e,t=>t.reverse()))}async function Bx(e={}){if(!e||!e.pkg)throw Lu({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=Ix(t),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**",...n]}),a=await J9(r.map(f=>Z9(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let u=[];for(let f of r)u.push(...a.filter(l=>Ks(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of u){let l;try{l=await X9.normalize(Nx.join(e.cwd,f))}catch(d){if(d.code==="ENOENT"||d.code==="ENOTDIR")continue;throw d}let h=$x(l.content,l.path),p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(l.path)}let c=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?t8(c,f,l):i.set(f,l.values().next().value);if(c.length>1)throw Lu({Type:Error,message:c.join(`
68
- `),code:"EDUPLICATEWORKSPACE"});return i}function t8(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}Bx.virtual=function(e={}){if(!e||!e.lockfile)throw Lu({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});e.cwd||(e.cwd=process.cwd());let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=Ix(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let u of Ks.match(o,a))o.splice(o.indexOf(u),1);for(let a of i)for(let u of Ks.match(o,a)){let c=Nx.join(e.cwd,u),f=$x(t[u],c);n.set(c,f)}return e8(n)};Mx.exports=Bx});var Hx=A((v7,Gx)=>{var{walkUp:r8}=pE(),qx=Th(),Sr=Mh(),{log:Ct,time:n8}=Sa(),{resolve:Qs,dirname:Du,join:Ld}=require("node:path"),{homedir:i8}=require("node:os"),{readFile:s8,writeFile:o8,chmod:a8,unlink:u8,stat:Wx,mkdir:c8}=require("node:fs/promises"),l8=["npm-version","global-prefix","local-prefix"],Dd=(...e)=>Wx(Qs(...e)).then(t=>t.isFile()).catch(()=>!1),f8=(...e)=>Wx(Qs(...e)).then(t=>t.isDirectory()).catch(()=>!1),Tu=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Oi=La(),vn=JE(),h8=Kh(),p8=t_(),d8=s_(),Ux=new Set(["global","user","project"]),Xs=new Set(["default","builtin",...Ux,"env","cli"]),Td=class{#e=!1;#r;#t=null;static get typeDefs(){return Oi}constructor({definitions:t,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:u=process.platform,execPath:c=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=t;let h={},p={};this.deprecated={};for(let[m,b]of Object.entries(t))p[m]=b.default,h[m]=b.type,b.deprecated&&(this.deprecated[m]=b.deprecated.trim().replace(/\n +/,`
69
- `));this.#r=n,this.types=h,this.shorthands=r,this.defaults=p,this.npmPath=s,this.npmBin=Ld(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=c,this.platform=u,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let d=[...Xs];this.data=new Map;let g=null;for(let m of d)this.data.set(m,g=new kd(g));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:m}of this.data.values())this.list.unshift(m);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#n("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(Tu(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#n(t,r)}#n(t,r=null){if(r!==null&&!Xs.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||Tu(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Xs.has(n))throw new Error("invalid config location param: "+n);this.#p(t);let{data:i,raw:s}=this.data.get(n);i[t]=r,["global","user","project"].includes(n)&&(s[t]=r),this.data.get(n)[Ri]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=n8.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#r(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,t(),this.#t}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Xs.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[t],["global","user","project"].includes(r)&&delete i[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let t={...this.defaults,prefix:this.globalPrefix};try{t["npm-version"]=require(Ld(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>Qs(this.#n("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||i8()}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=Du(this.execPath):(this.globalPrefix=Du(Du(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=Ld(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.#h(t,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&Ct.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);Sr.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli"),Sr.unknownHandler=this.unknownHandler,Sr.abbrevHandler=this.abbrevHandler;let t=Sr(this.types,this.shorthands,this.argv);Sr.invalidHandler=null,Sr.unknownHandler=null,this.parsedArgv=t.argv,delete t.argv,this.#h(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[Ri]=!0,Sr.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),Sr.clean(r.data,this.types,Oi),Sr.invalidHandler=null,r[Ri]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=vn(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=a_();throw new i(n)}return r}}repair(t){if(!t)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;t=r.problems}finally{t||(t=[])}for(let r of t)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(t){let[r,...n]=[...Xs],i=this.data.get(r).data;return Tu(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!Tu(o,t)})}invalidHandler(t,r,n,i,s){let o=l_();Ct.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[Ri]=!1,Array.isArray(n)&&(n.includes(Oi.url.type)?n=Oi.url.type:n.includes(Oi.path.type)&&(n=Oi.path.type));let a=o(n),u=a.filter(l=>l!==void 0&&l!==Array),c="Must be"+this.#o(u,a),f=u.length===1?u[0]:[...new Set(u.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");Ct.warn("invalid config",c,f)}abbrevHandler(t,r){Ct.warn(`Expanding --${t} to --${r}. This will stop working in the next major version of npm.`)}unknownHandler(t,r){r&&Ct.warn(`"${r}" is being parsed as a normal command line argument.`)}#o(t,r){let n;return t.length===1&&r.includes(Array)?n=" one or more":t.length>1&&r.includes(Array)?n=" one or more of:":t.length>1?n=" one of:":n="",n}#h(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"&&Ct.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let u=h8(o,this.env),c=this.parseField(a,u);if(r!=="default"&&(this.#p(u),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} cannot be provided when using --${f}`)}(r!=="default"||o==="npm-version")&&this.checkUnknown(r,o),s.data[u]=c}}}checkUnknown(t,r){if(!this.definitions[r]){if(l8.includes(r))return;if(!r.includes(":")){Ct.warn(`Unknown ${t} config "${t==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&Ct.warn(`Unknown ${t} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#p(t){this.deprecated[t]&&Ct.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return p8(t,r,this,n)}async#u(t,r){Ct.silly("config",`load:file:${t}`),await s8(t,"utf8").then(n=>{let i=qx.parse(n);return r==="project"&&i.prefix&&Ct.error("config",`prefix cannot be changed from project config: ${t}.`),this.#h(i,r,t)},n=>this.#h(null,r,t,n))}loadBuiltinConfig(){return this.#u(Qs(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await Dd(this.localPrefix,"package.json")),this.#n("global")===!0||this.#n("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=Qs(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#u(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.#n("prefix","cli");if(t){this.localPrefix=t;return}let r=this.#n("workspaces","cli"),n=this.#n("global")||this.#n("location")==="global";for(let i of r8(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await Dd(i,"package.json");if(!this.localPrefix&&(s||await f8(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=Fd(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let c=await jx()({cwd:i,pkg:a});for(let f of c.values())if(f===this.localPrefix){await Dd(this.localPrefix,".npmrc")&&Ct.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,Ct.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#u(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#u(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!Ux.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[Js]=null,t==="user"){let o=vn(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=qx.stringify(r.raw).trim()+`
70
- `;if(!n.trim()){await u8(r.source).catch(()=>{});return}let i=Du(r.source);await c8(i,{recursive:!0}),await o8(r.source,n,"utf8");let s=t==="user"?384:438;await a8(r.source,s)}clearCredentialsByURI(t,r="user"){let n=vn(t);if(vn(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(t,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=vn(t);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let u=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,u,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=vn(t),n=vn(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let u=this.get(`${r}:_authToken`);if(u)return i.token=u,i;let c=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(c&&f){i.username=c,i.password=Buffer.from(f,"base64").toString("utf8");let h=`${i.username}:${i.password}`;return i.auth=Buffer.from(h,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let p=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=p.shift(),i.password=p.join(":"),i.auth=l,i}return i}setEnvs(){d8(this)}},Js=Symbol("loadError"),Ri=Symbol("valid"),kd=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[Ri]=!0}get data(){return this.#e}get valid(){return this[Ri]}set source(t){if(this.#r)throw new Error("cannot set ConfigData source more than once");this.#r=t}get source(){return this.#r}set loadError(t){if(this[Js]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[Js]=t}get loadError(){return this[Js]}set raw(t){if(Object.keys(this.#t).length||this[Js])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};Gx.exports=Td});var cO=Ve(require("node:process"),1);var ph=require("node:path"),sb=Ve(require("node:fs/promises"),1),dh=Ve(require("node:path"),1),ob=require("node:os"),ab=Ve(Cc(),1);var b$=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")}},ci=(e,t="")=>{try{let{organization:r}=b$(e);return r}catch{return t}};function Wr(e){return Buffer.from(e||"").toString("base64")}var ca=e=>Buffer.from(e,"base64").toString("utf8");var fh=Ve(require("node:https"),1),la=Ve(require("node:fs"),1),rb=Ve(require("node:path"),1),E$={port:443,method:"GET"},nb=async e=>new Promise((t,r)=>{let n={...E$,...e};fh.default.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&_$(n?.headers,"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()});function _$(e,t){var r;if(!e)return!1;if(Array.isArray(e)){for(let s of e){let o=s.toLowerCase().indexOf("accept:");if(o===0&&s.slice(o+7).trim().split(",").map(c=>c.trim()).includes(t))return!0}return!1}let i=(r=Object.entries(e).find(([s])=>s.toLowerCase()==="accept"))===null||r===void 0?void 0:r[1];return typeof i=="string"?i===t:Array.isArray(i)?i.includes(t):!1}async function hh(e,t){return new Promise((r,n)=>{fh.default.get(e,i=>{if(i.statusCode===301||i.statusCode===302){let o=i.headers.location;if(o){hh(o,t).then(r).catch(n);return}else{n(new Error("Redirect without location header"));return}}if(i.statusCode!==200){n(new Error(`HTTP ${i.statusCode}: ${i.statusMessage}`));return}let s;try{let o=rb.default.dirname(t);la.default.existsSync(o)||la.default.mkdirSync(o,{recursive:!0}),s=la.default.createWriteStream(t)}catch(o){n(o);return}s.on("error",o=>{n(o)}),i.pipe(s),s.on("finish",()=>{r()})}).on("error",i=>{n(i)})})}var ib=async({password:e,organization:t})=>{let r=`Basic ${Wr(`.:${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 nb(n)}catch(i){if(i.statusCode===404)return;throw i}};var fa="me",ha="me@example.com",li=class{constructor(t,r,n){this.id=t,this.workspaceFileName=r;let i;if(n&&dh.default.basename(n)===this.workspaceFileName)i=dh.default.resolve(n);else{let o=(0,ab.getWorkspaceManagerRoot)(process.cwd())||"";i=(0,ph.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,ob.homedir)()||"";this.userFilePath=(0,ph.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await sb.default.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 ib({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:ci(i)},isValid:!1,fileProvider:this})}return t}};function vb(e){return typeof e>"u"||e===null}function v$(e){return typeof e=="object"&&e!==null}function S$(e){return Array.isArray(e)?e:vb(e)?[]:[e]}function C$(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 x$(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function P$(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var O$=vb,R$=v$,F$=S$,L$=x$,D$=P$,T$=C$,Me={isNothing:O$,isObject:R$,toArray:F$,repeat:L$,isNegativeZero:D$,extend:T$};function Sb(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+=`
71
-
72
- `+e.mark.snippet),n+" "+r):n}function as(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Sb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}as.prototype=Object.create(Error.prototype);as.prototype.constructor=as;as.prototype.toString=function(t){return this.name+": "+Sb(this,t)};var ut=as;function gh(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 mh(e,t){return Me.repeat(" ",t-e.length)+e}function k$(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=gh(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=Me.repeat(" ",t.indent)+mh((e.line-u+1).toString(),f)+" | "+c.str+`
73
- `+a;for(c=gh(e.buffer,n[o],i[o],e.position,l),a+=Me.repeat(" ",t.indent)+mh((e.line+1).toString(),f)+" | "+c.str+`
74
- `,a+=Me.repeat("-",t.indent+f+3+c.pos)+`^
75
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=gh(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=Me.repeat(" ",t.indent)+mh((e.line+u+1).toString(),f)+" | "+c.str+`
76
- `;return a.replace(/\n$/,"")}var N$=k$,I$=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$$=["scalar","sequence","mapping"];function B$(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function M$(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(I$.indexOf(r)===-1)throw new ut('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=B$(t.styleAliases||null),$$.indexOf(this.kind)===-1)throw new ut('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ze=M$;function ub(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 j$(){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 Ah(e){return this.extend(e)}Ah.prototype.extend=function(t){var r=[],n=[];if(t instanceof ze)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 ut("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ze))throw new ut("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ut("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 ut("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 ze))throw new ut("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ah.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=ub(i,"implicit"),i.compiledExplicit=ub(i,"explicit"),i.compiledTypeMap=j$(i.compiledImplicit,i.compiledExplicit),i};var Cb=Ah,xb=new ze("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Pb=new ze("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ob=new ze("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Rb=new Cb({explicit:[xb,Pb,Ob]});function q$(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function W$(){return null}function U$(e){return e===null}var Fb=new ze("tag:yaml.org,2002:null",{kind:"scalar",resolve:q$,construct:W$,predicate:U$,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function G$(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 H$(e){return e==="true"||e==="True"||e==="TRUE"}function z$(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Lb=new ze("tag:yaml.org,2002:bool",{kind:"scalar",resolve:G$,construct:H$,predicate:z$,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 Y$(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function V$(e){return 48<=e&&e<=55}function K$(e){return 48<=e&&e<=57}function X$(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(!Y$(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!V$(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!K$(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function J$(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 Q$(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Me.isNegativeZero(e)}var Db=new ze("tag:yaml.org,2002:int",{kind:"scalar",resolve:X$,construct:J$,predicate:Q$,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"]}}),Z$=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function e2(e){return!(e===null||!Z$.test(e)||e[e.length-1]==="_")}function t2(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 r2=/^[-+]?[0-9]+e/;function n2(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(Me.isNegativeZero(e))return"-0.0";return r=e.toString(10),r2.test(r)?r.replace("e",".e"):r}function i2(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Me.isNegativeZero(e))}var Tb=new ze("tag:yaml.org,2002:float",{kind:"scalar",resolve:e2,construct:t2,predicate:i2,represent:n2,defaultStyle:"lowercase"}),kb=Rb.extend({implicit:[Fb,Lb,Db,Tb]}),Nb=kb,Ib=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$b=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 s2(e){return e===null?!1:Ib.exec(e)!==null||$b.exec(e)!==null}function o2(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=Ib.exec(e),t===null&&(t=$b.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 a2(e){return e.toISOString()}var Bb=new ze("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s2,construct:o2,instanceOf:Date,represent:a2});function u2(e){return e==="<<"||e===null}var Mb=new ze("tag:yaml.org,2002:merge",{kind:"scalar",resolve:u2}),vh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
77
- \r`;function c2(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=vh;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 l2(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=vh,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 f2(e){var t="",r=0,n,i,s=e.length,o=vh;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 h2(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var jb=new ze("tag:yaml.org,2002:binary",{kind:"scalar",resolve:c2,construct:l2,predicate:h2,represent:f2}),p2=Object.prototype.hasOwnProperty,d2=Object.prototype.toString;function g2(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,d2.call(i)!=="[object Object]")return!1;for(s in i)if(p2.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 m2(e){return e!==null?e:[]}var qb=new ze("tag:yaml.org,2002:omap",{kind:"sequence",resolve:g2,construct:m2}),y2=Object.prototype.toString;function A2(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],y2.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function w2(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 Wb=new ze("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:A2,construct:w2}),b2=Object.prototype.hasOwnProperty;function E2(e){if(e===null)return!0;var t,r=e;for(t in r)if(b2.call(r,t)&&r[t]!==null)return!1;return!0}function _2(e){return e!==null?e:{}}var Ub=new ze("tag:yaml.org,2002:set",{kind:"mapping",resolve:E2,construct:_2}),Sh=Nb.extend({implicit:[Bb,Mb],explicit:[jb,qb,Wb,Ub]}),Gr=Object.prototype.hasOwnProperty,pa=1,Gb=2,Hb=3,da=4,yh=1,v2=2,cb=3,S2=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,C2=/[\x85\u2028\u2029]/,x2=/[,\[\]\{\}]/,zb=/^(?:!|!!|![a-z\-]+!)$/i,Yb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lb(e){return Object.prototype.toString.call(e)}function ir(e){return e===10||e===13}function dn(e){return e===9||e===32}function Et(e){return e===9||e===32||e===10||e===13}function hi(e){return e===44||e===91||e===93||e===123||e===125}function P2(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function O2(e){return e===120?2:e===117?4:e===85?8:0}function R2(e){return 48<=e&&e<=57?e-48:-1}function fb(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
78
- `: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 F2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Vb(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var Kb=new Array(256),Xb=new Array(256);for(pn=0;pn<256;pn++)Kb[pn]=fb(pn)?1:0,Xb[pn]=fb(pn);var pn;function L2(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Sh,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 Jb(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=N$(r),new ut(t,r)}function te(e,t){throw Jb(e,t)}function ga(e,t){e.onWarning&&e.onWarning.call(null,Jb(e,t))}var hb={YAML:function(t,r,n){var i,s,o;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&ga(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],zb.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),Gr.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),Yb.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{te(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Ur(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||te(e,"expected valid JSON character");else S2.test(a)&&te(e,"the stream contains non-printable characters");e.result+=a}}function pb(e,t,r,n){var i,s,o,a;for(Me.isObject(r)||te(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],Gr.call(t,s)||(Vb(t,s,r[s]),n[s]=!0)}function pi(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])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&lb(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&lb(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)pb(e,t,s[c],r);else pb(e,t,s,r);else!e.json&&!Gr.call(r,i)&&Gr.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,te(e,"duplicated mapping key")),Vb(t,i,s),delete r[i];return t}function Ch(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++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function $e(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;dn(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(ir(i))for(Ch(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&&ga(e,"deficient indentation"),n}function Aa(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||Et(r)))}function xh(e,t){t===1?e.result+=" ":t>1&&(e.result+=Me.repeat(`
79
- `,t-1))}function D2(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),Et(p)||hi(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Et(i)||r&&hi(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Et(i)||r&&hi(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),Et(n))break}else{if(e.position===e.lineStart&&Aa(e)||r&&hi(p))break;if(ir(p))if(u=e.line,c=e.lineStart,f=e.lineIndent,$e(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Ur(e,s,o,!1),xh(e,e.line-u),s=o=e.position,a=!1),dn(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ur(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function T2(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(Ur(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 ir(r)?(Ur(e,n,i,!0),xh(e,$e(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Aa(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}function k2(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 Ur(e,r,e.position,!0),e.position++,!0;if(a===92){if(Ur(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),ir(a))$e(e,!1,t);else if(a<256&&Kb[a])e.result+=Xb[a],e.position++;else if((o=O2(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=P2(a))>=0?s=(s<<4)+o:te(e,"expected hexadecimal character");e.result+=F2(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else ir(a)?(Ur(e,r,n,!0),xh(e,$e(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Aa(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}function N2(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,p,d=Object.create(null),g,m,b,_;if(_=e.input.charCodeAt(e.position),_===91)f=93,p=!1,a=[];else if(_===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if($e(e,!0,t),_=e.input.charCodeAt(e.position),_===f)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=a,!0;r?_===44&&te(e,"expected the node content, but found ','"):te(e,"missed comma between flow collection entries"),m=g=b=null,l=h=!1,_===63&&(c=e.input.charCodeAt(e.position+1),Et(c)&&(l=h=!0,e.position++,$e(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,di(e,t,pa,!1,!0),m=e.tag,g=e.result,$e(e,!0,t),_=e.input.charCodeAt(e.position),(h||e.line===n)&&_===58&&(l=!0,_=e.input.charCodeAt(++e.position),$e(e,!0,t),di(e,t,pa,!1,!0),b=e.result),p?pi(e,a,d,m,g,b,n,i,s):l?a.push(pi(e,null,d,m,g,b,n,i,s)):a.push(g),$e(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}te(e,"unexpected end of the stream within a flow collection")}function I2(e,t){var r,n,i=yh,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)yh===i?i=l===43?cb:v2:te(e,"repeat of a chomping mode identifier");else if((f=R2(l))>=0)f===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?te(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(dn(l)){do l=e.input.charCodeAt(++e.position);while(dn(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!ir(l)&&l!==0)}for(;l!==0;){for(Ch(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),ir(l)){u++;continue}if(e.lineIndent<a){i===cb?e.result+=Me.repeat(`
80
- `,s?1+u:u):i===yh&&s&&(e.result+=`
81
- `);break}for(n?dn(l)?(c=!0,e.result+=Me.repeat(`
82
- `,s?1+u:u)):c?(c=!1,e.result+=Me.repeat(`
83
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=Me.repeat(`
84
- `,u):e.result+=Me.repeat(`
85
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!ir(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Ur(e,r,e.position,!1)}return!0}function db(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,te(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!Et(o))));){if(a=!0,e.position++,$e(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,di(e,t,Hb,!1,!0),s.push(e.result),$e(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)te(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 $2(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),p=null,d=null,g=null,m=!1,b=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(e.position);_!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,te(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(_===63||_===58)&&Et(n))_===63?(m&&(pi(e,l,h,p,d,null,o,a,u),p=d=g=null),b=!0,m=!0,i=!0):m?(m=!1,i=!0):te(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,!di(e,r,Gb,!1,!0))break;if(e.line===s){for(_=e.input.charCodeAt(e.position);dn(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),Et(_)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(pi(e,l,h,p,d,null,o,a,u),p=d=g=null),b=!0,m=!1,i=!1,p=e.tag,d=e.result;else if(b)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(b)te(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)&&(m&&(o=e.line,a=e.lineStart,u=e.position),di(e,t,da,!0,i)&&(m?d=e.result:g=e.result),m||(pi(e,l,h,p,d,g,o,a,u),p=d=g=null),$e(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&_!==0)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&pi(e,l,h,p,d,null,o,a,u),b&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),b}function B2(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&&te(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)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Et(o);)o===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),zb.test(i)||te(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),x2.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}s&&!Yb.test(s)&&te(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{te(e,"tag name is malformed: "+s)}return r?e.tag=s:Gr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}function M2(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Et(r)&&!hi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function j2(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&&!Et(n)&&!hi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Gr.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],$e(e,!0,-1),!0}function di(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,p,d,g,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=da===r||Hb===r,n&&$e(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;B2(e)||M2(e);)$e(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||da===r)&&(pa===r||Gb===r?g=t:g=t+1,m=e.position-e.lineStart,u===1?a&&(db(e,m)||$2(e,m,g))||N2(e,g)?f=!0:(o&&I2(e,g)||T2(e,g)||k2(e,g)?f=!0:j2(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):D2(e,g,pa===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&db(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Gr.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,p=e.typeMap.multi[e.kind||"fallback"],l=0,h=p.length;l<h;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){d=p[l];break}d||te(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&te(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):te(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 q2(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&&($e(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&&!Et(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");o!==0;){for(;dn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ir(o));break}if(ir(o))break;for(r=e.position;o!==0&&!Et(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Ch(e),Gr.call(hb,n)?hb[n](e,n,i):ga(e,'unknown document directive "'+n+'"')}if($e(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,$e(e,!0,-1)):s&&te(e,"directives end mark is expected"),di(e,e.lineIndent-1,da,!1,!0),$e(e,!0,-1),e.checkLineBreaks&&C2.test(e.input.slice(t,e.position))&&ga(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Aa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,$e(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}function Qb(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
86
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new L2(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(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;)q2(r);return r.documents}function W2(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Qb(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function U2(e,t){var r=Qb(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ut("expected a single document in the stream, but found more")}}var G2=W2,H2=U2,Zb={loadAll:G2,load:H2},eE=Object.prototype.toString,tE=Object.prototype.hasOwnProperty,Ph=65279,z2=9,us=10,Y2=13,V2=32,K2=33,X2=34,wh=35,J2=37,Q2=38,Z2=39,eB=42,rE=44,tB=45,ma=58,rB=61,nB=62,iB=63,sB=64,nE=91,iE=93,oB=96,sE=123,aB=124,oE=125,tt={};tt[0]="\\0";tt[7]="\\a";tt[8]="\\b";tt[9]="\\t";tt[10]="\\n";tt[11]="\\v";tt[12]="\\f";tt[13]="\\r";tt[27]="\\e";tt[34]='\\"';tt[92]="\\\\";tt[133]="\\N";tt[160]="\\_";tt[8232]="\\L";tt[8233]="\\P";var uB=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],cB=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function lB(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&&tE.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function fB(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 ut("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Me.repeat("0",n-t.length)+t}var hB=1,cs=2;function pB(e){this.schema=e.schema||Sh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Me.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=lB(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==='"'?cs:hB,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 gb(e,t){for(var r=Me.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
87
- `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
88
- `&&(s+=r),s+=o;return s}function bh(e,t){return`
89
- `+Me.repeat(" ",e.indent*t)}function dB(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 ya(e){return e===V2||e===z2}function ls(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ph||65536<=e&&e<=1114111}function mb(e){return ls(e)&&e!==Ph&&e!==Y2&&e!==us}function yb(e,t,r){var n=mb(e),i=n&&!ya(e);return(r?n:n&&e!==rE&&e!==nE&&e!==iE&&e!==sE&&e!==oE)&&e!==wh&&!(t===ma&&!i)||mb(t)&&!ya(t)&&e===wh||t===ma&&i}function gB(e){return ls(e)&&e!==Ph&&!ya(e)&&e!==tB&&e!==iB&&e!==ma&&e!==rE&&e!==nE&&e!==iE&&e!==sE&&e!==oE&&e!==wh&&e!==Q2&&e!==eB&&e!==K2&&e!==aB&&e!==rB&&e!==nB&&e!==Z2&&e!==X2&&e!==J2&&e!==sB&&e!==oB}function mB(e){return!ya(e)&&e!==ma}function os(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 aE(e){var t=/^\n* /;return t.test(e)}var uE=1,Eh=2,cE=3,lE=4,fi=5;function yB(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,g=gB(os(e,0))&&mB(os(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=os(e,u),!ls(c))return fi;g=g&&yb(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=os(e,u),c===us)l=!0,p&&(h=h||u-d-1>n&&e[d+1]!==" ",d=u);else if(!ls(c))return fi;g=g&&yb(c,f,a),f=c}h=h||p&&u-d-1>n&&e[d+1]!==" "}return!l&&!h?g&&!o&&!i(e)?uE:s===cs?fi:Eh:r>9&&aE(e)?fi:o?s===cs?fi:Eh:h?lE:cE}function AB(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===cs?'""':"''";if(!e.noCompatMode&&(uB.indexOf(t)!==-1||cB.test(t)))return e.quotingType===cs?'"'+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 dB(e,c)}switch(yB(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case uE:return t;case Eh:return"'"+t.replace(/'/g,"''")+"'";case cE:return"|"+Ab(t,e.indent)+wb(gb(t,s));case lE:return">"+Ab(t,e.indent)+wb(gb(wB(t,o),s));case fi:return'"'+bB(t)+'"';default:throw new ut("impossible error: invalid scalar style")}})()}function Ab(e,t){var r=aE(e)?String(t):"",n=e[e.length-1]===`
90
- `,i=n&&(e[e.length-2]===`
91
- `||e===`
92
- `),s=i?"+":n?"":"-";return r+s+`
93
- `}function wb(e){return e[e.length-1]===`
94
- `?e.slice(0,-1):e}function wB(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
95
- `);return c=c!==-1?c:e.length,r.lastIndex=c,bb(e.slice(0,c),t)})(),i=e[0]===`
96
- `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
97
- `:"")+bb(u,t),i=s}return n}function bb(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+=`
98
- `+e.slice(i,s),i=s+1),o=a;return u+=`
99
- `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
100
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function bB(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=os(e,i),n=tt[r],!n&&ls(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||fB(r);return t}function EB(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 Eb(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+=bh(e,t)),e.dump&&us===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function _B(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 vB(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 ut("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=bh(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&&us===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=bh(e,t)),Ar(e,t+1,f,!0,l)&&(e.dump&&us===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function _b(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,eE.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(tE.call(a.represent,u))n=a.represent[u](t,u);else throw new ut("!<"+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,_b(e,r,!1)||_b(e,r,!0);var a=eE.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?(vB(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(_B(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?Eb(e,t-1,e.dump,i):Eb(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(EB(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&AB(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ut("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 SB(e,t){var r=[],n=[],i,s;for(_h(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function _h(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)_h(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)_h(e[n[i]],t,r)}function CB(e,t){t=t||{};var r=new pB(t);r.noRefs||SB(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ar(r,0,n,!0,!0)?r.dump+`
101
- `:""}var xB=CB,PB={dump:xB};function Oh(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 OB=ze,RB=Cb,FB=Rb,LB=kb,DB=Nb,TB=Sh,kB=Zb.load,NB=Zb.loadAll,IB=PB.dump,$B=ut,BB={binary:jb,float:Tb,map:Ob,null:Fb,pairs:Wb,set:Ub,timestamp:Bb,bool:Lb,int:Db,merge:Mb,omap:qb,seq:Pb,str:xb},MB=Oh("safeLoad","load"),jB=Oh("safeLoadAll","loadAll"),qB=Oh("safeDump","dump"),Rh={Type:OB,Schema:RB,FAILSAFE_SCHEMA:FB,JSON_SCHEMA:LB,CORE_SCHEMA:DB,DEFAULT_SCHEMA:TB,load:kB,loadAll:NB,dump:IB,YAMLException:$B,types:BB,safeLoad:MB,safeLoadAll:jB,safeDump:qB};var fE=Ve(require("node:fs/promises"),1);var wa=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var Fh=Ve(require("node:fs/promises"),1);async function gi(e,t){try{if(await Fh.default.readFile(e,{encoding:"utf-8"})===t)return}catch{}await Fh.default.writeFile(e,t,{encoding:"utf-8"})}var ba=class extends li{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){try{let t=await this.paseYarnRc(this.userFilePath);t&&t.npmRegistryServer&&(delete t.npmRegistryServer,await this.writeYarnRc(this.userFilePath,t))}catch{await gi(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(let i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:ci(o)},u=ca(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(){var t;let r=[],n=await this.paseYarnRc(this.workspaceFilePath);if(n.npmRegistryServer&&r.push(wa(n.npmRegistryServer)),n.npmScopes)for(let i of Object.keys(n.npmScopes)){let s=(t=n.npmScopes[i])===null||t===void 0?void 0:t.npmRegistryServer;s&&r.push(s)}return r}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(let n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=Wr(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=Rh.dump(r);await gi(t,n)}async paseYarnRc(t){let r=await fE.default.readFile(t,"utf8");return Rh.load(r,{filename:t})}};var zx=Ve(Hx(),1);var ku=Ve(require("node:fs/promises"),1),Nu=require("node:os");var Yx=Ve(require("node:path"),1);var Iu=class extends li{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await ku.default.readFile(this.userFilePath,"utf-8")).split(Nu.EOL).filter(n=>!n.includes("registry=")).join(Nu.EOL);await gi(this.userFilePath,r)}catch{await gi(this.userFilePath,"")}}async getWorkspaceRegistries(){var t;let r;try{r=new zx.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${Yx.default.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await r.load()}catch(s){throw s instanceof TypeError&&s.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((((t=r.data)===null||t===void 0?void 0:t.get("project"))||{}).data||{}).filter(s=>s==="registry"||s.endsWith(":registry")).map(s=>r.get(s,"project")).map(s=>wa(s))}async getUserFeeds(){let t=new Map;return await this.processFeeds(this.userFilePath,t),await this.processFeeds(this.workspaceFilePath,t),t}async processFeeds(t,r){await this.processNpmRcFile(t,(n,i,s,o)=>{let a=r.get(i);switch(a||(a={registry:i,adoOrganization:ci(i)},r.set(a.registry,a)),s){case"_password":case"_auth":a.authToken=ca(o).trim();break;case"_authToken":a.authToken=o.trim();break;case"username":a.userName=o;break;case"email":a.email=o;break}})}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(let i of t)r.set(this.toRegistryAndFunctionKey(i.registry,"username"),`//${i.registry}:username=${i.userName||fa}`),r.set(this.toRegistryAndFunctionKey(i.registry,"email"),`//${i.registry}:email=${i.email||ha}`),r.set(this.toRegistryAndFunctionKey(i.registry,"_password"),`//${i.registry}:_password=${Wr(i.authToken)}`);let n=await this.patchUserNpmRcFile(r);await ku.default.writeFile(this.userFilePath,n.join(Nu.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await ku.default.readFile(t,{encoding:"utf8"})).split(`
102
- `).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),p=r(a,c,l,h);p&&o.push(p)}else if(n){let c=n(a);c&&o.push(c)}}return o}};var to=require("node:os");var Uu=require("node:os"),Xx=require("node:child_process");var $u=require("node:child_process"),Vx=require("node:util"),Bu=(0,Vx.promisify)($u.exec);function Nd(e,t,r){return new Promise((n,i)=>{var s,o,a,u;let c=r?.cwd||process.cwd();console.log(`\u{1F680} Launching [${e} ${t.join(" ")}] in ${c}`);let f=(0,$u.spawn)(e,t,{cwd:c,env:r?.env||process.env,stdio:r?.stdio||"inherit",shell:r?.shell||!1});r?.stdio==="pipe"&&((s=f.stdout)===null||s===void 0||s.setEncoding("utf8"),(o=f.stdout)===null||o===void 0||o.on("data",function(l){var h;let p=l.toString("utf8");(h=r?.processStdOut)===null||h===void 0||h.call(r,p)}),(a=f.stderr)===null||a===void 0||a.setEncoding("utf8"),(u=f.stderr)===null||u===void 0||u.on("data",function(l){var h;let p=l.toString("utf8");(h=r?.processStdErr)===null||h===void 0||h.call(r,p)})),f.on("exit",l=>{l==0?n():i(new Error(`Process ${e} exited with code ${l}`))})})}var Zs=require("node:os");var Mu=require("node:os"),Cr=()=>(0,Mu.platform)()==="linux"&&(0,Mu.release)().toLowerCase().includes("wsl");var ju=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return Cr()||e[(0,Zs.platform)()]&&e[(0,Zs.platform)()].includes((0,Zs.arch)())};var Id;var g8=["npm","exec","--silent","--yes","azureauth","--"],m8={...process.env,npm_config_registry:"https://registry.npmjs.org"},qu=()=>(Id||(Id=Cr()?["azureauth.exe"]:g8),{command:Id,env:m8});var Wu;var Kx=async()=>{if(Wu===void 0){let{command:e,env:t}=qu(),r=`${e.join(" ")} --version`;try{let n=await Bu(r,{env:t}),[,i]=n.stdout.split(".");Wu=parseInt(i)>=8}catch{Wu=!1}}return Wu};var Jx=async(e,t)=>{if(!ju())throw new Error(`AzureAuth is not supported for platform ${(0,Uu.platform)()} and architecture ${(0,Uu.arch)()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:qu(),i=[...r,"ado","pat",`--prompt-hint ${Cr()?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(Cr())try{if(s=(0,Xx.spawnSync)(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 Bu(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 Kx()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var Gu=Ve(require("node:os"),1),Hu=Ve(require("node:fs"),1),eo=Ve(require("node:path"),1);var Qx="1.4.1",Bd=eo.default.resolve("..",".bin","CredentialProvider.Microsoft","v"+Qx);async function Zx(e){let t=y8(e),r=await w8();return await A8(r,t)}function y8(e){let t=e.endsWith("/")?e:e+"/";if(!t.endsWith("/npm/registry/"))throw new Error(`Registry URL ${e} is not a valid Azure Artifacts npm registry URL. Expected it to end with '/npm/registry/'`);let r=t.replace("/npm/registry/","/nuget/v3/index.json");return/^[a-z]+:\/\//i.test(r)?r:"https://"+r}async function A8(e,t){let r="";await Nd(e,["-U",t,"-I","-F","Json"],{stdio:"pipe",processStdOut:n=>{r+=n},processStdErr:n=>{console.error(n)}});try{return JSON.parse(r)}catch{throw new Error(`Failed to parse CredentialProvider output: ${r}`)}}function $d(e){if(Hu.default.existsSync(e))return e;if(Hu.default.existsSync(e+".exe"))return e+".exe"}async function w8(){let e=$d(eo.default.join(Gu.default.homedir(),".nuget","plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft"));if(e)return e;let t=eo.default.join(Bd,"plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft");if(e=$d(t),e)return e;if(await b8(),e=$d(t),e)Hu.default.chmodSync(e,493);else throw new Error(`CredentialProvider was not found at expected path after download: ${e}`);return e}async function b8(){let e=`https://github.com/microsoft/artifacts-credprovider/releases/download/v${Qx}/Microsoft.Net8.${Gu.default.platform()}-${Gu.default.arch()}.NuGet.CredentialProvider.tar.gz`,t=eo.default.join(Bd,"CredentialProvider.Microsoft.tar.gz");console.log(`\u{1F310} Downloading ${e}`),await hh(e,t),await Nd("tar",["-xzf",t,"-C",Bd],{stdio:"inherit"})}var eP=async(e,t,r=!1,n)=>{let i=`${(0,to.hostname)()}-${e}`,s=await E8(i,e,t,n);return r?Wr(s):s};async function E8(e,t,r,n){let i="vso.packaging_write";switch((0,to.platform)()){case"win32":case"darwin":return(await Jx({promptHint:`Authenticate to ${t} to generate a temporary token for npm`,organization:t,displayName:e,scope:[i],timeout:"30",output:"json"},n)).token;case"linux":return(await Zx(r)).Password;default:throw new Error(`Platform ${(0,to.platform)()} is not supported for ADO authentication`)}}function tP(e,t){let r=new Map;for(let n of e){let i=t(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}var zu=require("node:os");var Fi=(e,t,r)=>{let n=new Map;n.set("success",e.success?"true":"false"),n.set("automaticSuccess",e.automaticSuccess?"true":"false"),n.set("error",e.error||""),n.set("platform",Cr()?"wsl":(0,zu.platform)()),n.set("arch",(0,zu.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var pc=require("node:os"),uo=Ve(require("node:process"),1);var _8=[!0,"true","TRUE",1],rP=()=>{let e=process.env.CODESPACES||"";return _8.includes(e)};var ec=require("assert");var v8={right:O8,center:R8},S8=0,Yu=1,C8=2,Vu=3,Md=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
103
- `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&xt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),xt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=xt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
104
- `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:u}=t[a],c=this.negatePadding(t[a]),f=o;if(c>xt.stringWidth(o)&&(f+=" ".repeat(c-xt.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let h=v8[t[a].align];f=h(f,c),xt.stringWidth(f)<c&&(f+=" ".repeat((u||0)-xt.stringWidth(f)-1))}let l=t[a].padding||[0,0,0,0];l[Vu]&&(s+=" ".repeat(l[Vu])),s+=nP(t[a],f,"| "),s+=f,s+=nP(t[a],f," |"),l[Yu]&&(s+=" ".repeat(l[Yu])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=xt.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=xt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
53
+ `,n=e.whitespace?" = ":"=",i=[],s=e.sort?Object.keys(t).sort():Object.keys(t),o=0;e.align&&(o=Tr(s.filter(c=>t[c]===null||Array.isArray(t[c])||typeof t[c]!="object").map(c=>Array.isArray(t[c])?`${c}[]`:c).concat([""]).reduce((c,f)=>Tr(c).length>=Tr(f).length?c:f)).length);let a="",u=e.bracketedArray?"[]":"";for(let c of s){let f=t[c];if(f&&Array.isArray(f))for(let l of f)a+=Tr(`${c}${u}`).padEnd(o," ")+n+Tr(l)+r;else f&&typeof f=="object"?i.push(c):a+=Tr(c).padEnd(o," ")+n+Tr(f)+r}e.section&&a.length&&(a="["+Tr(e.section)+"]"+(e.newline?r+r:r)+a);for(let c of i){let f=Sb(c,".").join("\\."),l=(e.section?e.section+".":"")+f,p=Sh(t[c],{...e,section:l});a.length&&p.length&&(a+=r),a+=p}return a};function Sb(t,e){var r=0,n=0,i=0,s=[];do if(i=t.indexOf(e,r),i!==-1){if(r=i+e.length,i>0&&t[i-1]==="\\")continue;s.push(t.slice(n,i)),n=i+e.length}while(i!==-1);return s.push(t.slice(n)),s}var _b=(t,e={})=>{e.bracketedArray=e.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=t.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let f=c.match(s);if(!f)continue;if(f[1]!==void 0){if(i=Sa(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=Sa(f[2]),p;e.bracketedArray?p=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,p=a[l]>1);let d=p&&l.endsWith("[]")?l.slice(0,-2):l;if(d==="__proto__")continue;let g=f[3]?Sa(f[4]):!0,m=g==="true"||g==="false"||g==="null"?JSON.parse(g):g;p&&(_h.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(m):n[d]=m}let u=[];for(let c of Object.keys(r)){if(!_h.call(r,c)||typeof r[c]!="object"||Array.isArray(r[c]))continue;let f=Sb(c,".");n=r;let l=f.pop(),p=l.replace(/\\\./g,".");for(let d of f)d!=="__proto__"&&((!_h.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&p===l||(n[p]=r[c],u.push(c))}for(let c of u)delete r[c];return r},vb=t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"),Tr=t=>typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&vb(t)||t!==t.trim()?JSON.stringify(t):t.split(";").join("\\;").split("#").join("\\#"),Sa=t=>{if(t=(t||"").trim(),vb(t)){t.charAt(0)==="'"&&(t=t.slice(1,-1));try{t=JSON.parse(t)}catch{}}else{let e=!1,r="";for(let n=0,i=t.length;n<i;n++){let s=t.charAt(n);if(e)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,e=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?e=!0:r+=s}}return e&&(r+="\\"),r.trim()}return t};Cb.exports={parse:_b,decode:_b,stringify:Sh,encode:Sh,safe:Tr,unsafe:Sa}});var Pb=E((p6,xb)=>{xb.exports=UI;function UI(...t){let e=t;t.length===1&&(Array.isArray(t[0])||typeof t[0]=="string")&&(e=[].concat(t[0]));for(let i=0,s=e.length;i<s;i++)e[i]=typeof e[i]=="string"?e[i]:String(e[i]);e=e.sort(GI);let r={},n="";for(let i=0,s=e.length;i<s;i++){let o=e[i],a=e[i+1]||"",u=!0,c=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let p=o.charAt(f);if(u=u&&p===a.charAt(f),c=c&&p===n.charAt(f),!u&&!c){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let p=o.slice(0,f);f<=l;f++)r[p]=o,p+=o.charAt(f)}return r}function GI(t,e){return t===e?0:t>e?1:-1}});var Ch=E((d6,Ob)=>{Ob.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...t)=>console.error(...t):()=>{}});var Ph=E((g6,Fb)=>{var Rb=require("url"),xh=require("path"),Lb=require("stream").Stream,HI=require("os"),Db=Ch();function zI(t,e,r){t[e]=String(r)}function YI(t,e,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=HI.homedir();return s&&r.match(i)?t[e]=xh.resolve(s,r.slice(2)):t[e]=xh.resolve(r),!0}function VI(t,e,r){if(Db("validate Number %j %j %j",e,r,isNaN(r)),isNaN(r))return!1;t[e]=+r}function KI(t,e,r){let n=Date.parse(r);if(Db("validate Date %j %j %j",e,r,n),isNaN(n))return!1;t[e]=new Date(r)}function XI(t,e,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,t[e]=r}function JI(t,e,r){if(r=Rb.parse(String(r)),!r.host)return!1;t[e]=r.href}function QI(t,e,r){if(!(r instanceof Lb))return!1;t[e]=r}Fb.exports={String:{type:String,validate:zI},Boolean:{type:Boolean,validate:XI},url:{type:Rb,validate:JI},Number:{type:Number,validate:VI},path:{type:xh,validate:YI},Stream:{type:Lb,validate:QI},Date:{type:Date,validate:KI},Array:{type:Array}}});var jb=E((m6,Bb)=>{var va=Pb(),Be=Ch(),ZI=Ph(),kb=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Nb=(t,{types:e,dynamicTypes:r})=>{let n=kb(e,t),i=e[t];if(!n&&typeof r=="function"){let s=r(t);s!==void 0&&(i=s,n=!0)}return[n,i]},_i=(t,e)=>e&&t===e,wr=(t,e)=>e&&t.indexOf(e)!==-1,e$=(t,e)=>e&&!wr(t,e);function t$(t,{types:e,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:u}={}){Be(e,r,t,n);let c={},f={remain:[],cooked:t,original:t.slice(0)};return $b(t,c,f.remain,{typeDefs:n,types:e,dynamicTypes:u,shorthands:r,unknownHandler:s,abbrevHandler:o}),Ib(c,{types:e,dynamicTypes:u,typeDefs:n,invalidHandler:i,typeDefault:a}),c.argv=f,Object.defineProperty(c.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),c}function Ib(t,{types:e={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,u=r.Array?.type,c=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),u&&s.push(u));let p={};Object.keys(t).forEach(d=>{if(d==="argv")return;let g=t[d];Be("val=%j",g);let m=Array.isArray(g),[y,_]=Nb(d,{types:e,dynamicTypes:n}),v=_;m||(g=[g]),v||(v=s),_i(v,u)&&(v=s.concat(u)),Array.isArray(v)||(v=[v]),Be("val=%j",g),Be("types=",v),g=g.map(F=>{if(typeof F=="string"&&(Be("string %j",F),F=F.trim(),F==="null"&&~v.indexOf(null)||F==="true"&&(~v.indexOf(!0)||wr(v,c))||F==="false"&&(~v.indexOf(!1)||wr(v,c))?(F=JSON.parse(F),Be("jsonable %j",F)):wr(v,a)&&!isNaN(F)?(Be("convert to number",F),F=+F):wr(v,f)&&!isNaN(Date.parse(F))&&(Be("convert to date",F),F=new Date(F))),!y){if(!l)return F;_=s}F===!1&&~v.indexOf(null)&&!(~v.indexOf(!1)||wr(v,c))&&(F=null);let k={};return k[d]=F,Be("prevalidated val",k,F,_),Oh(k,d,F,_,{typeDefs:r})?(Be("validated v",k,F,_),k[d]):(i?i(d,F,_,t):i!==!1&&Be("invalid: "+d+"="+F,_),p)}).filter(F=>F!==p),!g.length&&e$(v,u)?(Be("VAL HAS NO LENGTH, DELETE IT",g,d,v.indexOf(u)),delete t[d]):m?(Be(m,t[d],g),t[d]=g):t[d]=g[0],Be("k=%s val=%j",d,g,t[d])})}function Oh(t,e,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let u=0,c=n.length;u<c;u++)if(!_i(n[u],s)&&Oh(t,e,r,n[u],{typeDefs:i}))return!0;return delete t[e],!1}if(_i(n,s))return!0;if(n!==n)return Be("Poison NaN",e,r,n),delete t[e],!1;if(r===n)return Be("Explicitly allowed %j",r),t[e]=r,!0;let o=!1,a=Object.keys(i);for(let u=0,c=a.length;u<c;u++){Be("test type %j %j %j",e,r,a[u]);let f=i[a[u]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,e,r)!==!1,r=l[e],o){t[e]=r;break}}}return Be("OK? %j (%j %j %j)",o,e,r,a[a.length-1]),o||delete t[e],o}function $b(t,e,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:u}={}){let c=i.String?.type,f=i.Number?.type,l=i.Array?.type,p=i.Boolean?.type;Be("parse",t,e,r);let d=va(Object.keys(n));Be("abbrevs=%j",d);let g=va(Object.keys(s));for(let m=0;m<t.length;m++){let y=t[m];if(Be("arg",y),y.match(/^-{2,}$/)){r.push.apply(r,t.slice(m+1)),t[m]="--";break}let _=!1;if(y.charAt(0)==="-"&&y.length>1){let v=y.indexOf("=");if(v>-1){_=!0;let T=y.slice(v+1);y=y.slice(0,v),t.splice(m,1,y,T)}let F=Mb(y,g,d,{shorthands:s,abbrevHandler:u});if(Be("arg=%j shRes=%j",y,F),F&&(t.splice.apply(t,[m,1].concat(F)),y!==F[0])){m--;continue}y=y.replace(/^-+/,"");let k=null;for(;y.toLowerCase().indexOf("no-")===0;)k=!k,y=y.slice(3);d[y]&&d[y]!==y&&(u?u(y,d[y]):u!==!1&&Be(`abbrev: ${y} -> ${d[y]}`),y=d[y]);let[W,Z]=Nb(y,{types:n,dynamicTypes:o}),ee=Array.isArray(Z);ee&&Z.length===1&&(ee=!1,Z=Z[0]);let X=_i(Z,l)||ee&&wr(Z,l);!W&&kb(e,y)&&(Array.isArray(e[y])||(e[y]=[e[y]]),X=!0);let te,L=t[m+1],b=typeof k=="boolean"||_i(Z,p)||ee&&wr(Z,p)||typeof Z>"u"&&!_||L==="false"&&(Z===null||ee&&~Z.indexOf(null));if(typeof Z>"u"){let T=!_&&L&&!L?.startsWith("-")&&!["true","false"].includes(L);a?T?a(y,L):a(y):a!==!1&&(Be(`unknown: ${y}`),T&&Be(`unknown: ${L} parsed as normal opt`))}if(b){te=!k,(L==="true"||L==="false")&&(te=JSON.parse(L),L=null,k&&(te=!te),m++),ee&&L&&(~Z.indexOf(L)?(te=L,m++):L==="null"&&~Z.indexOf(null)?(te=null,m++):!L.match(/^-{2,}[^-]/)&&!isNaN(L)&&wr(Z,f)?(te=+L,m++):!L.match(/^-[^-]/)&&wr(Z,c)&&(te=L,m++)),X?(e[y]=e[y]||[]).push(te):e[y]=te;continue}_i(Z,c)&&(L===void 0?L="":L.match(/^-{1,2}[^-]+/)&&(L="",m--)),L&&L.match(/^-{2,}$/)&&(L=void 0,m--),te=L===void 0?!0:L,X?(e[y]=e[y]||[]).push(te):e[y]=te,m++;continue}r.push(y)}}var Tb=Symbol("singles"),r$=(t,e)=>{let r=e[Tb];r||(r=Object.keys(e).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),e[Tb]=r,Be("shorthand singles",r));let n=t.split("").filter(i=>r[i]);return n.join("")===t?n:null};function Mb(t,...e){let{abbrevHandler:r,types:n={},shorthands:i={}}=e.length?e.pop():{},s=e[0]??va(Object.keys(i)),o=e[1]??va(Object.keys(n));if(t=t.replace(/^-+/,""),o[t]===t)return null;if(i[t])return i[t]&&!Array.isArray(i[t])&&(i[t]=i[t].split(/\s+/)),i[t];let a=r$(t,i);return a?a.map(u=>i[u]).reduce((u,c)=>u.concat(c),[]):o[t]&&!i[t]?null:(s[t]&&(r?r(t,s[t]):r!==!1&&Be(`abbrev: ${t} -> ${s[t]}`),t=s[t]),i[t]&&!Array.isArray(i[t])&&(i[t]=i[t].split(/\s+/)),i[t])}Bb.exports={nopt:t$,clean:Ib,parse:$b,validate:Oh,resolveShort:Mb,typeDefs:ZI}});var Lh=E((Mt,qb)=>{var Rh=jb(),n$=Ph();qb.exports=Mt=i$;Mt.clean=s$;Mt.typeDefs=n$;Mt.lib=Rh;function i$(t,e,r=process.argv,n=2){return Rh.nopt(r.slice(n),{types:t||{},shorthands:e||{},typeDefs:Mt.typeDefs,invalidHandler:Mt.invalidHandler,unknownHandler:Mt.unknownHandler,abbrevHandler:Mt.abbrevHandler})}function s$(t,e,r=Mt.typeDefs){return Rh.clean(t,{types:e||{},typeDefs:r,invalidHandler:Mt.invalidHandler,unknownHandler:Mt.unknownHandler,abbrevHandler:Mt.abbrevHandler})}});var Ca=E((y6,Wb)=>{var o$=Symbol("proc-log.meta");Wb.exports={META:o$,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...t){return process.emit("output","standard",...t)},error:function(...t){return process.emit("output","error",...t)},buffer:function(...t){return process.emit("output","buffer",...t)},flush:function(...t){return process.emit("output","flush",...t)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...t){return process.emit("log","error",...t)},notice:function(...t){return process.emit("log","notice",...t)},warn:function(...t){return process.emit("log","warn",...t)},info:function(...t){return process.emit("log","info",...t)},verbose:function(...t){return process.emit("log","verbose",...t)},http:function(...t){return process.emit("log","http",...t)},silly:function(...t){return process.emit("log","silly",...t)},timing:function(...t){return process.emit("log","timing",...t)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(t,e){process.emit("time","start",t);function r(){return process.emit("time","end",t)}if(typeof e=="function"){let n=e();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(t){return process.emit("time","end",t)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(t){process.emit("input","start");function e(){return process.emit("input","end")}if(typeof t=="function"){let r=t();return r&&r.finally?r.finally(e):(e(),r)}return e},end:function(){return process.emit("input","end")},read:function(...t){let e,r,n=new Promise((i,s)=>{e=i,r=s});return process.emit("input","read",e,r,...t),n}}}});var Dh=E((A6,Gb)=>{var Ub=t=>{if(typeof t=="string"){if(/^0o?[0-7]+$/.test(t))return parseInt(t.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(t))return parseInt(t,10);throw new Error(`invalid umask value: ${t}`)}else{if(typeof t!="number")throw new Error(`invalid umask value: ${t}`);if(t=Math.floor(t),t<0||t>511)throw new Error(`invalid umask value: ${t}`);return t}},a$=(t,e,r)=>{try{return t[e]=Ub(r),!0}catch{return!1}};Gb.exports={parse:Ub,validate:a$}});var ms=E((w6,Hb)=>{"use strict";var u$=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Hb.exports=u$});var ys=E((b6,zb)=>{"use strict";var c$="2.0.0",l$=Number.MAX_SAFE_INTEGER||9007199254740991,f$=16,h$=250,p$=["major","premajor","minor","preminor","patch","prepatch","prerelease"];zb.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:f$,MAX_SAFE_BUILD_LENGTH:h$,MAX_SAFE_INTEGER:l$,RELEASE_TYPES:p$,SEMVER_SPEC_VERSION:c$,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Si=E((br,Yb)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Fh,MAX_SAFE_BUILD_LENGTH:d$,MAX_LENGTH:g$}=ys(),m$=ms();br=Yb.exports={};var y$=br.re=[],A$=br.safeRe=[],se=br.src=[],w$=br.safeSrc=[],oe=br.t={},b$=0,Th="[a-zA-Z0-9-]",E$=[["\\s",1],["\\d",g$],[Th,d$]],_$=t=>{for(let[e,r]of E$)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},Oe=(t,e,r)=>{let n=_$(e),i=b$++;m$(t,i,e),oe[t]=i,se[i]=e,w$[i]=n,y$[i]=new RegExp(e,r?"g":void 0),A$[i]=new RegExp(n,r?"g":void 0)};Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","\\d+");Oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Th}*`);Oe("MAINVERSION",`(${se[oe.NUMERICIDENTIFIER]})\\.(${se[oe.NUMERICIDENTIFIER]})\\.(${se[oe.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${se[oe.NUMERICIDENTIFIERLOOSE]})\\.(${se[oe.NUMERICIDENTIFIERLOOSE]})\\.(${se[oe.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${se[oe.NONNUMERICIDENTIFIER]}|${se[oe.NUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${se[oe.NONNUMERICIDENTIFIER]}|${se[oe.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASE",`(?:-(${se[oe.PRERELEASEIDENTIFIER]}(?:\\.${se[oe.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${se[oe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${se[oe.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER",`${Th}+`);Oe("BUILD",`(?:\\+(${se[oe.BUILDIDENTIFIER]}(?:\\.${se[oe.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${se[oe.MAINVERSION]}${se[oe.PRERELEASE]}?${se[oe.BUILD]}?`);Oe("FULL",`^${se[oe.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${se[oe.MAINVERSIONLOOSE]}${se[oe.PRERELEASELOOSE]}?${se[oe.BUILD]}?`);Oe("LOOSE",`^${se[oe.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${se[oe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${se[oe.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${se[oe.XRANGEIDENTIFIER]})(?:\\.(${se[oe.XRANGEIDENTIFIER]})(?:\\.(${se[oe.XRANGEIDENTIFIER]})(?:${se[oe.PRERELEASE]})?${se[oe.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${se[oe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${se[oe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${se[oe.XRANGEIDENTIFIERLOOSE]})(?:${se[oe.PRERELEASELOOSE]})?${se[oe.BUILD]}?)?)?`);Oe("XRANGE",`^${se[oe.GTLT]}\\s*${se[oe.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${se[oe.GTLT]}\\s*${se[oe.XRANGEPLAINLOOSE]}$`);Oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Fh}})(?:\\.(\\d{1,${Fh}}))?(?:\\.(\\d{1,${Fh}}))?`);Oe("COERCE",`${se[oe.COERCEPLAIN]}(?:$|[^\\d])`);Oe("COERCEFULL",se[oe.COERCEPLAIN]+`(?:${se[oe.PRERELEASE]})?(?:${se[oe.BUILD]})?(?:$|[^\\d])`);Oe("COERCERTL",se[oe.COERCE],!0);Oe("COERCERTLFULL",se[oe.COERCEFULL],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${se[oe.LONETILDE]}\\s+`,!0);br.tildeTrimReplace="$1~";Oe("TILDE",`^${se[oe.LONETILDE]}${se[oe.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${se[oe.LONETILDE]}${se[oe.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${se[oe.LONECARET]}\\s+`,!0);br.caretTrimReplace="$1^";Oe("CARET",`^${se[oe.LONECARET]}${se[oe.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${se[oe.LONECARET]}${se[oe.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${se[oe.GTLT]}\\s*(${se[oe.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${se[oe.GTLT]}\\s*(${se[oe.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${se[oe.GTLT]}\\s*(${se[oe.LOOSEPLAIN]}|${se[oe.XRANGEPLAIN]})`,!0);br.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${se[oe.XRANGEPLAIN]})\\s+-\\s+(${se[oe.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${se[oe.XRANGEPLAINLOOSE]})\\s+-\\s+(${se[oe.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var xa=E((E6,Vb)=>{"use strict";var S$=Object.freeze({loose:!0}),v$=Object.freeze({}),C$=t=>t?typeof t!="object"?S$:t:v$;Vb.exports=C$});var kh=E((_6,Jb)=>{"use strict";var Kb=/^[0-9]+$/,Xb=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Kb.test(t),n=Kb.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},x$=(t,e)=>Xb(e,t);Jb.exports={compareIdentifiers:Xb,rcompareIdentifiers:x$}});var bt=E((S6,Zb)=>{"use strict";var Pa=ms(),{MAX_LENGTH:Qb,MAX_SAFE_INTEGER:Oa}=ys(),{safeRe:Ra,t:La}=Si(),P$=xa(),{compareIdentifiers:Nh}=kh(),Ih=class t{constructor(e,r){if(r=P$(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Qb)throw new TypeError(`version is longer than ${Qb} characters`);Pa("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Ra[La.LOOSE]:Ra[La.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Oa||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Oa||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Oa||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<Oa)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(e){if(Pa("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(Pa("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 Nh(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(Pa("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 Nh(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?Ra[La.PRERELEASELOOSE]:Ra[La.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){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"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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(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]),Nh(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Zb.exports=Ih});var Cn=E((v6,tE)=>{"use strict";var eE=bt(),O$=(t,e,r=!1)=>{if(t instanceof eE)return t;try{return new eE(t,e)}catch(n){if(!r)return null;throw n}};tE.exports=O$});var Da=E((C6,rE)=>{"use strict";var R$=Cn(),L$=(t,e)=>{let r=R$(t,e);return r?r.version:null};rE.exports=L$});var Fa=E((x6,Bh)=>{var nn=Lh(),{validate:D$}=Dh(),$h=class{},Mh=class{},F$=Da(),T$=(t,e,r)=>{let n=F$(r);if(!n)return!1;t[e]=n},k$=nn.typeDefs.path.validate,N$=(t,e,r)=>typeof r!="string"?!1:k$(t,e,r);Bh.exports={...nn.typeDefs,semver:{type:Mh,validate:T$,description:"full valid SemVer string"},Umask:{type:$h,validate:D$,description:"octal number in range 0o000..0o777 (0..511)"},url:{...nn.typeDefs.url,description:'full url with "http://"'},path:{...nn.typeDefs.path,validate:N$,description:"valid filesystem path"},Number:{...nn.typeDefs.Number,description:"numeric value"},Boolean:{...nn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...nn.typeDefs.Date,description:"valid Date string"}};nn.typeDefs=Bh.exports});var sE=E((P6,iE)=>{var{URL:nE}=require("node:url");iE.exports=t=>{let e=new nE(t),r=`${e.protocol}//${e.host}${e.pathname}`,n=new nE(".",r);return`//${n.host}${n.pathname}`}});var jh=E((O6,oE)=>{var I$=/(?<!\\)(\\*)\$\{([^${}?]+)(\?)?\}/g;oE.exports=(t,e)=>t.replace(I$,(r,n,i,s)=>{let o=s==="?"?"":`\${${i}}`,a=e[i]!==void 0?e[i]:o;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+a})});var cE=E((R6,uE)=>{var vi=Fa(),$$=jh(),{resolve:aE}=require("node:path"),{parse:M$}=Dh(),qh=(t,e,r,n=!1)=>{if(typeof t!="string"&&!Array.isArray(t))return t;let{platform:i,types:s,home:o,env:a}=r,u=new Set([].concat(s[e])),c=u.has(vi.path.type),f=u.has(vi.Boolean.type),l=c||u.has(vi.String.type),p=u.has(vi.Umask.type),d=u.has(vi.Number.type),g=!n&&u.has(Array),m=u.has(vi.Date.type);if(Array.isArray(t))return g?t.map(y=>qh(y,e,r,!0)):t;if(t=t.trim(),g)return qh(t.split(`
54
+
55
+ `),e,r);if(f&&!l&&t==="")return!0;if(!l&&!c&&!d)switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(t=$$(t,a),m)return new Date(t);if(c&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&o?t=aE(o,t.slice(2)):t=aE(t)),p)try{return M$(t)}catch{return t}return d&&!isNaN(t)&&(t=+t),t};uE.exports=qh});var pE=E((L6,hE)=>{var B$=(t,e)=>!/^[/@_]/.test(t)&&typeof Wh(e)=="string"&&`npm_config_${t.replace(/-/g,"_").toLowerCase()}`,Wh=t=>Array.isArray(t)?t.map(e=>Wh(e)).join(`
56
+
57
+ `):t==null||t===!1?"":typeof t=="object"?null:String(t),lE=(t,e)=>!Array.isArray(e)||!Array.isArray(t)?t===e:j$(t,e),j$=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},fE=(t,e,r)=>{let n=Wh(r),i=B$(e,n);i&&n!==null&&(t[i]=n)},q$=t=>{let{env:e,defaults:r,definitions:n,list:[i,s]}=t;e.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||(lE(r[u],i[u])?lE(s[u],i[u])||fE(e,u,i[u]):a.has(u)&&!o.has(u)||fE(e,u,i[u]))}e.HOME=t.home,e.npm_config_global_prefix=t.globalPrefix,e.npm_config_local_prefix=t.localPrefix,i.editor&&(e.EDITOR=i.editor),i["node-options"]&&(e.NODE_OPTIONS=i["node-options"]),e.npm_config_node_gyp=i["node-gyp"],e.npm_config_npm_version=i["npm-version"]||"unknown",e.npm_execpath=t.npmBin,e.NODE=e.npm_node_execpath=t.execPath};hE.exports=q$});var gE=E((D6,dE)=>{"use strict";var Uh=class extends Error{constructor(e){let r="Invalid auth configuration found: ";r+=e.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=e}};dE.exports={ErrInvalidAuth:Uh}});var AE=E((F6,yE)=>{var W$=Fa(),mE=t=>{if(!t||typeof t!="function"&&typeof t!="object")return t;if(Array.isArray(t))return t.map(e=>mE(e));for(let{type:e,description:r}of Object.values(W$))if(e===t)return r||e;return t};yE.exports=t=>[].concat(mE(t)).filter(e=>e!==void 0)});var Hh=E((T6,_E)=>{"use strict";var U$=Symbol.for("indent"),G$=Symbol.for("newline"),H$=`
58
+ `,z$=" ",Y$=/^\uFEFF/,V$=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,K$=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,wE=/^Unexpected token '?(.)'?(,)? /i,X$=t=>{let e=t.charCodeAt(0).toString(16).toUpperCase();return`0x${e.length%2?"0":""}${e}`},bE=t=>String(t).replace(Y$,""),Gh=(t,e,r=0)=>({message:`${t} while parsing ${e}`,position:r}),J$=(t,e,r=20)=>{let n=t.message;if(!e)return Gh(n,"empty string");let i=n.match(wE),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(wE,`Unexpected token ${JSON.stringify(i[1])} (${X$(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=e.length-1),o==null)return Gh(n,`'${e.slice(0,r*2)}'`);let a=o<=r?0:o-r,u=o+r>=e.length?e.length:o+r,c=`${a?"...":""}${e.slice(a,u)}${u===e.length?"":"..."}`;return Gh(n,`${e===c?"":"near "}${JSON.stringify(c)}`,o)},Ta=class extends SyntaxError{constructor(e,r,n,i){let s=J$(e,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=e,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(e){}get[Symbol.toStringTag](){return this.constructor.name}},EE=(t,e)=>{let r=JSON.parse(t,e);if(r&&typeof r=="object"){let n=t.match(K$)||t.match(V$)||[null,"",""];r[G$]=n[1]??H$,r[U$]=n[2]??z$}return r},ka=(t,e,r)=>{let n=bE(t);try{return EE(n,e)}catch(i){if(typeof t!="string"&&!Buffer.isBuffer(t)){let s=Array.isArray(t)&&t.length===0?"an empty array":String(t);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new Ta(i,n,r,ka)}};_E.exports=ka;ka.JSONParseError=Ta;ka.noExceptions=(t,e)=>{try{return EE(bE(t),e)}catch{}}});var CE=E((k6,vE)=>{var zh=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),Q$=t=>{for(let e of zh)t&&t[e]&&(t[e]=Object.keys(t[e]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=t[e][n],r),{}));return t},SE=({content:t,originalContent:e})=>{let r=Q$({...t});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...e};for(let a of zh)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=e||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};SE.knownKeys=zh;vE.exports=SE});var PE=E((N6,xE)=>{var Z$=({content:t,originalContent:e={}})=>{let r=t.scripts;if(!r)return e;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...e,scripts:{...r}}};xE.exports=Z$});var RE=E((I6,OE)=>{var e2=({content:t,originalContent:e={}})=>{let r=t.workspaces;if(!r)return e;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...e,workspaces:[...r]}};OE.exports=e2});var Yh=E(($6,LE)=>{"use strict";var t2=Cn(),r2=(t,e)=>{let r=t2(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};LE.exports=r2});var FE=E((M6,DE)=>{var n2=Symbol("proc-log.meta");DE.exports={META:n2,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...t){return process.emit("output","standard",...t)},error:function(...t){return process.emit("output","error",...t)},buffer:function(...t){return process.emit("output","buffer",...t)},flush:function(...t){return process.emit("output","flush",...t)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...t){return process.emit("log","error",...t)},notice:function(...t){return process.emit("log","notice",...t)},warn:function(...t){return process.emit("log","warn",...t)},info:function(...t){return process.emit("log","info",...t)},verbose:function(...t){return process.emit("log","verbose",...t)},http:function(...t){return process.emit("log","http",...t)},silly:function(...t){return process.emit("log","silly",...t)},timing:function(...t){return process.emit("log","timing",...t)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(t,e){process.emit("time","start",t);function r(){return process.emit("time","end",t)}if(typeof e=="function"){let n=e();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(t){return process.emit("time","end",t)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(t){process.emit("input","start");function e(){return process.emit("input","end")}if(typeof t=="function"){let r=t();return r&&r.finally?r.finally(e):(e(),r)}return e},end:function(){return process.emit("input","end")},read:function(...t){let e,r,n=new Promise((i,s)=>{e=i,r=s});return process.emit("input","read",e,r,...t),n}}}});var $a=E(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.LRUCache=void 0;var i2=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,kE=new Set,Vh=typeof process=="object"&&process?process:{},NE=(t,e,r,n)=>{typeof Vh.emitWarning=="function"?Vh.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},Na=globalThis.AbortController,TE=globalThis.AbortSignal;if(typeof Na>"u"){TE=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},Na=class{constructor(){e()}signal=new TE;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let t=Vh.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,NE("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var s2=t=>!kE.has(t),sn=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),IE=t=>sn(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ci:null:null,Ci=class extends Array{constructor(e){super(e),this.fill(0)}},Kh=class t{heap;length;static#e=!1;static create(e){let r=IE(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Xh=class t{#e;#n;#t;#r;#s;#d;#g;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#h;#f;#c;#i;#E;#_;#m;#y;#C;#A;#S;#v;#p;#b;#x;#w;#o;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#p,sizes:e.#S,keyMap:e.#f,keyList:e.#c,valList:e.#i,next:e.#E,prev:e.#_,get head(){return e.#m},get tail(){return e.#y},free:e.#C,isBackgroundFetch:r=>e.#l(r),backgroundFetch:(r,n,i,s)=>e.#U(r,n,i,s),moveToTail:r=>e.#$(r),indexes:r=>e.#L(r),rindexes:r=>e.#F(r),isStale:r=>e.#O(r)}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#h}get size(){return this.#a}get fetchMethod(){return this.#d}get memoMethod(){return this.#g}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:c,onInsert:f,disposeAfter:l,noDisposeOnSet:p,noUpdateTTL:d,maxSize:g=0,maxEntrySize:m=0,sizeCalculation:y,fetchMethod:_,memoMethod:v,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:Z,ignoreFetchAbort:ee,perf:X}=e;if(X!==void 0&&typeof X?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=X??i2,r!==0&&!sn(r))throw new TypeError("max option must be a nonnegative integer");let te=r?IE(r):Array;if(!te)throw new Error("invalid max value: "+r);if(this.#e=r,this.#n=g,this.maxEntrySize=m||this.#n,this.sizeCalculation=y,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#g=v,_!==void 0&&typeof _!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#d=_,this.#x=!!_,this.#f=new Map,this.#c=new Array(r).fill(void 0),this.#i=new Array(r).fill(void 0),this.#E=new te(r),this.#_=new te(r),this.#m=0,this.#y=0,this.#C=Kh.create(r),this.#a=0,this.#h=0,typeof c=="function"&&(this.#t=c),typeof f=="function"&&(this.#r=f),typeof l=="function"?(this.#s=l,this.#A=[]):(this.#s=void 0,this.#A=void 0),this.#b=!!this.#t,this.#o=!!this.#r,this.#w=!!this.#s,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!W,this.allowStaleOnFetchAbort=!!Z,this.ignoreFetchAbort=!!ee,this.maxEntrySize!==0){if(this.#n!==0&&!sn(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!sn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=sn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!sn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let L="LRU_CACHE_UNBOUNDED";s2(L)&&(kE.add(L),NE("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",L,t))}}getRemainingTTL(e){return this.#f.has(e)?1/0:0}#T(){let e=new Ci(this.#e),r=new Ci(this.#e);this.#p=e,this.#v=r,this.#q=(s,o,a=this.#u.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#O(s)&&this.#D(this.#c[s],"expire")},o+1);u.unref&&u.unref()}},this.#R=s=>{r[s]=e[s]!==0?this.#u.now():0},this.#P=(s,o)=>{if(e[o]){let a=e[o],u=r[o];if(!a||!u)return;s.ttl=a,s.start=u,s.now=n||i();let c=s.now-u;s.remainingTTL=a-c}};let n=0,i=()=>{let s=this.#u.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#f.get(s);if(o===void 0)return 0;let a=e[o],u=r[o];if(!a||!u)return 1/0;let c=(n||i())-u;return a-c},this.#O=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(n||i())-o>a}}#R=()=>{};#P=()=>{};#q=()=>{};#O=()=>!1;#M(){let e=new Ci(this.#e);this.#h=0,this.#S=e,this.#k=r=>{this.#h-=e[r],e[r]=0},this.#N=(r,n,i,s)=>{if(this.#l(n))return 0;if(!sn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!sn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#B=(r,n,i)=>{if(e[r]=n,this.#n){let s=this.#n-e[r];for(;this.#h>s;)this.#I(!0)}this.#h+=e[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#h)}}#k=e=>{};#B=(e,r,n)=>{};#N=(e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#L({allowStale:e=this.allowStale}={}){if(this.#a)for(let r=this.#y;!(!this.#W(r)||((e||!this.#O(r))&&(yield r),r===this.#m));)r=this.#_[r]}*#F({allowStale:e=this.allowStale}={}){if(this.#a)for(let r=this.#m;!(!this.#W(r)||((e||!this.#O(r))&&(yield r),r===this.#y));)r=this.#E[r]}#W(e){return e!==void 0&&this.#f.get(this.#c[e])===e}*entries(){for(let e of this.#L())this.#i[e]!==void 0&&this.#c[e]!==void 0&&!this.#l(this.#i[e])&&(yield[this.#c[e],this.#i[e]])}*rentries(){for(let e of this.#F())this.#i[e]!==void 0&&this.#c[e]!==void 0&&!this.#l(this.#i[e])&&(yield[this.#c[e],this.#i[e]])}*keys(){for(let e of this.#L()){let r=this.#c[e];r!==void 0&&!this.#l(this.#i[e])&&(yield r)}}*rkeys(){for(let e of this.#F()){let r=this.#c[e];r!==void 0&&!this.#l(this.#i[e])&&(yield r)}}*values(){for(let e of this.#L())this.#i[e]!==void 0&&!this.#l(this.#i[e])&&(yield this.#i[e])}*rvalues(){for(let e of this.#F())this.#i[e]!==void 0&&!this.#l(this.#i[e])&&(yield this.#i[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#L()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(e,r=this){for(let n of this.#L()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}rforEach(e,r=this){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}purgeStale(){let e=!1;for(let r of this.#F({allowStale:!0}))this.#O(r)&&(this.#D(this.#c[r],"expire"),e=!0);return e}info(e){let r=this.#f.get(e);if(r===void 0)return;let n=this.#i[r],i=this.#l(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#p&&this.#v){let o=this.#p[r],a=this.#v[r];if(o&&a){let u=o-(this.#u.now()-a);s.ttl=u,s.start=Date.now()}}return this.#S&&(s.size=this.#S[r]),s}dump(){let e=[];for(let r of this.#L({allowStale:!0})){let n=this.#c[r],i=this.#i[r],s=this.#l(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#p&&this.#v){o.ttl=this.#p[r];let a=this.#u.now()-this.#v[r];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[r]),e.unshift([n,o])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=this.#u.now()-i}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,f=this.#N(e,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.#D(e,"set"),this;let l=this.#a===0?void 0:this.#f.get(e);if(l===void 0)l=this.#a===0?this.#y:this.#C.length!==0?this.#C.pop():this.#a===this.#e?this.#I(!1):this.#a,this.#c[l]=e,this.#i[l]=r,this.#f.set(e,l),this.#E[this.#y]=l,this.#_[l]=this.#y,this.#y=l,this.#a++,this.#B(l,f,u),u&&(u.set="add"),c=!1,this.#o&&this.#r?.(r,e,"add");else{this.#$(l);let p=this.#i[l];if(r!==p){if(this.#x&&this.#l(p)){p.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=p;d!==void 0&&!o&&(this.#b&&this.#t?.(d,e,"set"),this.#w&&this.#A?.push([d,e,"set"]))}else o||(this.#b&&this.#t?.(p,e,"set"),this.#w&&this.#A?.push([p,e,"set"]));if(this.#k(l),this.#B(l,f,u),this.#i[l]=r,u){u.set="replace";let d=p&&this.#l(p)?p.__staleWhileFetching:p;d!==void 0&&(u.oldValue=d)}}else u&&(u.set="update");this.#o&&this.onInsert?.(r,e,r===p?"update":"replace")}if(i!==0&&!this.#p&&this.#T(),this.#p&&(c||this.#q(l,i,s),u&&this.#P(u,l)),!o&&this.#w&&this.#A){let p=this.#A,d;for(;d=p?.shift();)this.#s?.(...d)}return this}pop(){try{for(;this.#a;){let e=this.#i[this.#m];if(this.#I(!0),this.#l(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#w&&this.#A){let e=this.#A,r;for(;r=e?.shift();)this.#s?.(...r)}}}#I(e){let r=this.#m,n=this.#c[r],i=this.#i[r];return this.#x&&this.#l(i)?i.__abortController.abort(new Error("evicted")):(this.#b||this.#w)&&(this.#b&&this.#t?.(i,n,"evict"),this.#w&&this.#A?.push([i,n,"evict"])),this.#k(r),e&&(this.#c[r]=void 0,this.#i[r]=void 0,this.#C.push(r)),this.#a===1?(this.#m=this.#y=0,this.#C.length=0):this.#m=this.#E[r],this.#f.delete(n),this.#a--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#f.get(e);if(s!==void 0){let o=this.#i[s];if(this.#l(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#O(s))i&&(i.has="stale",this.#P(i,s));else return n&&this.#R(s),i&&(i.has="hit",this.#P(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=this.#f.get(e);if(i===void 0||!n&&this.#O(i))return;let s=this.#i[i];return this.#l(s)?s.__staleWhileFetching:s}#U(e,r,n,i){let s=r===void 0?void 0:this.#i[r];if(this.#l(s))return s;let o=new Na,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:i},c=(m,y=!1)=>{let{aborted:_}=o.signal,v=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(_&&!y?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,v&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),_&&!v&&!y)return l(o.signal.reason);let F=d,k=this.#i[r];return(k===d||v&&y&&k===void 0)&&(m===void 0?F.__staleWhileFetching!==void 0?this.#i[r]=F.__staleWhileFetching:this.#D(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,m,u.options))),m},f=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),l(m)),l=m=>{let{aborted:y}=o.signal,_=y&&n.allowStaleOnFetchAbort,v=_||n.allowStaleOnFetchRejection,F=v||n.noDeleteOnFetchRejection,k=d;if(this.#i[r]===d&&(!F||k.__staleWhileFetching===void 0?this.#D(e,"fetch"):_||(this.#i[r]=k.__staleWhileFetching)),v)return n.status&&k.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw m},p=(m,y)=>{let _=this.#d?.(e,s,u);_&&_ instanceof Promise&&_.then(v=>m(v===void 0?void 0:v),y),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(void 0),n.allowStaleOnFetchAbort&&(m=v=>c(v,!0)))})};n.status&&(n.status.fetchDispatched=!0);let d=new Promise(p).then(c,f),g=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,g,{...u.options,status:void 0}),r=this.#f.get(e)):this.#i[r]=g,g}#l(e){if(!this.#x)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Na}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:m,forceRefresh:y=!1,status:_,signal:v}=r;if(!this.#x)return _&&(_.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:_});let F={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:c,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:g,ignoreFetchAbort:d,status:_,signal:v},k=this.#f.get(e);if(k===void 0){_&&(_.fetch="miss");let W=this.#U(e,k,F,m);return W.__returned=W}else{let W=this.#i[k];if(this.#l(W)){let L=n&&W.__staleWhileFetching!==void 0;return _&&(_.fetch="inflight",L&&(_.returnedStale=!0)),L?W.__staleWhileFetching:W.__returned=W}let Z=this.#O(k);if(!y&&!Z)return _&&(_.fetch="hit"),this.#$(k),i&&this.#R(k),_&&this.#P(_,k),W;let ee=this.#U(e,k,F,m),te=ee.__staleWhileFetching!==void 0&&n;return _&&(_.fetch=Z?"stale":"refresh",te&&Z&&(_.returnedStale=!0)),te?ee.__staleWhileFetching:ee.__returned=ee}}async forceFetch(e,r={}){let n=await this.fetch(e,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,r={}){let n=this.#g;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let u=n(e,a,{options:o,context:i});return this.set(e,u,o),u}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#f.get(e);if(a!==void 0){let u=this.#i[a],c=this.#l(u);return o&&this.#P(o,a),this.#O(a)?(o&&(o.get="stale"),c?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(s||this.#D(e,"expire"),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),c?u.__staleWhileFetching:(this.#$(a),i&&this.#R(a),u))}else o&&(o.get="miss")}#G(e,r){this.#_[r]=e,this.#E[e]=r}#$(e){e!==this.#y&&(e===this.#m?this.#m=this.#E[e]:this.#G(this.#_[e],this.#E[e]),this.#G(this.#y,e),this.#y=e)}delete(e){return this.#D(e,"delete")}#D(e,r){let n=!1;if(this.#a!==0){let i=this.#f.get(e);if(i!==void 0)if(n=!0,this.#a===1)this.#j(r);else{this.#k(i);let s=this.#i[i];if(this.#l(s)?s.__abortController.abort(new Error("deleted")):(this.#b||this.#w)&&(this.#b&&this.#t?.(s,e,r),this.#w&&this.#A?.push([s,e,r])),this.#f.delete(e),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#y)this.#y=this.#_[i];else if(i===this.#m)this.#m=this.#E[i];else{let o=this.#_[i];this.#E[o]=this.#E[i];let a=this.#E[i];this.#_[a]=this.#_[i]}this.#a--,this.#C.push(i)}}if(this.#w&&this.#A?.length){let i=this.#A,s;for(;s=i?.shift();)this.#s?.(...s)}return n}clear(){return this.#j("delete")}#j(e){for(let r of this.#F({allowStale:!0})){let n=this.#i[r];if(this.#l(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#c[r];this.#b&&this.#t?.(n,i,e),this.#w&&this.#A?.push([n,i,e])}}if(this.#f.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#p&&this.#v&&(this.#p.fill(0),this.#v.fill(0)),this.#S&&this.#S.fill(0),this.#m=0,this.#y=0,this.#C.length=0,this.#h=0,this.#a=0,this.#w&&this.#A){let r=this.#A,n;for(;n=r?.shift();)this.#s?.(...n)}}};Ia.LRUCache=Xh});var BE=E((W6,ME)=>{"use strict";var ke=(...t)=>t.every(e=>e)?t.join(""):"",it=t=>t?encodeURIComponent(t):"",$E=t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),o2={sshtemplate:({domain:t,user:e,project:r,committish:n})=>`git@${t}:${e}/${r}.git${ke("#",n)}`,sshurltemplate:({domain:t,user:e,project:r,committish:n})=>`git+ssh://git@${t}/${e}/${r}.git${ke("#",n)}`,edittemplate:({domain:t,user:e,project:r,committish:n,editpath:i,path:s})=>`https://${t}/${e}/${r}${ke("/",i,"/",it(n||"HEAD"),"/",s)}`,browsetemplate:({domain:t,user:e,project:r,committish:n,treepath:i})=>`https://${t}/${e}/${r}${ke("/",i,"/",it(n))}`,browsetreetemplate:({domain:t,user:e,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${t}/${e}/${r}/${i}/${it(n||"HEAD")}/${s}${ke("#",a(o||""))}`,browseblobtemplate:({domain:t,user:e,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${t}/${e}/${r}/${i}/${it(n||"HEAD")}/${s}${ke("#",a(o||""))}`,docstemplate:({domain:t,user:e,project:r,treepath:n,committish:i})=>`https://${t}/${e}/${r}${ke("/",n,"/",it(i))}#readme`,httpstemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git+https://${ke(t,"@")}${e}/${r}/${n}.git${ke("#",i)}`,filetemplate:({domain:t,user:e,project:r,committish:n,path:i})=>`https://${t}/${e}/${r}/raw/${it(n||"HEAD")}/${i}`,shortcuttemplate:({type:t,user:e,project:r,committish:n})=>`${t}:${e}/${r}${ke("#",n)}`,pathtemplate:({user:t,project:e,committish:r})=>`${t}/${e}${ke("#",r)}`,bugstemplate:({domain:t,user:e,project:r})=>`https://${t}/${e}/${r}/issues`,hashformat:$E},on={};on.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:e,project:r,committish:n,path:i})=>`https://${ke(t,"@")}raw.githubusercontent.com/${e}/${r}/${it(n||"HEAD")}/${i}`,gittemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git://${ke(t,"@")}${e}/${r}/${n}.git${ke("#",i)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://codeload.${t}/${e}/${r}/tar.gz/${it(n||"HEAD")}`,extract:t=>{let[,e,r,n,i]=t.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=t.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:i}}};on.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:e,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${t}/${e}/${r}${ke("/",i,"/",it(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/get/${it(n||"HEAD")}.tar.gz`,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}}};on.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/repository/archive.tar.gz?ref=${it(n||"HEAD")}`,extract:t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let r=e.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:t.hash.slice(1)}}};on.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:e,committish:r})=>`git@${t}:${e}.git${ke("#",r)}`,sshurltemplate:({domain:t,project:e,committish:r})=>`git+ssh://git@${t}/${e}.git${ke("#",r)}`,edittemplate:({domain:t,user:e,project:r,committish:n,editpath:i})=>`https://${t}/${e}/${r}${ke("/",it(n))}/${i}`,browsetemplate:({domain:t,project:e,committish:r})=>`https://${t}/${e}${ke("/",it(r))}`,browsetreetemplate:({domain:t,project:e,committish:r,path:n,hashformat:i})=>`https://${t}/${e}${ke("/",it(r))}${ke("#",i(n))}`,browseblobtemplate:({domain:t,project:e,committish:r,path:n,hashformat:i})=>`https://${t}/${e}${ke("/",it(r))}${ke("#",i(n))}`,docstemplate:({domain:t,project:e,committish:r})=>`https://${t}/${e}${ke("/",it(r))}`,httpstemplate:({domain:t,project:e,committish:r})=>`git+https://${t}/${e}.git${ke("#",r)}`,filetemplate:({user:t,project:e,committish:r,path:n})=>`https://gist.githubusercontent.com/${t}/${e}/raw${ke("/",it(r))}/${n}`,shortcuttemplate:({type:t,project:e,committish:r})=>`${t}:${e}${ke("#",r)}`,pathtemplate:({project:t,committish:e})=>`${t}${ke("#",e)}`,bugstemplate:({domain:t,project:e})=>`https://${t}/${e}`,gittemplate:({domain:t,project:e,committish:r})=>`git://${t}/${e}.git${ke("#",r)}`,tarballtemplate:({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${it(e||"HEAD")}`,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(n!=="raw"){if(!r){if(!e)return;r=e,e=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:e,project:r,committish:t.hash.slice(1)}}},hashformat:function(t){return t&&"file-"+$E(t)}};on.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:e,project:r,committish:n,path:i})=>`https://${t}/${e}/${r}/blob/${it(n)||"HEAD"}/${i}`,httpstemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}.git${ke("#",n)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/archive/${it(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}}};for(let[t,e]of Object.entries(on))on[t]=Object.assign({},o2,e);ME.exports=on});var Qh=E((U6,qE)=>{var a2=require("url"),Jh=(t,e,r)=>{let n=t.indexOf(r);return t.lastIndexOf(e,n>-1?n:1/0)},jE=t=>{try{return new a2.URL(t)}catch{}},u2=(t,e)=>{let r=t.indexOf(":"),n=t.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(e,n)||t.substr(r,3)==="://")return t;let i=t.indexOf("@");return i>-1?i>r?`git+ssh://${t}`:t:`${t.slice(0,r+1)}//${t.slice(r+1)}`},c2=t=>{let e=Jh(t,"@","#"),r=Jh(t,":","#");return r>e&&(t=t.slice(0,r)+"/"+t.slice(r+1)),Jh(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t};qE.exports=(t,e)=>{let r=e?u2(t,e):t;return jE(r)||jE(c2(r))}});var UE=E((G6,WE)=>{"use strict";var l2=Qh(),f2=t=>{let e=t.indexOf("#"),r=t.indexOf("/"),n=t.indexOf("/",r+1),i=t.indexOf(":"),s=/\s/.exec(t),o=t.indexOf("@"),a=!s||e>-1&&s.index>e,u=o===-1||e>-1&&o>e,c=i===-1||e>-1&&i>e,f=n===-1||e>-1&&n>e,l=r>0,p=e>-1?t[e-1]!=="/":!t.endsWith("/"),d=!t.startsWith(".");return a&&l&&p&&d&&u&&c&&f};WE.exports=(t,e,{gitHosts:r,protocols:n})=>{if(!t)return;let i=f2(t)?`github:${t}`:t,s=l2(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],u=o||a;if(!u)return;let c=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,p=null,d=null,g=null;try{if(o){let m=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,y=m.indexOf("@");y>-1&&(m=m.slice(y+1));let _=m.lastIndexOf("/");_>-1?(p=decodeURIComponent(m.slice(0,_)),p||(p=null),d=decodeURIComponent(m.slice(_+1))):d=decodeURIComponent(m),d.endsWith(".git")&&(d=d.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),g="shortcut"}else{if(!c.protocols.includes(s.protocol))return;let m=c.extract(s);if(!m)return;p=m.user&&decodeURIComponent(m.user),d=decodeURIComponent(m.project),l=decodeURIComponent(m.committish),g=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[u,p,f,d,l,g,e]}});var Ba=E((H6,GE)=>{"use strict";var{LRUCache:h2}=$a(),p2=BE(),d2=UE(),g2=Qh(),Zh=new h2({max:1e3});function m2(t){try{let{protocol:e,hostname:r,pathname:n}=new URL(t);if(!r)return null;let i=/(?:git\+)http:$/.test(e)?"http:":"https:",s=n.replace(/\.git$/,"");return`${i}//${r}${s}`}catch{return null}}var Ma=class t{constructor(e,r,n,i,s,o,a={}){Object.assign(this,t.#e[e],{type:e,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#n={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,r){t.#e[e]=r,t.#e.byDomain[r.domain]=e,t.#e.byShortcut[`${e}:`]=e,t.#n[`${e}:`]={name:e}}static fromUrl(e,r){if(typeof e!="string")return;let n=e+JSON.stringify(r||{});if(!Zh.has(n)){let i=d2(e,r,{gitHosts:t.#e,protocols:t.#n});Zh.set(n,i?new t(...i):void 0)}return Zh.get(n)}static fromManifest(e,r={}){if(!e||typeof e!="object")return;let n=e.repository,i=n&&(typeof n=="string"?n:typeof n=="object"&&typeof n.url=="string"?n.url:null);if(!i)throw new Error("no repository");let s=i&&t.fromUrl(i.replace(/^git\+/,""),r)||null;if(s)return s;let o=m2(i);return t.fromUrl(o,r)||o}static parseUrl(e){return g2(e)}#t(e,r){if(typeof e!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=e(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#t(this.sshtemplate,e)}sshurl(e){return this.#t(this.sshurltemplate,e)}browse(e,...r){return typeof e!="string"?this.#t(this.browsetemplate,e):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:e}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:e})}browseFile(e,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:e}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:e})}docs(e){return this.#t(this.docstemplate,e)}bugs(e){return this.#t(this.bugstemplate,e)}https(e){return this.#t(this.httpstemplate,e)}git(e){return this.#t(this.gittemplate,e)}shortcut(e){return this.#t(this.shortcuttemplate,e)}path(e){return this.#t(this.pathtemplate,e)}tarball(e){return this.#t(this.tarballtemplate,{...e,noCommittish:!1})}file(e,r){return this.#t(this.filetemplate,{...r,path:e})}edit(e,r){return this.#t(this.edittemplate,{...r,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(p2))Ma.addHost(t,e);GE.exports=Ma});var zE=E(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.range=xn.balanced=void 0;var y2=(t,e,r)=>{let n=t instanceof RegExp?HE(t,r):t,i=e instanceof RegExp?HE(e,r):e,s=n!==null&&i!=null&&(0,xn.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}};xn.balanced=y2;var HE=(t,e)=>{let r=e.match(t);return r?r[0]:null},A2=(t,e,r)=>{let n,i,s,o,a,u=r.indexOf(t),c=r.indexOf(e,u+1),f=u;if(u>=0&&c>0){if(t===e)return[u,c];for(n=[],s=r.length;f>=0&&!a;){if(f===u)n.push(f),u=r.indexOf(t,f+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,c])}else i=n.pop(),i!==void 0&&i<s&&(s=i,o=c),c=r.indexOf(e,f+1);f=u<c&&u>=0?u:c}n.length&&o!==void 0&&(a=[s,o])}return a};xn.range=A2});var ZE=E(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.EXPANSION_MAX=void 0;xi.expand=D2;var YE=zE(),VE="\0SLASH"+Math.random()+"\0",KE="\0OPEN"+Math.random()+"\0",tp="\0CLOSE"+Math.random()+"\0",XE="\0COMMA"+Math.random()+"\0",JE="\0PERIOD"+Math.random()+"\0",w2=new RegExp(VE,"g"),b2=new RegExp(KE,"g"),E2=new RegExp(tp,"g"),_2=new RegExp(XE,"g"),S2=new RegExp(JE,"g"),v2=/\\\\/g,C2=/\\{/g,x2=/\\}/g,P2=/\\,/g,O2=/\\\./g;xi.EXPANSION_MAX=1e5;function ep(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function R2(t){return t.replace(v2,VE).replace(C2,KE).replace(x2,tp).replace(P2,XE).replace(O2,JE)}function L2(t){return t.replace(w2,"\\").replace(b2,"{").replace(E2,"}").replace(_2,",").replace(S2,".")}function QE(t){if(!t)return[""];let e=[],r=(0,YE.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:i,post:s}=r,o=n.split(",");o[o.length-1]+="{"+i+"}";let a=QE(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function D2(t,e={}){if(!t)return[];let{max:r=xi.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),As(R2(t),r,!0).map(L2)}function F2(t){return"{"+t+"}"}function T2(t){return/^-?0\d/.test(t)}function k2(t,e){return t<=e}function N2(t,e){return t>=e}function As(t,e,r){let n=[],i=(0,YE.balanced)("{","}",t);if(!i)return[t];let s=i.pre,o=i.post.length?As(i.post,e,!1):[""];if(/\$$/.test(i.pre))for(let a=0;a<o.length&&a<e;a++){let u=s+"{"+i.body+"}"+o[a];n.push(u)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=a||u,f=i.body.indexOf(",")>=0;if(!c&&!f)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+tp+i.post,As(t,e,!0)):[t];let l;if(c)l=i.body.split(/\.\./);else if(l=QE(i.body),l.length===1&&l[0]!==void 0&&(l=As(l[0],e,!1).map(F2),l.length===1))return o.map(d=>i.pre+l[0]+d);let p;if(c&&l[0]!==void 0&&l[1]!==void 0){let d=ep(l[0]),g=ep(l[1]),m=Math.max(l[0].length,l[1].length),y=l.length===3&&l[2]!==void 0?Math.max(Math.abs(ep(l[2])),1):1,_=k2;g<d&&(y*=-1,_=N2);let F=l.some(T2);p=[];for(let k=d;_(k,g)&&p.length<e;k+=y){let W;if(u)W=String.fromCharCode(k),W==="\\"&&(W="");else if(W=String(k),F){let Z=m-W.length;if(Z>0){let ee=new Array(Z+1).join("0");k<0?W="-"+ee+W.slice(1):W=ee+W}}p.push(W)}}else{p=[];for(let d=0;d<l.length;d++)p.push.apply(p,As(l[d],e,!1))}for(let d=0;d<p.length;d++)for(let g=0;g<o.length&&n.length<e;g++){let m=s+p[d]+o[g];(!r||c||m)&&n.push(m)}}return n}});var e_=E(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.assertValidPattern=void 0;var I2=1024*64,$2=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>I2)throw new TypeError("pattern is too long")};ja.assertValidPattern=$2});var r_=E(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.parseClass=void 0;var M2={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ws=t=>t.replace(/[[\]\\-]/g,"\\$&"),B2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t_=t=>t.join(""),j2=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,u=!1,c=!1,f=r,l="";e:for(;s<t.length;){let m=t.charAt(s);if((m==="!"||m==="^")&&s===r+1){c=!0,s++;continue}if(m==="]"&&o&&!u){f=s+1;break}if(o=!0,m==="\\"&&!u){u=!0,s++;continue}if(m==="["&&!u){for(let[y,[_,v,F]]of Object.entries(M2))if(t.startsWith(y,s)){if(l)return["$.",!1,t.length-r,!0];s+=y.length,F?i.push(_):n.push(_),a=a||v;continue e}}if(u=!1,l){m>l?n.push(ws(l)+"-"+ws(m)):m===l&&n.push(ws(m)),l="",s++;continue}if(t.startsWith("-]",s+1)){n.push(ws(m+"-")),s+=2;continue}if(t.startsWith("-",s+1)){l=m,s+=2;continue}n.push(ws(m)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let m=n[0].length===2?n[0].slice(-1):n[0];return[B2(m),!1,f-r,!1]}let p="["+(c?"^":"")+t_(n)+"]",d="["+(c?"":"^")+t_(i)+"]";return[n.length&&i.length?"("+p+"|"+d+")":n.length?p:d,a,f-r,!0]};qa.parseClass=j2});var Ua=E(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.unescape=void 0;var q2=(t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");Wa.unescape=q2});var ip=E(Ya=>{"use strict";var It;Object.defineProperty(Ya,"__esModule",{value:!0});Ya.AST=void 0;var W2=r_(),Ga=Ua(),U2=new Set(["!","?","+","*","@"]),rp=t=>U2.has(t),n_=t=>rp(t.type),G2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),H2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),z2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),i_=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Y2="(?!(?:^|/)\\.\\.?(?:$|/))",Ha="(?!\\.)",V2=new Set(["[","."]),K2=new Set(["..","."]),X2=new Set("().*{}+?[]^$\\!"),J2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),np="[^/]",s_=np+"*?",o_=np+"+?",Q2=0,za=class{type;#e;#n;#t=!1;#r=[];#s;#d;#g;#u=!1;#a;#h;#f=!1;id=++Q2;get depth(){return(this.#s?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#s?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,r,n={}){this.type=e,e&&(this.#n=!0),this.#s=r,this.#e=this.#s?this.#s.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#g=this.#e===this?[]:this.#e.#g,e==="!"&&!this.#e.#u&&this.#g.push(this),this.#d=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#h!==void 0?this.#h:this.type?this.#h=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#h=this.#r.map(e=>String(e)).join("")}#c(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#g.pop();){if(e.type!=="!")continue;let r=e,n=r.#s;for(;n;){for(let i=r.#d+1;!n.type&&i<n.#r.length;i++)for(let s of e.#r){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#r[i])}r=n,n=r.#s}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof It&&r.#s===this))throw new Error("invalid part: "+r);this.#r.push(r)}}toJSON(){let e=this.type===null?this.#r.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#r.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#s?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#d===0)return!0;let e=this.#s;for(let r=0;r<this.#d;r++){let n=e.#r[r];if(!(n instanceof It&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let e=this.#s?this.#s.#r.length:0;return this.#d===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new It(this.type,e);for(let n of this.#r)r.copyIn(n);return r}static#i(e,r,n,i,s){let o=i.maxExtglobRecursion??2,a=!1,u=!1,c=-1,f=!1;if(r.type===null){let m=n,y="";for(;m<e.length;){let _=e.charAt(m++);if(a||_==="\\"){a=!a,y+=_;continue}if(u){m===c+1?(_==="^"||_==="!")&&(f=!0):_==="]"&&!(m===c+2&&f)&&(u=!1),y+=_;continue}else if(_==="["){u=!0,c=m,f=!1,y+=_;continue}if(!i.noext&&rp(_)&&e.charAt(m)==="("&&s<=o){r.push(y),y="";let F=new It(_,r);m=It.#i(e,F,m,i,s+1),r.push(F);continue}y+=_}return r.push(y),m}let l=n+1,p=new It(null,r),d=[],g="";for(;l<e.length;){let m=e.charAt(l++);if(a||m==="\\"){a=!a,g+=m;continue}if(u){l===c+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(l===c+2&&f)&&(u=!1),g+=m;continue}else if(m==="["){u=!0,c=l,f=!1,g+=m;continue}if(!i.noext&&rp(m)&&e.charAt(l)==="("&&(s<=o||r&&r.#m(m))){let _=r&&r.#m(m)?0:1;p.push(g),g="";let v=new It(m,p);p.push(v),l=It.#i(e,v,l,i,s+_);continue}if(m==="|"){p.push(g),g="",d.push(p),p=new It(null,r);continue}if(m===")")return g===""&&r.#r.length===0&&(r.#f=!0),p.push(g),g="",r.push(...d,p),l;g+=m}return r.type=null,r.#n=void 0,r.#r=[e.substring(n-1)],l}#E(e){return this.#_(e,H2)}#_(e,r=G2){if(!e||typeof e!="object"||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!="object"||n.type===null?!1:this.#m(n.type,r)}#m(e,r=z2){return!!r.get(this.type)?.includes(e)}#y(e,r){let n=e.#r[0],i=new It(null,n,this.options);i.#r.push(""),n.push(i),this.#C(e,r)}#C(e,r){let n=e.#r[0];this.#r.splice(r,1,...n.#r);for(let i of n.#r)typeof i=="object"&&(i.#s=this);this.#h=void 0}#A(e){return!!i_.get(this.type)?.has(e)}#S(e){if(!e||typeof e!="object"||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let r=e.#r[0];return!r||typeof r!="object"||r.type===null?!1:this.#A(r.type)}#v(e){let r=i_.get(this.type),n=e.#r[0],i=r?.get(n.type);if(!i)return!1;this.#r=n.#r;for(let s of this.#r)typeof s=="object"&&(s.#s=this);this.type=i,this.#h=void 0,this.#f=!1}static fromGlob(e,r={}){let n=new It(null,void 0,r);return It.#i(e,n,0,r,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#a}toRegExpSource(e){let r=e??!!this.#a.dot;if(this.#e===this&&(this.#p(),this.#c()),!n_(this)){let u=this.isStart()&&this.isEnd()&&!this.#r.some(d=>typeof d!="string"),c=this.#r.map(d=>{let[g,m,y,_]=typeof d=="string"?It.#x(d,this.#n,u):d.toRegExpSource(e);return this.#n=this.#n||y,this.#t=this.#t||_,g}).join(""),f="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&K2.has(this.#r[0]))){let g=V2,m=r&&g.has(c.charAt(0))||c.startsWith("\\.")&&g.has(c.charAt(2))||c.startsWith("\\.\\.")&&g.has(c.charAt(4)),y=!r&&!e&&g.has(c.charAt(0));f=m?Y2:y?Ha:""}let l="";return this.isEnd()&&this.#e.#u&&this.#s?.type==="!"&&(l="(?:$|\\/)"),[f+c+l,(0,Ga.unescape)(c),this.#n=!!this.#n,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#b(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString(),c=this;return c.#r=[u],c.type=null,c.#n=void 0,[u,(0,Ga.unescape)(this.toString()),!1,!1]}let o=!n||e||r||!Ha?"":this.#b(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#f)a=(this.isStart()&&!r?Ha:"")+o_;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Ha:"")+s_+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+u}return[a,(0,Ga.unescape)(s),this.#n=!!this.#n,this.#t]}#p(){if(n_(this)){let e=0,r=!1;do{r=!0;for(let n=0;n<this.#r.length;n++){let i=this.#r[n];typeof i=="object"&&(i.#p(),this.#_(i)?(r=!1,this.#C(i,n)):this.#E(i)?(r=!1,this.#y(i,n)):this.#S(i)&&(r=!1,this.#v(i)))}}while(!r&&++e<10)}else for(let e of this.#r)typeof e=="object"&&e.#p();this.#h=void 0}#b(e){return this.#r.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(e);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#x(e,r,n=!1){let i=!1,s="",o=!1,a=!1;for(let u=0;u<e.length;u++){let c=e.charAt(u);if(i){i=!1,s+=(X2.has(c)?"\\":"")+c;continue}if(c==="*"){if(a)continue;a=!0,s+=n&&/^[*]+$/.test(e)?o_:s_,r=!0;continue}else a=!1;if(c==="\\"){u===e.length-1?s+="\\\\":i=!0;continue}if(c==="["){let[f,l,p,d]=(0,W2.parseClass)(e,u);if(p){s+=f,o=o||l,u+=p-1,r=r||d;continue}}if(c==="?"){s+=np,r=!0;continue}s+=J2(c)}return[s,(0,Ga.unescape)(e),!!r,o]}};Ya.AST=za;It=za});var sp=E(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.escape=void 0;var Z2=(t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");Va.escape=Z2});var kr=E(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.unescape=le.escape=le.AST=le.Minimatch=le.match=le.makeRe=le.braceExpand=le.defaults=le.filter=le.GLOBSTAR=le.sep=le.minimatch=void 0;var eM=ZE(),Ka=e_(),c_=ip(),tM=sp(),rM=Ua(),nM=(t,e,r={})=>((0,Ka.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Pn(e,r).match(t));le.minimatch=nM;var iM=/^\*+([^+@!?*[(]*)$/,sM=t=>e=>!e.startsWith(".")&&e.endsWith(t),oM=t=>e=>e.endsWith(t),aM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),uM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),cM=/^\*+\.\*+$/,lM=t=>!t.startsWith(".")&&t.includes("."),fM=t=>t!=="."&&t!==".."&&t.includes("."),hM=/^\.\*+$/,pM=t=>t!=="."&&t!==".."&&t.startsWith("."),dM=/^\*+$/,gM=t=>t.length!==0&&!t.startsWith("."),mM=t=>t.length!==0&&t!=="."&&t!=="..",yM=/^\?+([^+@!?*[(]*)?$/,AM=([t,e=""])=>{let r=l_([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},wM=([t,e=""])=>{let r=f_([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},bM=([t,e=""])=>{let r=f_([t]);return e?n=>r(n)&&n.endsWith(e):r},EM=([t,e=""])=>{let r=l_([t]);return e?n=>r(n)&&n.endsWith(e):r},l_=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},f_=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},h_=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",a_={win32:{sep:"\\"},posix:{sep:"/"}};le.sep=h_==="win32"?a_.win32.sep:a_.posix.sep;le.minimatch.sep=le.sep;le.GLOBSTAR=Symbol("globstar **");le.minimatch.GLOBSTAR=le.GLOBSTAR;var _M="[^/]",SM=_M+"*?",vM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",CM="(?:(?!(?:\\/|^)\\.).)*?",xM=(t,e={})=>r=>(0,le.minimatch)(r,t,e);le.filter=xM;le.minimatch.filter=le.filter;var Kt=(t,e={})=>Object.assign({},t,e),PM=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return le.minimatch;let e=le.minimatch;return Object.assign((n,i,s={})=>e(n,i,Kt(t,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,Kt(t,s))}static defaults(i){return e.defaults(Kt(t,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,Kt(t,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Kt(t,s))}},unescape:(n,i={})=>e.unescape(n,Kt(t,i)),escape:(n,i={})=>e.escape(n,Kt(t,i)),filter:(n,i={})=>e.filter(n,Kt(t,i)),defaults:n=>e.defaults(Kt(t,n)),makeRe:(n,i={})=>e.makeRe(n,Kt(t,i)),braceExpand:(n,i={})=>e.braceExpand(n,Kt(t,i)),match:(n,i,s={})=>e.match(n,i,Kt(t,s)),sep:e.sep,GLOBSTAR:le.GLOBSTAR})};le.defaults=PM;le.minimatch.defaults=le.defaults;var OM=(t,e={})=>((0,Ka.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,eM.expand)(t,{max:e.braceExpandMax}));le.braceExpand=OM;le.minimatch.braceExpand=le.braceExpand;var RM=(t,e={})=>new Pn(t,e).makeRe();le.makeRe=RM;le.minimatch.makeRe=le.makeRe;var LM=(t,e,r={})=>{let n=new Pn(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};le.match=LM;le.minimatch.match=le.match;var u_=/[?*]|[+@!]\(.*?\)|\[|\]/,DM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,Ka.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||h_,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=s[0]===""&&s[1]===""&&(s[2]==="?"||!u_.test(s[2]))&&!u_.test(s[3]),c=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(c)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n of e)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,e.splice(n-1,2),n-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],u=n[i+2],c=n[i+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",e.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let n=r+1;n<e.length;n++){let i=this.partsMatch(e[r],e[n],!this.preserveMultipleSlashes);if(i){e[r]=[],e[n]=i;break}}return e.filter(r=>r.length)}partsMatch(e,r,n=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<r.length;)if(e[i]===r[s])o.push(a==="b"?r[s]:e[i]),i++,s++;else if(n&&e[i]==="**"&&r[s]===e[i+1])o.push(e[i]),i++;else if(n&&r[s]==="**"&&e[i]===r[s+1])o.push(r[s]),s++;else if(e[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(r[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n=!1){let i=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),c=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!c&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),l=u?3:a?0:void 0,p=f?3:c?0:void 0;if(typeof l=="number"&&typeof p=="number"){let[d,g]=[e[l],r[p]];d.toLowerCase()===g.toLowerCase()&&(r[p]=d,s=p,i=l)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(le.GLOBSTAR)?this.#e(e,r,n,i,s):this.#t(e,r,n,i,s)}#e(e,r,n,i,s){let o=r.indexOf(le.GLOBSTAR,s),a=r.lastIndexOf(le.GLOBSTAR),[u,c,f]=n?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(u.length){let v=e.slice(i,i+u.length);if(!this.#t(v,u,n,0,0))return!1;i+=u.length,s+=u.length}let l=0;if(f.length){if(f.length+i>e.length)return!1;let v=e.length-f.length;if(this.#t(e,f,n,v,0))l=f.length;else{if(e[e.length-1]!==""||i+f.length===e.length||(v--,!this.#t(e,f,n,v,0)))return!1;l=f.length+1}}if(!c.length){let v=!!l;for(let F=i;F<e.length-l;F++){let k=String(e[F]);if(v=!0,k==="."||k===".."||!this.options.dot&&k.startsWith("."))return!1}return n||v}let p=[[[],0]],d=p[0],g=0,m=[0];for(let v of c)v===le.GLOBSTAR?(m.push(g),d=[[],0],p.push(d)):(d[0].push(v),g++);let y=p.length-1,_=e.length-l;for(let v of p)v[1]=_-(m[y--]+v[0].length);return!!this.#n(e,p,i,0,n,0,!!l)}#n(e,r,n,i,s,o,a){let u=r[i];if(!u){for(let l=n;l<e.length;l++){a=!0;let p=e[l];if(p==="."||p===".."||!this.options.dot&&p.startsWith("."))return!1}return a}let[c,f]=u;for(;n<=f;){if(this.#t(e.slice(0,n+c.length),c,s,n,0)&&o<this.maxGlobstarRecursion){let d=this.#n(e,r,n+c.length,i+1,s,o+1,a);if(d!==!1)return d}let p=e[n];if(p==="."||p===".."||!this.options.dot&&p.startsWith("."))return!1;n++}return s||null}#t(e,r,n,i,s){let o,a,u,c;for(o=i,a=s,c=e.length,u=r.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");let f=r[a],l=e[o];if(this.debug(r,f,l),f===!1||f===le.GLOBSTAR)return!1;let p;if(typeof f=="string"?(p=l===f,this.debug("string match",f,l,p)):(p=f.test(l),this.debug("pattern match",f,l,p)),!p)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,le.braceExpand)(this.pattern,this.options)}parse(e){(0,Ka.assertValidPattern)(e);let r=this.options;if(e==="**")return le.GLOBSTAR;if(e==="")return"";let n,i=null;(n=e.match(dM))?i=r.dot?mM:gM:(n=e.match(iM))?i=(r.nocase?r.dot?uM:aM:r.dot?oM:sM)(n[1]):(n=e.match(yM))?i=(r.nocase?r.dot?wM:AM:r.dot?bM:EM)(n):(n=e.match(cM))?i=r.dot?fM:lM:(n=e.match(hM))&&(i=pM);let s=c_.AST.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?SM:r.dot?vM:CM,i=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let c=u.map(l=>{if(l instanceof RegExp)for(let p of l.flags.split(""))i.add(p);return typeof l=="string"?DM(l):l===le.GLOBSTAR?le.GLOBSTAR:l._src});c.forEach((l,p)=>{let d=c[p+1],g=c[p-1];l!==le.GLOBSTAR||g===le.GLOBSTAR||(g===void 0?d!==void 0&&d!==le.GLOBSTAR?c[p+1]="(?:\\/|"+n+"\\/)?"+d:c[p]=n:d===void 0?c[p-1]=g+"(?:\\/|\\/"+n+")?":d!==le.GLOBSTAR&&(c[p-1]=g+"(?:\\/|\\/"+n+"\\/)"+d,c[p+1]=le.GLOBSTAR))});let f=c.filter(l=>l!==le.GLOBSTAR);if(this.partial&&f.length>=1){let l=[];for(let p=1;p<=f.length;p++)l.push(f.slice(0,p).join("/"));return"(?:"+l.join("|")+")"}return f.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a of s){let u=i;if(n.matchBase&&a.length===1&&(u=[o]),this.matchOne(u,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return le.minimatch.defaults(e).Minimatch}};le.Minimatch=Pn;var FM=ip();Object.defineProperty(le,"AST",{enumerable:!0,get:function(){return FM.AST}});var TM=sp();Object.defineProperty(le,"escape",{enumerable:!0,get:function(){return TM.escape}});var kM=Ua();Object.defineProperty(le,"unescape",{enumerable:!0,get:function(){return kM.unescape}});le.minimatch.AST=c_.AST;le.minimatch.Minimatch=Pn;le.minimatch.escape=tM.escape;le.minimatch.unescape=rM.unescape});var pp=E(xt=>{"use strict";var NM=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xt,"__esModule",{value:!0});xt.Minipass=xt.isWritable=xt.isReadable=xt.isStream=void 0;var p_=typeof process=="object"&&process?process:{stdout:null,stderr:null},hp=require("node:events"),y_=NM(require("node:stream")),IM=require("node:string_decoder"),$M=t=>!!t&&typeof t=="object"&&(t instanceof ru||t instanceof y_.default||(0,xt.isReadable)(t)||(0,xt.isWritable)(t));xt.isStream=$M;var MM=t=>!!t&&typeof t=="object"&&t instanceof hp.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==y_.default.Writable.prototype.pipe;xt.isReadable=MM;var BM=t=>!!t&&typeof t=="object"&&t instanceof hp.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";xt.isWritable=BM;var Nr=Symbol("EOF"),Ir=Symbol("maybeEmitEnd"),an=Symbol("emittedEnd"),Xa=Symbol("emittingEnd"),bs=Symbol("emittedError"),Ja=Symbol("closed"),d_=Symbol("read"),Qa=Symbol("flush"),g_=Symbol("flushChunk"),cr=Symbol("encoding"),Pi=Symbol("decoder"),ut=Symbol("flowing"),Es=Symbol("paused"),Oi=Symbol("resume"),ct=Symbol("buffer"),Ct=Symbol("pipes"),lt=Symbol("bufferLength"),op=Symbol("bufferPush"),Za=Symbol("bufferShift"),Et=Symbol("objectMode"),Ze=Symbol("destroyed"),ap=Symbol("error"),up=Symbol("emitData"),m_=Symbol("emitEnd"),cp=Symbol("emitEnd2"),Er=Symbol("async"),lp=Symbol("abort"),eu=Symbol("aborted"),_s=Symbol("signal"),On=Symbol("dataListeners"),Bt=Symbol("discarded"),Ss=t=>Promise.resolve().then(t),jM=t=>t(),qM=t=>t==="end"||t==="finish"||t==="prefinish",WM=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,UM=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),tu=class{src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Oi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},fp=class extends tu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},GM=t=>!!t.objectMode,HM=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",ru=class extends hp.EventEmitter{[ut]=!1;[Es]=!1;[Ct]=[];[ct]=[];[Et];[cr];[Er];[Pi];[Nr]=!1;[an]=!1;[Xa]=!1;[Ja]=!1;[bs]=null;[lt]=0;[Ze]=!1;[_s];[eu]=!1;[On]=0;[Bt]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");GM(r)?(this[Et]=!0,this[cr]=null):HM(r)?(this[cr]=r.encoding,this[Et]=!1):(this[Et]=!1,this[cr]=null),this[Er]=!!r.async,this[Pi]=this[cr]?new IM.StringDecoder(this[cr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ct]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ct]});let{signal:n}=r;n&&(this[_s]=n,n.aborted?this[lp]():n.addEventListener("abort",()=>this[lp]()))}get bufferLength(){return this[lt]}get encoding(){return this[cr]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Et]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Er]}set async(e){this[Er]=this[Er]||!!e}[lp](){this[eu]=!0,this.emit("abort",this[_s]?.reason),this.destroy(this[_s]?.reason)}get aborted(){return this[eu]}set aborted(e){}write(e,r,n){if(this[eu])return!1;if(this[Nr])throw new Error("write after end");if(this[Ze])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Er]?Ss:jM;if(!this[Et]&&!Buffer.isBuffer(e)){if(UM(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(WM(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Et]?(this[ut]&&this[lt]!==0&&this[Qa](!0),this[ut]?this.emit("data",e):this[op](e),this[lt]!==0&&this.emit("readable"),n&&i(n),this[ut]):e.length?(typeof e=="string"&&!(r===this[cr]&&!this[Pi]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[cr]&&(e=this[Pi].write(e)),this[ut]&&this[lt]!==0&&this[Qa](!0),this[ut]?this.emit("data",e):this[op](e),this[lt]!==0&&this.emit("readable"),n&&i(n),this[ut]):(this[lt]!==0&&this.emit("readable"),n&&i(n),this[ut])}read(e){if(this[Ze])return null;if(this[Bt]=!1,this[lt]===0||e===0||e&&e>this[lt])return this[Ir](),null;this[Et]&&(e=null),this[ct].length>1&&!this[Et]&&(this[ct]=[this[cr]?this[ct].join(""):Buffer.concat(this[ct],this[lt])]);let r=this[d_](e||null,this[ct][0]);return this[Ir](),r}[d_](e,r){if(this[Et])this[Za]();else{let n=r;e===n.length||e===null?this[Za]():typeof n=="string"?(this[ct][0]=n.slice(e),r=n.slice(0,e),this[lt]-=e):(this[ct][0]=n.subarray(e),r=n.subarray(0,e),this[lt]-=e)}return this.emit("data",r),!this[ct].length&&!this[Nr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[Nr]=!0,this.writable=!1,(this[ut]||!this[Es])&&this[Ir](),this}[Oi](){this[Ze]||(!this[On]&&!this[Ct].length&&(this[Bt]=!0),this[Es]=!1,this[ut]=!0,this.emit("resume"),this[ct].length?this[Qa]():this[Nr]?this[Ir]():this.emit("drain"))}resume(){return this[Oi]()}pause(){this[ut]=!1,this[Es]=!0,this[Bt]=!1}get destroyed(){return this[Ze]}get flowing(){return this[ut]}get paused(){return this[Es]}[op](e){this[Et]?this[lt]+=1:this[lt]+=e.length,this[ct].push(e)}[Za](){return this[Et]?this[lt]-=1:this[lt]-=this[ct][0].length,this[ct].shift()}[Qa](e=!1){do;while(this[g_](this[Za]())&&this[ct].length);!e&&!this[ct].length&&!this[Nr]&&this.emit("drain")}[g_](e){return this.emit("data",e),this[ut]}pipe(e,r){if(this[Ze])return e;this[Bt]=!1;let n=this[an];return r=r||{},e===p_.stdout||e===p_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Ct].push(r.proxyErrors?new fp(this,e,r):new tu(this,e,r)),this[Er]?Ss(()=>this[Oi]()):this[Oi]()),e}unpipe(e){let r=this[Ct].find(n=>n.dest===e);r&&(this[Ct].length===1?(this[ut]&&this[On]===0&&(this[ut]=!1),this[Ct]=[]):this[Ct].splice(this[Ct].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[Bt]=!1,this[On]++,!this[Ct].length&&!this[ut]&&this[Oi]();else if(e==="readable"&&this[lt]!==0)super.emit("readable");else if(qM(e)&&this[an])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[bs]){let i=r;this[Er]?Ss(()=>i.call(this,this[bs])):i.call(this,this[bs])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[On]=this.listeners("data").length,this[On]===0&&!this[Bt]&&!this[Ct].length&&(this[ut]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[On]=0,!this[Bt]&&!this[Ct].length&&(this[ut]=!1)),r}get emittedEnd(){return this[an]}[Ir](){!this[Xa]&&!this[an]&&!this[Ze]&&this[ct].length===0&&this[Nr]&&(this[Xa]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ja]&&this.emit("close"),this[Xa]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==Ze&&this[Ze])return!1;if(e==="data")return!this[Et]&&!n?!1:this[Er]?(Ss(()=>this[up](n)),!0):this[up](n);if(e==="end")return this[m_]();if(e==="close"){if(this[Ja]=!0,!this[an]&&!this[Ze])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[bs]=n,super.emit(ap,n);let s=!this[_s]||this.listeners("error").length?super.emit("error",n):!1;return this[Ir](),s}else if(e==="resume"){let s=super.emit("resume");return this[Ir](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[Ir](),i}[up](e){for(let n of this[Ct])n.dest.write(e)===!1&&this.pause();let r=this[Bt]?!1:super.emit("data",e);return this[Ir](),r}[m_](){return this[an]?!1:(this[an]=!0,this.readable=!1,this[Er]?(Ss(()=>this[cp]()),!0):this[cp]())}[cp](){if(this[Pi]){let r=this[Pi].end();if(r){for(let n of this[Ct])n.dest.write(r);this[Bt]||super.emit("data",r)}}for(let r of this[Ct])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Et]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Et]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[Et])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[cr]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Ze,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Bt]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Nr])return r();let s,o,a=l=>{this.off("data",u),this.off("end",c),this.off(Ze,f),r(),o(l)},u=l=>{this.off("error",a),this.off("end",c),this.off(Ze,f),this.pause(),s({value:l,done:!!this[Nr]})},c=()=>{this.off("error",a),this.off("data",u),this.off(Ze,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,p)=>{o=p,s=l,this.once(Ze,f),this.once("error",a),this.once("end",c),this.once("data",u)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Bt]=!1;let e=!1,r=()=>(this.pause(),this.off(ap,r),this.off(Ze,r),this.off("end",r),e=!0,{done:!0,value:void 0}),n=()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(ap,r),this.once(Ze,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[Ze])return e?this.emit("error",e):this.emit(Ze),this;this[Ze]=!0,this[Bt]=!0,this[ct].length=0,this[lt]=0;let r=this;return typeof r.close=="function"&&!this[Ja]&&r.close(),e?this.emit("error",e):this.emit(Ze),this}static get isStream(){return xt.isStream}};xt.Minipass=ru});var D_=E(Ne=>{"use strict";var zM=Ne&&Ne.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),YM=Ne&&Ne.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VM=Ne&&Ne.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zM(e,t,r);return YM(e,t),e};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.PathScurry=Ne.Path=Ne.PathScurryDarwin=Ne.PathScurryPosix=Ne.PathScurryWin32=Ne.PathScurryBase=Ne.PathPosix=Ne.PathWin32=Ne.PathBase=Ne.ChildrenCache=Ne.ResolveCache=void 0;var lu=$a(),au=require("node:path"),KM=require("node:url"),Cs=require("fs"),XM=VM(require("node:fs")),JM=Cs.realpathSync.native,nu=require("node:fs/promises"),A_=pp(),xs={lstatSync:Cs.lstatSync,readdir:Cs.readdir,readdirSync:Cs.readdirSync,readlinkSync:Cs.readlinkSync,realpathSync:JM,promises:{lstat:nu.lstat,readdir:nu.readdir,readlink:nu.readlink,realpath:nu.realpath}},S_=t=>!t||t===xs||t===XM?xs:{...xs,...t,promises:{...xs.promises,...t.promises||{}}},v_=/^\\\\\?\\([a-z]:)\\?$/i,QM=t=>t.replace(/\//g,"\\").replace(v_,"$1\\"),ZM=/[\\\/]/,Jt=0,C_=1,x_=2,_r=4,P_=6,O_=8,Rn=10,R_=12,Xt=15,vs=~Xt,dp=16,w_=32,Ps=64,lr=128,iu=256,ou=512,b_=Ps|lr|ou,eB=1023,gp=t=>t.isFile()?O_:t.isDirectory()?_r:t.isSymbolicLink()?Rn:t.isCharacterDevice()?x_:t.isBlockDevice()?P_:t.isSocket()?R_:t.isFIFO()?C_:Jt,E_=new lu.LRUCache({max:2**12}),Os=t=>{let e=E_.get(t);if(e)return e;let r=t.normalize("NFKD");return E_.set(t,r),r},__=new lu.LRUCache({max:2**12}),su=t=>{let e=__.get(t);if(e)return e;let r=Os(t.toLowerCase());return __.set(t,r),r},Rs=class extends lu.LRUCache{constructor(){super({max:256})}};Ne.ResolveCache=Rs;var uu=class extends lu.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};Ne.ChildrenCache=uu;var L_=Symbol("PathScurry setAsCwd"),ht=class{name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#t;get mode(){return this.#t}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#d;get gid(){return this.#d}#g;get rdev(){return this.#g}#u;get blksize(){return this.#u}#a;get ino(){return this.#a}#h;get size(){return this.#h}#f;get blocks(){return this.#f}#c;get atimeMs(){return this.#c}#i;get mtimeMs(){return this.#i}#E;get ctimeMs(){return this.#E}#_;get birthtimeMs(){return this.#_}#m;get atime(){return this.#m}#y;get mtime(){return this.#y}#C;get ctime(){return this.#C}#A;get birthtime(){return this.#A}#S;#v;#p;#b;#x;#w;#o;#T;#R;#P;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Jt,n,i,s,o,a){this.name=e,this.#S=s?su(e):Os(e),this.#o=r&eB,this.nocase=s,this.roots=i,this.root=n||this,this.#T=o,this.#p=a.fullpath,this.#x=a.relative,this.#w=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=S_(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#T}resolve(e){if(!e)return this;let r=this.getRootString(e),i=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#q(i):this.#q(i)}#q(e){let r=this;for(let n of e)r=r.child(n);return r}children(){let e=this.#T.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#T.set(this,r),this.#o&=~dp,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let n=this.children(),i=this.nocase?su(e):Os(e);for(let u of n)if(u.#S===i)return u;let s=this.parent?this.sep:"",o=this.#p?this.#p+s+e:void 0,a=this.newChild(e,Jt,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#o|=lr),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let e=this.name,r=this.parent;if(!r)return this.#x=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#w!==void 0)return this.#w;let e=this.name,r=this.parent;if(!r)return this.#w=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+e}fullpath(){if(this.#p!==void 0)return this.#p;let e=this.name,r=this.parent;if(!r)return this.#p=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+e;return this.#p=i}fullpathPosix(){if(this.#b!==void 0)return this.#b;if(this.sep==="/")return this.#b=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#b=`//?/${i}`:this.#b=i}let e=this.parent,r=e.fullpathPosix(),n=r+(!r||!e.parent?"":"/")+this.name;return this.#b=n}isUnknown(){return(this.#o&Xt)===Jt}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#o&Xt)===O_}isDirectory(){return(this.#o&Xt)===_r}isCharacterDevice(){return(this.#o&Xt)===x_}isBlockDevice(){return(this.#o&Xt)===P_}isFIFO(){return(this.#o&Xt)===C_}isSocket(){return(this.#o&Xt)===R_}isSymbolicLink(){return(this.#o&Rn)===Rn}lstatCached(){return this.#o&w_?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#P}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let e=this.#o&Xt;return!(e!==Jt&&e!==Rn||this.#o&iu||this.#o&lr)}calledReaddir(){return!!(this.#o&dp)}isENOENT(){return!!(this.#o&lr)}isNamed(e){return this.nocase?this.#S===su(e):this.#S===Os(e)}async readlink(){let e=this.#R;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#R=n}catch(r){this.#W(r.code);return}}readlinkSync(){let e=this.#R;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#R=n}catch(r){this.#W(r.code);return}}#O(e){this.#o|=dp;for(let r=e.provisional;r<e.length;r++){let n=e[r];n&&n.#M()}}#M(){this.#o&lr||(this.#o=(this.#o|lr)&vs,this.#k())}#k(){let e=this.children();e.provisional=0;for(let r of e)r.#M()}#B(){this.#o|=ou,this.#N()}#N(){if(this.#o&Ps)return;let e=this.#o;(e&Xt)===_r&&(e&=vs),this.#o=e|Ps,this.#k()}#L(e=""){e==="ENOTDIR"||e==="EPERM"?this.#N():e==="ENOENT"?this.#M():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#N():e==="ENOENT"&&this.#M()}#W(e=""){let r=this.#o;r|=iu,e==="ENOENT"&&(r|=lr),(e==="EINVAL"||e==="UNKNOWN")&&(r&=vs),this.#o=r,e==="ENOTDIR"&&this.parent&&this.parent.#N()}#I(e,r){return this.#l(e,r)||this.#U(e,r)}#U(e,r){let n=gp(e),i=this.newChild(e.name,n,{parent:this}),s=i.#o&Xt;return s!==_r&&s!==Rn&&s!==Jt&&(i.#o|=Ps),r.unshift(i),r.provisional++,i}#l(e,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?su(e.name):Os(e.name))===i.#S)return this.#G(e,i,n,r)}}#G(e,r,n,i){let s=r.name;return r.#o=r.#o&vs|gp(e),s!==e.name&&(r.name=e.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if((this.#o&lr)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#o&lr)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:u,ctimeMs:c,dev:f,gid:l,ino:p,mode:d,mtime:g,mtimeMs:m,nlink:y,rdev:_,size:v,uid:F}=e;this.#m=r,this.#c=n,this.#A=i,this.#_=s,this.#u=o,this.#f=a,this.#C=u,this.#E=c,this.#n=f,this.#d=l,this.#a=p,this.#t=d,this.#y=g,this.#i=m,this.#r=y,this.#g=_,this.#h=v,this.#s=F;let k=gp(e);this.#o=this.#o&vs|k|w_,k!==Jt&&k!==_r&&k!==Rn&&(this.#o|=Ps)}#D=[];#j=!1;#z(e){this.#j=!1;let r=this.#D.slice();this.#D.length=0,r.forEach(n=>n(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#D.push(e),this.#j)return;this.#j=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#L(s.code),n.provisional=0;else{for(let a of o)this.#I(a,n);this.#O(n)}this.#z(n.slice(0,n.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#H)await this.#H;else{let n=()=>{};this.#H=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#I(i,e);this.#O(e)}catch(i){this.#L(i.code),e.provisional=0}this.#H=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#I(n,e);this.#O(e)}catch(n){this.#L(n.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#o&b_)return!1;let e=Xt&this.#o;return e===Jt||e===_r||e===Rn}shouldWalk(e,r){return(this.#o&_r)===_r&&!(this.#o&b_)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#P)return this.#P;if(!((ou|iu|lr)&this.#o))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#P=this.resolve(e)}catch{this.#B()}}realpathSync(){if(this.#P)return this.#P;if(!((ou|iu|lr)&this.#o))try{let e=this.#e.realpathSync(this.fullpath());return this.#P=this.resolve(e)}catch{this.#B()}}[L_](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#x=n.join(this.sep),i.#w=n.join("/"),i=i.parent,n.push("..");for(i=e;i&&i.parent&&!r.has(i);)i.#x=void 0,i.#w=void 0,i=i.parent}};Ne.PathBase=ht;var Ls=class t extends ht{sep="\\";splitSep=ZM;constructor(e,r=Jt,n,i,s,o,a){super(e,r,n,i,s,o,a)}newChild(e,r=Jt,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(e){return au.win32.parse(e).root}getRoot(e){if(e=QM(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=n;return this.roots[e]=new Ts(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(v_,"$1\\"),e===r}};Ne.PathWin32=Ls;var Ds=class t extends ht{splitSep="/";sep="/";constructor(e,r=Jt,n,i,s,o,a){super(e,r,n,i,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Jt,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};Ne.PathPosix=Ds;var Fs=class{root;rootPath;roots;cwd;#e;#n;#t;nocase;#r;constructor(e=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=xs}={}){this.#r=S_(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,KM.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Rs,this.#n=new Rs,this.#t=new uu(s);let u=a.substring(this.rootPath.length).split(n);if(u.length===1&&!u[0]&&u.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let c=this.root,f=u.length-1,l=r.sep,p=this.rootPath,d=!1;for(let g of u){let m=f--;c=c.child(g,{relative:new Array(m).fill("..").join(l),relativePosix:new Array(m).fill("..").join("/"),fullpath:p+=(d?"":l)+g}),d=!0}this.cwd=c}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#t}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#n.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#n.set(r,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n}=r;if(e.canReaddir()){let i=await e.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n=!0}=r;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e.withFileTypes,e=this.cwd);let n=await e.readlink();return r?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return r?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e.withFileTypes,e=this.cwd);let n=await e.realpath();return r?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return r?n:n?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(n?e:e.fullpath());let u=new Set,c=(l,p)=>{u.add(l),l.readdirCB((d,g)=>{if(d)return p(d);let m=g.length;if(!m)return p();let y=()=>{--m===0&&p()};for(let _ of g)(!s||s(_))&&a.push(n?_:_.fullpath()),i&&_.isSymbolicLink()?_.realpath().then(v=>v?.isUnknown()?v.lstat():v).then(v=>v?.shouldWalk(u,o)?c(v,y):y()):_.shouldWalk(u,o)?c(_,y):y()},!0)},f=e;return new Promise((l,p)=>{c(f,d=>{if(d)return p(d);l(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(n?e:e.fullpath());let u=new Set([e]);for(let c of u){let f=c.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let p=l;if(l.isSymbolicLink()){if(!(i&&(p=l.realpathSync())))continue;p.isUnknown()&&p.lstatSync()}p.shouldWalk(u,o)&&u.add(p)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield n?e:e.fullpath());let a=new Set([e]);for(let u of a){let c=u.readdirSync();for(let f of c){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new A_.Minipass({objectMode:!0});(!s||s(e))&&a.write(n?e:e.fullpath());let u=new Set,c=[e],f=0,l=()=>{let p=!1;for(;!p;){let d=c.shift();if(!d){f===0&&a.end();return}f++,u.add(d);let g=(y,_,v=!1)=>{if(y)return a.emit("error",y);if(i&&!v){let F=[];for(let k of _)k.isSymbolicLink()&&F.push(k.realpath().then(W=>W?.isUnknown()?W.lstat():W));if(F.length){Promise.all(F).then(()=>g(null,_,!0));return}}for(let F of _)F&&(!s||s(F))&&(a.write(n?F:F.fullpath())||(p=!0));f--;for(let F of _){let k=F.realpathCached()||F;k.shouldWalk(u,o)&&c.push(k)}p&&!a.flowing?a.once("drain",l):m||l()},m=!0;d.readdirCB(g,!0),m=!1}};return l(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof ht||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new A_.Minipass({objectMode:!0}),u=new Set;(!s||s(e))&&a.write(n?e:e.fullpath());let c=[e],f=0,l=()=>{let p=!1;for(;!p;){let d=c.shift();if(!d){f===0&&a.end();return}f++,u.add(d);let g=d.readdirSync();for(let m of g)(!s||s(m))&&(a.write(n?m:m.fullpath())||(p=!0));f--;for(let m of g){let y=m;if(m.isSymbolicLink()){if(!(i&&(y=m.realpathSync())))continue;y.isUnknown()&&y.lstatSync()}y.shouldWalk(u,o)&&c.push(y)}}p&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[L_](r)}};Ne.PathScurryBase=Fs;var Ts=class extends Fs{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,au.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return au.win32.parse(e).root.toUpperCase()}newRoot(e){return new Ls(this.rootPath,_r,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};Ne.PathScurryWin32=Ts;var ks=class extends Fs{sep="/";constructor(e=process.cwd(),r={}){let{nocase:n=!1}=r;super(e,au.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new Ds(this.rootPath,_r,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};Ne.PathScurryPosix=ks;var cu=class extends ks{constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,{...r,nocase:n})}};Ne.PathScurryDarwin=cu;Ne.Path=process.platform==="win32"?Ls:Ds;Ne.PathScurry=process.platform==="win32"?Ts:process.platform==="darwin"?cu:ks});var yp=E(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.Pattern=void 0;var tB=kr(),rB=t=>t.length>=1,nB=t=>t.length>=1,mp=class t{#e;#n;#t;length;#r;#s;#d;#g;#u;#a;#h=!0;constructor(e,r,n,i){if(!rB(e))throw new TypeError("empty pattern list");if(!nB(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#n=r,this.#t=n,this.#r=i,this.#t===0){if(this.isUNC()){let[s,o,a,u,...c]=this.#e,[f,l,p,d,...g]=this.#n;c[0]===""&&(c.shift(),g.shift());let m=[s,o,a,u,""].join("/"),y=[f,l,p,d,""].join("/");this.#e=[m,...c],this.#n=[y,...g],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...u]=this.#n;o[0]===""&&(o.shift(),u.shift());let c=s+"/",f=a+"/";this.#e=[c,...o],this.#n=[f,...u],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===tB.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#d=this.#d||(this.#t===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new t(this.#e,this.#n,this.#t+1,this.#r),this.#s.#a=this.#a,this.#s.#u=this.#u,this.#s.#g=this.#g,this.#s):this.#s=null}isUNC(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#r==="win32"&&this.#t===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#g!==void 0?this.#g:this.#g=this.#r==="win32"&&this.#t===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#t===0?e:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#h)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#h?!1:(this.#h=!1,!0)}};fu.Pattern=mp});var wp=E(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.Ignore=void 0;var F_=kr(),iB=yp(),sB=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ap=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=sB}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new F_.Minimatch(e,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new iB.Pattern(i,s,0,this.platform),a=new F_.Minimatch(o.globString(),this.mmopts),u=s[s.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),u&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),n=`${r}/`,i=e.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",n=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};hu.Ignore=Ap});var k_=E(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Processor=Sr.SubWalks=Sr.MatchRecord=Sr.HasWalkedCache=void 0;var T_=kr(),pu=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let n=e.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Sr.HasWalkedCache=pu;var du=class{store=new Map;add(e,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};Sr.MatchRecord=du;var gu=class{store=new Map;add(e,r){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};Sr.SubWalks=gu;var bp=class t{hasWalkedCache;matches=new du;subwalks=new gu;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new pu}processPatterns(e,r){this.patterns=r;let n=r.map(i=>[e,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let u,c,f=!1;for(;typeof(u=s.pattern())=="string"&&(c=s.rest());)i=i.resolve(u),s=c,f=!0;if(u=s.pattern(),c=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof u=="string"){let l=u===".."||u===""||u===".";this.matches.add(i.resolve(u),a,l);continue}else if(u===T_.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=c?.pattern(),p=c?.rest();if(!c||(l===""||l===".")&&!p)this.matches.add(i,a,l===""||l===".");else if(l===".."){let d=i.parent||i;p?this.hasWalkedCache.hasWalked(d,p)||this.subwalks.add(d,p):this.matches.add(d,a,!0)}}else u instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let n=this.subwalks.get(e),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),u=o.pattern(),c=o.rest();u===T_.GLOBSTAR?i.testGlobstar(s,o,c,a):u instanceof RegExp?i.testRegExp(s,u,c,a):i.testString(s,u,c,a)}return i}testGlobstar(e,r,n,i){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(e,n):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,n.rest(),i);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(e,s,n.rest(),i)}}testRegExp(e,r,n,i){r.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}testString(e,r,n,i){e.isNamed(r)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}};Sr.Processor=bp});var $_=E(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.GlobStream=un.GlobWalker=un.GlobUtil=void 0;var oB=pp(),N_=wp(),I_=k_(),aB=(t,e)=>typeof t=="string"?new N_.Ignore([t],e):Array.isArray(t)?new N_.Ignore(t,e):t,Ns=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#t;signal;maxDepth;includeChildMatches;constructor(e,r,n){if(this.patterns=e,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#n=aB(n.ignore??[],n),!this.includeChildMatches&&typeof this.#n.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(e){return this.seen.has(e)||!!this.#n?.ignored?.(e)}#s(e){return!!this.#n?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#r(e))return;if(!this.includeChildMatches&&this.#n?.add){let s=`${e.relativePosix()}/**`;this.#n.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(e,r,n){let i=await this.matchCheck(e,n);i&&this.matchFinish(i,r)}matchSync(e,r,n){let i=this.matchCheckSync(e,n);i&&this.matchFinish(i,r)}walkCB(e,r,n){this.signal?.aborted&&n(),this.walkCB2(e,r,new I_.Processor(this.opts),n)}walkCB2(e,r,n,i){if(this.#s(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,r,n,i));return}n.processPatterns(e,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#r(a)||(s++,this.match(a,u,c).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirCached();a.calledReaddir()?this.walkCB3(a,u,n,o):a.readdirCB((c,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(e,r,n,i){n=n.filterEntries(e,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#r(a)||(s++,this.match(a,u,c).then(()=>o()));for(let[a,u]of n.subwalks.entries())s++,this.walkCB2(a,u,n.child(),o);o()}walkCBSync(e,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,r,new I_.Processor(this.opts),n)}walkCB2Sync(e,r,n,i){if(this.#s(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,n,i));return}n.processPatterns(e,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#r(a)||this.matchSync(a,u,c);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirSync();this.walkCB3Sync(a,u,n,o)}o()}walkCB3Sync(e,r,n,i){n=n.filterEntries(e,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#r(a)||this.matchSync(a,u,c);for(let[a,u]of n.subwalks.entries())s++,this.walkCB2Sync(a,u,n.child(),o);o()}};un.GlobUtil=Ns;var Ep=class extends Ns{matches=new Set;constructor(e,r,n){super(e,r,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};un.GlobWalker=Ep;var _p=class extends Ns{results;constructor(e,r,n){super(e,r,n),this.results=new oB.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};un.GlobStream=_p});var vp=E(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.Glob=void 0;var uB=kr(),cB=require("node:url"),mu=D_(),lB=yp(),yu=$_(),fB=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Sp=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,cB.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(u=>u.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(u=>u.includes("/")?u:`./**/${u}`)}if(this.pattern=e,this.platform=r.platform||fB,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let u=r.platform==="win32"?mu.PathScurryWin32:r.platform==="darwin"?mu.PathScurryDarwin:r.platform?mu.PathScurryPosix:mu.PathScurry;this.scurry=new u(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(u=>new uB.Minimatch(u,i)),[o,a]=s.reduce((u,c)=>(u[0].push(...c.set),u[1].push(...c.globParts),u),[[],[]]);this.patterns=o.map((u,c)=>{let f=a[c];if(!f)throw new Error("invalid pattern object");return new lB.Pattern(u,f,0,this.platform)})}async walk(){return[...await new yu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new yu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new yu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new yu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Au.Glob=Sp});var Cp=E(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.hasMagic=void 0;var hB=kr(),pB=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new hB.Minimatch(r,e).hasMagic())return!0;return!1};wu.hasMagic=pB});var Rp=E(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.glob=Re.sync=Re.iterate=Re.iterateSync=Re.stream=Re.streamSync=Re.Ignore=Re.hasMagic=Re.Glob=Re.unescape=Re.escape=void 0;Re.globStreamSync=Is;Re.globStream=xp;Re.globSync=Pp;Re.globIterateSync=$s;Re.globIterate=Op;var M_=kr(),Ln=vp(),dB=Cp(),j_=kr();Object.defineProperty(Re,"escape",{enumerable:!0,get:function(){return j_.escape}});Object.defineProperty(Re,"unescape",{enumerable:!0,get:function(){return j_.unescape}});var gB=vp();Object.defineProperty(Re,"Glob",{enumerable:!0,get:function(){return gB.Glob}});var mB=Cp();Object.defineProperty(Re,"hasMagic",{enumerable:!0,get:function(){return mB.hasMagic}});var yB=wp();Object.defineProperty(Re,"Ignore",{enumerable:!0,get:function(){return yB.Ignore}});function Is(t,e={}){return new Ln.Glob(t,e).streamSync()}function xp(t,e={}){return new Ln.Glob(t,e).stream()}function Pp(t,e={}){return new Ln.Glob(t,e).walkSync()}async function B_(t,e={}){return new Ln.Glob(t,e).walk()}function $s(t,e={}){return new Ln.Glob(t,e).iterateSync()}function Op(t,e={}){return new Ln.Glob(t,e).iterate()}Re.streamSync=Is;Re.stream=Object.assign(xp,{sync:Is});Re.iterateSync=$s;Re.iterate=Object.assign(Op,{sync:$s});Re.sync=Object.assign(Pp,{stream:Is,iterate:$s});Re.glob=Object.assign(B_,{glob:B_,globSync:Pp,sync:Re.sync,globStream:xp,stream:Re.stream,globStreamSync:Is,streamSync:Re.streamSync,globIterate:Op,iterate:Re.iterate,globIterateSync:$s,iterateSync:Re.iterateSync,Glob:Ln.Glob,hasMagic:dB.hasMagic,escape:M_.escape,unescape:M_.unescape});Re.glob.glob=Re.glob});var Lp=E((f4,AB)=>{AB.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var q_=E((h4,wB)=>{wB.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var W_=E((p4,bB)=>{bB.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var G_=E((d4,U_)=>{"use strict";var EB=[].concat(Lp()).concat(q_()),_B=W_();U_.exports=function(t){var e=0;function r(){return e<t.length}function n(g){if(g instanceof RegExp){var m=t.slice(e),y=m.match(g);if(y)return e+=y[0].length,y[0]}else if(t.indexOf(g,e)===e)return e+=g.length,g}function i(){n(/[ ]*/)}function s(){for(var g,m=["WITH","AND","OR","(",")",":","+"],y=0;y<m.length&&(g=n(m[y]),!g);y++);if(g==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return g&&{type:"OPERATOR",string:g}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var g=o();if(!g)throw new Error("Expected idstring at offset "+e);return g}function u(){if(n("DocumentRef-")){var g=a();return{type:"DOCUMENTREF",string:g}}}function c(){if(n("LicenseRef-")){var g=a();return{type:"LICENSEREF",string:g}}}function f(){var g=e,m=o();if(EB.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(_B.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};e=g}function l(){return s()||u()||c()||f()}for(var p=[];r()&&(i(),!!r());){var d=l();if(!d)throw new Error("Unexpected `"+t[e]+"` at offset "+e);p.push(d)}return p}});var z_=E((g4,H_)=>{"use strict";H_.exports=function(t){var e=0;function r(){return e<t.length}function n(){return r()?t[e]:null}function i(){if(!r())throw new Error;e++}function s(m){var y=n();if(y&&y.type==="OPERATOR"&&m===y.string)return i(),y.string}function o(){if(s("WITH")){var m=n();if(m&&m.type==="EXCEPTION")return i(),m.string;throw new Error("Expected exception after `WITH`")}}function a(){var m=e,y="",_=n();if(_.type==="DOCUMENTREF"&&(i(),y+="DocumentRef-"+_.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(_=n(),_.type==="LICENSEREF")return i(),y+="LicenseRef-"+_.string,{license:y};e=m}function u(){var m=n();if(m&&m.type==="LICENSE"){i();var y={license:m.string};s("+")&&(y.plus=!0);var _=o();return _&&(y.exception=_),y}}function c(){var m=s("(");if(m){var y=d();if(!s(")"))throw new Error("Expected `)`");return y}}function f(){return c()||a()||u()}function l(m,y){return function _(){var v=y();if(v){if(!s(m))return v;var F=_();if(!F)throw new Error("Expected expression");return{left:v,conjunction:m.toLowerCase(),right:F}}}}var p=l("AND",f),d=l("OR",p),g=d();if(!g||r())throw new Error("Syntax error");return g}});var Dp=E((m4,Y_)=>{"use strict";var SB=G_(),vB=z_();Y_.exports=function(t){return vB(SB(t))}});var r1=E((y4,t1)=>{var CB=Dp(),xB=Lp();function bu(t){try{return CB(t),!0}catch{return!1}}function e1(t,e){var r=e[0].length-t[0].length;return r!==0?r:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}var V_=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(e1),PB=0,OB=1,K_=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Fp=xB.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var r=e[1];return t[r]=t[r]||[],t[r].push(e[0]),t},{}),RB=Object.keys(Fp).map(function(e){return[e,Fp[e]]}).filter(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"}).map(function(e){return[e[0],e[1][0]]});Fp=void 0;var X_=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(RB).sort(e1),LB=0,DB=1,J_=function(t){for(var e=0;e<K_.length;e++){var r=K_[e](t).trim();if(r!==t&&bu(r))return r}return null},Q_=function(t){for(var e=t.toUpperCase(),r=0;r<X_.length;r++){var n=X_[r];if(e.indexOf(n[LB])>-1)return n[DB]}return null},Z_=function(t,e){for(var r=0;r<V_.length;r++){var n=V_[r],i=n[PB];if(t.indexOf(i)>-1){var s=t.replace(i,n[OB]),o=e(s);if(o!==null)return o}}return null};t1.exports=function(t,e){e=e||{};var r=e.upgrade===void 0?!0:!!e.upgrade;function n(a){return r?FB(a):a}var i=typeof t=="string"&&t.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),bu(t))return n(t);var s=t.replace(/\+$/,"").trim();if(bu(s))return n(s);var o=J_(t);return o!==null||(o=Z_(t,function(a){return bu(a)?a:J_(a)}),o!==null)||(o=Q_(t),o!==null)||(o=Z_(t,Q_),o!==null)?n(o):null};function FB(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}});var o1=E((A4,s1)=>{var TB=Dp(),kB=r1(),n1='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',NB=/^SEE LICEN[CS]E IN (.+)$/;function i1(t,e){return e.slice(0,t.length)===t}function Tp(t){if(t.hasOwnProperty("license")){var e=t.license;return i1("LicenseRef",e)||i1("DocumentRef",e)}else return Tp(t.left)||Tp(t.right)}s1.exports=function(t){var e;try{e=TB(t)}catch{var r;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=NB.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[n1]};if(t.trim().length!==0){var i=kB(t);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Tp(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[n1]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var h1=E((w4,f1)=>{var{URL:kp}=require("node:url"),a1=Ba(),IB=o1(),u1={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},c1=t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf(".");function $B(t){let e=t.trim().split(`
59
+ `),r=0;for(;e[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<e.length&&e[n].trim();)n++;return e.slice(r,n).join(" ").trim()}function l1(t){if(typeof t!="string"){let s=t.name||"",o=t.url||t.web,a=o?" ("+o+")":"",u=t.email||t.mail,c=u?" <"+u+">":"";t=s+c+a}let e=t.match(/^([^(<]+)/),r=t.match(/\(([^()]+)\)/),n=t.match(/<([^<>]+)>/),i={};return e?.[0].trim()&&(i.name=e[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function MB(t,e){t.description&&typeof t.description!="string"&&(e?.push("'description' field should be a string"),delete t.description),t.readme&&!t.description&&t.readme!=="ERROR: No README data found!"&&(t.description=$B(t.readme)),t.description===void 0&&delete t.description,t.description||e?.push("No description"),t.modules&&(e?.push("modules field is deprecated"),delete t.modules);let r=t.files;if(r&&!Array.isArray(r)?(e?.push("Invalid 'files' member"),delete t.files):t.files&&(t.files=t.files.filter(function(o){return!o||typeof o!="string"?(e?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),t.man&&typeof t.man=="string"&&(t.man=[t.man]),!t.bugs&&t.repository?.url){let o=a1.fromUrl(t.repository.url);o&&o.bugs()&&(t.bugs={url:o.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")c1(t.bugs)?t.bugs={email:t.bugs}:kp.canParse(t.bugs)?t.bugs={url:t.bugs}:e?.push("Bug string field must be url, email, or {email,url}");else{for(let a in t.bugs)["web","name"].includes(a)&&(e?.push(`bugs['${a}'] should probably be bugs['url'].`),t.bugs.url=t.bugs[a],delete t.bugs[a]);let o=t.bugs;t.bugs={},o.url&&(kp.canParse(o.url)?t.bugs.url=o.url:e?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&c1(o.email)?t.bugs.email=o.email:e?.push("bugs.email field must be a string email. Deleted."))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,e?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,e?.push("keywords should be an array of strings")):t.keywords&&(t.keywords=t.keywords.filter(function(o){return typeof o!="string"||!o?(e?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(t[n]&&!t[i]&&(t[i]=t[n],delete t[n]),t[i]&&!Array.isArray(t[i])?(e?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete t[i]):t[i]&&(t[i]=t[i].filter(function(o){return!o||typeof o!="string"?(e?.push(`Invalid bundleDependencies member: ${o}`),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,o)||(e?.push(`Non-dependency in bundleDependencies: ${o}`),t.dependencies[o]="*"),!0)})),!t.homepage&&t.repository&&t.repository.url){let o=a1.fromUrl(t.repository.url);o&&(t.homepage=o.docs())}t.homepage&&(typeof t.homepage!="string"?(e?.push("homepage field must be a string url. Deleted."),delete t.homepage):kp.canParse(t.homepage)||(t.homepage="http://"+t.homepage)),t.readme||(e?.push("No README data"),t.readme="ERROR: No README data found!");let s=t.license||t.licence;s?typeof s!="string"||s.length<1||s.trim()===""?e?.push("license should be a valid SPDX license expression"):IB(s).validForNewPackages||e?.push("license should be a valid SPDX license expression"):e?.push("No license field."),t.author&&(t.author=l1(t.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(t[o])&&(t[o]=t[o].map(l1))});for(let o in u1)Object.prototype.hasOwnProperty.call(t,o)&&e?.push(`${o} should probably be ${u1[o]}.`)}f1.exports={normalizeData:MB}});var d1=E(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.sync=Ri.isexe=void 0;var BB=require("fs"),jB=require("fs/promises"),qB=async(t,e={})=>{let{ignoreErrors:r=!1}=e;try{return p1(await(0,jB.stat)(t),e)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Ri.isexe=qB;var WB=(t,e={})=>{let{ignoreErrors:r=!1}=e;try{return p1((0,BB.statSync)(t),e)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Ri.sync=WB;var p1=(t,e)=>t.isFile()&&UB(t,e),UB=(t,e)=>{let r=e.uid??process.getuid?.(),n=e.groups??process.getgroups?.()??[],i=e.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=t.mode,a=t.uid,u=t.gid,c=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),p=c|f;return!!(o&l||o&f&&s.has(u)||o&c&&a===r||o&p&&r===0)}});var m1=E(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.sync=Li.isexe=void 0;var GB=require("fs"),HB=require("fs/promises"),zB=async(t,e={})=>{let{ignoreErrors:r=!1}=e;try{return g1(await(0,HB.stat)(t),t,e)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Li.isexe=zB;var YB=(t,e={})=>{let{ignoreErrors:r=!1}=e;try{return g1((0,GB.statSync)(t),t,e)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Li.sync=YB;var VB=(t,e)=>{let{pathExt:r=process.env.PATHEXT||""}=e,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=t.substring(t.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},g1=(t,e,r)=>t.isFile()&&VB(e,r)});var A1=E(y1=>{"use strict";Object.defineProperty(y1,"__esModule",{value:!0})});var v1=E(at=>{"use strict";var w1=at&&at.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),KB=at&&at.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),b1=at&&at.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&w1(e,t,r);return KB(e,t),e},XB=at&&at.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&w1(e,t,r)};Object.defineProperty(at,"__esModule",{value:!0});at.sync=at.isexe=at.posix=at.win32=void 0;var E1=b1(d1());at.posix=E1;var _1=b1(m1());at.win32=_1;XB(A1(),at);var JB=process.env._ISEXE_TEST_PLATFORM_||process.platform,S1=JB==="win32"?_1:E1;at.isexe=S1.isexe;at.sync=S1.sync});var Np=E((v4,T1)=>{var{isexe:QB,sync:ZB}=v1(),{join:ej,delimiter:tj,sep:C1,posix:x1}=require("path"),P1=process.platform==="win32",O1=new RegExp(`[${x1.sep}${C1===x1.sep?"":C1}]`.replace(/(\\)/g,"\\$1")),rj=new RegExp(`^\\.${O1.source}`),R1=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),L1=(t,{path:e=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=tj})=>{let i=t.match(O1)?[""]:[...P1?[process.cwd()]:[],...(e||"").split(n)];if(P1){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return t.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},D1=(t,e)=>{let r=/^".*"$/.test(t)?t.slice(1,-1):t;return(!r&&rj.test(e)?e.slice(0,2):"")+ej(r,e)},F1=async(t,e={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=L1(t,e),s=[];for(let o of r){let a=D1(o,t);for(let u of n){let c=a+u;if(await QB(c,{pathExt:i,ignoreErrors:!0})){if(!e.all)return c;s.push(c)}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw R1(t)},nj=(t,e={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=L1(t,e),s=[];for(let o of r){let a=D1(o,t);for(let u of n){let c=a+u;if(ZB(c,{pathExt:i,ignoreErrors:!0})){if(!e.all)return c;s.push(c)}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw R1(t)};T1.exports=F1;F1.sync=nj});var N1=E((C4,k1)=>{"use strict";var ij=(t,e)=>{if(!t.length)return'""';let r;if(!/[ \t\n\v"]/.test(t))r=t;else{r='"';for(let n=0;n<=t.length;++n){let i=0;for(;t[n]==="\\";)++n,++i;if(n===t.length){r+="\\".repeat(i*2);break}t[n]==='"'?(r+="\\".repeat(i*2+1),r+=t[n]):(r+="\\".repeat(i),r+=t[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),e&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},sj=t=>t.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(t)?`'${t.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):t:"''";k1.exports={cmd:ij,sh:sj}});var j1=E((x4,B1)=>{"use strict";var{spawn:oj}=require("child_process"),aj=require("os"),uj=Np(),I1=N1(),$p=(t,e,r={},n={})=>{if(r.shell)return M1(t,e,r,n);let i,s,o=new Promise((d,g)=>{i=d,s=g}),a=new Error("command failed"),u=[],c=[],f=d=>({cmd:t,args:e,...d,...lj(u,c,r),...n}),l=(d,g)=>{let m=f(g);s(Object.assign(d,m))},p=oj(t,e,r);return o.stdin=p.stdin,o.process=p,p.on("error",l),p.stdout&&(p.stdout.on("data",d=>u.push(d)),p.stdout.on("error",l)),p.stderr&&(p.stderr.on("data",d=>c.push(d)),p.stderr.on("error",l)),p.on("close",(d,g)=>{d||g?l(a,{code:d,signal:g}):i(f({code:d,signal:g}))}),o},M1=(t,e,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let s={...r,shell:!1},o=[],a=t;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let c=!1,f="",l=!1;for(let d=0;d<t.length;++d){let g=t.charAt(d);if(g===" "&&!l)break;f+=g,(g==='"'||g==="'")&&(l=!l)}let p;try{p=uj.sync(f,{path:s.env&&$1(s.env,"PATH")||process.env.PATH,pathext:s.env&&$1(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{p=f.toLowerCase()}c=p.endsWith(".cmd")||p.endsWith(".bat");for(let d of e)a+=` ${I1.cmd(d,c)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let c of e)a+=` ${I1.sh(c)}`;o.push("-c",a)}return $p(i,o,s,n)},cj=(t,e={},r={})=>{let n={...e,shell:!0},i=[].concat(t),s=process.platform;if(s==="linux"&&aj.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),M1(o,i,n,r)};$p.open=cj;var Ip=(t="pipe",e)=>t==="pipe"||t===null?!0:Array.isArray(t)?Ip(t[e],e):!1,lj=(t,e,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Ip(n,1)&&(i.stdout=Buffer.concat(t),r&&(i.stdout=i.stdout.toString().trim())),Ip(n,2)&&(i.stderr=Buffer.concat(e),r&&(i.stderr=i.stderr.toString().trim())),i},$1=(t,e)=>{e=e.toLowerCase();for(let r of Object.keys(t).sort())if(r.toLowerCase()===e)return t[r]};B1.exports=$p});var U1=E((P4,W1)=>{"use strict";function q1(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function fj(t,e,r){if(!t||typeof t=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof e=="object"&&(r=e,e=void 0),e!=null&&(r.code=e);try{return q1(t,r)}catch{r.message=t.message,r.stack=t.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(t)),q1(new i,r)}}W1.exports=fj});var H1=E((O4,G1)=>{function Qt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}G1.exports=Qt;Qt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};Qt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};Qt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};Qt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Qt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Qt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Qt.prototype.start=Qt.prototype.try;Qt.prototype.errors=function(){return this._errors};Qt.prototype.attempts=function(){return this._attempts};Qt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var z1=E(Dn=>{var hj=H1();Dn.operation=function(t){var e=Dn.timeouts(t);return new hj(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Dn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Dn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Dn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=Dn.operation(e),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),l.apply(this,arguments))}),c.attempt(function(){u.apply(t,f)})}.bind(t,o),t[s].options=e}}});var V1=E((L4,Y1)=>{Y1.exports=z1()});var J1=E((D4,X1)=>{"use strict";var pj=U1(),dj=V1(),gj=Object.prototype.hasOwnProperty;function K1(t){return t&&t.code==="EPROMISERETRY"&&gj.call(t,"retried")}function mj(t,e){var r,n;return typeof t=="object"&&typeof e=="function"&&(r=e,e=t,t=r),n=dj.operation(e),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return t(function(a){throw K1(a)&&(a=a.retried),pj(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){K1(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}X1.exports=mj});var qp=E((F4,Q1)=>{var Ms=class extends Error{shouldRetry(){return!1}},Mp=class extends Ms{constructor(){super("A git connection error occurred")}shouldRetry(e){return e<3}},Bp=class extends Ms{constructor(){super("The git reference could not be found")}},jp=class extends Ms{constructor(){super("An unknown git error occurred")}};Q1.exports={GitConnectionError:Mp,GitPathspecError:Bp,GitUnknownError:jp}});var eS=E((T4,Z1)=>{var{GitConnectionError:yj,GitPathspecError:Aj,GitUnknownError:wj}=qp(),bj=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),Ej=/pathspec .* did not match any file\(s\) known to git/;function _j(t){let e=t.stderr,r;return bj.test(e)?r=new yj(e):Ej.test(e)?r=new Aj(e):r=new wj(e),Object.assign(r,t)}Z1.exports=_j});var iS=E((k4,Wp)=>{var tS=require("node:fs"),Sj=require("node:os"),vj=require("node:path"),Cj=vh(),rS=vj.join(Sj.homedir(),".gitconfig"),Bs=null,nS=()=>{if(Bs===null)try{if(Bs={},tS.existsSync(rS)){let t=tS.readFileSync(rS,"utf-8");Bs=Cj.parse(t)}}catch{Bs={}}return Bs},xj=()=>{let t=nS();return{sshCommandSetInConfig:t?.core?.sshCommand!==void 0,askPassSetInConfig:t?.core?.askpass!==void 0}},Pj=process.env.GIT_SSH_COMMAND!==void 0,Oj=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:Rj,askPassSetInConfig:Lj}=xj(),Dj={...Oj||Lj?{}:{GIT_ASKPASS:"echo"},...Pj||Rj?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Wp.exports=(t={})=>({stdioString:!0,...t,shell:!1,env:t.env||{...Dj,...process.env}});Wp.exports.loadGitConfig=nS});var oS=E((N4,sS)=>{var Fj=Np(),Up;try{Up=Fj.sync("git")}catch{}sS.exports=(t={})=>t.git?t.git:!Up||t.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Up});var js=E((I4,aS)=>{var Tj=j1(),kj=J1(),{log:Nj}=Ca(),Ij=eS(),$j=iS();aS.exports=(t,e={})=>{let n=oS()(e);if(n instanceof Error)return Promise.reject(n);let i=e.allowReplace||t[0]==="--no-replace-objects"?t:["--no-replace-objects",...t],s=e.retry;return s==null&&(s={retries:e.fetchRetries||2,factor:e.fetchRetryFactor||10,maxTimeout:e.fetchRetryMaxtimeout||6e4,minTimeout:e.fetchRetryMintimeout||1e3}),kj((o,a)=>(a!==1&&Nj.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),Tj(n,i,$j(e)).catch(u=>{let c=Ij(u);if(!c.shouldRetry(a))throw c;o(c)})),s)}});var lS=E(($4,cS)=>{"use strict";var uS=bt(),Mj=(t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new uS(t instanceof uS?t.version:t,r).inc(e,n,i).version}catch{return null}};cS.exports=Mj});var pS=E((M4,hS)=>{"use strict";var fS=Cn(),Bj=(t,e)=>{let r=fS(t,null,!0),n=fS(e,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){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};hS.exports=Bj});var gS=E((B4,dS)=>{"use strict";var jj=bt(),qj=(t,e)=>new jj(t,e).major;dS.exports=qj});var yS=E((j4,mS)=>{"use strict";var Wj=bt(),Uj=(t,e)=>new Wj(t,e).minor;mS.exports=Uj});var wS=E((q4,AS)=>{"use strict";var Gj=bt(),Hj=(t,e)=>new Gj(t,e).patch;AS.exports=Hj});var ES=E((W4,bS)=>{"use strict";var zj=Cn(),Yj=(t,e)=>{let r=zj(t,e);return r&&r.prerelease.length?r.prerelease:null};bS.exports=Yj});var Zt=E((U4,SS)=>{"use strict";var _S=bt(),Vj=(t,e,r)=>new _S(t,r).compare(new _S(e,r));SS.exports=Vj});var CS=E((G4,vS)=>{"use strict";var Kj=Zt(),Xj=(t,e,r)=>Kj(e,t,r);vS.exports=Xj});var PS=E((H4,xS)=>{"use strict";var Jj=Zt(),Qj=(t,e)=>Jj(t,e,!0);xS.exports=Qj});var Eu=E((z4,RS)=>{"use strict";var OS=bt(),Zj=(t,e,r)=>{let n=new OS(t,r),i=new OS(e,r);return n.compare(i)||n.compareBuild(i)};RS.exports=Zj});var DS=E((Y4,LS)=>{"use strict";var eq=Eu(),tq=(t,e)=>t.sort((r,n)=>eq(r,n,e));LS.exports=tq});var TS=E((V4,FS)=>{"use strict";var rq=Eu(),nq=(t,e)=>t.sort((r,n)=>rq(n,r,e));FS.exports=nq});var qs=E((K4,kS)=>{"use strict";var iq=Zt(),sq=(t,e,r)=>iq(t,e,r)>0;kS.exports=sq});var _u=E((X4,NS)=>{"use strict";var oq=Zt(),aq=(t,e,r)=>oq(t,e,r)<0;NS.exports=aq});var Gp=E((J4,IS)=>{"use strict";var uq=Zt(),cq=(t,e,r)=>uq(t,e,r)===0;IS.exports=cq});var Hp=E((Q4,$S)=>{"use strict";var lq=Zt(),fq=(t,e,r)=>lq(t,e,r)!==0;$S.exports=fq});var Su=E((Z4,MS)=>{"use strict";var hq=Zt(),pq=(t,e,r)=>hq(t,e,r)>=0;MS.exports=pq});var vu=E((e5,BS)=>{"use strict";var dq=Zt(),gq=(t,e,r)=>dq(t,e,r)<=0;BS.exports=gq});var zp=E((t5,jS)=>{"use strict";var mq=Gp(),yq=Hp(),Aq=qs(),wq=Su(),bq=_u(),Eq=vu(),_q=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return mq(t,r,n);case"!=":return yq(t,r,n);case">":return Aq(t,r,n);case">=":return wq(t,r,n);case"<":return bq(t,r,n);case"<=":return Eq(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};jS.exports=_q});var WS=E((r5,qS)=>{"use strict";var Sq=bt(),vq=Cn(),{safeRe:Cu,t:xu}=Si(),Cq=(t,e)=>{if(t instanceof Sq)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Cu[xu.COERCEFULL]:Cu[xu.COERCE]);else{let u=e.includePrerelease?Cu[xu.COERCERTLFULL]:Cu[xu.COERCERTL],c;for(;(c=u.exec(t))&&(!r||r.index+r[0].length!==t.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=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return vq(`${n}.${i}.${s}${o}${a}`,e)};qS.exports=Cq});var GS=E((n5,US)=>{"use strict";var Yp=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};US.exports=Yp});var er=E((i5,VS)=>{"use strict";var xq=/\s+/g,Vp=class t{constructor(e,r){if(r=Oq(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Kp)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(xq," "),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=>!zS(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&&Nq(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];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(e){let n=((this.options.includePrerelease&&Tq)|(this.options.loose&&kq))+":"+e,i=HS.get(n);if(i)return i;let s=this.options.loose,o=s?Pt[_t.HYPHENRANGELOOSE]:Pt[_t.HYPHENRANGE];e=e.replace(o,Hq(this.options.includePrerelease)),We("hyphen replace",e),e=e.replace(Pt[_t.COMPARATORTRIM],Lq),We("comparator trim",e),e=e.replace(Pt[_t.TILDETRIM],Dq),We("tilde trim",e),e=e.replace(Pt[_t.CARETTRIM],Fq),We("caret trim",e);let a=e.split(" ").map(l=>Iq(l,this.options)).join(" ").split(/\s+/).map(l=>Gq(l,this.options));s&&(a=a.filter(l=>(We("loose invalid filter",l,this.options),!!l.match(Pt[_t.COMPARATORLOOSE])))),We("range list",a);let u=new Map,c=a.map(l=>new Kp(l,this.options));for(let l of c){if(zS(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return HS.set(n,f),f}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>YS(n,r)&&e.set.some(i=>YS(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Rq(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(zq(this.set[r],e,this.options))return!0;return!1}};VS.exports=Vp;var Pq=GS(),HS=new Pq,Oq=xa(),Kp=Ws(),We=ms(),Rq=bt(),{safeRe:Pt,t:_t,comparatorTrimReplace:Lq,tildeTrimReplace:Dq,caretTrimReplace:Fq}=Si(),{FLAG_INCLUDE_PRERELEASE:Tq,FLAG_LOOSE:kq}=ys(),zS=t=>t.value==="<0.0.0-0",Nq=t=>t.value==="",YS=(t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},Iq=(t,e)=>(t=t.replace(Pt[_t.BUILD],""),We("comp",t,e),t=Bq(t,e),We("caret",t),t=$q(t,e),We("tildes",t),t=qq(t,e),We("xrange",t),t=Uq(t,e),We("stars",t),t),Ot=t=>!t||t.toLowerCase()==="x"||t==="*",$q=(t,e)=>t.trim().split(/\s+/).map(r=>Mq(r,e)).join(" "),Mq=(t,e)=>{let r=e.loose?Pt[_t.TILDELOOSE]:Pt[_t.TILDE];return t.replace(r,(n,i,s,o,a)=>{We("tilde",t,n,i,s,o,a);let u;return Ot(i)?u="":Ot(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Ot(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(We("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,We("tilde return",u),u})},Bq=(t,e)=>t.trim().split(/\s+/).map(r=>jq(r,e)).join(" "),jq=(t,e)=>{We("caret",t,e);let r=e.loose?Pt[_t.CARETLOOSE]:Pt[_t.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,o,a,u)=>{We("caret",t,i,s,o,a,u);let c;return Ot(s)?c="":Ot(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Ot(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(We("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`):(We("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`),We("caret return",c),c})},qq=(t,e)=>(We("replaceXRanges",t,e),t.split(/\s+/).map(r=>Wq(r,e)).join(" ")),Wq=(t,e)=>{t=t.trim();let r=e.loose?Pt[_t.XRANGELOOSE]:Pt[_t.XRANGE];return t.replace(r,(n,i,s,o,a,u)=>{We("xRange",t,n,i,s,o,a,u);let c=Ot(s),f=c||Ot(o),l=f||Ot(a),p=l;return i==="="&&p&&(i=""),u=e.includePrerelease?"-0":"",c?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&p?(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`),We("xRange return",n),n})},Uq=(t,e)=>(We("replaceStars",t,e),t.trim().replace(Pt[_t.STAR],"")),Gq=(t,e)=>(We("replaceGTE0",t,e),t.trim().replace(Pt[e.includePrerelease?_t.GTE0PRE:_t.GTE0],"")),Hq=t=>(e,r,n,i,s,o,a,u,c,f,l,p)=>(Ot(n)?r="":Ot(i)?r=`>=${n}.0.0${t?"-0":""}`:Ot(s)?r=`>=${n}.${i}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Ot(c)?u="":Ot(f)?u=`<${+c+1}.0.0-0`:Ot(l)?u=`<${c}.${+f+1}.0-0`:p?u=`<=${c}.${f}.${l}-${p}`:t?u=`<${c}.${f}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),zq=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(We(t[n].semver),t[n].semver!==Kp.ANY&&t[n].semver.prerelease.length>0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var Ws=E((s5,ev)=>{"use strict";var Us=Symbol("SemVer ANY"),Qp=class t{static get ANY(){return Us}constructor(e,r){if(r=KS(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Jp("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Us?this.value="":this.value=this.operator+this.semver.version,Jp("comp",this)}parse(e){let r=this.options.loose?XS[JS.COMPARATORLOOSE]:XS[JS.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);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=Us}toString(){return this.value}test(e){if(Jp("Comparator.test",e,this.options.loose),this.semver===Us||e===Us)return!0;if(typeof e=="string")try{e=new QS(e,this.options)}catch{return!1}return Xp(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ZS(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new ZS(this.value,r).test(e.semver):(r=KS(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Xp(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Xp(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};ev.exports=Qp;var KS=xa(),{safeRe:XS,t:JS}=Si(),Xp=zp(),Jp=ms(),QS=bt(),ZS=er()});var Di=E((o5,tv)=>{"use strict";var Yq=er(),Vq=(t,e,r)=>{try{e=new Yq(e,r)}catch{return!1}return e.test(t)};tv.exports=Vq});var nv=E((a5,rv)=>{"use strict";var Kq=er(),Xq=(t,e)=>new Kq(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));rv.exports=Xq});var sv=E((u5,iv)=>{"use strict";var Jq=bt(),Qq=er(),Zq=(t,e,r)=>{let n=null,i=null,s=null;try{s=new Qq(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new Jq(n,r))}),n};iv.exports=Zq});var av=E((c5,ov)=>{"use strict";var eW=bt(),tW=er(),rW=(t,e,r)=>{let n=null,i=null,s=null;try{s=new tW(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new eW(n,r))}),n};ov.exports=rW});var lv=E((l5,cv)=>{"use strict";var Zp=bt(),nW=er(),uv=qs(),iW=(t,e)=>{t=new nW(t,e);let r=new Zp("0.0.0");if(t.test(r)||(r=new Zp("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let i=t.set[n],s=null;i.forEach(o=>{let a=new Zp(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||uv(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||uv(r,s))&&(r=s)}return r&&t.test(r)?r:null};cv.exports=iW});var ed=E((f5,fv)=>{"use strict";var sW=er(),oW=(t,e)=>{try{return new sW(t,e).range||"*"}catch{return null}};fv.exports=oW});var Pu=E((h5,gv)=>{"use strict";var aW=bt(),dv=Ws(),{ANY:uW}=dv,cW=er(),lW=Di(),hv=qs(),pv=_u(),fW=vu(),hW=Su(),pW=(t,e,r,n)=>{t=new aW(t,n),e=new cW(e,n);let i,s,o,a,u;switch(r){case">":i=hv,s=fW,o=pv,a=">",u=">=";break;case"<":i=pv,s=hW,o=hv,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lW(t,e,n))return!1;for(let c=0;c<e.set.length;++c){let f=e.set[c],l=null,p=null;if(f.forEach(d=>{d.semver===uW&&(d=new dv(">=0.0.0")),l=l||d,p=p||d,i(d.semver,l.semver,n)?l=d:o(d.semver,p.semver,n)&&(p=d)}),l.operator===a||l.operator===u||(!p.operator||p.operator===a)&&s(t,p.semver))return!1;if(p.operator===u&&o(t,p.semver))return!1}return!0};gv.exports=pW});var yv=E((p5,mv)=>{"use strict";var dW=Pu(),gW=(t,e,r)=>dW(t,e,">",r);mv.exports=gW});var wv=E((d5,Av)=>{"use strict";var mW=Pu(),yW=(t,e,r)=>mW(t,e,"<",r);Av.exports=yW});var _v=E((g5,Ev)=>{"use strict";var bv=er(),AW=(t,e,r)=>(t=new bv(t,r),e=new bv(e,r),t.intersects(e,r));Ev.exports=AW});var vv=E((m5,Sv)=>{"use strict";var wW=Di(),bW=Zt();Sv.exports=(t,e,r)=>{let n=[],i=null,s=null,o=t.sort((f,l)=>bW(f,l,r));for(let f of o)wW(f,e,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 e.raw=="string"?e.raw:String(e);return u.length<c.length?u:e}});var Lv=E((y5,Rv)=>{"use strict";var Cv=er(),rd=Ws(),{ANY:td}=rd,Gs=Di(),nd=Zt(),EW=(t,e,r={})=>{if(t===e)return!0;t=new Cv(t,r),e=new Cv(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let o=SW(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},_W=[new rd(">=0.0.0-0")],xv=[new rd(">=0.0.0")],SW=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===td){if(e.length===1&&e[0].semver===td)return!0;r.includePrerelease?t=_W:t=xv}if(e.length===1&&e[0].semver===td){if(r.includePrerelease)return!0;e=xv}let n=new Set,i,s;for(let d of t)d.operator===">"||d.operator===">="?i=Pv(i,d,r):d.operator==="<"||d.operator==="<="?s=Ov(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=nd(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&&!Gs(d,String(i),r)||s&&!Gs(d,String(s),r))return null;for(let g of e)if(!Gs(d,String(g),r))return!1;return!0}let a,u,c,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,p=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 e){if(f=f||d.operator===">"||d.operator===">=",c=c||d.operator==="<"||d.operator==="<=",i){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(a=Pv(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!Gs(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=Ov(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!Gs(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||p||l)},Pv=(t,e,r)=>{if(!t)return e;let n=nd(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},Ov=(t,e,r)=>{if(!t)return e;let n=nd(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};Rv.exports=EW});var Hs=E((A5,Tv)=>{"use strict";var id=Si(),Dv=ys(),vW=bt(),Fv=kh(),CW=Cn(),xW=Da(),PW=Yh(),OW=lS(),RW=pS(),LW=gS(),DW=yS(),FW=wS(),TW=ES(),kW=Zt(),NW=CS(),IW=PS(),$W=Eu(),MW=DS(),BW=TS(),jW=qs(),qW=_u(),WW=Gp(),UW=Hp(),GW=Su(),HW=vu(),zW=zp(),YW=WS(),VW=Ws(),KW=er(),XW=Di(),JW=nv(),QW=sv(),ZW=av(),e3=lv(),t3=ed(),r3=Pu(),n3=yv(),i3=wv(),s3=_v(),o3=vv(),a3=Lv();Tv.exports={parse:CW,valid:xW,clean:PW,inc:OW,diff:RW,major:LW,minor:DW,patch:FW,prerelease:TW,compare:kW,rcompare:NW,compareLoose:IW,compareBuild:$W,sort:MW,rsort:BW,gt:jW,lt:qW,eq:WW,neq:UW,gte:GW,lte:HW,cmp:zW,coerce:YW,Comparator:VW,Range:KW,satisfies:XW,toComparators:JW,maxSatisfying:QW,minSatisfying:ZW,minVersion:e3,validRange:t3,outside:r3,gtr:n3,ltr:i3,intersects:s3,simplifyRange:o3,subset:a3,SemVer:vW,re:id.re,src:id.src,tokens:id.t,SEMVER_SPEC_VERSION:Dv.SEMVER_SPEC_VERSION,RELEASE_TYPES:Dv.RELEASE_TYPES,compareIdentifiers:Fv.compareIdentifiers,rcompareIdentifiers:Fv.rcompareIdentifiers}});var Iv=E((w5,Nv)=>{var kv=Hs();Nv.exports=t=>u3(t.reduce(d3,{versions:{},"dist-tags":{},refs:{},shas:{}}));var u3=t=>f3(c3(l3(t))),c3=t=>(Object.keys(t.refs).forEach(e=>{let r=t.refs[e];t.shas[r.sha]?t.shas[r.sha].push(e):t.shas[r.sha]=[e]}),t),l3=t=>(Object.keys(t.refs).filter(e=>e.endsWith("^{}")).forEach(e=>{let r=t.refs[e],n=t.refs[e.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete t.refs[e])}),t),f3=t=>{let e=t.refs.HEAD||{};return Object.keys(t.versions).forEach(n=>{let i=t.versions[n];t.refs.latest&&i.sha===t.refs.latest.sha?t["dist-tags"].latest=n:i.sha===e.sha&&(t["dist-tags"].HEAD=n,t.refs.latest||(t["dist-tags"].latest=n))}),t},h3=t=>t.startsWith("refs/tags/")?"tag":t.startsWith("refs/heads/")?"branch":t.startsWith("refs/pull/")?"pull":t==="HEAD"?"head":"other",p3=t=>{let e=t.trim().split(/\s+/,2);if(e.length<2)return null;let r=e[0].trim(),n=e[1].trim(),i=h3(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},d3=(t,e)=>{let r=p3(e);if(!r)return t;if(t.refs[r.ref]=r,t.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&kv.valid(n[1],!0)&&(t.versions[kv.clean(n[1],!0)]=r)}return t}});var sd=E((b5,Mv)=>{var g3=js(),{LRUCache:m3}=$a(),y3=Iv(),$v=new m3({max:100,ttl:300*1e3});Mv.exports=async(t,e={})=>{if(!e.noGitRevCache){let i=$v.get(t);if(i)return i}let{stdout:r}=await g3(["ls-remote",t],e),n=y3(r.trim().split(`
60
+ `));return $v.set(t,n),n}});var jv=E(Bv=>{var A3=t=>(t.fakePlatform||process.platform)==="win32";Bv.isWindows=A3});var Wv=E((_5,qv)=>{"use strict";var{builtinModules:w3}=require("module"),b3=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),E3=["node_modules","favicon.ico"];function _3(t){var e=[],r=[];if(t===null)return r.push("name cannot be null"),zs(e,r);if(t===void 0)return r.push("name cannot be undefined"),zs(e,r);if(typeof t!="string")return r.push("name must be a string"),zs(e,r);if(t.length||r.push("name length must be greater than zero"),t.startsWith(".")&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),E3.forEach(function(o){t.toLowerCase()===o&&r.push(o+" is not a valid package name")}),w3.includes(t.toLowerCase())&&e.push(t+" is a core module name"),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){var n=t.match(b3);if(n){var i=n[1],s=n[2];if(s.startsWith(".")&&r.push("name cannot start with a period"),encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return zs(e,r)}r.push("name can only contain URL-friendly characters")}return zs(e,r)}var zs=function(t,e){var r={validForNewPackages:e.length===0&&t.length===0,validForOldPackages:e.length===0,warnings:t,errors:e};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};qv.exports=_3});var Jv=E((S5,Xs)=>{"use strict";var Ks=process.platform==="win32",{URL:od}=require("node:url"),Fi=Ks?require("node:path/win32"):require("node:path"),{homedir:S3}=require("node:os"),v3=Ba(),Uv=Hs(),Yv=Wv(),{log:C3}=Ca(),Vv=Ks?/\\|[/]/:/[/]/,Kv=/^(?:git[+])?[a-z]+:/i,x3=/^[^@]+@[^:.]+\.[^:]+:.+$/i,ud=/[.](?:tgz|tar\.gz|tar)$/i,P3=/:[0-9]+(\/|$)/i,O3=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,R3=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,Gv="https://registry.npmjs.org";function Ys(t,e){let r,n;if(typeof t=="object")return t instanceof Vs&&(!e||e===t.where)?t:t.name&&t.rawSpec?Ys.resolve(t.name,t.rawSpec,e||t.where):Ys(t.raw,e||t.where);let i=t.indexOf("@",1),s=i>0?t.slice(0,i):t;return Kv.test(t)?n=t:x3.test(t)?n=`git+ssh://${t}`:!s.startsWith("@")&&(Vv.test(s)||ud.test(s))?n=t:i>0?(r=s,n=t.slice(i+1)||"*"):Yv(t).validForOldPackages?(r=t,n="*"):n=t,Xv(r,n,e,t)}function L3(t){return t?t.toLowerCase().startsWith("file:")?!0:Ks?O3.test(t):R3.test(t):!1}function D3(t){return t?t.toLowerCase().startsWith("npm:"):!1}function Xv(t,e,r,n){let i=new Vs({raw:n,name:t,rawSpec:e,fromArgument:n!=null});if(t&&(i.name=t),r||(r=process.cwd()),L3(e))return zv(i,r);if(D3(e))return j3(i,r);let s=v3.fromUrl(e,{noGitPlus:!0,noCommittish:!0});return s?$3(i,s):e&&Kv.test(e)?B3(i):e&&(Vv.test(e)||ud.test(e))?zv(i,r):q3(i)}function F3(t,e=Gv){let r=Ys(t);if(r.type!=="version")throw N3(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return e!==Gv&&(n+="?repository_url="+e),n}function T3(t,e,r){let n=new Error(`Invalid package name "${t}" of package "${r}": ${e.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function k3(t,e){let r=new Error(`Invalid tag name "${t}" of package "${e}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function N3(t,e){let r=new Error(`Invalid type "${t}" of package "${e}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var Vs=class{constructor(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?`${e.name}@${e.rawSpec}`:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}setName(e){let r=Yv(e);if(!r.validForOldPackages)throw T3(e,r,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this}toString(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&e.push(r),e.length?e.join("@"):this.raw}toJSON(){let e=Object.assign({},this);return delete e.hosted,e}};function ad(t,e){if(!e){t.gitCommittish=null;return}for(let r of e.split("::")){if(!r.includes(":")){if(t.gitRange)throw new Error("cannot override existing semver range with a committish");if(t.gitCommittish)throw new Error("cannot override existing committish with a second committish");t.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(t.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(t.gitRange)throw new Error("cannot override existing semver range with a second semver range");t.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(t.gitSubdir)throw new Error("cannot override existing path with a second path");t.gitSubdir=`/${i}`;continue}C3.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var I3=new Map([["\0","%00"],[" ","%09"],[`
61
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",Ks?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function Hv(t){let e="";for(let r=0;r<t.length;r++)e=`${e}${I3.get(t[r])??t[r]}`;return e.startsWith("file:")?e:`file:${e}`}function zv(t,e){t.type=ud.test(t.rawSpec)?"file":"directory",t.where=e;let r=Hv(t.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new od(r,`${Hv(Fi.resolve(e))}/`),i=new od(r)}catch(a){let u=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(u,{raw:t.rawSpec,spec:t,where:e,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return Ks&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(t.saveSpec=`file:${s.substr(1)}`,o=Fi.resolve(S3(),s.substr(3))):Fi.isAbsolute(r.slice(5))?t.saveSpec=`file:${Fi.resolve(o)}`:t.saveSpec=`file:${Fi.relative(e,o)}`,t.fetchSpec=Fi.resolve(e,o),t.saveSpec=t.saveSpec.split("\\").join("/"),t.saveSpec.startsWith("file://")&&(t.saveSpec=`file:/${t.saveSpec.slice(7)}`),t}function $3(t,e){return t.type="git",t.hosted=e,t.saveSpec=e.toString({noGitPlus:!1,noCommittish:!1}),t.fetchSpec=e.getDefaultRepresentation()==="shortcut"?null:e.toString(),ad(t,e.committish),t}function M3(t,e){let r=new Error(`Unsupported URL Type "${t}": ${e}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function B3(t){let e=t.rawSpec;if(t.saveSpec=e,e.startsWith("git+ssh:")){let n=e.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(P3))return t.type="git",ad(t,n[2]),t.fetchSpec=n[1],t}else e.startsWith("git+file://")&&(e=e.replace(/\\/g,"/"));let r=new od(e);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":t.type="git",ad(t,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(e)?t.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",t.fetchSpec=r.toString()),t.fetchSpec.startsWith("git+")&&(t.fetchSpec=t.fetchSpec.slice(4));break;case"http:":case"https:":t.type="remote",t.fetchSpec=t.saveSpec;break;default:throw M3(r.protocol,e)}return t}function j3(t,e){let r=Ys(t.rawSpec.substr(4),e);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return t.subSpec=r,t.registry=!0,t.type="alias",t.saveSpec=null,t.fetchSpec=null,t}function q3(t){t.registry=!0;let e=t.rawSpec.trim();t.saveSpec=null,t.fetchSpec=e;let r=Uv.valid(e,!0),n=Uv.validRange(e,!0);if(r)t.type="version";else if(n)t.type="range";else{if(encodeURIComponent(e)!==e)throw k3(e,t.raw);t.type="tag"}return t}Xs.exports=Ys;Xs.exports.resolve=Xv;Xs.exports.toPurl=F3;Xs.exports.Result=Vs});var rC=E((v5,tC)=>{var Fn=require("node:process"),W3=require("node:os"),U3=require("node:fs");function G3(t){return t.includes("libc.musl-")||t.includes("ld-musl-")}function Qv(){return Fn.platform}function Zv(){return Fn.arch}var H3="/usr/bin/ldd";function z3(){try{let t=U3.readFileSync(H3,"utf-8");return t.includes("musl")?"musl":t.includes("GNU C Library")?"glibc":null}catch{return}}function Y3(){let t=Fn.report.excludeNetwork;Fn.report.excludeNetwork=!0;let e=Fn.report.getReport();return Fn.report.excludeNetwork=t,e.header?.glibcVersionRuntime?$r="glibc":Array.isArray(e.sharedObjects)&&e.sharedObjects.some(G3)?$r="musl":$r=null,$r}var $r;function eC(t){if(t==="linux")return $r===void 0&&($r=z3(),$r===void 0&&($r=Y3())),$r}function V3(t={}){let e=t.os||Qv();return{cpu:{name:t.cpu||Zv()},libc:{name:t.libc||eC(e)},os:{name:e,version:t.osVersion||W3.release()},packageManager:{name:"npm",version:t.npmVersion},runtime:{name:"node",version:t.nodeVersion||Fn.version}}}tC.exports={cpu:Zv,libc:eC,os:Qv,devEngines:V3}});var iC=E((C5,nC)=>{var K3=Di(),X3=ed(),J3=["ignore","warn","error","download"],Q3=["name","version","onFail"],Z3=["packageManager","runtime","cpu","libc","os"];function eU(t,e,r){let{engine:n}=r;if(typeof t!="object"||t===null||Array.isArray(t))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(t);for(let s of i)if(!Q3.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof t.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof e.name!="string"||e.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof t.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!J3.includes(t.onFail))throw new Error(`Invalid onFail value "${t.onFail}" for "${n}"`)}if(t.name!==e.name)return new Error(`Invalid name "${t.name}" does not match "${e.name}" for "${n}"`);if(i.includes("version")){if(typeof t.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof e.version!="string"||e.version==="")throw new Error(`Unable to determine "version" for "${n}" "${t.name}"`);if(X3(t.version)){if(!K3(e.version,t.version,r.semver))return new Error(`Invalid semver version "${t.version}" does not match "${e.version}" for "${n}"`)}else if(t.version!==e.version)return new Error(`Invalid version "${t.version}" does not match "${e.version}" for "${n}"`)}}function tU(t,e={},r={}){if(typeof t!="object"||t===null||Array.isArray(t))throw new Error('Invalid non-object value for "devEngines"');let n=[];for(let i of Object.keys(t)){if(!Z3.includes(i))throw new Error(`Invalid property "devEngines.${i}"`);let s=t[i],o=[s].flat(),a=e[i]||{};if(o.length===0)continue;let u=[];for(let f of o){let l=eU(f,a,{...r,engine:i});l&&u.push(l)}if(u.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let p=Object.assign(new Error(`Invalid devEngines.${i}`),{errors:u,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(p)}}return n}nC.exports={checkDevEngines:tU}});var aC=E((x5,oC)=>{var sC=Hs(),Ou=rC(),{checkDevEngines:rU}=iC(),nU=(t,e,r,n=!1)=>{let i=n?null:r,s=t.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!sC.satisfies(i,s.node,o),u=e&&s.npm&&!sC.satisfies(e,s.npm,o);if(a||u)throw Object.assign(new Error("Unsupported engine"),{pkgid:t._id,current:{node:r,npm:e},required:s,code:"EBADENGINE"})},iU=(t,e=!1,r={})=>{if(e)return;let n=r.os||Ou.os(),i=r.cpu||Ou.cpu(),s=r.libc||Ou.libc(n),o=t.os?cd(n,t.os):!0,a=t.cpu?cd(i,t.cpu):!0,u=t.libc?cd(s,t.libc):!0;if(t.libc&&!s&&(u=!1),!o||!a||!u)throw Object.assign(new Error("Unsupported platform"),{pkgid:t._id,current:{os:n,cpu:i,libc:s},required:{os:t.os,cpu:t.cpu,libc:t.libc},code:"EBADPLATFORM"})},cd=(t,e)=>{if(typeof e=="string"&&(e=[e]),e.length===1&&e[0]==="any")return!0;let r=0,n=!1;for(let i of e){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,t===o)return!1}else n=n||t===o}return n||r===e.length};oC.exports={checkEngine:nU,checkPlatform:iU,checkDevEngines:rU,currentEnv:Ou}});var fC=E((P5,lC)=>{var{join:uC,basename:cC}=require("path"),sU=t=>t.bin?typeof t.bin=="string"?oU(t):Array.isArray(t.bin)?aU(t):typeof t.bin=="object"?fd(t):ld(t):ld(t),oU=t=>t.name?(t.bin={[t.name]:t.bin},fd(t)):ld(t),aU=t=>(t.bin=t.bin.reduce((e,r)=>(e[cC(r)]=r,e),{}),fd(t)),ld=t=>(delete t.bin,t),fd=t=>{let e=t.bin,r={},n=!1;return Object.keys(e).forEach(i=>{let s=uC("/",cC(i.replace(/\\|:/g,"/"))).slice(1);if(typeof e[i]!="string"||!s)return;let o=uC("/",e[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?t.bin=r:delete t.bin,t};lC.exports=sU});var dC=E((O5,pC)=>{"use strict";var hC=Jv(),Js=Hs(),{checkEngine:uU}=aC(),cU=fC(),hd=(t,e,r)=>{try{return uU(t,e,r),!0}catch{return!1}},Ru=(t,e,r)=>!t||!t[e]||Date.parse(t[e])<=r,lU={includePrerelease:!0,loose:!0},Lu=(t,e)=>e&&Js.satisfies(t,e,lU),pd=(t,e)=>t&&Lu(t.version,e)?{...t,_shouldAvoid:!0}:t,Qs=(t,e,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:u=null,avoidStrict:c=!1}=r,{name:f,time:l}=t,p=t.versions||{};if(c){let X={...r,avoidStrict:!1},te=Qs(t,e,X);if(!te||!te._shouldAvoid)return te;let L=Qs(t,`^${te.version}`,X);if(!L||!L._shouldAvoid)return{...L,_outsideDependencyRange:!0,_isSemVerMajor:!1};let b=Qs(t,"*",X);if(!b||!b._shouldAvoid)return{...b,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:e,avoid:u,before:i,versions:Object.keys(p)})}let d=a&&t.stagedVersions&&t.stagedVersions.versions||{},g=t.policyRestrictions&&t.policyRestrictions.versions||{},m=i&&l?+new Date(i):1/0,_=hC.resolve(f,e||n).type,v=t["dist-tags"]||{};if(_!=="tag"&&_!=="version"&&_!=="range")throw new Error("Only tag, version, and range are supported");if(e&&_==="tag"){let X=v[e];return Ru(l,X,m)?pd(p[X]||d[X]||g[X],u):Qs(t,`<=${X}`,r)}if(e&&_==="version"){let X=Js.clean(e,{loose:!0}),te=p[X]||d[X]||g[X];return Ru(l,X,m)?pd(te,u):null}let F=_==="range"?e:"*",k=v[n];if(k&&(F==="*"||Js.satisfies(k,F,{loose:!0}))&&!g[k]&&!Lu(k,u)){let X=p[k];if(X&&Ru(l,k,m)&&hd(X,o,s)&&!X.deprecated&&!d[k])return X}let W=Object.entries(p).concat(Object.entries(d)).concat(Object.entries(g)).filter(([X])=>Ru(l,X,m));if(!W.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:_,wanted:e,before:i,versions:Object.keys(p)});let Z={loose:!0},ee=W.filter(([X])=>Js.satisfies(X,F,{loose:!0})).sort((X,te)=>{let[L,b]=X,[T,N]=te,re=!Lu(L,u),C=!Lu(T,u),R=!g[L],de=!g[T],$=!d[L],De=!d[T],_e=!b.deprecated,Fe=!N.deprecated,Me=hd(b,o,s),st=hd(N,o,s);return C-re||de-R||De-$||(Fe&&st)-(_e&&Me)||st-Me||Fe-_e||Js.rcompare(L,T,Z)});return pd(ee[0]&&ee[0][1],u)};pC.exports=(t,e,r={})=>{let n=Qs(t,e,r),i=n&&cU(n),s=t.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:u="latest"}=r,c=a?new Date(a).toLocaleString():"",{name:f}=t,l=`${f}@${e}`+(a?` with a date before ${c}`:""),p=i&&!!o[i.version],d=p?s.message:"",g=p?`Could not download ${l} due to policy violations:
62
+ ${d}`:`No matching version found for ${l}.`,m=p?"E403":"ETARGET";throw Object.assign(new Error(g),{code:m,type:hC.resolve(t.name,e).type,wanted:e,versions:Object.keys(t.versions??{}),name:f,distTags:t["dist-tags"],defaultTag:u})}});var AC=E((R5,yC)=>{var fU=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:hU}=require("url"),gC=require("path"),pU=sd(),Zs=js(),{isWindows:Du}=jv(),dU=dC(),dd=require("fs/promises");yC.exports=(t,e="HEAD",r=null,n={})=>pU(t,n).then(i=>mU(t,i,e,yU(i,e,n),r||gU(t,n.cwd),n));var gd=(t,e)=>e.gitShallow===!1||e.gitShallow?e.gitShallow:fU.has(hU(t).host),gU=(t,e=process.cwd())=>gC.resolve(e,gC.basename(t.replace(/[/\\]?\.git$/,""))),mU=(t,e,r,n,i,s)=>n?n.sha===e.refs.HEAD.sha?bU(t,n,i,s):n.type==="tag"||n.type==="branch"?wU(t,n,i,s):AU(t,n,i,s):EU(t,r,i,s),yU=(t,e,r)=>{let{spec:n={}}=r;return e=n.gitCommittish||e,t?n.gitRange?dU(t,n.gitRange,r):e?t.refs[e]?t.refs[e]:t.shas[e]?t.refs[t.shas[e][0]]:null:t.refs.HEAD:null},AU=(t,e,r,n)=>{let i=gd(t,n),s=["fetch","origin",e.rawRef].concat(i?["--depth=1"]:[]),o=a=>Zs(a,{...n,cwd:r});return dd.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>Du(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",t])).then(()=>o(s)).then(()=>o(["checkout",e.sha])).then(()=>mC(r,n)).then(()=>e.sha)},wU=(t,e,r,n)=>{let i=["clone","-b",e.ref,t,r,"--recurse-submodules"];return gd(t,n)&&i.push("--depth=1"),Du(n)&&i.push("--config","core.longpaths=true"),Zs(i,n).then(()=>e.sha)},bU=(t,e,r,n)=>{let i=["clone",t,r,"--recurse-submodules"];return gd(t,n)&&i.push("--depth=1"),Du(n)&&i.push("--config","core.longpaths=true"),Zs(i,n).then(()=>e.sha)},mC=async(t,e)=>await dd.stat(`${t}/.gitmodules`).then(()=>!0).catch(()=>!1)?Zs(["submodule","update","-q","--init","--recursive"],{...e,cwd:t}):null,EU=(t,e,r,n)=>{let i=Du(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",t,r+"/.git"],o=a=>Zs(a,{...n,cwd:r});return dd.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",e])).then(()=>mC(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var md=E((L5,wC)=>{var{stat:_U}=require("fs/promises");wC.exports=({cwd:t=process.cwd()}={})=>_U(t+"/.git").then(()=>!0,()=>!1)});var EC=E((D5,bC)=>{var SU=md(),{dirname:vU}=require("path");bC.exports=async({cwd:t=process.cwd(),root:e}={})=>{for(;;){if(await SU({cwd:t}))return t;let r=vU(t);if(t===e||t===r)return null;t=r}}});var SC=E((F5,_C)=>{var CU=js();_C.exports=(t={})=>CU(["status","--porcelain=v1","-uno"],t).then(e=>!e.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var CC=E((T5,vC)=>{vC.exports={clone:AC(),revs:sd(),spawn:js(),is:md(),find:EC(),isClean:SC(),errors:qp()}});var DC=E((k5,LC)=>{var xU=Da(),PU=Yh(),cn=require("node:fs/promises"),He=require("node:path"),{log:OC}=FE(),OU=require("node:module"),yd;function xC(){return yd||(yd=Ba()),yd}var Ad;function Fu(){return Ad||(Ad=Rp().glob),Ad}function RU(t,e){if(t.bin&&(typeof t.bin=="string"&&t.name?(e?.push('"bin" was converted to an object'),t.bin={[t.name]:t.bin}):Array.isArray(t.bin)&&(e?.push('"bin" was converted to an object'),t.bin=t.bin.reduce((r,n)=>(r[He.basename(n)]=n,r),{})),typeof t.bin=="object")){for(let r in t.bin){if(typeof t.bin[r]!="string"){delete t.bin[r],e?.push(`removed invalid "bin[${r}]"`);continue}let n=He.basename(Ti(r));if(!n){delete t.bin[r],e?.push(`removed invalid "bin[${r}]"`);continue}let i=Ti(t.bin[r]);if(!i){delete t.bin[r],e?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete t.bin[r],e?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==t.bin[r]&&e?.push(`"bin[${n}]" script name ${i} was invalid and removed`),t.bin[n]=i}return Object.keys(t.bin).length===0&&(e?.push('empty "bin" was removed'),delete t.bin),t}delete t.bin}function LU(t,e){if(t.man){let r=[];for(let n of Array.isArray(t.man)?t.man:[t.man])typeof n!="string"?e?.push(`removed invalid "man [${n}]"`):r.push(Ti(n));if(!r.length)e?.push('empty "man" was removed');else return t.man=r,t}delete t.man}function DU(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}function FU(t){if(t.charAt(0)!=="@")return!1;let e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}function PC(t){return t.replace(/\\|:/g,"/")}function Ti(t){let e=PC(He.join(".",He.join("/",PC(t))));return e.startsWith("./")?"":e}function RC(t,{strict:e,steps:r,changes:n,allowLegacyCase:i}){let s=t.content,o=`${s.name??""}@${s.version??""}`;if(r.includes("fixName")||r.includes("fixNameField")||r.includes("normalizeData"))if(!s.name&&!e)n?.push('Missing "name" field was set to an empty string'),s.name="";else{if(typeof s.name!="string")throw new Error("name field must be a string.");if(!e){let a=s.name.trim();s.name!==a&&(n?.push('Whitespace was trimmed from "name"'),s.name=a)}if(s.name.startsWith(".")||!(FU(s.name)||DU(s.name))||e&&!i&&s.name!==s.name.toLowerCase()||s.name.toLowerCase()==="node_modules"||s.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(s.name))}if(r.includes("fixName")&&OU.builtinModules.includes(s.name)&&OC.warn("package-json",o,`Package name "${s.name}" conflicts with a Node.js built-in module name`),r.includes("fixVersionField")||r.includes("normalizeData")){let a=!e;if(!s.version)s.version="";else{if(!xU(s.version,a))throw new Error(`Invalid version: "${s.version}"`);let u=PU(s.version,a);u!==s.version&&(n?.push(`"version" was cleaned and set to "${u}"`),s.version=u)}}if(r.includes("_attributes"))for(let a in s)a.startsWith("_")&&(n?.push(`"${a}" was removed`),delete t.content[a]);if(r.includes("_id")&&s.name&&s.version&&(n?.push(`"_id" was set to ${o}`),s._id=o),r.includes("bundledDependencies")&&(s.bundleDependencies===void 0&&s.bundledDependencies!==void 0&&(s.bundleDependencies=s.bundledDependencies,n?.push('Deleted incorrect "bundledDependencies"')),delete s.bundledDependencies),r.includes("bundleDependencies")){let a=s.bundleDependencies;a===!1&&!r.includes("bundleDependenciesDeleteFalse")?(n?.push('"bundleDependencies" was changed from "false" to "[]"'),s.bundleDependencies=[]):a===!0?(n?.push('"bundleDependencies" was auto-populated from "dependencies"'),s.bundleDependencies=Object.keys(s.dependencies||{})):a&&typeof a=="object"?Array.isArray(a)||(n?.push('"bundleDependencies" was changed from an object to an array'),s.bundleDependencies=Object.keys(a)):"bundleDependencies"in s&&(n?.push('"bundleDependencies" was removed'),delete s.bundleDependencies)}if(r.includes("optionalDedupe")&&s.dependencies&&s.optionalDependencies&&typeof s.optionalDependencies=="object"){for(let a in s.optionalDependencies)n?.push(`optionalDependencies."${a}" was removed`),delete s.dependencies[a];Object.keys(s.dependencies).length||(n?.push('Empty "optionalDependencies" was removed'),delete s.dependencies)}if((r.includes("scripts")||r.includes("scriptpath"))&&s.scripts!==void 0){let a=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof s.scripts=="object")for(let u in s.scripts)typeof s.scripts[u]!="string"?(delete s.scripts[u],n?.push(`Invalid scripts."${u}" was removed`)):r.includes("scriptpath")&&a.test(s.scripts[u])&&(s.scripts[u]=s.scripts[u].replace(a,""),n?.push(`scripts entry "${u}" was fixed to remove node_modules/.bin reference`));else n?.push('Removed invalid "scripts"'),delete s.scripts}if(r.includes("funding")&&s.funding&&typeof s.funding=="string"&&(s.funding={url:s.funding},n?.push('"funding" was changed to an object with a url attribute')),(r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(s.repositories&&(n?.push(`"repository" was set to the first entry in "repositories" (${s.repository})`),s.repository=s.repositories[0]),s.repository&&(typeof s.repository=="string"&&(n?.push('"repository" was changed from a string to an object'),s.repository={type:"git",url:s.repository}),s.repository.url))){let a=xC().fromUrl(s.repository.url),u;a&&(a.getDefaultRepresentation()==="shortcut"?u=a.https():u=a.toString(),u!==s.repository.url&&(n?.push(`"repository.url" was normalized to "${u}"`),s.repository.url=u))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let a of["dependencies","devDependencies","optionalDependencies"])if(s[a]){let u=!0;if(typeof s[a]=="string"&&(n?.push(`"${a}" was converted from a string into an object`),s[a]=s[a].trim().split(/[\n\r\s\t ,]+/),u=!1),Array.isArray(s[a])){u&&n?.push(`"${a}" was converted from an array into an object`);let c={};for(let f of s[a])if(typeof f=="string"){let l=f.trim().split(/(:?[@\s><=])/),p=l.shift(),d=l.join("").replace(/^@/,"").trim();c[p]=d}s[a]=c}}for(let a of["dependencies","devDependencies"])if(a in s)if(!s[a]||typeof s[a]!="object")n?.push(`Removed invalid "${a}"`),delete s[a];else for(let u in s[a]){typeof s[a][u]!="string"&&(n?.push(`Removed invalid "${a}.${u}"`),delete s[a][u]);let f=xC().fromUrl(s[a][u])?.toString();f&&f!==s[a][u]&&(n?.push(`Normalized git reference to "${a}.${u}"`),s[a][u]=f.toString())}}if(r.includes("normalizeData")){let{normalizeData:a}=h1();a(s,n)}}async function TU(t,{steps:e,root:r,changes:n}){let i=t.content,s=i.scripts||{},o=`${i.name??""}@${i.version??""}`;if(e.includes("gypfile")&&!s.install&&!s.preinstall&&i.gypfile!==!1&&(await Fu()("*.gyp",{cwd:t.path})).length&&(s.install="node-gyp rebuild",i.scripts=s,i.gypfile=!0,n?.push('"scripts.install" was set to "node-gyp rebuild"'),n?.push('"gypfile" was set to "true"')),e.includes("serverjs")&&!s.start)try{await cn.access(He.join(t.path,"server.js")),s.start="node server.js",i.scripts=s,n?.push('"scripts.start" was set to "node server.js"')}catch{}if(e.includes("authors")&&!i.contributors)try{let u=(await cn.readFile(He.join(t.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(c=>c.replace(/^\s*#.*$/,"").trim()).filter(c=>c);i.contributors=u,n?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(e.includes("readme")&&!i.readme){let a=/\.m?a?r?k?d?o?w?n?$/i,u=await Fu()("{README,README.*}",{cwd:t.path,nocase:!0,mark:!0}),c;for(let f of u)if(!f.endsWith(He.sep)){if(f.match(a)){c=f;break}f.endsWith("README")&&(c=f)}if(c){let f=await cn.readFile(He.join(t.path,c),"utf8");i.readme=f,i.readmeFilename=c,n?.push(`"readme" was set to the contents of ${c}`),n?.push(`"readmeFilename" was set to ${c}`)}i.readme||(i.readme="ERROR: No README data found!")}if(e.includes("mans")){if(i.directories?.man&&!i.man){let a=Ti(i.directories.man),u=He.resolve(t.path,a),c=await Fu()("**/*.[0-9]",{cwd:u});i.man=c.map(f=>He.relative(t.path,He.join(u,f)).split(He.sep).join("/"))}LU(i,n)}if(e.includes("binDir")&&i.directories?.bin&&!i.bin){let a=Ti(i.directories.bin),u=await Fu()("**",{cwd:He.resolve(t.path,a)});i.bin=u.reduce((c,f)=>{if(f&&!f.startsWith(".")){let l=He.basename(f);c[l]=`${a}/${Ti(f)}`}return c},{})}else(e.includes("bin")||e.includes("binDir")||e.includes("binRefs"))&&RU(i,n);if(e.includes("gitHead")&&!i.gitHead){let u=await CC().find({cwd:t.path,root:r}),c;if(u)try{c=await cn.readFile(He.resolve(u,".git/HEAD"),"utf8")}catch{}let f;if(c)if(c.startsWith("ref: ")){let l=c.replace(/^ref: /,"").trim(),p=He.resolve(u,".git",l);try{f=await cn.readFile(p,"utf8"),f=f.replace(/^ref: /,"").trim()}catch{}if(!f){let d=He.resolve(u,".git/packed-refs");try{let g=await cn.readFile(d,"utf8");if(g){g=g.split(`
63
+ `);for(let m=0;m<g.length;m++){let y=g[m].match(/^([0-9a-f]{40}) (.+)$/);if(y&&y[2].trim()===l){f=y[1];break}}}}catch{}}}else f=c.trim();f&&(i.gitHead=f)}if(e.includes("fillTypes")){let a=i.main||"index.js";if(typeof a!="string")throw new TypeError('The "main" attribute must be of type string.');let c=`./${He.join(He.dirname(a),He.basename(a,He.extname(a)))}.d.ts`;if(!("types"in i||"typings"in i))try{await cn.access(He.join(t.path,c)),i.types=c.split(He.sep).join("/")}catch{}}if(e.includes("binRefs")&&i.bin instanceof Object)for(let a in i.bin)try{await cn.access(He.resolve(t.path,i.bin[a]))}catch{OC.warn("package-json",o,`No bin file found at ${i.bin[a]}`)}}async function kU(t,e){if(!t.content)throw new Error("Can not normalize without content");await TU(t,e),RC(t,e)}function NU(t,e){RC(t,e)}LC.exports={normalize:kU,syncNormalize:NU}});var NC=E((N5,kC)=>{var{readFile:IU}=require("fs/promises"),$U=Hh();async function FC(t){try{return await IU(t,"utf8")}catch(e){throw e.message=`Could not read package.json: ${e}`,e}}function TC(t){try{return $U(t)}catch(e){throw e.message=`Invalid package.json: ${e}`,e}}async function MU(t){let e=await FC(t);return TC(e)}kC.exports={read:FC,parse:TC,readPackage:MU}});var $C=E((I5,IC)=>{function BU(t){let{name:e,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:u,funding:c,license:f,author:l,maintainers:p,contributors:d,type:g,imports:m,exports:y,main:_,browser:v,types:F,bin:k,man:W,directories:Z,files:ee,workspaces:X,scripts:te,config:L,dependencies:b,devDependencies:T,peerDependencies:N,peerDependenciesMeta:re,optionalDependencies:C,bundledDependencies:R,bundleDependencies:de,engines:$,os:De,cpu:_e,publishConfig:Fe,devEngines:Me,licenses:st,overrides:he,...Xe}=t;return{...typeof e<"u"?{name:e}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof u<"u"?{repository:u}:{},...typeof c<"u"?{funding:c}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof p<"u"?{maintainers:p}:{},...typeof d<"u"?{contributors:d}:{},...typeof g<"u"?{type:g}:{},...typeof m<"u"?{imports:m}:{},...typeof y<"u"?{exports:y}:{},...typeof _<"u"?{main:_}:{},...typeof v<"u"?{browser:v}:{},...typeof F<"u"?{types:F}:{},...typeof k<"u"?{bin:k}:{},...typeof W<"u"?{man:W}:{},...typeof Z<"u"?{directories:Z}:{},...typeof ee<"u"?{files:ee}:{},...typeof X<"u"?{workspaces:X}:{},...typeof te<"u"?{scripts:te}:{},...typeof L<"u"?{config:L}:{},...typeof b<"u"?{dependencies:b}:{},...typeof T<"u"?{devDependencies:T}:{},...typeof N<"u"?{peerDependencies:N}:{},...typeof re<"u"?{peerDependenciesMeta:re}:{},...typeof C<"u"?{optionalDependencies:C}:{},...typeof R<"u"?{bundledDependencies:R}:{},...typeof de<"u"?{bundleDependencies:de}:{},...typeof $<"u"?{engines:$}:{},...typeof De<"u"?{os:De}:{},...typeof _e<"u"?{cpu:_e}:{},...typeof Fe<"u"?{publishConfig:Fe}:{},...typeof Me<"u"?{devEngines:Me}:{},...typeof st<"u"?{licenses:st}:{},...typeof he<"u"?{overrides:he}:{},...Xe}}IC.exports={packageSort:BU}});var Ed=E(($5,jC)=>{var{readFile:jU,writeFile:qU}=require("node:fs/promises"),{resolve:MC}=require("node:path"),WU=Hh(),BC=CE(),UU=PE(),GU=RE(),{normalize:wd,syncNormalize:HU}=DC(),{read:zU,parse:YU}=NC(),{packageSort:VU}=$C(),KU=new Set([BC,UU,GU]),XU=new Set([...BC.knownKeys,"scripts","workspaces"]),bd=class t{static fixSteps=Object.freeze(["binRefs","bundleDependencies","fixName","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin","binDir"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(e,r={}){let n=new t;return await n.create(e),r.data?n.update(r.data):n}static async load(e,r={}){let n=new t;if(!r.create)return n.load(e);try{return await n.load(e)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(e)}}static async fix(e,r){let n=new t;return await n.load(e,!0),n.fix(r)}static async prepare(e,r){let n=new t;return await n.load(e,!0),n.prepare(r)}static async normalize(e,r){let n=new t;return await n.load(e),n.normalize(r)}#e;#n;#t="";#r=!0;async load(e,r){this.#e=e;let n;try{this.#t=await zU(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=MC(this.path,"index.js"),s;try{s=await jU(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#r=!1,this}return this.fromJSON(this.#t)}fromJSON(e){return this.#n=YU(e),this}fromContent(e){if(!e||typeof e!="object")throw new Error("Content data must be an object");return this.#n=e,this.#r=!1,this}fromComment(e){if(e=e.split(/^\/\*\*package(?:\s|$)/m),e.length<2)throw new Error("File has no package in comments");if(e=e[1],e=e.split(/\*\*\/$/m),e.length<2)throw new Error("File has no package in comments");return e=e[0],e=e.replace(/^\s*\*/mg,""),this.#n=WU(e),this}get content(){return this.#n}get path(){return this.#e}get filename(){if(this.path)return MC(this.path,"package.json")}create(e){return this.#e=e,this.#n={},this}update(e){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of KU)this.#n=r({content:e,originalContent:this.content});for(let[r,n]of Object.entries(e))XU.has(r)||(this.content[r]=n);return this}async save({sort:e}={}){if(!this.#r)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
64
+ `:n,a=e?VU(i):i,u=`${JSON.stringify(a,null,s)}
65
+ `.replace(/\n/g,o);if(u.trim()!==this.#t.trim()){let c=await qU(this.filename,u);return this.#t=u,c}}syncNormalize(e={}){return e.steps=this.constructor.normalizeSteps.filter(r=>r!=="_attributes"),HU(this,e),this}async normalize(e={}){return e.steps||(e.steps=this.constructor.normalizeSteps),await wd(this,e),this}async prepare(e={}){return e.steps||(e.steps=this.constructor.prepareSteps),await wd(this,e),this}async fix(e={}){return e.steps=this.constructor.fixSteps,await wd(this,e),this}};jC.exports=bd});var UC=E((M5,WC)=>{var{basename:qC,dirname:JU}=require("path"),QU=(t,e)=>t.charAt(0)==="@"?`${t}/${e}`:e;WC.exports=t=>t?QU(qC(JU(t)),qC(t)):!1});var KC=E((B5,VC)=>{var GC=require("path"),ZU=UC(),{minimatch:eo}=kr(),eG=Ed(),{glob:tG}=Rp();function rG(t){let e=[],r=[];for(let n of t){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];eo(n,a)&&r.splice(o,1)}e.push(n)}}for(let n of r)for(let i of eo.match(e,n))e.splice(e.indexOf(i),1);return{patterns:e,negatedPatterns:r}}function HC(t){let e=Array.isArray(t.packages)?t.packages:t;if(!Array.isArray(e))throw Tu({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return rG(e)}function zC(t,e){return t.name||ZU(e)}function nG(t){return t=t.replace(/\\/g,"/"),t.endsWith("/")?t:`${t}/`}function Tu({Type:t=TypeError,message:e,code:r}){return Object.assign(new t(e),{code:r})}function iG(t){return new Map(Array.from(t,e=>e.reverse()))}async function YC(t={}){if(!t||!t.pkg)throw Tu({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});t.cwd||(t.cwd=process.cwd());let{workspaces:e=[]}=t.pkg,{patterns:r,negatedPatterns:n}=HC(e),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...t,ignore:[...t.ignore||[],"**/node_modules/**",...n]}),a=await tG(r.map(f=>nG(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let u=[];for(let f of r)u.push(...a.filter(l=>eo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of u){let l;try{l=await eG.normalize(GC.join(t.cwd,f))}catch(g){if(g.code==="ENOENT"||g.code==="ENOTDIR")continue;throw g}let p=zC(l.content,l.path),d=s.get(p);d||(d=new Set,s.set(p,d)),d.add(l.path)}let c=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?sG(c,f,l):i.set(f,l.values().next().value);if(c.length>1)throw Tu({Type:Error,message:c.join(`
66
+ `),code:"EDUPLICATEWORKSPACE"});return i}function sG(t,e,r){t.push(`package '${e}' has conflicts in the following paths:`);for(let n of r)t.push(" "+n)}YC.virtual=function(t={}){if(!t||!t.lockfile)throw Tu({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});t.cwd||(t.cwd=process.cwd());let{packages:e={}}=t.lockfile,{workspaces:r=[]}=e[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=HC(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(e);for(let a of s)for(let u of eo.match(o,a))o.splice(o.indexOf(u),1);for(let a of i)for(let u of eo.match(o,a)){let c=GC.join(t.cwd,u),f=zC(e[u],c);n.set(c,f)}return iG(n)};VC.exports=YC});var ex=E((j5,ZC)=>{var{walkUp:oG}=Eb(),XC=vh(),Mr=Lh(),{log:jt,time:aG}=Ca(),{resolve:no,dirname:ku,join:_d}=require("node:path"),{homedir:uG}=require("node:os"),{readFile:cG,writeFile:lG,chmod:fG,unlink:hG,stat:JC,mkdir:pG}=require("node:fs/promises"),dG=["npm-version","global-prefix","local-prefix"],Sd=(...t)=>JC(no(...t)).then(e=>e.isFile()).catch(()=>!1),gG=(...t)=>JC(no(...t)).then(e=>e.isDirectory()).catch(()=>!1),Nu=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ki=Fa(),Tn=sE(),mG=jh(),yG=cE(),AG=pE(),QC=new Set(["global","user","project"]),to=new Set(["default","builtin",...QC,"env","cli"]),vd=class{#e=!1;#n;#t=null;static get typeDefs(){return ki}constructor({definitions:e,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:u=process.platform,execPath:c=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=e;let p={},d={};this.deprecated={};for(let[y,_]of Object.entries(e))d[y]=_.default,p[y]=_.type,_.deprecated&&(this.deprecated[y]=_.deprecated.trim().replace(/\n +/,`
67
+ `));this.#n=n,this.types=p,this.shorthands=r,this.defaults=d,this.npmPath=s,this.npmBin=_d(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=c,this.platform=u,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let g=[...to];this.data=new Map;let m=null;for(let y of g)this.data.set(y,m=new Cd(m));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:y}of this.data.values())this.list.unshift(y);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#r("global")?this.globalPrefix:this.localPrefix}find(e){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(Nu(s,e))return i}return null}get(e,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#r(e,r)}#r(e,r=null){if(r!==null&&!to.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||Nu(n,e)?n[e]:void 0}set(e,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!to.has(n))throw new Error("invalid config location param: "+n);this.#g(e);let{data:i,raw:s}=this.data.get(n);i[e]=r,["global","user","project"].includes(n)&&(s[e]=r),this.data.get(n)[Ni]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let e=aG.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#n(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,e(),this.#t}delete(e,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!to.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[e],["global","user","project"].includes(r)&&delete i[e]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let e={...this.defaults,prefix:this.globalPrefix};try{e["npm-version"]=require(_d(this.npmPath,"package.json")).version}catch{}this.#d(e,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>no(this.#r("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||uG()}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=ku(this.execPath):(this.globalPrefix=ku(ku(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=_d(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let e=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()),e[i]=n}this.#d(e,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&jt.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);Mr.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli"),Mr.unknownHandler=this.unknownHandler,Mr.abbrevHandler=this.abbrevHandler;let e=Mr(this.types,this.shorthands,this.argv);Mr.invalidHandler=null,Mr.unknownHandler=null,this.parsedArgv=e.argv,delete e.argv,this.#d(e,"cli","command line options")}get valid(){for(let[e,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(e))return!1;return!0}validate(e){if(e){let r=this.data.get(e);return r[Ni]=!0,Mr.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,e),Mr.clean(r.data,this.types,ki),Mr.invalidHandler=null,r[Ni]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=Tn(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=gE();throw new i(n)}return r}}repair(e){if(!e)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;e=r.problems}finally{e||(e=[])}for(let r of e)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(e){let[r,...n]=[...to],i=this.data.get(r).data;return Nu(i,e)&&n.every(s=>{let o=this.data.get(s).data;return!Nu(o,e)})}invalidHandler(e,r,n,i,s){let o=AE();jt.warn("invalid config",e+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[Ni]=!1,Array.isArray(n)&&(n.includes(ki.url.type)?n=ki.url.type:n.includes(ki.path.type)&&(n=ki.path.type));let a=o(n),u=a.filter(l=>l!==void 0&&l!==Array),c="Must be"+this.#s(u,a),f=u.length===1?u[0]:[...new Set(u.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");jt.warn("invalid config",c,f)}abbrevHandler(e,r){jt.warn(`Expanding --${e} to --${r}. This will stop working in the next major version of npm.`)}unknownHandler(e,r){r&&jt.warn(`"${r}" is being parsed as a normal command line argument.`)}#s(e,r){let n;return e.length===1&&r.includes(Array)?n=" one or more":e.length>1&&r.includes(Array)?n=" one or more of:":e.length>1?n=" one of:":n="",n}#d(e,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"&&jt.verbose("config",`error loading ${r} config`,i);else{s.raw=e;for(let[o,a]of Object.entries(e)){let u=mG(o,this.env),c=this.parseField(a,u);if(r!=="default"&&(this.#g(u),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} cannot be provided when using --${f}`)}(r!=="default"||o==="npm-version")&&this.checkUnknown(r,o),s.data[u]=c}}}checkUnknown(e,r){if(!this.definitions[r]){if(dG.includes(r))return;if(!r.includes(":")){jt.warn(`Unknown ${e} config "${e==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&jt.warn(`Unknown ${e} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#g(e){this.deprecated[e]&&jt.warn("config",e,this.deprecated[e])}parseField(e,r,n=!1){return yG(e,r,this,n)}async#u(e,r){jt.silly("config",`load:file:${e}`),await cG(e,"utf8").then(n=>{let i=XC.parse(n);return r==="project"&&i.prefix&&jt.error("config",`prefix cannot be changed from project config: ${e}.`),this.#d(i,r,e)},n=>this.#d(null,r,e,n))}loadBuiltinConfig(){return this.#u(no(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await Sd(this.localPrefix,"package.json")),this.#r("global")===!0||this.#r("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let e=no(this.localPrefix,".npmrc");if(e!==this.#r("userconfig"))return this.#u(e,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let e=this.#r("prefix","cli");if(e){this.localPrefix=e;return}let r=this.#r("workspaces","cli"),n=this.#r("global")||this.#r("location")==="global";for(let i of oG(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await Sd(i,"package.json");if(!this.localPrefix&&(s||await gG(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=Ed(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let c=await KC()({cwd:i,pkg:a});for(let f of c.values())if(f===this.localPrefix){await Sd(this.localPrefix,".npmrc")&&jt.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,jt.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#u(this.#r("userconfig"),"user")}loadGlobalConfig(){return this.#u(this.#r("globalconfig"),"global")}async save(e){if(!this.loaded)throw new Error("call config.load() before saving");if(!QC.has(e))throw new Error("invalid config location param: "+e);let r=this.data.get(e);if(r[ro]=null,e==="user"){let o=Tn(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=XC.stringify(r.raw).trim()+`
68
+ `;if(!n.trim()){await hG(r.source).catch(()=>{});return}let i=ku(r.source);await pG(i,{recursive:!0}),await lG(r.source,n,"utf8");let s=e==="user"?384:438;await fG(r.source,s)}clearCredentialsByURI(e,r="user"){let n=Tn(e);if(Tn(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(e,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=Tn(e);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let u=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,u,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(e){let r=Tn(e),n=Tn(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let u=this.get(`${r}:_authToken`);if(u)return i.token=u,i;let c=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(c&&f){i.username=c,i.password=Buffer.from(f,"base64").toString("utf8");let p=`${i.username}:${i.password}`;return i.auth=Buffer.from(p,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let d=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=d.shift(),i.password=d.join(":"),i.auth=l,i}return i}setEnvs(){AG(this)}},ro=Symbol("loadError"),Ni=Symbol("valid"),Cd=class{#e;#n=null;#t=null;constructor(e){this.#e=Object.create(e&&e.data),this.#t={},this[Ni]=!0}get data(){return this.#e}get valid(){return this[Ni]}set source(e){if(this.#n)throw new Error("cannot set ConfigData source more than once");this.#n=e}get source(){return this.#n}set loadError(e){if(this[ro]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[ro]=e}get loadError(){return this[ro]}set raw(e){if(Object.keys(this.#t).length||this[ro])throw new Error("cannot set ConfigData raw after load");this.#t=e}get raw(){return this.#t}};ZC.exports=vd});var AP=pt(require("node:process"),1);var yh=require("node:path"),Jw=pt(require("node:fs/promises"),1),Ah=pt(require("node:path"),1),Qw=require("node:os"),Zw=pt(Rc(),1);var RI=t=>{try{t.startsWith("https://")||(t="https://"+t);let e=new URL(t),r=e.hostname,n=e.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")}},wi=(t,e="")=>{try{let{organization:r}=RI(t);return r}catch{return e}};function rn(t){return Buffer.from(t||"").toString("base64")}var ma=t=>Buffer.from(t,"base64").toString("utf8");var gh=pt(require("node:https"),1),ya=pt(require("node:fs"),1),Vw=pt(require("node:path"),1),LI={port:443,method:"GET"},Kw=async t=>new Promise((e,r)=>{let n={...LI,...t};gh.default.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&DI(n?.headers,"application/json")&&(a=JSON.parse(o.toString().trim())),u?e(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()});function DI(t,e){var r;if(!t)return!1;if(Array.isArray(t)){for(let s of t){let o=s.toLowerCase().indexOf("accept:");if(o===0&&s.slice(o+7).trim().split(",").map(c=>c.trim()).includes(e))return!0}return!1}let i=(r=Object.entries(t).find(([s])=>s.toLowerCase()==="accept"))===null||r===void 0?void 0:r[1];return typeof i=="string"?i===e:Array.isArray(i)?i.includes(e):!1}async function mh(t,e){return new Promise((r,n)=>{gh.default.get(t,i=>{if(i.statusCode===301||i.statusCode===302){let o=i.headers.location;if(o){mh(o,e).then(r).catch(n);return}else{n(new Error("Redirect without location header"));return}}if(i.statusCode!==200){n(new Error(`HTTP ${i.statusCode}: ${i.statusMessage}`));return}let s;try{let o=Vw.default.dirname(e);ya.default.existsSync(o)||ya.default.mkdirSync(o,{recursive:!0}),s=ya.default.createWriteStream(e)}catch(o){n(o);return}s.on("error",o=>{n(o)}),i.pipe(s),s.on("finish",()=>{r()})}).on("error",i=>{n(i)})})}var Xw=async({password:t,organization:e})=>{let r=`Basic ${rn(`.:${t}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${e}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await Kw(n)}catch(i){if(i.statusCode===404)return;throw i}};var Aa="me",wa="me@example.com",bi=class{constructor(e,r,n){this.id=e,this.workspaceFileName=r;let i;if(n&&Ah.default.basename(n)===this.workspaceFileName)i=Ah.default.resolve(n);else{let o=(0,Zw.getWorkspaceManagerRoot)(process.cwd())||"";i=(0,yh.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,Qw.homedir)()||"";this.userFilePath=(0,yh.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await Jw.default.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let e=[],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 Xw({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}e.push({feed:s,isValid:o,fileProvider:this})}else e.push({feed:{registry:i,adoOrganization:wi(i)},isValid:!1,fileProvider:this})}return e}};var FI=Object.create,eb=Object.defineProperty,TI=Object.getOwnPropertyDescriptor,kI=Object.getOwnPropertyNames,NI=Object.getPrototypeOf,II=Object.prototype.hasOwnProperty,qe=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),$I=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var i=kI(e),s=0,o=i.length,a;s<o;s++)a=i[s],!II.call(t,a)&&a!==r&&eb(t,a,{get:(u=>e[u]).bind(null,a),enumerable:!(n=TI(e,a))||n.enumerable});return t},MI=(t,e,r)=>(r=t!=null?FI(NI(t)):{},$I(e||!t||!t.__esModule?eb(r,"default",{value:t,enumerable:!0}):r,t)),ds=qe(((t,e)=>{function r(u){return typeof u>"u"||u===null}function n(u){return typeof u=="object"&&u!==null}function i(u){return Array.isArray(u)?u:r(u)?[]:[u]}function s(u,c){if(c){let f=Object.keys(c);for(let l=0,p=f.length;l<p;l+=1){let d=f[l];u[d]=c[d]}}return u}function o(u,c){let f="";for(let l=0;l<c;l+=1)f+=u;return f}function a(u){return u===0&&Number.NEGATIVE_INFINITY===1/u}e.exports.isNothing=r,e.exports.isObject=n,e.exports.toArray=i,e.exports.repeat=o,e.exports.isNegativeZero=a,e.exports.extend=s})),gs=qe(((t,e)=>{function r(i,s){let o="",a=i.reason||"(unknown reason)";return i.mark?(i.mark.name&&(o+='in "'+i.mark.name+'" '),o+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!s&&i.mark.snippet&&(o+=`
69
+
70
+ `+i.mark.snippet),a+" "+o):a}function n(i,s){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=s,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(s){return this.name+": "+r(this,s)},e.exports=n})),BI=qe(((t,e)=>{var r=ds();function n(o,a,u,c,f){let l="",p="",d=Math.floor(f/2)-1;return c-a>d&&(l=" ... ",a=c-d+l.length),u-c>d&&(p=" ...",u=c+d-p.length),{str:l+o.slice(a,u).replace(/\t/g,"\u2192")+p,pos:c-a+l.length}}function i(o,a){return r.repeat(" ",a-o.length)+o}function s(o,a){if(a=Object.create(a||null),!o.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);let u=/\r?\n|\r|\0/g,c=[0],f=[],l,p=-1;for(;l=u.exec(o.buffer);)f.push(l.index),c.push(l.index+l[0].length),o.position<=l.index&&p<0&&(p=c.length-2);p<0&&(p=c.length-1);let d="",g=Math.min(o.line+a.linesAfter,f.length).toString().length,m=a.maxLength-(a.indent+g+3);for(let _=1;_<=a.linesBefore&&!(p-_<0);_++){let v=n(o.buffer,c[p-_],f[p-_],o.position-(c[p]-c[p-_]),m);d=r.repeat(" ",a.indent)+i((o.line-_+1).toString(),g)+" | "+v.str+`
71
+ `+d}let y=n(o.buffer,c[p],f[p],o.position,m);d+=r.repeat(" ",a.indent)+i((o.line+1).toString(),g)+" | "+y.str+`
72
+ `,d+=r.repeat("-",a.indent+g+3+y.pos)+`^
73
+ `;for(let _=1;_<=a.linesAfter&&!(p+_>=f.length);_++){let v=n(o.buffer,c[p+_],f[p+_],o.position-(c[p]-c[p+_]),m);d+=r.repeat(" ",a.indent)+i((o.line+_+1).toString(),g)+" | "+v.str+`
74
+ `}return d.replace(/\n$/,"")}e.exports=s})),vt=qe(((t,e)=>{var r=gs(),n=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function s(a){let u={};return a!==null&&Object.keys(a).forEach(function(c){a[c].forEach(function(f){u[String(f)]=c})}),u}function o(a,u){if(u=u||{},Object.keys(u).forEach(function(c){if(n.indexOf(c)===-1)throw new r('Unknown option "'+c+'" is met in definition of "'+a+'" YAML type.')}),this.options=u,this.tag=a,this.kind=u.kind||null,this.resolve=u.resolve||function(){return!0},this.construct=u.construct||function(c){return c},this.instanceOf=u.instanceOf||null,this.predicate=u.predicate||null,this.represent=u.represent||null,this.representName=u.representName||null,this.defaultStyle=u.defaultStyle||null,this.multi=u.multi||!1,this.styleAliases=s(u.styleAliases||null),i.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}e.exports=o})),tb=qe(((t,e)=>{var r=gs(),n=vt();function i(a,u){let c=[];return a[u].forEach(function(f){let l=c.length;c.forEach(function(p,d){p.tag===f.tag&&p.kind===f.kind&&p.multi===f.multi&&(l=d)}),c[l]=f}),c}function s(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function u(c){c.multi?(a.multi[c.kind].push(c),a.multi.fallback.push(c)):a[c.kind][c.tag]=a.fallback[c.tag]=c}for(let c=0,f=arguments.length;c<f;c+=1)arguments[c].forEach(u);return a}function o(a){return this.extend(a)}o.prototype.extend=function(u){let c=[],f=[];if(u instanceof n)f.push(u);else if(Array.isArray(u))f=f.concat(u);else if(u&&(Array.isArray(u.implicit)||Array.isArray(u.explicit)))u.implicit&&(c=c.concat(u.implicit)),u.explicit&&(f=f.concat(u.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");c.forEach(function(p){if(!(p instanceof n))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(p.loadKind&&p.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(p.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),f.forEach(function(p){if(!(p instanceof n))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(o.prototype);return l.implicit=(this.implicit||[]).concat(c),l.explicit=(this.explicit||[]).concat(f),l.compiledImplicit=i(l,"implicit"),l.compiledExplicit=i(l,"explicit"),l.compiledTypeMap=s(l.compiledImplicit,l.compiledExplicit),l},e.exports=o})),rb=qe(((t,e)=>{e.exports=new(vt())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})})),nb=qe(((t,e)=>{e.exports=new(vt())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})})),ib=qe(((t,e)=>{e.exports=new(vt())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})})),sb=qe(((t,e)=>{e.exports=new(tb())({explicit:[rb(),nb(),ib()]})})),ob=qe(((t,e)=>{var r=vt();function n(o){if(o===null)return!0;let a=o.length;return a===1&&o==="~"||a===4&&(o==="null"||o==="Null"||o==="NULL")}function i(){return null}function s(o){return o===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})})),ab=qe(((t,e)=>{var r=vt();function n(o){if(o===null)return!1;let a=o.length;return a===4&&(o==="true"||o==="True"||o==="TRUE")||a===5&&(o==="false"||o==="False"||o==="FALSE")}function i(o){return o==="true"||o==="True"||o==="TRUE"}function s(o){return Object.prototype.toString.call(o)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"})})),ub=qe(((t,e)=>{var r=ds(),n=vt();function i(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102}function s(l){return l>=48&&l<=55}function o(l){return l>=48&&l<=57}function a(l){if(l===null)return!1;let p=l.length,d=0,g=!1;if(!p)return!1;let m=l[d];if((m==="-"||m==="+")&&(m=l[++d]),m==="0"){if(d+1===p)return!0;if(m=l[++d],m==="b"){for(d++;d<p;d++){if(m=l[d],m!=="0"&&m!=="1")return!1;g=!0}return g&&Number.isFinite(u(l))}if(m==="x"){for(d++;d<p;d++){if(!i(l.charCodeAt(d)))return!1;g=!0}return g&&Number.isFinite(u(l))}if(m==="o"){for(d++;d<p;d++){if(!s(l.charCodeAt(d)))return!1;g=!0}return g&&Number.isFinite(u(l))}}for(;d<p;d++){if(!o(l.charCodeAt(d)))return!1;g=!0}return g?Number.isFinite(u(l)):!1}function u(l){let p=l,d=1,g=p[0];if((g==="-"||g==="+")&&(g==="-"&&(d=-1),p=p.slice(1),g=p[0]),p==="0")return 0;if(g==="0"){if(p[1]==="b")return d*parseInt(p.slice(2),2);if(p[1]==="x")return d*parseInt(p.slice(2),16);if(p[1]==="o")return d*parseInt(p.slice(2),8)}return d*parseInt(p,10)}function c(l){return u(l)}function f(l){return Object.prototype.toString.call(l)==="[object Number]"&&l%1===0&&!r.isNegativeZero(l)}e.exports=new n("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:c,predicate:f,represent:{binary:function(l){return l>=0?"0b"+l.toString(2):"-0b"+l.toString(2).slice(1)},octal:function(l){return l>=0?"0o"+l.toString(8):"-0o"+l.toString(8).slice(1)},decimal:function(l){return l.toString(10)},hexadecimal:function(l){return l>=0?"0x"+l.toString(16).toUpperCase():"-0x"+l.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})})),cb=qe(((t,e)=>{var r=ds(),n=vt(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(l){return l===null||!i.test(l)?!1:Number.isFinite(parseFloat(l,10))?!0:s.test(l)}function a(l){let p=l.toLowerCase(),d=p[0]==="-"?-1:1;return"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?d===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:d*parseFloat(p,10)}var u=/^[-+]?[0-9]+e/;function c(l,p){if(isNaN(l))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===l)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===l)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(l))return"-0.0";let d=l.toString(10);return u.test(d)?d.replace("e",".e"):d}function f(l){return Object.prototype.toString.call(l)==="[object Number]"&&(l%1!==0||r.isNegativeZero(l))}e.exports=new n("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:a,predicate:f,represent:c,defaultStyle:"lowercase"})})),lb=qe(((t,e)=>{e.exports=sb().extend({implicit:[ob(),ab(),ub(),cb()]})})),fb=qe(((t,e)=>{e.exports=lb()})),hb=qe(((t,e)=>{var r=vt(),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=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 s(u){return u===null?!1:n.exec(u)!==null||i.exec(u)!==null}function o(u){let c=0,f=null,l=n.exec(u);if(l===null&&(l=i.exec(u)),l===null)throw new Error("Date resolve error");let p=+l[1],d=+l[2]-1,g=+l[3];if(!l[4])return new Date(Date.UTC(p,d,g));let m=+l[4],y=+l[5],_=+l[6];if(l[7]){for(c=l[7].slice(0,3);c.length<3;)c+="0";c=+c}if(l[9]){let F=+l[10],k=+(l[11]||0);f=(F*60+k)*6e4,l[9]==="-"&&(f=-f)}let v=new Date(Date.UTC(p,d,g,m,y,_,c));return f&&v.setTime(v.getTime()-f),v}function a(u){return u.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:o,instanceOf:Date,represent:a})})),pb=qe(((t,e)=>{var r=vt();function n(i){return i==="<<"||i===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:n})})),db=qe(((t,e)=>{var r=vt(),n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
75
+ \r`;function i(u){if(u===null)return!1;let c=0,f=u.length,l=n;for(let p=0;p<f;p++){let d=l.indexOf(u.charAt(p));if(!(d>64)){if(d<0)return!1;c+=6}}return c%8===0}function s(u){let c=u.replace(/[\r\n=]/g,""),f=c.length,l=n,p=0,d=[];for(let m=0;m<f;m++)m%4===0&&m&&(d.push(p>>16&255),d.push(p>>8&255),d.push(p&255)),p=p<<6|l.indexOf(c.charAt(m));let g=f%4*6;return g===0?(d.push(p>>16&255),d.push(p>>8&255),d.push(p&255)):g===18?(d.push(p>>10&255),d.push(p>>2&255)):g===12&&d.push(p>>4&255),new Uint8Array(d)}function o(u){let c="",f=0,l=u.length,p=n;for(let g=0;g<l;g++)g%3===0&&g&&(c+=p[f>>18&63],c+=p[f>>12&63],c+=p[f>>6&63],c+=p[f&63]),f=(f<<8)+u[g];let d=l%3;return d===0?(c+=p[f>>18&63],c+=p[f>>12&63],c+=p[f>>6&63],c+=p[f&63]):d===2?(c+=p[f>>10&63],c+=p[f>>4&63],c+=p[f<<2&63],c+=p[64]):d===1&&(c+=p[f>>2&63],c+=p[f<<4&63],c+=p[64],c+=p[64]),c}function a(u){return Object.prototype.toString.call(u)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:s,predicate:a,represent:o})})),gb=qe(((t,e)=>{var r=vt(),n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function s(a){if(a===null)return!0;let u=[],c=a;for(let f=0,l=c.length;f<l;f+=1){let p=c[f],d=!1;if(i.call(p)!=="[object Object]")return!1;let g;for(g in p)if(n.call(p,g))if(!d)d=!0;else return!1;if(!d)return!1;if(u.indexOf(g)===-1)u.push(g);else return!1}return!0}function o(a){return a!==null?a:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:o})})),mb=qe(((t,e)=>{var r=vt(),n=Object.prototype.toString;function i(o){if(o===null)return!0;let a=o,u=new Array(a.length);for(let c=0,f=a.length;c<f;c+=1){let l=a[c];if(n.call(l)!=="[object Object]")return!1;let p=Object.keys(l);if(p.length!==1)return!1;u[c]=[p[0],l[p[0]]]}return!0}function s(o){if(o===null)return[];let a=o,u=new Array(a.length);for(let c=0,f=a.length;c<f;c+=1){let l=a[c],p=Object.keys(l);u[c]=[p[0],l[p[0]]]}return u}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:s})})),yb=qe(((t,e)=>{var r=vt(),n=Object.prototype.hasOwnProperty;function i(o){if(o===null)return!0;let a=o;for(let u in a)if(n.call(a,u)&&a[u]!==null)return!1;return!0}function s(o){return o!==null?o:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:s})})),wh=qe(((t,e)=>{e.exports=fb().extend({implicit:[hb(),pb()],explicit:[db(),gb(),mb(),yb()]})})),jI=qe(((t,e)=>{var r=ds(),n=gs(),i=BI(),s=wh(),o=Object.prototype.hasOwnProperty,a=1,u=2,c=3,f=4,l=1,p=2,d=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/[\x85\u2028\u2029]/,y=/[,\[\]{}]/,_=/^(?:!|!!|![0-9A-Za-z-]+!)$/,v=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function F(h){return Object.prototype.toString.call(h)}function k(h){return h===10||h===13}function W(h){return h===9||h===32}function Z(h){return h===9||h===32||h===10||h===13}function ee(h){return h===44||h===91||h===93||h===123||h===125}function X(h){if(h>=48&&h<=57)return h-48;let O=h|32;return O>=97&&O<=102?O-97+10:-1}function te(h){return h===120?2:h===117?4:h===85?8:0}function L(h){return h>=48&&h<=57?h-48:-1}function b(h){switch(h){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
76
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function T(h){return h<=65535?String.fromCharCode(h):String.fromCharCode((h-65536>>10)+55296,(h-65536&1023)+56320)}function N(h,O,B){O==="__proto__"?Object.defineProperty(h,O,{configurable:!0,enumerable:!0,writable:!0,value:B}):h[O]=B}var re=new Array(256),C=new Array(256);for(let h=0;h<256;h++)re[h]=b(h)?1:0,C[h]=b(h);function R(h,O){this.input=h,this.filename=O.filename||null,this.schema=O.schema||s,this.onWarning=O.onWarning||null,this.legacy=O.legacy||!1,this.json=O.json||!1,this.listener=O.listener||null,this.maxDepth=typeof O.maxDepth=="number"?O.maxDepth:100,this.maxMergeSeqLength=typeof O.maxMergeSeqLength=="number"?O.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=h.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function de(h,O){let B={name:h.filename,buffer:h.input.slice(0,-1),position:h.position,line:h.line,column:h.position-h.lineStart};return B.snippet=i(B),new n(O,B)}function $(h,O){throw de(h,O)}function De(h,O){h.onWarning&&h.onWarning.call(null,de(h,O))}function _e(h,O,B){let H=h.anchorMapTransactions;if(H.length!==0){let I=H[H.length-1];o.call(I,O)||(I[O]={existed:o.call(h.anchorMap,O),value:h.anchorMap[O]})}h.anchorMap[O]=B}function Fe(h){h.anchorMapTransactions.push(Object.create(null))}function Me(h){let O=h.anchorMapTransactions.pop(),B=h.anchorMapTransactions;if(B.length===0)return;let H=B[B.length-1],I=Object.keys(O);for(let J=0,A=I.length;J<A;J+=1){let D=I[J];o.call(H,D)||(H[D]=O[D])}}function st(h){let O=h.anchorMapTransactions.pop(),B=Object.keys(O);for(let H=B.length-1;H>=0;H-=1){let I=O[B[H]];I.existed?h.anchorMap[B[H]]=I.value:delete h.anchorMap[B[H]]}}function he(h){return{position:h.position,line:h.line,lineStart:h.lineStart,lineIndent:h.lineIndent,firstTabInLine:h.firstTabInLine,tag:h.tag,anchor:h.anchor,kind:h.kind,result:h.result}}function Xe(h,O){h.position=O.position,h.line=O.line,h.lineStart=O.lineStart,h.lineIndent=O.lineIndent,h.firstTabInLine=O.firstTabInLine,h.tag=O.tag,h.anchor=O.anchor,h.kind=O.kind,h.result=O.result}var Q={YAML:function(O,B,H){O.version!==null&&$(O,"duplication of %YAML directive"),H.length!==1&&$(O,"YAML directive accepts exactly one argument");let I=/^([0-9]+)\.([0-9]+)$/.exec(H[0]);I===null&&$(O,"ill-formed argument of the YAML directive");let J=parseInt(I[1],10),A=parseInt(I[2],10);J!==1&&$(O,"unacceptable YAML version of the document"),O.version=H[0],O.checkLineBreaks=A<2,A!==1&&A!==2&&De(O,"unsupported YAML version of the document")},TAG:function(O,B,H){let I;H.length!==2&&$(O,"TAG directive accepts exactly two arguments");let J=H[0];I=H[1],_.test(J)||$(O,"ill-formed tag handle (first argument) of the TAG directive"),o.call(O.tagMap,J)&&$(O,'there is a previously declared suffix for "'+J+'" tag handle'),v.test(I)||$(O,"ill-formed tag prefix (second argument) of the TAG directive");try{I=decodeURIComponent(I)}catch{$(O,"tag prefix is malformed: "+I)}O.tagMap[J]=I}};function Pe(h,O,B,H){if(O<B){let I=h.input.slice(O,B);if(H)for(let J=0,A=I.length;J<A;J+=1){let D=I.charCodeAt(J);D===9||D>=32&&D<=1114111||$(h,"expected valid JSON character")}else g.test(I)&&$(h,"the stream contains non-printable characters");h.result+=I}}function Te(h,O,B,H){r.isObject(B)||$(h,"cannot merge mappings; the provided source object is unacceptable");let I=Object.keys(B);for(let J=0,A=I.length;J<A;J+=1){let D=I[J];o.call(O,D)||(N(O,D,B[D]),H[D]=!0)}}function j(h,O,B,H,I,J,A,D,K){if(Array.isArray(I)){I=Array.prototype.slice.call(I);for(let U=0,G=I.length;U<G;U+=1)Array.isArray(I[U])&&$(h,"nested arrays are not supported inside keys"),typeof I=="object"&&F(I[U])==="[object Object]"&&(I[U]="[object Object]")}if(typeof I=="object"&&F(I)==="[object Object]"&&(I="[object Object]"),I=String(I),O===null&&(O={}),H==="tag:yaml.org,2002:merge")if(Array.isArray(J)){J.length>h.maxMergeSeqLength&&$(h,"merge sequence length exceeded maxMergeSeqLength ("+h.maxMergeSeqLength+")");let U=new Set;for(let G=0,Y=J.length;G<Y;G+=1){let z=J[G];U.has(z)||(U.add(z),Te(h,O,z,B))}}else Te(h,O,J,B);else!h.json&&!o.call(B,I)&&o.call(O,I)&&(h.line=A||h.line,h.lineStart=D||h.lineStart,h.position=K||h.position,$(h,"duplicated mapping key")),N(O,I,J),delete B[I];return O}function we(h){let O=h.input.charCodeAt(h.position);O===10?h.position++:O===13?(h.position++,h.input.charCodeAt(h.position)===10&&h.position++):$(h,"a line break is expected"),h.line+=1,h.lineStart=h.position,h.firstTabInLine=-1}function M(h,O,B){let H=0,I=h.input.charCodeAt(h.position);for(;I!==0;){for(;W(I);)I===9&&h.firstTabInLine===-1&&(h.firstTabInLine=h.position),I=h.input.charCodeAt(++h.position);if(O&&I===35)do I=h.input.charCodeAt(++h.position);while(I!==10&&I!==13&&I!==0);if(k(I))for(we(h),I=h.input.charCodeAt(h.position),H++,h.lineIndent=0;I===32;)h.lineIndent++,I=h.input.charCodeAt(++h.position);else break}return B!==-1&&H!==0&&h.lineIndent<B&&De(h,"deficient indentation"),H}function me(h){let O=h.position,B=h.input.charCodeAt(O);return!!((B===45||B===46)&&B===h.input.charCodeAt(O+1)&&B===h.input.charCodeAt(O+2)&&(O+=3,B=h.input.charCodeAt(O),B===0||Z(B)))}function Ce(h,O){O===1?h.result+=" ":O>1&&(h.result+=r.repeat(`
77
+ `,O-1))}function Ie(h,O,B){let H,I,J,A,D,K,U=h.kind,G=h.result,Y=h.input.charCodeAt(h.position);if(Z(Y)||ee(Y)||Y===35||Y===38||Y===42||Y===33||Y===124||Y===62||Y===39||Y===34||Y===37||Y===64||Y===96)return!1;if(Y===63||Y===45){let z=h.input.charCodeAt(h.position+1);if(Z(z)||B&&ee(z))return!1}for(h.kind="scalar",h.result="",H=I=h.position,J=!1;Y!==0;){if(Y===58){let z=h.input.charCodeAt(h.position+1);if(Z(z)||B&&ee(z))break}else if(Y===35){if(Z(h.input.charCodeAt(h.position-1)))break}else{if(h.position===h.lineStart&&me(h)||B&&ee(Y))break;if(k(Y))if(A=h.line,D=h.lineStart,K=h.lineIndent,M(h,!1,-1),h.lineIndent>=O){J=!0,Y=h.input.charCodeAt(h.position);continue}else{h.position=I,h.line=A,h.lineStart=D,h.lineIndent=K;break}}J&&(Pe(h,H,I,!1),Ce(h,h.line-A),H=I=h.position,J=!1),W(Y)||(I=h.position+1),Y=h.input.charCodeAt(++h.position)}return Pe(h,H,I,!1),h.result?!0:(h.kind=U,h.result=G,!1)}function S(h,O){let B,H,I=h.input.charCodeAt(h.position);if(I!==39)return!1;for(h.kind="scalar",h.result="",h.position++,B=H=h.position;(I=h.input.charCodeAt(h.position))!==0;)if(I===39)if(Pe(h,B,h.position,!0),I=h.input.charCodeAt(++h.position),I===39)B=h.position,h.position++,H=h.position;else return!0;else k(I)?(Pe(h,B,H,!0),Ce(h,M(h,!1,O)),B=H=h.position):h.position===h.lineStart&&me(h)?$(h,"unexpected end of the document within a single quoted scalar"):(h.position++,W(I)||(H=h.position));$(h,"unexpected end of the stream within a single quoted scalar")}function x(h,O){let B,H,I,J=h.input.charCodeAt(h.position);if(J!==34)return!1;for(h.kind="scalar",h.result="",h.position++,B=H=h.position;(J=h.input.charCodeAt(h.position))!==0;){if(J===34)return Pe(h,B,h.position,!0),h.position++,!0;if(J===92){if(Pe(h,B,h.position,!0),J=h.input.charCodeAt(++h.position),k(J))M(h,!1,O);else if(J<256&&re[J])h.result+=C[J],h.position++;else if((I=te(J))>0){let A=I,D=0;for(;A>0;A--)J=h.input.charCodeAt(++h.position),(I=X(J))>=0?D=(D<<4)+I:$(h,"expected hexadecimal character");h.result+=T(D),h.position++}else $(h,"unknown escape sequence");B=H=h.position}else k(J)?(Pe(h,B,H,!0),Ce(h,M(h,!1,O)),B=H=h.position):h.position===h.lineStart&&me(h)?$(h,"unexpected end of the document within a double quoted scalar"):(h.position++,W(J)||(H=h.position))}$(h,"unexpected end of the stream within a double quoted scalar")}function V(h,O){let B=!0,H,I,J,A=h.tag,D,K=h.anchor,U,G,Y,z,ae=Object.create(null),ie,ye,be,Le=h.input.charCodeAt(h.position);if(Le===91)U=93,z=!1,D=[];else if(Le===123)U=125,z=!0,D={};else return!1;for(h.anchor!==null&&_e(h,h.anchor,D),Le=h.input.charCodeAt(++h.position);Le!==0;){if(M(h,!0,O),Le=h.input.charCodeAt(h.position),Le===U)return h.position++,h.tag=A,h.anchor=K,h.kind=z?"mapping":"sequence",h.result=D,!0;B?Le===44&&$(h,"expected the node content, but found ','"):$(h,"missed comma between flow collection entries"),ye=ie=be=null,G=Y=!1,Le===63&&Z(h.input.charCodeAt(h.position+1))&&(G=Y=!0,h.position++,M(h,!0,O)),H=h.line,I=h.lineStart,J=h.position,xr(h,O,a,!1,!0),ye=h.tag,ie=h.result,M(h,!0,O),Le=h.input.charCodeAt(h.position),(Y||h.line===H)&&Le===58&&(G=!0,Le=h.input.charCodeAt(++h.position),M(h,!0,O),xr(h,O,a,!1,!0),be=h.result),z?j(h,D,ae,ye,ie,be,H,I,J):G?D.push(j(h,null,ae,ye,ie,be,H,I,J)):D.push(ie),M(h,!0,O),Le=h.input.charCodeAt(h.position),Le===44?(B=!0,Le=h.input.charCodeAt(++h.position)):B=!1}$(h,"unexpected end of the stream within a flow collection")}function q(h,O){let B,H=l,I=!1,J=!1,A=O,D=0,K=!1,U,G=h.input.charCodeAt(h.position);if(G===124)B=!1;else if(G===62)B=!0;else return!1;for(h.kind="scalar",h.result="";G!==0;)if(G=h.input.charCodeAt(++h.position),G===43||G===45)l===H?H=G===43?d:p:$(h,"repeat of a chomping mode identifier");else if((U=L(G))>=0)U===0?$(h,"bad explicit indentation width of a block scalar; it cannot be less than one"):J?$(h,"repeat of an indentation width identifier"):(A=O+U-1,J=!0);else break;if(W(G)){do G=h.input.charCodeAt(++h.position);while(W(G));if(G===35)do G=h.input.charCodeAt(++h.position);while(!k(G)&&G!==0)}for(;G!==0;){for(we(h),h.lineIndent=0,G=h.input.charCodeAt(h.position);(!J||h.lineIndent<A)&&G===32;)h.lineIndent++,G=h.input.charCodeAt(++h.position);if(!J&&h.lineIndent>A&&(A=h.lineIndent),k(G)){D++;continue}if(!J&&A===0&&$(h,"missing indentation for block scalar"),h.lineIndent<A){H===d?h.result+=r.repeat(`
78
+ `,I?1+D:D):H===l&&I&&(h.result+=`
79
+ `);break}B?W(G)?(K=!0,h.result+=r.repeat(`
80
+ `,I?1+D:D)):K?(K=!1,h.result+=r.repeat(`
81
+ `,D+1)):D===0?I&&(h.result+=" "):h.result+=r.repeat(`
82
+ `,D):h.result+=r.repeat(`
83
+ `,I?1+D:D),I=!0,J=!0,D=0;let Y=h.position;for(;!k(G)&&G!==0;)G=h.input.charCodeAt(++h.position);Pe(h,Y,h.position,!1)}return!0}function P(h,O){let B=h.tag,H=h.anchor,I=[],J=!1;if(h.firstTabInLine!==-1)return!1;h.anchor!==null&&_e(h,h.anchor,I);let A=h.input.charCodeAt(h.position);for(;A!==0&&(h.firstTabInLine!==-1&&(h.position=h.firstTabInLine,$(h,"tab characters must not be used in indentation")),!(A!==45||!Z(h.input.charCodeAt(h.position+1))));){if(J=!0,h.position++,M(h,!0,-1)&&h.lineIndent<=O){I.push(null),A=h.input.charCodeAt(h.position);continue}let D=h.line;if(xr(h,O,c,!1,!0),I.push(h.result),M(h,!0,-1),A=h.input.charCodeAt(h.position),(h.line===D||h.lineIndent>O)&&A!==0)$(h,"bad indentation of a sequence entry");else if(h.lineIndent<O)break}return J?(h.tag=B,h.anchor=H,h.kind="sequence",h.result=I,!0):!1}function ue(h,O,B){let H,I,J,A,D=h.tag,K=h.anchor,U={},G=Object.create(null),Y=null,z=null,ae=null,ie=!1,ye=!1;if(h.firstTabInLine!==-1)return!1;h.anchor!==null&&_e(h,h.anchor,U);let be=h.input.charCodeAt(h.position);for(;be!==0;){!ie&&h.firstTabInLine!==-1&&(h.position=h.firstTabInLine,$(h,"tab characters must not be used in indentation"));let Le=h.input.charCodeAt(h.position+1),Ye=h.line;if((be===63||be===58)&&Z(Le))be===63?(ie&&(j(h,U,G,Y,z,null,I,J,A),Y=z=ae=null),ye=!0,ie=!0,H=!0):ie?(ie=!1,H=!0):$(h,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),h.position+=1,be=Le;else{if(I=h.line,J=h.lineStart,A=h.position,!xr(h,B,u,!1,!0))break;if(h.line===Ye){for(be=h.input.charCodeAt(h.position);W(be);)be=h.input.charCodeAt(++h.position);if(be===58)be=h.input.charCodeAt(++h.position),Z(be)||$(h,"a whitespace character is expected after the key-value separator within a block mapping"),ie&&(j(h,U,G,Y,z,null,I,J,A),Y=z=ae=null),ye=!0,ie=!1,H=!1,Y=h.tag,z=h.result;else if(ye)$(h,"can not read an implicit mapping pair; a colon is missed");else return h.tag=D,h.anchor=K,!0}else if(ye)$(h,"can not read a block mapping entry; a multiline key may not be an implicit key");else return h.tag=D,h.anchor=K,!0}if((h.line===Ye||h.lineIndent>O)&&(ie&&(I=h.line,J=h.lineStart,A=h.position),xr(h,O,f,!0,H)&&(ie?z=h.result:ae=h.result),ie||(j(h,U,G,Y,z,ae,I,J,A),Y=z=ae=null),M(h,!0,-1),be=h.input.charCodeAt(h.position)),(h.line===Ye||h.lineIndent>O)&&be!==0)$(h,"bad indentation of a mapping entry");else if(h.lineIndent<O)break}return ie&&j(h,U,G,Y,z,null,I,J,A),ye&&(h.tag=D,h.anchor=K,h.kind="mapping",h.result=U),ye}function ne(h){let O=!1,B=!1,H,I,J=h.input.charCodeAt(h.position);if(J!==33)return!1;h.tag!==null&&$(h,"duplication of a tag property"),J=h.input.charCodeAt(++h.position),J===60?(O=!0,J=h.input.charCodeAt(++h.position)):J===33?(B=!0,H="!!",J=h.input.charCodeAt(++h.position)):H="!";let A=h.position;if(O){do J=h.input.charCodeAt(++h.position);while(J!==0&&J!==62);h.position<h.length?(I=h.input.slice(A,h.position),J=h.input.charCodeAt(++h.position)):$(h,"unexpected end of the stream within a verbatim tag")}else{for(;J!==0&&!Z(J);)J===33&&(B?$(h,"tag suffix cannot contain exclamation marks"):(H=h.input.slice(A-1,h.position+1),_.test(H)||$(h,"named tag handle cannot contain such characters"),B=!0,A=h.position+1)),J=h.input.charCodeAt(++h.position);I=h.input.slice(A,h.position),y.test(I)&&$(h,"tag suffix cannot contain flow indicator characters")}I&&!v.test(I)&&$(h,"tag name cannot contain such characters: "+I);try{I=decodeURIComponent(I)}catch{$(h,"tag name is malformed: "+I)}return O?h.tag=I:o.call(h.tagMap,H)?h.tag=h.tagMap[H]+I:H==="!"?h.tag="!"+I:H==="!!"?h.tag="tag:yaml.org,2002:"+I:$(h,'undeclared tag handle "'+H+'"'),!0}function pe(h){let O=h.input.charCodeAt(h.position);if(O!==38)return!1;h.anchor!==null&&$(h,"duplication of an anchor property"),O=h.input.charCodeAt(++h.position);let B=h.position;for(;O!==0&&!Z(O)&&!ee(O);)O=h.input.charCodeAt(++h.position);return h.position===B&&$(h,"name of an anchor node must contain at least one character"),h.anchor=h.input.slice(B,h.position),!0}function ze(h){let O=h.input.charCodeAt(h.position);if(O!==42)return!1;O=h.input.charCodeAt(++h.position);let B=h.position;for(;O!==0&&!Z(O)&&!ee(O);)O=h.input.charCodeAt(++h.position);h.position===B&&$(h,"name of an alias node must contain at least one character");let H=h.input.slice(B,h.position);return o.call(h.anchorMap,H)||$(h,'unidentified alias "'+H+'"'),h.result=h.anchorMap[H],M(h,!0,-1),!0}function ot(h,O,B,H){let I=he(h);return Fe(h),Xe(h,O),h.tag=null,h.anchor=null,h.kind=null,h.result=null,ue(h,B,H)&&h.kind==="mapping"?(Me(h),!0):(st(h),Xe(h,I),!1)}function xr(h,O,B,H,I){let J,A,D=1,K=!1,U=!1,G=null,Y,z,ae;h.depth>=h.maxDepth&&$(h,"nesting exceeded maxDepth ("+h.maxDepth+")"),h.depth+=1,h.listener!==null&&h.listener("open",h),h.tag=null,h.anchor=null,h.kind=null,h.result=null;let ie=J=A=f===B||c===B;if(H&&M(h,!0,-1)&&(K=!0,h.lineIndent>O?D=1:h.lineIndent===O?D=0:h.lineIndent<O&&(D=-1)),D===1)for(;;){let ye=h.input.charCodeAt(h.position),be=he(h);if(K&&(ye===33&&h.tag!==null||ye===38&&h.anchor!==null)||!ne(h)&&!pe(h))break;G===null&&(G=be),M(h,!0,-1)?(K=!0,A=ie,h.lineIndent>O?D=1:h.lineIndent===O?D=0:h.lineIndent<O&&(D=-1)):A=!1}if(A&&(A=K||I),D===1||f===B)if(a===B||u===B?z=O:z=O+1,ae=h.position-h.lineStart,D===1)if(A&&(P(h,ae)||ue(h,ae,z))||V(h,z))U=!0;else{let ye=h.input.charCodeAt(h.position);G!==null&&ie&&!A&&ye!==124&&ye!==62&&ot(h,G,G.position-G.lineStart,z)||J&&q(h,z)||S(h,z)||x(h,z)?U=!0:ze(h)?(U=!0,(h.tag!==null||h.anchor!==null)&&$(h,"alias node should not have any properties")):Ie(h,z,a===B)&&(U=!0,h.tag===null&&(h.tag="?")),h.anchor!==null&&_e(h,h.anchor,h.result)}else D===0&&(U=A&&P(h,ae));if(h.tag===null)h.anchor!==null&&_e(h,h.anchor,h.result);else if(h.tag==="?"){h.result!==null&&h.kind!=="scalar"&&$(h,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+h.kind+'"');for(let ye=0,be=h.implicitTypes.length;ye<be;ye+=1)if(Y=h.implicitTypes[ye],Y.resolve(h.result)){h.result=Y.construct(h.result),h.tag=Y.tag,h.anchor!==null&&_e(h,h.anchor,h.result);break}}else if(h.tag!=="!"){if(o.call(h.typeMap[h.kind||"fallback"],h.tag))Y=h.typeMap[h.kind||"fallback"][h.tag];else{Y=null;let ye=h.typeMap.multi[h.kind||"fallback"];for(let be=0,Le=ye.length;be<Le;be+=1)if(h.tag.slice(0,ye[be].tag.length)===ye[be].tag){Y=ye[be];break}}Y||$(h,"unknown tag !<"+h.tag+">"),h.result!==null&&Y.kind!==h.kind&&$(h,"unacceptable node kind for !<"+h.tag+'> tag; it should be "'+Y.kind+'", not "'+h.kind+'"'),Y.resolve(h.result,h.tag)?(h.result=Y.construct(h.result,h.tag),h.anchor!==null&&_e(h,h.anchor,h.result)):$(h,"cannot resolve a node with !<"+h.tag+"> explicit tag")}return h.listener!==null&&h.listener("close",h),h.depth-=1,h.tag!==null||h.anchor!==null||U}function mc(h){let O=h.position,B=!1,H;for(h.version=null,h.checkLineBreaks=h.legacy,h.tagMap=Object.create(null),h.anchorMap=Object.create(null);(H=h.input.charCodeAt(h.position))!==0&&(M(h,!0,-1),H=h.input.charCodeAt(h.position),!(h.lineIndent>0||H!==37));){B=!0,H=h.input.charCodeAt(++h.position);let I=h.position;for(;H!==0&&!Z(H);)H=h.input.charCodeAt(++h.position);let J=h.input.slice(I,h.position),A=[];for(J.length<1&&$(h,"directive name must not be less than one character in length");H!==0;){for(;W(H);)H=h.input.charCodeAt(++h.position);if(H===35){do H=h.input.charCodeAt(++h.position);while(H!==0&&!k(H));break}if(k(H))break;for(I=h.position;H!==0&&!Z(H);)H=h.input.charCodeAt(++h.position);A.push(h.input.slice(I,h.position))}H!==0&&we(h),o.call(Q,J)?Q[J](h,J,A):De(h,'unknown document directive "'+J+'"')}if(M(h,!0,-1),h.lineIndent===0&&h.input.charCodeAt(h.position)===45&&h.input.charCodeAt(h.position+1)===45&&h.input.charCodeAt(h.position+2)===45?(h.position+=3,M(h,!0,-1)):B&&$(h,"directives end mark is expected"),xr(h,h.lineIndent-1,f,!1,!0),M(h,!0,-1),h.checkLineBreaks&&m.test(h.input.slice(O,h.position))&&De(h,"non-ASCII line breaks are interpreted as content"),h.documents.push(h.result),h.position===h.lineStart&&me(h)){h.input.charCodeAt(h.position)===46&&(h.position+=3,M(h,!0,-1));return}h.position<h.length-1&&$(h,"end of the stream or a document separator is expected")}function go(h,O){h=String(h),O=O||{},h.length!==0&&(h.charCodeAt(h.length-1)!==10&&h.charCodeAt(h.length-1)!==13&&(h+=`
84
+ `),h.charCodeAt(0)===65279&&(h=h.slice(1)));let B=new R(h,O),H=h.indexOf("\0");for(H!==-1&&(B.position=H,$(B,"null byte is not allowed in input")),B.input+="\0";B.input.charCodeAt(B.position)===32;)B.lineIndent+=1,B.position+=1;for(;B.position<B.length-1;)mc(B);return B.documents}function mo(h,O,B){O!==null&&typeof O=="object"&&typeof B>"u"&&(B=O,O=null);let H=go(h,B);if(typeof O!="function")return H;for(let I=0,J=H.length;I<J;I+=1)O(H[I])}function yc(h,O){let B=go(h,O);if(B.length!==0){if(B.length===1)return B[0];throw new n("expected a single document in the stream, but found more")}}e.exports.loadAll=mo,e.exports.load=yc})),qI=qe(((t,e)=>{var r=ds(),n=gs(),i=wh(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=65279,u=9,c=10,f=13,l=32,p=33,d=34,g=35,m=37,y=38,_=39,v=42,F=44,k=45,W=58,Z=61,ee=62,X=63,te=64,L=91,b=93,T=96,N=123,re=124,C=125,R={};R[0]="\\0",R[7]="\\a",R[8]="\\b",R[9]="\\t",R[10]="\\n",R[11]="\\v",R[12]="\\f",R[13]="\\r",R[27]="\\e",R[34]='\\"',R[92]="\\\\",R[133]="\\N",R[160]="\\_",R[8232]="\\L",R[8233]="\\P";var de=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],$=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function De(A,D){if(D===null)return{};let K={},U=Object.keys(D);for(let G=0,Y=U.length;G<Y;G+=1){let z=U[G],ae=String(D[z]);z.slice(0,2)==="!!"&&(z="tag:yaml.org,2002:"+z.slice(2));let ie=A.compiledTypeMap.fallback[z];ie&&o.call(ie.styleAliases,ae)&&(ae=ie.styleAliases[ae]),K[z]=ae}return K}function _e(A){let D,K,U=A.toString(16).toUpperCase();if(A<=255)D="x",K=2;else if(A<=65535)D="u",K=4;else if(A<=4294967295)D="U",K=8;else throw new n("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+D+r.repeat("0",K-U.length)+U}var Fe=1,Me=2;function st(A){this.schema=A.schema||i,this.indent=Math.max(1,A.indent||2),this.noArrayIndent=A.noArrayIndent||!1,this.skipInvalid=A.skipInvalid||!1,this.flowLevel=r.isNothing(A.flowLevel)?-1:A.flowLevel,this.styleMap=De(this.schema,A.styles||null),this.sortKeys=A.sortKeys||!1,this.lineWidth=A.lineWidth||80,this.noRefs=A.noRefs||!1,this.noCompatMode=A.noCompatMode||!1,this.condenseFlow=A.condenseFlow||!1,this.quotingType=A.quotingType==='"'?Me:Fe,this.forceQuotes=A.forceQuotes||!1,this.replacer=typeof A.replacer=="function"?A.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function he(A,D){let K=r.repeat(" ",D),U=0,G="",Y=A.length;for(;U<Y;){let z,ae=A.indexOf(`
85
+ `,U);ae===-1?(z=A.slice(U),U=Y):(z=A.slice(U,ae+1),U=ae+1),z.length&&z!==`
86
+ `&&(G+=K),G+=z}return G}function Xe(A,D){return`
87
+ `+r.repeat(" ",A.indent*D)}function Q(A,D){for(let K=0,U=A.implicitTypes.length;K<U;K+=1)if(A.implicitTypes[K].resolve(D))return!0;return!1}function Pe(A){return A===l||A===u}function Te(A){return A>=32&&A<=126||A>=161&&A<=55295&&A!==8232&&A!==8233||A>=57344&&A<=65533&&A!==a||A>=65536&&A<=1114111}function j(A){return Te(A)&&A!==a&&A!==f&&A!==c}function we(A,D,K){let U=j(A),G=U&&!Pe(A);return(K?U:U&&A!==F&&A!==L&&A!==b&&A!==N&&A!==C)&&A!==g&&!(D===W&&!G)||j(D)&&!Pe(D)&&A===g||D===W&&G}function M(A){return Te(A)&&A!==a&&!Pe(A)&&A!==k&&A!==X&&A!==W&&A!==F&&A!==L&&A!==b&&A!==N&&A!==C&&A!==g&&A!==y&&A!==v&&A!==p&&A!==re&&A!==Z&&A!==ee&&A!==_&&A!==d&&A!==m&&A!==te&&A!==T}function me(A){return!Pe(A)&&A!==W}function Ce(A,D){let K=A.charCodeAt(D),U;return K>=55296&&K<=56319&&D+1<A.length&&(U=A.charCodeAt(D+1),U>=56320&&U<=57343)?(K-55296)*1024+U-56320+65536:K}function Ie(A){return/^\n* /.test(A)}var S=1,x=2,V=3,q=4,P=5;function ue(A,D,K,U,G,Y,z,ae){let ie,ye=0,be=null,Le=!1,Ye=!1,sg=U!==-1,Gi=-1,Hi=M(Ce(A,0))&&me(Ce(A,A.length-1));if(D||z)for(ie=0;ie<A.length;ye>=65536?ie+=2:ie++){if(ye=Ce(A,ie),!Te(ye))return P;Hi=Hi&&we(ye,be,ae),be=ye}else{for(ie=0;ie<A.length;ye>=65536?ie+=2:ie++){if(ye=Ce(A,ie),ye===c)Le=!0,sg&&(Ye=Ye||ie-Gi-1>U&&A[Gi+1]!==" ",Gi=ie);else if(!Te(ye))return P;Hi=Hi&&we(ye,be,ae),be=ye}Ye=Ye||sg&&ie-Gi-1>U&&A[Gi+1]!==" "}return!Le&&!Ye?Hi&&!z&&!G(A)?S:Y===Me?P:x:K>9&&Ie(A)?P:z?Y===Me?P:x:Ye?q:V}function ne(A,D,K,U,G){A.dump=(function(){if(D.length===0)return A.quotingType===Me?'""':"''";if(!A.noCompatMode&&(de.indexOf(D)!==-1||$.test(D)))return A.quotingType===Me?'"'+D+'"':"'"+D+"'";let Y=A.indent*Math.max(1,K),z=A.lineWidth===-1?-1:Math.max(Math.min(A.lineWidth,40),A.lineWidth-Y),ae=U||A.flowLevel>-1&&K>=A.flowLevel;function ie(ye){return Q(A,ye)}switch(ue(D,ae,A.indent,z,ie,A.quotingType,A.forceQuotes&&!U,G)){case S:return D;case x:return"'"+D.replace(/'/g,"''")+"'";case V:return"|"+pe(D,A.indent)+ze(he(D,Y));case q:return">"+pe(D,A.indent)+ze(he(ot(D,z),Y));case P:return'"'+mc(D,z)+'"';default:throw new n("impossible error: invalid scalar style")}})()}function pe(A,D){let K=Ie(A)?String(D):"",U=A[A.length-1]===`
88
+ `;return K+(U&&(A[A.length-2]===`
89
+ `||A===`
90
+ `)?"+":U?"":"-")+`
91
+ `}function ze(A){return A[A.length-1]===`
92
+ `?A.slice(0,-1):A}function ot(A,D){let K=/(\n+)([^\n]*)/g,U=(function(){let ae=A.indexOf(`
93
+ `);return ae=ae!==-1?ae:A.length,K.lastIndex=ae,xr(A.slice(0,ae),D)})(),G=A[0]===`
94
+ `||A[0]===" ",Y,z;for(;z=K.exec(A);){let ae=z[1],ie=z[2];Y=ie[0]===" ",U+=ae+(!G&&!Y&&ie!==""?`
95
+ `:"")+xr(ie,D),G=Y}return U}function xr(A,D){if(A===""||A[0]===" ")return A;let K=/ [^ ]/g,U,G=0,Y,z=0,ae=0,ie="";for(;U=K.exec(A);)ae=U.index,ae-G>D&&(Y=z>G?z:ae,ie+=`
96
+ `+A.slice(G,Y),G=Y+1),z=ae;return ie+=`
97
+ `,A.length-G>D&&z>G?ie+=A.slice(G,z)+`
98
+ `+A.slice(z+1):ie+=A.slice(G),ie.slice(1)}function mc(A){let D="",K=0;for(let U=0;U<A.length;K>=65536?U+=2:U++){K=Ce(A,U);let G=R[K];!G&&Te(K)?(D+=A[U],K>=65536&&(D+=A[U+1])):D+=G||_e(K)}return D}function go(A,D,K){let U="",G=A.tag;for(let Y=0,z=K.length;Y<z;Y+=1){let ae=K[Y];A.replacer&&(ae=A.replacer.call(K,String(Y),ae)),(B(A,D,ae,!1,!1)||typeof ae>"u"&&B(A,D,null,!1,!1))&&(U!==""&&(U+=","+(A.condenseFlow?"":" ")),U+=A.dump)}A.tag=G,A.dump="["+U+"]"}function mo(A,D,K,U){let G="",Y=A.tag;for(let z=0,ae=K.length;z<ae;z+=1){let ie=K[z];A.replacer&&(ie=A.replacer.call(K,String(z),ie)),(B(A,D+1,ie,!0,!0,!1,!0)||typeof ie>"u"&&B(A,D+1,null,!0,!0,!1,!0))&&((!U||G!=="")&&(G+=Xe(A,D)),A.dump&&c===A.dump.charCodeAt(0)?G+="-":G+="- ",G+=A.dump)}A.tag=Y,A.dump=G||"[]"}function yc(A,D,K){let U="",G=A.tag,Y=Object.keys(K);for(let z=0,ae=Y.length;z<ae;z+=1){let ie="";U!==""&&(ie+=", "),A.condenseFlow&&(ie+='"');let ye=Y[z],be=K[ye];A.replacer&&(be=A.replacer.call(K,ye,be)),B(A,D,ye,!1,!1)&&(A.dump.length>1024&&(ie+="? "),ie+=A.dump+(A.condenseFlow?'"':"")+":"+(A.condenseFlow?"":" "),B(A,D,be,!1,!1)&&(ie+=A.dump,U+=ie))}A.tag=G,A.dump="{"+U+"}"}function h(A,D,K,U){let G="",Y=A.tag,z=Object.keys(K);if(A.sortKeys===!0)z.sort();else if(typeof A.sortKeys=="function")z.sort(A.sortKeys);else if(A.sortKeys)throw new n("sortKeys must be a boolean or a function");for(let ae=0,ie=z.length;ae<ie;ae+=1){let ye="";(!U||G!=="")&&(ye+=Xe(A,D));let be=z[ae],Le=K[be];if(A.replacer&&(Le=A.replacer.call(K,be,Le)),!B(A,D+1,be,!0,!0,!0))continue;let Ye=A.tag!==null&&A.tag!=="?"||A.dump&&A.dump.length>1024;Ye&&(A.dump&&c===A.dump.charCodeAt(0)?ye+="?":ye+="? "),ye+=A.dump,Ye&&(ye+=Xe(A,D)),B(A,D+1,Le,!0,Ye)&&(A.dump&&c===A.dump.charCodeAt(0)?ye+=":":ye+=": ",ye+=A.dump,G+=ye)}A.tag=Y,A.dump=G||"{}"}function O(A,D,K){let U=K?A.explicitTypes:A.implicitTypes;for(let G=0,Y=U.length;G<Y;G+=1){let z=U[G];if((z.instanceOf||z.predicate)&&(!z.instanceOf||typeof D=="object"&&D instanceof z.instanceOf)&&(!z.predicate||z.predicate(D))){if(K?z.multi&&z.representName?A.tag=z.representName(D):A.tag=z.tag:A.tag="?",z.represent){let ae=A.styleMap[z.tag]||z.defaultStyle,ie;if(s.call(z.represent)==="[object Function]")ie=z.represent(D,ae);else if(o.call(z.represent,ae))ie=z.represent[ae](D,ae);else throw new n("!<"+z.tag+'> tag resolver accepts not "'+ae+'" style');A.dump=ie}return!0}}return!1}function B(A,D,K,U,G,Y,z){A.tag=null,A.dump=K,O(A,K,!1)||O(A,K,!0);let ae=s.call(A.dump),ie=U;U&&(U=A.flowLevel<0||A.flowLevel>D);let ye=ae==="[object Object]"||ae==="[object Array]",be,Le;if(ye&&(be=A.duplicates.indexOf(K),Le=be!==-1),(A.tag!==null&&A.tag!=="?"||Le||A.indent!==2&&D>0)&&(G=!1),Le&&A.usedDuplicates[be])A.dump="*ref_"+be;else{if(ye&&Le&&!A.usedDuplicates[be]&&(A.usedDuplicates[be]=!0),ae==="[object Object]")U&&Object.keys(A.dump).length!==0?(h(A,D,A.dump,G),Le&&(A.dump="&ref_"+be+A.dump)):(yc(A,D,A.dump),Le&&(A.dump="&ref_"+be+" "+A.dump));else if(ae==="[object Array]")U&&A.dump.length!==0?(A.noArrayIndent&&!z&&D>0?mo(A,D-1,A.dump,G):mo(A,D,A.dump,G),Le&&(A.dump="&ref_"+be+A.dump)):(go(A,D,A.dump),Le&&(A.dump="&ref_"+be+" "+A.dump));else if(ae==="[object String]")A.tag!=="?"&&ne(A,A.dump,D,Y,ie);else{if(ae==="[object Undefined]")return!1;if(A.skipInvalid)return!1;throw new n("unacceptable kind of an object to dump "+ae)}if(A.tag!==null&&A.tag!=="?"){let Ye=encodeURI(A.tag[0]==="!"?A.tag.slice(1):A.tag).replace(/!/g,"%21");A.tag[0]==="!"?Ye="!"+Ye:Ye.slice(0,18)==="tag:yaml.org,2002:"?Ye="!!"+Ye.slice(18):Ye="!<"+Ye+">",A.dump=Ye+" "+A.dump}}return!0}function H(A,D){let K=[],U=[];I(A,K,U);let G=U.length;for(let Y=0;Y<G;Y+=1)D.duplicates.push(K[U[Y]]);D.usedDuplicates=new Array(G)}function I(A,D,K){if(A!==null&&typeof A=="object"){let U=D.indexOf(A);if(U!==-1)K.indexOf(U)===-1&&K.push(U);else if(D.push(A),Array.isArray(A))for(let G=0,Y=A.length;G<Y;G+=1)I(A[G],D,K);else{let G=Object.keys(A);for(let Y=0,z=G.length;Y<z;Y+=1)I(A[G[Y]],D,K)}}}function J(A,D){D=D||{};let K=new st(D);K.noRefs||H(A,K);let U=A;return K.replacer&&(U=K.replacer.call({"":U},"",U)),B(K,0,U,!0,!0)?K.dump+`
99
+ `:""}e.exports.dump=J})),Ab=MI(qe(((t,e)=>{var r=jI(),n=qI();function i(s,o){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}e.exports.Type=vt(),e.exports.Schema=tb(),e.exports.FAILSAFE_SCHEMA=sb(),e.exports.JSON_SCHEMA=lb(),e.exports.CORE_SCHEMA=fb(),e.exports.DEFAULT_SCHEMA=wh(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=gs(),e.exports.types={binary:db(),float:cb(),map:ib(),null:ob(),pairs:mb(),set:yb(),timestamp:hb(),bool:ab(),int:ub(),merge:pb(),omap:gb(),seq:nb(),str:rb()},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")}))(),1),{Type:q8,Schema:W8,FAILSAFE_SCHEMA:U8,JSON_SCHEMA:G8,CORE_SCHEMA:H8,DEFAULT_SCHEMA:z8,load:Y8,loadAll:V8,dump:K8,YAMLException:X8,types:J8,safeLoad:Q8,safeLoadAll:Z8,safeDump:e6}=Ab.default,bh=Ab.default;var wb=pt(require("node:fs/promises"),1);var ba=t=>{let e=new URL(t),n=e.protocol.length+2;return e.toString().slice(n)};var Eh=pt(require("node:fs/promises"),1);async function Ei(t,e){try{if(await Eh.default.readFile(t,{encoding:"utf-8"})===e)return}catch{}await Eh.default.writeFile(t,e,{encoding:"utf-8"})}var Ea=class extends bi{constructor(e){super("YarnRc",".yarnrc.yml",e)}async prepUserFile(){try{let e=await this.paseYarnRc(this.userFilePath);e&&e.npmRegistryServer&&(delete e.npmRegistryServer,await this.writeYarnRc(this.userFilePath,e))}catch{await Ei(this.userFilePath,"")}}async getUserFeeds(){let e=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return e;let n=r.npmRegistries||{};for(let i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:wi(o)},u=ma(s.npmAuthIdent||""),c=u.indexOf(":");c>0&&(a.userName=u.substring(0,c),a.authToken=u.substring(c+1)),e.set(o,a)}return e}async getWorkspaceRegistries(){var e;let r=[],n=await this.paseYarnRc(this.workspaceFilePath);if(n.npmRegistryServer&&r.push(ba(n.npmRegistryServer)),n.npmScopes)for(let i of Object.keys(n.npmScopes)){let s=(e=n.npmScopes[i])===null||e===void 0?void 0:e.npmRegistryServer;s&&r.push(s)}return r}async writeWorkspaceRegistries(e){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(let n of e){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=rn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(e,r){let n=bh.dump(r);await Ei(e,n)}async paseYarnRc(e){let r=await wb.default.readFile(e,"utf8");return bh.load(r,{filename:e})}};var tx=pt(ex(),1);var Iu=pt(require("node:fs/promises"),1),$u=require("node:os");var rx=pt(require("node:path"),1);var Mu=class extends bi{constructor(e){super("NpmRc",".npmrc",e)}async prepUserFile(){try{let r=(await Iu.default.readFile(this.userFilePath,"utf-8")).split($u.EOL).filter(n=>!n.includes("registry=")).join($u.EOL);await Ei(this.userFilePath,r)}catch{await Ei(this.userFilePath,"")}}async getWorkspaceRegistries(){var e;let r;try{r=new tx.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${rx.default.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await r.load()}catch(s){throw s instanceof TypeError&&s.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((((e=r.data)===null||e===void 0?void 0:e.get("project"))||{}).data||{}).filter(s=>s==="registry"||s.endsWith(":registry")).map(s=>r.get(s,"project")).map(s=>ba(s))}async getUserFeeds(){let e=new Map;return await this.processFeeds(this.userFilePath,e),await this.processFeeds(this.workspaceFilePath,e),e}async processFeeds(e,r){await this.processNpmRcFile(e,(n,i,s,o)=>{let a=r.get(i);switch(a||(a={registry:i,adoOrganization:wi(i)},r.set(a.registry,a)),s){case"_password":case"_auth":a.authToken=ma(o).trim();break;case"_authToken":a.authToken=o.trim();break;case"username":a.userName=o;break;case"email":a.email=o;break}})}async patchUserNpmRcFile(e){let r=new Set(e.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let u=e.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(e,r){return`//${e}:${r}=`}async writeWorkspaceRegistries(e){let r=new Map;for(let i of e)r.set(this.toRegistryAndFunctionKey(i.registry,"username"),`//${i.registry}:username=${i.userName||Aa}`),r.set(this.toRegistryAndFunctionKey(i.registry,"email"),`//${i.registry}:email=${i.email||wa}`),r.set(this.toRegistryAndFunctionKey(i.registry,"_password"),`//${i.registry}:_password=${rn(i.authToken)}`);let n=await this.patchUserNpmRcFile(r);await Iu.default.writeFile(this.userFilePath,n.join($u.EOL),{encoding:"utf-8"})}async processNpmRcFile(e,r,n){let s=(await Iu.default.readFile(e,{encoding:"utf8"})).split(`
100
+ `).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("=")),p=f.substring(f.indexOf("=")+1),d=r(a,c,l,p);d&&o.push(d)}else if(n){let c=n(a);c&&o.push(c)}}return o}};var oo=require("node:os");var Hu=require("node:os"),sx=require("node:child_process");var Bu=require("node:child_process"),nx=require("node:util"),ju=(0,nx.promisify)(Bu.exec);function xd(t,e,r){return new Promise((n,i)=>{var s,o,a,u;let c=r?.cwd||process.cwd();console.log(`\u{1F680} Launching [${t} ${e.join(" ")}] in ${c}`);let f=(0,Bu.spawn)(t,e,{cwd:c,env:r?.env||process.env,stdio:r?.stdio||"inherit",shell:r?.shell||!1});r?.stdio==="pipe"&&((s=f.stdout)===null||s===void 0||s.setEncoding("utf8"),(o=f.stdout)===null||o===void 0||o.on("data",function(l){var p;let d=l.toString("utf8");(p=r?.processStdOut)===null||p===void 0||p.call(r,d)}),(a=f.stderr)===null||a===void 0||a.setEncoding("utf8"),(u=f.stderr)===null||u===void 0||u.on("data",function(l){var p;let d=l.toString("utf8");(p=r?.processStdErr)===null||p===void 0||p.call(r,d)})),f.on("exit",l=>{l==0?n():i(new Error(`Process ${t} exited with code ${l}`))})})}var io=require("node:os");var qu=require("node:os"),Br=()=>(0,qu.platform)()==="linux"&&(0,qu.release)().toLowerCase().includes("wsl");var Wu=()=>{let t={win32:["x64"],darwin:["x64","arm64"]};return Br()||t[(0,io.platform)()]&&t[(0,io.platform)()].includes((0,io.arch)())};var Pd;var wG=["npm","exec","--silent","--yes","azureauth","--"],bG={...process.env,npm_config_registry:"https://registry.npmjs.org"},Uu=()=>(Pd||(Pd=Br()?["azureauth.exe"]:wG),{command:Pd,env:bG});var Gu;var ix=async()=>{if(Gu===void 0){let{command:t,env:e}=Uu(),r=`${t.join(" ")} --version`;try{let n=await ju(r,{env:e}),[,i]=n.stdout.split(".");Gu=parseInt(i)>=8}catch{Gu=!1}}return Gu};var ox=async(t,e)=>{if(!Wu())throw new Error(`AzureAuth is not supported for platform ${(0,Hu.platform)()} and architecture ${(0,Hu.arch)()}`);let{command:r,env:n}=e?{command:[e],env:process.env}:Uu(),i=[...r,"ado","pat",`--prompt-hint ${Br()?t.promptHint:`"${t.promptHint}"`}`,`--organization ${t.organization}`,`--display-name ${t.displayName}`,...t.scope.map(s=>`--scope ${s}`)];t.output&&i.push(`--output ${t.output}`),t.mode&&i.push(`--mode ${t.mode}`),t.domain&&i.push(`--domain ${t.domain}`),t.timeout&&i.push(`--timeout ${t.timeout}`);try{let s;if(Br())try{if(s=(0,sx.spawnSync)(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 ju(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(t.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 ix()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var zu=pt(require("node:os"),1),Yu=pt(require("node:fs"),1),so=pt(require("node:path"),1);var ax="1.4.1",Rd=so.default.resolve("..",".bin","CredentialProvider.Microsoft","v"+ax);async function ux(t){let e=EG(t),r=await SG();return await _G(r,e)}function EG(t){let e=t.endsWith("/")?t:t+"/";if(!e.endsWith("/npm/registry/"))throw new Error(`Registry URL ${t} is not a valid Azure Artifacts npm registry URL. Expected it to end with '/npm/registry/'`);let r=e.replace("/npm/registry/","/nuget/v3/index.json");return/^[a-z]+:\/\//i.test(r)?r:"https://"+r}async function _G(t,e){let r="";await xd(t,["-U",e,"-I","-F","Json"],{stdio:"pipe",processStdOut:n=>{r+=n},processStdErr:n=>{console.error(n)}});try{return JSON.parse(r)}catch{throw new Error(`Failed to parse CredentialProvider output: ${r}`)}}function Od(t){if(Yu.default.existsSync(t))return t;if(Yu.default.existsSync(t+".exe"))return t+".exe"}async function SG(){let t=Od(so.default.join(zu.default.homedir(),".nuget","plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft"));if(t)return t;let e=so.default.join(Rd,"plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft");if(t=Od(e),t)return t;if(await vG(),t=Od(e),t)Yu.default.chmodSync(t,493);else throw new Error(`CredentialProvider was not found at expected path after download: ${t}`);return t}async function vG(){let t=`https://github.com/microsoft/artifacts-credprovider/releases/download/v${ax}/Microsoft.Net8.${zu.default.platform()}-${zu.default.arch()}.NuGet.CredentialProvider.tar.gz`,e=so.default.join(Rd,"CredentialProvider.Microsoft.tar.gz");console.log(`\u{1F310} Downloading ${t}`),await mh(t,e),await xd("tar",["-xzf",e,"-C",Rd],{stdio:"inherit"})}var cx=async(t,e,r=!1,n)=>{let i=`${(0,oo.hostname)()}-${t}`,s=await CG(i,t,e,n);return r?rn(s):s};async function CG(t,e,r,n){let i="vso.packaging_write";switch((0,oo.platform)()){case"win32":case"darwin":return(await ox({promptHint:`Authenticate to ${e} to generate a temporary token for npm`,organization:e,displayName:t,scope:[i],timeout:"30",output:"json"},n)).token;case"linux":return(await ux(r)).Password;default:throw new Error(`Platform ${(0,oo.platform)()} is not supported for ADO authentication`)}}function lx(t,e){let r=new Map;for(let n of t){let i=e(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}var Vu=require("node:os");var Ii=(t,e,r)=>{let n=new Map;n.set("success",t.success?"true":"false"),n.set("automaticSuccess",t.automaticSuccess?"true":"false"),n.set("error",t.error||""),n.set("platform",Br()?"wsl":(0,Vu.platform)()),n.set("arch",(0,Vu.arch)()),r&&(r.LogEvent("node-azure-auth",n),e&&r.flush())};var gc=require("node:os"),po=pt(require("node:process"),1);var xG=[!0,"true","TRUE",1],fx=()=>{let t=process.env.CODESPACES||"";return xG.includes(t)};var rc=require("assert");var PG={right:FG,center:TG},OG=0,Ku=1,RG=2,Xu=3,Ld=class{constructor(e){var r;this.width=e.width,this.wrap=(r=e.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...e){let r=this.div(...e);r.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let r=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let r=e.split(`
101
+ `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&qt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),qt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let r=qt.stripAnsi(e);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(r=>{this.rowToString(r,e)}),e.filter(r=>!r.hidden).map(r=>r.text).join(`
102
+ `)}rowToString(e,r){return this.rasterize(e).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:u}=e[a],c=this.negatePadding(e[a]),f=o;if(c>qt.stringWidth(o)&&(f+=" ".repeat(c-qt.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=PG[e[a].align];f=p(f,c),qt.stringWidth(f)<c&&(f+=" ".repeat((u||0)-qt.stringWidth(f)-1))}let l=e[a].padding||[0,0,0,0];l[Xu]&&(s+=" ".repeat(l[Xu])),s+=hx(e[a],f,"| "),s+=f,s+=hx(e[a],f," |"),l[Ku]&&(s+=" ".repeat(l[Ku])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:e.span})}),r}renderInline(e,r){let n=e.match(/^ */),i=n?n[0].length:0,s=r.text,o=qt.stringWidth(s.trimRight());return r.span?this.wrap?i<o?e:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+e.trimLeft()):(r.hidden=!0,s+e):e}rasterize(e){let r=[],n=this.columnWidths(e),i;return e.forEach((s,o)=>{s.width=n[o],this.wrap?i=qt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
105
103
  `):i=s.text.split(`
106
- `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[S8]||0).fill("")),i.push(...new Array(s.padding[C8]||0).fill(""))),i.forEach((a,u)=>{r[u]||r.push([]);let c=r[u];for(let f=0;f<o;f++)c[f]===void 0&&c.push("");c.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Vu]||0)+(t.padding[Yu]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||xt.stringWidth(o.text));let r=t.length,n=this.width,i=t.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,x8(t[a])):o)}};function nP(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function x8(e){let t=e.padding||[],r=1+(t[Vu]||0)+(t[Yu]||0);return e.border?r+4:r}function P8(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function O8(e,t){e=e.trim();let r=xt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function R8(e,t){e=e.trim();let r=xt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var xt;function iP(e,t){return xt=t,new Md({width:e?.width||P8(),wrap:e?.wrap})}var sP=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function jd(e){return e.replace(sP,"")}function oP(e,t){let[r,n]=e.match(sP)||["",""];e=jd(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
107
- `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function qd(e){return iP(e,{stringWidth:t=>[...t].length,stripAnsi:jd,wrap:oP})}var Li=require("path"),Ku=require("fs");function aP(e,t){let r=(0,Li.resolve)(".",e),n;for((0,Ku.statSync)(r).isDirectory()||(r=(0,Li.dirname)(r));;){if(n=t(r,(0,Ku.readdirSync)(r)),n)return(0,Li.resolve)(r,n);if(r=(0,Li.dirname)(n=r),n===r)break}}var vP=require("util"),SP=require("fs"),CP=require("url");var hP=require("util"),Zu=require("path");function Sn(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Xu(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Ju(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function uP(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var jt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(jt||(jt={}));var xr,Qu=class{constructor(t){xr=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=uP(t),s=typeof t=="string",o=F8(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),c=n.configObjects||[],f=n.envPrefix,l=a["populate--"],h=l?"--":"_",p=Object.create(null),d=Object.create(null),g=n.__||xr.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(E){let S=typeof E=="object"?E.key:E,I=Object.keys(E).map(function(D){return{boolean:"bools",string:"strings",number:"numbers"}[D]}).filter(Boolean).pop();I&&(m[I][S]=!0),m.arrays[S]=!0,m.keys.push(S)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(E){m.bools[E]=!0,m.keys.push(E)}),[].concat(n.string||[]).filter(Boolean).forEach(function(E){m.strings[E]=!0,m.keys.push(E)}),[].concat(n.number||[]).filter(Boolean).forEach(function(E){m.numbers[E]=!0,m.keys.push(E)}),[].concat(n.count||[]).filter(Boolean).forEach(function(E){m.counts[E]=!0,m.keys.push(E)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(E){m.normalize[E]=!0,m.keys.push(E)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([E,S])=>{typeof S=="number"&&(m.nargs[E]=S,m.keys.push(E))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([E,S])=>{typeof S=="function"&&(m.coercions[E]=S,m.keys.push(E))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(E){m.configs[E]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([E,S])=>{(typeof S=="boolean"||typeof S=="function")&&(m.configs[E]=S)})),st(n.key,o,n.default,m.arrays),Object.keys(u).forEach(function(E){(m.aliases[E]||[]).forEach(function(S){u[S]=u[E]})});let P=null;Ce();let F=[],k=Object.assign(Object.create(null),{_:[]}),q={};for(let E=0;E<i.length;E++){let S=i[E],I=S.replace(/^-{3,}/,"---"),D,C,K,U,Z,qe;if(S!=="--"&&/^-/.test(S)&&Se(S))M(S);else if(I.match(/^---+(=|$)/)){M(S);continue}else if(S.match(/^--.+=/)||!a["short-option-groups"]&&S.match(/^-.+=/))U=S.match(/^--?([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&(Q(U[1],m.arrays)?E=j(E,U[1],i,U[2]):Q(U[1],m.nargs)!==!1?E=$(E,U[1],i,U[2]):x(U[1],U[2],!0));else if(S.match(_)&&a["boolean-negation"])U=S.match(_),U!==null&&Array.isArray(U)&&U.length>=2&&(C=U[1],x(C,Q(C,m.arrays)?[!1]:!1));else if(S.match(/^--.+/)||!a["short-option-groups"]&&S.match(/^-[^-]+/))U=S.match(/^--?(.+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(C=U[1],Q(C,m.arrays)?E=j(E,C,i):Q(C,m.nargs)!==!1?E=$(E,C,i):(Z=i[E+1],Z!==void 0&&(!Z.match(/^-/)||Z.match(b))&&!Q(C,m.bools)&&!Q(C,m.counts)||/^(true|false)$/.test(Z)?(x(C,Z),E++):x(C,ae(C))));else if(S.match(/^-.\..+=/))U=S.match(/^-([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&x(U[1],U[2]);else if(S.match(/^-.\..+/)&&!S.match(b))Z=i[E+1],U=S.match(/^-(.\..+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(C=U[1],Z!==void 0&&!Z.match(/^-/)&&!Q(C,m.bools)&&!Q(C,m.counts)?(x(C,Z),E++):x(C,ae(C)));else if(S.match(/^-[^-]+/)&&!S.match(b)){K=S.slice(1,-1).split(""),D=!1;for(let ot=0;ot<K.length;ot++){if(Z=S.slice(ot+2),K[ot+1]&&K[ot+1]==="="){qe=S.slice(ot+3),C=K[ot],Q(C,m.arrays)?E=j(E,C,i,qe):Q(C,m.nargs)!==!1?E=$(E,C,i,qe):x(C,qe),D=!0;break}if(Z==="-"){x(K[ot],Z);continue}if(/[A-Za-z]/.test(K[ot])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Z)&&Q(Z,m.bools)===!1){x(K[ot],Z),D=!0;break}if(K[ot+1]&&K[ot+1].match(/\W/)){x(K[ot],Z),D=!0;break}else x(K[ot],ae(K[ot]))}C=S.slice(-1)[0],!D&&C!=="-"&&(Q(C,m.arrays)?E=j(E,C,i):Q(C,m.nargs)!==!1?E=$(E,C,i):(Z=i[E+1],Z!==void 0&&(!/^(-|--)[^-]/.test(Z)||Z.match(b))&&!Q(C,m.bools)&&!Q(C,m.counts)||/^(true|false)$/.test(Z)?(x(C,Z),E++):x(C,ae(C))))}else if(S.match(/^-[0-9]$/)&&S.match(b)&&Q(S.slice(1),m.bools))C=S.slice(1),x(C,ae(C));else if(S==="--"){F=i.slice(E+1);break}else if(a["halt-at-non-option"]){F=i.slice(E);break}else M(S)}re(k,!0),re(k,!1),W(k),O(),le(k,m.aliases,u,!0),V(k),a["set-placeholder-key"]&&Ae(k),Object.keys(m.counts).forEach(function(E){ge(k,E.split("."))||x(E,0)}),l&&F.length&&(k[h]=[]),F.forEach(function(E){k[h].push(E)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(k).filter(E=>E!=="--"&&E.includes("-")).forEach(E=>{delete k[E]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(E=>o[E])).forEach(E=>{a["camel-case-expansion"]&&E.includes("-")&&delete k[E.split(".").map(S=>Sn(S)).join(".")],delete k[E]});function M(E){let S=L("_",E);(typeof S=="string"||typeof S=="number")&&k._.push(S)}function $(E,S,I,D){let C,K=Q(S,m.nargs);if(K=typeof K!="number"||isNaN(K)?1:K,K===0)return fe(D)||(P=Error(g("Argument unexpected for: %s",S))),x(S,ae(S)),E;let U=fe(D)?0:1;if(a["nargs-eats-options"])I.length-(E+1)+U<K&&(P=Error(g("Not enough arguments following: %s",S))),U=K;else{for(C=E+1;C<I.length&&(!I[C].match(/^-[^0-9]/)||I[C].match(b)||Se(I[C]));C++)U++;U<K&&(P=Error(g("Not enough arguments following: %s",S)))}let Z=Math.min(U,K);for(!fe(D)&&Z>0&&(x(S,D),Z--),C=E+1;C<Z+E+1;C++)x(S,I[C]);return E+Z}function j(E,S,I,D){let C=[],K=D||I[E+1],U=Q(S,m.nargs);if(Q(S,m.bools)&&!/^(true|false)$/.test(K))C.push(!0);else if(fe(K)||fe(D)&&/^-/.test(K)&&!b.test(K)&&!Se(K)){if(u[S]!==void 0){let Z=u[S];C=Array.isArray(Z)?Z:[Z]}}else{fe(D)||C.push(R(S,D,!0));for(let Z=E+1;Z<I.length&&!(!a["greedy-arrays"]&&C.length>0||U&&typeof U=="number"&&C.length>=U||(K=I[Z],/^-/.test(K)&&!b.test(K)&&!Se(K)));Z++)E=Z,C.push(R(S,K,s))}return typeof U=="number"&&(U&&C.length<U||isNaN(U)&&C.length===0)&&(P=Error(g("Not enough arguments following: %s",S))),x(S,C),E}function x(E,S,I=s){if(/-/.test(E)&&a["camel-case-expansion"]){let K=E.split(".").map(function(U){return Sn(U)}).join(".");w(E,K)}let D=R(E,S,I),C=E.split(".");Te(k,C,D),m.aliases[E]&&m.aliases[E].forEach(function(K){let U=K.split(".");Te(k,U,D)}),C.length>1&&a["dot-notation"]&&(m.aliases[C[0]]||[]).forEach(function(K){let U=K.split("."),Z=[].concat(C);Z.shift(),U=U.concat(Z),(m.aliases[E]||[]).includes(U.join("."))||Te(k,U,D)}),Q(E,m.normalize)&&!Q(E,m.arrays)&&[E].concat(m.aliases[E]||[]).forEach(function(U){Object.defineProperty(q,U,{enumerable:!0,get(){return S},set(Z){S=typeof Z=="string"?xr.normalize(Z):Z}})})}function w(E,S){m.aliases[E]&&m.aliases[E].length||(m.aliases[E]=[S],p[S]=!0),m.aliases[S]&&m.aliases[S].length||w(S,E)}function R(E,S,I){I&&(S=L8(S)),(Q(E,m.bools)||Q(E,m.counts))&&typeof S=="string"&&(S=S==="true");let D=Array.isArray(S)?S.map(function(C){return L(E,C)}):L(E,S);return Q(E,m.counts)&&(fe(D)||typeof D=="boolean")&&(D=Wd()),Q(E,m.normalize)&&Q(E,m.arrays)&&(Array.isArray(S)?D=S.map(C=>xr.normalize(C)):D=xr.normalize(S)),D}function L(E,S){return!a["parse-positional-numbers"]&&E==="_"||!Q(E,m.strings)&&!Q(E,m.bools)&&!Array.isArray(S)&&(Ju(S)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${S}`)))||!fe(S)&&Q(E,m.numbers))&&(S=Number(S)),S}function W(E){let S=Object.create(null);le(S,m.aliases,u),Object.keys(m.configs).forEach(function(I){let D=E[I]||S[I];if(D)try{let C=null,K=xr.resolve(xr.cwd(),D),U=m.configs[I];if(typeof U=="function"){try{C=U(K)}catch(Z){C=Z}if(C instanceof Error){P=C;return}}else C=xr.require(K);v(C)}catch(C){C.name==="PermissionDenied"?P=C:E[I]&&(P=Error(g("Invalid JSON config file: %s",D)))}})}function v(E,S){Object.keys(E).forEach(function(I){let D=E[I],C=S?S+"."+I:I;typeof D=="object"&&D!==null&&!Array.isArray(D)&&a["dot-notation"]?v(D,C):(!ge(k,C.split("."))||Q(C,m.arrays)&&a["combine-arrays"])&&x(C,D)})}function O(){typeof c<"u"&&c.forEach(function(E){v(E)})}function re(E,S){if(typeof f>"u")return;let I=typeof f=="string"?f:"",D=xr.env();Object.keys(D).forEach(function(C){if(I===""||C.lastIndexOf(I,0)===0){let K=C.split("__").map(function(U,Z){return Z===0&&(U=U.substring(I.length)),Sn(U)});(S&&m.configs[K.join(".")]||!S)&&!ge(E,K)&&x(K.join("."),D[C])}})}function V(E){let S,I=new Set;Object.keys(E).forEach(function(D){if(!I.has(D)&&(S=Q(D,m.coercions),typeof S=="function"))try{let C=L(D,S(E[D]));[].concat(m.aliases[D]||[],D).forEach(K=>{I.add(K),E[K]=C})}catch(C){P=C}})}function Ae(E){return m.keys.forEach(S=>{~S.indexOf(".")||typeof E[S]>"u"&&(E[S]=void 0)}),E}function le(E,S,I,D=!1){Object.keys(I).forEach(function(C){ge(E,C.split("."))||(Te(E,C.split("."),I[C]),D&&(d[C]=!0),(S[C]||[]).forEach(function(K){ge(E,K.split("."))||Te(E,K.split("."),I[C])}))})}function ge(E,S){let I=E;a["dot-notation"]||(S=[S.join(".")]),S.slice(0,-1).forEach(function(C){I=I[C]||{}});let D=S[S.length-1];return typeof I!="object"?!1:D in I}function Te(E,S,I){let D=E;a["dot-notation"]||(S=[S.join(".")]),S.slice(0,-1).forEach(function(qe){qe=cP(qe),typeof D=="object"&&D[qe]===void 0&&(D[qe]={}),typeof D[qe]!="object"||Array.isArray(D[qe])?(Array.isArray(D[qe])?D[qe].push({}):D[qe]=[D[qe],{}],D=D[qe][D[qe].length-1]):D=D[qe]});let C=cP(S[S.length-1]),K=Q(S.join("."),m.arrays),U=Array.isArray(I),Z=a["duplicate-arguments-array"];!Z&&Q(C,m.nargs)&&(Z=!0,(!fe(D[C])&&m.nargs[C]===1||Array.isArray(D[C])&&D[C].length===m.nargs[C])&&(D[C]=void 0)),I===Wd()?D[C]=Wd(D[C]):Array.isArray(D[C])?Z&&K&&U?D[C]=a["flatten-duplicate-arrays"]?D[C].concat(I):(Array.isArray(D[C][0])?D[C]:[D[C]]).concat([I]):!Z&&!!K==!!U?D[C]=I:D[C]=D[C].concat([I]):D[C]===void 0&&K?D[C]=U?I:[I]:Z&&!(D[C]===void 0||Q(C,m.counts)||Q(C,m.bools))?D[C]=[D[C],I]:D[C]=I}function st(...E){E.forEach(function(S){Object.keys(S||{}).forEach(function(I){m.aliases[I]||(m.aliases[I]=[].concat(o[I]||[]),m.aliases[I].concat(I).forEach(function(D){if(/-/.test(D)&&a["camel-case-expansion"]){let C=Sn(D);C!==I&&m.aliases[I].indexOf(C)===-1&&(m.aliases[I].push(C),p[C]=!0)}}),m.aliases[I].concat(I).forEach(function(D){if(D.length>1&&/[A-Z]/.test(D)&&a["camel-case-expansion"]){let C=Xu(D,"-");C!==I&&m.aliases[I].indexOf(C)===-1&&(m.aliases[I].push(C),p[C]=!0)}}),m.aliases[I].forEach(function(D){m.aliases[D]=[I].concat(m.aliases[I].filter(function(C){return D!==C}))}))})})}function Q(E,S){let I=[].concat(m.aliases[E]||[],E),D=Object.keys(S),C=I.find(K=>D.includes(K));return C?S[C]:!1}function dt(E){let S=Object.keys(m);return[].concat(S.map(D=>m[D])).some(function(D){return Array.isArray(D)?D.includes(E):D[E]})}function B(E,...S){return[].concat(...S).some(function(D){let C=E.match(D);return C&&dt(C[1])})}function me(E){if(E.match(b)||!E.match(/^-[^-]+/))return!1;let S=!0,I,D=E.slice(1).split("");for(let C=0;C<D.length;C++){if(I=E.slice(C+2),!dt(D[C])){S=!1;break}if(D[C+1]&&D[C+1]==="="||I==="-"||/[A-Za-z]/.test(D[C])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)||D[C+1]&&D[C+1].match(/\W/))break}return S}function Se(E){return a["unknown-options-as-args"]&&T(E)}function T(E){return E=E.replace(/^-{3,}/,"--"),E.match(b)||me(E)?!1:!B(E,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(E){return!Q(E,m.bools)&&!Q(E,m.counts)&&`${E}`in u?u[E]:N(ie(E))}function N(E){return{[jt.BOOLEAN]:!0,[jt.STRING]:"",[jt.NUMBER]:void 0,[jt.ARRAY]:[]}[E]}function ie(E){let S=jt.BOOLEAN;return Q(E,m.strings)?S=jt.STRING:Q(E,m.numbers)?S=jt.NUMBER:Q(E,m.bools)?S=jt.BOOLEAN:Q(E,m.arrays)&&(S=jt.ARRAY),S}function fe(E){return E===void 0}function Ce(){Object.keys(m.counts).find(E=>Q(E,m.arrays)?(P=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",E)),!0):Q(E,m.nargs)?(P=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",E)),!0):!1)}return{aliases:Object.assign({},m.aliases),argv:Object.assign(q,k),configuration:a,defaulted:Object.assign({},d),error:P,newAliases:Object.assign({},p)}}};function F8(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Wd(e){return e!==void 0?e+1:1}function cP(e){return e==="__proto__"?"___proto___":e}function L8(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var pP=require("fs");var Ud,Gd,Hd,lP=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,fP=(Gd=(Ud=process==null?void 0:process.versions)===null||Ud===void 0?void 0:Ud.node)!==null&&Gd!==void 0?Gd:(Hd=process==null?void 0:process.version)===null||Hd===void 0?void 0:Hd.slice(1);if(fP&&Number(fP.match(/^([^.]+)/)[1])<lP)throw Error(`yargs parser supports a minimum Node.js version of ${lP}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var D8=process?process.env:{},dP=new Qu({cwd:process.cwd,env:()=>D8,format:hP.format,normalize:Zu.normalize,resolve:Zu.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,pP.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),ro=function(t,r){return dP.parse(t.slice(),r).argv};ro.detailed=function(e,t){return dP.parse(e.slice(),t)};ro.camelCase=Sn;ro.decamelize=Xu;ro.looksLikeNumber=Ju;var zd=ro;var Jt=require("path");function gP(){return T8()?0:1}function T8(){return k8()&&!process.defaultApp}function k8(){return!!process.versions.electron}function Yd(e){return e.slice(gP()+1)}function mP(){return process.argv[gP()]}var _e=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var Di=require("fs"),yP=require("util"),AP=require("path"),wP={fs:{readFileSync:Di.readFileSync,writeFile:Di.writeFile},format:yP.format,resolve:AP.resolve,exists:e=>{try{return(0,Di.statSync)(e).isFile()}catch{return!1}}};var Xt,Vd=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Xt.format.apply(Xt.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),Xt.format.apply(Xt.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);Xt.fs.writeFile(o,a,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Xt.fs.readFileSync&&(t=JSON.parse(Xt.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=Xt.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Xt.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Xt.exists(t)}};function bP(e,t){Xt=t;let r=new Vd(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var N8=e=>bP(e,wP),EP=N8;var B8={},I8="require is not supported by ESM",_P="loading a directory of commands is not supported yet for ESM",no;try{no=(0,CP.fileURLToPath)(B8.url)}catch{no=process.cwd()}var $8=no.substring(0,no.lastIndexOf("node_modules")),Kd={assert:{notStrictEqual:ec.notStrictEqual,strictEqual:ec.strictEqual},cliui:qd,findUp:aP,getEnv:e=>process.env[e],inspect:vP.inspect,getCallerFile:()=>{throw new _e(_P)},getProcessArgvBin:mP,mainFilename:$8||process.cwd(),Parser:zd,path:{basename:Jt.basename,dirname:Jt.dirname,extname:Jt.extname,relative:Jt.relative,resolve:Jt.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:SP.readFileSync,require:()=>{throw new _e(I8)},requireDirectory:()=>{throw new _e(_P)},stringWidth:e=>[...e].length,y18n:EP({directory:(0,Jt.resolve)(no,"../../../locales"),updateFiles:!1})};function pt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function Xd(e,t){t.assert.strictEqual(typeof e,"string")}function Ti(e){return Object.keys(e)}function ve(e){return!!e&&!!e.then&&typeof e.then=="function"}function Jr(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),s}var M8=["first","second","third","fourth","fifth","sixth"];function z(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Jr(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();let c=a||u.length;if(c<s.demanded.length)throw new _e(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let f=s.demanded.length+s.optional.length;if(c>f)throw new _e(`Too many arguments provided. Expected max ${f} but received ${c}.`);s.demanded.forEach(l=>{let h=u.shift(),p=xP(h);l.cmd.filter(g=>g===p||g==="*").length===0&&PP(p,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(u.length===0)return;let h=u.shift(),p=xP(h);l.cmd.filter(g=>g===p||g==="*").length===0&&PP(p,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function xP(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function PP(e,t,r){throw new _e(`Invalid ${M8[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var tc=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(z("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function OP(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function Cn(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(ve(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return ve(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function xn(e,t,r=n=>{throw n}){try{let n=j8(e)?e():e;return ve(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function j8(e){return typeof e=="function"}function Jd(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}var ki=/(^\*)|(^\$0)/,Qd=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,u)=>{let c=s(o,a,u);if(c){if(this.requireCache.has(a))return c;this.requireCache.add(a),this.addHandler(c)}return c},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],u=OP(s);if(i=i||(()=>{}),Array.isArray(t))if(q8(t))[t,...a]=t;else for(let c of t)this.addHandler(c);else if(U8(t)){let c=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(c=[].concat(c).concat(t.aliases)),this.addHandler(c,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(RP(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let c=Jr(t);a=a.map(h=>Jr(h).cmd);let f=!1,l=[c.cmd].concat(a).filter(h=>ki.test(h)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(c.cmd=l[0],a=l.slice(1),t=t.replace(ki,c.cmd)),a.forEach(h=>{this.aliasMap[h]=c.cmd}),r!==!1&&this.usage.command(t,r,f,a,o),this.handlers[c.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:o,demanded:c.demanded,optional:c.optional},f&&(this.defaultCommand=this.handlers[c.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),c=u.commands.slice(),f=!t;t&&(u.commands.push(t),u.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,c,i,s,o);return ve(l)?l.then(h=>this.applyMiddlewareAndGetResult(f,a,h.innerArgv,u,s,h.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,u,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,u){let c=r.builder,f=n;if(rc(c)){n.getInternalMethods().getUsageInstance().freeze();let l=c(n.getInternalMethods().reset(i),u);if(ve(l))return l.then(h=>(f=LP(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else W8(c)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,c[l])}));return this.parseAndUpdateUsage(t,r,f,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return ve(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=ki.test(r.original)?r.original.replace(ki,"").trim():r.original,i=t.filter(s=>!ki.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,u){if(!o.getInternalMethods().getHasOutput()){let c=o.getInternalMethods().runValidation(s,u,o.parsed.error,t);n=xn(n,f=>(c(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let c=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,c,!1,!1),n=Cn(n,o,a,!1),n=xn(n,f=>{let l=r.handler(f);return ve(l)?l.then(()=>f):f}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),ve(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(f=>{try{o.getInternalMethods().getUsageInstance().fail(null,f)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let u={};if(s)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,a));let c=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=Cn(n,a,c,!0);return ve(f)?f.then(l=>this.handleValidationAndGetResult(t,r,l,i,o,a,c,u)):this.handleValidationAndGetResult(t,r,f,i,o,a,c,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,a)}for(;o.length;){let u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Jr(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let c of Object.keys(n.alias))s.alias[c]=(s.alias[c]||[]).concat(n.alias[c]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(c=>{r[c].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[c]=!0),o.push(`--${c}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let c=Object.keys(r);Object.keys(r).forEach(f=>{c.push(...u.aliases[f])}),Object.keys(u.argv).forEach(f=>{c.includes(f)&&(r[f]||(r[f]=u.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(t,f)&&Object.prototype.hasOwnProperty.call(u.argv,f)&&(Array.isArray(t[f])||Array.isArray(u.argv[f]))?t[f]=[].concat(t[f],u.argv[f]):t[f]=u.argv[f])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=ki.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(rc(r))return r(t,!0);RP(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Jd(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;pt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();pt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function FP(e,t,r,n){return new Qd(e,t,r,n)}function RP(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function q8(e){return e.every(t=>typeof t=="string")}function rc(e){return typeof e=="function"}function W8(e){return typeof e=="object"}function U8(e){return typeof e=="object"&&!Array.isArray(e)}function Qr(e={},t=()=>!0){let r={};return Ti(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function Zr(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function G8(e){return typeof e=="boolean"}function TP(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(R){i.push(R)};let s=null,o=null,a=!0;n.showHelpOnFail=function(R=!0,L){let[W,v]=typeof R=="string"?[!0,R]:[R,L];return e.getInternalMethods().isGlobalContext()&&(o=v),s=v,a=W,n};let u=!1;n.fail=function(R,L){let W=e.getInternalMethods().getLoggerInstance();if(i.length)for(let v=i.length-1;v>=0;--v){let O=i[v];if(G8(O)){if(L)throw L;if(R)throw Error(R)}else O(R,L,n)}else{if(e.getExitProcess()&&Zr(!0),!u){u=!0,a&&(e.showHelp("error"),W.error()),(R||L)&&W.error(R||L);let v=s||o;v&&((R||L)&&W.error(""),W.error(v))}if(L=L||new _e(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,L);throw L}};let c=[],f=!1;n.usage=(w,R)=>w===null?(f=!0,c=[],n):(f=!1,c.push([w,R||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(w,R)=>{l.push([w,R||""])};let h=[];n.command=function(R,L,W,v,O=!1){W&&(h=h.map(re=>(re[2]=!1,re))),h.push([R,L||"",W,v,O])},n.getCommands=()=>h;let p={};n.describe=function(R,L){Array.isArray(R)?R.forEach(W=>{n.describe(W,L)}):typeof R=="object"?Object.keys(R).forEach(W=>{n.describe(W,R[W])}):p[R]=L},n.getDescriptions=()=>p;let d=[];n.epilog=w=>{d.push(w)};let g=!1,m;n.wrap=w=>{g=!0,m=w},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=$(),g=!0),m);let b="__yargsString__:";n.deferY18nLookup=w=>b+w,n.help=function(){if(F)return F;P();let R=e.customScriptName?e.$0:t.path.basename(e.$0),L=e.getDemandedOptions(),W=e.getDemandedCommands(),v=e.getDeprecatedOptions(),O=e.getGroups(),re=e.getOptions(),V=[];V=V.concat(Object.keys(p)),V=V.concat(Object.keys(L)),V=V.concat(Object.keys(W)),V=V.concat(Object.keys(re.default)),V=V.filter(q),V=Object.keys(V.reduce((B,me)=>(me!=="_"&&(B[me]=!0),B),{}));let Ae=n.getWrap(),le=t.cliui({width:Ae,wrap:!!Ae});if(!f){if(c.length)c.forEach(B=>{le.div({text:`${B[0].replace(/\$0/g,R)}`}),B[1]&&le.div({text:`${B[1]}`,padding:[1,0,0,0]})}),le.div();else if(h.length){let B=null;W._?B=`${R} <${r("command")}>
108
- `:B=`${R} [${r("command")}]
109
- `,le.div(`${B}`)}}if(h.length>1||h.length===1&&!h[0][2]){le.div(r("Commands:"));let B=e.getInternalMethods().getContext(),me=B.commands.length?`${B.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((T,ae)=>T[0].localeCompare(ae[0])));let Se=R?`${R} `:"";h.forEach(T=>{let ae=`${Se}${me}${T[0].replace(/^\$0 ?/,"")}`;le.span({text:ae,padding:[0,2,0,2],width:_(h,Ae,`${R}${me}`)+4},{text:T[1]});let N=[];T[2]&&N.push(`[${r("default")}]`),T[3]&&T[3].length&&N.push(`[${r("aliases:")} ${T[3].join(", ")}]`),T[4]&&(typeof T[4]=="string"?N.push(`[${r("deprecated: %s",T[4])}]`):N.push(`[${r("deprecated")}]`)),N.length?le.div({text:N.join(" "),padding:[0,0,0,2],align:"right"}):le.div()}),le.div()}let ge=(Object.keys(re.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);V=V.filter(B=>!e.parsed.newAliases[B]&&ge.every(me=>(re.alias[me]||[]).indexOf(B)===-1));let Te=r("Options:");O[Te]||(O[Te]=[]),k(V,re.alias,O,Te);let st=B=>/^--/.test(nc(B)),Q=Object.keys(O).filter(B=>O[B].length>0).map(B=>{let me=O[B].filter(q).map(Se=>{if(ge.includes(Se))return Se;for(let T=0,ae;(ae=ge[T])!==void 0;T++)if((re.alias[ae]||[]).includes(Se))return ae;return Se});return{groupName:B,normalizedKeys:me}}).filter(({normalizedKeys:B})=>B.length>0).map(({groupName:B,normalizedKeys:me})=>{let Se=me.reduce((T,ae)=>(T[ae]=[ae].concat(re.alias[ae]||[]).map(N=>B===n.getPositionalGroupName()?N:(/^[0-9]$/.test(N)?re.boolean.includes(ae)?"-":"--":N.length>1?"--":"-")+N).sort((N,ie)=>st(N)===st(ie)?0:st(N)?1:-1).join(", "),T),{});return{groupName:B,normalizedKeys:me,switches:Se}});if(Q.filter(({groupName:B})=>B!==n.getPositionalGroupName()).some(({normalizedKeys:B,switches:me})=>!B.every(Se=>st(me[Se])))&&Q.filter(({groupName:B})=>B!==n.getPositionalGroupName()).forEach(({normalizedKeys:B,switches:me})=>{B.forEach(Se=>{st(me[Se])&&(me[Se]=H8(me[Se],4))})}),Q.forEach(({groupName:B,normalizedKeys:me,switches:Se})=>{le.div(B),me.forEach(T=>{let ae=Se[T],N=p[T]||"",ie=null;N.includes(b)&&(N=r(N.substring(b.length))),re.boolean.includes(T)&&(ie=`[${r("boolean")}]`),re.count.includes(T)&&(ie=`[${r("count")}]`),re.string.includes(T)&&(ie=`[${r("string")}]`),re.normalize.includes(T)&&(ie=`[${r("string")}]`),re.array.includes(T)&&(ie=`[${r("array")}]`),re.number.includes(T)&&(ie=`[${r("number")}]`);let fe=S=>typeof S=="string"?`[${r("deprecated: %s",S)}]`:`[${r("deprecated")}]`,Ce=[T in v?fe(v[T]):null,ie,T in L?`[${r("required")}]`:null,re.choices&&re.choices[T]?`[${r("choices:")} ${n.stringifiedValues(re.choices[T])}]`:null,M(re.default[T],re.defaultDescription[T])].filter(Boolean).join(" ");le.span({text:nc(ae),padding:[0,2,0,2+DP(ae)],width:_(Se,Ae)+4},N);let E=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Ce&&!E?le.div({text:Ce,padding:[0,0,0,2],align:"right"}):le.div()}),le.div()}),l.length&&(le.div(r("Examples:")),l.forEach(B=>{B[0]=B[0].replace(/\$0/g,R)}),l.forEach(B=>{B[1]===""?le.div({text:B[0],padding:[0,2,0,2]}):le.div({text:B[0],padding:[0,2,0,2],width:_(l,Ae)+4},{text:B[1]})}),le.div()),d.length>0){let B=d.map(me=>me.replace(/\$0/g,R)).join(`
110
- `);le.div(`${B}
111
- `)}return le.toString().replace(/\s*$/,"")};function _(w,R,L){let W=0;return Array.isArray(w)||(w=Object.values(w).map(v=>[v])),w.forEach(v=>{W=Math.max(t.stringWidth(L?`${L} ${nc(v[0])}`:nc(v[0]))+DP(v[0]),W)}),R&&(W=Math.min(W,parseInt((R*.5).toString(),10))),W}function P(){let w=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(L=>{R.alias[L].forEach(W=>{p[W]&&n.describe(L,p[W]),W in w&&e.demandOption(L,w[W]),R.boolean.includes(W)&&e.boolean(L),R.count.includes(W)&&e.count(L),R.string.includes(W)&&e.string(L),R.normalize.includes(W)&&e.normalize(L),R.array.includes(W)&&e.array(L),R.number.includes(W)&&e.number(L)})})}let F;n.cacheHelpMessage=function(){F=this.help()},n.clearCachedHelpMessage=function(){F=void 0},n.hasCachedHelpMessage=function(){return!!F};function k(w,R,L,W){let v=[],O=null;return Object.keys(L).forEach(re=>{v=v.concat(L[re])}),w.forEach(re=>{O=[re].concat(R[re]),O.some(V=>v.indexOf(V)!==-1)||L[W].push(re)}),v}function q(w){return e.getOptions().hiddenOptions.indexOf(w)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=w=>{let R=e.getInternalMethods().getLoggerInstance();w||(w="error"),(typeof w=="function"?w:R[w])(n.help())},n.functionDescription=w=>["(",w.name?t.Parser.decamelize(w.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(R,L){let W="",v=L||", ",O=[].concat(R);return!R||!O.length||O.forEach(re=>{W.length&&(W+=v),W+=JSON.stringify(re)}),W};function M(w,R){let L=`[${r("default:")} `;if(w===void 0&&!R)return null;if(R)L+=R;else switch(typeof w){case"string":L+=`"${w}"`;break;case"object":L+=JSON.stringify(w);break;default:L+=w}return`${L}]`}function $(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let j=null;n.version=w=>{j=w},n.showVersion=w=>{let R=e.getInternalMethods().getLoggerInstance();w||(w="error"),(typeof w=="function"?w:R[w])(j)},n.reset=function(R){return s=null,u=!1,c=[],f=!1,d=[],l=[],h=[],p=Qr(p,L=>!R[L]),n};let x=[];return n.freeze=function(){x.push({failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:d,examples:l,commands:h,descriptions:p})},n.unfreeze=function(R=!1){let L=x.pop();L&&(R?(p={...L.descriptions,...p},h=[...L.commands,...h],c=[...L.usages,...c],l=[...L.examples,...l],d=[...L.epilogs,...d]):{failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:d,examples:l,commands:h,descriptions:p}=L)},n}function Zd(e){return typeof e=="object"}function H8(e,t){return Zd(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function DP(e){return Zd(e)?e.indentation:0}function nc(e){return Zd(e)?e.text:e}var kP=`###-begin-{{app_name}}-completions-###
104
+ `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[OG]||0).fill("")),i.push(...new Array(s.padding[RG]||0).fill(""))),i.forEach((a,u)=>{r[u]||r.push([]);let c=r[u];for(let f=0;f<o;f++)c[f]===void 0&&c.push("");c.push(a)})}),r}negatePadding(e){let r=e.width||0;return e.padding&&(r-=(e.padding[Xu]||0)+(e.padding[Ku]||0)),e.border&&(r-=4),r}columnWidths(e){if(!this.wrap)return e.map(o=>o.width||qt.stringWidth(o.text));let r=e.length,n=this.width,i=e.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,LG(e[a])):o)}};function hx(t,e,r){return t.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?r:" ":""}function LG(t){let e=t.padding||[],r=1+(e[Xu]||0)+(e[Ku]||0);return t.border?r+4:r}function DG(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function FG(t,e){t=t.trim();let r=qt.stringWidth(t);return r<e?" ".repeat(e-r)+t:t}function TG(t,e){t=t.trim();let r=qt.stringWidth(t);return r>=e?t:" ".repeat(e-r>>1)+t}var qt;function px(t,e){return qt=e,new Ld({width:t?.width||DG(),wrap:t?.wrap})}var dx=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Dd(t){return t.replace(dx,"")}function gx(t,e){let[r,n]=t.match(dx)||["",""];t=Dd(t);let i="";for(let s=0;s<t.length;s++)s!==0&&s%e===0&&(i+=`
105
+ `),i+=t.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function Fd(t){return px(t,{stringWidth:e=>[...e].length,stripAnsi:Dd,wrap:gx})}var $i=require("path"),Ju=require("fs");function mx(t,e){let r=(0,$i.resolve)(".",t),n;for((0,Ju.statSync)(r).isDirectory()||(r=(0,$i.dirname)(r));;){if(n=e(r,(0,Ju.readdirSync)(r)),n)return(0,$i.resolve)(r,n);if(r=(0,$i.dirname)(n=r),n===r)break}}var Fx=require("util"),Tx=require("fs"),kx=require("url");var Ex=require("util"),tc=require("path");function kn(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",n=!1,i=t.match(/^-+/);for(let s=i?i[0].length:0;s<t.length;s++){let o=t.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Qu(t,e){let r=t.toLowerCase();e=e||"-";let n="";for(let i=0;i<t.length;i++){let s=r.charAt(i),o=t.charAt(i);s!==o&&i>0?n+=`${e}${r.charAt(i)}`:n+=o}return n}function Zu(t){return t==null?!1:typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^0[^.]/.test(t)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function yx(t){if(Array.isArray(t))return t.map(o=>typeof o!="string"?o+"":o);t=t.trim();let e=0,r=null,n=null,i=null,s=[];for(let o=0;o<t.length;o++){if(r=n,n=t.charAt(o),n===" "&&!i){r!==" "&&e++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[e]||(s[e]=""),s[e]+=n}return s}var tr;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(tr||(tr={}));var jr,ec=class{constructor(e){jr=e}parse(e,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=yx(e),s=typeof e=="string",o=kG(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),c=n.configObjects||[],f=n.envPrefix,l=a["populate--"],p=l?"--":"_",d=Object.create(null),g=Object.create(null),m=n.__||jr.format,y={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,v=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(S){let x=typeof S=="object"?S.key:S,V=Object.keys(S).map(function(q){return{boolean:"bools",string:"strings",number:"numbers"}[q]}).filter(Boolean).pop();V&&(y[V][x]=!0),y.arrays[x]=!0,y.keys.push(x)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(S){y.bools[S]=!0,y.keys.push(S)}),[].concat(n.string||[]).filter(Boolean).forEach(function(S){y.strings[S]=!0,y.keys.push(S)}),[].concat(n.number||[]).filter(Boolean).forEach(function(S){y.numbers[S]=!0,y.keys.push(S)}),[].concat(n.count||[]).filter(Boolean).forEach(function(S){y.counts[S]=!0,y.keys.push(S)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(S){y.normalize[S]=!0,y.keys.push(S)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([S,x])=>{typeof x=="number"&&(y.nargs[S]=x,y.keys.push(S))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([S,x])=>{typeof x=="function"&&(y.coercions[S]=x,y.keys.push(S))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(S){y.configs[S]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([S,x])=>{(typeof x=="boolean"||typeof x=="function")&&(y.configs[S]=x)})),st(n.key,o,n.default,y.arrays),Object.keys(u).forEach(function(S){(y.aliases[S]||[]).forEach(function(x){u[x]=u[S]})});let F=null;Ie();let k=[],W=Object.assign(Object.create(null),{_:[]}),Z={};for(let S=0;S<i.length;S++){let x=i[S],V=x.replace(/^-{3,}/,"---"),q,P,ue,ne,pe,ze;if(x!=="--"&&/^-/.test(x)&&Te(x))ee(x);else if(V.match(/^---+(=|$)/)){ee(x);continue}else if(x.match(/^--.+=/)||!a["short-option-groups"]&&x.match(/^-.+=/))ne=x.match(/^--?([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&(he(ne[1],y.arrays)?S=te(S,ne[1],i,ne[2]):he(ne[1],y.nargs)!==!1?S=X(S,ne[1],i,ne[2]):L(ne[1],ne[2],!0));else if(x.match(v)&&a["boolean-negation"])ne=x.match(v),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(P=ne[1],L(P,he(P,y.arrays)?[!1]:!1));else if(x.match(/^--.+/)||!a["short-option-groups"]&&x.match(/^-[^-]+/))ne=x.match(/^--?(.+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(P=ne[1],he(P,y.arrays)?S=te(S,P,i):he(P,y.nargs)!==!1?S=X(S,P,i):(pe=i[S+1],pe!==void 0&&(!pe.match(/^-/)||pe.match(_))&&!he(P,y.bools)&&!he(P,y.counts)||/^(true|false)$/.test(pe)?(L(P,pe),S++):L(P,we(P))));else if(x.match(/^-.\..+=/))ne=x.match(/^-([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&L(ne[1],ne[2]);else if(x.match(/^-.\..+/)&&!x.match(_))pe=i[S+1],ne=x.match(/^-(.\..+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(P=ne[1],pe!==void 0&&!pe.match(/^-/)&&!he(P,y.bools)&&!he(P,y.counts)?(L(P,pe),S++):L(P,we(P)));else if(x.match(/^-[^-]+/)&&!x.match(_)){ue=x.slice(1,-1).split(""),q=!1;for(let ot=0;ot<ue.length;ot++){if(pe=x.slice(ot+2),ue[ot+1]&&ue[ot+1]==="="){ze=x.slice(ot+3),P=ue[ot],he(P,y.arrays)?S=te(S,P,i,ze):he(P,y.nargs)!==!1?S=X(S,P,i,ze):L(P,ze),q=!0;break}if(pe==="-"){L(ue[ot],pe);continue}if(/[A-Za-z]/.test(ue[ot])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(pe)&&he(pe,y.bools)===!1){L(ue[ot],pe),q=!0;break}if(ue[ot+1]&&ue[ot+1].match(/\W/)){L(ue[ot],pe),q=!0;break}else L(ue[ot],we(ue[ot]))}P=x.slice(-1)[0],!q&&P!=="-"&&(he(P,y.arrays)?S=te(S,P,i):he(P,y.nargs)!==!1?S=X(S,P,i):(pe=i[S+1],pe!==void 0&&(!/^(-|--)[^-]/.test(pe)||pe.match(_))&&!he(P,y.bools)&&!he(P,y.counts)||/^(true|false)$/.test(pe)?(L(P,pe),S++):L(P,we(P))))}else if(x.match(/^-[0-9]$/)&&x.match(_)&&he(x.slice(1),y.bools))P=x.slice(1),L(P,we(P));else if(x==="--"){k=i.slice(S+1);break}else if(a["halt-at-non-option"]){k=i.slice(S);break}else ee(x)}de(W,!0),de(W,!1),re(W),R(),_e(W,y.aliases,u,!0),$(W),a["set-placeholder-key"]&&De(W),Object.keys(y.counts).forEach(function(S){Fe(W,S.split("."))||L(S,0)}),l&&k.length&&(W[p]=[]),k.forEach(function(S){W[p].push(S)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(W).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete W[S]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(S=>o[S])).forEach(S=>{a["camel-case-expansion"]&&S.includes("-")&&delete W[S.split(".").map(x=>kn(x)).join(".")],delete W[S]});function ee(S){let x=N("_",S);(typeof x=="string"||typeof x=="number")&&W._.push(x)}function X(S,x,V,q){let P,ue=he(x,y.nargs);if(ue=typeof ue!="number"||isNaN(ue)?1:ue,ue===0)return Ce(q)||(F=Error(m("Argument unexpected for: %s",x))),L(x,we(x)),S;let ne=Ce(q)?0:1;if(a["nargs-eats-options"])V.length-(S+1)+ne<ue&&(F=Error(m("Not enough arguments following: %s",x))),ne=ue;else{for(P=S+1;P<V.length&&(!V[P].match(/^-[^0-9]/)||V[P].match(_)||Te(V[P]));P++)ne++;ne<ue&&(F=Error(m("Not enough arguments following: %s",x)))}let pe=Math.min(ne,ue);for(!Ce(q)&&pe>0&&(L(x,q),pe--),P=S+1;P<pe+S+1;P++)L(x,V[P]);return S+pe}function te(S,x,V,q){let P=[],ue=q||V[S+1],ne=he(x,y.nargs);if(he(x,y.bools)&&!/^(true|false)$/.test(ue))P.push(!0);else if(Ce(ue)||Ce(q)&&/^-/.test(ue)&&!_.test(ue)&&!Te(ue)){if(u[x]!==void 0){let pe=u[x];P=Array.isArray(pe)?pe:[pe]}}else{Ce(q)||P.push(T(x,q,!0));for(let pe=S+1;pe<V.length&&!(!a["greedy-arrays"]&&P.length>0||ne&&typeof ne=="number"&&P.length>=ne||(ue=V[pe],/^-/.test(ue)&&!_.test(ue)&&!Te(ue)));pe++)S=pe,P.push(T(x,ue,s))}return typeof ne=="number"&&(ne&&P.length<ne||isNaN(ne)&&P.length===0)&&(F=Error(m("Not enough arguments following: %s",x))),L(x,P),S}function L(S,x,V=s){if(/-/.test(S)&&a["camel-case-expansion"]){let ue=S.split(".").map(function(ne){return kn(ne)}).join(".");b(S,ue)}let q=T(S,x,V),P=S.split(".");Me(W,P,q),y.aliases[S]&&y.aliases[S].forEach(function(ue){let ne=ue.split(".");Me(W,ne,q)}),P.length>1&&a["dot-notation"]&&(y.aliases[P[0]]||[]).forEach(function(ue){let ne=ue.split("."),pe=[].concat(P);pe.shift(),ne=ne.concat(pe),(y.aliases[S]||[]).includes(ne.join("."))||Me(W,ne,q)}),he(S,y.normalize)&&!he(S,y.arrays)&&[S].concat(y.aliases[S]||[]).forEach(function(ne){Object.defineProperty(Z,ne,{enumerable:!0,get(){return x},set(pe){x=typeof pe=="string"?jr.normalize(pe):pe}})})}function b(S,x){y.aliases[S]&&y.aliases[S].length||(y.aliases[S]=[x],d[x]=!0),y.aliases[x]&&y.aliases[x].length||b(x,S)}function T(S,x,V){V&&(x=NG(x)),(he(S,y.bools)||he(S,y.counts))&&typeof x=="string"&&(x=x==="true");let q=Array.isArray(x)?x.map(function(P){return N(S,P)}):N(S,x);return he(S,y.counts)&&(Ce(q)||typeof q=="boolean")&&(q=Td()),he(S,y.normalize)&&he(S,y.arrays)&&(Array.isArray(x)?q=x.map(P=>jr.normalize(P)):q=jr.normalize(x)),q}function N(S,x){return!a["parse-positional-numbers"]&&S==="_"||!he(S,y.strings)&&!he(S,y.bools)&&!Array.isArray(x)&&(Zu(x)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${x}`)))||!Ce(x)&&he(S,y.numbers))&&(x=Number(x)),x}function re(S){let x=Object.create(null);_e(x,y.aliases,u),Object.keys(y.configs).forEach(function(V){let q=S[V]||x[V];if(q)try{let P=null,ue=jr.resolve(jr.cwd(),q),ne=y.configs[V];if(typeof ne=="function"){try{P=ne(ue)}catch(pe){P=pe}if(P instanceof Error){F=P;return}}else P=jr.require(ue);C(P)}catch(P){P.name==="PermissionDenied"?F=P:S[V]&&(F=Error(m("Invalid JSON config file: %s",q)))}})}function C(S,x){Object.keys(S).forEach(function(V){let q=S[V],P=x?x+"."+V:V;typeof q=="object"&&q!==null&&!Array.isArray(q)&&a["dot-notation"]?C(q,P):(!Fe(W,P.split("."))||he(P,y.arrays)&&a["combine-arrays"])&&L(P,q)})}function R(){typeof c<"u"&&c.forEach(function(S){C(S)})}function de(S,x){if(typeof f>"u")return;let V=typeof f=="string"?f:"",q=jr.env();Object.keys(q).forEach(function(P){if(V===""||P.lastIndexOf(V,0)===0){let ue=P.split("__").map(function(ne,pe){return pe===0&&(ne=ne.substring(V.length)),kn(ne)});(x&&y.configs[ue.join(".")]||!x)&&!Fe(S,ue)&&L(ue.join("."),q[P])}})}function $(S){let x,V=new Set;Object.keys(S).forEach(function(q){if(!V.has(q)&&(x=he(q,y.coercions),typeof x=="function"))try{let P=N(q,x(S[q]));[].concat(y.aliases[q]||[],q).forEach(ue=>{V.add(ue),S[ue]=P})}catch(P){F=P}})}function De(S){return y.keys.forEach(x=>{~x.indexOf(".")||typeof S[x]>"u"&&(S[x]=void 0)}),S}function _e(S,x,V,q=!1){Object.keys(V).forEach(function(P){Fe(S,P.split("."))||(Me(S,P.split("."),V[P]),q&&(g[P]=!0),(x[P]||[]).forEach(function(ue){Fe(S,ue.split("."))||Me(S,ue.split("."),V[P])}))})}function Fe(S,x){let V=S;a["dot-notation"]||(x=[x.join(".")]),x.slice(0,-1).forEach(function(P){V=V[P]||{}});let q=x[x.length-1];return typeof V!="object"?!1:q in V}function Me(S,x,V){let q=S;a["dot-notation"]||(x=[x.join(".")]),x.slice(0,-1).forEach(function(ze){ze=Ax(ze),typeof q=="object"&&q[ze]===void 0&&(q[ze]={}),typeof q[ze]!="object"||Array.isArray(q[ze])?(Array.isArray(q[ze])?q[ze].push({}):q[ze]=[q[ze],{}],q=q[ze][q[ze].length-1]):q=q[ze]});let P=Ax(x[x.length-1]),ue=he(x.join("."),y.arrays),ne=Array.isArray(V),pe=a["duplicate-arguments-array"];!pe&&he(P,y.nargs)&&(pe=!0,(!Ce(q[P])&&y.nargs[P]===1||Array.isArray(q[P])&&q[P].length===y.nargs[P])&&(q[P]=void 0)),V===Td()?q[P]=Td(q[P]):Array.isArray(q[P])?pe&&ue&&ne?q[P]=a["flatten-duplicate-arrays"]?q[P].concat(V):(Array.isArray(q[P][0])?q[P]:[q[P]]).concat([V]):!pe&&!!ue==!!ne?q[P]=V:q[P]=q[P].concat([V]):q[P]===void 0&&ue?q[P]=ne?V:[V]:pe&&!(q[P]===void 0||he(P,y.counts)||he(P,y.bools))?q[P]=[q[P],V]:q[P]=V}function st(...S){S.forEach(function(x){Object.keys(x||{}).forEach(function(V){y.aliases[V]||(y.aliases[V]=[].concat(o[V]||[]),y.aliases[V].concat(V).forEach(function(q){if(/-/.test(q)&&a["camel-case-expansion"]){let P=kn(q);P!==V&&y.aliases[V].indexOf(P)===-1&&(y.aliases[V].push(P),d[P]=!0)}}),y.aliases[V].concat(V).forEach(function(q){if(q.length>1&&/[A-Z]/.test(q)&&a["camel-case-expansion"]){let P=Qu(q,"-");P!==V&&y.aliases[V].indexOf(P)===-1&&(y.aliases[V].push(P),d[P]=!0)}}),y.aliases[V].forEach(function(q){y.aliases[q]=[V].concat(y.aliases[V].filter(function(P){return q!==P}))}))})})}function he(S,x){let V=[].concat(y.aliases[S]||[],S),q=Object.keys(x),P=V.find(ue=>q.includes(ue));return P?x[P]:!1}function Xe(S){let x=Object.keys(y);return[].concat(x.map(q=>y[q])).some(function(q){return Array.isArray(q)?q.includes(S):q[S]})}function Q(S,...x){return[].concat(...x).some(function(q){let P=S.match(q);return P&&Xe(P[1])})}function Pe(S){if(S.match(_)||!S.match(/^-[^-]+/))return!1;let x=!0,V,q=S.slice(1).split("");for(let P=0;P<q.length;P++){if(V=S.slice(P+2),!Xe(q[P])){x=!1;break}if(q[P+1]&&q[P+1]==="="||V==="-"||/[A-Za-z]/.test(q[P])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(V)||q[P+1]&&q[P+1].match(/\W/))break}return x}function Te(S){return a["unknown-options-as-args"]&&j(S)}function j(S){return S=S.replace(/^-{3,}/,"--"),S.match(_)||Pe(S)?!1:!Q(S,/^-+([^=]+?)=[\s\S]*$/,v,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function we(S){return!he(S,y.bools)&&!he(S,y.counts)&&`${S}`in u?u[S]:M(me(S))}function M(S){return{[tr.BOOLEAN]:!0,[tr.STRING]:"",[tr.NUMBER]:void 0,[tr.ARRAY]:[]}[S]}function me(S){let x=tr.BOOLEAN;return he(S,y.strings)?x=tr.STRING:he(S,y.numbers)?x=tr.NUMBER:he(S,y.bools)?x=tr.BOOLEAN:he(S,y.arrays)&&(x=tr.ARRAY),x}function Ce(S){return S===void 0}function Ie(){Object.keys(y.counts).find(S=>he(S,y.arrays)?(F=Error(m("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0):he(S,y.nargs)?(F=Error(m("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(Z,W),configuration:a,defaulted:Object.assign({},g),error:F,newAliases:Object.assign({},d)}}};function kG(t){let e=[],r=Object.create(null),n=!0;for(Object.keys(t).forEach(function(i){e.push([].concat(t[i],i))});n;){n=!1;for(let i=0;i<e.length;i++)for(let s=i+1;s<e.length;s++)if(e[i].filter(function(a){return e[s].indexOf(a)!==-1}).length){e[i]=e[i].concat(e[s]),e.splice(s,1),n=!0;break}}return e.forEach(function(i){i=i.filter(function(o,a,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Td(t){return t!==void 0?t+1:1}function Ax(t){return t==="__proto__"?"___proto___":t}function NG(t){return typeof t=="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var _x=require("fs");var kd,Nd,Id,wx=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,bx=(Nd=(kd=process==null?void 0:process.versions)===null||kd===void 0?void 0:kd.node)!==null&&Nd!==void 0?Nd:(Id=process==null?void 0:process.version)===null||Id===void 0?void 0:Id.slice(1);if(bx&&Number(bx.match(/^([^.]+)/)[1])<wx)throw Error(`yargs parser supports a minimum Node.js version of ${wx}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var IG=process?process.env:{},Sx=new ec({cwd:process.cwd,env:()=>IG,format:Ex.format,normalize:tc.normalize,resolve:tc.resolve,require:t=>{if(typeof require<"u")return require(t);if(t.match(/\.json$/))return JSON.parse((0,_x.readFileSync)(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),ao=function(e,r){return Sx.parse(e.slice(),r).argv};ao.detailed=function(t,e){return Sx.parse(t.slice(),e)};ao.camelCase=kn;ao.decamelize=Qu;ao.looksLikeNumber=Zu;var $d=ao;var hr=require("path");function vx(){return $G()?0:1}function $G(){return MG()&&!process.defaultApp}function MG(){return!!process.versions.electron}function Md(t){return t.slice(vx()+1)}function Cx(){return process.argv[vx()]}var Ue=class t extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}};var Mi=require("fs"),xx=require("util"),Px=require("path"),Ox={fs:{readFileSync:Mi.readFileSync,writeFile:Mi.writeFile},format:xx.format,resolve:Px.resolve,exists:t=>{try{return(0,Mi.statSync)(t).isFile()}catch{return!1}}};var fr,Bd=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),fr.format.apply(fr.format,[this.cache[this.locale][r]||r].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),r=e.shift(),n=e.shift(),i=e.shift(),s=function(){};typeof e[e.length-1]=="function"&&(s=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),fr.format.apply(fr.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this.cache[this.locale][r]=e[r])}_taggedLiteral(e,...r){let n="";return e.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);fr.fs.writeFile(o,a,"utf-8",function(u){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),s(u)})}_readLocaleFile(){let e={},r=this._resolveLocaleFile(this.directory,this.locale);try{fr.fs.readFileSync&&(e=JSON.parse(fr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,r){let n=fr.resolve(e,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=fr.resolve(e,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(e){return fr.exists(e)}};function Rx(t,e){fr=e;let r=new Bd(t);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var BG=t=>Rx(t,Ox),Lx=BG;var WG={},jG="require is not supported by ESM",Dx="loading a directory of commands is not supported yet for ESM",uo;try{uo=(0,kx.fileURLToPath)(WG.url)}catch{uo=process.cwd()}var qG=uo.substring(0,uo.lastIndexOf("node_modules")),jd={assert:{notStrictEqual:rc.notStrictEqual,strictEqual:rc.strictEqual},cliui:Fd,findUp:mx,getEnv:t=>process.env[t],inspect:Fx.inspect,getCallerFile:()=>{throw new Ue(Dx)},getProcessArgvBin:Cx,mainFilename:qG||process.cwd(),Parser:$d,path:{basename:hr.basename,dirname:hr.dirname,extname:hr.extname,relative:hr.relative,resolve:hr.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Tx.readFileSync,require:()=>{throw new Ue(jG)},requireDirectory:()=>{throw new Ue(Dx)},stringWidth:t=>[...t].length,y18n:Lx({directory:(0,hr.resolve)(uo,"../../../locales"),updateFiles:!1})};function Rt(t,e,r,n){r.assert.notStrictEqual(t,e,n)}function qd(t,e){e.assert.strictEqual(typeof t,"string")}function Bi(t){return Object.keys(t)}function Ge(t){return!!t&&!!t.then&&typeof t.then=="function"}function ln(t){let r=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${t}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),s}var UG=["first","second","third","fourth","fifth","sixth"];function ce(t,e,r){function n(){return typeof t=="object"?[{demanded:[],optional:[]},t,e]:[ln(`cmd ${t}`),e,r]}try{let i=0,[s,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();let c=a||u.length;if(c<s.demanded.length)throw new Ue(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let f=s.demanded.length+s.optional.length;if(c>f)throw new Ue(`Too many arguments provided. Expected max ${f} but received ${c}.`);s.demanded.forEach(l=>{let p=u.shift(),d=Nx(p);l.cmd.filter(m=>m===d||m==="*").length===0&&Ix(d,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(u.length===0)return;let p=u.shift(),d=Nx(p);l.cmd.filter(m=>m===d||m==="*").length===0&&Ix(d,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function Nx(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function Ix(t,e,r){throw new Ue(`Invalid ${UG[r]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}var nc=class{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,r,n=!0,i=!1){if(ce("<array|function> [boolean] [boolean] [boolean]",[e,r,n],arguments.length),Array.isArray(e)){for(let s=0;s<e.length;s++){if(typeof e[s]!="function")throw Error("middleware must be a function");let o=e[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if(typeof e=="function"){let s=e;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),e.option=r,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let e=this.frozens.pop();e!==void 0&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}};function $x(t){return t?t.map(e=>(e.applyBeforeValidation=!1,e)):[]}function Nn(t,e,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(Ge(i))return i.then(o=>Promise.all([o,s(o,e)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,e);return Ge(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},t)}function In(t,e,r=n=>{throw n}){try{let n=GG(t)?t():t;return Ge(n)?n.then(i=>e(i)):e(n)}catch(n){return r(n)}}function GG(t){return typeof t=="function"}function Wd(t){if(typeof require>"u")return null;for(let e=0,r=Object.keys(require.cache),n;e<r.length;e++)if(n=require.cache[r[e]],n.exports===t)return n;return null}var ji=/(^\*)|(^\$0)/,Ud=class{constructor(e,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=e,this.globalMiddleware=n,this.validation=r}addDirectory(e,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,u)=>{let c=s(o,a,u);if(c){if(this.requireCache.has(a))return c;this.requireCache.add(a),this.addHandler(c)}return c},this.shim.requireDirectory({require:r,filename:n},e,i)}addHandler(e,r,n,i,s,o){let a=[],u=$x(s);if(i=i||(()=>{}),Array.isArray(e))if(HG(e))[e,...a]=e;else for(let c of e)this.addHandler(c);else if(YG(e)){let c=Array.isArray(e.command)||typeof e.command=="string"?e.command:this.moduleName(e);e.aliases&&(c=[].concat(c).concat(e.aliases)),this.addHandler(c,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);return}else if(Mx(n)){this.addHandler([e].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof e=="string"){let c=ln(e);a=a.map(p=>ln(p).cmd);let f=!1,l=[c.cmd].concat(a).filter(p=>ji.test(p)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(c.cmd=l[0],a=l.slice(1),e=e.replace(ji,c.cmd)),a.forEach(p=>{this.aliasMap[p]=c.cmd}),r!==!1&&this.usage.command(e,r,f,a,o),this.handlers[c.cmd]={original:e,description:r,handler:i,builder:n||{},middlewares:u,deprecated:o,demanded:c.demanded,optional:c.optional},f&&(this.defaultCommand=this.handlers[c.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,r,n,i,s,o){let a=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,u=r.getInternalMethods().getContext(),c=u.commands.slice(),f=!e;e&&(u.commands.push(e),u.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,c,i,s,o);return Ge(l)?l.then(p=>this.applyMiddlewareAndGetResult(f,a,p.innerArgv,u,s,p.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,u,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(e,r,n,i,s,o,a,u){let c=r.builder,f=n;if(ic(c)){n.getInternalMethods().getUsageInstance().freeze();let l=c(n.getInternalMethods().reset(i),u);if(Ge(l))return l.then(p=>(f=jx(p)?p:n,this.parseAndUpdateUsage(e,r,f,s,o,a)))}else zG(c)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,c[l])}));return this.parseAndUpdateUsage(e,r,f,s,o,a)}parseAndUpdateUsage(e,r,n,i,s,o){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return Ge(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&e.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(e,r){let n=ji.test(r.original)?r.original.replace(ji,"").trim():r.original,i=e.filter(s=>!ji.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(e,r,n,i,s,o,a,u){if(!o.getInternalMethods().getHasOutput()){let c=o.getInternalMethods().runValidation(s,u,o.parsed.error,e);n=In(n,f=>(c(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let c=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,c,!1,!1),n=Nn(n,o,a,!1),n=In(n,f=>{let l=r.handler(f);return Ge(l)?l.then(()=>f):f}),e||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),Ge(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(f=>{try{o.getInternalMethods().getUsageInstance().fail(null,f)}catch{}})}return e||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,r,n,i,s,o,a){let u={};if(s)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,a));let c=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=Nn(n,a,c,!0);return Ge(f)?f.then(l=>this.handleValidationAndGetResult(e,r,l,i,o,a,c,u)):this.handleValidationAndGetResult(e,r,f,i,o,a,c,u)}populatePositionals(e,r,n,i){r._=r._.slice(n.commands.length);let s=e.demanded.slice(0),o=e.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,a)}for(;o.length;){let u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(e.original),i),a}populatePositional(e,r,n){let i=e.cmd[0];e.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(e){let r={array:[],default:{},alias:{},demand:{}},n=ln(e);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(e,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let c of Object.keys(n.alias))s.alias[c]=(s.alias[c]||[]).concat(n.alias[c]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(c=>{r[c].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[c]=!0),o.push(`--${c}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let c=Object.keys(r);Object.keys(r).forEach(f=>{c.push(...u.aliases[f])}),Object.keys(u.argv).forEach(f=>{c.includes(f)&&(r[f]||(r[f]=u.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(e,f)&&Object.prototype.hasOwnProperty.call(u.argv,f)&&(Array.isArray(e[f])||Array.isArray(u.argv[f]))?e[f]=[].concat(e[f],u.argv[f]):e[f]=u.argv[f])})}}isDefaulted(e,r){let{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(e,r){let{configObjects:n}=e.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){let n=ji.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(ic(r))return r(e,!0);Mx(r)||Object.keys(r).forEach(n=>{e.option(n,r[n])})}moduleName(e){let r=Wd(e);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(r.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:r,desc:n}){for(let i of[e,r,n]){if(typeof i=="string"||i===!1)return i;Rt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let e=this.frozens.pop();Rt(e,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function Bx(t,e,r,n){return new Ud(t,e,r,n)}function Mx(t){return typeof t=="object"&&!!t.builder&&typeof t.handler=="function"}function HG(t){return t.every(e=>typeof e=="string")}function ic(t){return typeof t=="function"}function zG(t){return typeof t=="object"}function YG(t){return typeof t=="object"&&!Array.isArray(t)}function fn(t={},e=()=>!0){let r={};return Bi(t).forEach(n=>{e(n,t[n])&&(r[n]=t[n])}),r}function hn(t){typeof process>"u"||[process.stdout,process.stderr].forEach(e=>{let r=e;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(t)})}function VG(t){return typeof t=="boolean"}function Wx(t,e){let r=e.y18n.__,n={},i=[];n.failFn=function(T){i.push(T)};let s=null,o=null,a=!0;n.showHelpOnFail=function(T=!0,N){let[re,C]=typeof T=="string"?[!0,T]:[T,N];return t.getInternalMethods().isGlobalContext()&&(o=C),s=C,a=re,n};let u=!1;n.fail=function(T,N){let re=t.getInternalMethods().getLoggerInstance();if(i.length)for(let C=i.length-1;C>=0;--C){let R=i[C];if(VG(R)){if(N)throw N;if(T)throw Error(T)}else R(T,N,n)}else{if(t.getExitProcess()&&hn(!0),!u){u=!0,a&&(t.showHelp("error"),re.error()),(T||N)&&re.error(T||N);let C=s||o;C&&((T||N)&&re.error(""),re.error(C))}if(N=N||new Ue(T),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,N);throw N}};let c=[],f=!1;n.usage=(b,T)=>b===null?(f=!0,c=[],n):(f=!1,c.push([b,T||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(b,T)=>{l.push([b,T||""])};let p=[];n.command=function(T,N,re,C,R=!1){re&&(p=p.map(de=>(de[2]=!1,de))),p.push([T,N||"",re,C,R])},n.getCommands=()=>p;let d={};n.describe=function(T,N){Array.isArray(T)?T.forEach(re=>{n.describe(re,N)}):typeof T=="object"?Object.keys(T).forEach(re=>{n.describe(re,T[re])}):d[T]=N},n.getDescriptions=()=>d;let g=[];n.epilog=b=>{g.push(b)};let m=!1,y;n.wrap=b=>{m=!0,y=b},n.getWrap=()=>e.getEnv("YARGS_DISABLE_WRAP")?null:(m||(y=X(),m=!0),y);let _="__yargsString__:";n.deferY18nLookup=b=>_+b,n.help=function(){if(k)return k;F();let T=t.customScriptName?t.$0:e.path.basename(t.$0),N=t.getDemandedOptions(),re=t.getDemandedCommands(),C=t.getDeprecatedOptions(),R=t.getGroups(),de=t.getOptions(),$=[];$=$.concat(Object.keys(d)),$=$.concat(Object.keys(N)),$=$.concat(Object.keys(re)),$=$.concat(Object.keys(de.default)),$=$.filter(Z),$=Object.keys($.reduce((Q,Pe)=>(Pe!=="_"&&(Q[Pe]=!0),Q),{}));let De=n.getWrap(),_e=e.cliui({width:De,wrap:!!De});if(!f){if(c.length)c.forEach(Q=>{_e.div({text:`${Q[0].replace(/\$0/g,T)}`}),Q[1]&&_e.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),_e.div();else if(p.length){let Q=null;re._?Q=`${T} <${r("command")}>
106
+ `:Q=`${T} [${r("command")}]
107
+ `,_e.div(`${Q}`)}}if(p.length>1||p.length===1&&!p[0][2]){_e.div(r("Commands:"));let Q=t.getInternalMethods().getContext(),Pe=Q.commands.length?`${Q.commands.join(" ")} `:"";t.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(p=p.sort((j,we)=>j[0].localeCompare(we[0])));let Te=T?`${T} `:"";p.forEach(j=>{let we=`${Te}${Pe}${j[0].replace(/^\$0 ?/,"")}`;_e.span({text:we,padding:[0,2,0,2],width:v(p,De,`${T}${Pe}`)+4},{text:j[1]});let M=[];j[2]&&M.push(`[${r("default")}]`),j[3]&&j[3].length&&M.push(`[${r("aliases:")} ${j[3].join(", ")}]`),j[4]&&(typeof j[4]=="string"?M.push(`[${r("deprecated: %s",j[4])}]`):M.push(`[${r("deprecated")}]`)),M.length?_e.div({text:M.join(" "),padding:[0,0,0,2],align:"right"}):_e.div()}),_e.div()}let Fe=(Object.keys(de.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);$=$.filter(Q=>!t.parsed.newAliases[Q]&&Fe.every(Pe=>(de.alias[Pe]||[]).indexOf(Q)===-1));let Me=r("Options:");R[Me]||(R[Me]=[]),W($,de.alias,R,Me);let st=Q=>/^--/.test(sc(Q)),he=Object.keys(R).filter(Q=>R[Q].length>0).map(Q=>{let Pe=R[Q].filter(Z).map(Te=>{if(Fe.includes(Te))return Te;for(let j=0,we;(we=Fe[j])!==void 0;j++)if((de.alias[we]||[]).includes(Te))return we;return Te});return{groupName:Q,normalizedKeys:Pe}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:Pe})=>{let Te=Pe.reduce((j,we)=>(j[we]=[we].concat(de.alias[we]||[]).map(M=>Q===n.getPositionalGroupName()?M:(/^[0-9]$/.test(M)?de.boolean.includes(we)?"-":"--":M.length>1?"--":"-")+M).sort((M,me)=>st(M)===st(me)?0:st(M)?1:-1).join(", "),j),{});return{groupName:Q,normalizedKeys:Pe,switches:Te}});if(he.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:Pe})=>!Q.every(Te=>st(Pe[Te])))&&he.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:Pe})=>{Q.forEach(Te=>{st(Pe[Te])&&(Pe[Te]=KG(Pe[Te],4))})}),he.forEach(({groupName:Q,normalizedKeys:Pe,switches:Te})=>{_e.div(Q),Pe.forEach(j=>{let we=Te[j],M=d[j]||"",me=null;M.includes(_)&&(M=r(M.substring(_.length))),de.boolean.includes(j)&&(me=`[${r("boolean")}]`),de.count.includes(j)&&(me=`[${r("count")}]`),de.string.includes(j)&&(me=`[${r("string")}]`),de.normalize.includes(j)&&(me=`[${r("string")}]`),de.array.includes(j)&&(me=`[${r("array")}]`),de.number.includes(j)&&(me=`[${r("number")}]`);let Ce=x=>typeof x=="string"?`[${r("deprecated: %s",x)}]`:`[${r("deprecated")}]`,Ie=[j in C?Ce(C[j]):null,me,j in N?`[${r("required")}]`:null,de.choices&&de.choices[j]?`[${r("choices:")} ${n.stringifiedValues(de.choices[j])}]`:null,ee(de.default[j],de.defaultDescription[j])].filter(Boolean).join(" ");_e.span({text:sc(we),padding:[0,2,0,2+qx(we)],width:v(Te,De)+4},M);let S=t.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Ie&&!S?_e.div({text:Ie,padding:[0,0,0,2],align:"right"}):_e.div()}),_e.div()}),l.length&&(_e.div(r("Examples:")),l.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,T)}),l.forEach(Q=>{Q[1]===""?_e.div({text:Q[0],padding:[0,2,0,2]}):_e.div({text:Q[0],padding:[0,2,0,2],width:v(l,De)+4},{text:Q[1]})}),_e.div()),g.length>0){let Q=g.map(Pe=>Pe.replace(/\$0/g,T)).join(`
108
+ `);_e.div(`${Q}
109
+ `)}return _e.toString().replace(/\s*$/,"")};function v(b,T,N){let re=0;return Array.isArray(b)||(b=Object.values(b).map(C=>[C])),b.forEach(C=>{re=Math.max(e.stringWidth(N?`${N} ${sc(C[0])}`:sc(C[0]))+qx(C[0]),re)}),T&&(re=Math.min(re,parseInt((T*.5).toString(),10))),re}function F(){let b=t.getDemandedOptions(),T=t.getOptions();(Object.keys(T.alias)||[]).forEach(N=>{T.alias[N].forEach(re=>{d[re]&&n.describe(N,d[re]),re in b&&t.demandOption(N,b[re]),T.boolean.includes(re)&&t.boolean(N),T.count.includes(re)&&t.count(N),T.string.includes(re)&&t.string(N),T.normalize.includes(re)&&t.normalize(N),T.array.includes(re)&&t.array(N),T.number.includes(re)&&t.number(N)})})}let k;n.cacheHelpMessage=function(){k=this.help()},n.clearCachedHelpMessage=function(){k=void 0},n.hasCachedHelpMessage=function(){return!!k};function W(b,T,N,re){let C=[],R=null;return Object.keys(N).forEach(de=>{C=C.concat(N[de])}),b.forEach(de=>{R=[de].concat(T[de]),R.some($=>C.indexOf($)!==-1)||N[re].push(de)}),C}function Z(b){return t.getOptions().hiddenOptions.indexOf(b)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}n.showHelp=b=>{let T=t.getInternalMethods().getLoggerInstance();b||(b="error"),(typeof b=="function"?b:T[b])(n.help())},n.functionDescription=b=>["(",b.name?e.Parser.decamelize(b.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(T,N){let re="",C=N||", ",R=[].concat(T);return!T||!R.length||R.forEach(de=>{re.length&&(re+=C),re+=JSON.stringify(de)}),re};function ee(b,T){let N=`[${r("default:")} `;if(b===void 0&&!T)return null;if(T)N+=T;else switch(typeof b){case"string":N+=`"${b}"`;break;case"object":N+=JSON.stringify(b);break;default:N+=b}return`${N}]`}function X(){return e.process.stdColumns?Math.min(80,e.process.stdColumns):80}let te=null;n.version=b=>{te=b},n.showVersion=b=>{let T=t.getInternalMethods().getLoggerInstance();b||(b="error"),(typeof b=="function"?b:T[b])(te)},n.reset=function(T){return s=null,u=!1,c=[],f=!1,g=[],l=[],p=[],d=fn(d,N=>!T[N]),n};let L=[];return n.freeze=function(){L.push({failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:g,examples:l,commands:p,descriptions:d})},n.unfreeze=function(T=!1){let N=L.pop();N&&(T?(d={...N.descriptions,...d},p=[...N.commands,...p],c=[...N.usages,...c],l=[...N.examples,...l],g=[...N.epilogs,...g]):{failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:g,examples:l,commands:p,descriptions:d}=N)},n}function Gd(t){return typeof t=="object"}function KG(t,e){return Gd(t)?{text:t.text,indentation:t.indentation+e}:{text:t,indentation:e}}function qx(t){return Gd(t)?t.indentation:0}function sc(t){return Gd(t)?t.text:t}var Ux=`###-begin-{{app_name}}-completions-###
112
110
  #
113
111
  # yargs command completion script
114
112
  #
@@ -136,7 +134,7 @@ _{{app_name}}_yargs_completions()
136
134
  }
137
135
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
138
136
  ###-end-{{app_name}}-completions-###
139
- `,NP=`#compdef {{app_name}}
137
+ `,Gx=`#compdef {{app_name}}
140
138
  ###-begin-{{app_name}}-completions-###
141
139
  #
142
140
  # yargs command completion script
@@ -155,14 +153,14 @@ _{{app_name}}_yargs_completions()
155
153
  }
156
154
  compdef _{{app_name}}_yargs_completions {{app_name}}
157
155
  ###-end-{{app_name}}-completions-###
158
- `;var eg=class{constructor(t,r,n,i){var s,o,a;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let a=0,u=t.length;a<u;++a)if(s[t[a]]&&s[t[a]].builder){let c=s[t[a]].builder;if(rc(c)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return c(f,!0),f.argv}}let o=[];this.commandCompletions(o,t,n),this.optionCompletions(o,t,r,n),this.choicesFromOptionsCompletions(o,t,r,n),this.choicesFromPositionalsCompletions(o,t,r,n),i(null,o)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let o=Jr(s[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)t.push(o);else{let a=s[1]||"";t.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(a=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,u)&&this.completeOptionKey(a,t,i,u&&!!s.default[a])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=s[n._.length-o-1];if(!a)return;let u=this.yargs.getOptions().choices[a]||[];for(let c of u)c.startsWith(i)&&t.push(c.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),o=[i,...this.yargs.getAliases()[i]||[]],a;for(let u of o)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){a=s.choices[u];break}if(a)return a.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,o,a,u;let c=t;if(this.zshShell){let p=this.usage.getDescriptions(),d=(o=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||o===void 0?void 0:o.find(b=>{let _=p[b];return typeof _=="string"&&_.length>0}),g=d?p[d]:void 0,m=(u=(a=p[t])!==null&&a!==void 0?a:g)!==null&&u!==void 0?u:"";c=`${t.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let f=p=>/^--/.test(p),l=p=>/^[^0-9]$/.test(p),h=!f(n)&&l(t)?"-":"--";r.push(h+c),i&&r.push(h+"no-"+c)}customCompletion(t,r,n,i){if(pt(this.customCompletionFunction,null,this.shim),Y8(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return ve(s)?s.then(o=>{this.shim.process.nextTick(()=>{i(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{i(o,void 0)})}):i(null,s)}else return V8(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?o=>this.customCompletion(t,o,n,r):o=>this.defaultCompletion(t,o,n,r);return ve(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?NP:kP,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function IP(e,t,r,n){return new eg(e,t,r,n)}function Y8(e){return e.length<3}function V8(e){return e.length>3}function $P(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}var BP=["$0","--","_"];function MP(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(l){let h=e.getDemandedCommands(),d=l._.length+(l["--"]?l["--"].length:0)-e.getInternalMethods().getContext().commands.length;h._&&(d<h._.min||d>h._.max)&&(d<h._.min?h._.minMsg!==void 0?t.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,d.toString()).replace(/\$1/,h._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d.toString(),h._.min.toString())):d>h._.max&&(h._.maxMsg!==void 0?t.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,d.toString()).replace(/\$1/,h._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",d,d.toString(),h._.max.toString()))))},s.positionalCount=function(l,h){h<l&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",l+""))},s.requiredArguments=function(l,h){let p=null;for(let d of Object.keys(h))(!Object.prototype.hasOwnProperty.call(l,d)||typeof l[d]>"u")&&(p=p||{},p[d]=h[d]);if(p){let d=[];for(let m of Object.keys(p)){let b=p[m];b&&d.indexOf(b)<0&&d.push(b)}let g=d.length?`
159
- ${d.join(`
160
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(p).length,Object.keys(p).join(", ")+g))}},s.unknownArguments=function(l,h,p,d,g=!0){var m;let b=e.getInternalMethods().getCommandInstance().getCommands(),_=[],P=e.getInternalMethods().getContext();if(Object.keys(l).forEach(F=>{!BP.includes(F)&&!Object.prototype.hasOwnProperty.call(p,F)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),F)&&!s.isValidAndSomeAliasIsNotNew(F,h)&&_.push(F)}),g&&(P.commands.length>0||b.length>0||d)&&l._.slice(P.commands.length).forEach(F=>{b.includes(""+F)||_.push(""+F)}),g){let k=((m=e.getDemandedCommands()._)===null||m===void 0?void 0:m.max)||0,q=P.commands.length+k;q<l._.length&&l._.slice(q).forEach(M=>{M=String(M),!P.commands.includes(M)&&!_.includes(M)&&_.push(M)})}_.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",_.length,_.map(F=>F.trim()?F:`"${F}"`).join(", ")))},s.unknownCommands=function(l){let h=e.getInternalMethods().getCommandInstance().getCommands(),p=[],d=e.getInternalMethods().getContext();return(d.commands.length>0||h.length>0)&&l._.slice(d.commands.length).forEach(g=>{h.includes(""+g)||p.push(""+g)}),p.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",p.length,p.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(l,h){if(!Object.prototype.hasOwnProperty.call(h,l))return!1;let p=e.parsed.newAliases;return[l,...h[l]].some(d=>!Object.prototype.hasOwnProperty.call(p,d)||!p[l])},s.limitedChoices=function(l){let h=e.getOptions(),p={};if(!Object.keys(h.choices).length)return;Object.keys(l).forEach(m=>{BP.indexOf(m)===-1&&Object.prototype.hasOwnProperty.call(h.choices,m)&&[].concat(l[m]).forEach(b=>{h.choices[m].indexOf(b)===-1&&b!==void 0&&(p[m]=(p[m]||[]).concat(b))})});let d=Object.keys(p);if(!d.length)return;let g=n("Invalid values:");d.forEach(m=>{g+=`
161
- ${n("Argument: %s, Given: %s, Choices: %s",m,t.stringifiedValues(p[m]),t.stringifiedValues(h.choices[m]))}`}),t.fail(g)};let o={};s.implies=function(l,h){z("<string|object> [array|number|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(p=>{s.implies(p,l[p])}):(e.global(l),o[l]||(o[l]=[]),Array.isArray(h)?h.forEach(p=>s.implies(l,p)):(pt(h,void 0,r),o[l].push(h)))},s.getImplied=function(){return o};function a(f,l){let h=Number(l);return l=isNaN(h)?l:h,typeof l=="number"?l=f._.length>=l:l.match(/^--no-.+/)?(l=l.match(/^--no-(.+)/)[1],l=!Object.prototype.hasOwnProperty.call(f,l)):l=Object.prototype.hasOwnProperty.call(f,l),l}s.implications=function(l){let h=[];if(Object.keys(o).forEach(p=>{let d=p;(o[p]||[]).forEach(g=>{let m=d,b=g;m=a(l,m),g=a(l,g),m&&!g&&h.push(` ${d} -> ${b}`)})}),h.length){let p=`${n("Implications failed:")}
162
- `;h.forEach(d=>{p+=d}),t.fail(p)}};let u={};s.conflicts=function(l,h){z("<string|object> [array|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(p=>{s.conflicts(p,l[p])}):(e.global(l),u[l]||(u[l]=[]),Array.isArray(h)?h.forEach(p=>s.conflicts(l,p)):u[l].push(h))},s.getConflicting=()=>u,s.conflicting=function(l){Object.keys(l).forEach(h=>{u[h]&&u[h].forEach(p=>{p&&l[h]!==void 0&&l[p]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,p))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(h=>{u[h].forEach(p=>{p&&l[r.Parser.camelCase(h)]!==void 0&&l[r.Parser.camelCase(p)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,p))})})},s.recommendCommands=function(l,h){h=h.sort((m,b)=>b.length-m.length);let d=null,g=1/0;for(let m=0,b;(b=h[m])!==void 0;m++){let _=$P(l,b);_<=3&&_<g&&(g=_,d=b)}d&&t.fail(n("Did you mean %s?",d))},s.reset=function(l){return o=Qr(o,h=>!l[h]),u=Qr(u,h=>!l[h]),s};let c=[];return s.freeze=function(){c.push({implied:o,conflicting:u})},s.unfreeze=function(){let l=c.pop();pt(l,void 0,r),{implied:o,conflicting:u}=l},s}var tg=[],io;function so(e,t,r,n){io=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),o=null;if(s)o=X8(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}K8(o),tg.push(o),i=s?JSON.parse(io.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=so(i,io.path.dirname(o),r,io)}return tg=[],r?jP(i,e):Object.assign({},i,e)}function K8(e){if(tg.indexOf(e)>-1)throw new _e(`Circular extended configurations: '${e}'.`)}function X8(e,t){return io.path.resolve(e,t)}function jP(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=jP(e[i],t[i]):r[i]=t[i];return r}var Y=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},y=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},De,Pn,oo,qt,Pt,ic,en,On,sc,Wt,oc,Ut,lr,Ot,Gt,ac,Ni,He,J,uc,cc,Rt,Rn,Ii,Fn,tn,lc,oe,Ln,Dn,Tn,ue,fc,fr,Oe;function oO(e){return(t=[],r=e.process.cwd(),n)=>{let i=new hg(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var qP=Symbol("copyDoubleDash"),WP=Symbol("copyDoubleDash"),rg=Symbol("deleteFromParserHintObject"),UP=Symbol("emitWarning"),GP=Symbol("freeze"),HP=Symbol("getDollarZero"),kn=Symbol("getParserConfiguration"),zP=Symbol("getUsageConfiguration"),ng=Symbol("guessLocale"),YP=Symbol("guessVersion"),VP=Symbol("parsePositionalNumbers"),ig=Symbol("pkgUp"),rn=Symbol("populateParserHintArray"),$i=Symbol("populateParserHintSingleValueDictionary"),sg=Symbol("populateParserHintArrayDictionary"),og=Symbol("populateParserHintDictionary"),ag=Symbol("sanitizeKey"),ug=Symbol("setKey"),cg=Symbol("unfreeze"),KP=Symbol("validateAsync"),XP=Symbol("getCommandInstance"),JP=Symbol("getContext"),QP=Symbol("getHasOutput"),ZP=Symbol("getLoggerInstance"),eO=Symbol("getParseContext"),tO=Symbol("getUsageInstance"),rO=Symbol("getValidationInstance"),hc=Symbol("hasParseCallback"),nO=Symbol("isGlobalContext"),Nn=Symbol("postProcess"),iO=Symbol("rebase"),lg=Symbol("reset"),ao=Symbol("runYargsParserAndExecuteCommands"),fg=Symbol("runValidation"),sO=Symbol("setHasOutput"),In=Symbol("kTrackManuallySetKeys"),hg=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,De.set(this,void 0),Pn.set(this,void 0),oo.set(this,{commands:[],fullCommands:[]}),qt.set(this,null),Pt.set(this,null),ic.set(this,"show-hidden"),en.set(this,null),On.set(this,!0),sc.set(this,{}),Wt.set(this,!0),oc.set(this,[]),Ut.set(this,void 0),lr.set(this,{}),Ot.set(this,!1),Gt.set(this,null),ac.set(this,!0),Ni.set(this,void 0),He.set(this,""),J.set(this,void 0),uc.set(this,void 0),cc.set(this,{}),Rt.set(this,null),Rn.set(this,null),Ii.set(this,{}),Fn.set(this,{}),tn.set(this,void 0),lc.set(this,!1),oe.set(this,void 0),Ln.set(this,!1),Dn.set(this,!1),Tn.set(this,!1),ue.set(this,void 0),fc.set(this,{}),fr.set(this,null),Oe.set(this,void 0),Y(this,oe,i,"f"),Y(this,tn,t,"f"),Y(this,Pn,r,"f"),Y(this,uc,n,"f"),Y(this,Ut,new tc(this),"f"),this.$0=this[HP](),this[lg](),Y(this,De,y(this,De,"f"),"f"),Y(this,ue,y(this,ue,"f"),"f"),Y(this,Oe,y(this,Oe,"f"),"f"),Y(this,J,y(this,J,"f"),"f"),y(this,J,"f").showHiddenOpt=y(this,ic,"f"),Y(this,Ni,this[WP](),"f")}addHelpOpt(t,r){let n="help";return z("[string|boolean] [string]",[t,r],arguments.length),y(this,Gt,"f")&&(this[rg](y(this,Gt,"f")),Y(this,Gt,null,"f")),t===!1&&r===void 0?this:(Y(this,Gt,typeof t=="string"?t:n,"f"),this.boolean(y(this,Gt,"f")),this.describe(y(this,Gt,"f"),r||y(this,ue,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(z("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:y(this,ic,"f");return this.boolean(n),this.describe(n,r||y(this,ue,"f").deferY18nLookup("Show hidden options")),y(this,J,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return z("<object|string|array> [string|array]",[t,r],arguments.length),this[sg](this.alias.bind(this),"alias",t,r),this}array(t){return z("<array|string>",[t],arguments.length),this[rn]("array",t),this[In](t),this}boolean(t){return z("<array|string>",[t],arguments.length),this[rn]("boolean",t),this[In](t),this}check(t,r){return z("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>xn(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&y(this,ue,"f").fail(s.toString(),s):y(this,ue,"f").fail(y(this,oe,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(y(this,ue,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return z("<object|string|array> [string|array]",[t,r],arguments.length),this[sg](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(z("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new _e("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new _e("coerce callback must be provided");return y(this,J,"f").key[t]=!0,y(this,Ut,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?xn(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let c of s[t])n[c]=a;return n},a=>{throw new _e(a.message)}):n},t),this}conflicts(t,r){return z("<string|object> [string|array]",[t,r],arguments.length),y(this,Oe,"f").conflicts(t,r),this}config(t="config",r,n){return z("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=so(t,y(this,Pn,"f"),this[kn]()["deep-merge-config"]||!1,y(this,oe,"f")),y(this,J,"f").configObjects=(y(this,J,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||y(this,ue,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{y(this,J,"f").config[i]=n||!0}),this)}completion(t,r,n){return z("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),Y(this,Pt,t||y(this,Pt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(y(this,Pt,"f"),r),n&&y(this,qt,"f").registerFunction(n),this}command(t,r,n,i,s,o){return z("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,o],arguments.length),y(this,De,"f").addHandler(t,r,n,i,s,o),this}commands(t,r,n,i,s,o){return this.command(t,r,n,i,s,o)}commandDir(t,r){z("<string> [object]",[t,r],arguments.length);let n=y(this,uc,"f")||y(this,oe,"f").require;return y(this,De,"f").addDirectory(t,n,y(this,oe,"f").getCallerFile(),r),this}count(t){return z("<array|string>",[t],arguments.length),this[rn]("count",t),this[In](t),this}default(t,r,n){return z("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Xd(t,y(this,oe,"f")),y(this,J,"f").defaultDescription[t]=n),typeof r=="function"&&(Xd(t,y(this,oe,"f")),y(this,J,"f").defaultDescription[t]||(y(this,J,"f").defaultDescription[t]=y(this,ue,"f").functionDescription(r)),r=r.call()),this[$i](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return z("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),y(this,J,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{pt(n,!0,y(this,oe,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(pt(n,!0,y(this,oe,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{pt(n,!0,y(this,oe,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return z("<object|string|array> [string]",[t,r],arguments.length),this[$i](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return z("<string> [string|boolean]",[t,r],arguments.length),y(this,J,"f").deprecatedOptions[t]=r,this}describe(t,r){return z("<object|string|array> [string]",[t,r],arguments.length),this[ug](t,!0),y(this,ue,"f").describe(t,r),this}detectLocale(t){return z("<boolean>",[t],arguments.length),Y(this,On,t,"f"),this}env(t){return z("[string|boolean]",[t],arguments.length),t===!1?delete y(this,J,"f").envPrefix:y(this,J,"f").envPrefix=t||"",this}epilogue(t){return z("<string>",[t],arguments.length),y(this,ue,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return z("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):y(this,ue,"f").example(t,r),this}exit(t,r){Y(this,Ot,!0,"f"),Y(this,en,r,"f"),y(this,Wt,"f")&&y(this,oe,"f").process.exit(t)}exitProcess(t=!0){return z("[boolean]",[t],arguments.length),Y(this,Wt,t,"f"),this}fail(t){if(z("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new _e("Invalid first argument. Expected function or boolean 'false'");return y(this,ue,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return z("<array> [function]",[t,r],arguments.length),r?y(this,qt,"f").getCompletion(t,r):new Promise((n,i)=>{y(this,qt,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return z([],0),y(this,J,"f").demandedOptions}getDemandedCommands(){return z([],0),y(this,J,"f").demandedCommands}getDeprecatedOptions(){return z([],0),y(this,J,"f").deprecatedOptions}getDetectLocale(){return y(this,On,"f")}getExitProcess(){return y(this,Wt,"f")}getGroups(){return Object.assign({},y(this,lr,"f"),y(this,Fn,"f"))}getHelp(){if(Y(this,Ot,!0,"f"),!y(this,ue,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ao](y(this,tn,"f"),void 0,void 0,0,!0);if(ve(r))return r.then(()=>y(this,ue,"f").help())}let t=y(this,De,"f").runDefaultBuilderOn(this);if(ve(t))return t.then(()=>y(this,ue,"f").help())}return Promise.resolve(y(this,ue,"f").help())}getOptions(){return y(this,J,"f")}getStrict(){return y(this,Ln,"f")}getStrictCommands(){return y(this,Dn,"f")}getStrictOptions(){return y(this,Tn,"f")}global(t,r){return z("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?y(this,J,"f").local=y(this,J,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{y(this,J,"f").local.includes(n)||y(this,J,"f").local.push(n)}),this}group(t,r){z("<string|array> <string>",[t,r],arguments.length);let n=y(this,Fn,"f")[r]||y(this,lr,"f")[r];y(this,Fn,"f")[r]&&delete y(this,Fn,"f")[r];let i={};return y(this,lr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return z("<string>",[t],arguments.length),y(this,J,"f").hiddenOptions.push(t),this}implies(t,r){return z("<string|object> [number|string|array]",[t,r],arguments.length),y(this,Oe,"f").implies(t,r),this}locale(t){return z("[string]",[t],arguments.length),t===void 0?(this[ng](),y(this,oe,"f").y18n.getLocale()):(Y(this,On,!1,"f"),y(this,oe,"f").y18n.setLocale(t),this)}middleware(t,r,n){return y(this,Ut,"f").addMiddleware(t,!!r,n)}nargs(t,r){return z("<string|object|array> [number]",[t,r],arguments.length),this[$i](this.nargs.bind(this),"narg",t,r),this}normalize(t){return z("<array|string>",[t],arguments.length),this[rn]("normalize",t),this}number(t){return z("<array|string>",[t],arguments.length),this[rn]("number",t),this[In](t),this}option(t,r){if(z("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[In](t),y(this,fr,"f")&&(t==="version"||r?.alias==="version")&&this[UP](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
163
- `),void 0,"versionWarning"),y(this,J,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(y(this,J,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=y(this,ue,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){z("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[GP](),typeof t>"u"&&(t=y(this,tn,"f")),typeof r=="object"&&(Y(this,Rn,r,"f"),r=n),typeof r=="function"&&(Y(this,Rt,r,"f"),r=!1),r||Y(this,tn,t,"f"),y(this,Rt,"f")&&Y(this,Wt,!1,"f");let i=this[ao](t,!!r),s=this.parsed;return y(this,qt,"f").setParsed(this.parsed),ve(i)?i.then(o=>(y(this,Rt,"f")&&y(this,Rt,"f").call(this,y(this,en,"f"),o,y(this,He,"f")),o)).catch(o=>{throw y(this,Rt,"f")&&y(this,Rt,"f")(o,this.parsed.argv,y(this,He,"f")),o}).finally(()=>{this[cg](),this.parsed=s}):(y(this,Rt,"f")&&y(this,Rt,"f").call(this,y(this,en,"f"),i,y(this,He,"f")),this[cg](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return ve(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(ve(i))throw new _e(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return z("<object>",[t],arguments.length),Y(this,cc,t,"f"),this}pkgConf(t,r){z("<string> [string]",[t,r],arguments.length);let n=null,i=this[ig](r||y(this,Pn,"f"));return i[t]&&typeof i[t]=="object"&&(n=so(i[t],r||y(this,Pn,"f"),this[kn]()["deep-merge-config"]||!1,y(this,oe,"f")),y(this,J,"f").configObjects=(y(this,J,"f").configObjects||[]).concat(n)),this}positional(t,r){z("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=Qr(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=y(this,oo,"f").fullCommands[y(this,oo,"f").fullCommands.length-1],s=i?y(this,De,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Ti(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(t)!==-1&&(r[o]=!0):a[t]&&!(o in r)&&(r[o]=a[t])}),this.group(t,y(this,ue,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return z("[boolean]",[t],arguments.length),Y(this,lc,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return z("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&y(this,J,"f").narg[t]?this:(this[$i](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return z("[string] [string]",[t,r],arguments.length),t=t||this.$0,y(this,Ni,"f").log(y(this,qt,"f").generateCompletionScript(t,r||y(this,Pt,"f")||"completion")),this}showHelp(t){if(z("[string|function]",[t],arguments.length),Y(this,Ot,!0,"f"),!y(this,ue,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ao](y(this,tn,"f"),void 0,void 0,0,!0);if(ve(n))return n.then(()=>{y(this,ue,"f").showHelp(t)}),this}let r=y(this,De,"f").runDefaultBuilderOn(this);if(ve(r))return r.then(()=>{y(this,ue,"f").showHelp(t)}),this}return y(this,ue,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return z("[boolean|string] [string]",[t,r],arguments.length),y(this,ue,"f").showHelpOnFail(t,r),this}showVersion(t){return z("[string|function]",[t],arguments.length),y(this,ue,"f").showVersion(t),this}skipValidation(t){return z("<array|string>",[t],arguments.length),this[rn]("skipValidation",t),this}strict(t){return z("[boolean]",[t],arguments.length),Y(this,Ln,t!==!1,"f"),this}strictCommands(t){return z("[boolean]",[t],arguments.length),Y(this,Dn,t!==!1,"f"),this}strictOptions(t){return z("[boolean]",[t],arguments.length),Y(this,Tn,t!==!1,"f"),this}string(t){return z("<array|string>",[t],arguments.length),this[rn]("string",t),this[In](t),this}terminalWidth(){return z([],0),y(this,oe,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return z("<object>",[t],arguments.length),Y(this,On,!1,"f"),y(this,oe,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(z("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(pt(t,null,y(this,oe,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new _e(".usage() description must start with $0 if being used as alias for .command()")}else return y(this,ue,"f").usage(t),this}usageConfiguration(t){return z("<object>",[t],arguments.length),Y(this,fc,t,"f"),this}version(t,r,n){let i="version";if(z("[boolean|string] [string] [string]",[t,r,n],arguments.length),y(this,fr,"f")&&(this[rg](y(this,fr,"f")),y(this,ue,"f").version(void 0),Y(this,fr,null,"f")),arguments.length===0)n=this[YP](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return Y(this,fr,typeof t=="string"?t:i,"f"),r=r||y(this,ue,"f").deferY18nLookup("Show version number"),y(this,ue,"f").version(n||void 0),this.boolean(y(this,fr,"f")),this.describe(y(this,fr,"f"),r),this}wrap(t){return z("<number|null|undefined>",[t],arguments.length),y(this,ue,"f").wrap(t),this}[(De=new WeakMap,Pn=new WeakMap,oo=new WeakMap,qt=new WeakMap,Pt=new WeakMap,ic=new WeakMap,en=new WeakMap,On=new WeakMap,sc=new WeakMap,Wt=new WeakMap,oc=new WeakMap,Ut=new WeakMap,lr=new WeakMap,Ot=new WeakMap,Gt=new WeakMap,ac=new WeakMap,Ni=new WeakMap,He=new WeakMap,J=new WeakMap,uc=new WeakMap,cc=new WeakMap,Rt=new WeakMap,Rn=new WeakMap,Ii=new WeakMap,Fn=new WeakMap,tn=new WeakMap,lc=new WeakMap,oe=new WeakMap,Ln=new WeakMap,Dn=new WeakMap,Tn=new WeakMap,ue=new WeakMap,fc=new WeakMap,fr=new WeakMap,Oe=new WeakMap,qP)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[WP](){return{log:(...t)=>{this[hc]()||console.log(...t),Y(this,Ot,!0,"f"),y(this,He,"f").length&&Y(this,He,y(this,He,"f")+`
164
- `,"f"),Y(this,He,y(this,He,"f")+t.join(" "),"f")},error:(...t)=>{this[hc]()||console.error(...t),Y(this,Ot,!0,"f"),y(this,He,"f").length&&Y(this,He,y(this,He,"f")+`
165
- `,"f"),Y(this,He,y(this,He,"f")+t.join(" "),"f")}}}[rg](t){Ti(y(this,J,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=y(this,J,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete y(this,ue,"f").getDescriptions()[t]}[UP](t,r,n){y(this,sc,"f")[n]||(y(this,oe,"f").process.emitWarning(t,r),y(this,sc,"f")[n]=!0)}[GP](){y(this,oc,"f").push({options:y(this,J,"f"),configObjects:y(this,J,"f").configObjects.slice(0),exitProcess:y(this,Wt,"f"),groups:y(this,lr,"f"),strict:y(this,Ln,"f"),strictCommands:y(this,Dn,"f"),strictOptions:y(this,Tn,"f"),completionCommand:y(this,Pt,"f"),output:y(this,He,"f"),exitError:y(this,en,"f"),hasOutput:y(this,Ot,"f"),parsed:this.parsed,parseFn:y(this,Rt,"f"),parseContext:y(this,Rn,"f")}),y(this,ue,"f").freeze(),y(this,Oe,"f").freeze(),y(this,De,"f").freeze(),y(this,Ut,"f").freeze()}[HP](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(y(this,oe,"f").process.argv()[0])?r=y(this,oe,"f").process.argv().slice(1,2):r=y(this,oe,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[iO](y(this,Pn,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),y(this,oe,"f").getEnv("_")&&y(this,oe,"f").getProcessArgvBin()===y(this,oe,"f").getEnv("_")&&(t=y(this,oe,"f").getEnv("_").replace(`${y(this,oe,"f").path.dirname(y(this,oe,"f").process.execPath())}/`,"")),t}[kn](){return y(this,cc,"f")}[zP](){return y(this,fc,"f")}[ng](){if(!y(this,On,"f"))return;let t=y(this,oe,"f").getEnv("LC_ALL")||y(this,oe,"f").getEnv("LC_MESSAGES")||y(this,oe,"f").getEnv("LANG")||y(this,oe,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[YP](){return this[ig]().version||"unknown"}[VP](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)y(this,oe,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[ig](t){let r=t||"*";if(y(this,Ii,"f")[r])return y(this,Ii,"f")[r];let n={};try{let i=t||y(this,oe,"f").mainFilename;!t&&y(this,oe,"f").path.extname(i)&&(i=y(this,oe,"f").path.dirname(i));let s=y(this,oe,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});pt(s,void 0,y(this,oe,"f")),n=JSON.parse(y(this,oe,"f").readFileSync(s,"utf8"))}catch{}return y(this,Ii,"f")[r]=n||{},y(this,Ii,"f")[r]}[rn](t,r){r=[].concat(r),r.forEach(n=>{n=this[ag](n),y(this,J,"f")[t].push(n)})}[$i](t,r,n,i){this[og](t,r,n,i,(s,o,a)=>{y(this,J,"f")[s][o]=a})}[sg](t,r,n,i){this[og](t,r,n,i,(s,o,a)=>{y(this,J,"f")[s][o]=(y(this,J,"f")[s][o]||[]).concat(a)})}[og](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of Ti(n))t(o,n[o]);else s(r,this[ag](n),i)}[ag](t){return t==="__proto__"?"___proto___":t}[ug](t,r){return this[$i](this[ug].bind(this),"key",t,r),this}[cg](){var t,r,n,i,s,o,a,u,c,f,l,h;let p=y(this,oc,"f").pop();pt(p,void 0,y(this,oe,"f"));let d;t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,c=this,f=this,l=this,h=this,{options:{set value(g){Y(t,J,g,"f")}}.value,configObjects:d,exitProcess:{set value(g){Y(r,Wt,g,"f")}}.value,groups:{set value(g){Y(n,lr,g,"f")}}.value,output:{set value(g){Y(i,He,g,"f")}}.value,exitError:{set value(g){Y(s,en,g,"f")}}.value,hasOutput:{set value(g){Y(o,Ot,g,"f")}}.value,parsed:this.parsed,strict:{set value(g){Y(a,Ln,g,"f")}}.value,strictCommands:{set value(g){Y(u,Dn,g,"f")}}.value,strictOptions:{set value(g){Y(c,Tn,g,"f")}}.value,completionCommand:{set value(g){Y(f,Pt,g,"f")}}.value,parseFn:{set value(g){Y(l,Rt,g,"f")}}.value,parseContext:{set value(g){Y(h,Rn,g,"f")}}.value}=p,y(this,J,"f").configObjects=d,y(this,ue,"f").unfreeze(),y(this,Oe,"f").unfreeze(),y(this,De,"f").unfreeze(),y(this,Ut,"f").unfreeze()}[KP](t,r){return xn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[XP].bind(this),getContext:this[JP].bind(this),getHasOutput:this[QP].bind(this),getLoggerInstance:this[ZP].bind(this),getParseContext:this[eO].bind(this),getParserConfiguration:this[kn].bind(this),getUsageConfiguration:this[zP].bind(this),getUsageInstance:this[tO].bind(this),getValidationInstance:this[rO].bind(this),hasParseCallback:this[hc].bind(this),isGlobalContext:this[nO].bind(this),postProcess:this[Nn].bind(this),reset:this[lg].bind(this),runValidation:this[fg].bind(this),runYargsParserAndExecuteCommands:this[ao].bind(this),setHasOutput:this[sO].bind(this)}}[XP](){return y(this,De,"f")}[JP](){return y(this,oo,"f")}[QP](){return y(this,Ot,"f")}[ZP](){return y(this,Ni,"f")}[eO](){return y(this,Rn,"f")||{}}[tO](){return y(this,ue,"f")}[rO](){return y(this,Oe,"f")}[hc](){return!!y(this,Rt,"f")}[nO](){return y(this,ac,"f")}[Nn](t,r,n,i){return n||ve(t)||(r||(t=this[qP](t)),(this[kn]()["parse-positional-numbers"]||this[kn]()["parse-positional-numbers"]===void 0)&&(t=this[VP](t)),i&&(t=Cn(t,this,y(this,Ut,"f").getMiddleware(),!1))),t}[lg](t={}){Y(this,J,y(this,J,"f")||{},"f");let r={};r.local=y(this,J,"f").local||[],r.configObjects=y(this,J,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(y(this,Fn,"f"),Object.keys(y(this,lr,"f")).reduce((o,a)=>{let u=y(this,lr,"f")[a].filter(c=>!(c in n));return u.length>0&&(o[a]=u),o},{})),Y(this,lr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(y(this,J,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=Qr(y(this,J,"f")[o],a=>!n[a])}),r.envPrefix=y(this,J,"f").envPrefix,Y(this,J,r,"f"),Y(this,ue,y(this,ue,"f")?y(this,ue,"f").reset(n):TP(this,y(this,oe,"f")),"f"),Y(this,Oe,y(this,Oe,"f")?y(this,Oe,"f").reset(n):MP(this,y(this,ue,"f"),y(this,oe,"f")),"f"),Y(this,De,y(this,De,"f")?y(this,De,"f").reset():FP(y(this,ue,"f"),y(this,Oe,"f"),y(this,Ut,"f"),y(this,oe,"f")),"f"),y(this,qt,"f")||Y(this,qt,IP(this,y(this,ue,"f"),y(this,De,"f"),y(this,oe,"f")),"f"),y(this,Ut,"f").reset(),Y(this,Pt,null,"f"),Y(this,He,"","f"),Y(this,en,null,"f"),Y(this,Ot,!1,"f"),this.parsed=!1,this}[iO](t,r){return y(this,oe,"f").path.relative(t,r)}[ao](t,r,n,i=0,s=!1){let o=!!n||s;t=t||y(this,tn,"f"),y(this,J,"f").__=y(this,oe,"f").y18n.__,y(this,J,"f").configuration=this[kn]();let a=!!y(this,J,"f").configuration["populate--"],u=Object.assign({},y(this,J,"f").configuration,{"populate--":!0}),c=y(this,oe,"f").Parser.detailed(t,Object.assign({},y(this,J,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),f=Object.assign(c.argv,y(this,Rn,"f")),l,h=c.aliases,p=!1,d=!1;Object.keys(f).forEach(g=>{g===y(this,Gt,"f")&&f[g]?p=!0:g===y(this,fr,"f")&&f[g]&&(d=!0)}),f.$0=this.$0,this.parsed=c,i===0&&y(this,ue,"f").clearCachedHelpMessage();try{if(this[ng](),r)return this[Nn](f,a,!!n,!1);y(this,Gt,"f")&&[y(this,Gt,"f")].concat(h[y(this,Gt,"f")]||[]).filter(P=>P.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),p=!0),Y(this,ac,!1,"f");let g=y(this,De,"f").getCommands(),m=y(this,qt,"f").completionKey in f,b=p||m||s;if(f._.length){if(g.length){let _;for(let P=i||0,F;f._[P]!==void 0;P++)if(F=String(f._[P]),g.includes(F)&&F!==y(this,Pt,"f")){let k=y(this,De,"f").runCommand(F,this,c,P+1,s,p||d||s);return this[Nn](k,a,!!n,!1)}else if(!_&&F!==y(this,Pt,"f")){_=F;break}!y(this,De,"f").hasDefaultCommand()&&y(this,lc,"f")&&_&&!b&&y(this,Oe,"f").recommendCommands(_,g)}y(this,Pt,"f")&&f._.includes(y(this,Pt,"f"))&&!m&&(y(this,Wt,"f")&&Zr(!0),this.showCompletionScript(),this.exit(0))}if(y(this,De,"f").hasDefaultCommand()&&!b){let _=y(this,De,"f").runCommand(null,this,c,0,s,p||d||s);return this[Nn](_,a,!!n,!1)}if(m){y(this,Wt,"f")&&Zr(!0),t=[].concat(t);let _=t.slice(t.indexOf(`--${y(this,qt,"f").completionKey}`)+1);return y(this,qt,"f").getCompletion(_,(P,F)=>{if(P)throw new _e(P.message);(F||[]).forEach(k=>{y(this,Ni,"f").log(k)}),this.exit(0)}),this[Nn](f,!a,!!n,!1)}if(y(this,Ot,"f")||(p?(y(this,Wt,"f")&&Zr(!0),o=!0,this.showHelp("log"),this.exit(0)):d&&(y(this,Wt,"f")&&Zr(!0),o=!0,y(this,ue,"f").showVersion("log"),this.exit(0))),!o&&y(this,J,"f").skipValidation.length>0&&(o=Object.keys(f).some(_=>y(this,J,"f").skipValidation.indexOf(_)>=0&&f[_]===!0)),!o){if(c.error)throw new _e(c.error.message);if(!m){let _=this[fg](h,{},c.error);n||(l=Cn(f,this,y(this,Ut,"f").getMiddleware(),!0)),l=this[KP](_,l??f),ve(l)&&!n&&(l=l.then(()=>Cn(f,this,y(this,Ut,"f").getMiddleware(),!1)))}}}catch(g){if(g instanceof _e)y(this,ue,"f").fail(g.message,g);else throw g}return this[Nn](l??f,a,!!n,!0)}[fg](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new _e(n.message);y(this,Oe,"f").nonOptionCount(o),y(this,Oe,"f").requiredArguments(o,s);let a=!1;y(this,Dn,"f")&&(a=y(this,Oe,"f").unknownCommands(o)),y(this,Ln,"f")&&!a?y(this,Oe,"f").unknownArguments(o,t,r,!!i):y(this,Tn,"f")&&y(this,Oe,"f").unknownArguments(o,t,{},!1,!1),y(this,Oe,"f").limitedChoices(o),y(this,Oe,"f").implications(o),y(this,Oe,"f").conflicting(o)}}[sO](){Y(this,Ot,!0,"f")}[In](t){if(typeof t=="string")y(this,J,"f").key[t]=!0;else for(let r of t)y(this,J,"f").key[r]=!0}};function LP(e){return!!e&&typeof e.getInternalMethods=="function"}var J8=oO(Kd),aO=J8;function uO(e){let t=aO(Yd(e)).option({skipCheck:{type:"boolean",description:"Skip checking the validity of the feeds"},skipAuth:{type:"boolean",description:"Skip authenticating the feeds"},configFile:{alias:"c",type:"string",description:"Skip checking the validity of the feeds"},azureAuthLocation:{type:"string",description:"Allow specifying alternate location to azureauth"},exitCodeOnReAuthenticate:{type:"number",description:"Exit when re-authentication occurs"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile,azureAuthLocation:t.azureAuthLocation,exitCodeOnReAuthenticate:t.exitCodeOnReAuthenticate}}var Q8=async e=>{let t=[new Iu(e.configFile),new ba(e.configFile)],r=[];if(e.doValidCheck||e.skipAuth)for(let s of t)await s.isSupportedInRepo()&&r.push(...await s.validateAllUsedFeeds());let n=r.filter(s=>!s.isValid&&s.feed.adoOrganization),i=n.length;if(e.doValidCheck&&i==0)return null;if(e.skipAuth&&i!=0)return Fi({success:!1,automaticSuccess:!1,error:"invalid token(s)"},!0),console.log(i==1?"\u274C Your token is invalid.":`\u274C ${i} tokens are invalid.`),!1;try{console.log("\u{1F511} Authenticating to package feed...");let s=new Map;for(let u of n.map(c=>c.feed))s.set(u.adoOrganization,u.registry);let o={};for(let[u,c]of s)o[u]=await eP(u,c,!1,e.azureAuthLocation);for(let u of n){let c=u.feed,f=o[c.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${c.registry} via ${u.fileProvider.id}`),!1;c.authToken=f,c.email||(c.email=ha),c.userName||(c.userName=fa)}let a=tP(n,u=>u.fileProvider);for(let[u,c]of a)await u.writeWorkspaceRegistries(c.map(f=>f.feed));return!0}catch(s){return Fi({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};rP()&&uo.default.exit(0);if(!ju()){let e=`Platform ${(0,pc.platform)()} and architecture ${(0,pc.arch)()} not supported for automatic authentication.`;console.log(e),Fi({success:!1,error:e},!0),uo.default.exit(0)}async function pg(){let e=uO(uo.default.argv);try{let t=await Q8(e);if(t===null)Fi({success:!0}),console.log("\u2705 Current authentication is valid");else if(t)Fi({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful"),e.exitCodeOnReAuthenticate!==void 0&&uo.default.exit(e.exitCodeOnReAuthenticate);else return console.log("\u274C Authentication to package feed failed."),!1}catch(t){return console.error(t),console.log("\u274C Authentication to package feed failed."),!1}return!0}pg().then(e=>{e||(cO.default.exitCode=1)});
156
+ `;var Hd=class{constructor(e,r,n,i){var s,o,a;this.yargs=e,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(e,r,n,i){let s=this.command.getCommandHandlers();for(let a=0,u=e.length;a<u;++a)if(s[e[a]]&&s[e[a]].builder){let c=s[e[a]].builder;if(ic(c)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return c(f,!0),f.argv}}let o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,r,n),this.choicesFromOptionsCompletions(o,e,r,n),this.choicesFromPositionalsCompletions(o,e,r,n),i(null,o)}commandCompletions(e,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let o=ln(s[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)e.push(o);else{let a=s[1]||"";e.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(e,r,n,i){if((i.match(/^-/)||i===""&&e.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(a=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,u)&&this.completeOptionKey(a,e,i,u&&!!s.default[a])})}}choicesFromOptionsCompletions(e,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&e.push(...s.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(e,r,n,i){if(i===""&&e.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=s[n._.length-o-1];if(!a)return;let u=this.yargs.getOptions().choices[a]||[];for(let c of u)c.startsWith(i)&&e.push(c.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let r=e[e.length-1],n="";if(!r.startsWith("-")&&e.length>1&&(n=r,r=e[e.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),o=[i,...this.yargs.getAliases()[i]||[]],a;for(let u of o)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){a=s.choices[u];break}if(a)return a.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(e){let r=this.getPreviousArgChoices(e);return r!==void 0&&r.length>0}argsContainKey(e,r,n){let i=s=>e.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(e,r,n,i){var s,o,a,u;let c=e;if(this.zshShell){let d=this.usage.getDescriptions(),g=(o=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[e])===null||o===void 0?void 0:o.find(_=>{let v=d[_];return typeof v=="string"&&v.length>0}),m=g?d[g]:void 0,y=(u=(a=d[e])!==null&&a!==void 0?a:m)!==null&&u!==void 0?u:"";c=`${e.replace(/:/g,"\\:")}:${y.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let f=d=>/^--/.test(d),l=d=>/^[^0-9]$/.test(d),p=!f(n)&&l(e)?"-":"--";r.push(p+c),i&&r.push(p+"no-"+c)}customCompletion(e,r,n,i){if(Rt(this.customCompletionFunction,null,this.shim),JG(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Ge(s)?s.then(o=>{this.shim.process.nextTick(()=>{i(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{i(o,void 0)})}):i(null,s)}else return QG(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(e,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(e,r){let n=e.length?e[e.length-1]:"",i=this.yargs.parse(e,!0),s=this.customCompletionFunction?o=>this.customCompletion(e,o,n,r):o=>this.defaultCompletion(e,o,n,r);return Ge(i)?i.then(s):s(i)}generateCompletionScript(e,r){let n=this.zshShell?Gx:Ux,i=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}};function Hx(t,e,r,n){return new Hd(t,e,r,n)}function JG(t){return t.length<3}function QG(t){return t.length>3}function zx(t,e){if(t.length===0)return e.length;if(e.length===0)return t.length;let r=[],n;for(n=0;n<=e.length;n++)r[n]=[n];let i;for(i=0;i<=t.length;i++)r[0][i]=i;for(n=1;n<=e.length;n++)for(i=1;i<=t.length;i++)e.charAt(n-1)===t.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&e.charAt(n-2)===t.charAt(i-1)&&e.charAt(n-1)===t.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[e.length][t.length]}var Yx=["$0","--","_"];function Vx(t,e,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(l){let p=t.getDemandedCommands(),g=l._.length+(l["--"]?l["--"].length:0)-t.getInternalMethods().getContext().commands.length;p._&&(g<p._.min||g>p._.max)&&(g<p._.min?p._.minMsg!==void 0?e.fail(p._.minMsg?p._.minMsg.replace(/\$0/g,g.toString()).replace(/\$1/,p._.min.toString()):null):e.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",g,g.toString(),p._.min.toString())):g>p._.max&&(p._.maxMsg!==void 0?e.fail(p._.maxMsg?p._.maxMsg.replace(/\$0/g,g.toString()).replace(/\$1/,p._.max.toString()):null):e.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",g,g.toString(),p._.max.toString()))))},s.positionalCount=function(l,p){p<l&&e.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",p,p+"",l+""))},s.requiredArguments=function(l,p){let d=null;for(let g of Object.keys(p))(!Object.prototype.hasOwnProperty.call(l,g)||typeof l[g]>"u")&&(d=d||{},d[g]=p[g]);if(d){let g=[];for(let y of Object.keys(d)){let _=d[y];_&&g.indexOf(_)<0&&g.push(_)}let m=g.length?`
157
+ ${g.join(`
158
+ `)}`:"";e.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+m))}},s.unknownArguments=function(l,p,d,g,m=!0){var y;let _=t.getInternalMethods().getCommandInstance().getCommands(),v=[],F=t.getInternalMethods().getContext();if(Object.keys(l).forEach(k=>{!Yx.includes(k)&&!Object.prototype.hasOwnProperty.call(d,k)&&!Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),k)&&!s.isValidAndSomeAliasIsNotNew(k,p)&&v.push(k)}),m&&(F.commands.length>0||_.length>0||g)&&l._.slice(F.commands.length).forEach(k=>{_.includes(""+k)||v.push(""+k)}),m){let W=((y=t.getDemandedCommands()._)===null||y===void 0?void 0:y.max)||0,Z=F.commands.length+W;Z<l._.length&&l._.slice(Z).forEach(ee=>{ee=String(ee),!F.commands.includes(ee)&&!v.includes(ee)&&v.push(ee)})}v.length&&e.fail(i("Unknown argument: %s","Unknown arguments: %s",v.length,v.map(k=>k.trim()?k:`"${k}"`).join(", ")))},s.unknownCommands=function(l){let p=t.getInternalMethods().getCommandInstance().getCommands(),d=[],g=t.getInternalMethods().getContext();return(g.commands.length>0||p.length>0)&&l._.slice(g.commands.length).forEach(m=>{p.includes(""+m)||d.push(""+m)}),d.length>0?(e.fail(i("Unknown command: %s","Unknown commands: %s",d.length,d.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(l,p){if(!Object.prototype.hasOwnProperty.call(p,l))return!1;let d=t.parsed.newAliases;return[l,...p[l]].some(g=>!Object.prototype.hasOwnProperty.call(d,g)||!d[l])},s.limitedChoices=function(l){let p=t.getOptions(),d={};if(!Object.keys(p.choices).length)return;Object.keys(l).forEach(y=>{Yx.indexOf(y)===-1&&Object.prototype.hasOwnProperty.call(p.choices,y)&&[].concat(l[y]).forEach(_=>{p.choices[y].indexOf(_)===-1&&_!==void 0&&(d[y]=(d[y]||[]).concat(_))})});let g=Object.keys(d);if(!g.length)return;let m=n("Invalid values:");g.forEach(y=>{m+=`
159
+ ${n("Argument: %s, Given: %s, Choices: %s",y,e.stringifiedValues(d[y]),e.stringifiedValues(p.choices[y]))}`}),e.fail(m)};let o={};s.implies=function(l,p){ce("<string|object> [array|number|string]",[l,p],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.implies(d,l[d])}):(t.global(l),o[l]||(o[l]=[]),Array.isArray(p)?p.forEach(d=>s.implies(l,d)):(Rt(p,void 0,r),o[l].push(p)))},s.getImplied=function(){return o};function a(f,l){let p=Number(l);return l=isNaN(p)?l:p,typeof l=="number"?l=f._.length>=l:l.match(/^--no-.+/)?(l=l.match(/^--no-(.+)/)[1],l=!Object.prototype.hasOwnProperty.call(f,l)):l=Object.prototype.hasOwnProperty.call(f,l),l}s.implications=function(l){let p=[];if(Object.keys(o).forEach(d=>{let g=d;(o[d]||[]).forEach(m=>{let y=g,_=m;y=a(l,y),m=a(l,m),y&&!m&&p.push(` ${g} -> ${_}`)})}),p.length){let d=`${n("Implications failed:")}
160
+ `;p.forEach(g=>{d+=g}),e.fail(d)}};let u={};s.conflicts=function(l,p){ce("<string|object> [array|string]",[l,p],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.conflicts(d,l[d])}):(t.global(l),u[l]||(u[l]=[]),Array.isArray(p)?p.forEach(d=>s.conflicts(l,d)):u[l].push(p))},s.getConflicting=()=>u,s.conflicting=function(l){Object.keys(l).forEach(p=>{u[p]&&u[p].forEach(d=>{d&&l[p]!==void 0&&l[d]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",p,d))})}),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(p=>{u[p].forEach(d=>{d&&l[r.Parser.camelCase(p)]!==void 0&&l[r.Parser.camelCase(d)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",p,d))})})},s.recommendCommands=function(l,p){p=p.sort((y,_)=>_.length-y.length);let g=null,m=1/0;for(let y=0,_;(_=p[y])!==void 0;y++){let v=zx(l,_);v<=3&&v<m&&(m=v,g=_)}g&&e.fail(n("Did you mean %s?",g))},s.reset=function(l){return o=fn(o,p=>!l[p]),u=fn(u,p=>!l[p]),s};let c=[];return s.freeze=function(){c.push({implied:o,conflicting:u})},s.unfreeze=function(){let l=c.pop();Rt(l,void 0,r),{implied:o,conflicting:u}=l},s}var zd=[],co;function lo(t,e,r,n){co=n;let i={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if(typeof t.extends!="string")return i;let s=/\.json|\..*rc$/.test(t.extends),o=null;if(s)o=eH(e,t.extends);else try{o=require.resolve(t.extends)}catch{return t}ZG(o),zd.push(o),i=s?JSON.parse(co.readFileSync(o,"utf8")):require(t.extends),delete t.extends,i=lo(i,co.path.dirname(o),r,co)}return zd=[],r?Kx(i,t):Object.assign({},i,t)}function ZG(t){if(zd.indexOf(t)>-1)throw new Ue(`Circular extended configurations: '${t}'.`)}function eH(t,e){return co.path.resolve(t,e)}function Kx(t,e){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,t);for(let i of Object.keys(e))n(e[i])&&n(r[i])?r[i]=Kx(t[i],e[i]):r[i]=e[i];return r}var fe=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},w=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},et,$n,fo,rr,Wt,oc,pn,Mn,ac,nr,uc,ir,vr,Ut,sr,cc,qi,ft,ge,lc,fc,Gt,Bn,Wi,jn,dn,hc,ve,qn,Wn,Un,xe,pc,Cr,Ke;function gP(t){return(e=[],r=t.process.cwd(),n)=>{let i=new ng(e,r,n,t);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var Xx=Symbol("copyDoubleDash"),Jx=Symbol("copyDoubleDash"),Yd=Symbol("deleteFromParserHintObject"),Qx=Symbol("emitWarning"),Zx=Symbol("freeze"),eP=Symbol("getDollarZero"),Gn=Symbol("getParserConfiguration"),tP=Symbol("getUsageConfiguration"),Vd=Symbol("guessLocale"),rP=Symbol("guessVersion"),nP=Symbol("parsePositionalNumbers"),Kd=Symbol("pkgUp"),gn=Symbol("populateParserHintArray"),Ui=Symbol("populateParserHintSingleValueDictionary"),Xd=Symbol("populateParserHintArrayDictionary"),Jd=Symbol("populateParserHintDictionary"),Qd=Symbol("sanitizeKey"),Zd=Symbol("setKey"),eg=Symbol("unfreeze"),iP=Symbol("validateAsync"),sP=Symbol("getCommandInstance"),oP=Symbol("getContext"),aP=Symbol("getHasOutput"),uP=Symbol("getLoggerInstance"),cP=Symbol("getParseContext"),lP=Symbol("getUsageInstance"),fP=Symbol("getValidationInstance"),dc=Symbol("hasParseCallback"),hP=Symbol("isGlobalContext"),Hn=Symbol("postProcess"),pP=Symbol("rebase"),tg=Symbol("reset"),ho=Symbol("runYargsParserAndExecuteCommands"),rg=Symbol("runValidation"),dP=Symbol("setHasOutput"),zn=Symbol("kTrackManuallySetKeys"),ng=class{constructor(e=[],r,n,i){this.customScriptName=!1,this.parsed=!1,et.set(this,void 0),$n.set(this,void 0),fo.set(this,{commands:[],fullCommands:[]}),rr.set(this,null),Wt.set(this,null),oc.set(this,"show-hidden"),pn.set(this,null),Mn.set(this,!0),ac.set(this,{}),nr.set(this,!0),uc.set(this,[]),ir.set(this,void 0),vr.set(this,{}),Ut.set(this,!1),sr.set(this,null),cc.set(this,!0),qi.set(this,void 0),ft.set(this,""),ge.set(this,void 0),lc.set(this,void 0),fc.set(this,{}),Gt.set(this,null),Bn.set(this,null),Wi.set(this,{}),jn.set(this,{}),dn.set(this,void 0),hc.set(this,!1),ve.set(this,void 0),qn.set(this,!1),Wn.set(this,!1),Un.set(this,!1),xe.set(this,void 0),pc.set(this,{}),Cr.set(this,null),Ke.set(this,void 0),fe(this,ve,i,"f"),fe(this,dn,e,"f"),fe(this,$n,r,"f"),fe(this,lc,n,"f"),fe(this,ir,new nc(this),"f"),this.$0=this[eP](),this[tg](),fe(this,et,w(this,et,"f"),"f"),fe(this,xe,w(this,xe,"f"),"f"),fe(this,Ke,w(this,Ke,"f"),"f"),fe(this,ge,w(this,ge,"f"),"f"),w(this,ge,"f").showHiddenOpt=w(this,oc,"f"),fe(this,qi,this[Jx](),"f")}addHelpOpt(e,r){let n="help";return ce("[string|boolean] [string]",[e,r],arguments.length),w(this,sr,"f")&&(this[Yd](w(this,sr,"f")),fe(this,sr,null,"f")),e===!1&&r===void 0?this:(fe(this,sr,typeof e=="string"?e:n,"f"),this.boolean(w(this,sr,"f")),this.describe(w(this,sr,"f"),r||w(this,xe,"f").deferY18nLookup("Show help")),this)}help(e,r){return this.addHelpOpt(e,r)}addShowHiddenOpt(e,r){if(ce("[string|boolean] [string]",[e,r],arguments.length),e===!1&&r===void 0)return this;let n=typeof e=="string"?e:w(this,oc,"f");return this.boolean(n),this.describe(n,r||w(this,xe,"f").deferY18nLookup("Show hidden options")),w(this,ge,"f").showHiddenOpt=n,this}showHidden(e,r){return this.addShowHiddenOpt(e,r)}alias(e,r){return ce("<object|string|array> [string|array]",[e,r],arguments.length),this[Xd](this.alias.bind(this),"alias",e,r),this}array(e){return ce("<array|string>",[e],arguments.length),this[gn]("array",e),this[zn](e),this}boolean(e){return ce("<array|string>",[e],arguments.length),this[gn]("boolean",e),this[zn](e),this}check(e,r){return ce("<function> [boolean]",[e,r],arguments.length),this.middleware((n,i)=>In(()=>e(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&w(this,xe,"f").fail(s.toString(),s):w(this,xe,"f").fail(w(this,ve,"f").y18n.__("Argument check failed: %s",e.toString())),n),s=>(w(this,xe,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(e,r){return ce("<object|string|array> [string|array]",[e,r],arguments.length),this[Xd](this.choices.bind(this),"choices",e,r),this}coerce(e,r){if(ce("<object|string|array> [function]",[e,r],arguments.length),Array.isArray(e)){if(!r)throw new Ue("coerce callback must be provided");for(let n of e)this.coerce(n,r);return this}else if(typeof e=="object"){for(let n of Object.keys(e))this.coerce(n,e[n]);return this}if(!r)throw new Ue("coerce callback must be provided");return w(this,ge,"f").key[e]=!0,w(this,ir,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,e)?In(()=>(s=i.getAliases(),r(n[e])),a=>{n[e]=a;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[e]&&u!==!0)for(let c of s[e])n[c]=a;return n},a=>{throw new Ue(a.message)}):n},e),this}conflicts(e,r){return ce("<string|object> [string|array]",[e,r],arguments.length),w(this,Ke,"f").conflicts(e,r),this}config(e="config",r,n){return ce("[object|string] [string|function] [function]",[e,r,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=lo(e,w(this,$n,"f"),this[Gn]()["deep-merge-config"]||!1,w(this,ve,"f")),w(this,ge,"f").configObjects=(w(this,ge,"f").configObjects||[]).concat(e),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(e,r||w(this,xe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(i=>{w(this,ge,"f").config[i]=n||!0}),this)}completion(e,r,n){return ce("[string] [string|boolean|function] [function]",[e,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),fe(this,Wt,e||w(this,Wt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(w(this,Wt,"f"),r),n&&w(this,rr,"f").registerFunction(n),this}command(e,r,n,i,s,o){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,r,n,i,s,o],arguments.length),w(this,et,"f").addHandler(e,r,n,i,s,o),this}commands(e,r,n,i,s,o){return this.command(e,r,n,i,s,o)}commandDir(e,r){ce("<string> [object]",[e,r],arguments.length);let n=w(this,lc,"f")||w(this,ve,"f").require;return w(this,et,"f").addDirectory(e,n,w(this,ve,"f").getCallerFile(),r),this}count(e){return ce("<array|string>",[e],arguments.length),this[gn]("count",e),this[zn](e),this}default(e,r,n){return ce("<object|string|array> [*] [string]",[e,r,n],arguments.length),n&&(qd(e,w(this,ve,"f")),w(this,ge,"f").defaultDescription[e]=n),typeof r=="function"&&(qd(e,w(this,ve,"f")),w(this,ge,"f").defaultDescription[e]||(w(this,ge,"f").defaultDescription[e]=w(this,xe,"f").functionDescription(r)),r=r.call()),this[Ui](this.default.bind(this),"default",e,r),this}defaults(e,r,n){return this.default(e,r,n)}demandCommand(e=1,r,n,i){return ce("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),w(this,ge,"f").demandedCommands._={min:e,max:r,minMsg:n,maxMsg:i},this}demand(e,r,n){return Array.isArray(r)?(r.forEach(i=>{Rt(n,!0,w(this,ve,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof e=="number"?(Rt(n,!0,w(this,ve,"f")),this.demandCommand(e,r,n,n)):Array.isArray(e)?e.forEach(i=>{Rt(n,!0,w(this,ve,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,r){return ce("<object|string|array> [string]",[e,r],arguments.length),this[Ui](this.demandOption.bind(this),"demandedOptions",e,r),this}deprecateOption(e,r){return ce("<string> [string|boolean]",[e,r],arguments.length),w(this,ge,"f").deprecatedOptions[e]=r,this}describe(e,r){return ce("<object|string|array> [string]",[e,r],arguments.length),this[Zd](e,!0),w(this,xe,"f").describe(e,r),this}detectLocale(e){return ce("<boolean>",[e],arguments.length),fe(this,Mn,e,"f"),this}env(e){return ce("[string|boolean]",[e],arguments.length),e===!1?delete w(this,ge,"f").envPrefix:w(this,ge,"f").envPrefix=e||"",this}epilogue(e){return ce("<string>",[e],arguments.length),w(this,xe,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,r){return ce("<string|array> [string]",[e,r],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):w(this,xe,"f").example(e,r),this}exit(e,r){fe(this,Ut,!0,"f"),fe(this,pn,r,"f"),w(this,nr,"f")&&w(this,ve,"f").process.exit(e)}exitProcess(e=!0){return ce("[boolean]",[e],arguments.length),fe(this,nr,e,"f"),this}fail(e){if(ce("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new Ue("Invalid first argument. Expected function or boolean 'false'");return w(this,xe,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,r){return ce("<array> [function]",[e,r],arguments.length),r?w(this,rr,"f").getCompletion(e,r):new Promise((n,i)=>{w(this,rr,"f").getCompletion(e,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return ce([],0),w(this,ge,"f").demandedOptions}getDemandedCommands(){return ce([],0),w(this,ge,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),w(this,ge,"f").deprecatedOptions}getDetectLocale(){return w(this,Mn,"f")}getExitProcess(){return w(this,nr,"f")}getGroups(){return Object.assign({},w(this,vr,"f"),w(this,jn,"f"))}getHelp(){if(fe(this,Ut,!0,"f"),!w(this,xe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ho](w(this,dn,"f"),void 0,void 0,0,!0);if(Ge(r))return r.then(()=>w(this,xe,"f").help())}let e=w(this,et,"f").runDefaultBuilderOn(this);if(Ge(e))return e.then(()=>w(this,xe,"f").help())}return Promise.resolve(w(this,xe,"f").help())}getOptions(){return w(this,ge,"f")}getStrict(){return w(this,qn,"f")}getStrictCommands(){return w(this,Wn,"f")}getStrictOptions(){return w(this,Un,"f")}global(e,r){return ce("<string|array> [boolean]",[e,r],arguments.length),e=[].concat(e),r!==!1?w(this,ge,"f").local=w(this,ge,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{w(this,ge,"f").local.includes(n)||w(this,ge,"f").local.push(n)}),this}group(e,r){ce("<string|array> <string>",[e,r],arguments.length);let n=w(this,jn,"f")[r]||w(this,vr,"f")[r];w(this,jn,"f")[r]&&delete w(this,jn,"f")[r];let i={};return w(this,vr,"f")[r]=(n||[]).concat(e).filter(s=>i[s]?!1:i[s]=!0),this}hide(e){return ce("<string>",[e],arguments.length),w(this,ge,"f").hiddenOptions.push(e),this}implies(e,r){return ce("<string|object> [number|string|array]",[e,r],arguments.length),w(this,Ke,"f").implies(e,r),this}locale(e){return ce("[string]",[e],arguments.length),e===void 0?(this[Vd](),w(this,ve,"f").y18n.getLocale()):(fe(this,Mn,!1,"f"),w(this,ve,"f").y18n.setLocale(e),this)}middleware(e,r,n){return w(this,ir,"f").addMiddleware(e,!!r,n)}nargs(e,r){return ce("<string|object|array> [number]",[e,r],arguments.length),this[Ui](this.nargs.bind(this),"narg",e,r),this}normalize(e){return ce("<array|string>",[e],arguments.length),this[gn]("normalize",e),this}number(e){return ce("<array|string>",[e],arguments.length),this[gn]("number",e),this[zn](e),this}option(e,r){if(ce("<string|object> [object]",[e,r],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof r!="object"&&(r={}),this[zn](e),w(this,Cr,"f")&&(e==="version"||r?.alias==="version")&&this[Qx](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
161
+ `),void 0,"versionWarning"),w(this,ge,"f").key[e]=!0,r.alias&&this.alias(e,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(e,n);let i=r.demand||r.required||r.require;i&&this.demand(e,i),r.demandOption&&this.demandOption(e,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(e,r.conflicts),"default"in r&&this.default(e,r.default),r.implies!==void 0&&this.implies(e,r.implies),r.nargs!==void 0&&this.nargs(e,r.nargs),r.config&&this.config(e,r.configParser),r.normalize&&this.normalize(e),r.choices&&this.choices(e,r.choices),r.coerce&&this.coerce(e,r.coerce),r.group&&this.group(e,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(e),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(e),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(e),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(e),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(e),typeof r.global=="boolean"&&this.global(e,r.global),r.defaultDescription&&(w(this,ge,"f").defaultDescription[e]=r.defaultDescription),r.skipValidation&&this.skipValidation(e);let s=r.describe||r.description||r.desc,o=w(this,xe,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,e)||typeof s=="string")&&this.describe(e,s),r.hidden&&this.hide(e),r.requiresArg&&this.requiresArg(e)}return this}options(e,r){return this.option(e,r)}parse(e,r,n){ce("[string|array] [function|boolean|object] [function]",[e,r,n],arguments.length),this[Zx](),typeof e>"u"&&(e=w(this,dn,"f")),typeof r=="object"&&(fe(this,Bn,r,"f"),r=n),typeof r=="function"&&(fe(this,Gt,r,"f"),r=!1),r||fe(this,dn,e,"f"),w(this,Gt,"f")&&fe(this,nr,!1,"f");let i=this[ho](e,!!r),s=this.parsed;return w(this,rr,"f").setParsed(this.parsed),Ge(i)?i.then(o=>(w(this,Gt,"f")&&w(this,Gt,"f").call(this,w(this,pn,"f"),o,w(this,ft,"f")),o)).catch(o=>{throw w(this,Gt,"f")&&w(this,Gt,"f")(o,this.parsed.argv,w(this,ft,"f")),o}).finally(()=>{this[eg](),this.parsed=s}):(w(this,Gt,"f")&&w(this,Gt,"f").call(this,w(this,pn,"f"),i,w(this,ft,"f")),this[eg](),this.parsed=s,i)}parseAsync(e,r,n){let i=this.parse(e,r,n);return Ge(i)?i:Promise.resolve(i)}parseSync(e,r,n){let i=this.parse(e,r,n);if(Ge(i))throw new Ue(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(e){return ce("<object>",[e],arguments.length),fe(this,fc,e,"f"),this}pkgConf(e,r){ce("<string> [string]",[e,r],arguments.length);let n=null,i=this[Kd](r||w(this,$n,"f"));return i[e]&&typeof i[e]=="object"&&(n=lo(i[e],r||w(this,$n,"f"),this[Gn]()["deep-merge-config"]||!1,w(this,ve,"f")),w(this,ge,"f").configObjects=(w(this,ge,"f").configObjects||[]).concat(n)),this}positional(e,r){ce("<string> <object>",[e,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=fn(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=w(this,fo,"f").fullCommands[w(this,fo,"f").fullCommands.length-1],s=i?w(this,et,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Bi(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(e)!==-1&&(r[o]=!0):a[e]&&!(o in r)&&(r[o]=a[e])}),this.group(e,w(this,xe,"f").getPositionalGroupName()),this.option(e,r)}recommendCommands(e=!0){return ce("[boolean]",[e],arguments.length),fe(this,hc,e,"f"),this}required(e,r,n){return this.demand(e,r,n)}require(e,r,n){return this.demand(e,r,n)}requiresArg(e){return ce("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&w(this,ge,"f").narg[e]?this:(this[Ui](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,r){return ce("[string] [string]",[e,r],arguments.length),e=e||this.$0,w(this,qi,"f").log(w(this,rr,"f").generateCompletionScript(e,r||w(this,Wt,"f")||"completion")),this}showHelp(e){if(ce("[string|function]",[e],arguments.length),fe(this,Ut,!0,"f"),!w(this,xe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ho](w(this,dn,"f"),void 0,void 0,0,!0);if(Ge(n))return n.then(()=>{w(this,xe,"f").showHelp(e)}),this}let r=w(this,et,"f").runDefaultBuilderOn(this);if(Ge(r))return r.then(()=>{w(this,xe,"f").showHelp(e)}),this}return w(this,xe,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,r){return ce("[boolean|string] [string]",[e,r],arguments.length),w(this,xe,"f").showHelpOnFail(e,r),this}showVersion(e){return ce("[string|function]",[e],arguments.length),w(this,xe,"f").showVersion(e),this}skipValidation(e){return ce("<array|string>",[e],arguments.length),this[gn]("skipValidation",e),this}strict(e){return ce("[boolean]",[e],arguments.length),fe(this,qn,e!==!1,"f"),this}strictCommands(e){return ce("[boolean]",[e],arguments.length),fe(this,Wn,e!==!1,"f"),this}strictOptions(e){return ce("[boolean]",[e],arguments.length),fe(this,Un,e!==!1,"f"),this}string(e){return ce("<array|string>",[e],arguments.length),this[gn]("string",e),this[zn](e),this}terminalWidth(){return ce([],0),w(this,ve,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return ce("<object>",[e],arguments.length),fe(this,Mn,!1,"f"),w(this,ve,"f").y18n.updateLocale(e),this}usage(e,r,n,i){if(ce("<string|null|undefined> [string|boolean] [function|object] [function]",[e,r,n,i],arguments.length),r!==void 0){if(Rt(e,null,w(this,ve,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,r,n,i);throw new Ue(".usage() description must start with $0 if being used as alias for .command()")}else return w(this,xe,"f").usage(e),this}usageConfiguration(e){return ce("<object>",[e],arguments.length),fe(this,pc,e,"f"),this}version(e,r,n){let i="version";if(ce("[boolean|string] [string] [string]",[e,r,n],arguments.length),w(this,Cr,"f")&&(this[Yd](w(this,Cr,"f")),w(this,xe,"f").version(void 0),fe(this,Cr,null,"f")),arguments.length===0)n=this[rP](),e=i;else if(arguments.length===1){if(e===!1)return this;n=e,e=i}else arguments.length===2&&(n=r,r=void 0);return fe(this,Cr,typeof e=="string"?e:i,"f"),r=r||w(this,xe,"f").deferY18nLookup("Show version number"),w(this,xe,"f").version(n||void 0),this.boolean(w(this,Cr,"f")),this.describe(w(this,Cr,"f"),r),this}wrap(e){return ce("<number|null|undefined>",[e],arguments.length),w(this,xe,"f").wrap(e),this}[(et=new WeakMap,$n=new WeakMap,fo=new WeakMap,rr=new WeakMap,Wt=new WeakMap,oc=new WeakMap,pn=new WeakMap,Mn=new WeakMap,ac=new WeakMap,nr=new WeakMap,uc=new WeakMap,ir=new WeakMap,vr=new WeakMap,Ut=new WeakMap,sr=new WeakMap,cc=new WeakMap,qi=new WeakMap,ft=new WeakMap,ge=new WeakMap,lc=new WeakMap,fc=new WeakMap,Gt=new WeakMap,Bn=new WeakMap,Wi=new WeakMap,jn=new WeakMap,dn=new WeakMap,hc=new WeakMap,ve=new WeakMap,qn=new WeakMap,Wn=new WeakMap,Un=new WeakMap,xe=new WeakMap,pc=new WeakMap,Cr=new WeakMap,Ke=new WeakMap,Xx)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[Jx](){return{log:(...e)=>{this[dc]()||console.log(...e),fe(this,Ut,!0,"f"),w(this,ft,"f").length&&fe(this,ft,w(this,ft,"f")+`
162
+ `,"f"),fe(this,ft,w(this,ft,"f")+e.join(" "),"f")},error:(...e)=>{this[dc]()||console.error(...e),fe(this,Ut,!0,"f"),w(this,ft,"f").length&&fe(this,ft,w(this,ft,"f")+`
163
+ `,"f"),fe(this,ft,w(this,ft,"f")+e.join(" "),"f")}}}[Yd](e){Bi(w(this,ge,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=w(this,ge,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete w(this,xe,"f").getDescriptions()[e]}[Qx](e,r,n){w(this,ac,"f")[n]||(w(this,ve,"f").process.emitWarning(e,r),w(this,ac,"f")[n]=!0)}[Zx](){w(this,uc,"f").push({options:w(this,ge,"f"),configObjects:w(this,ge,"f").configObjects.slice(0),exitProcess:w(this,nr,"f"),groups:w(this,vr,"f"),strict:w(this,qn,"f"),strictCommands:w(this,Wn,"f"),strictOptions:w(this,Un,"f"),completionCommand:w(this,Wt,"f"),output:w(this,ft,"f"),exitError:w(this,pn,"f"),hasOutput:w(this,Ut,"f"),parsed:this.parsed,parseFn:w(this,Gt,"f"),parseContext:w(this,Bn,"f")}),w(this,xe,"f").freeze(),w(this,Ke,"f").freeze(),w(this,et,"f").freeze(),w(this,ir,"f").freeze()}[eP](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(w(this,ve,"f").process.argv()[0])?r=w(this,ve,"f").process.argv().slice(1,2):r=w(this,ve,"f").process.argv().slice(0,1),e=r.map(n=>{let i=this[pP](w(this,$n,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),w(this,ve,"f").getEnv("_")&&w(this,ve,"f").getProcessArgvBin()===w(this,ve,"f").getEnv("_")&&(e=w(this,ve,"f").getEnv("_").replace(`${w(this,ve,"f").path.dirname(w(this,ve,"f").process.execPath())}/`,"")),e}[Gn](){return w(this,fc,"f")}[tP](){return w(this,pc,"f")}[Vd](){if(!w(this,Mn,"f"))return;let e=w(this,ve,"f").getEnv("LC_ALL")||w(this,ve,"f").getEnv("LC_MESSAGES")||w(this,ve,"f").getEnv("LANG")||w(this,ve,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[rP](){return this[Kd]().version||"unknown"}[nP](e){let r=e["--"]?e["--"]:e._;for(let n=0,i;(i=r[n])!==void 0;n++)w(this,ve,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return e}[Kd](e){let r=e||"*";if(w(this,Wi,"f")[r])return w(this,Wi,"f")[r];let n={};try{let i=e||w(this,ve,"f").mainFilename;!e&&w(this,ve,"f").path.extname(i)&&(i=w(this,ve,"f").path.dirname(i));let s=w(this,ve,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});Rt(s,void 0,w(this,ve,"f")),n=JSON.parse(w(this,ve,"f").readFileSync(s,"utf8"))}catch{}return w(this,Wi,"f")[r]=n||{},w(this,Wi,"f")[r]}[gn](e,r){r=[].concat(r),r.forEach(n=>{n=this[Qd](n),w(this,ge,"f")[e].push(n)})}[Ui](e,r,n,i){this[Jd](e,r,n,i,(s,o,a)=>{w(this,ge,"f")[s][o]=a})}[Xd](e,r,n,i){this[Jd](e,r,n,i,(s,o,a)=>{w(this,ge,"f")[s][o]=(w(this,ge,"f")[s][o]||[]).concat(a)})}[Jd](e,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{e(o,i)});else if((o=>typeof o=="object")(n))for(let o of Bi(n))e(o,n[o]);else s(r,this[Qd](n),i)}[Qd](e){return e==="__proto__"?"___proto___":e}[Zd](e,r){return this[Ui](this[Zd].bind(this),"key",e,r),this}[eg](){var e,r,n,i,s,o,a,u,c,f,l,p;let d=w(this,uc,"f").pop();Rt(d,void 0,w(this,ve,"f"));let g;e=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,c=this,f=this,l=this,p=this,{options:{set value(m){fe(e,ge,m,"f")}}.value,configObjects:g,exitProcess:{set value(m){fe(r,nr,m,"f")}}.value,groups:{set value(m){fe(n,vr,m,"f")}}.value,output:{set value(m){fe(i,ft,m,"f")}}.value,exitError:{set value(m){fe(s,pn,m,"f")}}.value,hasOutput:{set value(m){fe(o,Ut,m,"f")}}.value,parsed:this.parsed,strict:{set value(m){fe(a,qn,m,"f")}}.value,strictCommands:{set value(m){fe(u,Wn,m,"f")}}.value,strictOptions:{set value(m){fe(c,Un,m,"f")}}.value,completionCommand:{set value(m){fe(f,Wt,m,"f")}}.value,parseFn:{set value(m){fe(l,Gt,m,"f")}}.value,parseContext:{set value(m){fe(p,Bn,m,"f")}}.value}=d,w(this,ge,"f").configObjects=g,w(this,xe,"f").unfreeze(),w(this,Ke,"f").unfreeze(),w(this,et,"f").unfreeze(),w(this,ir,"f").unfreeze()}[iP](e,r){return In(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[sP].bind(this),getContext:this[oP].bind(this),getHasOutput:this[aP].bind(this),getLoggerInstance:this[uP].bind(this),getParseContext:this[cP].bind(this),getParserConfiguration:this[Gn].bind(this),getUsageConfiguration:this[tP].bind(this),getUsageInstance:this[lP].bind(this),getValidationInstance:this[fP].bind(this),hasParseCallback:this[dc].bind(this),isGlobalContext:this[hP].bind(this),postProcess:this[Hn].bind(this),reset:this[tg].bind(this),runValidation:this[rg].bind(this),runYargsParserAndExecuteCommands:this[ho].bind(this),setHasOutput:this[dP].bind(this)}}[sP](){return w(this,et,"f")}[oP](){return w(this,fo,"f")}[aP](){return w(this,Ut,"f")}[uP](){return w(this,qi,"f")}[cP](){return w(this,Bn,"f")||{}}[lP](){return w(this,xe,"f")}[fP](){return w(this,Ke,"f")}[dc](){return!!w(this,Gt,"f")}[hP](){return w(this,cc,"f")}[Hn](e,r,n,i){return n||Ge(e)||(r||(e=this[Xx](e)),(this[Gn]()["parse-positional-numbers"]||this[Gn]()["parse-positional-numbers"]===void 0)&&(e=this[nP](e)),i&&(e=Nn(e,this,w(this,ir,"f").getMiddleware(),!1))),e}[tg](e={}){fe(this,ge,w(this,ge,"f")||{},"f");let r={};r.local=w(this,ge,"f").local||[],r.configObjects=w(this,ge,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(e[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(w(this,jn,"f"),Object.keys(w(this,vr,"f")).reduce((o,a)=>{let u=w(this,vr,"f")[a].filter(c=>!(c in n));return u.length>0&&(o[a]=u),o},{})),fe(this,vr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(w(this,ge,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=fn(w(this,ge,"f")[o],a=>!n[a])}),r.envPrefix=w(this,ge,"f").envPrefix,fe(this,ge,r,"f"),fe(this,xe,w(this,xe,"f")?w(this,xe,"f").reset(n):Wx(this,w(this,ve,"f")),"f"),fe(this,Ke,w(this,Ke,"f")?w(this,Ke,"f").reset(n):Vx(this,w(this,xe,"f"),w(this,ve,"f")),"f"),fe(this,et,w(this,et,"f")?w(this,et,"f").reset():Bx(w(this,xe,"f"),w(this,Ke,"f"),w(this,ir,"f"),w(this,ve,"f")),"f"),w(this,rr,"f")||fe(this,rr,Hx(this,w(this,xe,"f"),w(this,et,"f"),w(this,ve,"f")),"f"),w(this,ir,"f").reset(),fe(this,Wt,null,"f"),fe(this,ft,"","f"),fe(this,pn,null,"f"),fe(this,Ut,!1,"f"),this.parsed=!1,this}[pP](e,r){return w(this,ve,"f").path.relative(e,r)}[ho](e,r,n,i=0,s=!1){let o=!!n||s;e=e||w(this,dn,"f"),w(this,ge,"f").__=w(this,ve,"f").y18n.__,w(this,ge,"f").configuration=this[Gn]();let a=!!w(this,ge,"f").configuration["populate--"],u=Object.assign({},w(this,ge,"f").configuration,{"populate--":!0}),c=w(this,ve,"f").Parser.detailed(e,Object.assign({},w(this,ge,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),f=Object.assign(c.argv,w(this,Bn,"f")),l,p=c.aliases,d=!1,g=!1;Object.keys(f).forEach(m=>{m===w(this,sr,"f")&&f[m]?d=!0:m===w(this,Cr,"f")&&f[m]&&(g=!0)}),f.$0=this.$0,this.parsed=c,i===0&&w(this,xe,"f").clearCachedHelpMessage();try{if(this[Vd](),r)return this[Hn](f,a,!!n,!1);w(this,sr,"f")&&[w(this,sr,"f")].concat(p[w(this,sr,"f")]||[]).filter(F=>F.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),d=!0),fe(this,cc,!1,"f");let m=w(this,et,"f").getCommands(),y=w(this,rr,"f").completionKey in f,_=d||y||s;if(f._.length){if(m.length){let v;for(let F=i||0,k;f._[F]!==void 0;F++)if(k=String(f._[F]),m.includes(k)&&k!==w(this,Wt,"f")){let W=w(this,et,"f").runCommand(k,this,c,F+1,s,d||g||s);return this[Hn](W,a,!!n,!1)}else if(!v&&k!==w(this,Wt,"f")){v=k;break}!w(this,et,"f").hasDefaultCommand()&&w(this,hc,"f")&&v&&!_&&w(this,Ke,"f").recommendCommands(v,m)}w(this,Wt,"f")&&f._.includes(w(this,Wt,"f"))&&!y&&(w(this,nr,"f")&&hn(!0),this.showCompletionScript(),this.exit(0))}if(w(this,et,"f").hasDefaultCommand()&&!_){let v=w(this,et,"f").runCommand(null,this,c,0,s,d||g||s);return this[Hn](v,a,!!n,!1)}if(y){w(this,nr,"f")&&hn(!0),e=[].concat(e);let v=e.slice(e.indexOf(`--${w(this,rr,"f").completionKey}`)+1);return w(this,rr,"f").getCompletion(v,(F,k)=>{if(F)throw new Ue(F.message);(k||[]).forEach(W=>{w(this,qi,"f").log(W)}),this.exit(0)}),this[Hn](f,!a,!!n,!1)}if(w(this,Ut,"f")||(d?(w(this,nr,"f")&&hn(!0),o=!0,this.showHelp("log"),this.exit(0)):g&&(w(this,nr,"f")&&hn(!0),o=!0,w(this,xe,"f").showVersion("log"),this.exit(0))),!o&&w(this,ge,"f").skipValidation.length>0&&(o=Object.keys(f).some(v=>w(this,ge,"f").skipValidation.indexOf(v)>=0&&f[v]===!0)),!o){if(c.error)throw new Ue(c.error.message);if(!y){let v=this[rg](p,{},c.error);n||(l=Nn(f,this,w(this,ir,"f").getMiddleware(),!0)),l=this[iP](v,l??f),Ge(l)&&!n&&(l=l.then(()=>Nn(f,this,w(this,ir,"f").getMiddleware(),!1)))}}}catch(m){if(m instanceof Ue)w(this,xe,"f").fail(m.message,m);else throw m}return this[Hn](l??f,a,!!n,!0)}[rg](e,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new Ue(n.message);w(this,Ke,"f").nonOptionCount(o),w(this,Ke,"f").requiredArguments(o,s);let a=!1;w(this,Wn,"f")&&(a=w(this,Ke,"f").unknownCommands(o)),w(this,qn,"f")&&!a?w(this,Ke,"f").unknownArguments(o,e,r,!!i):w(this,Un,"f")&&w(this,Ke,"f").unknownArguments(o,e,{},!1,!1),w(this,Ke,"f").limitedChoices(o),w(this,Ke,"f").implications(o),w(this,Ke,"f").conflicting(o)}}[dP](){fe(this,Ut,!0,"f")}[zn](e){if(typeof e=="string")w(this,ge,"f").key[e]=!0;else for(let r of e)w(this,ge,"f").key[r]=!0}};function jx(t){return!!t&&typeof t.getInternalMethods=="function"}var tH=gP(jd),mP=tH;function yP(t){let e=mP(Md(t)).option({skipCheck:{type:"boolean",description:"Skip checking the validity of the feeds"},skipAuth:{type:"boolean",description:"Skip authenticating the feeds"},configFile:{alias:"c",type:"string",description:"Skip checking the validity of the feeds"},azureAuthLocation:{type:"string",description:"Allow specifying alternate location to azureauth"},exitCodeOnReAuthenticate:{type:"number",description:"Exit when re-authentication occurs"}}).help().parseSync();return{skipAuth:e.skipAuth||!1,doValidCheck:!e.skipCheck,configFile:e.configFile,azureAuthLocation:e.azureAuthLocation,exitCodeOnReAuthenticate:e.exitCodeOnReAuthenticate}}var rH=async t=>{let e=[new Mu(t.configFile),new Ea(t.configFile)],r=[];if(t.doValidCheck||t.skipAuth)for(let s of e)await s.isSupportedInRepo()&&r.push(...await s.validateAllUsedFeeds());let n=r.filter(s=>!s.isValid&&s.feed.adoOrganization),i=n.length;if(t.doValidCheck&&i==0)return null;if(t.skipAuth&&i!=0)return Ii({success:!1,automaticSuccess:!1,error:"invalid token(s)"},!0),console.log(i==1?"\u274C Your token is invalid.":`\u274C ${i} tokens are invalid.`),!1;try{console.log("\u{1F511} Authenticating to package feed...");let s=new Map;for(let u of n.map(c=>c.feed))s.set(u.adoOrganization,u.registry);let o={};for(let[u,c]of s)o[u]=await cx(u,c,!1,t.azureAuthLocation);for(let u of n){let c=u.feed,f=o[c.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${c.registry} via ${u.fileProvider.id}`),!1;c.authToken=f,c.email||(c.email=wa),c.userName||(c.userName=Aa)}let a=lx(n,u=>u.fileProvider);for(let[u,c]of a)await u.writeWorkspaceRegistries(c.map(f=>f.feed));return!0}catch(s){return Ii({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};fx()&&po.default.exit(0);if(!Wu()){let t=`Platform ${(0,gc.platform)()} and architecture ${(0,gc.arch)()} not supported for automatic authentication.`;console.log(t),Ii({success:!1,error:t},!0),po.default.exit(0)}async function ig(){let t=yP(po.default.argv);try{let e=await rH(t);if(e===null)Ii({success:!0}),console.log("\u2705 Current authentication is valid");else if(e)Ii({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful"),t.exitCodeOnReAuthenticate!==void 0&&po.default.exit(t.exitCodeOnReAuthenticate);else return console.log("\u274C Authentication to package feed failed."),!1}catch(e){return console.error(e),console.log("\u274C Authentication to package feed failed."),!1}return!0}ig().then(t=>{t||(AP.default.exitCode=1)});
166
164
  /*! Bundled license information:
167
165
 
168
166
  .store/git-url-parse-npm-16.1.0-52146a559b/package/lib/index.js:
@@ -222,8 +220,8 @@ ${d.join(`
222
220
  .store/run-parallel-npm-1.2.0-3f47ff2034/package/index.js:
223
221
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
224
222
 
225
- .store/js-yaml-npm-4.1.1-86ec786790/package/dist/js-yaml.mjs:
226
- (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
223
+ .store/js-yaml-npm-4.2.0-0ab78512c1/package/dist/js-yaml.mjs:
224
+ (*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT *)
227
225
 
228
226
  .store/yargs-parser-npm-21.1.1-8fdc003314/package/build/lib/string-utils.js:
229
227
  .store/yargs-parser-npm-21.1.1-8fdc003314/package/build/lib/tokenize-arg-string.js: