semantic-release-next-version 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,38 +1,41 @@
1
- import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
- var Go=Object.create;var _r=Object.defineProperty;var jo=Object.getOwnPropertyDescriptor;var Bo=Object.getOwnPropertyNames;var Mo=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty;var Ke=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var zo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of Bo(e))!qo.call(t,c)&&c!==r&&_r(t,c,{get:()=>e[c],enumerable:!(n=jo(e,c))||n.enumerable});return t};var Ur=(t,e,r)=>(r=t!=null?Go(Mo(t)):{},zo(e||!t||!t.__esModule?_r(r,"default",{value:t,enumerable:!0}):r,t));var yi=j((Bd,Ei)=>{var Pe=1e3,De=Pe*60,Te=De*60,Ce=Te*24,Gu=Ce*7,ju=Ce*365.25;Ei.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Bu(t);if(r==="number"&&isFinite(t))return e.long?qu(t):Mu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Bu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ju;case"weeks":case"week":case"w":return r*Gu;case"days":case"day":case"d":return r*Ce;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Te;case"minutes":case"minute":case"mins":case"min":case"m":return r*De;case"seconds":case"second":case"secs":case"sec":case"s":return r*Pe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Mu(t){var e=Math.abs(t);return e>=Ce?Math.round(t/Ce)+"d":e>=Te?Math.round(t/Te)+"h":e>=De?Math.round(t/De)+"m":e>=Pe?Math.round(t/Pe)+"s":t+"ms"}function qu(t){var e=Math.abs(t);return e>=Ce?rt(t,e,Ce,"day"):e>=Te?rt(t,e,Te,"hour"):e>=De?rt(t,e,De,"minute"):e>=Pe?rt(t,e,Pe,"second"):t+" ms"}function rt(t,e,r,n){var c=e>=r*1.5;return Math.round(t/r)+" "+n+(c?"s":"")}});var hr=j((Md,wi)=>{function zu(t){r.debug=r,r.default=r,r.coerce=o,r.disable=l,r.enable=c,r.enabled=i,r.humanize=yi(),r.destroy=g,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let E=0;for(let y=0;y<f.length;y++)E=(E<<5)-E+f.charCodeAt(y),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=e;function r(f){let E,y=null,u,h;function p(...d){if(!p.enabled)return;let m=p,w=Number(new Date),C=w-(E||w);m.diff=C,m.prev=E,m.curr=w,E=w,d[0]=r.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let a=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(L,$)=>{if(L==="%%")return"%";a++;let R=r.formatters[$];if(typeof R=="function"){let F=d[a];L=R.call(m,F),d.splice(a,1),a--}return L}),r.formatArgs.call(m,d),(m.log||r.log).apply(m,d)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(u!==r.namespaces&&(u=r.namespaces,h=r.enabled(f)),h),set:d=>{y=d}}),typeof r.init=="function"&&r.init(p),p}function n(f,E){let y=r(this.namespace+(typeof E>"u"?":":E)+f);return y.log=this.log,y}function c(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let E=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let y of E)y[0]==="-"?r.skips.push(y.slice(1)):r.names.push(y)}function s(f,E){let y=0,u=0,h=-1,p=0;for(;y<f.length;)if(u<E.length&&(E[u]===f[y]||E[u]==="*"))E[u]==="*"?(h=u,p=y,u++):(y++,u++);else if(h!==-1)u=h+1,p++,y=p;else return!1;for(;u<E.length&&E[u]==="*";)u++;return u===E.length}function l(){let f=[...r.names,...r.skips.map(E=>"-"+E)].join(",");return r.enable(""),f}function i(f){for(let E of r.skips)if(s(f,E))return!1;for(let E of r.names)if(s(f,E))return!0;return!1}function o(f){return f instanceof Error?f.stack||f.message:f}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}wi.exports=zu});var Li=j((ae,st)=>{ae.formatArgs=Wu;ae.save=ku;ae.load=Vu;ae.useColors=Hu;ae.storage=Xu();ae.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ae.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Hu(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Wu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+st.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(r++,c==="%c"&&(n=r))}),t.splice(n,0,e)}ae.log=console.debug||console.log||(()=>{});function ku(t){try{t?ae.storage.setItem("debug",t):ae.storage.removeItem("debug")}catch{}}function Vu(){let t;try{t=ae.storage.getItem("debug")||ae.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Xu(){try{return localStorage}catch{}}st.exports=hr()(ae);var{formatters:Yu}=st.exports;Yu.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ci=j((qd,vi)=>{"use strict";vi.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),c=e.indexOf("--");return n!==-1&&(c===-1||n<c)}});var $i=j((zd,Ai)=>{"use strict";var Ku=Ke("os"),Si=Ke("tty"),ue=Ci(),{env:Q}=process,we;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?we=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(we=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?we=1:Q.FORCE_COLOR==="false"?we=0:we=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function pr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function dr(t,e){if(we===0)return 0;if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2;if(t&&!e&&we===void 0)return 0;let r=we||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Ku.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Ju(t){let e=dr(t,t&&t.isTTY);return pr(e)}Ai.exports={supportsColor:Ju,stdout:pr(dr(!0,Si.isatty(1))),stderr:pr(dr(!0,Si.isatty(2)))}});var Ri=j((ee,nt)=>{var Zu=Ke("tty"),it=Ke("util");ee.init=nl;ee.log=rl;ee.formatArgs=el;ee.save=sl;ee.load=il;ee.useColors=Qu;ee.destroy=it.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let t=$i();t&&(t.stderr||t).level>=2&&(ee.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ee.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(c,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Qu(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:Zu.isatty(process.stderr.fd)}function el(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,c="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${c};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+ var Bo=Object.create;var Br=Object.defineProperty;var Mo=Object.getOwnPropertyDescriptor;var qo=Object.getOwnPropertyNames;var zo=Object.getPrototypeOf,Ho=Object.prototype.hasOwnProperty;var Je=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Wo=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of qo(e))!Ho.call(t,c)&&c!==r&&Br(t,c,{get:()=>e[c],enumerable:!(i=Mo(e,c))||i.enumerable});return t};var Mr=(t,e,r)=>(r=t!=null?Bo(zo(t)):{},Wo(e||!t||!t.__esModule?Br(r,"default",{value:t,enumerable:!0}):r,t));var Ci=j((Hd,Li)=>{var Te=1e3,De=Te*60,Fe=De*60,Ce=Fe*24,Bu=Ce*7,Mu=Ce*365.25;Li.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return qu(t);if(r==="number"&&isFinite(t))return e.long?Hu(t):zu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Mu;case"weeks":case"week":case"w":return r*Bu;case"days":case"day":case"d":return r*Ce;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fe;case"minutes":case"minute":case"mins":case"min":case"m":return r*De;case"seconds":case"second":case"secs":case"sec":case"s":return r*Te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function zu(t){var e=Math.abs(t);return e>=Ce?Math.round(t/Ce)+"d":e>=Fe?Math.round(t/Fe)+"h":e>=De?Math.round(t/De)+"m":e>=Te?Math.round(t/Te)+"s":t+"ms"}function Hu(t){var e=Math.abs(t);return e>=Ce?st(t,e,Ce,"day"):e>=Fe?st(t,e,Fe,"hour"):e>=De?st(t,e,De,"minute"):e>=Te?st(t,e,Te,"second"):t+" ms"}function st(t,e,r,i){var c=e>=r*1.5;return Math.round(t/r)+" "+i+(c?"s":"")}});var pr=j((Wd,Si)=>{function Wu(t){r.debug=r,r.default=r,r.coerce=o,r.disable=l,r.enable=c,r.enabled=n,r.humanize=Ci(),r.destroy=g,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let E=0;for(let y=0;y<f.length;y++)E=(E<<5)-E+f.charCodeAt(y),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=e;function r(f){let E,y=null,u,h;function p(...d){if(!p.enabled)return;let m=p,w=Number(new Date),C=w-(E||w);m.diff=C,m.prev=E,m.curr=w,E=w,d[0]=r.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let a=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(v,$)=>{if(v==="%%")return"%";a++;let R=r.formatters[$];if(typeof R=="function"){let F=d[a];v=R.call(m,F),d.splice(a,1),a--}return v}),r.formatArgs.call(m,d),(m.log||r.log).apply(m,d)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=i,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(u!==r.namespaces&&(u=r.namespaces,h=r.enabled(f)),h),set:d=>{y=d}}),typeof r.init=="function"&&r.init(p),p}function i(f,E){let y=r(this.namespace+(typeof E>"u"?":":E)+f);return y.log=this.log,y}function c(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let E=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let y of E)y[0]==="-"?r.skips.push(y.slice(1)):r.names.push(y)}function s(f,E){let y=0,u=0,h=-1,p=0;for(;y<f.length;)if(u<E.length&&(E[u]===f[y]||E[u]==="*"))E[u]==="*"?(h=u,p=y,u++):(y++,u++);else if(h!==-1)u=h+1,p++,y=p;else return!1;for(;u<E.length&&E[u]==="*";)u++;return u===E.length}function l(){let f=[...r.names,...r.skips.map(E=>"-"+E)].join(",");return r.enable(""),f}function n(f){for(let E of r.skips)if(s(f,E))return!1;for(let E of r.names)if(s(f,E))return!0;return!1}function o(f){return f instanceof Error?f.stack||f.message:f}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Si.exports=Wu});var Ai=j((ae,it)=>{ae.formatArgs=Vu;ae.save=Xu;ae.load=Yu;ae.useColors=ku;ae.storage=Ku();ae.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ae.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ku(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Vu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+it.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(r++,c==="%c"&&(i=r))}),t.splice(i,0,e)}ae.log=console.debug||console.log||(()=>{});function Xu(t){try{t?ae.storage.setItem("debug",t):ae.storage.removeItem("debug")}catch{}}function Yu(){let t;try{t=ae.storage.getItem("debug")||ae.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ku(){try{return localStorage}catch{}}it.exports=pr()(ae);var{formatters:Ju}=it.exports;Ju.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Oi=j((kd,$i)=>{"use strict";$i.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),c=e.indexOf("--");return i!==-1&&(c===-1||i<c)}});var xi=j((Vd,Ii)=>{"use strict";var Zu=Je("os"),Ri=Je("tty"),ue=Oi(),{env:Q}=process,we;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?we=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(we=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?we=1:Q.FORCE_COLOR==="false"?we=0:we=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function dr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mr(t,e){if(we===0)return 0;if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2;if(t&&!e&&we===void 0)return 0;let r=we||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let i=Zu.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let i=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Qu(t){let e=mr(t,t&&t.isTTY);return dr(e)}Ii.exports={supportsColor:Qu,stdout:dr(mr(!0,Ri.isatty(1))),stderr:dr(mr(!0,Ri.isatty(2)))}});var Pi=j((ee,ot)=>{var el=Je("tty"),nt=Je("util");ee.init=al;ee.log=il;ee.formatArgs=rl;ee.save=nl;ee.load=ol;ee.useColors=tl;ee.destroy=nt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let t=xi();t&&(t.stderr||t).level>=2&&(ee.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ee.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(c,s)=>s.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function tl(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:el.isatty(process.stderr.fd)}function rl(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,c="\x1B[3"+(i<8?i:"8;5;"+i),s=` ${c};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
3
3
  `).join(`
4
- `+s),t.push(c+"m+"+nt.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=tl()+e+" "+t[0]}function tl(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}function rl(...t){return process.stderr.write(it.formatWithOptions(ee.inspectOpts,...t)+`
5
- `)}function sl(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function il(){return process.env.DEBUG}function nl(t){t.inspectOpts={};let e=Object.keys(ee.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ee.inspectOpts[e[r]]}nt.exports=hr()(ee);var{formatters:Oi}=nt.exports;Oi.o=function(t){return this.inspectOpts.colors=this.useColors,it.inspect(t,this.inspectOpts).split(`
6
- `).map(e=>e.trim()).join(" ")};Oi.O=function(t){return this.inspectOpts.colors=this.useColors,it.inspect(t,this.inspectOpts)}});var Ii=j((Hd,mr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mr.exports=Li():mr.exports=Ri()});var Me=j((Wd,xi)=>{"use strict";var ol="2.0.0",al=Number.MAX_SAFE_INTEGER||9007199254740991,cl=16,ul=250,ll=["major","premajor","minor","preminor","patch","prepatch","prerelease"];xi.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:cl,MAX_SAFE_BUILD_LENGTH:ul,MAX_SAFE_INTEGER:al,RELEASE_TYPES:ll,SEMVER_SPEC_VERSION:ol,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var qe=j((kd,Ni)=>{"use strict";var fl=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ni.exports=fl});var Fe=j((pe,Pi)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:gr,MAX_SAFE_BUILD_LENGTH:hl,MAX_LENGTH:pl}=Me(),dl=qe();pe=Pi.exports={};var ml=pe.re=[],gl=pe.safeRe=[],P=pe.src=[],bl=pe.safeSrc=[],D=pe.t={},El=0,br="[a-zA-Z0-9-]",yl=[["\\s",1],["\\d",pl],[br,hl]],wl=t=>{for(let[e,r]of yl)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},q=(t,e,r)=>{let n=wl(e),c=El++;dl(t,c,e),D[t]=c,P[c]=e,bl[c]=n,ml[c]=new RegExp(e,r?"g":void 0),gl[c]=new RegExp(n,r?"g":void 0)};q("NUMERICIDENTIFIER","0|[1-9]\\d*");q("NUMERICIDENTIFIERLOOSE","\\d+");q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${br}*`);q("MAINVERSION",`(${P[D.NUMERICIDENTIFIER]})\\.(${P[D.NUMERICIDENTIFIER]})\\.(${P[D.NUMERICIDENTIFIER]})`);q("MAINVERSIONLOOSE",`(${P[D.NUMERICIDENTIFIERLOOSE]})\\.(${P[D.NUMERICIDENTIFIERLOOSE]})\\.(${P[D.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASEIDENTIFIER",`(?:${P[D.NONNUMERICIDENTIFIER]}|${P[D.NUMERICIDENTIFIER]})`);q("PRERELEASEIDENTIFIERLOOSE",`(?:${P[D.NONNUMERICIDENTIFIER]}|${P[D.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASE",`(?:-(${P[D.PRERELEASEIDENTIFIER]}(?:\\.${P[D.PRERELEASEIDENTIFIER]})*))`);q("PRERELEASELOOSE",`(?:-?(${P[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${P[D.PRERELEASEIDENTIFIERLOOSE]})*))`);q("BUILDIDENTIFIER",`${br}+`);q("BUILD",`(?:\\+(${P[D.BUILDIDENTIFIER]}(?:\\.${P[D.BUILDIDENTIFIER]})*))`);q("FULLPLAIN",`v?${P[D.MAINVERSION]}${P[D.PRERELEASE]}?${P[D.BUILD]}?`);q("FULL",`^${P[D.FULLPLAIN]}$`);q("LOOSEPLAIN",`[v=\\s]*${P[D.MAINVERSIONLOOSE]}${P[D.PRERELEASELOOSE]}?${P[D.BUILD]}?`);q("LOOSE",`^${P[D.LOOSEPLAIN]}$`);q("GTLT","((?:<|>)?=?)");q("XRANGEIDENTIFIERLOOSE",`${P[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);q("XRANGEIDENTIFIER",`${P[D.NUMERICIDENTIFIER]}|x|X|\\*`);q("XRANGEPLAIN",`[v=\\s]*(${P[D.XRANGEIDENTIFIER]})(?:\\.(${P[D.XRANGEIDENTIFIER]})(?:\\.(${P[D.XRANGEIDENTIFIER]})(?:${P[D.PRERELEASE]})?${P[D.BUILD]}?)?)?`);q("XRANGEPLAINLOOSE",`[v=\\s]*(${P[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[D.XRANGEIDENTIFIERLOOSE]})(?:${P[D.PRERELEASELOOSE]})?${P[D.BUILD]}?)?)?`);q("XRANGE",`^${P[D.GTLT]}\\s*${P[D.XRANGEPLAIN]}$`);q("XRANGELOOSE",`^${P[D.GTLT]}\\s*${P[D.XRANGEPLAINLOOSE]}$`);q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${gr}})(?:\\.(\\d{1,${gr}}))?(?:\\.(\\d{1,${gr}}))?`);q("COERCE",`${P[D.COERCEPLAIN]}(?:$|[^\\d])`);q("COERCEFULL",P[D.COERCEPLAIN]+`(?:${P[D.PRERELEASE]})?(?:${P[D.BUILD]})?(?:$|[^\\d])`);q("COERCERTL",P[D.COERCE],!0);q("COERCERTLFULL",P[D.COERCEFULL],!0);q("LONETILDE","(?:~>?)");q("TILDETRIM",`(\\s*)${P[D.LONETILDE]}\\s+`,!0);pe.tildeTrimReplace="$1~";q("TILDE",`^${P[D.LONETILDE]}${P[D.XRANGEPLAIN]}$`);q("TILDELOOSE",`^${P[D.LONETILDE]}${P[D.XRANGEPLAINLOOSE]}$`);q("LONECARET","(?:\\^)");q("CARETTRIM",`(\\s*)${P[D.LONECARET]}\\s+`,!0);pe.caretTrimReplace="$1^";q("CARET",`^${P[D.LONECARET]}${P[D.XRANGEPLAIN]}$`);q("CARETLOOSE",`^${P[D.LONECARET]}${P[D.XRANGEPLAINLOOSE]}$`);q("COMPARATORLOOSE",`^${P[D.GTLT]}\\s*(${P[D.LOOSEPLAIN]})$|^$`);q("COMPARATOR",`^${P[D.GTLT]}\\s*(${P[D.FULLPLAIN]})$|^$`);q("COMPARATORTRIM",`(\\s*)${P[D.GTLT]}\\s*(${P[D.LOOSEPLAIN]}|${P[D.XRANGEPLAIN]})`,!0);pe.comparatorTrimReplace="$1$2$3";q("HYPHENRANGE",`^\\s*(${P[D.XRANGEPLAIN]})\\s+-\\s+(${P[D.XRANGEPLAIN]})\\s*$`);q("HYPHENRANGELOOSE",`^\\s*(${P[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${P[D.XRANGEPLAINLOOSE]})\\s*$`);q("STAR","(<|>)?=?\\s*\\*");q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ot=j((Vd,Di)=>{"use strict";var Ll=Object.freeze({loose:!0}),vl=Object.freeze({}),Cl=t=>t?typeof t!="object"?Ll:t:vl;Di.exports=Cl});var Er=j((Xd,_i)=>{"use strict";var Ti=/^[0-9]+$/,Fi=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Ti.test(t),n=Ti.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},Sl=(t,e)=>Fi(e,t);_i.exports={compareIdentifiers:Fi,rcompareIdentifiers:Sl}});var re=j((Yd,Gi)=>{"use strict";var at=qe(),{MAX_LENGTH:Ui,MAX_SAFE_INTEGER:ct}=Me(),{safeRe:ut,t:lt}=Fe(),Al=ot(),{compareIdentifiers:yr}=Er(),wr=class t{constructor(e,r){if(r=Al(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>Ui)throw new TypeError(`version is longer than ${Ui} characters`);at("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?ut[lt.LOOSE]:ut[lt.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>ct||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ct||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ct||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){let s=+c;if(s>=0&&s<ct)return s}return c}):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(at("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],c=e.prerelease[r];if(at("prerelease compare",r,n,c),n===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(n===void 0)return-1;if(n===c)continue;return yr(n,c)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],c=e.build[r];if(at("build compare",r,n,c),n===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(n===void 0)return-1;if(n===c)continue;return yr(n,c)}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 c=`-${r}`.match(this.options.loose?ut[lt.PRERELEASELOOSE]:ut[lt.PRERELEASE]);if(!c||c[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 c=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[c];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(c)}}if(r){let s=[r,c];n===!1&&(s=[r]),yr(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}};Gi.exports=wr});var Se=j((Kd,Bi)=>{"use strict";var ji=re(),$l=(t,e,r=!1)=>{if(t instanceof ji)return t;try{return new ji(t,e)}catch(n){if(!r)return null;throw n}};Bi.exports=$l});var qi=j((Jd,Mi)=>{"use strict";var Ol=Se(),Rl=(t,e)=>{let r=Ol(t,e);return r?r.version:null};Mi.exports=Rl});var Hi=j((Zd,zi)=>{"use strict";var Il=Se(),xl=(t,e)=>{let r=Il(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};zi.exports=xl});var Vi=j((Qd,ki)=>{"use strict";var Wi=re(),Nl=(t,e,r,n,c)=>{typeof r=="string"&&(c=n,n=r,r=void 0);try{return new Wi(t instanceof Wi?t.version:t,r).inc(e,n,c).version}catch{return null}};ki.exports=Nl});var Ki=j((e0,Yi)=>{"use strict";var Xi=Se(),Pl=(t,e)=>{let r=Xi(t,null,!0),n=Xi(e,null,!0),c=r.compare(n);if(c===0)return null;let s=c>0,l=s?r:n,i=s?n:r,o=!!l.prerelease.length;if(!!i.prerelease.length&&!o){if(!i.patch&&!i.minor)return"major";if(i.compareMain(l)===0)return i.minor&&!i.patch?"minor":"patch"}let f=o?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};Yi.exports=Pl});var Zi=j((t0,Ji)=>{"use strict";var Dl=re(),Tl=(t,e)=>new Dl(t,e).major;Ji.exports=Tl});var en=j((r0,Qi)=>{"use strict";var Fl=re(),_l=(t,e)=>new Fl(t,e).minor;Qi.exports=_l});var rn=j((s0,tn)=>{"use strict";var Ul=re(),Gl=(t,e)=>new Ul(t,e).patch;tn.exports=Gl});var nn=j((i0,sn)=>{"use strict";var jl=Se(),Bl=(t,e)=>{let r=jl(t,e);return r&&r.prerelease.length?r.prerelease:null};sn.exports=Bl});var le=j((n0,an)=>{"use strict";var on=re(),Ml=(t,e,r)=>new on(t,r).compare(new on(e,r));an.exports=Ml});var un=j((o0,cn)=>{"use strict";var ql=le(),zl=(t,e,r)=>ql(e,t,r);cn.exports=zl});var fn=j((a0,ln)=>{"use strict";var Hl=le(),Wl=(t,e)=>Hl(t,e,!0);ln.exports=Wl});var ft=j((c0,pn)=>{"use strict";var hn=re(),kl=(t,e,r)=>{let n=new hn(t,r),c=new hn(e,r);return n.compare(c)||n.compareBuild(c)};pn.exports=kl});var mn=j((u0,dn)=>{"use strict";var Vl=ft(),Xl=(t,e)=>t.sort((r,n)=>Vl(r,n,e));dn.exports=Xl});var bn=j((l0,gn)=>{"use strict";var Yl=ft(),Kl=(t,e)=>t.sort((r,n)=>Yl(n,r,e));gn.exports=Kl});var ze=j((f0,En)=>{"use strict";var Jl=le(),Zl=(t,e,r)=>Jl(t,e,r)>0;En.exports=Zl});var ht=j((h0,yn)=>{"use strict";var Ql=le(),ef=(t,e,r)=>Ql(t,e,r)<0;yn.exports=ef});var Lr=j((p0,wn)=>{"use strict";var tf=le(),rf=(t,e,r)=>tf(t,e,r)===0;wn.exports=rf});var vr=j((d0,Ln)=>{"use strict";var sf=le(),nf=(t,e,r)=>sf(t,e,r)!==0;Ln.exports=nf});var pt=j((m0,vn)=>{"use strict";var of=le(),af=(t,e,r)=>of(t,e,r)>=0;vn.exports=af});var dt=j((g0,Cn)=>{"use strict";var cf=le(),uf=(t,e,r)=>cf(t,e,r)<=0;Cn.exports=uf});var Cr=j((b0,Sn)=>{"use strict";var lf=Lr(),ff=vr(),hf=ze(),pf=pt(),df=ht(),mf=dt(),gf=(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 lf(t,r,n);case"!=":return ff(t,r,n);case">":return hf(t,r,n);case">=":return pf(t,r,n);case"<":return df(t,r,n);case"<=":return mf(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Sn.exports=gf});var $n=j((E0,An)=>{"use strict";var bf=re(),Ef=Se(),{safeRe:mt,t:gt}=Fe(),yf=(t,e)=>{if(t instanceof bf)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?mt[gt.COERCEFULL]:mt[gt.COERCE]);else{let o=e.includePrerelease?mt[gt.COERCERTLFULL]:mt[gt.COERCERTL],g;for(;(g=o.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||g.index+g[0].length!==r.index+r[0].length)&&(r=g),o.lastIndex=g.index+g[1].length+g[2].length;o.lastIndex=-1}if(r===null)return null;let n=r[2],c=r[3]||"0",s=r[4]||"0",l=e.includePrerelease&&r[5]?`-${r[5]}`:"",i=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Ef(`${n}.${c}.${s}${l}${i}`,e)};An.exports=yf});var Rn=j((y0,On)=>{"use strict";var Sr=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 c=this.map.keys().next().value;this.delete(c)}this.map.set(e,r)}return this}};On.exports=Sr});var fe=j((w0,Pn)=>{"use strict";var wf=/\s+/g,Ar=class t{constructor(e,r){if(r=vf(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof $r)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(wf," "),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(c=>!xn(c[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&If(c[0])){this.set=[c];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&&Of)|(this.options.loose&&Rf))+":"+e,c=In.get(n);if(c)return c;let s=this.options.loose,l=s?ne[se.HYPHENRANGELOOSE]:ne[se.HYPHENRANGE];e=e.replace(l,jf(this.options.includePrerelease)),X("hyphen replace",e),e=e.replace(ne[se.COMPARATORTRIM],Sf),X("comparator trim",e),e=e.replace(ne[se.TILDETRIM],Af),X("tilde trim",e),e=e.replace(ne[se.CARETTRIM],$f),X("caret trim",e);let i=e.split(" ").map(E=>xf(E,this.options)).join(" ").split(/\s+/).map(E=>Gf(E,this.options));s&&(i=i.filter(E=>(X("loose invalid filter",E,this.options),!!E.match(ne[se.COMPARATORLOOSE])))),X("range list",i);let o=new Map,g=i.map(E=>new $r(E,this.options));for(let E of g){if(xn(E))return[E];o.set(E.value,E)}o.size>1&&o.has("")&&o.delete("");let f=[...o.values()];return In.set(n,f),f}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Nn(n,r)&&e.set.some(c=>Nn(c,r)&&n.every(s=>c.every(l=>s.intersects(l,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Cf(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Bf(this.set[r],e,this.options))return!0;return!1}};Pn.exports=Ar;var Lf=Rn(),In=new Lf,vf=ot(),$r=He(),X=qe(),Cf=re(),{safeRe:ne,t:se,comparatorTrimReplace:Sf,tildeTrimReplace:Af,caretTrimReplace:$f}=Fe(),{FLAG_INCLUDE_PRERELEASE:Of,FLAG_LOOSE:Rf}=Me(),xn=t=>t.value==="<0.0.0-0",If=t=>t.value==="",Nn=(t,e)=>{let r=!0,n=t.slice(),c=n.pop();for(;r&&n.length;)r=n.every(s=>c.intersects(s,e)),c=n.pop();return r},xf=(t,e)=>(t=t.replace(ne[se.BUILD],""),X("comp",t,e),t=Df(t,e),X("caret",t),t=Nf(t,e),X("tildes",t),t=Ff(t,e),X("xrange",t),t=Uf(t,e),X("stars",t),t),oe=t=>!t||t.toLowerCase()==="x"||t==="*",Nf=(t,e)=>t.trim().split(/\s+/).map(r=>Pf(r,e)).join(" "),Pf=(t,e)=>{let r=e.loose?ne[se.TILDELOOSE]:ne[se.TILDE];return t.replace(r,(n,c,s,l,i)=>{X("tilde",t,n,c,s,l,i);let o;return oe(c)?o="":oe(s)?o=`>=${c}.0.0 <${+c+1}.0.0-0`:oe(l)?o=`>=${c}.${s}.0 <${c}.${+s+1}.0-0`:i?(X("replaceTilde pr",i),o=`>=${c}.${s}.${l}-${i} <${c}.${+s+1}.0-0`):o=`>=${c}.${s}.${l} <${c}.${+s+1}.0-0`,X("tilde return",o),o})},Df=(t,e)=>t.trim().split(/\s+/).map(r=>Tf(r,e)).join(" "),Tf=(t,e)=>{X("caret",t,e);let r=e.loose?ne[se.CARETLOOSE]:ne[se.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(c,s,l,i,o)=>{X("caret",t,c,s,l,i,o);let g;return oe(s)?g="":oe(l)?g=`>=${s}.0.0${n} <${+s+1}.0.0-0`:oe(i)?s==="0"?g=`>=${s}.${l}.0${n} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.0${n} <${+s+1}.0.0-0`:o?(X("replaceCaret pr",o),s==="0"?l==="0"?g=`>=${s}.${l}.${i}-${o} <${s}.${l}.${+i+1}-0`:g=`>=${s}.${l}.${i}-${o} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${i}-${o} <${+s+1}.0.0-0`):(X("no pr"),s==="0"?l==="0"?g=`>=${s}.${l}.${i}${n} <${s}.${l}.${+i+1}-0`:g=`>=${s}.${l}.${i}${n} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${i} <${+s+1}.0.0-0`),X("caret return",g),g})},Ff=(t,e)=>(X("replaceXRanges",t,e),t.split(/\s+/).map(r=>_f(r,e)).join(" ")),_f=(t,e)=>{t=t.trim();let r=e.loose?ne[se.XRANGELOOSE]:ne[se.XRANGE];return t.replace(r,(n,c,s,l,i,o)=>{X("xRange",t,n,c,s,l,i,o);let g=oe(s),f=g||oe(l),E=f||oe(i),y=E;return c==="="&&y&&(c=""),o=e.includePrerelease?"-0":"",g?c===">"||c==="<"?n="<0.0.0-0":n="*":c&&y?(f&&(l=0),i=0,c===">"?(c=">=",f?(s=+s+1,l=0,i=0):(l=+l+1,i=0)):c==="<="&&(c="<",f?s=+s+1:l=+l+1),c==="<"&&(o="-0"),n=`${c+s}.${l}.${i}${o}`):f?n=`>=${s}.0.0${o} <${+s+1}.0.0-0`:E&&(n=`>=${s}.${l}.0${o} <${s}.${+l+1}.0-0`),X("xRange return",n),n})},Uf=(t,e)=>(X("replaceStars",t,e),t.trim().replace(ne[se.STAR],"")),Gf=(t,e)=>(X("replaceGTE0",t,e),t.trim().replace(ne[e.includePrerelease?se.GTE0PRE:se.GTE0],"")),jf=t=>(e,r,n,c,s,l,i,o,g,f,E,y)=>(oe(n)?r="":oe(c)?r=`>=${n}.0.0${t?"-0":""}`:oe(s)?r=`>=${n}.${c}.0${t?"-0":""}`:l?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,oe(g)?o="":oe(f)?o=`<${+g+1}.0.0-0`:oe(E)?o=`<${g}.${+f+1}.0-0`:y?o=`<=${g}.${f}.${E}-${y}`:t?o=`<${g}.${f}.${+E+1}-0`:o=`<=${o}`,`${r} ${o}`.trim()),Bf=(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(X(t[n].semver),t[n].semver!==$r.ANY&&t[n].semver.prerelease.length>0){let c=t[n].semver;if(c.major===e.major&&c.minor===e.minor&&c.patch===e.patch)return!0}return!1}return!0}});var He=j((L0,Gn)=>{"use strict";var We=Symbol("SemVer ANY"),Ir=class t{static get ANY(){return We}constructor(e,r){if(r=Dn(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Rr("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===We?this.value="":this.value=this.operator+this.semver.version,Rr("comp",this)}parse(e){let r=this.options.loose?Tn[Fn.COMPARATORLOOSE]:Tn[Fn.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 _n(n[2],this.options.loose):this.semver=We}toString(){return this.value}test(e){if(Rr("Comparator.test",e,this.options.loose),this.semver===We||e===We)return!0;if(typeof e=="string")try{e=new _n(e,this.options)}catch{return!1}return Or(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 Un(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Un(this.value,r).test(e.semver):(r=Dn(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("=")||Or(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Or(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Gn.exports=Ir;var Dn=ot(),{safeRe:Tn,t:Fn}=Fe(),Or=Cr(),Rr=qe(),_n=re(),Un=fe()});var ke=j((v0,jn)=>{"use strict";var Mf=fe(),qf=(t,e,r)=>{try{e=new Mf(e,r)}catch{return!1}return e.test(t)};jn.exports=qf});var Mn=j((C0,Bn)=>{"use strict";var zf=fe(),Hf=(t,e)=>new zf(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Bn.exports=Hf});var zn=j((S0,qn)=>{"use strict";var Wf=re(),kf=fe(),Vf=(t,e,r)=>{let n=null,c=null,s=null;try{s=new kf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!n||c.compare(l)===-1)&&(n=l,c=new Wf(n,r))}),n};qn.exports=Vf});var Wn=j((A0,Hn)=>{"use strict";var Xf=re(),Yf=fe(),Kf=(t,e,r)=>{let n=null,c=null,s=null;try{s=new Yf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!n||c.compare(l)===1)&&(n=l,c=new Xf(n,r))}),n};Hn.exports=Kf});var Xn=j(($0,Vn)=>{"use strict";var xr=re(),Jf=fe(),kn=ze(),Zf=(t,e)=>{t=new Jf(t,e);let r=new xr("0.0.0");if(t.test(r)||(r=new xr("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let c=t.set[n],s=null;c.forEach(l=>{let i=new xr(l.semver.version);switch(l.operator){case">":i.prerelease.length===0?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!s||kn(i,s))&&(s=i);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),s&&(!r||kn(r,s))&&(r=s)}return r&&t.test(r)?r:null};Vn.exports=Zf});var Kn=j((O0,Yn)=>{"use strict";var Qf=fe(),eh=(t,e)=>{try{return new Qf(t,e).range||"*"}catch{return null}};Yn.exports=eh});var bt=j((R0,eo)=>{"use strict";var th=re(),Qn=He(),{ANY:rh}=Qn,sh=fe(),ih=ke(),Jn=ze(),Zn=ht(),nh=dt(),oh=pt(),ah=(t,e,r,n)=>{t=new th(t,n),e=new sh(e,n);let c,s,l,i,o;switch(r){case">":c=Jn,s=nh,l=Zn,i=">",o=">=";break;case"<":c=Zn,s=oh,l=Jn,i="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ih(t,e,n))return!1;for(let g=0;g<e.set.length;++g){let f=e.set[g],E=null,y=null;if(f.forEach(u=>{u.semver===rh&&(u=new Qn(">=0.0.0")),E=E||u,y=y||u,c(u.semver,E.semver,n)?E=u:l(u.semver,y.semver,n)&&(y=u)}),E.operator===i||E.operator===o||(!y.operator||y.operator===i)&&s(t,y.semver))return!1;if(y.operator===o&&l(t,y.semver))return!1}return!0};eo.exports=ah});var ro=j((I0,to)=>{"use strict";var ch=bt(),uh=(t,e,r)=>ch(t,e,">",r);to.exports=uh});var io=j((x0,so)=>{"use strict";var lh=bt(),fh=(t,e,r)=>lh(t,e,"<",r);so.exports=fh});var ao=j((N0,oo)=>{"use strict";var no=fe(),hh=(t,e,r)=>(t=new no(t,r),e=new no(e,r),t.intersects(e,r));oo.exports=hh});var uo=j((P0,co)=>{"use strict";var ph=ke(),dh=le();co.exports=(t,e,r)=>{let n=[],c=null,s=null,l=t.sort((f,E)=>dh(f,E,r));for(let f of l)ph(f,e,r)?(s=f,c||(c=f)):(s&&n.push([c,s]),s=null,c=null);c&&n.push([c,null]);let i=[];for(let[f,E]of n)f===E?i.push(f):!E&&f===l[0]?i.push("*"):E?f===l[0]?i.push(`<=${E}`):i.push(`${f} - ${E}`):i.push(`>=${f}`);let o=i.join(" || "),g=typeof e.raw=="string"?e.raw:String(e);return o.length<g.length?o:e}});var go=j((D0,mo)=>{"use strict";var lo=fe(),Pr=He(),{ANY:Nr}=Pr,Ve=ke(),Dr=le(),mh=(t,e,r={})=>{if(t===e)return!0;t=new lo(t,r),e=new lo(e,r);let n=!1;e:for(let c of t.set){for(let s of e.set){let l=bh(c,s,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},gh=[new Pr(">=0.0.0-0")],fo=[new Pr(">=0.0.0")],bh=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Nr){if(e.length===1&&e[0].semver===Nr)return!0;r.includePrerelease?t=gh:t=fo}if(e.length===1&&e[0].semver===Nr){if(r.includePrerelease)return!0;e=fo}let n=new Set,c,s;for(let u of t)u.operator===">"||u.operator===">="?c=ho(c,u,r):u.operator==="<"||u.operator==="<="?s=po(s,u,r):n.add(u.semver);if(n.size>1)return null;let l;if(c&&s){if(l=Dr(c.semver,s.semver,r),l>0)return null;if(l===0&&(c.operator!==">="||s.operator!=="<="))return null}for(let u of n){if(c&&!Ve(u,String(c),r)||s&&!Ve(u,String(s),r))return null;for(let h of e)if(!Ve(u,String(h),r))return!1;return!0}let i,o,g,f,E=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,y=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:!1;E&&E.prerelease.length===1&&s.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let u of e){if(f=f||u.operator===">"||u.operator===">=",g=g||u.operator==="<"||u.operator==="<=",c){if(y&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===y.major&&u.semver.minor===y.minor&&u.semver.patch===y.patch&&(y=!1),u.operator===">"||u.operator===">="){if(i=ho(c,u,r),i===u&&i!==c)return!1}else if(c.operator===">="&&!Ve(c.semver,String(u),r))return!1}if(s){if(E&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===E.major&&u.semver.minor===E.minor&&u.semver.patch===E.patch&&(E=!1),u.operator==="<"||u.operator==="<="){if(o=po(s,u,r),o===u&&o!==s)return!1}else if(s.operator==="<="&&!Ve(s.semver,String(u),r))return!1}if(!u.operator&&(s||c)&&l!==0)return!1}return!(c&&g&&!s&&l!==0||s&&f&&!c&&l!==0||y||E)},ho=(t,e,r)=>{if(!t)return e;let n=Dr(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},po=(t,e,r)=>{if(!t)return e;let n=Dr(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};mo.exports=mh});var wo=j((T0,yo)=>{"use strict";var Tr=Fe(),bo=Me(),Eh=re(),Eo=Er(),yh=Se(),wh=qi(),Lh=Hi(),vh=Vi(),Ch=Ki(),Sh=Zi(),Ah=en(),$h=rn(),Oh=nn(),Rh=le(),Ih=un(),xh=fn(),Nh=ft(),Ph=mn(),Dh=bn(),Th=ze(),Fh=ht(),_h=Lr(),Uh=vr(),Gh=pt(),jh=dt(),Bh=Cr(),Mh=$n(),qh=He(),zh=fe(),Hh=ke(),Wh=Mn(),kh=zn(),Vh=Wn(),Xh=Xn(),Yh=Kn(),Kh=bt(),Jh=ro(),Zh=io(),Qh=ao(),ep=uo(),tp=go();yo.exports={parse:yh,valid:wh,clean:Lh,inc:vh,diff:Ch,major:Sh,minor:Ah,patch:$h,prerelease:Oh,compare:Rh,rcompare:Ih,compareLoose:xh,compareBuild:Nh,sort:Ph,rsort:Dh,gt:Th,lt:Fh,eq:_h,neq:Uh,gte:Gh,lte:jh,cmp:Bh,coerce:Mh,Comparator:qh,Range:zh,satisfies:Hh,toComparators:Wh,maxSatisfying:kh,minSatisfying:Vh,minVersion:Xh,validRange:Yh,outside:Kh,gtr:Jh,ltr:Zh,intersects:Qh,simplifyRange:ep,subset:tp,SemVer:Eh,re:Tr.re,src:Tr.src,tokens:Tr.t,SEMVER_SPEC_VERSION:bo.SEMVER_SPEC_VERSION,RELEASE_TYPES:bo.RELEASE_TYPES,compareIdentifiers:Eo.compareIdentifiers,rcompareIdentifiers:Eo.rcompareIdentifiers}});import{pathToFileURL as td}from"node:url";import fr from"node:process";import Bs,{format as Ho}from"util";import{resolve as Wo,normalize as ko}from"path";import{readFileSync as Vo}from"fs";import Ms,{createRequire as Gr}from"node:module";import ye from"node:path";import Xo from"node:process";import Yo,{fileURLToPath as qs}from"node:url";import zs from"node:fs";import ar from"url";function je(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",n=!1,c=t.match(/^-+/);for(let s=c?c[0].length:0;s<t.length;s++){let l=t.charAt(s);n&&(n=!1,l=l.toUpperCase()),s!==0&&(l==="-"||l==="_")?n=!0:l!=="-"&&l!=="_"&&(r+=l)}return r}}function Hs(t,e){let r=t.toLowerCase();e=e||"-";let n="";for(let c=0;c<t.length;c++){let s=r.charAt(c),l=t.charAt(c);s!==l&&c>0?n+=`${e}${r.charAt(c)}`:n+=l}return n}function Ws(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 Ko(t){if(Array.isArray(t))return t.map(l=>typeof l!="string"?l+"":l);t=t.trim();let e=0,r=null,n=null,c=null,s=[];for(let l=0;l<t.length;l++){if(r=n,n=t.charAt(l),n===" "&&!c){r!==" "&&e++;continue}n===c?c=null:(n==="'"||n==='"')&&!c&&(c=n),s[e]||(s[e]=""),s[e]+=n}return s}var he;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(he||(he={}));var ge,sr=class{constructor(e){ge=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),c=Ko(e),s=typeof e=="string",l=Jo(Object.assign(Object.create(null),n.alias)),i=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),o=Object.assign(Object.create(null),n.default),g=n.configObjects||[],f=n.envPrefix,E=i["populate--"],y=E?"--":"_",u=Object.create(null),h=Object.create(null),p=n.__||ge.format,d={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:[]},m=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+i["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(v){let A=typeof v=="object"?v.key:v,I=Object.keys(v).map(function(O){return{boolean:"bools",string:"strings",number:"numbers"}[O]}).filter(Boolean).pop();I&&(d[I][A]=!0),d.arrays[A]=!0,d.keys.push(A)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(v){d.bools[v]=!0,d.keys.push(v)}),[].concat(n.string||[]).filter(Boolean).forEach(function(v){d.strings[v]=!0,d.keys.push(v)}),[].concat(n.number||[]).filter(Boolean).forEach(function(v){d.numbers[v]=!0,d.keys.push(v)}),[].concat(n.count||[]).filter(Boolean).forEach(function(v){d.counts[v]=!0,d.keys.push(v)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(v){d.normalize[v]=!0,d.keys.push(v)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([v,A])=>{typeof A=="number"&&(d.nargs[v]=A,d.keys.push(v))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([v,A])=>{typeof A=="function"&&(d.coercions[v]=A,d.keys.push(v))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(v){d.configs[v]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([v,A])=>{(typeof A=="boolean"||typeof A=="function")&&(d.configs[v]=A)})),Ae(n.key,l,n.default,d.arrays),Object.keys(o).forEach(function(v){(d.aliases[v]||[]).forEach(function(A){o[A]=o[v]})});let C=null;Uo();let a=[],b=Object.assign(Object.create(null),{_:[]}),L={};for(let v=0;v<c.length;v++){let A=c[v],I=A.replace(/^-{3,}/,"---"),O,S,_,N,U,Z;if(A!=="--"&&/^-/.test(A)&&Ye(A))$(A);else if(I.match(/^---+(=|$)/)){$(A);continue}else if(A.match(/^--.+=/)||!i["short-option-groups"]&&A.match(/^-.+=/))N=A.match(/^--?([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&(M(N[1],d.arrays)?v=F(v,N[1],c,N[2]):M(N[1],d.nargs)!==!1?v=R(v,N[1],c,N[2]):T(N[1],N[2],!0));else if(A.match(w)&&i["boolean-negation"])N=A.match(w),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],T(S,M(S,d.arrays)?[!1]:!1));else if(A.match(/^--.+/)||!i["short-option-groups"]&&A.match(/^-[^-]+/))N=A.match(/^--?(.+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],M(S,d.arrays)?v=F(v,S,c):M(S,d.nargs)!==!1?v=R(v,S,c):(U=c[v+1],U!==void 0&&(!U.match(/^-/)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(T(S,U),v++):T(S,$e(S))));else if(A.match(/^-.\..+=/))N=A.match(/^-([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&T(N[1],N[2]);else if(A.match(/^-.\..+/)&&!A.match(m))U=c[v+1],N=A.match(/^-(.\..+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],U!==void 0&&!U.match(/^-/)&&!M(S,d.bools)&&!M(S,d.counts)?(T(S,U),v++):T(S,$e(S)));else if(A.match(/^-[^-]+/)&&!A.match(m)){_=A.slice(1,-1).split(""),O=!1;for(let ie=0;ie<_.length;ie++){if(U=A.slice(ie+2),_[ie+1]&&_[ie+1]==="="){Z=A.slice(ie+3),S=_[ie],M(S,d.arrays)?v=F(v,S,c,Z):M(S,d.nargs)!==!1?v=R(v,S,c,Z):T(S,Z),O=!0;break}if(U==="-"){T(_[ie],U);continue}if(/[A-Za-z]/.test(_[ie])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(U)&&M(U,d.bools)===!1){T(_[ie],U),O=!0;break}if(_[ie+1]&&_[ie+1].match(/\W/)){T(_[ie],U),O=!0;break}else T(_[ie],$e(_[ie]))}S=A.slice(-1)[0],!O&&S!=="-"&&(M(S,d.arrays)?v=F(v,S,c):M(S,d.nargs)!==!1?v=R(v,S,c):(U=c[v+1],U!==void 0&&(!/^(-|--)[^-]/.test(U)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(T(S,U),v++):T(S,$e(S))))}else if(A.match(/^-[0-9]$/)&&A.match(m)&&M(A.slice(1),d.bools))S=A.slice(1),T(S,$e(S));else if(A==="--"){a=c.slice(v+1);break}else if(i["halt-at-non-option"]){a=c.slice(v);break}else $(A)}z(b,!0),z(b,!1),H(b),B(),J(b,d.aliases,o,!0),Y(b),i["set-placeholder-key"]&&V(b),Object.keys(d.counts).forEach(function(v){K(b,v.split("."))||T(v,0)}),E&&a.length&&(b[y]=[]),a.forEach(function(v){b[y].push(v)}),i["camel-case-expansion"]&&i["strip-dashed"]&&Object.keys(b).filter(v=>v!=="--"&&v.includes("-")).forEach(v=>{delete b[v]}),i["strip-aliased"]&&[].concat(...Object.keys(l).map(v=>l[v])).forEach(v=>{i["camel-case-expansion"]&&v.includes("-")&&delete b[v.split(".").map(A=>je(A)).join(".")],delete b[v]});function $(v){let A=x("_",v);(typeof A=="string"||typeof A=="number")&&b._.push(A)}function R(v,A,I,O){let S,_=M(A,d.nargs);if(_=typeof _!="number"||isNaN(_)?1:_,_===0)return me(O)||(C=Error(p("Argument unexpected for: %s",A))),T(A,$e(A)),v;let N=me(O)?0:1;if(i["nargs-eats-options"])I.length-(v+1)+N<_&&(C=Error(p("Not enough arguments following: %s",A))),N=_;else{for(S=v+1;S<I.length&&(!I[S].match(/^-[^0-9]/)||I[S].match(m)||Ye(I[S]));S++)N++;N<_&&(C=Error(p("Not enough arguments following: %s",A)))}let U=Math.min(N,_);for(!me(O)&&U>0&&(T(A,O),U--),S=v+1;S<U+v+1;S++)T(A,I[S]);return v+U}function F(v,A,I,O){let S=[],_=O||I[v+1],N=M(A,d.nargs);if(M(A,d.bools)&&!/^(true|false)$/.test(_))S.push(!0);else if(me(_)||me(O)&&/^-/.test(_)&&!m.test(_)&&!Ye(_)){if(o[A]!==void 0){let U=o[A];S=Array.isArray(U)?U:[U]}}else{me(O)||S.push(W(A,O,!0));for(let U=v+1;U<I.length&&!(!i["greedy-arrays"]&&S.length>0||N&&typeof N=="number"&&S.length>=N||(_=I[U],/^-/.test(_)&&!m.test(_)&&!Ye(_)));U++)v=U,S.push(W(A,_,s))}return typeof N=="number"&&(N&&S.length<N||isNaN(N)&&S.length===0)&&(C=Error(p("Not enough arguments following: %s",A))),T(A,S),v}function T(v,A,I=s){if(/-/.test(v)&&i["camel-case-expansion"]){let _=v.split(".").map(function(N){return je(N)}).join(".");G(v,_)}let O=W(v,A,I),S=v.split(".");te(b,S,O),d.aliases[v]&&d.aliases[v].forEach(function(_){let N=_.split(".");te(b,N,O)}),S.length>1&&i["dot-notation"]&&(d.aliases[S[0]]||[]).forEach(function(_){let N=_.split("."),U=[].concat(S);U.shift(),N=N.concat(U),(d.aliases[v]||[]).includes(N.join("."))||te(b,N,O)}),M(v,d.normalize)&&!M(v,d.arrays)&&[v].concat(d.aliases[v]||[]).forEach(function(N){Object.defineProperty(L,N,{enumerable:!0,get(){return A},set(U){A=typeof U=="string"?ge.normalize(U):U}})})}function G(v,A){d.aliases[v]&&d.aliases[v].length||(d.aliases[v]=[A],u[A]=!0),d.aliases[A]&&d.aliases[A].length||G(A,v)}function W(v,A,I){I&&(A=Zo(A)),(M(v,d.bools)||M(v,d.counts))&&typeof A=="string"&&(A=A==="true");let O=Array.isArray(A)?A.map(function(S){return x(v,S)}):x(v,A);return M(v,d.counts)&&(me(O)||typeof O=="boolean")&&(O=Et()),M(v,d.normalize)&&M(v,d.arrays)&&(Array.isArray(A)?O=A.map(S=>ge.normalize(S)):O=ge.normalize(A)),O}function x(v,A){return!i["parse-positional-numbers"]&&v==="_"||!M(v,d.strings)&&!M(v,d.bools)&&!Array.isArray(A)&&(Ws(A)&&i["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!me(A)&&M(v,d.numbers))&&(A=Number(A)),A}function H(v){let A=Object.create(null);J(A,d.aliases,o),Object.keys(d.configs).forEach(function(I){let O=v[I]||A[I];if(O)try{let S=null,_=ge.resolve(ge.cwd(),O),N=d.configs[I];if(typeof N=="function"){try{S=N(_)}catch(U){S=U}if(S instanceof Error){C=S;return}}else S=ge.require(_);k(S)}catch(S){S.name==="PermissionDenied"?C=S:v[I]&&(C=Error(p("Invalid JSON config file: %s",O)))}})}function k(v,A){Object.keys(v).forEach(function(I){let O=v[I],S=A?A+"."+I:I;typeof O=="object"&&O!==null&&!Array.isArray(O)&&i["dot-notation"]?k(O,S):(!K(b,S.split("."))||M(S,d.arrays)&&i["combine-arrays"])&&T(S,O)})}function B(){typeof g<"u"&&g.forEach(function(v){k(v)})}function z(v,A){if(typeof f>"u")return;let I=typeof f=="string"?f:"",O=ge.env();Object.keys(O).forEach(function(S){if(I===""||S.lastIndexOf(I,0)===0){let _=S.split("__").map(function(N,U){return U===0&&(N=N.substring(I.length)),je(N)});(A&&d.configs[_.join(".")]||!A)&&!K(v,_)&&T(_.join("."),O[S])}})}function Y(v){let A,I=new Set;Object.keys(v).forEach(function(O){if(!I.has(O)&&(A=M(O,d.coercions),typeof A=="function"))try{let S=x(O,A(v[O]));[].concat(d.aliases[O]||[],O).forEach(_=>{I.add(_),v[_]=S})}catch(S){C=S}})}function V(v){return d.keys.forEach(A=>{~A.indexOf(".")||typeof v[A]>"u"&&(v[A]=void 0)}),v}function J(v,A,I,O=!1){Object.keys(I).forEach(function(S){K(v,S.split("."))||(te(v,S.split("."),I[S]),O&&(h[S]=!0),(A[S]||[]).forEach(function(_){K(v,_.split("."))||te(v,_.split("."),I[S])}))})}function K(v,A){let I=v;i["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(S){I=I[S]||{}});let O=A[A.length-1];return typeof I!="object"?!1:O in I}function te(v,A,I){let O=v;i["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(Z){Z=jr(Z),typeof O=="object"&&O[Z]===void 0&&(O[Z]={}),typeof O[Z]!="object"||Array.isArray(O[Z])?(Array.isArray(O[Z])?O[Z].push({}):O[Z]=[O[Z],{}],O=O[Z][O[Z].length-1]):O=O[Z]});let S=jr(A[A.length-1]),_=M(A.join("."),d.arrays),N=Array.isArray(I),U=i["duplicate-arguments-array"];!U&&M(S,d.nargs)&&(U=!0,(!me(O[S])&&d.nargs[S]===1||Array.isArray(O[S])&&O[S].length===d.nargs[S])&&(O[S]=void 0)),I===Et()?O[S]=Et(O[S]):Array.isArray(O[S])?U&&_&&N?O[S]=i["flatten-duplicate-arrays"]?O[S].concat(I):(Array.isArray(O[S][0])?O[S]:[O[S]]).concat([I]):!U&&!!_==!!N?O[S]=I:O[S]=O[S].concat([I]):O[S]===void 0&&_?O[S]=N?I:[I]:U&&!(O[S]===void 0||M(S,d.counts)||M(S,d.bools))?O[S]=[O[S],I]:O[S]=I}function Ae(...v){v.forEach(function(A){Object.keys(A||{}).forEach(function(I){d.aliases[I]||(d.aliases[I]=[].concat(l[I]||[]),d.aliases[I].concat(I).forEach(function(O){if(/-/.test(O)&&i["camel-case-expansion"]){let S=je(O);S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].concat(I).forEach(function(O){if(O.length>1&&/[A-Z]/.test(O)&&i["camel-case-expansion"]){let S=Hs(O,"-");S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].forEach(function(O){d.aliases[O]=[I].concat(d.aliases[I].filter(function(S){return O!==S}))}))})})}function M(v,A){let I=[].concat(d.aliases[v]||[],v),O=Object.keys(A),S=I.find(_=>O.includes(_));return S?A[S]:!1}function Xe(v){let A=Object.keys(d);return[].concat(A.map(O=>d[O])).some(function(O){return Array.isArray(O)?O.includes(v):O[v]})}function Po(v,...A){return[].concat(...A).some(function(O){let S=v.match(O);return S&&Xe(S[1])})}function Do(v){if(v.match(m)||!v.match(/^-[^-]+/))return!1;let A=!0,I,O=v.slice(1).split("");for(let S=0;S<O.length;S++){if(I=v.slice(S+2),!Xe(O[S])){A=!1;break}if(O[S+1]&&O[S+1]==="="||I==="-"||/[A-Za-z]/.test(O[S])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)||O[S+1]&&O[S+1].match(/\W/))break}return A}function Ye(v){return i["unknown-options-as-args"]&&To(v)}function To(v){return v=v.replace(/^-{3,}/,"--"),v.match(m)||Do(v)?!1:!Po(v,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function $e(v){return!M(v,d.bools)&&!M(v,d.counts)&&`${v}`in o?o[v]:Fo(_o(v))}function Fo(v){return{[he.BOOLEAN]:!0,[he.STRING]:"",[he.NUMBER]:void 0,[he.ARRAY]:[]}[v]}function _o(v){let A=he.BOOLEAN;return M(v,d.strings)?A=he.STRING:M(v,d.numbers)?A=he.NUMBER:M(v,d.bools)?A=he.BOOLEAN:M(v,d.arrays)&&(A=he.ARRAY),A}function me(v){return v===void 0}function Uo(){Object.keys(d.counts).find(v=>M(v,d.arrays)?(C=Error(p("Invalid configuration: %s, opts.count excludes opts.array.",v)),!0):M(v,d.nargs)?(C=Error(p("Invalid configuration: %s, opts.count excludes opts.narg.",v)),!0):!1)}return{aliases:Object.assign({},d.aliases),argv:Object.assign(L,b),configuration:i,defaulted:Object.assign({},h),error:C,newAliases:Object.assign({},u)}}};function Jo(t){let e=[],r=Object.create(null),n=!0;for(Object.keys(t).forEach(function(c){e.push([].concat(t[c],c))});n;){n=!1;for(let c=0;c<e.length;c++)for(let s=c+1;s<e.length;s++)if(e[c].filter(function(i){return e[s].indexOf(i)!==-1}).length){e[c]=e[c].concat(e[s]),e.splice(s,1),n=!0;break}}return e.forEach(function(c){c=c.filter(function(l,i,o){return o.indexOf(l)===i});let s=c.pop();s!==void 0&&typeof s=="string"&&(r[s]=c)}),r}function Et(t){return t!==void 0?t+1:1}function jr(t){return t==="__proto__"?"___proto___":t}function Zo(t){return typeof t=="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var yt,wt,Lt,Br=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,Mr=(wt=(yt=process==null?void 0:process.versions)===null||yt===void 0?void 0:yt.node)!==null&&wt!==void 0?wt:(Lt=process==null?void 0:process.version)===null||Lt===void 0?void 0:Lt.slice(1);if(Mr&&Number(Mr.match(/^([^.]+)/)[1])<Br)throw Error(`yargs parser supports a minimum Node.js version of ${Br}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Qo=process?process.env:{},qr=Gr?Gr(import.meta.url):void 0,ks=new sr({cwd:process.cwd,env:()=>Qo,format:Ho,normalize:ko,resolve:Wo,require:t=>{if(typeof qr<"u")return qr(t);if(t.match(/\.json$/))return JSON.parse(Vo(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),Ne=function(e,r){return ks.parse(e.slice(),r).argv};Ne.detailed=function(t,e){return ks.parse(t.slice(),e)};Ne.camelCase=je;Ne.decamelize=Hs;Ne.looksLikeNumber=Ws;var Vs=t=>typeof t=="object"&&t!==null,zr=t=>Vs(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date)&&!(globalThis.Blob&&t instanceof globalThis.Blob),ea=Symbol("mapObjectSkip"),ir=(t,e,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(t))return n.get(t);n.set(t,r.target);let{target:c}=r;delete r.target;let s=l=>l.map(i=>zr(i)?ir(i,e,r,n):i);if(Array.isArray(t))return s(t);for(let[l,i]of Object.entries(t)){let o=e(l,i,t);if(o===ea)continue;let[g,f,{shouldRecurse:E=!0}={}]=o;g!=="__proto__"&&(r.deep&&E&&zr(f)&&(f=Array.isArray(f)?s(f):ir(f,e,r,n)),c[g]=f)}return c};function ta(t,e,r){if(!Vs(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);if(Array.isArray(t))throw new TypeError("Expected an object, got an array");return ir(t,e,r)}var ra=/[\p{Lu}]/u,sa=/[\p{Ll}]/u,Hr=/^[\p{Lu}](?![\p{Lu}])/gu,Xs=/([\p{Alpha}\p{N}_]|$)/u,cr=/[_.\- ]+/,ia=new RegExp("^"+cr.source),Wr=new RegExp(cr.source+Xs.source,"gu"),kr=new RegExp("\\d+"+Xs.source,"gu"),na=(t,e,r,n)=>{let c=!1,s=!1,l=!1,i=!1;for(let o=0;o<t.length;o++){let g=t[o];i=o>2?t[o-3]==="-":!0,c&&ra.test(g)?(t=t.slice(0,o)+"-"+t.slice(o),c=!1,l=s,s=!0,o++):s&&l&&sa.test(g)&&(!i||n)?(t=t.slice(0,o-1)+"-"+t.slice(o-1),l=s,s=!1,c=!0):(c=e(g)===g&&r(g)!==g,l=s,s=r(g)===g&&e(g)!==g)}return t},oa=(t,e)=>(Hr.lastIndex=0,t.replaceAll(Hr,r=>e(r))),aa=(t,e)=>(Wr.lastIndex=0,kr.lastIndex=0,t.replaceAll(kr,(r,n,c)=>["_","-"].includes(t.charAt(c+r.length))?r:e(r)).replaceAll(Wr,(r,n)=>e(n)));function ca(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),n=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?cr.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=na(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(ia,""),t=e.preserveConsecutiveUppercase?oa(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),aa(t,n))}var ua=class extends Map{#i=0;#r=new Map;#e=new Map;#g;#w;#S;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.#g=e.maxSize,this.#w=e.maxAge||Number.POSITIVE_INFINITY,this.#S=e.onEviction}get __oldCache(){return this.#e}#m(e){if(typeof this.#S=="function")for(let[r,n]of e)this.#S(r,n.value)}#f(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.#S=="function"&&this.#S(e,r.value),this.delete(e)):!1}#o(e,r){if(this.#f(e,r)===!1)return r.value}#a(e,r){return r.expiry?this.#o(e,r):r.value}#t(e,r){let n=r.get(e);return this.#a(e,n)}#n(e,r){this.#r.set(e,r),this.#i++,this.#i>=this.#g&&(this.#i=0,this.#m(this.#e),this.#e=this.#r,this.#r=new Map)}#s(e,r){this.#e.delete(e),this.#n(e,r)}*#l(){for(let e of this.#e){let[r,n]=e;this.#r.has(r)||this.#f(r,n)===!1&&(yield e)}for(let e of this.#r){let[r,n]=e;this.#f(r,n)===!1&&(yield e)}}get(e){if(this.#r.has(e)){let r=this.#r.get(e);return this.#a(e,r)}if(this.#e.has(e)){let r=this.#e.get(e);if(this.#f(e,r)===!1)return this.#s(e,r),r.value}}set(e,r,{maxAge:n=this.#w}={}){let c=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#r.has(e)?this.#r.set(e,{value:r,expiry:c}):this.#n(e,{value:r,expiry:c}),this}has(e){return this.#r.has(e)?!this.#f(e,this.#r.get(e)):this.#e.has(e)?!this.#f(e,this.#e.get(e)):!1}peek(e){if(this.#r.has(e))return this.#t(e,this.#r);if(this.#e.has(e))return this.#t(e,this.#e)}expiresIn(e){let r=this.#r.get(e)??this.#e.get(e);if(r)return r.expiry?r.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){let r=this.#r.delete(e);return r&&this.#i--,this.#e.delete(e)||r}clear(){this.#r.clear(),this.#e.clear(),this.#i=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this.#l()],n=r.length-e;n<0?(this.#r=new Map(r),this.#e=new Map,this.#i=r.length):(n>0&&this.#m(r.slice(0,n)),this.#e=new Map(r.slice(n)),this.#r=new Map,this.#i=0),this.#g=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.#r){let[r,n]=e;this.#f(r,n)===!1&&(yield[r,n.value])}for(let e of this.#e){let[r,n]=e;this.#r.has(r)||this.#f(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let e=[...this.#r];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this.#f(c,s)===!1&&(yield[c,s.value])}e=[...this.#e];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this.#r.has(c)||this.#f(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this.#l())yield[e,r.value]}get size(){if(!this.#i)return this.#e.size;let e=0;for(let r of this.#e.keys())this.#r.has(r)||e++;return Math.min(this.#i+e,this.#g)}get maxSize(){return this.#g}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[n,c]of this.entriesAscending())e.call(r,c,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},la=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),vt=new ua({maxSize:1e5}),Ie=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),xe=(t,e={},r=new WeakMap,n)=>{if(!Ie(t))return t;if(r.has(t))return r.get(t);let{exclude:c,pascalCase:s=!1,stopPaths:l,deep:i=!1,preserveConsecutiveUppercase:o=!1}=e,g=new Set(l);if(Array.isArray(t)){let h=[];r.set(t,h);for(let p of t)h.push(Ie(p)?xe(p,e,r,n):p);return h}let f={};r.set(t,f);let y=ta(t,(h=>(p,d)=>{if(i&&Ie(d)){let m=h===void 0?p:`${h}.${p}`;g.has(m)||(d=Array.isArray(d)?d.map(w=>Ie(w)?xe(w,e,r,m):w):xe(d,e,r,m))}if(typeof p=="string"&&!(c&&la(c,p))){let m=s?`${p}_`:p;if(vt.has(m))p=vt.get(m);else{let w=ca(p,{pascalCase:s,locale:!1,preserveConsecutiveUppercase:o});p.length<100&&vt.set(m,w),p=w}}return[p,d]})(n),{deep:!1});Object.assign(f,y);let u=Object.getOwnPropertySymbols(t);for(let h of u)f[h]=i&&Ie(t[h])?xe(t[h],e,r,n):t[h];return f};function Ys(t,e){let r=new WeakMap;return Array.isArray(t)?t.map((n,c)=>Ie(n)?xe(n,e,r,String(c)):n):xe(t,e,r)}function Ks(t){let e=0,r=t.length;for(;e<r&&(t[e]==="\r"||t[e]===`
4
+ `+s),t.push(c+"m+"+ot.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sl()+e+" "+t[0]}function sl(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}function il(...t){return process.stderr.write(nt.formatWithOptions(ee.inspectOpts,...t)+`
5
+ `)}function nl(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ol(){return process.env.DEBUG}function al(t){t.inspectOpts={};let e=Object.keys(ee.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ee.inspectOpts[e[r]]}ot.exports=pr()(ee);var{formatters:Ni}=ot.exports;Ni.o=function(t){return this.inspectOpts.colors=this.useColors,nt.inspect(t,this.inspectOpts).split(`
6
+ `).map(e=>e.trim()).join(" ")};Ni.O=function(t){return this.inspectOpts.colors=this.useColors,nt.inspect(t,this.inspectOpts)}});var Ti=j((Xd,gr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?gr.exports=Ai():gr.exports=Pi()});var qe=j((Yd,Di)=>{"use strict";var cl="2.0.0",ul=Number.MAX_SAFE_INTEGER||9007199254740991,ll=16,fl=250,hl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Di.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ll,MAX_SAFE_BUILD_LENGTH:fl,MAX_SAFE_INTEGER:ul,RELEASE_TYPES:hl,SEMVER_SPEC_VERSION:cl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ze=j((Kd,Fi)=>{"use strict";var pl=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Fi.exports=pl});var _e=j((pe,_i)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:br,MAX_SAFE_BUILD_LENGTH:dl,MAX_LENGTH:ml}=qe(),gl=ze();pe=_i.exports={};var bl=pe.re=[],El=pe.safeRe=[],P=pe.src=[],yl=pe.safeSrc=[],T=pe.t={},wl=0,Er="[a-zA-Z0-9-]",vl=[["\\s",1],["\\d",ml],[Er,dl]],Ll=t=>{for(let[e,r]of vl)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},q=(t,e,r)=>{let i=Ll(e),c=wl++;gl(t,c,e),T[t]=c,P[c]=e,yl[c]=i,bl[c]=new RegExp(e,r?"g":void 0),El[c]=new RegExp(i,r?"g":void 0)};q("NUMERICIDENTIFIER","0|[1-9]\\d*");q("NUMERICIDENTIFIERLOOSE","\\d+");q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Er}*`);q("MAINVERSION",`(${P[T.NUMERICIDENTIFIER]})\\.(${P[T.NUMERICIDENTIFIER]})\\.(${P[T.NUMERICIDENTIFIER]})`);q("MAINVERSIONLOOSE",`(${P[T.NUMERICIDENTIFIERLOOSE]})\\.(${P[T.NUMERICIDENTIFIERLOOSE]})\\.(${P[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASEIDENTIFIER",`(?:${P[T.NONNUMERICIDENTIFIER]}|${P[T.NUMERICIDENTIFIER]})`);q("PRERELEASEIDENTIFIERLOOSE",`(?:${P[T.NONNUMERICIDENTIFIER]}|${P[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASE",`(?:-(${P[T.PRERELEASEIDENTIFIER]}(?:\\.${P[T.PRERELEASEIDENTIFIER]})*))`);q("PRERELEASELOOSE",`(?:-?(${P[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${P[T.PRERELEASEIDENTIFIERLOOSE]})*))`);q("BUILDIDENTIFIER",`${Er}+`);q("BUILD",`(?:\\+(${P[T.BUILDIDENTIFIER]}(?:\\.${P[T.BUILDIDENTIFIER]})*))`);q("FULLPLAIN",`v?${P[T.MAINVERSION]}${P[T.PRERELEASE]}?${P[T.BUILD]}?`);q("FULL",`^${P[T.FULLPLAIN]}$`);q("LOOSEPLAIN",`[v=\\s]*${P[T.MAINVERSIONLOOSE]}${P[T.PRERELEASELOOSE]}?${P[T.BUILD]}?`);q("LOOSE",`^${P[T.LOOSEPLAIN]}$`);q("GTLT","((?:<|>)?=?)");q("XRANGEIDENTIFIERLOOSE",`${P[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);q("XRANGEIDENTIFIER",`${P[T.NUMERICIDENTIFIER]}|x|X|\\*`);q("XRANGEPLAIN",`[v=\\s]*(${P[T.XRANGEIDENTIFIER]})(?:\\.(${P[T.XRANGEIDENTIFIER]})(?:\\.(${P[T.XRANGEIDENTIFIER]})(?:${P[T.PRERELEASE]})?${P[T.BUILD]}?)?)?`);q("XRANGEPLAINLOOSE",`[v=\\s]*(${P[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[T.XRANGEIDENTIFIERLOOSE]})(?:${P[T.PRERELEASELOOSE]})?${P[T.BUILD]}?)?)?`);q("XRANGE",`^${P[T.GTLT]}\\s*${P[T.XRANGEPLAIN]}$`);q("XRANGELOOSE",`^${P[T.GTLT]}\\s*${P[T.XRANGEPLAINLOOSE]}$`);q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${br}})(?:\\.(\\d{1,${br}}))?(?:\\.(\\d{1,${br}}))?`);q("COERCE",`${P[T.COERCEPLAIN]}(?:$|[^\\d])`);q("COERCEFULL",P[T.COERCEPLAIN]+`(?:${P[T.PRERELEASE]})?(?:${P[T.BUILD]})?(?:$|[^\\d])`);q("COERCERTL",P[T.COERCE],!0);q("COERCERTLFULL",P[T.COERCEFULL],!0);q("LONETILDE","(?:~>?)");q("TILDETRIM",`(\\s*)${P[T.LONETILDE]}\\s+`,!0);pe.tildeTrimReplace="$1~";q("TILDE",`^${P[T.LONETILDE]}${P[T.XRANGEPLAIN]}$`);q("TILDELOOSE",`^${P[T.LONETILDE]}${P[T.XRANGEPLAINLOOSE]}$`);q("LONECARET","(?:\\^)");q("CARETTRIM",`(\\s*)${P[T.LONECARET]}\\s+`,!0);pe.caretTrimReplace="$1^";q("CARET",`^${P[T.LONECARET]}${P[T.XRANGEPLAIN]}$`);q("CARETLOOSE",`^${P[T.LONECARET]}${P[T.XRANGEPLAINLOOSE]}$`);q("COMPARATORLOOSE",`^${P[T.GTLT]}\\s*(${P[T.LOOSEPLAIN]})$|^$`);q("COMPARATOR",`^${P[T.GTLT]}\\s*(${P[T.FULLPLAIN]})$|^$`);q("COMPARATORTRIM",`(\\s*)${P[T.GTLT]}\\s*(${P[T.LOOSEPLAIN]}|${P[T.XRANGEPLAIN]})`,!0);pe.comparatorTrimReplace="$1$2$3";q("HYPHENRANGE",`^\\s*(${P[T.XRANGEPLAIN]})\\s+-\\s+(${P[T.XRANGEPLAIN]})\\s*$`);q("HYPHENRANGELOOSE",`^\\s*(${P[T.XRANGEPLAINLOOSE]})\\s+-\\s+(${P[T.XRANGEPLAINLOOSE]})\\s*$`);q("STAR","(<|>)?=?\\s*\\*");q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var at=j((Jd,Ui)=>{"use strict";var Cl=Object.freeze({loose:!0}),Sl=Object.freeze({}),Al=t=>t?typeof t!="object"?Cl:t:Sl;Ui.exports=Al});var yr=j((Zd,Bi)=>{"use strict";var Gi=/^[0-9]+$/,ji=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Gi.test(t),i=Gi.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},$l=(t,e)=>ji(e,t);Bi.exports={compareIdentifiers:ji,rcompareIdentifiers:$l}});var re=j((Qd,qi)=>{"use strict";var ct=ze(),{MAX_LENGTH:Mi,MAX_SAFE_INTEGER:ut}=qe(),{safeRe:lt,t:ft}=_e(),Ol=at(),{compareIdentifiers:wr}=yr(),vr=class t{constructor(e,r){if(r=Ol(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>Mi)throw new TypeError(`version is longer than ${Mi} characters`);ct("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=e.trim().match(r.loose?lt[ft.LOOSE]:lt[ft.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ut||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ut||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ut||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){let s=+c;if(s>=0&&s<ut)return s}return c}):this.prerelease=[],this.build=i[5]?i[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(ct("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 i=this.prerelease[r],c=e.prerelease[r];if(ct("prerelease compare",r,i,c),i===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(i===void 0)return-1;if(i===c)continue;return wr(i,c)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let i=this.build[r],c=e.build[r];if(ct("build compare",r,i,c),i===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(i===void 0)return-1;if(i===c)continue;return wr(i,c)}while(++r)}inc(e,r,i){if(e.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let c=`-${r}`.match(this.options.loose?lt[ft.PRERELEASELOOSE]:lt[ft.PRERELEASE]);if(!c||c[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,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);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 c=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[c];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(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(r){let s=[r,c];i===!1&&(s=[r]),wr(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}};qi.exports=vr});var Se=j((e0,Hi)=>{"use strict";var zi=re(),Rl=(t,e,r=!1)=>{if(t instanceof zi)return t;try{return new zi(t,e)}catch(i){if(!r)return null;throw i}};Hi.exports=Rl});var ki=j((t0,Wi)=>{"use strict";var Il=Se(),xl=(t,e)=>{let r=Il(t,e);return r?r.version:null};Wi.exports=xl});var Xi=j((r0,Vi)=>{"use strict";var Nl=Se(),Pl=(t,e)=>{let r=Nl(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Vi.exports=Pl});var Ji=j((s0,Ki)=>{"use strict";var Yi=re(),Tl=(t,e,r,i,c)=>{typeof r=="string"&&(c=i,i=r,r=void 0);try{return new Yi(t instanceof Yi?t.version:t,r).inc(e,i,c).version}catch{return null}};Ki.exports=Tl});var en=j((i0,Qi)=>{"use strict";var Zi=Se(),Dl=(t,e)=>{let r=Zi(t,null,!0),i=Zi(e,null,!0),c=r.compare(i);if(c===0)return null;let s=c>0,l=s?r:i,n=s?i:r,o=!!l.prerelease.length;if(!!n.prerelease.length&&!o){if(!n.patch&&!n.minor)return"major";if(n.compareMain(l)===0)return n.minor&&!n.patch?"minor":"patch"}let f=o?"pre":"";return r.major!==i.major?f+"major":r.minor!==i.minor?f+"minor":r.patch!==i.patch?f+"patch":"prerelease"};Qi.exports=Dl});var rn=j((n0,tn)=>{"use strict";var Fl=re(),_l=(t,e)=>new Fl(t,e).major;tn.exports=_l});var nn=j((o0,sn)=>{"use strict";var Ul=re(),Gl=(t,e)=>new Ul(t,e).minor;sn.exports=Gl});var an=j((a0,on)=>{"use strict";var jl=re(),Bl=(t,e)=>new jl(t,e).patch;on.exports=Bl});var un=j((c0,cn)=>{"use strict";var Ml=Se(),ql=(t,e)=>{let r=Ml(t,e);return r&&r.prerelease.length?r.prerelease:null};cn.exports=ql});var le=j((u0,fn)=>{"use strict";var ln=re(),zl=(t,e,r)=>new ln(t,r).compare(new ln(e,r));fn.exports=zl});var pn=j((l0,hn)=>{"use strict";var Hl=le(),Wl=(t,e,r)=>Hl(e,t,r);hn.exports=Wl});var mn=j((f0,dn)=>{"use strict";var kl=le(),Vl=(t,e)=>kl(t,e,!0);dn.exports=Vl});var ht=j((h0,bn)=>{"use strict";var gn=re(),Xl=(t,e,r)=>{let i=new gn(t,r),c=new gn(e,r);return i.compare(c)||i.compareBuild(c)};bn.exports=Xl});var yn=j((p0,En)=>{"use strict";var Yl=ht(),Kl=(t,e)=>t.sort((r,i)=>Yl(r,i,e));En.exports=Kl});var vn=j((d0,wn)=>{"use strict";var Jl=ht(),Zl=(t,e)=>t.sort((r,i)=>Jl(i,r,e));wn.exports=Zl});var He=j((m0,Ln)=>{"use strict";var Ql=le(),ef=(t,e,r)=>Ql(t,e,r)>0;Ln.exports=ef});var pt=j((g0,Cn)=>{"use strict";var tf=le(),rf=(t,e,r)=>tf(t,e,r)<0;Cn.exports=rf});var Lr=j((b0,Sn)=>{"use strict";var sf=le(),nf=(t,e,r)=>sf(t,e,r)===0;Sn.exports=nf});var Cr=j((E0,An)=>{"use strict";var of=le(),af=(t,e,r)=>of(t,e,r)!==0;An.exports=af});var dt=j((y0,$n)=>{"use strict";var cf=le(),uf=(t,e,r)=>cf(t,e,r)>=0;$n.exports=uf});var mt=j((w0,On)=>{"use strict";var lf=le(),ff=(t,e,r)=>lf(t,e,r)<=0;On.exports=ff});var Sr=j((v0,Rn)=>{"use strict";var hf=Lr(),pf=Cr(),df=He(),mf=dt(),gf=pt(),bf=mt(),Ef=(t,e,r,i)=>{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 hf(t,r,i);case"!=":return pf(t,r,i);case">":return df(t,r,i);case">=":return mf(t,r,i);case"<":return gf(t,r,i);case"<=":return bf(t,r,i);default:throw new TypeError(`Invalid operator: ${e}`)}};Rn.exports=Ef});var xn=j((L0,In)=>{"use strict";var yf=re(),wf=Se(),{safeRe:gt,t:bt}=_e(),vf=(t,e)=>{if(t instanceof yf)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?gt[bt.COERCEFULL]:gt[bt.COERCE]);else{let o=e.includePrerelease?gt[bt.COERCERTLFULL]:gt[bt.COERCERTL],g;for(;(g=o.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||g.index+g[0].length!==r.index+r[0].length)&&(r=g),o.lastIndex=g.index+g[1].length+g[2].length;o.lastIndex=-1}if(r===null)return null;let i=r[2],c=r[3]||"0",s=r[4]||"0",l=e.includePrerelease&&r[5]?`-${r[5]}`:"",n=e.includePrerelease&&r[6]?`+${r[6]}`:"";return wf(`${i}.${c}.${s}${l}${n}`,e)};In.exports=vf});var Pn=j((C0,Nn)=>{"use strict";var Ar=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 c=this.map.keys().next().value;this.delete(c)}this.map.set(e,r)}return this}};Nn.exports=Ar});var fe=j((S0,_n)=>{"use strict";var Lf=/\s+/g,$r=class t{constructor(e,r){if(r=Sf(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Or)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(Lf," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(c=>!Dn(c[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&Nf(c[0])){this.set=[c];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 i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&If)|(this.options.loose&&xf))+":"+e,c=Tn.get(i);if(c)return c;let s=this.options.loose,l=s?ne[se.HYPHENRANGELOOSE]:ne[se.HYPHENRANGE];e=e.replace(l,Mf(this.options.includePrerelease)),X("hyphen replace",e),e=e.replace(ne[se.COMPARATORTRIM],$f),X("comparator trim",e),e=e.replace(ne[se.TILDETRIM],Of),X("tilde trim",e),e=e.replace(ne[se.CARETTRIM],Rf),X("caret trim",e);let n=e.split(" ").map(E=>Pf(E,this.options)).join(" ").split(/\s+/).map(E=>Bf(E,this.options));s&&(n=n.filter(E=>(X("loose invalid filter",E,this.options),!!E.match(ne[se.COMPARATORLOOSE])))),X("range list",n);let o=new Map,g=n.map(E=>new Or(E,this.options));for(let E of g){if(Dn(E))return[E];o.set(E.value,E)}o.size>1&&o.has("")&&o.delete("");let f=[...o.values()];return Tn.set(i,f),f}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Fn(i,r)&&e.set.some(c=>Fn(c,r)&&i.every(s=>c.every(l=>s.intersects(l,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Af(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(qf(this.set[r],e,this.options))return!0;return!1}};_n.exports=$r;var Cf=Pn(),Tn=new Cf,Sf=at(),Or=We(),X=ze(),Af=re(),{safeRe:ne,t:se,comparatorTrimReplace:$f,tildeTrimReplace:Of,caretTrimReplace:Rf}=_e(),{FLAG_INCLUDE_PRERELEASE:If,FLAG_LOOSE:xf}=qe(),Dn=t=>t.value==="<0.0.0-0",Nf=t=>t.value==="",Fn=(t,e)=>{let r=!0,i=t.slice(),c=i.pop();for(;r&&i.length;)r=i.every(s=>c.intersects(s,e)),c=i.pop();return r},Pf=(t,e)=>(t=t.replace(ne[se.BUILD],""),X("comp",t,e),t=Ff(t,e),X("caret",t),t=Tf(t,e),X("tildes",t),t=Uf(t,e),X("xrange",t),t=jf(t,e),X("stars",t),t),oe=t=>!t||t.toLowerCase()==="x"||t==="*",Tf=(t,e)=>t.trim().split(/\s+/).map(r=>Df(r,e)).join(" "),Df=(t,e)=>{let r=e.loose?ne[se.TILDELOOSE]:ne[se.TILDE];return t.replace(r,(i,c,s,l,n)=>{X("tilde",t,i,c,s,l,n);let o;return oe(c)?o="":oe(s)?o=`>=${c}.0.0 <${+c+1}.0.0-0`:oe(l)?o=`>=${c}.${s}.0 <${c}.${+s+1}.0-0`:n?(X("replaceTilde pr",n),o=`>=${c}.${s}.${l}-${n} <${c}.${+s+1}.0-0`):o=`>=${c}.${s}.${l} <${c}.${+s+1}.0-0`,X("tilde return",o),o})},Ff=(t,e)=>t.trim().split(/\s+/).map(r=>_f(r,e)).join(" "),_f=(t,e)=>{X("caret",t,e);let r=e.loose?ne[se.CARETLOOSE]:ne[se.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,(c,s,l,n,o)=>{X("caret",t,c,s,l,n,o);let g;return oe(s)?g="":oe(l)?g=`>=${s}.0.0${i} <${+s+1}.0.0-0`:oe(n)?s==="0"?g=`>=${s}.${l}.0${i} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.0${i} <${+s+1}.0.0-0`:o?(X("replaceCaret pr",o),s==="0"?l==="0"?g=`>=${s}.${l}.${n}-${o} <${s}.${l}.${+n+1}-0`:g=`>=${s}.${l}.${n}-${o} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${n}-${o} <${+s+1}.0.0-0`):(X("no pr"),s==="0"?l==="0"?g=`>=${s}.${l}.${n}${i} <${s}.${l}.${+n+1}-0`:g=`>=${s}.${l}.${n}${i} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${n} <${+s+1}.0.0-0`),X("caret return",g),g})},Uf=(t,e)=>(X("replaceXRanges",t,e),t.split(/\s+/).map(r=>Gf(r,e)).join(" ")),Gf=(t,e)=>{t=t.trim();let r=e.loose?ne[se.XRANGELOOSE]:ne[se.XRANGE];return t.replace(r,(i,c,s,l,n,o)=>{X("xRange",t,i,c,s,l,n,o);let g=oe(s),f=g||oe(l),E=f||oe(n),y=E;return c==="="&&y&&(c=""),o=e.includePrerelease?"-0":"",g?c===">"||c==="<"?i="<0.0.0-0":i="*":c&&y?(f&&(l=0),n=0,c===">"?(c=">=",f?(s=+s+1,l=0,n=0):(l=+l+1,n=0)):c==="<="&&(c="<",f?s=+s+1:l=+l+1),c==="<"&&(o="-0"),i=`${c+s}.${l}.${n}${o}`):f?i=`>=${s}.0.0${o} <${+s+1}.0.0-0`:E&&(i=`>=${s}.${l}.0${o} <${s}.${+l+1}.0-0`),X("xRange return",i),i})},jf=(t,e)=>(X("replaceStars",t,e),t.trim().replace(ne[se.STAR],"")),Bf=(t,e)=>(X("replaceGTE0",t,e),t.trim().replace(ne[e.includePrerelease?se.GTE0PRE:se.GTE0],"")),Mf=t=>(e,r,i,c,s,l,n,o,g,f,E,y)=>(oe(i)?r="":oe(c)?r=`>=${i}.0.0${t?"-0":""}`:oe(s)?r=`>=${i}.${c}.0${t?"-0":""}`:l?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,oe(g)?o="":oe(f)?o=`<${+g+1}.0.0-0`:oe(E)?o=`<${g}.${+f+1}.0-0`:y?o=`<=${g}.${f}.${E}-${y}`:t?o=`<${g}.${f}.${+E+1}-0`:o=`<=${o}`,`${r} ${o}`.trim()),qf=(t,e,r)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let i=0;i<t.length;i++)if(X(t[i].semver),t[i].semver!==Or.ANY&&t[i].semver.prerelease.length>0){let c=t[i].semver;if(c.major===e.major&&c.minor===e.minor&&c.patch===e.patch)return!0}return!1}return!0}});var We=j((A0,qn)=>{"use strict";var ke=Symbol("SemVer ANY"),xr=class t{static get ANY(){return ke}constructor(e,r){if(r=Un(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Ir("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===ke?this.value="":this.value=this.operator+this.semver.version,Ir("comp",this)}parse(e){let r=this.options.loose?Gn[jn.COMPARATORLOOSE]:Gn[jn.COMPARATOR],i=e.match(r);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Bn(i[2],this.options.loose):this.semver=ke}toString(){return this.value}test(e){if(Ir("Comparator.test",e,this.options.loose),this.semver===ke||e===ke)return!0;if(typeof e=="string")try{e=new Bn(e,this.options)}catch{return!1}return Rr(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 Mn(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Mn(this.value,r).test(e.semver):(r=Un(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("=")||Rr(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Rr(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};qn.exports=xr;var Un=at(),{safeRe:Gn,t:jn}=_e(),Rr=Sr(),Ir=ze(),Bn=re(),Mn=fe()});var Ve=j(($0,zn)=>{"use strict";var zf=fe(),Hf=(t,e,r)=>{try{e=new zf(e,r)}catch{return!1}return e.test(t)};zn.exports=Hf});var Wn=j((O0,Hn)=>{"use strict";var Wf=fe(),kf=(t,e)=>new Wf(t,e).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));Hn.exports=kf});var Vn=j((R0,kn)=>{"use strict";var Vf=re(),Xf=fe(),Yf=(t,e,r)=>{let i=null,c=null,s=null;try{s=new Xf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!i||c.compare(l)===-1)&&(i=l,c=new Vf(i,r))}),i};kn.exports=Yf});var Yn=j((I0,Xn)=>{"use strict";var Kf=re(),Jf=fe(),Zf=(t,e,r)=>{let i=null,c=null,s=null;try{s=new Jf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!i||c.compare(l)===1)&&(i=l,c=new Kf(i,r))}),i};Xn.exports=Zf});var Zn=j((x0,Jn)=>{"use strict";var Nr=re(),Qf=fe(),Kn=He(),eh=(t,e)=>{t=new Qf(t,e);let r=new Nr("0.0.0");if(t.test(r)||(r=new Nr("0.0.0-0"),t.test(r)))return r;r=null;for(let i=0;i<t.set.length;++i){let c=t.set[i],s=null;c.forEach(l=>{let n=new Nr(l.semver.version);switch(l.operator){case">":n.prerelease.length===0?n.patch++:n.prerelease.push(0),n.raw=n.format();case"":case">=":(!s||Kn(n,s))&&(s=n);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),s&&(!r||Kn(r,s))&&(r=s)}return r&&t.test(r)?r:null};Jn.exports=eh});var eo=j((N0,Qn)=>{"use strict";var th=fe(),rh=(t,e)=>{try{return new th(t,e).range||"*"}catch{return null}};Qn.exports=rh});var Et=j((P0,io)=>{"use strict";var sh=re(),so=We(),{ANY:ih}=so,nh=fe(),oh=Ve(),to=He(),ro=pt(),ah=mt(),ch=dt(),uh=(t,e,r,i)=>{t=new sh(t,i),e=new nh(e,i);let c,s,l,n,o;switch(r){case">":c=to,s=ah,l=ro,n=">",o=">=";break;case"<":c=ro,s=ch,l=to,n="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oh(t,e,i))return!1;for(let g=0;g<e.set.length;++g){let f=e.set[g],E=null,y=null;if(f.forEach(u=>{u.semver===ih&&(u=new so(">=0.0.0")),E=E||u,y=y||u,c(u.semver,E.semver,i)?E=u:l(u.semver,y.semver,i)&&(y=u)}),E.operator===n||E.operator===o||(!y.operator||y.operator===n)&&s(t,y.semver))return!1;if(y.operator===o&&l(t,y.semver))return!1}return!0};io.exports=uh});var oo=j((T0,no)=>{"use strict";var lh=Et(),fh=(t,e,r)=>lh(t,e,">",r);no.exports=fh});var co=j((D0,ao)=>{"use strict";var hh=Et(),ph=(t,e,r)=>hh(t,e,"<",r);ao.exports=ph});var fo=j((F0,lo)=>{"use strict";var uo=fe(),dh=(t,e,r)=>(t=new uo(t,r),e=new uo(e,r),t.intersects(e,r));lo.exports=dh});var po=j((_0,ho)=>{"use strict";var mh=Ve(),gh=le();ho.exports=(t,e,r)=>{let i=[],c=null,s=null,l=t.sort((f,E)=>gh(f,E,r));for(let f of l)mh(f,e,r)?(s=f,c||(c=f)):(s&&i.push([c,s]),s=null,c=null);c&&i.push([c,null]);let n=[];for(let[f,E]of i)f===E?n.push(f):!E&&f===l[0]?n.push("*"):E?f===l[0]?n.push(`<=${E}`):n.push(`${f} - ${E}`):n.push(`>=${f}`);let o=n.join(" || "),g=typeof e.raw=="string"?e.raw:String(e);return o.length<g.length?o:e}});var wo=j((U0,yo)=>{"use strict";var mo=fe(),Tr=We(),{ANY:Pr}=Tr,Xe=Ve(),Dr=le(),bh=(t,e,r={})=>{if(t===e)return!0;t=new mo(t,r),e=new mo(e,r);let i=!1;e:for(let c of t.set){for(let s of e.set){let l=yh(c,s,r);if(i=i||l!==null,l)continue e}if(i)return!1}return!0},Eh=[new Tr(">=0.0.0-0")],go=[new Tr(">=0.0.0")],yh=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Pr){if(e.length===1&&e[0].semver===Pr)return!0;r.includePrerelease?t=Eh:t=go}if(e.length===1&&e[0].semver===Pr){if(r.includePrerelease)return!0;e=go}let i=new Set,c,s;for(let u of t)u.operator===">"||u.operator===">="?c=bo(c,u,r):u.operator==="<"||u.operator==="<="?s=Eo(s,u,r):i.add(u.semver);if(i.size>1)return null;let l;if(c&&s){if(l=Dr(c.semver,s.semver,r),l>0)return null;if(l===0&&(c.operator!==">="||s.operator!=="<="))return null}for(let u of i){if(c&&!Xe(u,String(c),r)||s&&!Xe(u,String(s),r))return null;for(let h of e)if(!Xe(u,String(h),r))return!1;return!0}let n,o,g,f,E=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,y=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:!1;E&&E.prerelease.length===1&&s.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let u of e){if(f=f||u.operator===">"||u.operator===">=",g=g||u.operator==="<"||u.operator==="<=",c){if(y&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===y.major&&u.semver.minor===y.minor&&u.semver.patch===y.patch&&(y=!1),u.operator===">"||u.operator===">="){if(n=bo(c,u,r),n===u&&n!==c)return!1}else if(c.operator===">="&&!Xe(c.semver,String(u),r))return!1}if(s){if(E&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===E.major&&u.semver.minor===E.minor&&u.semver.patch===E.patch&&(E=!1),u.operator==="<"||u.operator==="<="){if(o=Eo(s,u,r),o===u&&o!==s)return!1}else if(s.operator==="<="&&!Xe(s.semver,String(u),r))return!1}if(!u.operator&&(s||c)&&l!==0)return!1}return!(c&&g&&!s&&l!==0||s&&f&&!c&&l!==0||y||E)},bo=(t,e,r)=>{if(!t)return e;let i=Dr(t.semver,e.semver,r);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},Eo=(t,e,r)=>{if(!t)return e;let i=Dr(t.semver,e.semver,r);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};yo.exports=bh});var So=j((G0,Co)=>{"use strict";var Fr=_e(),vo=qe(),wh=re(),Lo=yr(),vh=Se(),Lh=ki(),Ch=Xi(),Sh=Ji(),Ah=en(),$h=rn(),Oh=nn(),Rh=an(),Ih=un(),xh=le(),Nh=pn(),Ph=mn(),Th=ht(),Dh=yn(),Fh=vn(),_h=He(),Uh=pt(),Gh=Lr(),jh=Cr(),Bh=dt(),Mh=mt(),qh=Sr(),zh=xn(),Hh=We(),Wh=fe(),kh=Ve(),Vh=Wn(),Xh=Vn(),Yh=Yn(),Kh=Zn(),Jh=eo(),Zh=Et(),Qh=oo(),ep=co(),tp=fo(),rp=po(),sp=wo();Co.exports={parse:vh,valid:Lh,clean:Ch,inc:Sh,diff:Ah,major:$h,minor:Oh,patch:Rh,prerelease:Ih,compare:xh,rcompare:Nh,compareLoose:Ph,compareBuild:Th,sort:Dh,rsort:Fh,gt:_h,lt:Uh,eq:Gh,neq:jh,gte:Bh,lte:Mh,cmp:qh,coerce:zh,Comparator:Hh,Range:Wh,satisfies:kh,toComparators:Vh,maxSatisfying:Xh,minSatisfying:Yh,minVersion:Kh,validRange:Jh,outside:Zh,gtr:Qh,ltr:ep,intersects:tp,simplifyRange:rp,subset:sp,SemVer:wh,re:Fr.re,src:Fr.src,tokens:Fr.t,SEMVER_SPEC_VERSION:vo.SEMVER_SPEC_VERSION,RELEASE_TYPES:vo.RELEASE_TYPES,compareIdentifiers:Lo.compareIdentifiers,rcompareIdentifiers:Lo.rcompareIdentifiers}});import{pathToFileURL as nd}from"node:url";import hr from"node:process";import Hs,{format as ko}from"util";import{resolve as Vo,normalize as Xo}from"path";import{readFileSync as Yo}from"fs";import Ws,{createRequire as qr}from"node:module";import ye from"node:path";import Ko from"node:process";import Jo,{fileURLToPath as ks}from"node:url";import Vs from"node:fs";import cr from"url";function Be(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",i=!1,c=t.match(/^-+/);for(let s=c?c[0].length:0;s<t.length;s++){let l=t.charAt(s);i&&(i=!1,l=l.toUpperCase()),s!==0&&(l==="-"||l==="_")?i=!0:l!=="-"&&l!=="_"&&(r+=l)}return r}}function Xs(t,e){let r=t.toLowerCase();e=e||"-";let i="";for(let c=0;c<t.length;c++){let s=r.charAt(c),l=t.charAt(c);s!==l&&c>0?i+=`${e}${r.charAt(c)}`:i+=l}return i}function Ys(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 Zo(t){if(Array.isArray(t))return t.map(l=>typeof l!="string"?l+"":l);t=t.trim();let e=0,r=null,i=null,c=null,s=[];for(let l=0;l<t.length;l++){if(r=i,i=t.charAt(l),i===" "&&!c){r!==" "&&e++;continue}i===c?c=null:(i==="'"||i==='"')&&!c&&(c=i),s[e]||(s[e]=""),s[e]+=i}return s}var he;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(he||(he={}));var be,ir=class{constructor(e){be=e}parse(e,r){let i=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),c=Zo(e),s=typeof e=="string",l=Qo(Object.assign(Object.create(null),i.alias)),n=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},i.configuration),o=Object.assign(Object.create(null),i.default),g=i.configObjects||[],f=i.envPrefix,E=n["populate--"],y=E?"--":"_",u=Object.create(null),h=Object.create(null),p=i.__||be.format,d={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:[]},m=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+n["negation-prefix"]+"(.+)");[].concat(i.array||[]).filter(Boolean).forEach(function(L){let A=typeof L=="object"?L.key:L,I=Object.keys(L).map(function(O){return{boolean:"bools",string:"strings",number:"numbers"}[O]}).filter(Boolean).pop();I&&(d[I][A]=!0),d.arrays[A]=!0,d.keys.push(A)}),[].concat(i.boolean||[]).filter(Boolean).forEach(function(L){d.bools[L]=!0,d.keys.push(L)}),[].concat(i.string||[]).filter(Boolean).forEach(function(L){d.strings[L]=!0,d.keys.push(L)}),[].concat(i.number||[]).filter(Boolean).forEach(function(L){d.numbers[L]=!0,d.keys.push(L)}),[].concat(i.count||[]).filter(Boolean).forEach(function(L){d.counts[L]=!0,d.keys.push(L)}),[].concat(i.normalize||[]).filter(Boolean).forEach(function(L){d.normalize[L]=!0,d.keys.push(L)}),typeof i.narg=="object"&&Object.entries(i.narg).forEach(([L,A])=>{typeof A=="number"&&(d.nargs[L]=A,d.keys.push(L))}),typeof i.coerce=="object"&&Object.entries(i.coerce).forEach(([L,A])=>{typeof A=="function"&&(d.coercions[L]=A,d.keys.push(L))}),typeof i.config<"u"&&(Array.isArray(i.config)||typeof i.config=="string"?[].concat(i.config).filter(Boolean).forEach(function(L){d.configs[L]=!0}):typeof i.config=="object"&&Object.entries(i.config).forEach(([L,A])=>{(typeof A=="boolean"||typeof A=="function")&&(d.configs[L]=A)})),$e(i.key,l,i.default,d.arrays),Object.keys(o).forEach(function(L){(d.aliases[L]||[]).forEach(function(A){o[A]=o[L]})});let C=null;jo();let a=[],b=Object.assign(Object.create(null),{_:[]}),v={};for(let L=0;L<c.length;L++){let A=c[L],I=A.replace(/^-{3,}/,"---"),O,S,_,N,U,Z;if(A!=="--"&&/^-/.test(A)&&Ke(A))$(A);else if(I.match(/^---+(=|$)/)){$(A);continue}else if(A.match(/^--.+=/)||!n["short-option-groups"]&&A.match(/^-.+=/))N=A.match(/^--?([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&(M(N[1],d.arrays)?L=F(L,N[1],c,N[2]):M(N[1],d.nargs)!==!1?L=R(L,N[1],c,N[2]):D(N[1],N[2],!0));else if(A.match(w)&&n["boolean-negation"])N=A.match(w),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],D(S,M(S,d.arrays)?[!1]:!1));else if(A.match(/^--.+/)||!n["short-option-groups"]&&A.match(/^-[^-]+/))N=A.match(/^--?(.+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],M(S,d.arrays)?L=F(L,S,c):M(S,d.nargs)!==!1?L=R(L,S,c):(U=c[L+1],U!==void 0&&(!U.match(/^-/)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(D(S,U),L++):D(S,Oe(S))));else if(A.match(/^-.\..+=/))N=A.match(/^-([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&D(N[1],N[2]);else if(A.match(/^-.\..+/)&&!A.match(m))U=c[L+1],N=A.match(/^-(.\..+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],U!==void 0&&!U.match(/^-/)&&!M(S,d.bools)&&!M(S,d.counts)?(D(S,U),L++):D(S,Oe(S)));else if(A.match(/^-[^-]+/)&&!A.match(m)){_=A.slice(1,-1).split(""),O=!1;for(let ie=0;ie<_.length;ie++){if(U=A.slice(ie+2),_[ie+1]&&_[ie+1]==="="){Z=A.slice(ie+3),S=_[ie],M(S,d.arrays)?L=F(L,S,c,Z):M(S,d.nargs)!==!1?L=R(L,S,c,Z):D(S,Z),O=!0;break}if(U==="-"){D(_[ie],U);continue}if(/[A-Za-z]/.test(_[ie])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(U)&&M(U,d.bools)===!1){D(_[ie],U),O=!0;break}if(_[ie+1]&&_[ie+1].match(/\W/)){D(_[ie],U),O=!0;break}else D(_[ie],Oe(_[ie]))}S=A.slice(-1)[0],!O&&S!=="-"&&(M(S,d.arrays)?L=F(L,S,c):M(S,d.nargs)!==!1?L=R(L,S,c):(U=c[L+1],U!==void 0&&(!/^(-|--)[^-]/.test(U)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(D(S,U),L++):D(S,Oe(S))))}else if(A.match(/^-[0-9]$/)&&A.match(m)&&M(A.slice(1),d.bools))S=A.slice(1),D(S,Oe(S));else if(A==="--"){a=c.slice(L+1);break}else if(n["halt-at-non-option"]){a=c.slice(L);break}else $(A)}z(b,!0),z(b,!1),H(b),B(),J(b,d.aliases,o,!0),Y(b),n["set-placeholder-key"]&&V(b),Object.keys(d.counts).forEach(function(L){K(b,L.split("."))||D(L,0)}),E&&a.length&&(b[y]=[]),a.forEach(function(L){b[y].push(L)}),n["camel-case-expansion"]&&n["strip-dashed"]&&Object.keys(b).filter(L=>L!=="--"&&L.includes("-")).forEach(L=>{delete b[L]}),n["strip-aliased"]&&[].concat(...Object.keys(l).map(L=>l[L])).forEach(L=>{n["camel-case-expansion"]&&L.includes("-")&&delete b[L.split(".").map(A=>Be(A)).join(".")],delete b[L]});function $(L){let A=x("_",L);(typeof A=="string"||typeof A=="number")&&b._.push(A)}function R(L,A,I,O){let S,_=M(A,d.nargs);if(_=typeof _!="number"||isNaN(_)?1:_,_===0)return ge(O)||(C=Error(p("Argument unexpected for: %s",A))),D(A,Oe(A)),L;let N=ge(O)?0:1;if(n["nargs-eats-options"])I.length-(L+1)+N<_&&(C=Error(p("Not enough arguments following: %s",A))),N=_;else{for(S=L+1;S<I.length&&(!I[S].match(/^-[^0-9]/)||I[S].match(m)||Ke(I[S]));S++)N++;N<_&&(C=Error(p("Not enough arguments following: %s",A)))}let U=Math.min(N,_);for(!ge(O)&&U>0&&(D(A,O),U--),S=L+1;S<U+L+1;S++)D(A,I[S]);return L+U}function F(L,A,I,O){let S=[],_=O||I[L+1],N=M(A,d.nargs);if(M(A,d.bools)&&!/^(true|false)$/.test(_))S.push(!0);else if(ge(_)||ge(O)&&/^-/.test(_)&&!m.test(_)&&!Ke(_)){if(o[A]!==void 0){let U=o[A];S=Array.isArray(U)?U:[U]}}else{ge(O)||S.push(W(A,O,!0));for(let U=L+1;U<I.length&&!(!n["greedy-arrays"]&&S.length>0||N&&typeof N=="number"&&S.length>=N||(_=I[U],/^-/.test(_)&&!m.test(_)&&!Ke(_)));U++)L=U,S.push(W(A,_,s))}return typeof N=="number"&&(N&&S.length<N||isNaN(N)&&S.length===0)&&(C=Error(p("Not enough arguments following: %s",A))),D(A,S),L}function D(L,A,I=s){if(/-/.test(L)&&n["camel-case-expansion"]){let _=L.split(".").map(function(N){return Be(N)}).join(".");G(L,_)}let O=W(L,A,I),S=L.split(".");te(b,S,O),d.aliases[L]&&d.aliases[L].forEach(function(_){let N=_.split(".");te(b,N,O)}),S.length>1&&n["dot-notation"]&&(d.aliases[S[0]]||[]).forEach(function(_){let N=_.split("."),U=[].concat(S);U.shift(),N=N.concat(U),(d.aliases[L]||[]).includes(N.join("."))||te(b,N,O)}),M(L,d.normalize)&&!M(L,d.arrays)&&[L].concat(d.aliases[L]||[]).forEach(function(N){Object.defineProperty(v,N,{enumerable:!0,get(){return A},set(U){A=typeof U=="string"?be.normalize(U):U}})})}function G(L,A){d.aliases[L]&&d.aliases[L].length||(d.aliases[L]=[A],u[A]=!0),d.aliases[A]&&d.aliases[A].length||G(A,L)}function W(L,A,I){I&&(A=ea(A)),(M(L,d.bools)||M(L,d.counts))&&typeof A=="string"&&(A=A==="true");let O=Array.isArray(A)?A.map(function(S){return x(L,S)}):x(L,A);return M(L,d.counts)&&(ge(O)||typeof O=="boolean")&&(O=yt()),M(L,d.normalize)&&M(L,d.arrays)&&(Array.isArray(A)?O=A.map(S=>be.normalize(S)):O=be.normalize(A)),O}function x(L,A){return!n["parse-positional-numbers"]&&L==="_"||!M(L,d.strings)&&!M(L,d.bools)&&!Array.isArray(A)&&(Ys(A)&&n["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!ge(A)&&M(L,d.numbers))&&(A=Number(A)),A}function H(L){let A=Object.create(null);J(A,d.aliases,o),Object.keys(d.configs).forEach(function(I){let O=L[I]||A[I];if(O)try{let S=null,_=be.resolve(be.cwd(),O),N=d.configs[I];if(typeof N=="function"){try{S=N(_)}catch(U){S=U}if(S instanceof Error){C=S;return}}else S=be.require(_);k(S)}catch(S){S.name==="PermissionDenied"?C=S:L[I]&&(C=Error(p("Invalid JSON config file: %s",O)))}})}function k(L,A){Object.keys(L).forEach(function(I){let O=L[I],S=A?A+"."+I:I;typeof O=="object"&&O!==null&&!Array.isArray(O)&&n["dot-notation"]?k(O,S):(!K(b,S.split("."))||M(S,d.arrays)&&n["combine-arrays"])&&D(S,O)})}function B(){typeof g<"u"&&g.forEach(function(L){k(L)})}function z(L,A){if(typeof f>"u")return;let I=typeof f=="string"?f:"",O=be.env();Object.keys(O).forEach(function(S){if(I===""||S.lastIndexOf(I,0)===0){let _=S.split("__").map(function(N,U){return U===0&&(N=N.substring(I.length)),Be(N)});(A&&d.configs[_.join(".")]||!A)&&!K(L,_)&&D(_.join("."),O[S])}})}function Y(L){let A,I=new Set;Object.keys(L).forEach(function(O){if(!I.has(O)&&(A=M(O,d.coercions),typeof A=="function"))try{let S=x(O,A(L[O]));[].concat(d.aliases[O]||[],O).forEach(_=>{I.add(_),L[_]=S})}catch(S){C=S}})}function V(L){return d.keys.forEach(A=>{~A.indexOf(".")||typeof L[A]>"u"&&(L[A]=void 0)}),L}function J(L,A,I,O=!1){Object.keys(I).forEach(function(S){K(L,S.split("."))||(te(L,S.split("."),I[S]),O&&(h[S]=!0),(A[S]||[]).forEach(function(_){K(L,_.split("."))||te(L,_.split("."),I[S])}))})}function K(L,A){let I=L;n["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(S){I=I[S]||{}});let O=A[A.length-1];return typeof I!="object"?!1:O in I}function te(L,A,I){let O=L;n["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(Z){Z=zr(Z),typeof O=="object"&&O[Z]===void 0&&(O[Z]={}),typeof O[Z]!="object"||Array.isArray(O[Z])?(Array.isArray(O[Z])?O[Z].push({}):O[Z]=[O[Z],{}],O=O[Z][O[Z].length-1]):O=O[Z]});let S=zr(A[A.length-1]),_=M(A.join("."),d.arrays),N=Array.isArray(I),U=n["duplicate-arguments-array"];!U&&M(S,d.nargs)&&(U=!0,(!ge(O[S])&&d.nargs[S]===1||Array.isArray(O[S])&&O[S].length===d.nargs[S])&&(O[S]=void 0)),I===yt()?O[S]=yt(O[S]):Array.isArray(O[S])?U&&_&&N?O[S]=n["flatten-duplicate-arrays"]?O[S].concat(I):(Array.isArray(O[S][0])?O[S]:[O[S]]).concat([I]):!U&&!!_==!!N?O[S]=I:O[S]=O[S].concat([I]):O[S]===void 0&&_?O[S]=N?I:[I]:U&&!(O[S]===void 0||M(S,d.counts)||M(S,d.bools))?O[S]=[O[S],I]:O[S]=I}function $e(...L){L.forEach(function(A){Object.keys(A||{}).forEach(function(I){d.aliases[I]||(d.aliases[I]=[].concat(l[I]||[]),d.aliases[I].concat(I).forEach(function(O){if(/-/.test(O)&&n["camel-case-expansion"]){let S=Be(O);S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].concat(I).forEach(function(O){if(O.length>1&&/[A-Z]/.test(O)&&n["camel-case-expansion"]){let S=Xs(O,"-");S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].forEach(function(O){d.aliases[O]=[I].concat(d.aliases[I].filter(function(S){return O!==S}))}))})})}function M(L,A){let I=[].concat(d.aliases[L]||[],L),O=Object.keys(A),S=I.find(_=>O.includes(_));return S?A[S]:!1}function Ye(L){let A=Object.keys(d);return[].concat(A.map(O=>d[O])).some(function(O){return Array.isArray(O)?O.includes(L):O[L]})}function Do(L,...A){return[].concat(...A).some(function(O){let S=L.match(O);return S&&Ye(S[1])})}function Fo(L){if(L.match(m)||!L.match(/^-[^-]+/))return!1;let A=!0,I,O=L.slice(1).split("");for(let S=0;S<O.length;S++){if(I=L.slice(S+2),!Ye(O[S])){A=!1;break}if(O[S+1]&&O[S+1]==="="||I==="-"||/[A-Za-z]/.test(O[S])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)||O[S+1]&&O[S+1].match(/\W/))break}return A}function Ke(L){return n["unknown-options-as-args"]&&_o(L)}function _o(L){return L=L.replace(/^-{3,}/,"--"),L.match(m)||Fo(L)?!1:!Do(L,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Oe(L){return!M(L,d.bools)&&!M(L,d.counts)&&`${L}`in o?o[L]:Uo(Go(L))}function Uo(L){return{[he.BOOLEAN]:!0,[he.STRING]:"",[he.NUMBER]:void 0,[he.ARRAY]:[]}[L]}function Go(L){let A=he.BOOLEAN;return M(L,d.strings)?A=he.STRING:M(L,d.numbers)?A=he.NUMBER:M(L,d.bools)?A=he.BOOLEAN:M(L,d.arrays)&&(A=he.ARRAY),A}function ge(L){return L===void 0}function jo(){Object.keys(d.counts).find(L=>M(L,d.arrays)?(C=Error(p("Invalid configuration: %s, opts.count excludes opts.array.",L)),!0):M(L,d.nargs)?(C=Error(p("Invalid configuration: %s, opts.count excludes opts.narg.",L)),!0):!1)}return{aliases:Object.assign({},d.aliases),argv:Object.assign(v,b),configuration:n,defaulted:Object.assign({},h),error:C,newAliases:Object.assign({},u)}}};function Qo(t){let e=[],r=Object.create(null),i=!0;for(Object.keys(t).forEach(function(c){e.push([].concat(t[c],c))});i;){i=!1;for(let c=0;c<e.length;c++)for(let s=c+1;s<e.length;s++)if(e[c].filter(function(n){return e[s].indexOf(n)!==-1}).length){e[c]=e[c].concat(e[s]),e.splice(s,1),i=!0;break}}return e.forEach(function(c){c=c.filter(function(l,n,o){return o.indexOf(l)===n});let s=c.pop();s!==void 0&&typeof s=="string"&&(r[s]=c)}),r}function yt(t){return t!==void 0?t+1:1}function zr(t){return t==="__proto__"?"___proto___":t}function ea(t){return typeof t=="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var wt,vt,Lt,Hr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,Wr=(vt=(wt=process==null?void 0:process.versions)===null||wt===void 0?void 0:wt.node)!==null&&vt!==void 0?vt:(Lt=process==null?void 0:process.version)===null||Lt===void 0?void 0:Lt.slice(1);if(Wr&&Number(Wr.match(/^([^.]+)/)[1])<Hr)throw Error(`yargs parser supports a minimum Node.js version of ${Hr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var ta=process?process.env:{},kr=qr?qr(import.meta.url):void 0,Ks=new ir({cwd:process.cwd,env:()=>ta,format:ko,normalize:Xo,resolve:Vo,require:t=>{if(typeof kr<"u")return kr(t);if(t.match(/\.json$/))return JSON.parse(Yo(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),Pe=function(e,r){return Ks.parse(e.slice(),r).argv};Pe.detailed=function(t,e){return Ks.parse(t.slice(),e)};Pe.camelCase=Be;Pe.decamelize=Xs;Pe.looksLikeNumber=Ys;var Js=t=>typeof t=="object"&&t!==null,Vr=t=>Js(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date)&&!(globalThis.Blob&&t instanceof globalThis.Blob),ra=Symbol("mapObjectSkip"),nr=(t,e,r,i=new WeakMap)=>{if(r={deep:!1,target:{},...r},i.has(t))return i.get(t);i.set(t,r.target);let{target:c}=r;delete r.target;let s=l=>l.map(n=>Vr(n)?nr(n,e,r,i):n);if(Array.isArray(t))return s(t);for(let[l,n]of Object.entries(t)){let o=e(l,n,t);if(o===ra)continue;let[g,f,{shouldRecurse:E=!0}={}]=o;g!=="__proto__"&&(r.deep&&E&&Vr(f)&&(f=Array.isArray(f)?s(f):nr(f,e,r,i)),c[g]=f)}return c};function sa(t,e,r){if(!Js(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);if(Array.isArray(t))throw new TypeError("Expected an object, got an array");return nr(t,e,r)}var ia=/[\p{Lu}]/u,na=/[\p{Ll}]/u,Xr=/^[\p{Lu}](?![\p{Lu}])/gu,Zs=/([\p{Alpha}\p{N}_]|$)/u,ur=/[_.\- ]+/,oa=new RegExp("^"+ur.source),Yr=new RegExp(ur.source+Zs.source,"gu"),Kr=new RegExp("\\d+"+Zs.source,"gu"),aa=(t,e,r,i)=>{let c=!1,s=!1,l=!1,n=!1;for(let o=0;o<t.length;o++){let g=t[o];n=o>2?t[o-3]==="-":!0,c&&ia.test(g)?(t=t.slice(0,o)+"-"+t.slice(o),c=!1,l=s,s=!0,o++):s&&l&&na.test(g)&&(!n||i)?(t=t.slice(0,o-1)+"-"+t.slice(o-1),l=s,s=!1,c=!0):(c=e(g)===g&&r(g)!==g,l=s,s=r(g)===g&&e(g)!==g)}return t},ca=(t,e)=>(Xr.lastIndex=0,t.replaceAll(Xr,r=>e(r))),ua=(t,e)=>(Yr.lastIndex=0,Kr.lastIndex=0,t.replaceAll(Kr,(r,i,c)=>["_","-"].includes(t.charAt(c+r.length))?r:e(r)).replaceAll(Yr,(r,i)=>e(i)));function la(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),i=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?ur.test(t)?"":e.pascalCase?i(t):r(t):(t!==r(t)&&(t=aa(t,r,i,e.preserveConsecutiveUppercase)),t=t.replace(oa,""),t=e.preserveConsecutiveUppercase?ca(t,r):r(t),e.pascalCase&&(t=i(t.charAt(0))+t.slice(1)),ua(t,i))}var fa=class extends Map{#i=0;#r=new Map;#e=new Map;#g;#w;#S;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.#g=e.maxSize,this.#w=e.maxAge||Number.POSITIVE_INFINITY,this.#S=e.onEviction}get __oldCache(){return this.#e}#m(e){if(typeof this.#S=="function")for(let[r,i]of e)this.#S(r,i.value)}#f(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.#S=="function"&&this.#S(e,r.value),this.delete(e)):!1}#o(e,r){if(this.#f(e,r)===!1)return r.value}#a(e,r){return r.expiry?this.#o(e,r):r.value}#t(e,r){let i=r.get(e);return this.#a(e,i)}#n(e,r){this.#r.set(e,r),this.#i++,this.#i>=this.#g&&(this.#i=0,this.#m(this.#e),this.#e=this.#r,this.#r=new Map)}#s(e,r){this.#e.delete(e),this.#n(e,r)}*#l(){for(let e of this.#e){let[r,i]=e;this.#r.has(r)||this.#f(r,i)===!1&&(yield e)}for(let e of this.#r){let[r,i]=e;this.#f(r,i)===!1&&(yield e)}}get(e){if(this.#r.has(e)){let r=this.#r.get(e);return this.#a(e,r)}if(this.#e.has(e)){let r=this.#e.get(e);if(this.#f(e,r)===!1)return this.#s(e,r),r.value}}set(e,r,{maxAge:i=this.#w}={}){let c=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.#r.has(e)?this.#r.set(e,{value:r,expiry:c}):this.#n(e,{value:r,expiry:c}),this}has(e){return this.#r.has(e)?!this.#f(e,this.#r.get(e)):this.#e.has(e)?!this.#f(e,this.#e.get(e)):!1}peek(e){if(this.#r.has(e))return this.#t(e,this.#r);if(this.#e.has(e))return this.#t(e,this.#e)}expiresIn(e){let r=this.#r.get(e)??this.#e.get(e);if(r)return r.expiry?r.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){let r=this.#r.delete(e);return r&&this.#i--,this.#e.delete(e)||r}clear(){this.#r.clear(),this.#e.clear(),this.#i=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this.#l()],i=r.length-e;i<0?(this.#r=new Map(r),this.#e=new Map,this.#i=r.length):(i>0&&this.#m(r.slice(0,i)),this.#e=new Map(r.slice(i)),this.#r=new Map,this.#i=0),this.#g=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.#r){let[r,i]=e;this.#f(r,i)===!1&&(yield[r,i.value])}for(let e of this.#e){let[r,i]=e;this.#r.has(r)||this.#f(r,i)===!1&&(yield[r,i.value])}}*entriesDescending(){let e=[...this.#r];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this.#f(c,s)===!1&&(yield[c,s.value])}e=[...this.#e];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this.#r.has(c)||this.#f(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this.#l())yield[e,r.value]}get size(){if(!this.#i)return this.#e.size;let e=0;for(let r of this.#e.keys())this.#r.has(r)||e++;return Math.min(this.#i+e,this.#g)}get maxSize(){return this.#g}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[i,c]of this.entriesAscending())e.call(r,c,i,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},ha=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),Ct=new fa({maxSize:1e5}),xe=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),Ne=(t,e={},r=new WeakMap,i)=>{if(!xe(t))return t;if(r.has(t))return r.get(t);let{exclude:c,pascalCase:s=!1,stopPaths:l,deep:n=!1,preserveConsecutiveUppercase:o=!1}=e,g=new Set(l);if(Array.isArray(t)){let h=[];r.set(t,h);for(let p of t)h.push(xe(p)?Ne(p,e,r,i):p);return h}let f={};r.set(t,f);let y=sa(t,(h=>(p,d)=>{if(n&&xe(d)){let m=h===void 0?p:`${h}.${p}`;g.has(m)||(d=Array.isArray(d)?d.map(w=>xe(w)?Ne(w,e,r,m):w):Ne(d,e,r,m))}if(typeof p=="string"&&!(c&&ha(c,p))){let m=s?`${p}_`:p;if(Ct.has(m))p=Ct.get(m);else{let w=la(p,{pascalCase:s,locale:!1,preserveConsecutiveUppercase:o});p.length<100&&Ct.set(m,w),p=w}}return[p,d]})(i),{deep:!1});Object.assign(f,y);let u=Object.getOwnPropertySymbols(t);for(let h of u)f[h]=n&&xe(t[h])?Ne(t[h],e,r,i):t[h];return f};function Qs(t,e){let r=new WeakMap;return Array.isArray(t)?t.map((i,c)=>xe(i)?Ne(i,e,r,String(c)):i):Ne(t,e,r)}function ei(t){let e=0,r=t.length;for(;e<r&&(t[e]==="\r"||t[e]===`
7
7
  `);)e++;for(;r>e&&(t[r-1]==="\r"||t[r-1]===`
8
- `);)r--;return e>0||r<t.length?t.slice(e,r):t}function fa(t){let e=t.match(/^[ \t]*(?=\S)/gm);if(!e)return t;let r=Number.POSITIVE_INFINITY;for(let n of e)r=Math.min(r,n.length);return r===0||r===Number.POSITIVE_INFINITY?t:t.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),"")}function ha(t,e=1,r={}){let{indent:n=" ",includeEmptyLines:c=!1}=r;if(typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return t;let s=c?/^/gm:/^(?!\s*$)/gm;return t.replace(s,n.repeat(e))}function ur(t,e=0,r={}){return ha(fa(t),e,r)}var Vr=t=>t instanceof URL?qs(t):t;function pa(t,{cwd:e=Xo.cwd(),type:r="file",stopAt:n}={}){let c=ye.resolve(Vr(e)??""),{root:s}=ye.parse(c);n=ye.resolve(c,Vr(n)??s);let l=ye.isAbsolute(t);for(;c;){let i=l?t:ye.join(c,t);try{let o=zs.statSync(i,{throwIfNoEntry:!1});if(r==="file"&&o?.isFile()||r==="directory"&&o?.isDirectory())return i}catch{}if(c===n||c===s)break;c=ye.dirname(c)}}function tt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oe={},Je={exports:{}},Xr;function da(){if(Xr)return Je.exports;Xr=1;let t=process||{},e=t.argv||[],r=t.env||{},n=!(r.NO_COLOR||e.includes("--no-color"))&&(!!r.FORCE_COLOR||e.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),c=(i,o,g=i)=>f=>{let E=""+f,y=E.indexOf(o,i.length);return~y?i+s(E,o,g,y)+o:i+E+o},s=(i,o,g,f)=>{let E="",y=0;do E+=i.substring(y,f)+g,y=f+o.length,f=i.indexOf(o,y);while(~f);return E+i.substring(y)},l=(i=n)=>{let o=i?c:()=>String;return{isColorSupported:i,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};return Je.exports=l(),Je.exports.createColors=l,Je.exports}var _e={},Yr;function ma(){return Yr||(Yr=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,_e.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}),_e}var Ct={},Re={},Kr;function ga(){if(Kr)return Re;Kr=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.isIdentifierChar=o,Re.isIdentifierName=g,Re.isIdentifierStart=i;let t="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\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\u0AF9\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-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\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",e="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",r=new RegExp("["+t+"]"),n=new RegExp("["+t+e+"]");t=e=null;let c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function l(f,E){let y=65536;for(let u=0,h=E.length;u<h;u+=2){if(y+=E[u],y>f)return!1;if(y+=E[u+1],y>=f)return!0}return!1}function i(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&r.test(String.fromCharCode(f)):l(f,c)}function o(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&n.test(String.fromCharCode(f)):l(f,c)||l(f,s)}function g(f){let E=!0;for(let y=0;y<f.length;y++){let u=f.charCodeAt(y);if((u&64512)===55296&&y+1<f.length){let h=f.charCodeAt(++y);(h&64512)===56320&&(u=65536+((u&1023)<<10)+(h&1023))}if(E){if(E=!1,!i(u))return!1}else if(!o(u))return!1}return!E}return Re}var Ee={},Jr;function ba(){if(Jr)return Ee;Jr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isKeyword=o,Ee.isReservedWord=c,Ee.isStrictBindOnlyReservedWord=l,Ee.isStrictBindReservedWord=i,Ee.isStrictReservedWord=s;let t={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},e=new Set(t.keyword),r=new Set(t.strict),n=new Set(t.strictBind);function c(g,f){return f&&g==="await"||g==="enum"}function s(g,f){return c(g,f)||r.has(g)}function l(g){return n.has(g)}function i(g,f){return s(g,f)||l(g)}function o(g){return e.has(g)}return Ee}var Zr;function Ea(){return Zr||(Zr=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var e=ga(),r=ba()})(Ct)),Ct}var Qr;function ya(){if(Qr)return Oe;Qr=1,Object.defineProperty(Oe,"__esModule",{value:!0});var t=da(),e=ma(),r=Ea();function n(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}let c=(C,a)=>b=>C(a(b));function s(C){return{keyword:C.cyan,capitalized:C.yellow,jsxIdentifier:C.yellow,punctuator:C.yellow,number:C.magenta,string:C.green,regex:C.magenta,comment:C.gray,invalid:c(c(C.white,C.bgRed),C.bold),gutter:C.gray,marker:c(C.red,C.bold),message:c(C.red,C.bold),reset:C.reset}}let l=s(t.createColors(!0)),i=s(t.createColors(!1));function o(C){return C?l:i}let g=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,E=/^[()[\]{}]$/,y;{let C=/^[a-z][\w-]*$/i,a=function(b,L,$){if(b.type==="name"){if(r.isKeyword(b.value)||r.isStrictReservedWord(b.value,!0)||g.has(b.value))return"keyword";if(C.test(b.value)&&($[L-1]==="<"||$.slice(L-2,L)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&E.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};y=function*(b){let L;for(;L=e.default.exec(b);){let $=e.matchToToken(L);yield{type:a($,L.index,b),value:$.value}}}}function u(C){if(C==="")return"";let a=o(!0),b="";for(let{type:L,value:$}of y(C))L in a?b+=$.split(f).map(R=>a[L](R)).join(`
9
- `):b+=$;return b}let h=!1,p=/\r\n|[\n\r\u2028\u2029]/;function d(C,a,b){let L=Object.assign({column:0,line:-1},C.start),$=Object.assign({},L,C.end),{linesAbove:R=2,linesBelow:F=3}=b||{},T=L.line,G=L.column,W=$.line,x=$.column,H=Math.max(T-(R+1),0),k=Math.min(a.length,W+F);T===-1&&(H=0),W===-1&&(k=a.length);let B=W-T,z={};if(B)for(let Y=0;Y<=B;Y++){let V=Y+T;if(!G)z[V]=!0;else if(Y===0){let J=a[V-1].length;z[V]=[G,J-G+1]}else if(Y===B)z[V]=[0,x];else{let J=a[V-Y].length;z[V]=[0,J]}}else G===x?G?z[T]=[G,0]:z[T]=!0:z[T]=[G,x-G];return{start:H,end:k,markerLines:z}}function m(C,a,b={}){let L=b.forceColor||n()&&b.highlightCode,$=o(L),R=C.split(p),{start:F,end:T,markerLines:G}=d(a,R,b),W=a.start&&typeof a.start.column=="number",x=String(T).length,k=(L?u(C):C).split(p,T).slice(F,T).map((B,z)=>{let Y=F+1+z,J=` ${` ${Y}`.slice(-x)} |`,K=G[Y],te=!G[Y+1];if(K){let Ae="";if(Array.isArray(K)){let M=B.slice(0,Math.max(K[0]-1,0)).replace(/[^\t]/g," "),Xe=K[1]||1;Ae=[`
10
- `,$.gutter(J.replace(/\d/g," "))," ",M,$.marker("^").repeat(Xe)].join(""),te&&b.message&&(Ae+=" "+$.message(b.message))}return[$.marker(">"),$.gutter(J),B.length>0?` ${B}`:"",Ae].join("")}else return` ${$.gutter(J)}${B.length>0?` ${B}`:""}`}).join(`
8
+ `);)r--;return e>0||r<t.length?t.slice(e,r):t}function pa(t){let e=t.match(/^[ \t]*(?=\S)/gm);if(!e)return t;let r=Number.POSITIVE_INFINITY;for(let i of e)r=Math.min(r,i.length);return r===0||r===Number.POSITIVE_INFINITY?t:t.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),"")}function da(t,e=1,r={}){let{indent:i=" ",includeEmptyLines:c=!1}=r;if(typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof i!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i}\``);if(e===0)return t;let s=c?/^/gm:/^(?!\s*$)/gm;return t.replace(s,i.repeat(e))}function lr(t,e=0,r={}){return da(pa(t),e,r)}var Jr=t=>t instanceof URL?ks(t):t;function ma(t,{cwd:e=Ko.cwd(),type:r="file",stopAt:i}={}){let c=ye.resolve(Jr(e)??""),{root:s}=ye.parse(c);i=ye.resolve(c,Jr(i)??s);let l=ye.isAbsolute(t);for(;c;){let n=l?t:ye.join(c,t);try{let o=Vs.statSync(n,{throwIfNoEntry:!1});if(r==="file"&&o?.isFile()||r==="directory"&&o?.isDirectory())return n}catch{}if(c===i||c===s)break;c=ye.dirname(c)}}function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Re={},Ze={exports:{}},Zr;function ga(){if(Zr)return Ze.exports;Zr=1;let t=process||{},e=t.argv||[],r=t.env||{},i=!(r.NO_COLOR||e.includes("--no-color"))&&(!!r.FORCE_COLOR||e.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),c=(n,o,g=n)=>f=>{let E=""+f,y=E.indexOf(o,n.length);return~y?n+s(E,o,g,y)+o:n+E+o},s=(n,o,g,f)=>{let E="",y=0;do E+=n.substring(y,f)+g,y=f+o.length,f=n.indexOf(o,y);while(~f);return E+n.substring(y)},l=(n=i)=>{let o=n?c:()=>String;return{isColorSupported:n,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};return Ze.exports=l(),Ze.exports.createColors=l,Ze.exports}var Ue={},Qr;function ba(){return Qr||(Qr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Ue.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}),Ue}var St={},Ie={},es;function Ea(){if(es)return Ie;es=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isIdentifierChar=o,Ie.isIdentifierName=g,Ie.isIdentifierStart=n;let t="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\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\u0AF9\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-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\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",e="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",r=new RegExp("["+t+"]"),i=new RegExp("["+t+e+"]");t=e=null;let c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function l(f,E){let y=65536;for(let u=0,h=E.length;u<h;u+=2){if(y+=E[u],y>f)return!1;if(y+=E[u+1],y>=f)return!0}return!1}function n(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&r.test(String.fromCharCode(f)):l(f,c)}function o(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&i.test(String.fromCharCode(f)):l(f,c)||l(f,s)}function g(f){let E=!0;for(let y=0;y<f.length;y++){let u=f.charCodeAt(y);if((u&64512)===55296&&y+1<f.length){let h=f.charCodeAt(++y);(h&64512)===56320&&(u=65536+((u&1023)<<10)+(h&1023))}if(E){if(E=!1,!n(u))return!1}else if(!o(u))return!1}return!E}return Ie}var Ee={},ts;function ya(){if(ts)return Ee;ts=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isKeyword=o,Ee.isReservedWord=c,Ee.isStrictBindOnlyReservedWord=l,Ee.isStrictBindReservedWord=n,Ee.isStrictReservedWord=s;let t={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},e=new Set(t.keyword),r=new Set(t.strict),i=new Set(t.strictBind);function c(g,f){return f&&g==="await"||g==="enum"}function s(g,f){return c(g,f)||r.has(g)}function l(g){return i.has(g)}function n(g,f){return s(g,f)||l(g)}function o(g){return e.has(g)}return Ee}var rs;function wa(){return rs||(rs=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var e=Ea(),r=ya()})(St)),St}var ss;function va(){if(ss)return Re;ss=1,Object.defineProperty(Re,"__esModule",{value:!0});var t=ga(),e=ba(),r=wa();function i(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}let c=(C,a)=>b=>C(a(b));function s(C){return{keyword:C.cyan,capitalized:C.yellow,jsxIdentifier:C.yellow,punctuator:C.yellow,number:C.magenta,string:C.green,regex:C.magenta,comment:C.gray,invalid:c(c(C.white,C.bgRed),C.bold),gutter:C.gray,marker:c(C.red,C.bold),message:c(C.red,C.bold),reset:C.reset}}let l=s(t.createColors(!0)),n=s(t.createColors(!1));function o(C){return C?l:n}let g=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,E=/^[()[\]{}]$/,y;{let C=/^[a-z][\w-]*$/i,a=function(b,v,$){if(b.type==="name"){if(r.isKeyword(b.value)||r.isStrictReservedWord(b.value,!0)||g.has(b.value))return"keyword";if(C.test(b.value)&&($[v-1]==="<"||$.slice(v-2,v)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&E.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};y=function*(b){let v;for(;v=e.default.exec(b);){let $=e.matchToToken(v);yield{type:a($,v.index,b),value:$.value}}}}function u(C){if(C==="")return"";let a=o(!0),b="";for(let{type:v,value:$}of y(C))v in a?b+=$.split(f).map(R=>a[v](R)).join(`
9
+ `):b+=$;return b}let h=!1,p=/\r\n|[\n\r\u2028\u2029]/;function d(C,a,b){let v=Object.assign({column:0,line:-1},C.start),$=Object.assign({},v,C.end),{linesAbove:R=2,linesBelow:F=3}=b||{},D=v.line,G=v.column,W=$.line,x=$.column,H=Math.max(D-(R+1),0),k=Math.min(a.length,W+F);D===-1&&(H=0),W===-1&&(k=a.length);let B=W-D,z={};if(B)for(let Y=0;Y<=B;Y++){let V=Y+D;if(!G)z[V]=!0;else if(Y===0){let J=a[V-1].length;z[V]=[G,J-G+1]}else if(Y===B)z[V]=[0,x];else{let J=a[V-Y].length;z[V]=[0,J]}}else G===x?G?z[D]=[G,0]:z[D]=!0:z[D]=[G,x-G];return{start:H,end:k,markerLines:z}}function m(C,a,b={}){let v=b.forceColor||i()&&b.highlightCode,$=o(v),R=C.split(p),{start:F,end:D,markerLines:G}=d(a,R,b),W=a.start&&typeof a.start.column=="number",x=String(D).length,k=(v?u(C):C).split(p,D).slice(F,D).map((B,z)=>{let Y=F+1+z,J=` ${` ${Y}`.slice(-x)} |`,K=G[Y],te=!G[Y+1];if(K){let $e="";if(Array.isArray(K)){let M=B.slice(0,Math.max(K[0]-1,0)).replace(/[^\t]/g," "),Ye=K[1]||1;$e=[`
10
+ `,$.gutter(J.replace(/\d/g," "))," ",M,$.marker("^").repeat(Ye)].join(""),te&&b.message&&($e+=" "+$.message(b.message))}return[$.marker(">"),$.gutter(J),B.length>0?` ${B}`:"",$e].join("")}else return` ${$.gutter(J)}${B.length>0?` ${B}`:""}`}).join(`
11
11
  `);return b.message&&!W&&(k=`${" ".repeat(x+1)}${b.message}
12
- ${k}`),L?$.reset(k):k}function w(C,a,b,L={}){if(!h){h=!0;let R="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(R,"DeprecationWarning");else{let F=new Error(R);F.name="DeprecationWarning",console.warn(new Error(R))}}return b=Math.max(b,0),m(C,{start:{column:b,line:a}},L)}return Oe.codeFrameColumns=m,Oe.default=w,Oe.highlight=u,Oe}var wa=ya();function La(t,e){let r=e===0?-1:t.lastIndexOf(`
13
- `,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function va(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let n=La(t,e);return r?{line:n.line+1,column:n.column+1}:n}var Ca=t=>`\\u{${t.codePointAt(0).toString(16)}}`,nr=class t extends Error{name="JSONError";fileName;#i;#r;#e;#g;#w;constructor(e){if(typeof e=="string")super(),this.#e=e;else{let{jsonParseError:r,fileName:n,input:c}=e;super(void 0,{cause:r}),this.#i=c,this.#r=r,this.fileName=n}Error.captureStackTrace?.(this,t)}get message(){this.#e??=`${Aa(this.#r.message)}${this.#i===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${e?`
12
+ ${k}`),v?$.reset(k):k}function w(C,a,b,v={}){if(!h){h=!0;let R="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(R,"DeprecationWarning");else{let F=new Error(R);F.name="DeprecationWarning",console.warn(new Error(R))}}return b=Math.max(b,0),m(C,{start:{column:b,line:a}},v)}return Re.codeFrameColumns=m,Re.default=w,Re.highlight=u,Re}var La=va();function Ca(t,e){let r=e===0?-1:t.lastIndexOf(`
13
+ `,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function Sa(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let i=Ca(t,e);return r?{line:i.line+1,column:i.column+1}:i}var Aa=t=>`\\u{${t.codePointAt(0).toString(16)}}`,or=class t extends Error{name="JSONError";fileName;#i;#r;#e;#g;#w;constructor(e){if(typeof e=="string")super(),this.#e=e;else{let{jsonParseError:r,fileName:i,input:c}=e;super(void 0,{cause:r}),this.#i=c,this.#r=r,this.fileName=i}Error.captureStackTrace?.(this,t)}get message(){this.#e??=`${Oa(this.#r.message)}${this.#i===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${e?`
14
14
 
15
15
  ${e}
16
- `:""}`}set message(e){this.#e=e}#S(e){if(!this.#r)return;let r=this.#i,n=Sa(r,this.#r.message);if(n)return wa.codeFrameColumns(r,{start:n},{highlightCode:e})}get codeFrame(){return this.#g??=this.#S(!0),this.#g}get rawCodeFrame(){return this.#w??=this.#S(!1),this.#w}},Sa=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:c,column:s}=r.groups;return c&&s?{line:Number(c),column:Number(s)}:va(t,Number(n),{oneBased:!0})},Aa=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,n)=>`"${n}"(${Ca(n)})`);function $a(t,e,r){try{return JSON.parse(t,e)}catch(n){throw new nr({jsonParseError:n,fileName:r,input:t})}}var St,es;function Js(){return es||(es=1,St=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),St}var At,ts;function Zs(){if(ts)return At;ts=1;let t="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,c=e-6;return At={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},At}var Ze={exports:{}},rs;function Oa(){return rs||(rs=1,(function(t,e){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:c}=Zs(),s=Js();e=t.exports={};let l=e.re=[],i=e.safeRe=[],o=e.src=[],g=e.safeSrc=[],f=e.t={},E=0,y="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",c],[y,n]],h=d=>{for(let[m,w]of u)d=d.split(`${m}*`).join(`${m}{0,${w}}`).split(`${m}+`).join(`${m}{1,${w}}`);return d},p=(d,m,w)=>{let C=h(m),a=E++;s(d,a,m),f[d]=a,o[a]=m,g[a]=C,l[a]=new RegExp(m,w?"g":void 0),i[a]=new RegExp(C,w?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),p("MAINVERSION",`(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${o[f.PRERELEASEIDENTIFIER]}(?:\\.${o[f.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${o[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[f.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${y}+`),p("BUILD",`(?:\\+(${o[f.BUILDIDENTIFIER]}(?:\\.${o[f.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${o[f.MAINVERSION]}${o[f.PRERELEASE]}?${o[f.BUILD]}?`),p("FULL",`^${o[f.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${o[f.MAINVERSIONLOOSE]}${o[f.PRERELEASELOOSE]}?${o[f.BUILD]}?`),p("LOOSE",`^${o[f.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${o[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${o[f.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:${o[f.PRERELEASE]})?${o[f.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:${o[f.PRERELEASELOOSE]})?${o[f.BUILD]}?)?)?`),p("XRANGE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),p("COERCE",`${o[f.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",o[f.COERCEPLAIN]+`(?:${o[f.PRERELEASE]})?(?:${o[f.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",o[f.COERCE],!0),p("COERCERTLFULL",o[f.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${o[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${o[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${o[f.LONECARET]}${o[f.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${o[f.LONECARET]}${o[f.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${o[f.GTLT]}\\s*(${o[f.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]}|${o[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${o[f.XRANGEPLAIN]})\\s+-\\s+(${o[f.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${o[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[f.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ze,Ze.exports)),Ze.exports}var $t,ss;function Ra(){if(ss)return $t;ss=1;let t=Object.freeze({loose:!0}),e=Object.freeze({});return $t=n=>n?typeof n!="object"?t:n:e,$t}var Ot,is;function Ia(){if(is)return Ot;is=1;let t=/^[0-9]+$/,e=(n,c)=>{let s=t.test(n),l=t.test(c);return s&&l&&(n=+n,c=+c),n===c?0:s&&!l?-1:l&&!s?1:n<c?-1:1};return Ot={compareIdentifiers:e,rcompareIdentifiers:(n,c)=>e(c,n)},Ot}var Rt,ns;function xa(){if(ns)return Rt;ns=1;let t=Js(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=Zs(),{safeRe:n,t:c}=Oa(),s=Ra(),{compareIdentifiers:l}=Ia();class i{constructor(g,f){if(f=s(f),g instanceof i){if(g.loose===!!f.loose&&g.includePrerelease===!!f.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",g,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;let E=g.trim().match(f.loose?n[c.LOOSE]:n[c.FULL]);if(!E)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){let u=+y;if(u>=0&&u<r)return u}return y}):this.prerelease=[],this.build=E[5]?E[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(g){if(t("SemVer.compare",this.version,this.options,g),!(g instanceof i)){if(typeof g=="string"&&g===this.version)return 0;g=new i(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof i||(g=new i(g,this.options)),l(this.major,g.major)||l(this.minor,g.minor)||l(this.patch,g.patch)}comparePre(g){if(g instanceof i||(g=new i(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let f=0;do{let E=this.prerelease[f],y=g.prerelease[f];if(t("prerelease compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}compareBuild(g){g instanceof i||(g=new i(g,this.options));let f=0;do{let E=this.build[f],y=g.build[f];if(t("build compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}inc(g,f,E){if(g.startsWith("pre")){if(!f&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(f){let y=`-${f}`.match(this.options.loose?n[c.PRERELEASELOOSE]:n[c.PRERELEASE]);if(!y||y[1]!==f)throw new Error(`invalid identifier: ${f}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,E),this.inc("pre",f,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,E),this.inc("pre",f,E);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 y=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(f===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(f){let u=[f,y];E===!1&&(u=[f]),l(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Rt=i,Rt}var It,os;function Qs(){if(os)return It;os=1;let t=xa();return It=(r,n,c=!1)=>{if(r instanceof t)return r;try{return new t(r,n)}catch(s){if(!c)return null;throw s}},It}var xt,as;function ei(){if(as)return xt;as=1;let t=Qs();return xt=(r,n)=>{let c=t(r,n);return c?c.version:null},xt}var Nt,cs;function ti(){if(cs)return Nt;cs=1;let t=Qs();return Nt=(r,n)=>{let c=t(r.trim().replace(/^[=v]+/,""),n);return c?c.version:null},Nt}var ri=["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"],Na=["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"],Pa=["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"],Pt,us;function Da(){if(us)return Pt;us=1;var t=[].concat(ri).concat(Na),e=Pa;return Pt=function(r){var n=0;function c(){return n<r.length}function s(d){if(d instanceof RegExp){var m=r.slice(n),w=m.match(d);if(w)return n+=w[0].length,w[0]}else if(r.indexOf(d,n)===n)return n+=d.length,d}function l(){s(/[ ]*/)}function i(){for(var d,m=["WITH","AND","OR","(",")",":","+"],w=0;w<m.length&&(d=s(m[w]),!d);w++);if(d==="+"&&n>1&&r[n-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return s(/[A-Za-z0-9-.]+/)}function g(){var d=o();if(!d)throw new Error("Expected idstring at offset "+n);return d}function f(){if(s("DocumentRef-")){var d=g();return{type:"DOCUMENTREF",string:d}}}function E(){if(s("LicenseRef-")){var d=g();return{type:"LICENSEREF",string:d}}}function y(){var d=n,m=o();if(t.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(e.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};n=d}function u(){return i()||f()||E()||y()}for(var h=[];c()&&(l(),!!c());){var p=u();if(!p)throw new Error("Unexpected `"+r[n]+"` at offset "+n);h.push(p)}return h},Pt}var Dt,ls;function Ta(){return ls||(ls=1,Dt=function(t){var e=0;function r(){return e<t.length}function n(){return r()?t[e]:null}function c(){if(!r())throw new Error;e++}function s(p){var d=n();if(d&&d.type==="OPERATOR"&&p===d.string)return c(),d.string}function l(){if(s("WITH")){var p=n();if(p&&p.type==="EXCEPTION")return c(),p.string;throw new Error("Expected exception after `WITH`")}}function i(){var p=e,d="",m=n();if(m.type==="DOCUMENTREF"&&(c(),d+="DocumentRef-"+m.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(m=n(),m.type==="LICENSEREF")return c(),d+="LicenseRef-"+m.string,{license:d};e=p}function o(){var p=n();if(p&&p.type==="LICENSE"){c();var d={license:p.string};s("+")&&(d.plus=!0);var m=l();return m&&(d.exception=m),d}}function g(){var p=s("(");if(p){var d=u();if(!s(")"))throw new Error("Expected `)`");return d}}function f(){return g()||i()||o()}function E(p,d){return function m(){var w=d();if(w){if(!s(p))return w;var C=m();if(!C)throw new Error("Expected expression");return{left:w,conjunction:p.toLowerCase(),right:C}}}}var y=E("AND",f),u=E("OR",y),h=u();if(!h||r())throw new Error("Syntax error");return h}),Dt}var Tt,fs;function si(){if(fs)return Tt;fs=1;var t=Da(),e=Ta();return Tt=function(r){return e(t(r))},Tt}var Ft,hs;function Fa(){if(hs)return Ft;hs=1;var t=si(),e=ri;function r(m){try{return t(m),!0}catch{return!1}}function n(m,w){var C=w[0].length-m[0].length;return C!==0?C:m[0].toUpperCase().localeCompare(w[0].toUpperCase())}var c=[["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(n),s=0,l=1,i=[function(m){return m.toUpperCase()},function(m){return m.trim()},function(m){return m.replace(/\./g,"")},function(m){return m.replace(/\s+/g,"")},function(m){return m.replace(/\s+/g,"-")},function(m){return m.replace("v","-")},function(m){return m.replace(/,?\s*(\d)/,"-$1")},function(m){return m.replace(/,?\s*(\d)/,"-$1.0")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(m){return m[0].toUpperCase()+m.slice(1)},function(m){return m.replace("/","-")},function(m){return m.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(m){return m.indexOf("3.0")!==-1?m+"-or-later":m+"-only"},function(m){return m+"only"},function(m){return m.replace(/(\d)$/,"-$1.0")},function(m){return m.replace(/(-| )?(\d)$/,"-$2-Clause")},function(m){return m.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(m){return m.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(m){return m.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(m){return m.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(m){return m.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(m){return m.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(m){return"CC-"+m},function(m){return"CC-"+m+"-4.0"},function(m){return m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(m){return"CC-"+m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],o=e.map(function(m){var w=/^(.*)-\d+\.\d+$/.exec(m);return w?[w[0],w[1]]:[m,null]}).reduce(function(m,w){var C=w[1];return m[C]=m[C]||[],m[C].push(w[0]),m},{}),g=Object.keys(o).map(function(w){return[w,o[w]]}).filter(function(w){return w[1].length===1&&w[0]!==null&&w[0]!=="APL"}).map(function(w){return[w[0],w[1][0]]});o=void 0;var f=[["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(g).sort(n),E=0,y=1,u=function(m){for(var w=0;w<i.length;w++){var C=i[w](m).trim();if(C!==m&&r(C))return C}return null},h=function(m){for(var w=m.toUpperCase(),C=0;C<f.length;C++){var a=f[C];if(w.indexOf(a[E])>-1)return a[y]}return null},p=function(m,w){for(var C=0;C<c.length;C++){var a=c[C],b=a[s];if(m.indexOf(b)>-1){var L=m.replace(b,a[l]),$=w(L);if($!==null)return $}}return null};Ft=function(m,w){w=w||{};var C=w.upgrade===void 0?!0:!!w.upgrade;function a(R){return C?d(R):R}var b=typeof m=="string"&&m.trim().length!==0;if(!b)throw Error("Invalid argument. Expected non-empty string.");if(m=m.trim(),r(m))return a(m);var L=m.replace(/\+$/,"").trim();if(r(L))return a(L);var $=u(m);return $!==null||($=p(m,function(R){return r(R)?R:u(R)}),$!==null)||($=h(m),$!==null)||($=p(m,h),$!==null)?a($):null};function d(m){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(m)!==-1?m+"-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(m)!==-1?m.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(m)!==-1?m+"-or-later":m}return Ft}var _t,ps;function ii(){if(ps)return _t;ps=1;var t=si(),e=Fa(),r='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',n=/^SEE LICEN[CS]E IN (.+)$/;function c(l,i){return i.slice(0,l.length)===l}function s(l){if(l.hasOwnProperty("license")){var i=l.license;return c("LicenseRef",i)||c("DocumentRef",i)}else return s(l.left)||s(l.right)}return _t=function(l){var i;try{i=t(l)}catch{var o;if(l==="UNLICENSED"||l==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(o=n.exec(l))return{validForOldPackages:!0,validForNewPackages:!0,inFile:o[1]};var g={validForOldPackages:!1,validForNewPackages:!1,warnings:[r]};if(l.trim().length!==0){var f=e(l);f&&g.warnings.push('license is similar to the valid expression "'+f+'"')}return g}return s(i)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[r]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},_t}var Ue={},ds;function _a(){if(ds)return Ue;ds=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},n=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,n("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",u))}}let l=y=>!e.has(y),i=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>i(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#i=!1;static create(u){let h=o(u);if(!h)return[];f.#i=!0;let p=new f(u,h);return f.#i=!1,p}constructor(u,h){if(!f.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#i;#r;#e;#g;#w;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#m;#f;#o;#a;#t;#n;#s;#l;#p;#b;#u;#L;#d;#y;#v;#A;#E;static unsafeExposeInternals(u){return{starts:u.#d,ttls:u.#y,sizes:u.#L,keyMap:u.#o,keyList:u.#a,valList:u.#t,next:u.#n,prev:u.#s,get head(){return u.#l},get tail(){return u.#p},free:u.#b,isBackgroundFetch:h=>u.#h(h),backgroundFetch:(h,p,d,m)=>u.#N(h,p,d,m),moveToTail:h=>u.#F(h),indexes:h=>u.#R(h),rindexes:h=>u.#I(h),isStale:h=>u.#$(h)}}get max(){return this.#i}get maxSize(){return this.#r}get calculatedSize(){return this.#f}get size(){return this.#m}get fetchMethod(){return this.#w}get memoMethod(){return this.#S}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:C,allowStale:a,dispose:b,disposeAfter:L,noDisposeOnSet:$,noUpdateTTL:R,maxSize:F=0,maxEntrySize:T=0,sizeCalculation:G,fetchMethod:W,memoMethod:x,noDeleteOnFetchRejection:H,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:z,ignoreFetchAbort:Y}=u;if(h!==0&&!i(h))throw new TypeError("max option must be a nonnegative integer");let V=h?o(h):Array;if(!V)throw new Error("invalid max value: "+h);if(this.#i=h,this.#r=F,this.maxEntrySize=T||this.#r,this.sizeCalculation=G,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(x!==void 0&&typeof x!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=x,W!==void 0&&typeof W!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=W,this.#A=!!W,this.#o=new Map,this.#a=new Array(h).fill(void 0),this.#t=new Array(h).fill(void 0),this.#n=new V(h),this.#s=new V(h),this.#l=0,this.#p=0,this.#b=f.create(h),this.#m=0,this.#f=0,typeof b=="function"&&(this.#e=b),typeof L=="function"?(this.#g=L,this.#u=[]):(this.#g=void 0,this.#u=void 0),this.#v=!!this.#e,this.#E=!!this.#g,this.noDisposeOnSet=!!$,this.noUpdateTTL=!!R,this.noDeleteOnFetchRejection=!!H,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(this.#r!==0&&!i(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#T()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!C,this.ttlResolution=i(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#i===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#r){let J="LRU_CACHE_UNBOUNDED";l(J)&&(e.add(J),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",J,E))}}getRemainingTTL(u){return this.#o.has(u)?1/0:0}#D(){let u=new g(this.#i),h=new g(this.#i);this.#y=u,this.#d=h,this.#j=(m,w,C=t.now())=>{if(h[m]=w!==0?C:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#$(m)&&this.#c(this.#a[m],"expire")},w+1);a.unref&&a.unref()}},this.#C=m=>{h[m]=u[m]!==0?t.now():0},this.#P=(m,w)=>{if(u[w]){let C=u[w],a=h[w];if(!C||!a)return;m.ttl=C,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=C-b}};let p=0,d=()=>{let m=t.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#o.get(m);if(w===void 0)return 0;let C=u[w],a=h[w];if(!C||!a)return 1/0;let b=(p||d())-a;return C-b},this.#$=m=>{let w=h[m],C=u[m];return!!C&&!!w&&(p||d())-w>C}}#C=()=>{};#P=()=>{};#j=()=>{};#$=()=>!1;#T(){let u=new g(this.#i);this.#f=0,this.#L=u,this.#_=h=>{this.#f-=u[h],u[h]=0},this.#q=(h,p,d,m)=>{if(this.#h(p))return 0;if(!i(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!i(d))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 d},this.#O=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#f>m;)this.#x(!0)}this.#f+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#f)}}#_=u=>{};#O=(u,h,p)=>{};#q=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#p;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#l));)h=this.#s[h]}*#I({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#l;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#p));)h=this.#n[h]}#B(u){return u!==void 0&&this.#o.get(this.#a[u])===u}*entries(){for(let u of this.#R())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*rentries(){for(let u of this.#I())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*keys(){for(let u of this.#R()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*rkeys(){for(let u of this.#I()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*values(){for(let u of this.#R())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}*rvalues(){for(let u of this.#I())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#a[p],this))return this.get(this.#a[p],h)}}forEach(u,h=this){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}rforEach(u,h=this){for(let p of this.#I()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}purgeStale(){let u=!1;for(let h of this.#I({allowStale:!0}))this.#$(h)&&(this.#c(this.#a[h],"expire"),u=!0);return u}info(u){let h=this.#o.get(u);if(h===void 0)return;let p=this.#t[h],d=this.#h(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#y&&this.#d){let w=this.#y[h],C=this.#d[h];if(w&&C){let a=w-(t.now()-C);m.ttl=a,m.start=Date.now()}}return this.#L&&(m.size=this.#L[h]),m}dump(){let u=[];for(let h of this.#R({allowStale:!0})){let p=this.#a[h],d=this.#t[h],m=this.#h(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#y&&this.#d){w.ttl=this.#y[h];let C=t.now()-this.#d[h];w.start=Math.floor(Date.now()-C)}this.#L&&(w.size=this.#L[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=t.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:C=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,L=this.#q(u,h,p.size||0,C);if(this.maxEntrySize&&L>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#c(u,"set"),this;let $=this.#m===0?void 0:this.#o.get(u);if($===void 0)$=this.#m===0?this.#p:this.#b.length!==0?this.#b.pop():this.#m===this.#i?this.#x(!1):this.#m,this.#a[$]=u,this.#t[$]=h,this.#o.set(u,$),this.#n[this.#p]=$,this.#s[$]=this.#p,this.#p=$,this.#m++,this.#O($,L,a),a&&(a.set="add"),b=!1;else{this.#F($);let R=this.#t[$];if(h!==R){if(this.#A&&this.#h(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#v&&this.#e?.(F,u,"set"),this.#E&&this.#u?.push([F,u,"set"]))}else w||(this.#v&&this.#e?.(R,u,"set"),this.#E&&this.#u?.push([R,u,"set"]));if(this.#_($),this.#O($,L,a),this.#t[$]=h,a){a.set="replace";let F=R&&this.#h(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update")}if(d!==0&&!this.#y&&this.#D(),this.#y&&(b||this.#j($,d,m),a&&this.#P(a,$)),!w&&this.#E&&this.#u){let R=this.#u,F;for(;F=R?.shift();)this.#g?.(...F)}return this}pop(){try{for(;this.#m;){let u=this.#t[this.#l];if(this.#x(!0),this.#h(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#E&&this.#u){let u=this.#u,h;for(;h=u?.shift();)this.#g?.(...h)}}}#x(u){let h=this.#l,p=this.#a[h],d=this.#t[h];return this.#A&&this.#h(d)?d.__abortController.abort(new Error("evicted")):(this.#v||this.#E)&&(this.#v&&this.#e?.(d,p,"evict"),this.#E&&this.#u?.push([d,p,"evict"])),this.#_(h),u&&(this.#a[h]=void 0,this.#t[h]=void 0,this.#b.push(h)),this.#m===1?(this.#l=this.#p=0,this.#b.length=0):this.#l=this.#n[h],this.#o.delete(p),this.#m--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#o.get(u);if(m!==void 0){let w=this.#t[m];if(this.#h(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#$(m))d&&(d.has="stale",this.#P(d,m));else return p&&this.#C(m),d&&(d.has="hit",this.#P(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#o.get(u);if(d===void 0||!p&&this.#$(d))return;let m=this.#t[d];return this.#h(m)?m.__staleWhileFetching:m}#N(u,h,p,d){let m=h===void 0?void 0:this.#t[h];if(this.#h(m))return m;let w=new c,{signal:C}=p;C?.addEventListener("abort",()=>w.abort(C.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#t[h]===F&&(G===void 0?k.__staleWhileFetching?this.#t[h]=k.__staleWhileFetching:this.#c(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},L=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#t[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#c(u,"fetch"):x||(this.#t[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#w?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,L),T=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,T,{...a.options,status:void 0}),h=this.#o.get(u)):this.#t[h]=T,T}#h(u){if(!this.#A)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:C=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:L=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:T=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#A)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:C,size:a,sizeCalculation:b,noUpdateTTL:L,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:T,ignoreFetchAbort:F,status:x,signal:H},B=this.#o.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#N(u,B,k,G);return z.__returned=z}else{let z=this.#t[B];if(this.#h(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#$(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#F(B),d&&this.#C(B),x&&this.#P(x,B),z;let V=this.#N(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#S;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,C=this.get(u,w);if(!m&&C!==void 0)return C;let a=p(u,C,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,C=this.#o.get(u);if(C!==void 0){let a=this.#t[C],b=this.#h(a);return w&&this.#P(w,C),this.#$(C)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#c(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#F(C),d&&this.#C(C),a))}else w&&(w.get="miss")}#G(u,h){this.#s[h]=u,this.#n[u]=h}#F(u){u!==this.#p&&(u===this.#l?this.#l=this.#n[u]:this.#G(this.#s[u],this.#n[u]),this.#G(this.#p,u),this.#p=u)}delete(u){return this.#c(u,"delete")}#c(u,h){let p=!1;if(this.#m!==0){let d=this.#o.get(u);if(d!==void 0)if(p=!0,this.#m===1)this.#M(h);else{this.#_(d);let m=this.#t[d];if(this.#h(m)?m.__abortController.abort(new Error("deleted")):(this.#v||this.#E)&&(this.#v&&this.#e?.(m,u,h),this.#E&&this.#u?.push([m,u,h])),this.#o.delete(u),this.#a[d]=void 0,this.#t[d]=void 0,d===this.#p)this.#p=this.#s[d];else if(d===this.#l)this.#l=this.#n[d];else{let w=this.#s[d];this.#n[w]=this.#n[d];let C=this.#n[d];this.#s[C]=this.#s[d]}this.#m--,this.#b.push(d)}}if(this.#E&&this.#u?.length){let d=this.#u,m;for(;m=d?.shift();)this.#g?.(...m)}return p}clear(){return this.#M("delete")}#M(u){for(let h of this.#I({allowStale:!0})){let p=this.#t[h];if(this.#h(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#a[h];this.#v&&this.#e?.(p,d,u),this.#E&&this.#u?.push([p,d,u])}}if(this.#o.clear(),this.#t.fill(void 0),this.#a.fill(void 0),this.#y&&this.#d&&(this.#y.fill(0),this.#d.fill(0)),this.#L&&this.#L.fill(0),this.#l=0,this.#p=0,this.#b.length=0,this.#f=0,this.#m=0,this.#E&&this.#u){let h=this.#u,p;for(;p=h?.shift();)this.#g?.(...p)}}}return Ue.LRUCache=E,Ue}var Ut,ms;function Ua(){if(ms)return Ut;ms=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),n={sshtemplate:({domain:s,user:l,project:i,committish:o})=>`git@${s}:${l}/${i}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:i,committish:o})=>`git+ssh://git@${s}/${l}/${i}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:i,committish:o,treepath:g})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:i,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:i,treepath:o,committish:g})=>`https://${s}/${l}/${i}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:i,committish:o})=>`${s}:${l}/${i}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:i})=>`${s}/${l}${t("#",i)}`,bugstemplate:({domain:s,user:l,project:i})=>`https://${s}/${l}/${i}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:i,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${i}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://codeload.${s}/${l}/${i}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,i,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let i=l.split("/"),o=i.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=i.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:i})=>`git@${s}:${l}.git${t("#",i)}`,sshurltemplate:({domain:s,project:l,committish:i})=>`git+ssh://git@${s}/${l}.git${t("#",i)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g})=>`https://${s}/${l}/${i}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,browsetreetemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,httpstemplate:({domain:s,project:l,committish:i})=>`git+https://${s}/${l}.git${t("#",i)}`,filetemplate:({user:s,project:l,committish:i,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(i))}/${o}`,shortcuttemplate:({type:s,project:l,committish:i})=>`${s}:${l}${t("#",i)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:i})=>`git://${s}/${l}.git${t("#",i)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(o!=="raw"){if(!i){if(!l)return;i=l,l=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:l,project:i,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},n,l);return Ut=c,Ut}var Gt,gs;function ni(){if(gs)return Gt;gs=1;let t=ar,e=(s,l,i)=>{let o=s.indexOf(i);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},n=(s,l)=>{let i=s.indexOf(":"),o=s.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>i?`git+ssh://${s}`:s:s.indexOf("//")===i+1?s:`${s.slice(0,i+1)}//${s.slice(i+1)}`},c=s=>{let l=e(s,"@","#"),i=e(s,":","#");return i>l&&(s=s.slice(0,i)+"/"+s.slice(i+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return Gt=(s,l)=>{let i=l?n(s,l):s;return r(i)||r(c(i))},Gt}var jt,bs;function Ga(){if(bs)return jt;bs=1;let t=ni(),e=r=>{let n=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),i=/\s/.exec(r),o=r.indexOf("@"),g=!i||n>-1&&i.index>n,f=o===-1||n>-1&&o>n,E=l===-1||n>-1&&l>n,y=s===-1||n>-1&&s>n,u=c>0,h=n>-1?r[n-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return jt=(r,n,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,i=t(l,s);if(!i)return;let o=c.byShortcut[i.protocol],g=c.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[i.protocol]?.auth&&(i.username||i.password)&&(y=`${i.username}${i.password?":"+i.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let C=m.lastIndexOf("/");C>-1?(h=decodeURIComponent(m.slice(0,C)),h||(h=null),p=decodeURIComponent(m.slice(C+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),i.hash&&(u=decodeURIComponent(i.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(i.protocol))return;let m=E.extract(i);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,n]},jt}var Bt,Es;function ja(){if(Es)return Bt;Es=1;let{LRUCache:t}=_a(),e=Ua(),r=Ga(),n=ni(),c=new t({max:1e3});class s{constructor(i,o,g,f,E,y,u={}){Object.assign(this,s.#i[i],{type:i,user:o,auth:g,project:f,committish:E,default:y,opts:u})}static#i={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(i,o){s.#i[i]=o,s.#i.byDomain[o.domain]=i,s.#i.byShortcut[`${i}:`]=i,s.#r[`${i}:`]={name:i}}static fromUrl(i,o){if(typeof i!="string")return;let g=i+JSON.stringify(o||{});if(!c.has(g)){let f=r(i,o,{gitHosts:s.#i,protocols:s.#r});c.set(g,f?new s(...f):void 0)}return c.get(g)}static parseUrl(i){return n(i)}#e(i,o){if(typeof i!="function")return null;let g={...this,...this.opts,...o};g.path||(g.path=""),g.path.startsWith("/")&&(g.path=g.path.slice(1)),g.noCommittish&&(g.committish=null);let f=i(g);return g.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(i){return this.#e(this.sshtemplate,i)}sshurl(i){return this.#e(this.sshurltemplate,i)}browse(i,...o){return typeof i!="string"?this.#e(this.browsetemplate,i):typeof o[0]!="string"?this.#e(this.browsetreetemplate,{...o[0],path:i}):this.#e(this.browsetreetemplate,{...o[1],fragment:o[0],path:i})}browseFile(i,...o){return typeof o[0]!="string"?this.#e(this.browseblobtemplate,{...o[0],path:i}):this.#e(this.browseblobtemplate,{...o[1],fragment:o[0],path:i})}docs(i){return this.#e(this.docstemplate,i)}bugs(i){return this.#e(this.bugstemplate,i)}https(i){return this.#e(this.httpstemplate,i)}git(i){return this.#e(this.gittemplate,i)}shortcut(i){return this.#e(this.shortcuttemplate,i)}path(i){return this.#e(this.pathtemplate,i)}tarball(i){return this.#e(this.tarballtemplate,{...i,noCommittish:!1})}file(i,o){return this.#e(this.filetemplate,{...o,path:i})}edit(i,o){return this.#e(this.edittemplate,{...o,path:i})}getDefaultRepresentation(){return this.default}toString(i){return this.default&&typeof this[this.default]=="function"?this[this.default](i):this.sshurl(i)}}for(let[l,i]of Object.entries(e))s.addHost(l,i);return Bt=s,Bt}var Mt,ys;function Ba(){if(ys)return Mt;ys=1,Mt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
17
- `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let n=e.length,c=r+1;for(;c<n&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return Mt}var Ma={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"},qa={web:"url",name:"url"},za={server:"start",tests:"test"},Ha={topLevel:Ma,bugs:qa,script:za},qt,ws;function Wa(){if(ws)return qt;ws=1;var t=ei(),e=ti(),r=ii(),n=ja(),c=Ms,s=["dependencies","devDependencies","optionalDependencies"],l=Ba(),i=ar,o=Ha,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");qt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var L=n.fromUrl(b);L&&(b=a.repository.url=L.getDefaultRepresentation()==="shortcut"?L.https():L.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(L){return!L||typeof L!="string"?(this.warn("invalidFilename",L),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},L;(L=a.name.match(/^@[^/]+[/](.*)$/))?b[L[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",L="bundleDependencies";a[b]&&!a[L]&&(a[L]=a[b],delete a[b]),a[L]&&!Array.isArray(a[L])?(this.warn("nonArrayBundleDependencies"),delete a[L]):a[L]&&(a[L]=a[L].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(L){var $=a[b][L];typeof $!="string"&&(this.warn("nonStringDependency",L,JSON.stringify($)),delete a[b][L]);var R=n.fromUrl(a[b][L]);R&&(a[b][L]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var L=!b;if(!a.version)return a.version="",!0;if(!t(a.version,L))throw new Error('Invalid version: "'+a.version+'"');return a.version=e(a.version,L),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var L=b.strict;if(!a.name&&!L){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");L||(a.name=a.name.trim()),y(a.name,L,b.allowLegacyCase),c.builtinModules.includes(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=l(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=n.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:i.parse(a.bugs).protocol?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{C(a.bugs,this.warn);var L=a.bugs;a.bugs={},L.url&&(typeof L.url=="string"&&i.parse(L.url).protocol?a.bugs.url=L.url:this.warn("nonUrlBugsUrlField")),L.email&&(typeof L.email=="string"&&g(L.email)?a.bugs.email=L.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=n.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;i.parse(a.homepage).protocol||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!r(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,L){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!L&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(L){Array.isArray(a[L])&&(a[L]=a[L].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",L=a.url||a.web,$=L?" ("+L+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),L=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),L&&(R.url=L[1]),R}function d(a){var b=a.optionalDependencies;if(b){var L=a.dependencies||{};Object.keys(b).forEach(function($){L[$]=b[$]}),a.dependencies=L}}function m(a,b,L){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;L("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),T=R.join("");T=T.trim(),T=T.replace(/^@/,""),$[F]=T}),$}function w(a,b){s.forEach(function(L){a[L]&&(a[L]=m(a[L],L,b))})}function C(a,b){a&&Object.keys(a).forEach(function(L){o.bugs[L]&&(b("typo",L,o.bugs[L],"bugs"),a[o.bugs[L]]=a[L],delete a[L])})}return qt}var ka="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Va="No repository field.",Xa="Probably broken git url: %s",Ya="scripts must be an object",Ka="script values must be string commands",Ja="Invalid 'files' member",Za="Invalid filename in 'files' list: %s",Qa="Invalid 'bundleDependencies' list. Must be array of package names",ec="Invalid bundleDependencies member: %s",tc="Non-dependency in bundleDependencies: %s",rc="%s field must be an object",sc="Invalid dependency: %s %s",ic="specifying %s as array is deprecated",nc="modules field is deprecated",oc="keywords should be an array of strings",ac="keywords should be an array of strings",cc="%s is also the name of a node core module.",uc="'description' field should be a string",lc="No description",fc="No README data",hc="No license field.",pc="Bug string field must be url, email, or {email,url}",dc="bugs.url field must be a string url. Deleted.",mc="bugs.email field must be a string email. Deleted.",gc="Normalized value of bugs field is an empty object. Deleted.",bc="homepage field must be a string url. Deleted.",Ec="license should be a valid SPDX license expression",yc="%s should probably be %s.",wc={repositories:ka,missingRepository:Va,brokenGitUrl:Xa,nonObjectScripts:Ya,nonStringScript:Ka,nonArrayFiles:Ja,invalidFilename:Za,nonArrayBundleDependencies:Qa,nonStringBundleDependency:ec,nonDependencyBundleDependency:tc,nonObjectDependencies:rc,nonStringDependency:sc,deprecatedArrayDependencies:ic,deprecatedModules:nc,nonArrayKeywords:oc,nonStringKeyword:ac,conflictingName:cc,nonStringDescription:uc,missingDescription:lc,missingReadme:fc,missingLicense:hc,nonEmailUrlBugsString:pc,nonUrlBugsUrlField:dc,nonEmailBugsEmailField:mc,emptyNormalizedBugs:gc,nonUrlHomepage:bc,invalidLicense:Ec,typo:yc},zt,Ls;function Lc(){if(Ls)return zt;Ls=1;var t=Bs,e=wc;zt=function(){var n=Array.prototype.slice.call(arguments,0),c=n.shift();if(c==="typo")return r.apply(null,n);var s=e[c]?e[c]:c+": '%s'";return n.unshift(s),t.format.apply(null,n)};function r(n,c,s){return s&&(n=s+"['"+n+"']",c=s+"['"+c+"']"),t.format(e.typo,n,c)}return zt}var Ht,vs;function vc(){if(vs)return Ht;vs=1,Ht=s;var t=Wa();s.fixer=t;var e=Lc(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],n=["dependencies","people","typos"],c=r.map(function(i){return l(i)+"Field"});c=c.concat(n);function s(i,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||i.private)&&(o=function(){}),i.scripts&&i.scripts.install==="node-gyp rebuild"&&!i.scripts.preinstall&&(i.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](i,g)}),i._id=i.name+"@"+i.version}function l(i){return i.charAt(0).toUpperCase()+i.slice(1)}return Ht}var Cc=vc(),Sc=tt(Cc);function Ac(t){return t instanceof URL?qs(t):t}var $c=t=>ye.resolve(Ac(t)??".","package.json"),Oc=(t,e)=>{let r=typeof t=="string"?$a(t):t;return e&&Sc(r),r};function Rc({cwd:t,normalize:e=!0}={}){let r=zs.readFileSync($c(t),"utf8");return Oc(r,e)}function oi(t){let e=pa("package.json",t);if(e)return{packageJson:Rc({...t,cwd:ye.dirname(e)}),path:e}}var Ge={},Cs;function Ic(){if(Cs)return Ge;Cs=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},n=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,n("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",u))}}let l=y=>!e.has(y),i=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>i(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#i=!1;static create(u){let h=o(u);if(!h)return[];f.#i=!0;let p=new f(u,h);return f.#i=!1,p}constructor(u,h){if(!f.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#i;#r;#e;#g;#w;#S;#m;#f;get perf(){return this.#f}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#t;#n;#s;#l;#p;#b;#u;#L;#d;#y;#v;#A;#E;#D;#C;#P;static unsafeExposeInternals(u){return{starts:u.#v,ttls:u.#A,sizes:u.#y,keyMap:u.#t,keyList:u.#n,valList:u.#s,next:u.#l,prev:u.#p,get head(){return u.#b},get tail(){return u.#u},free:u.#L,isBackgroundFetch:h=>u.#c(h),backgroundFetch:(h,p,d,m)=>u.#F(h,p,d,m),moveToTail:h=>u.#z(h),indexes:h=>u.#x(h),rindexes:h=>u.#N(h),isStale:h=>u.#O(h)}}get max(){return this.#i}get maxSize(){return this.#r}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#S}get memoMethod(){return this.#m}get dispose(){return this.#e}get onInsert(){return this.#g}get disposeAfter(){return this.#w}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:C,allowStale:a,dispose:b,onInsert:L,disposeAfter:$,noDisposeOnSet:R,noUpdateTTL:F,maxSize:T=0,maxEntrySize:G=0,sizeCalculation:W,fetchMethod:x,memoMethod:H,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:z,allowStaleOnFetchAbort:Y,ignoreFetchAbort:V,perf:J}=u;if(J!==void 0&&typeof J?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#f=J??t,h!==0&&!i(h))throw new TypeError("max option must be a nonnegative integer");let K=h?o(h):Array;if(!K)throw new Error("invalid max value: "+h);if(this.#i=h,this.#r=T,this.maxEntrySize=G||this.#r,this.sizeCalculation=W,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(H!==void 0&&typeof H!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#m=H,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#S=x,this.#D=!!x,this.#t=new Map,this.#n=new Array(h).fill(void 0),this.#s=new Array(h).fill(void 0),this.#l=new K(h),this.#p=new K(h),this.#b=0,this.#u=0,this.#L=f.create(h),this.#o=0,this.#a=0,typeof b=="function"&&(this.#e=b),typeof L=="function"&&(this.#g=L),typeof $=="function"?(this.#w=$,this.#d=[]):(this.#w=void 0,this.#d=void 0),this.#E=!!this.#e,this.#P=!!this.#g,this.#C=!!this.#w,this.noDisposeOnSet=!!R,this.noUpdateTTL=!!F,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!z,this.allowStaleOnFetchAbort=!!Y,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(this.#r!==0&&!i(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!C,this.ttlResolution=i(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#i===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#r){let te="LRU_CACHE_UNBOUNDED";l(te)&&(e.add(te),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",te,E))}}getRemainingTTL(u){return this.#t.has(u)?1/0:0}#j(){let u=new g(this.#i),h=new g(this.#i);this.#A=u,this.#v=h,this.#_=(m,w,C=this.#f.now())=>{if(h[m]=w!==0?C:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#O(m)&&this.#U(this.#n[m],"expire")},w+1);a.unref&&a.unref()}},this.#$=m=>{h[m]=u[m]!==0?this.#f.now():0},this.#T=(m,w)=>{if(u[w]){let C=u[w],a=h[w];if(!C||!a)return;m.ttl=C,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=C-b}};let p=0,d=()=>{let m=this.#f.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#t.get(m);if(w===void 0)return 0;let C=u[w],a=h[w];if(!C||!a)return 1/0;let b=(p||d())-a;return C-b},this.#O=m=>{let w=h[m],C=u[m];return!!C&&!!w&&(p||d())-w>C}}#$=()=>{};#T=()=>{};#_=()=>{};#O=()=>!1;#q(){let u=new g(this.#i);this.#a=0,this.#y=u,this.#R=h=>{this.#a-=u[h],u[h]=0},this.#B=(h,p,d,m)=>{if(this.#c(p))return 0;if(!i(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!i(d))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 d},this.#I=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#a>m;)this.#G(!0)}this.#a+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#a)}}#R=u=>{};#I=(u,h,p)=>{};#B=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#u;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#b));)h=this.#p[h]}*#N({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#b;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#u));)h=this.#l[h]}#h(u){return u!==void 0&&this.#t.get(this.#n[u])===u}*entries(){for(let u of this.#x())this.#s[u]!==void 0&&this.#n[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#n[u],this.#s[u]])}*rentries(){for(let u of this.#N())this.#s[u]!==void 0&&this.#n[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#n[u],this.#s[u]])}*keys(){for(let u of this.#x()){let h=this.#n[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*rkeys(){for(let u of this.#N()){let h=this.#n[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*values(){for(let u of this.#x())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}*rvalues(){for(let u of this.#N())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#n[p],this))return this.get(this.#n[p],h)}}forEach(u,h=this){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#n[p],this)}}rforEach(u,h=this){for(let p of this.#N()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#n[p],this)}}purgeStale(){let u=!1;for(let h of this.#N({allowStale:!0}))this.#O(h)&&(this.#U(this.#n[h],"expire"),u=!0);return u}info(u){let h=this.#t.get(u);if(h===void 0)return;let p=this.#s[h],d=this.#c(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#A&&this.#v){let w=this.#A[h],C=this.#v[h];if(w&&C){let a=w-(this.#f.now()-C);m.ttl=a,m.start=Date.now()}}return this.#y&&(m.size=this.#y[h]),m}dump(){let u=[];for(let h of this.#x({allowStale:!0})){let p=this.#n[h],d=this.#s[h],m=this.#c(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#A&&this.#v){w.ttl=this.#A[h];let C=this.#f.now()-this.#v[h];w.start=Math.floor(Date.now()-C)}this.#y&&(w.size=this.#y[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=this.#f.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:C=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,L=this.#B(u,h,p.size||0,C);if(this.maxEntrySize&&L>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#U(u,"set"),this;let $=this.#o===0?void 0:this.#t.get(u);if($===void 0)$=this.#o===0?this.#u:this.#L.length!==0?this.#L.pop():this.#o===this.#i?this.#G(!1):this.#o,this.#n[$]=u,this.#s[$]=h,this.#t.set(u,$),this.#l[this.#u]=$,this.#p[$]=this.#u,this.#u=$,this.#o++,this.#I($,L,a),a&&(a.set="add"),b=!1,this.#P&&this.#g?.(h,u,"add");else{this.#z($);let R=this.#s[$];if(h!==R){if(this.#D&&this.#c(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#E&&this.#e?.(F,u,"set"),this.#C&&this.#d?.push([F,u,"set"]))}else w||(this.#E&&this.#e?.(R,u,"set"),this.#C&&this.#d?.push([R,u,"set"]));if(this.#R($),this.#I($,L,a),this.#s[$]=h,a){a.set="replace";let F=R&&this.#c(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update");this.#P&&this.onInsert?.(h,u,h===R?"update":"replace")}if(d!==0&&!this.#A&&this.#j(),this.#A&&(b||this.#_($,d,m),a&&this.#T(a,$)),!w&&this.#C&&this.#d){let R=this.#d,F;for(;F=R?.shift();)this.#w?.(...F)}return this}pop(){try{for(;this.#o;){let u=this.#s[this.#b];if(this.#G(!0),this.#c(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#C&&this.#d){let u=this.#d,h;for(;h=u?.shift();)this.#w?.(...h)}}}#G(u){let h=this.#b,p=this.#n[h],d=this.#s[h];return this.#D&&this.#c(d)?d.__abortController.abort(new Error("evicted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(d,p,"evict"),this.#C&&this.#d?.push([d,p,"evict"])),this.#R(h),u&&(this.#n[h]=void 0,this.#s[h]=void 0,this.#L.push(h)),this.#o===1?(this.#b=this.#u=0,this.#L.length=0):this.#b=this.#l[h],this.#t.delete(p),this.#o--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#t.get(u);if(m!==void 0){let w=this.#s[m];if(this.#c(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#O(m))d&&(d.has="stale",this.#T(d,m));else return p&&this.#$(m),d&&(d.has="hit",this.#T(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#t.get(u);if(d===void 0||!p&&this.#O(d))return;let m=this.#s[d];return this.#c(m)?m.__staleWhileFetching:m}#F(u,h,p,d){let m=h===void 0?void 0:this.#s[h];if(this.#c(m))return m;let w=new c,{signal:C}=p;C?.addEventListener("abort",()=>w.abort(C.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#s[h]===F&&(G===void 0?k.__staleWhileFetching!==void 0?this.#s[h]=k.__staleWhileFetching:this.#U(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},L=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#s[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#U(u,"fetch"):x||(this.#s[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#S?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,L),T=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,T,{...a.options,status:void 0}),h=this.#t.get(u)):this.#s[h]=T,T}#c(u){if(!this.#D)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:C=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:L=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:T=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#D)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:C,size:a,sizeCalculation:b,noUpdateTTL:L,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:T,ignoreFetchAbort:F,status:x,signal:H},B=this.#t.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#F(u,B,k,G);return z.__returned=z}else{let z=this.#s[B];if(this.#c(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#O(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#z(B),d&&this.#$(B),x&&this.#T(x,B),z;let V=this.#F(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#m;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,C=this.get(u,w);if(!m&&C!==void 0)return C;let a=p(u,C,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,C=this.#t.get(u);if(C!==void 0){let a=this.#s[C],b=this.#c(a);return w&&this.#T(w,C),this.#O(C)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#U(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#z(C),d&&this.#$(C),a))}else w&&(w.get="miss")}#M(u,h){this.#p[h]=u,this.#l[u]=h}#z(u){u!==this.#u&&(u===this.#b?this.#b=this.#l[u]:this.#M(this.#p[u],this.#l[u]),this.#M(this.#u,u),this.#u=u)}delete(u){return this.#U(u,"delete")}#U(u,h){let p=!1;if(this.#o!==0){let d=this.#t.get(u);if(d!==void 0)if(p=!0,this.#o===1)this.#H(h);else{this.#R(d);let m=this.#s[d];if(this.#c(m)?m.__abortController.abort(new Error("deleted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(m,u,h),this.#C&&this.#d?.push([m,u,h])),this.#t.delete(u),this.#n[d]=void 0,this.#s[d]=void 0,d===this.#u)this.#u=this.#p[d];else if(d===this.#b)this.#b=this.#l[d];else{let w=this.#p[d];this.#l[w]=this.#l[d];let C=this.#l[d];this.#p[C]=this.#p[d]}this.#o--,this.#L.push(d)}}if(this.#C&&this.#d?.length){let d=this.#d,m;for(;m=d?.shift();)this.#w?.(...m)}return p}clear(){return this.#H("delete")}#H(u){for(let h of this.#N({allowStale:!0})){let p=this.#s[h];if(this.#c(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#n[h];this.#E&&this.#e?.(p,d,u),this.#C&&this.#d?.push([p,d,u])}}if(this.#t.clear(),this.#s.fill(void 0),this.#n.fill(void 0),this.#A&&this.#v&&(this.#A.fill(0),this.#v.fill(0)),this.#y&&this.#y.fill(0),this.#b=0,this.#u=0,this.#L.length=0,this.#a=0,this.#o=0,this.#C&&this.#d){let h=this.#d,p;for(;p=h?.shift();)this.#w?.(...p)}}}return Ge.LRUCache=E,Ge}var Wt,Ss;function xc(){if(Ss)return Wt;Ss=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),n={sshtemplate:({domain:s,user:l,project:i,committish:o})=>`git@${s}:${l}/${i}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:i,committish:o})=>`git+ssh://git@${s}/${l}/${i}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:i,committish:o,treepath:g})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:i,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:i,treepath:o,committish:g})=>`https://${s}/${l}/${i}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:i,committish:o})=>`${s}:${l}/${i}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:i})=>`${s}/${l}${t("#",i)}`,bugstemplate:({domain:s,user:l,project:i})=>`https://${s}/${l}/${i}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:i,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${i}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://codeload.${s}/${l}/${i}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,i,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let i=l.split("/"),o=i.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=i.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:i})=>`git@${s}:${l}.git${t("#",i)}`,sshurltemplate:({domain:s,project:l,committish:i})=>`git+ssh://git@${s}/${l}.git${t("#",i)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g})=>`https://${s}/${l}/${i}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,browsetreetemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,httpstemplate:({domain:s,project:l,committish:i})=>`git+https://${s}/${l}.git${t("#",i)}`,filetemplate:({user:s,project:l,committish:i,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(i))}/${o}`,shortcuttemplate:({type:s,project:l,committish:i})=>`${s}:${l}${t("#",i)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:i})=>`git://${s}/${l}.git${t("#",i)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(o!=="raw"){if(!i){if(!l)return;i=l,l=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:l,project:i,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},n,l);return Wt=c,Wt}var kt,As;function ai(){if(As)return kt;As=1;let t=ar,e=(s,l,i)=>{let o=s.indexOf(i);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},n=(s,l)=>{let i=s.indexOf(":"),o=s.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>i?`git+ssh://${s}`:s:s.indexOf("//")===i+1?s:`${s.slice(0,i+1)}//${s.slice(i+1)}`},c=s=>{let l=e(s,"@","#"),i=e(s,":","#");return i>l&&(s=s.slice(0,i)+"/"+s.slice(i+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return kt=(s,l)=>{let i=l?n(s,l):s;return r(i)||r(c(i))},kt}var Vt,$s;function Nc(){if($s)return Vt;$s=1;let t=ai(),e=r=>{let n=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),i=/\s/.exec(r),o=r.indexOf("@"),g=!i||n>-1&&i.index>n,f=o===-1||n>-1&&o>n,E=l===-1||n>-1&&l>n,y=s===-1||n>-1&&s>n,u=c>0,h=n>-1?r[n-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Vt=(r,n,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,i=t(l,s);if(!i)return;let o=c.byShortcut[i.protocol],g=c.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[i.protocol]?.auth&&(i.username||i.password)&&(y=`${i.username}${i.password?":"+i.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let C=m.lastIndexOf("/");C>-1?(h=decodeURIComponent(m.slice(0,C)),h||(h=null),p=decodeURIComponent(m.slice(C+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),i.hash&&(u=decodeURIComponent(i.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(i.protocol))return;let m=E.extract(i);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,n]},Vt}var Xt,Os;function Pc(){if(Os)return Xt;Os=1;let{LRUCache:t}=Ic(),e=xc(),r=Nc(),n=ai(),c=new t({max:1e3});function s(i){try{let{protocol:o,hostname:g,pathname:f}=new URL(i);if(!g)return null;let E=/(?:git\+)http:$/.test(o)?"http:":"https:",y=f.replace(/\.git$/,"");return`${E}//${g}${y}`}catch{return null}}class l{constructor(o,g,f,E,y,u,h={}){Object.assign(this,l.#i[o],{type:o,user:g,auth:f,project:E,committish:y,default:u,opts:h})}static#i={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(o,g){l.#i[o]=g,l.#i.byDomain[g.domain]=o,l.#i.byShortcut[`${o}:`]=o,l.#r[`${o}:`]={name:o}}static fromUrl(o,g){if(typeof o!="string")return;let f=o+JSON.stringify(g||{});if(!c.has(f)){let E=r(o,g,{gitHosts:l.#i,protocols:l.#r});c.set(f,E?new l(...E):void 0)}return c.get(f)}static fromManifest(o,g={}){if(!o||typeof o!="object")return;let f=o.repository,E=f&&(typeof f=="string"?f:typeof f=="object"&&typeof f.url=="string"?f.url:null);if(!E)throw new Error("no repository");let y=E&&l.fromUrl(E.replace(/^git\+/,""),g)||null;if(y)return y;let u=s(E);return l.fromUrl(u,g)||u}static parseUrl(o){return n(o)}#e(o,g){if(typeof o!="function")return null;let f={...this,...this.opts,...g};f.path||(f.path=""),f.path.startsWith("/")&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);let E=o(f);return f.noGitPlus&&E.startsWith("git+")?E.slice(4):E}hash(){return this.committish?`#${this.committish}`:""}ssh(o){return this.#e(this.sshtemplate,o)}sshurl(o){return this.#e(this.sshurltemplate,o)}browse(o,...g){return typeof o!="string"?this.#e(this.browsetemplate,o):typeof g[0]!="string"?this.#e(this.browsetreetemplate,{...g[0],path:o}):this.#e(this.browsetreetemplate,{...g[1],fragment:g[0],path:o})}browseFile(o,...g){return typeof g[0]!="string"?this.#e(this.browseblobtemplate,{...g[0],path:o}):this.#e(this.browseblobtemplate,{...g[1],fragment:g[0],path:o})}docs(o){return this.#e(this.docstemplate,o)}bugs(o){return this.#e(this.bugstemplate,o)}https(o){return this.#e(this.httpstemplate,o)}git(o){return this.#e(this.gittemplate,o)}shortcut(o){return this.#e(this.shortcuttemplate,o)}path(o){return this.#e(this.pathtemplate,o)}tarball(o){return this.#e(this.tarballtemplate,{...o,noCommittish:!1})}file(o,g){return this.#e(this.filetemplate,{...g,path:o})}edit(o,g){return this.#e(this.edittemplate,{...g,path:o})}getDefaultRepresentation(){return this.default}toString(o){return this.default&&typeof this[this.default]=="function"?this[this.default](o):this.sshurl(o)}}for(let[i,o]of Object.entries(e))l.addHost(i,o);return Xt=l,Xt}var Yt,Rs;function Dc(){if(Rs)return Yt;Rs=1,Yt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
18
- `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let n=e.length,c=r+1;for(;c<n&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return Yt}var Tc={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"},Fc={web:"url",name:"url"},_c={server:"start",tests:"test"},Uc={topLevel:Tc,bugs:Fc,script:_c},Kt,Is;function Gc(){if(Is)return Kt;Is=1;var{URL:t}=Yo,e=ei(),r=ti(),n=ii(),c=Pc(),{isBuiltin:s}=Ms,l=["dependencies","devDependencies","optionalDependencies"],i=Dc(),o=Uc,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");Kt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var L=c.fromUrl(b);L&&(b=a.repository.url=L.getDefaultRepresentation()==="shortcut"?L.https():L.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(L){return!L||typeof L!="string"?(this.warn("invalidFilename",L),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},L;(L=a.name.match(/^@[^/]+[/](.*)$/))?b[L[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",L="bundleDependencies";a[b]&&!a[L]&&(a[L]=a[b],delete a[b]),a[L]&&!Array.isArray(a[L])?(this.warn("nonArrayBundleDependencies"),delete a[L]):a[L]&&(a[L]=a[L].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(L){var $=a[b][L];typeof $!="string"&&(this.warn("nonStringDependency",L,JSON.stringify($)),delete a[b][L]);var R=c.fromUrl(a[b][L]);R&&(a[b][L]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var L=!b;if(!a.version)return a.version="",!0;if(!e(a.version,L))throw new Error('Invalid version: "'+a.version+'"');return a.version=r(a.version,L),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var L=b.strict;if(!a.name&&!L){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");L||(a.name=a.name.trim()),y(a.name,L,b.allowLegacyCase),s(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=i(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:t.canParse(a.bugs)?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{C(a.bugs,this.warn);var L=a.bugs;a.bugs={},L.url&&(t.canParse(L.url)?a.bugs.url=L.url:this.warn("nonUrlBugsUrlField")),L.email&&(typeof L.email=="string"&&g(L.email)?a.bugs.email=L.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;t.canParse(a.homepage)||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!n(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,L){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!L&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(L){Array.isArray(a[L])&&(a[L]=a[L].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",L=a.url||a.web,$=L?" ("+L+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),L=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),L&&(R.url=L[1]),R}function d(a){var b=a.optionalDependencies;if(b){var L=a.dependencies||{};Object.keys(b).forEach(function($){L[$]=b[$]}),a.dependencies=L}}function m(a,b,L){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;L("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),T=R.join("");T=T.trim(),T=T.replace(/^@/,""),$[F]=T}),$}function w(a,b){l.forEach(function(L){a[L]&&(a[L]=m(a[L],L,b))})}function C(a,b){a&&Object.keys(a).forEach(function(L){o.bugs[L]&&(b("typo",L,o.bugs[L],"bugs"),a[o.bugs[L]]=a[L],delete a[L])})}return Kt}var jc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Bc="No repository field.",Mc="Probably broken git url: %s",qc="scripts must be an object",zc="script values must be string commands",Hc="Invalid 'files' member",Wc="Invalid filename in 'files' list: %s",kc="Invalid 'bundleDependencies' list. Must be array of package names",Vc="Invalid bundleDependencies member: %s",Xc="Non-dependency in bundleDependencies: %s",Yc="%s field must be an object",Kc="Invalid dependency: %s %s",Jc="specifying %s as array is deprecated",Zc="modules field is deprecated",Qc="keywords should be an array of strings",eu="keywords should be an array of strings",tu="%s is also the name of a node core module.",ru="'description' field should be a string",su="No description",iu="No README data",nu="No license field.",ou="Bug string field must be url, email, or {email,url}",au="bugs.url field must be a string url. Deleted.",cu="bugs.email field must be a string email. Deleted.",uu="Normalized value of bugs field is an empty object. Deleted.",lu="homepage field must be a string url. Deleted.",fu="license should be a valid SPDX license expression",hu="%s should probably be %s.",pu={repositories:jc,missingRepository:Bc,brokenGitUrl:Mc,nonObjectScripts:qc,nonStringScript:zc,nonArrayFiles:Hc,invalidFilename:Wc,nonArrayBundleDependencies:kc,nonStringBundleDependency:Vc,nonDependencyBundleDependency:Xc,nonObjectDependencies:Yc,nonStringDependency:Kc,deprecatedArrayDependencies:Jc,deprecatedModules:Zc,nonArrayKeywords:Qc,nonStringKeyword:eu,conflictingName:tu,nonStringDescription:ru,missingDescription:su,missingReadme:iu,missingLicense:nu,nonEmailUrlBugsString:ou,nonUrlBugsUrlField:au,nonEmailBugsEmailField:cu,emptyNormalizedBugs:uu,nonUrlHomepage:lu,invalidLicense:fu,typo:hu},Jt,xs;function du(){if(xs)return Jt;xs=1;var t=Bs,e=pu;Jt=function(){var n=Array.prototype.slice.call(arguments,0),c=n.shift();if(c==="typo")return r.apply(null,n);var s=e[c]?e[c]:c+": '%s'";return n.unshift(s),t.format.apply(null,n)};function r(n,c,s){return s&&(n=s+"['"+n+"']",c=s+"['"+c+"']"),t.format(e.typo,n,c)}return Jt}var Zt,Ns;function mu(){if(Ns)return Zt;Ns=1,Zt=s;var t=Gc();s.fixer=t;var e=du(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],n=["dependencies","people","typos"],c=r.map(function(i){return l(i)+"Field"});c=c.concat(n);function s(i,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||i.private)&&(o=function(){}),i.scripts&&i.scripts.install==="node-gyp rebuild"&&!i.scripts.preinstall&&(i.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](i,g)}),i._id=i.name+"@"+i.version}function l(i){return i.charAt(0).toUpperCase()+i.slice(1)}return Zt}var gu=mu(),ci=tt(gu),bu=(t,e)=>(t=t.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),t.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,c)=>n+e+c.toLowerCase()));function lr(t,{separator:e="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(t.length<2)return r?t:t.toLowerCase();let n=`$1${e}$2`,c=t.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?bu(c,e):c.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var Qe={exports:{}},Qt,Ps;function Eu(){if(Ps)return Qt;Ps=1;var t=Object.prototype.toString;return Qt=function(e){var r;return t.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))},Qt}var er,Ds;function yu(){return Ds||(Ds=1,er=function(t){return t==null?[]:Array.isArray(t)?t:[t]}),er}var tr,Ts;function wu(){if(Ts)return tr;Ts=1;var t=Object.prototype.toString;tr=function(E){if(E===void 0)return"undefined";if(E===null)return"null";var y=typeof E;if(y==="boolean")return"boolean";if(y==="string")return"string";if(y==="number")return"number";if(y==="symbol")return"symbol";if(y==="function")return l(E)?"generatorfunction":"function";if(r(E))return"array";if(g(E))return"buffer";if(o(E))return"arguments";if(c(E))return"date";if(n(E))return"error";if(s(E))return"regexp";switch(e(E)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(i(E))return"generator";switch(y=t.call(E),y){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return y.slice(8,-1).toLowerCase().replace(/\s/g,"")};function e(f){return typeof f.constructor=="function"?f.constructor.name:null}function r(f){return Array.isArray?Array.isArray(f):f instanceof Array}function n(f){return f instanceof Error||typeof f.message=="string"&&f.constructor&&typeof f.constructor.stackTraceLimit=="number"}function c(f){return f instanceof Date?!0:typeof f.toDateString=="function"&&typeof f.getDate=="function"&&typeof f.setDate=="function"}function s(f){return f instanceof RegExp?!0:typeof f.flags=="string"&&typeof f.ignoreCase=="boolean"&&typeof f.multiline=="boolean"&&typeof f.global=="boolean"}function l(f,E){return e(f)==="GeneratorFunction"}function i(f){return typeof f.throw=="function"&&typeof f.return=="function"&&typeof f.next=="function"}function o(f){try{if(typeof f.length=="number"&&typeof f.callee=="function")return!0}catch(E){if(E.message.indexOf("callee")!==-1)return!0}return!1}function g(f){return f.constructor&&typeof f.constructor.isBuffer=="function"?f.constructor.isBuffer(f):!1}return tr}var Fs;function Lu(){if(Fs)return Qe.exports;Fs=1;let t=Eu(),e=yu(),r=wu(),n=(u,h,p)=>{u[h]||(u[h]=[]),u[h].push(p)},c=(u,h,p,d)=>{u[h]||(u[h]={}),u[h][p]=d},s=u=>Array.isArray(u)?`[${u.map(s).join(", ")}]`:r(u)==="string"?JSON.stringify(u):u,l=u=>{if(Array.isArray(u)&&u.length>0){let[h]=u;return`${r(h)}-array`}return r(u)},i=(u,h)=>{let p=u==="array"?"string-array":u;return f.includes(p)&&Array.isArray(h)&&h.length===0?"array":p},o=["stopEarly","unknown","--"],g=["string","boolean","number"],f=g.map(u=>`${u}-array`),E=[...g,"array",...f],y=u=>{u=u||{};let h={};return o.forEach(p=>{u[p]&&(h[p]=u[p])}),Object.keys(u).forEach(p=>{let d=u[p];if(p==="arguments"&&(p="_"),typeof d=="string"&&(d={type:d}),t(d)){let m=d,{type:w}=m;if(w){if(!E.includes(w))throw new TypeError(`Expected type of "${p}" to be one of ${s(E)}, got ${s(w)}`);if(f.includes(w)){let[C]=w.split("-");n(h,"array",{key:p,[C]:!0})}else n(h,w,p)}if({}.hasOwnProperty.call(m,"default")){let{default:C}=m,a=l(C),b=i(w,C);if(b&&b!==a)throw new TypeError(`Expected "${p}" default value to be of type "${b}", got ${s(a)}`);c(h,"default",p,C)}e(m.alias).forEach(C=>{c(h,"alias",C,p)})}}),h};return Qe.exports=y,Qe.exports.default=y,Qe.exports}var vu=Lu(),ui=tt(vu),et={exports:{}},_s;function Cu(){if(_s)return et.exports;_s=1;let t=c=>typeof c=="object"&&c!==null,e=Symbol("skip"),r=c=>t(c)&&!(c instanceof RegExp)&&!(c instanceof Error)&&!(c instanceof Date),n=(c,s,l,i=new WeakMap)=>{if(l={deep:!1,target:{},...l},i.has(c))return i.get(c);i.set(c,l.target);let{target:o}=l;delete l.target;let g=f=>f.map(E=>r(E)?n(E,s,l,i):E);if(Array.isArray(c))return g(c);for(let[f,E]of Object.entries(c)){let y=s(f,E,c);if(y===e)continue;let[u,h,{shouldRecurse:p=!0}={}]=y;u!=="__proto__"&&(l.deep&&p&&r(h)&&(h=Array.isArray(h)?g(h):n(h,s,l,i)),o[u]=h)}return o};return et.exports=(c,s,l)=>{if(!t(c))throw new TypeError(`Expected an object, got \`${c}\` (${typeof c})`);return n(c,s,l)},et.exports.mapObjectSkip=e,et.exports}var Su=Cu(),Us=tt(Su),or=class extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[r,n]of e)this.onEviction(r,n.value)}_deleteIfExpired(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,r.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,r){if(this._deleteIfExpired(e,r)===!1)return r.value}_getItemValue(e,r){return r.expiry?this._getOrDeleteIfExpired(e,r):r.value}_peek(e,r){let n=r.get(e);return this._getItemValue(e,n)}_set(e,r){this.cache.set(e,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,r){this.oldCache.delete(e),this._set(e,r)}*_entriesAscending(){for(let e of this.oldCache){let[r,n]=e;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield e)}for(let e of this.cache){let[r,n]=e;this._deleteIfExpired(r,n)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let r=this.cache.get(e);return this._getItemValue(e,r)}if(this.oldCache.has(e)){let r=this.oldCache.get(e);if(this._deleteIfExpired(e,r)===!1)return this._moveToRecent(e,r),r.value}}set(e,r,{maxAge:n=this.maxAge}={}){let c=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(e)?this.cache.set(e,{value:r,expiry:c}):this._set(e,{value:r,expiry:c}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-e;n<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(n>0&&this._emitEvictions(r.slice(0,n)),this.oldCache=new Map(r.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[r,n]=e;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let e of this.oldCache){let[r,n]=e;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let e=[...this.cache];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}e=[...this.oldCache];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this.cache.has(c)||this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this._entriesAscending())yield[e,r.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[n,c]of this.entriesAscending())e.call(r,c,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Au=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),rr=new or({maxSize:1e5}),Gs=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),js=(t,e={})=>{if(!Gs(t))return t;let{separator:r="_",exclude:n,deep:c=!1}=e,s=l=>(i,o)=>{if(c&&Gs(o)&&(o=Us(o,s())),!(n&&Au(n,i))){let g=`${r}${i}`;if(rr.has(g))i=rr.get(g);else{let f=lr(i,{separator:r});i.length<100&&rr.set(g,f),i=f}}return[i,o]};return Us(t,s())};function li(t,e){return Array.isArray(t)?Object.keys(t).map(r=>js(t[r],e)):js(t,e)}import $u from"node:process";import Ou from"node:path";import{fileURLToPath as Ru}from"node:url";var ve=t=>`--${lr(t,{separator:"-"})}`,Be=(t,e="--")=>`\`${e}${t.join(`\`, \`${e}`)}\``;var Iu=t=>{let e={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Be(n,"")}`},aliasIsSet:{filter:([,n])=>Object.hasOwn(n,"alias"),message:n=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Be(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Be(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(c=>typeof c!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(s=>`(\`${ve(s)}\`, type: '${t.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(c=>n.choices.includes(c)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Be(n)}`}}},r=[];for(let[n,c]of Object.entries(e)){let s=Object.entries(t[n]);for(let{filter:l,message:i}of Object.values(c)){let o=s.filter(f=>l(f)),g=o.map(([f])=>f);o.length>0&&r.push(i(g))}}if(r.length>0)throw new Error(r.join(`
19
- `))},fi=(t,e)=>{if(typeof t!="string"&&(e=t,t=""),!e.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let n=e.pkg??oi({cwd:Ou.dirname(Ru(e.importMeta.url)),normalize:!1})?.packageJson??{};ci(n);let c={argv:$u.argv.slice(2),flags:{},inferType:!1,input:"string",description:n.description??!1,help:t,version:n.version||"No version found",autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...e,pkg:n};return Iu(c),c};var xu=({flags:t,booleanDefault:e})=>{let r={};for(let[n,c]of Object.entries(t)){let s={...c};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),e!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[e]:e),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default??=[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[n]=s}return r},hi=t=>{let e=xu(t);return e.arguments=t.input,e=li(e,{separator:"-",exclude:["stopEarly","--"]}),t.inferType&&delete e.arguments,t.allowUnknownFlags||(t.autoHelp&&!e.help&&(e.help={type:"boolean"}),t.autoVersion&&!e.version&&(e.version={type:"boolean"})),e=ui(e),e.configuration={...e.configuration,"greedy-arrays":!1,"parse-numbers":t.inferType},e["--"]&&(e.configuration["populate--"]=!0),t.allowUnknownFlags||(e.configuration["unknown-options-as-args"]=!0),e};import pi from"node:process";var Nu=(t,e)=>{for(let[r,n]of Object.entries(e.flags))if(r!=="--"&&!n.isMultiple&&Array.isArray(t[r]))throw new Error(`The flag --${r} can only be set once.`)},Pu=(t,e,r)=>{let{choices:n,isRequired:c}=e;if(!n)return;let s=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return c?`Flag \`${ve(t)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let l=r.filter(i=>!n.includes(i));if(l.length>0)return`Unknown ${l.length>1?"values":"value"} for flag \`${ve(t)}\`: \`${l.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${ve(t)}\`: \`${r}\`. ${s}`},Du=(t,e)=>{let r=[];for(let[n,c]of Object.entries(t)){let s=e[n],l=Pu(n,c,s);l&&r.push(l)}if(r.length>0)throw new Error(`${r.join(`
20
- `)}`)},di=(t,e)=>{Nu(t,e),Du(e.flags,t)},Tu=t=>{console.error([`Unknown flag${t.length>1?"s":""}`,...t].join(`
21
- `))},mi=t=>{let e=t.filter(r=>typeof r=="string"&&r.startsWith("-"));e.length>0&&(Tu(e),pi.exit(2))},Fu=(t,e,r,n)=>{let c=e[t],s=!0;if(typeof c.isRequired=="function"&&(s=c.isRequired(r,n),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[t]===void 0||c.isMultiple&&r[t].length===0)&&s},_u=t=>{console.error(`Missing required flag${t.length>1?"s":""}`);for(let e of t)console.error(` ${ve(e.key)}${e.shortFlag?`, -${e.shortFlag}`:""}`)},gi=(t,e,r)=>{let n=[];if(t===void 0)return[];for(let c of Object.keys(t))t[c].isRequired&&Fu(c,t,e,r)&&n.push({key:c,...t[c]});n.length>0&&(_u(n),pi.exit(2))};var Uu=({pkg:t,...e},r)=>{let n=Ne(e.argv,r),c="";if(e.help&&(c=Ks((e.help||"").replace(/\t+\n*$/,"")),c.includes(`
22
- `)&&(c=ur(c,e.helpIndent)),c=`
23
- ${c}`),e.description!==!1){let{description:f}=e;f&&(f=c?ur(`
16
+ `:""}`}set message(e){this.#e=e}#S(e){if(!this.#r)return;let r=this.#i,i=$a(r,this.#r.message);if(i)return La.codeFrameColumns(r,{start:i},{highlightCode:e})}get codeFrame(){return this.#g??=this.#S(!0),this.#g}get rawCodeFrame(){return this.#w??=this.#S(!1),this.#w}},$a=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:i,line:c,column:s}=r.groups;return c&&s?{line:Number(c),column:Number(s)}:Sa(t,Number(i),{oneBased:!0})},Oa=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,i)=>`"${i}"(${Aa(i)})`);function Ra(t,e,r){try{return JSON.parse(t,e)}catch(i){throw new or({jsonParseError:i,fileName:r,input:t})}}var At,is;function ti(){return is||(is=1,At=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),At}var $t,ns;function ri(){if(ns)return $t;ns=1;let t="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,c=e-6;return $t={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},$t}var Qe={exports:{}},os;function Ia(){return os||(os=1,(function(t,e){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:c}=ri(),s=ti();e=t.exports={};let l=e.re=[],n=e.safeRe=[],o=e.src=[],g=e.safeSrc=[],f=e.t={},E=0,y="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",c],[y,i]],h=d=>{for(let[m,w]of u)d=d.split(`${m}*`).join(`${m}{0,${w}}`).split(`${m}+`).join(`${m}{1,${w}}`);return d},p=(d,m,w)=>{let C=h(m),a=E++;s(d,a,m),f[d]=a,o[a]=m,g[a]=C,l[a]=new RegExp(m,w?"g":void 0),n[a]=new RegExp(C,w?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),p("MAINVERSION",`(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${o[f.PRERELEASEIDENTIFIER]}(?:\\.${o[f.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${o[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[f.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${y}+`),p("BUILD",`(?:\\+(${o[f.BUILDIDENTIFIER]}(?:\\.${o[f.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${o[f.MAINVERSION]}${o[f.PRERELEASE]}?${o[f.BUILD]}?`),p("FULL",`^${o[f.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${o[f.MAINVERSIONLOOSE]}${o[f.PRERELEASELOOSE]}?${o[f.BUILD]}?`),p("LOOSE",`^${o[f.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${o[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${o[f.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:${o[f.PRERELEASE]})?${o[f.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:${o[f.PRERELEASELOOSE]})?${o[f.BUILD]}?)?)?`),p("XRANGE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),p("COERCE",`${o[f.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",o[f.COERCEPLAIN]+`(?:${o[f.PRERELEASE]})?(?:${o[f.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",o[f.COERCE],!0),p("COERCERTLFULL",o[f.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${o[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${o[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${o[f.LONECARET]}${o[f.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${o[f.LONECARET]}${o[f.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${o[f.GTLT]}\\s*(${o[f.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]}|${o[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${o[f.XRANGEPLAIN]})\\s+-\\s+(${o[f.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${o[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[f.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Qe,Qe.exports)),Qe.exports}var Ot,as;function xa(){if(as)return Ot;as=1;let t=Object.freeze({loose:!0}),e=Object.freeze({});return Ot=i=>i?typeof i!="object"?t:i:e,Ot}var Rt,cs;function Na(){if(cs)return Rt;cs=1;let t=/^[0-9]+$/,e=(i,c)=>{let s=t.test(i),l=t.test(c);return s&&l&&(i=+i,c=+c),i===c?0:s&&!l?-1:l&&!s?1:i<c?-1:1};return Rt={compareIdentifiers:e,rcompareIdentifiers:(i,c)=>e(c,i)},Rt}var It,us;function Pa(){if(us)return It;us=1;let t=ti(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=ri(),{safeRe:i,t:c}=Ia(),s=xa(),{compareIdentifiers:l}=Na();class n{constructor(g,f){if(f=s(f),g instanceof n){if(g.loose===!!f.loose&&g.includePrerelease===!!f.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",g,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;let E=g.trim().match(f.loose?i[c.LOOSE]:i[c.FULL]);if(!E)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){let u=+y;if(u>=0&&u<r)return u}return y}):this.prerelease=[],this.build=E[5]?E[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(g){if(t("SemVer.compare",this.version,this.options,g),!(g instanceof n)){if(typeof g=="string"&&g===this.version)return 0;g=new n(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof n||(g=new n(g,this.options)),l(this.major,g.major)||l(this.minor,g.minor)||l(this.patch,g.patch)}comparePre(g){if(g instanceof n||(g=new n(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let f=0;do{let E=this.prerelease[f],y=g.prerelease[f];if(t("prerelease compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}compareBuild(g){g instanceof n||(g=new n(g,this.options));let f=0;do{let E=this.build[f],y=g.build[f];if(t("build compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}inc(g,f,E){if(g.startsWith("pre")){if(!f&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(f){let y=`-${f}`.match(this.options.loose?i[c.PRERELEASELOOSE]:i[c.PRERELEASE]);if(!y||y[1]!==f)throw new Error(`invalid identifier: ${f}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,E),this.inc("pre",f,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,E),this.inc("pre",f,E);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 y=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(f===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(f){let u=[f,y];E===!1&&(u=[f]),l(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return It=n,It}var xt,ls;function si(){if(ls)return xt;ls=1;let t=Pa();return xt=(r,i,c=!1)=>{if(r instanceof t)return r;try{return new t(r,i)}catch(s){if(!c)return null;throw s}},xt}var Nt,fs;function ii(){if(fs)return Nt;fs=1;let t=si();return Nt=(r,i)=>{let c=t(r,i);return c?c.version:null},Nt}var Pt,hs;function ni(){if(hs)return Pt;hs=1;let t=si();return Pt=(r,i)=>{let c=t(r.trim().replace(/^[=v]+/,""),i);return c?c.version:null},Pt}var oi=["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"],Ta=["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"],Da=["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"],Tt,ps;function Fa(){if(ps)return Tt;ps=1;var t=[].concat(oi).concat(Ta),e=Da;return Tt=function(r){var i=0;function c(){return i<r.length}function s(d){if(d instanceof RegExp){var m=r.slice(i),w=m.match(d);if(w)return i+=w[0].length,w[0]}else if(r.indexOf(d,i)===i)return i+=d.length,d}function l(){s(/[ ]*/)}function n(){for(var d,m=["WITH","AND","OR","(",")",":","+"],w=0;w<m.length&&(d=s(m[w]),!d);w++);if(d==="+"&&i>1&&r[i-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return s(/[A-Za-z0-9-.]+/)}function g(){var d=o();if(!d)throw new Error("Expected idstring at offset "+i);return d}function f(){if(s("DocumentRef-")){var d=g();return{type:"DOCUMENTREF",string:d}}}function E(){if(s("LicenseRef-")){var d=g();return{type:"LICENSEREF",string:d}}}function y(){var d=i,m=o();if(t.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(e.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};i=d}function u(){return n()||f()||E()||y()}for(var h=[];c()&&(l(),!!c());){var p=u();if(!p)throw new Error("Unexpected `"+r[i]+"` at offset "+i);h.push(p)}return h},Tt}var Dt,ds;function _a(){return ds||(ds=1,Dt=function(t){var e=0;function r(){return e<t.length}function i(){return r()?t[e]:null}function c(){if(!r())throw new Error;e++}function s(p){var d=i();if(d&&d.type==="OPERATOR"&&p===d.string)return c(),d.string}function l(){if(s("WITH")){var p=i();if(p&&p.type==="EXCEPTION")return c(),p.string;throw new Error("Expected exception after `WITH`")}}function n(){var p=e,d="",m=i();if(m.type==="DOCUMENTREF"&&(c(),d+="DocumentRef-"+m.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(m=i(),m.type==="LICENSEREF")return c(),d+="LicenseRef-"+m.string,{license:d};e=p}function o(){var p=i();if(p&&p.type==="LICENSE"){c();var d={license:p.string};s("+")&&(d.plus=!0);var m=l();return m&&(d.exception=m),d}}function g(){var p=s("(");if(p){var d=u();if(!s(")"))throw new Error("Expected `)`");return d}}function f(){return g()||n()||o()}function E(p,d){return function m(){var w=d();if(w){if(!s(p))return w;var C=m();if(!C)throw new Error("Expected expression");return{left:w,conjunction:p.toLowerCase(),right:C}}}}var y=E("AND",f),u=E("OR",y),h=u();if(!h||r())throw new Error("Syntax error");return h}),Dt}var Ft,ms;function ai(){if(ms)return Ft;ms=1;var t=Fa(),e=_a();return Ft=function(r){return e(t(r))},Ft}var _t,gs;function Ua(){if(gs)return _t;gs=1;var t=ai(),e=oi;function r(m){try{return t(m),!0}catch{return!1}}function i(m,w){var C=w[0].length-m[0].length;return C!==0?C:m[0].toUpperCase().localeCompare(w[0].toUpperCase())}var c=[["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(i),s=0,l=1,n=[function(m){return m.toUpperCase()},function(m){return m.trim()},function(m){return m.replace(/\./g,"")},function(m){return m.replace(/\s+/g,"")},function(m){return m.replace(/\s+/g,"-")},function(m){return m.replace("v","-")},function(m){return m.replace(/,?\s*(\d)/,"-$1")},function(m){return m.replace(/,?\s*(\d)/,"-$1.0")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(m){return m[0].toUpperCase()+m.slice(1)},function(m){return m.replace("/","-")},function(m){return m.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(m){return m.indexOf("3.0")!==-1?m+"-or-later":m+"-only"},function(m){return m+"only"},function(m){return m.replace(/(\d)$/,"-$1.0")},function(m){return m.replace(/(-| )?(\d)$/,"-$2-Clause")},function(m){return m.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(m){return m.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(m){return m.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(m){return m.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(m){return m.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(m){return m.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(m){return"CC-"+m},function(m){return"CC-"+m+"-4.0"},function(m){return m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(m){return"CC-"+m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],o=e.map(function(m){var w=/^(.*)-\d+\.\d+$/.exec(m);return w?[w[0],w[1]]:[m,null]}).reduce(function(m,w){var C=w[1];return m[C]=m[C]||[],m[C].push(w[0]),m},{}),g=Object.keys(o).map(function(w){return[w,o[w]]}).filter(function(w){return w[1].length===1&&w[0]!==null&&w[0]!=="APL"}).map(function(w){return[w[0],w[1][0]]});o=void 0;var f=[["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(g).sort(i),E=0,y=1,u=function(m){for(var w=0;w<n.length;w++){var C=n[w](m).trim();if(C!==m&&r(C))return C}return null},h=function(m){for(var w=m.toUpperCase(),C=0;C<f.length;C++){var a=f[C];if(w.indexOf(a[E])>-1)return a[y]}return null},p=function(m,w){for(var C=0;C<c.length;C++){var a=c[C],b=a[s];if(m.indexOf(b)>-1){var v=m.replace(b,a[l]),$=w(v);if($!==null)return $}}return null};_t=function(m,w){w=w||{};var C=w.upgrade===void 0?!0:!!w.upgrade;function a(R){return C?d(R):R}var b=typeof m=="string"&&m.trim().length!==0;if(!b)throw Error("Invalid argument. Expected non-empty string.");if(m=m.trim(),r(m))return a(m);var v=m.replace(/\+$/,"").trim();if(r(v))return a(v);var $=u(m);return $!==null||($=p(m,function(R){return r(R)?R:u(R)}),$!==null)||($=h(m),$!==null)||($=p(m,h),$!==null)?a($):null};function d(m){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(m)!==-1?m+"-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(m)!==-1?m.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(m)!==-1?m+"-or-later":m}return _t}var Ut,bs;function ci(){if(bs)return Ut;bs=1;var t=ai(),e=Ua(),r='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',i=/^SEE LICEN[CS]E IN (.+)$/;function c(l,n){return n.slice(0,l.length)===l}function s(l){if(l.hasOwnProperty("license")){var n=l.license;return c("LicenseRef",n)||c("DocumentRef",n)}else return s(l.left)||s(l.right)}return Ut=function(l){var n;try{n=t(l)}catch{var o;if(l==="UNLICENSED"||l==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(o=i.exec(l))return{validForOldPackages:!0,validForNewPackages:!0,inFile:o[1]};var g={validForOldPackages:!1,validForNewPackages:!1,warnings:[r]};if(l.trim().length!==0){var f=e(l);f&&g.warnings.push('license is similar to the valid expression "'+f+'"')}return g}return s(n)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[r]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},Ut}var Ge={},Es;function Ga(){if(Es)return Ge;Es=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},i=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,i("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",u))}}let l=y=>!e.has(y),n=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>n(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#i=!1;static create(u){let h=o(u);if(!h)return[];f.#i=!0;let p=new f(u,h);return f.#i=!1,p}constructor(u,h){if(!f.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#i;#r;#e;#g;#w;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#m;#f;#o;#a;#t;#n;#s;#l;#p;#b;#u;#v;#d;#y;#L;#A;#E;static unsafeExposeInternals(u){return{starts:u.#d,ttls:u.#y,sizes:u.#v,keyMap:u.#o,keyList:u.#a,valList:u.#t,next:u.#n,prev:u.#s,get head(){return u.#l},get tail(){return u.#p},free:u.#b,isBackgroundFetch:h=>u.#h(h),backgroundFetch:(h,p,d,m)=>u.#N(h,p,d,m),moveToTail:h=>u.#F(h),indexes:h=>u.#R(h),rindexes:h=>u.#I(h),isStale:h=>u.#$(h)}}get max(){return this.#i}get maxSize(){return this.#r}get calculatedSize(){return this.#f}get size(){return this.#m}get fetchMethod(){return this.#w}get memoMethod(){return this.#S}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:C,allowStale:a,dispose:b,disposeAfter:v,noDisposeOnSet:$,noUpdateTTL:R,maxSize:F=0,maxEntrySize:D=0,sizeCalculation:G,fetchMethod:W,memoMethod:x,noDeleteOnFetchRejection:H,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:z,ignoreFetchAbort:Y}=u;if(h!==0&&!n(h))throw new TypeError("max option must be a nonnegative integer");let V=h?o(h):Array;if(!V)throw new Error("invalid max value: "+h);if(this.#i=h,this.#r=F,this.maxEntrySize=D||this.#r,this.sizeCalculation=G,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(x!==void 0&&typeof x!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=x,W!==void 0&&typeof W!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=W,this.#A=!!W,this.#o=new Map,this.#a=new Array(h).fill(void 0),this.#t=new Array(h).fill(void 0),this.#n=new V(h),this.#s=new V(h),this.#l=0,this.#p=0,this.#b=f.create(h),this.#m=0,this.#f=0,typeof b=="function"&&(this.#e=b),typeof v=="function"?(this.#g=v,this.#u=[]):(this.#g=void 0,this.#u=void 0),this.#L=!!this.#e,this.#E=!!this.#g,this.noDisposeOnSet=!!$,this.noUpdateTTL=!!R,this.noDeleteOnFetchRejection=!!H,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(this.#r!==0&&!n(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!C,this.ttlResolution=n(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#i===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#r){let J="LRU_CACHE_UNBOUNDED";l(J)&&(e.add(J),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",J,E))}}getRemainingTTL(u){return this.#o.has(u)?1/0:0}#T(){let u=new g(this.#i),h=new g(this.#i);this.#y=u,this.#d=h,this.#j=(m,w,C=t.now())=>{if(h[m]=w!==0?C:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#$(m)&&this.#c(this.#a[m],"expire")},w+1);a.unref&&a.unref()}},this.#C=m=>{h[m]=u[m]!==0?t.now():0},this.#P=(m,w)=>{if(u[w]){let C=u[w],a=h[w];if(!C||!a)return;m.ttl=C,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=C-b}};let p=0,d=()=>{let m=t.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#o.get(m);if(w===void 0)return 0;let C=u[w],a=h[w];if(!C||!a)return 1/0;let b=(p||d())-a;return C-b},this.#$=m=>{let w=h[m],C=u[m];return!!C&&!!w&&(p||d())-w>C}}#C=()=>{};#P=()=>{};#j=()=>{};#$=()=>!1;#D(){let u=new g(this.#i);this.#f=0,this.#v=u,this.#_=h=>{this.#f-=u[h],u[h]=0},this.#q=(h,p,d,m)=>{if(this.#h(p))return 0;if(!n(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!n(d))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 d},this.#O=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#f>m;)this.#x(!0)}this.#f+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#f)}}#_=u=>{};#O=(u,h,p)=>{};#q=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#p;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#l));)h=this.#s[h]}*#I({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#l;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#p));)h=this.#n[h]}#B(u){return u!==void 0&&this.#o.get(this.#a[u])===u}*entries(){for(let u of this.#R())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*rentries(){for(let u of this.#I())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*keys(){for(let u of this.#R()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*rkeys(){for(let u of this.#I()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*values(){for(let u of this.#R())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}*rvalues(){for(let u of this.#I())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#a[p],this))return this.get(this.#a[p],h)}}forEach(u,h=this){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}rforEach(u,h=this){for(let p of this.#I()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}purgeStale(){let u=!1;for(let h of this.#I({allowStale:!0}))this.#$(h)&&(this.#c(this.#a[h],"expire"),u=!0);return u}info(u){let h=this.#o.get(u);if(h===void 0)return;let p=this.#t[h],d=this.#h(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#y&&this.#d){let w=this.#y[h],C=this.#d[h];if(w&&C){let a=w-(t.now()-C);m.ttl=a,m.start=Date.now()}}return this.#v&&(m.size=this.#v[h]),m}dump(){let u=[];for(let h of this.#R({allowStale:!0})){let p=this.#a[h],d=this.#t[h],m=this.#h(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#y&&this.#d){w.ttl=this.#y[h];let C=t.now()-this.#d[h];w.start=Math.floor(Date.now()-C)}this.#v&&(w.size=this.#v[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=t.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:C=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,v=this.#q(u,h,p.size||0,C);if(this.maxEntrySize&&v>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#c(u,"set"),this;let $=this.#m===0?void 0:this.#o.get(u);if($===void 0)$=this.#m===0?this.#p:this.#b.length!==0?this.#b.pop():this.#m===this.#i?this.#x(!1):this.#m,this.#a[$]=u,this.#t[$]=h,this.#o.set(u,$),this.#n[this.#p]=$,this.#s[$]=this.#p,this.#p=$,this.#m++,this.#O($,v,a),a&&(a.set="add"),b=!1;else{this.#F($);let R=this.#t[$];if(h!==R){if(this.#A&&this.#h(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#L&&this.#e?.(F,u,"set"),this.#E&&this.#u?.push([F,u,"set"]))}else w||(this.#L&&this.#e?.(R,u,"set"),this.#E&&this.#u?.push([R,u,"set"]));if(this.#_($),this.#O($,v,a),this.#t[$]=h,a){a.set="replace";let F=R&&this.#h(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update")}if(d!==0&&!this.#y&&this.#T(),this.#y&&(b||this.#j($,d,m),a&&this.#P(a,$)),!w&&this.#E&&this.#u){let R=this.#u,F;for(;F=R?.shift();)this.#g?.(...F)}return this}pop(){try{for(;this.#m;){let u=this.#t[this.#l];if(this.#x(!0),this.#h(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#E&&this.#u){let u=this.#u,h;for(;h=u?.shift();)this.#g?.(...h)}}}#x(u){let h=this.#l,p=this.#a[h],d=this.#t[h];return this.#A&&this.#h(d)?d.__abortController.abort(new Error("evicted")):(this.#L||this.#E)&&(this.#L&&this.#e?.(d,p,"evict"),this.#E&&this.#u?.push([d,p,"evict"])),this.#_(h),u&&(this.#a[h]=void 0,this.#t[h]=void 0,this.#b.push(h)),this.#m===1?(this.#l=this.#p=0,this.#b.length=0):this.#l=this.#n[h],this.#o.delete(p),this.#m--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#o.get(u);if(m!==void 0){let w=this.#t[m];if(this.#h(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#$(m))d&&(d.has="stale",this.#P(d,m));else return p&&this.#C(m),d&&(d.has="hit",this.#P(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#o.get(u);if(d===void 0||!p&&this.#$(d))return;let m=this.#t[d];return this.#h(m)?m.__staleWhileFetching:m}#N(u,h,p,d){let m=h===void 0?void 0:this.#t[h];if(this.#h(m))return m;let w=new c,{signal:C}=p;C?.addEventListener("abort",()=>w.abort(C.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#t[h]===F&&(G===void 0?k.__staleWhileFetching?this.#t[h]=k.__staleWhileFetching:this.#c(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},v=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#t[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#c(u,"fetch"):x||(this.#t[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#w?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,v),D=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,D,{...a.options,status:void 0}),h=this.#o.get(u)):this.#t[h]=D,D}#h(u){if(!this.#A)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:C=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:v=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#A)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:C,size:a,sizeCalculation:b,noUpdateTTL:v,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,status:x,signal:H},B=this.#o.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#N(u,B,k,G);return z.__returned=z}else{let z=this.#t[B];if(this.#h(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#$(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#F(B),d&&this.#C(B),x&&this.#P(x,B),z;let V=this.#N(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#S;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,C=this.get(u,w);if(!m&&C!==void 0)return C;let a=p(u,C,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,C=this.#o.get(u);if(C!==void 0){let a=this.#t[C],b=this.#h(a);return w&&this.#P(w,C),this.#$(C)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#c(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#F(C),d&&this.#C(C),a))}else w&&(w.get="miss")}#G(u,h){this.#s[h]=u,this.#n[u]=h}#F(u){u!==this.#p&&(u===this.#l?this.#l=this.#n[u]:this.#G(this.#s[u],this.#n[u]),this.#G(this.#p,u),this.#p=u)}delete(u){return this.#c(u,"delete")}#c(u,h){let p=!1;if(this.#m!==0){let d=this.#o.get(u);if(d!==void 0)if(p=!0,this.#m===1)this.#M(h);else{this.#_(d);let m=this.#t[d];if(this.#h(m)?m.__abortController.abort(new Error("deleted")):(this.#L||this.#E)&&(this.#L&&this.#e?.(m,u,h),this.#E&&this.#u?.push([m,u,h])),this.#o.delete(u),this.#a[d]=void 0,this.#t[d]=void 0,d===this.#p)this.#p=this.#s[d];else if(d===this.#l)this.#l=this.#n[d];else{let w=this.#s[d];this.#n[w]=this.#n[d];let C=this.#n[d];this.#s[C]=this.#s[d]}this.#m--,this.#b.push(d)}}if(this.#E&&this.#u?.length){let d=this.#u,m;for(;m=d?.shift();)this.#g?.(...m)}return p}clear(){return this.#M("delete")}#M(u){for(let h of this.#I({allowStale:!0})){let p=this.#t[h];if(this.#h(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#a[h];this.#L&&this.#e?.(p,d,u),this.#E&&this.#u?.push([p,d,u])}}if(this.#o.clear(),this.#t.fill(void 0),this.#a.fill(void 0),this.#y&&this.#d&&(this.#y.fill(0),this.#d.fill(0)),this.#v&&this.#v.fill(0),this.#l=0,this.#p=0,this.#b.length=0,this.#f=0,this.#m=0,this.#E&&this.#u){let h=this.#u,p;for(;p=h?.shift();)this.#g?.(...p)}}}return Ge.LRUCache=E,Ge}var Gt,ys;function ja(){if(ys)return Gt;ys=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),i={sshtemplate:({domain:s,user:l,project:n,committish:o})=>`git@${s}:${l}/${n}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:n,committish:o})=>`git+ssh://git@${s}/${l}/${n}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:n,committish:o,treepath:g})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:n,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:n,treepath:o,committish:g})=>`https://${s}/${l}/${n}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:n,committish:o})=>`${s}:${l}/${n}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:n})=>`${s}/${l}${t("#",n)}`,bugstemplate:({domain:s,user:l,project:n})=>`https://${s}/${l}/${n}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:n,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${n}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://codeload.${s}/${l}/${n}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,n,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let n=l.split("/"),o=n.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=n.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:n})=>`git@${s}:${l}.git${t("#",n)}`,sshurltemplate:({domain:s,project:l,committish:n})=>`git+ssh://git@${s}/${l}.git${t("#",n)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g})=>`https://${s}/${l}/${n}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,browsetreetemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,httpstemplate:({domain:s,project:l,committish:n})=>`git+https://${s}/${l}.git${t("#",n)}`,filetemplate:({user:s,project:l,committish:n,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(n))}/${o}`,shortcuttemplate:({type:s,project:l,committish:n})=>`${s}:${l}${t("#",n)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:n})=>`git://${s}/${l}.git${t("#",n)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(o!=="raw"){if(!n){if(!l)return;n=l,l=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:l,project:n,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},i,l);return Gt=c,Gt}var jt,ws;function ui(){if(ws)return jt;ws=1;let t=cr,e=(s,l,n)=>{let o=s.indexOf(n);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},i=(s,l)=>{let n=s.indexOf(":"),o=s.slice(0,n+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>n?`git+ssh://${s}`:s:s.indexOf("//")===n+1?s:`${s.slice(0,n+1)}//${s.slice(n+1)}`},c=s=>{let l=e(s,"@","#"),n=e(s,":","#");return n>l&&(s=s.slice(0,n)+"/"+s.slice(n+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return jt=(s,l)=>{let n=l?i(s,l):s;return r(n)||r(c(n))},jt}var Bt,vs;function Ba(){if(vs)return Bt;vs=1;let t=ui(),e=r=>{let i=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),n=/\s/.exec(r),o=r.indexOf("@"),g=!n||i>-1&&n.index>i,f=o===-1||i>-1&&o>i,E=l===-1||i>-1&&l>i,y=s===-1||i>-1&&s>i,u=c>0,h=i>-1?r[i-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Bt=(r,i,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,n=t(l,s);if(!n)return;let o=c.byShortcut[n.protocol],g=c.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[n.protocol]?.auth&&(n.username||n.password)&&(y=`${n.username}${n.password?":"+n.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let C=m.lastIndexOf("/");C>-1?(h=decodeURIComponent(m.slice(0,C)),h||(h=null),p=decodeURIComponent(m.slice(C+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(n.protocol))return;let m=E.extract(n);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,i]},Bt}var Mt,Ls;function Ma(){if(Ls)return Mt;Ls=1;let{LRUCache:t}=Ga(),e=ja(),r=Ba(),i=ui(),c=new t({max:1e3});class s{constructor(n,o,g,f,E,y,u={}){Object.assign(this,s.#i[n],{type:n,user:o,auth:g,project:f,committish:E,default:y,opts:u})}static#i={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(n,o){s.#i[n]=o,s.#i.byDomain[o.domain]=n,s.#i.byShortcut[`${n}:`]=n,s.#r[`${n}:`]={name:n}}static fromUrl(n,o){if(typeof n!="string")return;let g=n+JSON.stringify(o||{});if(!c.has(g)){let f=r(n,o,{gitHosts:s.#i,protocols:s.#r});c.set(g,f?new s(...f):void 0)}return c.get(g)}static parseUrl(n){return i(n)}#e(n,o){if(typeof n!="function")return null;let g={...this,...this.opts,...o};g.path||(g.path=""),g.path.startsWith("/")&&(g.path=g.path.slice(1)),g.noCommittish&&(g.committish=null);let f=n(g);return g.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(n){return this.#e(this.sshtemplate,n)}sshurl(n){return this.#e(this.sshurltemplate,n)}browse(n,...o){return typeof n!="string"?this.#e(this.browsetemplate,n):typeof o[0]!="string"?this.#e(this.browsetreetemplate,{...o[0],path:n}):this.#e(this.browsetreetemplate,{...o[1],fragment:o[0],path:n})}browseFile(n,...o){return typeof o[0]!="string"?this.#e(this.browseblobtemplate,{...o[0],path:n}):this.#e(this.browseblobtemplate,{...o[1],fragment:o[0],path:n})}docs(n){return this.#e(this.docstemplate,n)}bugs(n){return this.#e(this.bugstemplate,n)}https(n){return this.#e(this.httpstemplate,n)}git(n){return this.#e(this.gittemplate,n)}shortcut(n){return this.#e(this.shortcuttemplate,n)}path(n){return this.#e(this.pathtemplate,n)}tarball(n){return this.#e(this.tarballtemplate,{...n,noCommittish:!1})}file(n,o){return this.#e(this.filetemplate,{...o,path:n})}edit(n,o){return this.#e(this.edittemplate,{...o,path:n})}getDefaultRepresentation(){return this.default}toString(n){return this.default&&typeof this[this.default]=="function"?this[this.default](n):this.sshurl(n)}}for(let[l,n]of Object.entries(e))s.addHost(l,n);return Mt=s,Mt}var qt,Cs;function qa(){if(Cs)return qt;Cs=1,qt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
17
+ `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let i=e.length,c=r+1;for(;c<i&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return qt}var za={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"},Ha={web:"url",name:"url"},Wa={server:"start",tests:"test"},ka={topLevel:za,bugs:Ha,script:Wa},zt,Ss;function Va(){if(Ss)return zt;Ss=1;var t=ii(),e=ni(),r=ci(),i=Ma(),c=Ws,s=["dependencies","devDependencies","optionalDependencies"],l=qa(),n=cr,o=ka,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");zt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var v=i.fromUrl(b);v&&(b=a.repository.url=v.getDefaultRepresentation()==="shortcut"?v.https():v.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(v){return!v||typeof v!="string"?(this.warn("invalidFilename",v),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},v;(v=a.name.match(/^@[^/]+[/](.*)$/))?b[v[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",v="bundleDependencies";a[b]&&!a[v]&&(a[v]=a[b],delete a[b]),a[v]&&!Array.isArray(a[v])?(this.warn("nonArrayBundleDependencies"),delete a[v]):a[v]&&(a[v]=a[v].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(v){var $=a[b][v];typeof $!="string"&&(this.warn("nonStringDependency",v,JSON.stringify($)),delete a[b][v]);var R=i.fromUrl(a[b][v]);R&&(a[b][v]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var v=!b;if(!a.version)return a.version="",!0;if(!t(a.version,v))throw new Error('Invalid version: "'+a.version+'"');return a.version=e(a.version,v),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var v=b.strict;if(!a.name&&!v){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");v||(a.name=a.name.trim()),y(a.name,v,b.allowLegacyCase),c.builtinModules.includes(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=l(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=i.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:n.parse(a.bugs).protocol?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{C(a.bugs,this.warn);var v=a.bugs;a.bugs={},v.url&&(typeof v.url=="string"&&n.parse(v.url).protocol?a.bugs.url=v.url:this.warn("nonUrlBugsUrlField")),v.email&&(typeof v.email=="string"&&g(v.email)?a.bugs.email=v.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=i.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;n.parse(a.homepage).protocol||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!r(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,v){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!v&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(v){Array.isArray(a[v])&&(a[v]=a[v].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",v=a.url||a.web,$=v?" ("+v+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),v=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),v&&(R.url=v[1]),R}function d(a){var b=a.optionalDependencies;if(b){var v=a.dependencies||{};Object.keys(b).forEach(function($){v[$]=b[$]}),a.dependencies=v}}function m(a,b,v){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;v("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),D=R.join("");D=D.trim(),D=D.replace(/^@/,""),$[F]=D}),$}function w(a,b){s.forEach(function(v){a[v]&&(a[v]=m(a[v],v,b))})}function C(a,b){a&&Object.keys(a).forEach(function(v){o.bugs[v]&&(b("typo",v,o.bugs[v],"bugs"),a[o.bugs[v]]=a[v],delete a[v])})}return zt}var Xa="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Ya="No repository field.",Ka="Probably broken git url: %s",Ja="scripts must be an object",Za="script values must be string commands",Qa="Invalid 'files' member",ec="Invalid filename in 'files' list: %s",tc="Invalid 'bundleDependencies' list. Must be array of package names",rc="Invalid bundleDependencies member: %s",sc="Non-dependency in bundleDependencies: %s",ic="%s field must be an object",nc="Invalid dependency: %s %s",oc="specifying %s as array is deprecated",ac="modules field is deprecated",cc="keywords should be an array of strings",uc="keywords should be an array of strings",lc="%s is also the name of a node core module.",fc="'description' field should be a string",hc="No description",pc="No README data",dc="No license field.",mc="Bug string field must be url, email, or {email,url}",gc="bugs.url field must be a string url. Deleted.",bc="bugs.email field must be a string email. Deleted.",Ec="Normalized value of bugs field is an empty object. Deleted.",yc="homepage field must be a string url. Deleted.",wc="license should be a valid SPDX license expression",vc="%s should probably be %s.",Lc={repositories:Xa,missingRepository:Ya,brokenGitUrl:Ka,nonObjectScripts:Ja,nonStringScript:Za,nonArrayFiles:Qa,invalidFilename:ec,nonArrayBundleDependencies:tc,nonStringBundleDependency:rc,nonDependencyBundleDependency:sc,nonObjectDependencies:ic,nonStringDependency:nc,deprecatedArrayDependencies:oc,deprecatedModules:ac,nonArrayKeywords:cc,nonStringKeyword:uc,conflictingName:lc,nonStringDescription:fc,missingDescription:hc,missingReadme:pc,missingLicense:dc,nonEmailUrlBugsString:mc,nonUrlBugsUrlField:gc,nonEmailBugsEmailField:bc,emptyNormalizedBugs:Ec,nonUrlHomepage:yc,invalidLicense:wc,typo:vc},Ht,As;function Cc(){if(As)return Ht;As=1;var t=Hs,e=Lc;Ht=function(){var i=Array.prototype.slice.call(arguments,0),c=i.shift();if(c==="typo")return r.apply(null,i);var s=e[c]?e[c]:c+": '%s'";return i.unshift(s),t.format.apply(null,i)};function r(i,c,s){return s&&(i=s+"['"+i+"']",c=s+"['"+c+"']"),t.format(e.typo,i,c)}return Ht}var Wt,$s;function Sc(){if($s)return Wt;$s=1,Wt=s;var t=Va();s.fixer=t;var e=Cc(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],c=r.map(function(n){return l(n)+"Field"});c=c.concat(i);function s(n,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||n.private)&&(o=function(){}),n.scripts&&n.scripts.install==="node-gyp rebuild"&&!n.scripts.preinstall&&(n.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](n,g)}),n._id=n.name+"@"+n.version}function l(n){return n.charAt(0).toUpperCase()+n.slice(1)}return Wt}var Ac=Sc(),$c=rt(Ac);function Oc(t){return t instanceof URL?ks(t):t}var Rc=t=>ye.resolve(Oc(t)??".","package.json"),Ic=(t,e)=>{let r=typeof t=="string"?Ra(t):t;return e&&$c(r),r};function xc({cwd:t,normalize:e=!0}={}){let r=Vs.readFileSync(Rc(t),"utf8");return Ic(r,e)}function li(t){let e=ma("package.json",t);if(e)return{packageJson:xc({...t,cwd:ye.dirname(e)}),path:e}}var je={},Os;function Nc(){if(Os)return je;Os=1,Object.defineProperty(je,"__esModule",{value:!0}),je.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},i=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,i("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",u))}}let l=y=>!e.has(y),n=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>n(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#i=!1;static create(u){let h=o(u);if(!h)return[];f.#i=!0;let p=new f(u,h);return f.#i=!1,p}constructor(u,h){if(!f.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#i;#r;#e;#g;#w;#S;#m;#f;get perf(){return this.#f}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#t;#n;#s;#l;#p;#b;#u;#v;#d;#y;#L;#A;#E;#T;#C;#P;static unsafeExposeInternals(u){return{starts:u.#L,ttls:u.#A,sizes:u.#y,keyMap:u.#t,keyList:u.#n,valList:u.#s,next:u.#l,prev:u.#p,get head(){return u.#b},get tail(){return u.#u},free:u.#v,isBackgroundFetch:h=>u.#c(h),backgroundFetch:(h,p,d,m)=>u.#F(h,p,d,m),moveToTail:h=>u.#z(h),indexes:h=>u.#x(h),rindexes:h=>u.#N(h),isStale:h=>u.#O(h)}}get max(){return this.#i}get maxSize(){return this.#r}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#S}get memoMethod(){return this.#m}get dispose(){return this.#e}get onInsert(){return this.#g}get disposeAfter(){return this.#w}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:C,allowStale:a,dispose:b,onInsert:v,disposeAfter:$,noDisposeOnSet:R,noUpdateTTL:F,maxSize:D=0,maxEntrySize:G=0,sizeCalculation:W,fetchMethod:x,memoMethod:H,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:z,allowStaleOnFetchAbort:Y,ignoreFetchAbort:V,perf:J}=u;if(J!==void 0&&typeof J?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#f=J??t,h!==0&&!n(h))throw new TypeError("max option must be a nonnegative integer");let K=h?o(h):Array;if(!K)throw new Error("invalid max value: "+h);if(this.#i=h,this.#r=D,this.maxEntrySize=G||this.#r,this.sizeCalculation=W,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(H!==void 0&&typeof H!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#m=H,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#S=x,this.#T=!!x,this.#t=new Map,this.#n=new Array(h).fill(void 0),this.#s=new Array(h).fill(void 0),this.#l=new K(h),this.#p=new K(h),this.#b=0,this.#u=0,this.#v=f.create(h),this.#o=0,this.#a=0,typeof b=="function"&&(this.#e=b),typeof v=="function"&&(this.#g=v),typeof $=="function"?(this.#w=$,this.#d=[]):(this.#w=void 0,this.#d=void 0),this.#E=!!this.#e,this.#P=!!this.#g,this.#C=!!this.#w,this.noDisposeOnSet=!!R,this.noUpdateTTL=!!F,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!z,this.allowStaleOnFetchAbort=!!Y,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(this.#r!==0&&!n(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!C,this.ttlResolution=n(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#i===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#r){let te="LRU_CACHE_UNBOUNDED";l(te)&&(e.add(te),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",te,E))}}getRemainingTTL(u){return this.#t.has(u)?1/0:0}#j(){let u=new g(this.#i),h=new g(this.#i);this.#A=u,this.#L=h,this.#_=(m,w,C=this.#f.now())=>{if(h[m]=w!==0?C:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#O(m)&&this.#U(this.#n[m],"expire")},w+1);a.unref&&a.unref()}},this.#$=m=>{h[m]=u[m]!==0?this.#f.now():0},this.#D=(m,w)=>{if(u[w]){let C=u[w],a=h[w];if(!C||!a)return;m.ttl=C,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=C-b}};let p=0,d=()=>{let m=this.#f.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#t.get(m);if(w===void 0)return 0;let C=u[w],a=h[w];if(!C||!a)return 1/0;let b=(p||d())-a;return C-b},this.#O=m=>{let w=h[m],C=u[m];return!!C&&!!w&&(p||d())-w>C}}#$=()=>{};#D=()=>{};#_=()=>{};#O=()=>!1;#q(){let u=new g(this.#i);this.#a=0,this.#y=u,this.#R=h=>{this.#a-=u[h],u[h]=0},this.#B=(h,p,d,m)=>{if(this.#c(p))return 0;if(!n(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!n(d))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 d},this.#I=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#a>m;)this.#G(!0)}this.#a+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#a)}}#R=u=>{};#I=(u,h,p)=>{};#B=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#u;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#b));)h=this.#p[h]}*#N({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#b;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#u));)h=this.#l[h]}#h(u){return u!==void 0&&this.#t.get(this.#n[u])===u}*entries(){for(let u of this.#x())this.#s[u]!==void 0&&this.#n[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#n[u],this.#s[u]])}*rentries(){for(let u of this.#N())this.#s[u]!==void 0&&this.#n[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#n[u],this.#s[u]])}*keys(){for(let u of this.#x()){let h=this.#n[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*rkeys(){for(let u of this.#N()){let h=this.#n[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*values(){for(let u of this.#x())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}*rvalues(){for(let u of this.#N())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#n[p],this))return this.get(this.#n[p],h)}}forEach(u,h=this){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#n[p],this)}}rforEach(u,h=this){for(let p of this.#N()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#n[p],this)}}purgeStale(){let u=!1;for(let h of this.#N({allowStale:!0}))this.#O(h)&&(this.#U(this.#n[h],"expire"),u=!0);return u}info(u){let h=this.#t.get(u);if(h===void 0)return;let p=this.#s[h],d=this.#c(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#A&&this.#L){let w=this.#A[h],C=this.#L[h];if(w&&C){let a=w-(this.#f.now()-C);m.ttl=a,m.start=Date.now()}}return this.#y&&(m.size=this.#y[h]),m}dump(){let u=[];for(let h of this.#x({allowStale:!0})){let p=this.#n[h],d=this.#s[h],m=this.#c(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#A&&this.#L){w.ttl=this.#A[h];let C=this.#f.now()-this.#L[h];w.start=Math.floor(Date.now()-C)}this.#y&&(w.size=this.#y[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=this.#f.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:C=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,v=this.#B(u,h,p.size||0,C);if(this.maxEntrySize&&v>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#U(u,"set"),this;let $=this.#o===0?void 0:this.#t.get(u);if($===void 0)$=this.#o===0?this.#u:this.#v.length!==0?this.#v.pop():this.#o===this.#i?this.#G(!1):this.#o,this.#n[$]=u,this.#s[$]=h,this.#t.set(u,$),this.#l[this.#u]=$,this.#p[$]=this.#u,this.#u=$,this.#o++,this.#I($,v,a),a&&(a.set="add"),b=!1,this.#P&&this.#g?.(h,u,"add");else{this.#z($);let R=this.#s[$];if(h!==R){if(this.#T&&this.#c(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#E&&this.#e?.(F,u,"set"),this.#C&&this.#d?.push([F,u,"set"]))}else w||(this.#E&&this.#e?.(R,u,"set"),this.#C&&this.#d?.push([R,u,"set"]));if(this.#R($),this.#I($,v,a),this.#s[$]=h,a){a.set="replace";let F=R&&this.#c(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update");this.#P&&this.onInsert?.(h,u,h===R?"update":"replace")}if(d!==0&&!this.#A&&this.#j(),this.#A&&(b||this.#_($,d,m),a&&this.#D(a,$)),!w&&this.#C&&this.#d){let R=this.#d,F;for(;F=R?.shift();)this.#w?.(...F)}return this}pop(){try{for(;this.#o;){let u=this.#s[this.#b];if(this.#G(!0),this.#c(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#C&&this.#d){let u=this.#d,h;for(;h=u?.shift();)this.#w?.(...h)}}}#G(u){let h=this.#b,p=this.#n[h],d=this.#s[h];return this.#T&&this.#c(d)?d.__abortController.abort(new Error("evicted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(d,p,"evict"),this.#C&&this.#d?.push([d,p,"evict"])),this.#R(h),u&&(this.#n[h]=void 0,this.#s[h]=void 0,this.#v.push(h)),this.#o===1?(this.#b=this.#u=0,this.#v.length=0):this.#b=this.#l[h],this.#t.delete(p),this.#o--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#t.get(u);if(m!==void 0){let w=this.#s[m];if(this.#c(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#O(m))d&&(d.has="stale",this.#D(d,m));else return p&&this.#$(m),d&&(d.has="hit",this.#D(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#t.get(u);if(d===void 0||!p&&this.#O(d))return;let m=this.#s[d];return this.#c(m)?m.__staleWhileFetching:m}#F(u,h,p,d){let m=h===void 0?void 0:this.#s[h];if(this.#c(m))return m;let w=new c,{signal:C}=p;C?.addEventListener("abort",()=>w.abort(C.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#s[h]===F&&(G===void 0?k.__staleWhileFetching!==void 0?this.#s[h]=k.__staleWhileFetching:this.#U(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},v=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#s[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#U(u,"fetch"):x||(this.#s[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#S?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,v),D=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,D,{...a.options,status:void 0}),h=this.#t.get(u)):this.#s[h]=D,D}#c(u){if(!this.#T)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:C=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:v=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#T)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:C,size:a,sizeCalculation:b,noUpdateTTL:v,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,status:x,signal:H},B=this.#t.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#F(u,B,k,G);return z.__returned=z}else{let z=this.#s[B];if(this.#c(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#O(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#z(B),d&&this.#$(B),x&&this.#D(x,B),z;let V=this.#F(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#m;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,C=this.get(u,w);if(!m&&C!==void 0)return C;let a=p(u,C,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,C=this.#t.get(u);if(C!==void 0){let a=this.#s[C],b=this.#c(a);return w&&this.#D(w,C),this.#O(C)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#U(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#z(C),d&&this.#$(C),a))}else w&&(w.get="miss")}#M(u,h){this.#p[h]=u,this.#l[u]=h}#z(u){u!==this.#u&&(u===this.#b?this.#b=this.#l[u]:this.#M(this.#p[u],this.#l[u]),this.#M(this.#u,u),this.#u=u)}delete(u){return this.#U(u,"delete")}#U(u,h){let p=!1;if(this.#o!==0){let d=this.#t.get(u);if(d!==void 0)if(p=!0,this.#o===1)this.#H(h);else{this.#R(d);let m=this.#s[d];if(this.#c(m)?m.__abortController.abort(new Error("deleted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(m,u,h),this.#C&&this.#d?.push([m,u,h])),this.#t.delete(u),this.#n[d]=void 0,this.#s[d]=void 0,d===this.#u)this.#u=this.#p[d];else if(d===this.#b)this.#b=this.#l[d];else{let w=this.#p[d];this.#l[w]=this.#l[d];let C=this.#l[d];this.#p[C]=this.#p[d]}this.#o--,this.#v.push(d)}}if(this.#C&&this.#d?.length){let d=this.#d,m;for(;m=d?.shift();)this.#w?.(...m)}return p}clear(){return this.#H("delete")}#H(u){for(let h of this.#N({allowStale:!0})){let p=this.#s[h];if(this.#c(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#n[h];this.#E&&this.#e?.(p,d,u),this.#C&&this.#d?.push([p,d,u])}}if(this.#t.clear(),this.#s.fill(void 0),this.#n.fill(void 0),this.#A&&this.#L&&(this.#A.fill(0),this.#L.fill(0)),this.#y&&this.#y.fill(0),this.#b=0,this.#u=0,this.#v.length=0,this.#a=0,this.#o=0,this.#C&&this.#d){let h=this.#d,p;for(;p=h?.shift();)this.#w?.(...p)}}}return je.LRUCache=E,je}var kt,Rs;function Pc(){if(Rs)return kt;Rs=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),i={sshtemplate:({domain:s,user:l,project:n,committish:o})=>`git@${s}:${l}/${n}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:n,committish:o})=>`git+ssh://git@${s}/${l}/${n}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:n,committish:o,treepath:g})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:n,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:n,treepath:o,committish:g})=>`https://${s}/${l}/${n}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:n,committish:o})=>`${s}:${l}/${n}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:n})=>`${s}/${l}${t("#",n)}`,bugstemplate:({domain:s,user:l,project:n})=>`https://${s}/${l}/${n}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:n,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${n}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://codeload.${s}/${l}/${n}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,n,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let n=l.split("/"),o=n.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=n.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:n})=>`git@${s}:${l}.git${t("#",n)}`,sshurltemplate:({domain:s,project:l,committish:n})=>`git+ssh://git@${s}/${l}.git${t("#",n)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g})=>`https://${s}/${l}/${n}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,browsetreetemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,httpstemplate:({domain:s,project:l,committish:n})=>`git+https://${s}/${l}.git${t("#",n)}`,filetemplate:({user:s,project:l,committish:n,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(n))}/${o}`,shortcuttemplate:({type:s,project:l,committish:n})=>`${s}:${l}${t("#",n)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:n})=>`git://${s}/${l}.git${t("#",n)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(o!=="raw"){if(!n){if(!l)return;n=l,l=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:l,project:n,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},i,l);return kt=c,kt}var Vt,Is;function fi(){if(Is)return Vt;Is=1;let t=cr,e=(s,l,n)=>{let o=s.indexOf(n);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},i=(s,l)=>{let n=s.indexOf(":"),o=s.slice(0,n+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>n?`git+ssh://${s}`:s:s.indexOf("//")===n+1?s:`${s.slice(0,n+1)}//${s.slice(n+1)}`},c=s=>{let l=e(s,"@","#"),n=e(s,":","#");return n>l&&(s=s.slice(0,n)+"/"+s.slice(n+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return Vt=(s,l)=>{let n=l?i(s,l):s;return r(n)||r(c(n))},Vt}var Xt,xs;function Tc(){if(xs)return Xt;xs=1;let t=fi(),e=r=>{let i=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),n=/\s/.exec(r),o=r.indexOf("@"),g=!n||i>-1&&n.index>i,f=o===-1||i>-1&&o>i,E=l===-1||i>-1&&l>i,y=s===-1||i>-1&&s>i,u=c>0,h=i>-1?r[i-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Xt=(r,i,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,n=t(l,s);if(!n)return;let o=c.byShortcut[n.protocol],g=c.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[n.protocol]?.auth&&(n.username||n.password)&&(y=`${n.username}${n.password?":"+n.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let C=m.lastIndexOf("/");C>-1?(h=decodeURIComponent(m.slice(0,C)),h||(h=null),p=decodeURIComponent(m.slice(C+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(n.protocol))return;let m=E.extract(n);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,i]},Xt}var Yt,Ns;function Dc(){if(Ns)return Yt;Ns=1;let{LRUCache:t}=Nc(),e=Pc(),r=Tc(),i=fi(),c=new t({max:1e3});function s(n){try{let{protocol:o,hostname:g,pathname:f}=new URL(n);if(!g)return null;let E=/(?:git\+)http:$/.test(o)?"http:":"https:",y=f.replace(/\.git$/,"");return`${E}//${g}${y}`}catch{return null}}class l{constructor(o,g,f,E,y,u,h={}){Object.assign(this,l.#i[o],{type:o,user:g,auth:f,project:E,committish:y,default:u,opts:h})}static#i={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(o,g){l.#i[o]=g,l.#i.byDomain[g.domain]=o,l.#i.byShortcut[`${o}:`]=o,l.#r[`${o}:`]={name:o}}static fromUrl(o,g){if(typeof o!="string")return;let f=o+JSON.stringify(g||{});if(!c.has(f)){let E=r(o,g,{gitHosts:l.#i,protocols:l.#r});c.set(f,E?new l(...E):void 0)}return c.get(f)}static fromManifest(o,g={}){if(!o||typeof o!="object")return;let f=o.repository,E=f&&(typeof f=="string"?f:typeof f=="object"&&typeof f.url=="string"?f.url:null);if(!E)throw new Error("no repository");let y=E&&l.fromUrl(E.replace(/^git\+/,""),g)||null;if(y)return y;let u=s(E);return l.fromUrl(u,g)||u}static parseUrl(o){return i(o)}#e(o,g){if(typeof o!="function")return null;let f={...this,...this.opts,...g};f.path||(f.path=""),f.path.startsWith("/")&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);let E=o(f);return f.noGitPlus&&E.startsWith("git+")?E.slice(4):E}hash(){return this.committish?`#${this.committish}`:""}ssh(o){return this.#e(this.sshtemplate,o)}sshurl(o){return this.#e(this.sshurltemplate,o)}browse(o,...g){return typeof o!="string"?this.#e(this.browsetemplate,o):typeof g[0]!="string"?this.#e(this.browsetreetemplate,{...g[0],path:o}):this.#e(this.browsetreetemplate,{...g[1],fragment:g[0],path:o})}browseFile(o,...g){return typeof g[0]!="string"?this.#e(this.browseblobtemplate,{...g[0],path:o}):this.#e(this.browseblobtemplate,{...g[1],fragment:g[0],path:o})}docs(o){return this.#e(this.docstemplate,o)}bugs(o){return this.#e(this.bugstemplate,o)}https(o){return this.#e(this.httpstemplate,o)}git(o){return this.#e(this.gittemplate,o)}shortcut(o){return this.#e(this.shortcuttemplate,o)}path(o){return this.#e(this.pathtemplate,o)}tarball(o){return this.#e(this.tarballtemplate,{...o,noCommittish:!1})}file(o,g){return this.#e(this.filetemplate,{...g,path:o})}edit(o,g){return this.#e(this.edittemplate,{...g,path:o})}getDefaultRepresentation(){return this.default}toString(o){return this.default&&typeof this[this.default]=="function"?this[this.default](o):this.sshurl(o)}}for(let[n,o]of Object.entries(e))l.addHost(n,o);return Yt=l,Yt}var Kt,Ps;function Fc(){if(Ps)return Kt;Ps=1,Kt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
18
+ `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let i=e.length,c=r+1;for(;c<i&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return Kt}var _c={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"},Uc={web:"url",name:"url"},Gc={server:"start",tests:"test"},jc={topLevel:_c,bugs:Uc,script:Gc},Jt,Ts;function Bc(){if(Ts)return Jt;Ts=1;var{URL:t}=Jo,e=ii(),r=ni(),i=ci(),c=Dc(),{isBuiltin:s}=Ws,l=["dependencies","devDependencies","optionalDependencies"],n=Fc(),o=jc,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");Jt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var v=c.fromUrl(b);v&&(b=a.repository.url=v.getDefaultRepresentation()==="shortcut"?v.https():v.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(v){return!v||typeof v!="string"?(this.warn("invalidFilename",v),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},v;(v=a.name.match(/^@[^/]+[/](.*)$/))?b[v[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",v="bundleDependencies";a[b]&&!a[v]&&(a[v]=a[b],delete a[b]),a[v]&&!Array.isArray(a[v])?(this.warn("nonArrayBundleDependencies"),delete a[v]):a[v]&&(a[v]=a[v].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(v){var $=a[b][v];typeof $!="string"&&(this.warn("nonStringDependency",v,JSON.stringify($)),delete a[b][v]);var R=c.fromUrl(a[b][v]);R&&(a[b][v]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var v=!b;if(!a.version)return a.version="",!0;if(!e(a.version,v))throw new Error('Invalid version: "'+a.version+'"');return a.version=r(a.version,v),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var v=b.strict;if(!a.name&&!v){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");v||(a.name=a.name.trim()),y(a.name,v,b.allowLegacyCase),s(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=n(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:t.canParse(a.bugs)?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{C(a.bugs,this.warn);var v=a.bugs;a.bugs={},v.url&&(t.canParse(v.url)?a.bugs.url=v.url:this.warn("nonUrlBugsUrlField")),v.email&&(typeof v.email=="string"&&g(v.email)?a.bugs.email=v.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;t.canParse(a.homepage)||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!i(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,v){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!v&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(v){Array.isArray(a[v])&&(a[v]=a[v].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",v=a.url||a.web,$=v?" ("+v+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),v=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),v&&(R.url=v[1]),R}function d(a){var b=a.optionalDependencies;if(b){var v=a.dependencies||{};Object.keys(b).forEach(function($){v[$]=b[$]}),a.dependencies=v}}function m(a,b,v){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;v("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),D=R.join("");D=D.trim(),D=D.replace(/^@/,""),$[F]=D}),$}function w(a,b){l.forEach(function(v){a[v]&&(a[v]=m(a[v],v,b))})}function C(a,b){a&&Object.keys(a).forEach(function(v){o.bugs[v]&&(b("typo",v,o.bugs[v],"bugs"),a[o.bugs[v]]=a[v],delete a[v])})}return Jt}var Mc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",qc="No repository field.",zc="Probably broken git url: %s",Hc="scripts must be an object",Wc="script values must be string commands",kc="Invalid 'files' member",Vc="Invalid filename in 'files' list: %s",Xc="Invalid 'bundleDependencies' list. Must be array of package names",Yc="Invalid bundleDependencies member: %s",Kc="Non-dependency in bundleDependencies: %s",Jc="%s field must be an object",Zc="Invalid dependency: %s %s",Qc="specifying %s as array is deprecated",eu="modules field is deprecated",tu="keywords should be an array of strings",ru="keywords should be an array of strings",su="%s is also the name of a node core module.",iu="'description' field should be a string",nu="No description",ou="No README data",au="No license field.",cu="Bug string field must be url, email, or {email,url}",uu="bugs.url field must be a string url. Deleted.",lu="bugs.email field must be a string email. Deleted.",fu="Normalized value of bugs field is an empty object. Deleted.",hu="homepage field must be a string url. Deleted.",pu="license should be a valid SPDX license expression",du="%s should probably be %s.",mu={repositories:Mc,missingRepository:qc,brokenGitUrl:zc,nonObjectScripts:Hc,nonStringScript:Wc,nonArrayFiles:kc,invalidFilename:Vc,nonArrayBundleDependencies:Xc,nonStringBundleDependency:Yc,nonDependencyBundleDependency:Kc,nonObjectDependencies:Jc,nonStringDependency:Zc,deprecatedArrayDependencies:Qc,deprecatedModules:eu,nonArrayKeywords:tu,nonStringKeyword:ru,conflictingName:su,nonStringDescription:iu,missingDescription:nu,missingReadme:ou,missingLicense:au,nonEmailUrlBugsString:cu,nonUrlBugsUrlField:uu,nonEmailBugsEmailField:lu,emptyNormalizedBugs:fu,nonUrlHomepage:hu,invalidLicense:pu,typo:du},Zt,Ds;function gu(){if(Ds)return Zt;Ds=1;var t=Hs,e=mu;Zt=function(){var i=Array.prototype.slice.call(arguments,0),c=i.shift();if(c==="typo")return r.apply(null,i);var s=e[c]?e[c]:c+": '%s'";return i.unshift(s),t.format.apply(null,i)};function r(i,c,s){return s&&(i=s+"['"+i+"']",c=s+"['"+c+"']"),t.format(e.typo,i,c)}return Zt}var Qt,Fs;function bu(){if(Fs)return Qt;Fs=1,Qt=s;var t=Bc();s.fixer=t;var e=gu(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],c=r.map(function(n){return l(n)+"Field"});c=c.concat(i);function s(n,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||n.private)&&(o=function(){}),n.scripts&&n.scripts.install==="node-gyp rebuild"&&!n.scripts.preinstall&&(n.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](n,g)}),n._id=n.name+"@"+n.version}function l(n){return n.charAt(0).toUpperCase()+n.slice(1)}return Qt}var Eu=bu(),hi=rt(Eu),yu=(t,e)=>(t=t.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),t.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,i,c)=>i+e+c.toLowerCase()));function fr(t,{separator:e="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(t.length<2)return r?t:t.toLowerCase();let i=`$1${e}$2`,c=t.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),i);return r?yu(c,e):c.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),i).toLowerCase()}var et={exports:{}},er,_s;function wu(){if(_s)return er;_s=1;var t=Object.prototype.toString;return er=function(e){var r;return t.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))},er}var tr,Us;function vu(){return Us||(Us=1,tr=function(t){return t==null?[]:Array.isArray(t)?t:[t]}),tr}var rr,Gs;function Lu(){if(Gs)return rr;Gs=1;var t=Object.prototype.toString;rr=function(E){if(E===void 0)return"undefined";if(E===null)return"null";var y=typeof E;if(y==="boolean")return"boolean";if(y==="string")return"string";if(y==="number")return"number";if(y==="symbol")return"symbol";if(y==="function")return l(E)?"generatorfunction":"function";if(r(E))return"array";if(g(E))return"buffer";if(o(E))return"arguments";if(c(E))return"date";if(i(E))return"error";if(s(E))return"regexp";switch(e(E)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(n(E))return"generator";switch(y=t.call(E),y){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return y.slice(8,-1).toLowerCase().replace(/\s/g,"")};function e(f){return typeof f.constructor=="function"?f.constructor.name:null}function r(f){return Array.isArray?Array.isArray(f):f instanceof Array}function i(f){return f instanceof Error||typeof f.message=="string"&&f.constructor&&typeof f.constructor.stackTraceLimit=="number"}function c(f){return f instanceof Date?!0:typeof f.toDateString=="function"&&typeof f.getDate=="function"&&typeof f.setDate=="function"}function s(f){return f instanceof RegExp?!0:typeof f.flags=="string"&&typeof f.ignoreCase=="boolean"&&typeof f.multiline=="boolean"&&typeof f.global=="boolean"}function l(f,E){return e(f)==="GeneratorFunction"}function n(f){return typeof f.throw=="function"&&typeof f.return=="function"&&typeof f.next=="function"}function o(f){try{if(typeof f.length=="number"&&typeof f.callee=="function")return!0}catch(E){if(E.message.indexOf("callee")!==-1)return!0}return!1}function g(f){return f.constructor&&typeof f.constructor.isBuffer=="function"?f.constructor.isBuffer(f):!1}return rr}var js;function Cu(){if(js)return et.exports;js=1;let t=wu(),e=vu(),r=Lu(),i=(u,h,p)=>{u[h]||(u[h]=[]),u[h].push(p)},c=(u,h,p,d)=>{u[h]||(u[h]={}),u[h][p]=d},s=u=>Array.isArray(u)?`[${u.map(s).join(", ")}]`:r(u)==="string"?JSON.stringify(u):u,l=u=>{if(Array.isArray(u)&&u.length>0){let[h]=u;return`${r(h)}-array`}return r(u)},n=(u,h)=>{let p=u==="array"?"string-array":u;return f.includes(p)&&Array.isArray(h)&&h.length===0?"array":p},o=["stopEarly","unknown","--"],g=["string","boolean","number"],f=g.map(u=>`${u}-array`),E=[...g,"array",...f],y=u=>{u=u||{};let h={};return o.forEach(p=>{u[p]&&(h[p]=u[p])}),Object.keys(u).forEach(p=>{let d=u[p];if(p==="arguments"&&(p="_"),typeof d=="string"&&(d={type:d}),t(d)){let m=d,{type:w}=m;if(w){if(!E.includes(w))throw new TypeError(`Expected type of "${p}" to be one of ${s(E)}, got ${s(w)}`);if(f.includes(w)){let[C]=w.split("-");i(h,"array",{key:p,[C]:!0})}else i(h,w,p)}if({}.hasOwnProperty.call(m,"default")){let{default:C}=m,a=l(C),b=n(w,C);if(b&&b!==a)throw new TypeError(`Expected "${p}" default value to be of type "${b}", got ${s(a)}`);c(h,"default",p,C)}e(m.alias).forEach(C=>{c(h,"alias",C,p)})}}),h};return et.exports=y,et.exports.default=y,et.exports}var Su=Cu(),pi=rt(Su),tt={exports:{}},Bs;function Au(){if(Bs)return tt.exports;Bs=1;let t=c=>typeof c=="object"&&c!==null,e=Symbol("skip"),r=c=>t(c)&&!(c instanceof RegExp)&&!(c instanceof Error)&&!(c instanceof Date),i=(c,s,l,n=new WeakMap)=>{if(l={deep:!1,target:{},...l},n.has(c))return n.get(c);n.set(c,l.target);let{target:o}=l;delete l.target;let g=f=>f.map(E=>r(E)?i(E,s,l,n):E);if(Array.isArray(c))return g(c);for(let[f,E]of Object.entries(c)){let y=s(f,E,c);if(y===e)continue;let[u,h,{shouldRecurse:p=!0}={}]=y;u!=="__proto__"&&(l.deep&&p&&r(h)&&(h=Array.isArray(h)?g(h):i(h,s,l,n)),o[u]=h)}return o};return tt.exports=(c,s,l)=>{if(!t(c))throw new TypeError(`Expected an object, got \`${c}\` (${typeof c})`);return i(c,s,l)},tt.exports.mapObjectSkip=e,tt.exports}var $u=Au(),Ms=rt($u),ar=class extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[r,i]of e)this.onEviction(r,i.value)}_deleteIfExpired(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,r.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,r){if(this._deleteIfExpired(e,r)===!1)return r.value}_getItemValue(e,r){return r.expiry?this._getOrDeleteIfExpired(e,r):r.value}_peek(e,r){let i=r.get(e);return this._getItemValue(e,i)}_set(e,r){this.cache.set(e,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,r){this.oldCache.delete(e),this._set(e,r)}*_entriesAscending(){for(let e of this.oldCache){let[r,i]=e;this.cache.has(r)||this._deleteIfExpired(r,i)===!1&&(yield e)}for(let e of this.cache){let[r,i]=e;this._deleteIfExpired(r,i)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let r=this.cache.get(e);return this._getItemValue(e,r)}if(this.oldCache.has(e)){let r=this.oldCache.get(e);if(this._deleteIfExpired(e,r)===!1)return this._moveToRecent(e,r),r.value}}set(e,r,{maxAge:i=this.maxAge}={}){let c=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.cache.has(e)?this.cache.set(e,{value:r,expiry:c}):this._set(e,{value:r,expiry:c}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],i=r.length-e;i<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(i>0&&this._emitEvictions(r.slice(0,i)),this.oldCache=new Map(r.slice(i)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[r,i]=e;this._deleteIfExpired(r,i)===!1&&(yield[r,i.value])}for(let e of this.oldCache){let[r,i]=e;this.cache.has(r)||this._deleteIfExpired(r,i)===!1&&(yield[r,i.value])}}*entriesDescending(){let e=[...this.cache];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}e=[...this.oldCache];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this.cache.has(c)||this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this._entriesAscending())yield[e,r.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[i,c]of this.entriesAscending())e.call(r,c,i,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Ou=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),sr=new ar({maxSize:1e5}),qs=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),zs=(t,e={})=>{if(!qs(t))return t;let{separator:r="_",exclude:i,deep:c=!1}=e,s=l=>(n,o)=>{if(c&&qs(o)&&(o=Ms(o,s())),!(i&&Ou(i,n))){let g=`${r}${n}`;if(sr.has(g))n=sr.get(g);else{let f=fr(n,{separator:r});n.length<100&&sr.set(g,f),n=f}}return[n,o]};return Ms(t,s())};function di(t,e){return Array.isArray(t)?Object.keys(t).map(r=>zs(t[r],e)):zs(t,e)}import Ru from"node:process";import Iu from"node:path";import{fileURLToPath as xu}from"node:url";var Le=t=>`--${fr(t,{separator:"-"})}`,Me=(t,e="--")=>`\`${e}${t.join(`\`, \`${e}`)}\``;var Nu=t=>{let e={flags:{keyContainsDashes:{filter:([i])=>i.includes("-")&&i!=="--",message:i=>`Flag keys may not contain '-'. Invalid flags: ${Me(i,"")}`},aliasIsSet:{filter:([,i])=>Object.hasOwn(i,"alias"),message:i=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Me(i)}`},choicesNotAnArray:{filter:([,i])=>Object.hasOwn(i,"choices")&&!Array.isArray(i.choices),message:i=>`The option \`choices\` must be an array. Invalid flags: ${Me(i)}`},choicesNotMatchFlagType:{filter:([,i])=>i.type&&Array.isArray(i.choices)&&i.choices.some(c=>typeof c!==i.type),message(i){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${i.map(s=>`(\`${Le(s)}\`, type: '${t.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,i])=>i.default&&Array.isArray(i.choices)&&![i.default].flat().every(c=>i.choices.includes(c)),message:i=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Me(i)}`}}},r=[];for(let[i,c]of Object.entries(e)){let s=Object.entries(t[i]);for(let{filter:l,message:n}of Object.values(c)){let o=s.filter(f=>l(f)),g=o.map(([f])=>f);o.length>0&&r.push(n(g))}}if(r.length>0)throw new Error(r.join(`
19
+ `))},mi=(t,e)=>{if(typeof t!="string"&&(e=t,t=""),!e.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let i=e.pkg??li({cwd:Iu.dirname(xu(e.importMeta.url)),normalize:!1})?.packageJson??{};hi(i);let c={argv:Ru.argv.slice(2),flags:{},inferType:!1,input:"string",description:i.description??!1,help:t,version:i.version||"No version found",autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...e,pkg:i};return Nu(c),c};var Pu=({flags:t,booleanDefault:e})=>{let r={};for(let[i,c]of Object.entries(t)){let s={...c};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),e!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[e]:e),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default??=[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[i]=s}return r},gi=t=>{let e=Pu(t);return e.arguments=t.input,e=di(e,{separator:"-",exclude:["stopEarly","--"]}),t.inferType&&delete e.arguments,t.allowUnknownFlags||(t.autoHelp&&!e.help&&(e.help={type:"boolean"}),t.autoVersion&&!e.version&&(e.version={type:"boolean"})),e=pi(e),e.configuration={...e.configuration,"greedy-arrays":!1,"parse-numbers":t.inferType},e["--"]&&(e.configuration["populate--"]=!0),t.allowUnknownFlags||(e.configuration["unknown-options-as-args"]=!0),e};import bi from"node:process";var Tu=(t,e)=>{for(let[r,i]of Object.entries(e.flags))if(r!=="--"&&!i.isMultiple&&Array.isArray(t[r]))throw new Error(`The flag --${r} can only be set once.`)},Du=(t,e,r)=>{let{choices:i,isRequired:c}=e;if(!i)return;let s=`Value must be one of: [\`${i.join("`, `")}\`]`;if(!r)return c?`Flag \`${Le(t)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let l=r.filter(n=>!i.includes(n));if(l.length>0)return`Unknown ${l.length>1?"values":"value"} for flag \`${Le(t)}\`: \`${l.join("`, `")}\`. ${s}`}else if(!i.includes(r))return`Unknown value for flag \`${Le(t)}\`: \`${r}\`. ${s}`},Fu=(t,e)=>{let r=[];for(let[i,c]of Object.entries(t)){let s=e[i],l=Du(i,c,s);l&&r.push(l)}if(r.length>0)throw new Error(`${r.join(`
20
+ `)}`)},Ei=(t,e)=>{Tu(t,e),Fu(e.flags,t)},_u=t=>{console.error([`Unknown flag${t.length>1?"s":""}`,...t].join(`
21
+ `))},yi=t=>{let e=t.filter(r=>typeof r=="string"&&r.startsWith("-"));e.length>0&&(_u(e),bi.exit(2))},Uu=(t,e,r,i)=>{let c=e[t],s=!0;if(typeof c.isRequired=="function"&&(s=c.isRequired(r,i),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[t]===void 0||c.isMultiple&&r[t].length===0)&&s},Gu=t=>{console.error(`Missing required flag${t.length>1?"s":""}`);for(let e of t)console.error(` ${Le(e.key)}${e.shortFlag?`, -${e.shortFlag}`:""}`)},wi=(t,e,r)=>{let i=[];if(t===void 0)return[];for(let c of Object.keys(t))t[c].isRequired&&Uu(c,t,e,r)&&i.push({key:c,...t[c]});i.length>0&&(Gu(i),bi.exit(2))};var ju=({pkg:t,...e},r)=>{let i=Pe(e.argv,r),c="";if(e.help&&(c=ei((e.help||"").replace(/\t+\n*$/,"")),c.includes(`
22
+ `)&&(c=lr(c,e.helpIndent)),c=`
23
+ ${c}`),e.description!==!1){let{description:f}=e;f&&(f=c?lr(`
24
24
  ${f}
25
25
  `,e.helpIndent):`
26
26
  ${f}`,c=`${f}${c}`)}c+=`
27
- `;let s=f=>{console.log(c),fr.exit(typeof f=="number"?f:2)},l=()=>{console.log(e.version),fr.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?l():n.help===!0&&e.autoHelp&&s(0));let i=n._;delete n._,e.allowUnknownFlags||mi(i);let o=Ys(n,{exclude:["--",/^\w$/]}),g={...o};di(o,e);for(let f of Object.values(e.flags)){if(Array.isArray(f.aliases))for(let E of f.aliases)delete o[E];delete o[f.shortFlag]}return gi(e.flags,o,i),{input:i,flags:o,unnormalizedFlags:g,pkg:t,help:c,showHelp:s,showVersion:l}},bi=(t,e={})=>{let r=fi(t,e),n=hi(r),c=Uu(r,n);return fr.title=c.pkg.bin?Object.keys(c.pkg.bin).at(0):c.pkg.name,c};var Io=Ur(Ii(),1),xo=Ur(wo(),1);import Ro from"node:fs/promises";import qp from"node:os";import $o from"node:path";import zp from"semantic-release";import{createRequire as rp}from"module";import{spawn as sp}from"node:child_process";import{delimiter as Lo,dirname as ip,normalize as np,resolve as op}from"node:path";import{cwd as ap}from"node:process";import{PassThrough as cp}from"node:stream";import up from"node:readline";var lp=Object.create,Ao=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,hp=Object.getOwnPropertyNames,pp=Object.getPrototypeOf,dp=Object.prototype.hasOwnProperty,ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mp=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var c=hp(e),s=0,l=c.length,i;s<l;s++)i=c[s],!dp.call(t,i)&&i!==r&&Ao(t,i,{get:(o=>e[o]).bind(null,i),enumerable:!(n=fp(e,i))||n.enumerable});return t},gp=(t,e,r)=>(r=t!=null?lp(pp(t)):{},mp(e||!t||!t.__esModule?Ao(r,"default",{value:t,enumerable:!0}):r,t)),Le=rp(import.meta.url),bp=/^path$/i,vo={key:"PATH",value:""};function Ep(t){for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!bp.test(e))continue;let r=t[e];return r?{key:e,value:r}:vo}return vo}function yp(t,e){let r=e.value.split(Lo),n=t,c;do r.push(op(n,"node_modules",".bin")),c=n,n=ip(n);while(n!==c);return{key:e.key,value:r.join(Lo)}}function wp(t,e){let r={...process.env,...e},n=yp(t,Ep(r));return r[n.key]=n.value,r}var Lp=t=>{let e=t.length,r=new cp,n=()=>{--e===0&&r.emit("end")};for(let c of t)c.pipe(r,{end:!1}),c.on("end",n);return r},vp=ce((t,e)=>{e.exports=s,s.sync=l;var r=Le("fs");function n(i,o){var g=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!g||(g=g.split(";"),g.indexOf("")!==-1))return!0;for(var f=0;f<g.length;f++){var E=g[f].toLowerCase();if(E&&i.substr(-E.length).toLowerCase()===E)return!0}return!1}function c(i,o,g){return!i.isSymbolicLink()&&!i.isFile()?!1:n(o,g)}function s(i,o,g){r.stat(i,function(f,E){g(f,f?!1:c(E,i,o))})}function l(i,o){return c(r.statSync(i),i,o)}}),Cp=ce((t,e)=>{e.exports=n,n.sync=c;var r=Le("fs");function n(i,o,g){r.stat(i,function(f,E){g(f,f?!1:s(E,o))})}function c(i,o){return s(r.statSync(i),o)}function s(i,o){return i.isFile()&&l(i,o)}function l(i,o){var g=i.mode,f=i.uid,E=i.gid,y=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),u=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),h=parseInt("100",8),p=parseInt("010",8),d=parseInt("001",8),m=h|p,w=g&d||g&p&&E===u||g&h&&f===y||g&m&&y===0;return w}}),Sp=ce((t,e)=>{var r=Le("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=vp():n=Cp(),e.exports=c,c.sync=s;function c(l,i,o){if(typeof i=="function"&&(o=i,i={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(g,f){c(l,i||{},function(E,y){E?f(E):g(y)})})}n(l,i||{},function(g,f){g&&(g.code==="EACCES"||i&&i.ignoreErrors)&&(g=null,f=!1),o(g,f)})}function s(l,i){try{return n.sync(l,i||{})}catch(o){if(i&&i.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),Ap=ce((t,e)=>{let r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=Le("path"),c=r?";":":",s=Sp(),l=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),i=(f,E)=>{let y=E.colon||c,u=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(E.path||process.env.PATH||"").split(y)],h=r?E.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",p=r?h.split(y):[""];return r&&f.indexOf(".")!==-1&&p[0]!==""&&p.unshift(""),{pathEnv:u,pathExt:p,pathExtExe:h}},o=(f,E,y)=>{typeof E=="function"&&(y=E,E={}),E||(E={});let{pathEnv:u,pathExt:h,pathExtExe:p}=i(f,E),d=[],m=C=>new Promise((a,b)=>{if(C===u.length)return E.all&&d.length?a(d):b(l(f));let L=u[C],$=/^".*"$/.test(L)?L.slice(1,-1):L,R=n.join($,f),F=!$&&/^\.[\\\/]/.test(f)?f.slice(0,2)+R:R;a(w(F,C,0))}),w=(C,a,b)=>new Promise((L,$)=>{if(b===h.length)return L(m(a+1));let R=h[b];s(C+R,{pathExt:p},(F,T)=>{if(!F&&T)if(E.all)d.push(C+R);else return L(C+R);return L(w(C,a,b+1))})});return y?m(0).then(C=>y(null,C),y):m(0)},g=(f,E)=>{E=E||{};let{pathEnv:y,pathExt:u,pathExtExe:h}=i(f,E),p=[];for(let d=0;d<y.length;d++){let m=y[d],w=/^".*"$/.test(m)?m.slice(1,-1):m,C=n.join(w,f),a=!w&&/^\.[\\\/]/.test(f)?f.slice(0,2)+C:C;for(let b=0;b<u.length;b++){let L=a+u[b];try{if(s.sync(L,{pathExt:h}))if(E.all)p.push(L);else return L}catch{}}}if(E.all&&p.length)return p;if(E.nothrow)return null;throw l(f)};e.exports=o,o.sync=g}),$p=ce((t,e)=>{let r=(n={})=>{let c=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(c).reverse().find(l=>l.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),Op=ce((t,e)=>{let r=Le("path"),n=Ap(),c=$p();function s(i,o){let g=i.options.env||process.env,f=process.cwd(),E=i.options.cwd!=null,y=E&&process.chdir!==void 0&&!process.chdir.disabled;if(y)try{process.chdir(i.options.cwd)}catch{}let u;try{u=n.sync(i.command,{path:g[c({env:g})],pathExt:o?r.delimiter:void 0})}catch{}finally{y&&process.chdir(f)}return u&&(u=r.resolve(E?i.options.cwd:"",u)),u}function l(i){return s(i)||s(i,!0)}e.exports=l}),Rp=ce((t,e)=>{let r=/([()\][%!^"`<>&|;, *?])/g;function n(s){return s=s.replace(r,"^$1"),s}function c(s,l){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(r,"^$1"),l&&(s=s.replace(r,"^$1")),s}e.exports.command=n,e.exports.argument=c}),Ip=ce((t,e)=>{e.exports=/^#!(.*)/}),xp=ce((t,e)=>{let r=Ip();e.exports=(n="")=>{let c=n.match(r);if(!c)return null;let[s,l]=c[0].replace(/#! ?/,"").split(" "),i=s.split("/").pop();return i==="env"?l:l?`${i} ${l}`:i}}),Np=ce((t,e)=>{let r=Le("fs"),n=xp();function c(s){let i=Buffer.alloc(150),o;try{o=r.openSync(s,"r"),r.readSync(o,i,0,150,0),r.closeSync(o)}catch{}return n(i.toString())}e.exports=c}),Pp=ce((t,e)=>{let r=Le("path"),n=Op(),c=Rp(),s=Np(),l=process.platform==="win32",i=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function g(y){y.file=n(y);let u=y.file&&s(y.file);return u?(y.args.unshift(y.file),y.command=u,n(y)):y.file}function f(y){if(!l)return y;let u=g(y),h=!i.test(u);if(y.options.forceShell||h){let p=o.test(u);y.command=r.normalize(y.command),y.command=c.command(y.command),y.args=y.args.map(m=>c.argument(m,p));let d=[y.command].concat(y.args).join(" ");y.args=["/d","/s","/c",`"${d}"`],y.command=process.env.comspec||"cmd.exe",y.options.windowsVerbatimArguments=!0}return y}function E(y,u,h){u&&!Array.isArray(u)&&(h=u,u=null),u=u?u.slice(0):[],h=Object.assign({},h);let p={command:y,args:u,options:h,file:void 0,original:{command:y,args:u}};return h.shell?p:f(p)}e.exports=E}),Dp=ce((t,e)=>{let r=process.platform==="win32";function n(i,o){return Object.assign(new Error(`${o} ${i.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${i.command}`,path:i.command,spawnargs:i.args})}function c(i,o){if(!r)return;let g=i.emit;i.emit=function(f,E){if(f==="exit"){let y=s(E,o,"spawn");if(y)return g.call(i,"error",y)}return g.apply(i,arguments)}}function s(i,o){return r&&i===1&&!o.file?n(o.original,"spawn"):null}function l(i,o){return r&&i===1&&!o.file?n(o.original,"spawnSync"):null}e.exports={hookChildProcess:c,verifyENOENT:s,verifyENOENTSync:l,notFoundError:n}}),Tp=ce((t,e)=>{let r=Le("child_process"),n=Pp(),c=Dp();function s(i,o,g){let f=n(i,o,g),E=r.spawn(f.command,f.args,f.options);return c.hookChildProcess(E,f),E}function l(i,o,g){let f=n(i,o,g),E=r.spawnSync(f.command,f.args,f.options);return E.error=E.error||c.verifyENOENTSync(E.status,f),E}e.exports=s,e.exports.spawn=s,e.exports.sync=l,e.exports._parse=n,e.exports._enoent=c}),Fp=gp(Tp(),1),Co=class extends Error{result;output;get exitCode(){if(this.result.exitCode!==null)return this.result.exitCode}constructor(t,e){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=e}},_p={timeout:void 0,persist:!1},Up={windowsHide:!0};function Gp(t,e){return{command:np(t),args:e??[]}}function jp(t){let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(),r;let n=()=>{e.abort(r.reason)};r.addEventListener("abort",n,{signal:e.signal})}return e.signal}async function So(t){let e="";for await(let r of t)e+=r.toString();return e}var Bp=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}constructor(t,e,r){this._options={..._p,...r},this._command=t,this._args=e??[],this._processClosed=new Promise(n=>{this._resolveClose=n})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,e,r){return Fr(t,e,{...r,stdin:this})}async*[Symbol.asyncIterator](){let t=this._process;if(!t)return;let e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);let r=Lp(e),n=up.createInterface({input:r});for await(let c of n)yield c.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Co(this)}async _waitForOutput(){let t=this._process;if(!t)throw new Error("No process was started");let[e,r]=await Promise.all([this._streamOut?So(this._streamOut):"",this._streamErr?So(this._streamErr):""]);if(await this._processClosed,this._options?.stdin&&await this._options.stdin,t.removeAllListeners(),this._thrownError)throw this._thrownError;let n={stderr:r,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Co(this,n);return n}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){let t=ap(),e=this._options,r={...Up,...e.nodeOptions},n=[];this._resetState(),e.timeout!==void 0&&n.push(AbortSignal.timeout(e.timeout)),e.signal!==void 0&&n.push(e.signal),e.persist===!0&&(r.detached=!0),n.length>0&&(r.signal=jp(n)),r.env=wp(t,r.env);let{command:c,args:s}=Gp(this._command,this._args),l=(0,Fp._parse)(c,s,r),i=sp(l.command,l.args,l.options);if(i.stderr&&(this._streamErr=i.stderr),i.stdout&&(this._streamOut=i.stdout),this._process=i,i.once("error",this._onError),i.once("close",this._onClose),e.stdin!==void 0&&i.stdin&&e.stdin.process){let{stdout:o}=e.stdin.process;o&&o.pipe(i.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}},Mp=(t,e,r)=>{let n=new Bp(t,e,r);return n.spawn(),n},Fr=Mp;var Hp="main",de=(0,Io.default)("semantic-release-next-version"),Wp=["GITHUB_TOKEN","GH_TOKEN","GIT_TOKEN"];function kp(t){return{repositoryUrl:".",branches:[t,{name:"*",prerelease:!0}],tagFormat:"${version}",plugins:["@semantic-release/commit-analyzer"]}}async function be(t,e){let r=await Fr("git",e,{nodeOptions:{cwd:t},throwOnError:!0});if(r.exitCode)throw new Error(`git ${e.join(" ")} failed with code ${r.exitCode}`);return r.stdout.trim()}async function Vp(t){if(process.env.GITHUB_HEAD_REF)return process.env.GITHUB_HEAD_REF;if(process.env.GITHUB_REF_NAME)return process.env.GITHUB_REF_NAME;try{return await be(t,["rev-parse","--abbrev-ref","HEAD"])}catch{return""}}async function Xp(t){try{return await be(t,["config","--get","remote.origin.url"])}catch{return""}}async function Yp(t){try{return await be(t,["rev-parse","--is-shallow-repository"])==="true"}catch{return!1}}function Kp(t){return/^https?:\/\/[^/]*github\.com[:/]/i.test(t)}function Jp(){return Wp.some(t=>process.env[t])}async function Zp(t,e,r){let n=await Ro.mkdtemp($o.join(qp.tmpdir(),"srnv-")),c=$o.join(n,"remote.git");await be(t,["init","--bare",c]),de("created temp remote %s",c);try{await be(t,["--git-dir",c,"symbolic-ref","HEAD",`refs/heads/${r}`])}catch{}try{await be(t,["push",c,`HEAD:refs/heads/${r}`])}catch{}if(e&&e!==r){de("pushing current branch %s to temp remote",e);try{await be(t,["push",c,`HEAD:refs/heads/${e}`])}catch{}}try{await be(t,["push",c,"--tags"])}catch{}return{remote:c,root:n}}function Qp(t,e){return t.some(r=>typeof r=="string"?r===e:r?.name===e)}function Oo(t){return t.replace(/[^0-9A-Za-z-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")||"prerelease"}async function ed(t,e){if(process.env.GITHUB_SHA)return process.env.GITHUB_SHA.slice(0,7);try{return await be(t,["rev-parse","--short","HEAD"])}catch{return e}}async function No({cwd:t=process.cwd(),config:e={},repositoryUrl:r,branches:n,tagFormat:c,plugins:s,release:l=!1,mainBranch:i=Hp}={}){de("start getNextVersion"),de("cwd=%s mainBranch=%s release=%s",t,i,l),de("env GITHUB_HEAD_REF=%s GITHUB_REF=%s GITHUB_REF_NAME=%s",process.env.GITHUB_HEAD_REF,process.env.GITHUB_REF,process.env.GITHUB_REF_NAME),process.env.GITHUB_HEAD_REF&&process.env.GITHUB_REF?.startsWith("refs/pull/")&&(process.env.GITHUB_REF=`refs/heads/${process.env.GITHUB_HEAD_REF}`,process.env.GITHUB_REF_NAME=process.env.GITHUB_HEAD_REF);let o=await Vp(t)||i;if(de("currentBranch=%s",o),await Yp(t))throw new Error("Shallow git clone detected. This tool requires full git history and tags; use actions/checkout with fetch-depth: 0 (or run git fetch --unshallow --tags).");let g=r||e.repositoryUrl||(l?await Xp(t):".")||".",f="";if(!l&&g==="."||l&&Kp(g)&&!Jp())try{let{remote:C,root:a}=await Zp(t,o,i);g=C,f=a}catch(C){de("failed to create temp remote: %o",C)}let y={...kp(i),...e,repositoryUrl:g,...c?{tagFormat:c}:{},...s?{plugins:s}:{}};de("loadedConfig.branches=%o overrideBranches=%o repositoryUrl=%s",y.branches,n,y.repositoryUrl);let u=n??y.branches,h=Array.isArray(u)?[...u]:u?[u]:[];de("branches before ensure current=%o",h),Qp(h,o)||h.push({name:o,prerelease:o!==i?Oo(o):!1}),de("final branches=%o",h);let p;try{p=await zp({...y,branches:h,dryRun:!0,ci:!1,repositoryUrl:y.repositoryUrl},{cwd:t,env:{...process.env,GIT_NOTE_REF:"semantic-release-next-version-empty",GIT_NOTES_REF:"",GIT_NOTES_DISPLAY_REF:""},stdout:process.stderr,stderr:process.stderr})}finally{if(f)try{await Ro.rm(f,{recursive:!0,force:!0})}catch{}}if(!p)throw new Error("semantic-release did not return a next version.");let d=xo.default.parse(p.nextRelease.version);if(!d)throw new Error(`Unable to parse semantic-release version: ${p.nextRelease.version}`);let m=`${d.major}.${d.minor}.${d.patch}`;if(l)return m;let w=await ed(t,Oo(o||"preview"));return`${m}-preview-${w}`}var rd=`
27
+ `;let s=f=>{console.log(c),hr.exit(typeof f=="number"?f:2)},l=()=>{console.log(e.version),hr.exit(0)};i._.length===0&&e.argv.length===1&&(i.version===!0&&e.autoVersion?l():i.help===!0&&e.autoHelp&&s(0));let n=i._;delete i._,e.allowUnknownFlags||yi(n);let o=Qs(i,{exclude:["--",/^\w$/]}),g={...o};Ei(o,e);for(let f of Object.values(e.flags)){if(Array.isArray(f.aliases))for(let E of f.aliases)delete o[E];delete o[f.shortFlag]}return wi(e.flags,o,n),{input:n,flags:o,unnormalizedFlags:g,pkg:t,help:c,showHelp:s,showVersion:l}},vi=(t,e={})=>{let r=mi(t,e),i=gi(r),c=ju(r,i);return hr.title=c.pkg.bin?Object.keys(c.pkg.bin).at(0):c.pkg.name,c};var Po=Mr(Ti(),1),Ae=Mr(So(),1);import jr from"node:fs/promises";import Hp from"node:os";import Gr from"node:path";import Wp from"semantic-release";import{createRequire as ip}from"module";import{spawn as np}from"node:child_process";import{delimiter as Ao,dirname as op,normalize as ap,resolve as cp}from"node:path";import{cwd as up}from"node:process";import{PassThrough as lp}from"node:stream";import fp from"node:readline";var hp=Object.create,Io=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,dp=Object.getOwnPropertyNames,mp=Object.getPrototypeOf,gp=Object.prototype.hasOwnProperty,ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var c=dp(e),s=0,l=c.length,n;s<l;s++)n=c[s],!gp.call(t,n)&&n!==r&&Io(t,n,{get:(o=>e[o]).bind(null,n),enumerable:!(i=pp(e,n))||i.enumerable});return t},Ep=(t,e,r)=>(r=t!=null?hp(mp(t)):{},bp(e||!t||!t.__esModule?Io(r,"default",{value:t,enumerable:!0}):r,t)),ve=ip(import.meta.url),yp=/^path$/i,$o={key:"PATH",value:""};function wp(t){for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!yp.test(e))continue;let r=t[e];return r?{key:e,value:r}:$o}return $o}function vp(t,e){let r=e.value.split(Ao),i=t,c;do r.push(cp(i,"node_modules",".bin")),c=i,i=op(i);while(i!==c);return{key:e.key,value:r.join(Ao)}}function Lp(t,e){let r={...process.env,...e},i=vp(t,wp(r));return r[i.key]=i.value,r}var Cp=t=>{let e=t.length,r=new lp,i=()=>{--e===0&&r.emit("end")};for(let c of t)c.pipe(r,{end:!1}),c.on("end",i);return r},Sp=ce((t,e)=>{e.exports=s,s.sync=l;var r=ve("fs");function i(n,o){var g=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!g||(g=g.split(";"),g.indexOf("")!==-1))return!0;for(var f=0;f<g.length;f++){var E=g[f].toLowerCase();if(E&&n.substr(-E.length).toLowerCase()===E)return!0}return!1}function c(n,o,g){return!n.isSymbolicLink()&&!n.isFile()?!1:i(o,g)}function s(n,o,g){r.stat(n,function(f,E){g(f,f?!1:c(E,n,o))})}function l(n,o){return c(r.statSync(n),n,o)}}),Ap=ce((t,e)=>{e.exports=i,i.sync=c;var r=ve("fs");function i(n,o,g){r.stat(n,function(f,E){g(f,f?!1:s(E,o))})}function c(n,o){return s(r.statSync(n),o)}function s(n,o){return n.isFile()&&l(n,o)}function l(n,o){var g=n.mode,f=n.uid,E=n.gid,y=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),u=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),h=parseInt("100",8),p=parseInt("010",8),d=parseInt("001",8),m=h|p,w=g&d||g&p&&E===u||g&h&&f===y||g&m&&y===0;return w}}),$p=ce((t,e)=>{var r=ve("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Sp():i=Ap(),e.exports=c,c.sync=s;function c(l,n,o){if(typeof n=="function"&&(o=n,n={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(g,f){c(l,n||{},function(E,y){E?f(E):g(y)})})}i(l,n||{},function(g,f){g&&(g.code==="EACCES"||n&&n.ignoreErrors)&&(g=null,f=!1),o(g,f)})}function s(l,n){try{return i.sync(l,n||{})}catch(o){if(n&&n.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),Op=ce((t,e)=>{let r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=ve("path"),c=r?";":":",s=$p(),l=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),n=(f,E)=>{let y=E.colon||c,u=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(E.path||process.env.PATH||"").split(y)],h=r?E.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",p=r?h.split(y):[""];return r&&f.indexOf(".")!==-1&&p[0]!==""&&p.unshift(""),{pathEnv:u,pathExt:p,pathExtExe:h}},o=(f,E,y)=>{typeof E=="function"&&(y=E,E={}),E||(E={});let{pathEnv:u,pathExt:h,pathExtExe:p}=n(f,E),d=[],m=C=>new Promise((a,b)=>{if(C===u.length)return E.all&&d.length?a(d):b(l(f));let v=u[C],$=/^".*"$/.test(v)?v.slice(1,-1):v,R=i.join($,f),F=!$&&/^\.[\\\/]/.test(f)?f.slice(0,2)+R:R;a(w(F,C,0))}),w=(C,a,b)=>new Promise((v,$)=>{if(b===h.length)return v(m(a+1));let R=h[b];s(C+R,{pathExt:p},(F,D)=>{if(!F&&D)if(E.all)d.push(C+R);else return v(C+R);return v(w(C,a,b+1))})});return y?m(0).then(C=>y(null,C),y):m(0)},g=(f,E)=>{E=E||{};let{pathEnv:y,pathExt:u,pathExtExe:h}=n(f,E),p=[];for(let d=0;d<y.length;d++){let m=y[d],w=/^".*"$/.test(m)?m.slice(1,-1):m,C=i.join(w,f),a=!w&&/^\.[\\\/]/.test(f)?f.slice(0,2)+C:C;for(let b=0;b<u.length;b++){let v=a+u[b];try{if(s.sync(v,{pathExt:h}))if(E.all)p.push(v);else return v}catch{}}}if(E.all&&p.length)return p;if(E.nothrow)return null;throw l(f)};e.exports=o,o.sync=g}),Rp=ce((t,e)=>{let r=(i={})=>{let c=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(c).reverse().find(l=>l.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),Ip=ce((t,e)=>{let r=ve("path"),i=Op(),c=Rp();function s(n,o){let g=n.options.env||process.env,f=process.cwd(),E=n.options.cwd!=null,y=E&&process.chdir!==void 0&&!process.chdir.disabled;if(y)try{process.chdir(n.options.cwd)}catch{}let u;try{u=i.sync(n.command,{path:g[c({env:g})],pathExt:o?r.delimiter:void 0})}catch{}finally{y&&process.chdir(f)}return u&&(u=r.resolve(E?n.options.cwd:"",u)),u}function l(n){return s(n)||s(n,!0)}e.exports=l}),xp=ce((t,e)=>{let r=/([()\][%!^"`<>&|;, *?])/g;function i(s){return s=s.replace(r,"^$1"),s}function c(s,l){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(r,"^$1"),l&&(s=s.replace(r,"^$1")),s}e.exports.command=i,e.exports.argument=c}),Np=ce((t,e)=>{e.exports=/^#!(.*)/}),Pp=ce((t,e)=>{let r=Np();e.exports=(i="")=>{let c=i.match(r);if(!c)return null;let[s,l]=c[0].replace(/#! ?/,"").split(" "),n=s.split("/").pop();return n==="env"?l:l?`${n} ${l}`:n}}),Tp=ce((t,e)=>{let r=ve("fs"),i=Pp();function c(s){let n=Buffer.alloc(150),o;try{o=r.openSync(s,"r"),r.readSync(o,n,0,150,0),r.closeSync(o)}catch{}return i(n.toString())}e.exports=c}),Dp=ce((t,e)=>{let r=ve("path"),i=Ip(),c=xp(),s=Tp(),l=process.platform==="win32",n=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function g(y){y.file=i(y);let u=y.file&&s(y.file);return u?(y.args.unshift(y.file),y.command=u,i(y)):y.file}function f(y){if(!l)return y;let u=g(y),h=!n.test(u);if(y.options.forceShell||h){let p=o.test(u);y.command=r.normalize(y.command),y.command=c.command(y.command),y.args=y.args.map(m=>c.argument(m,p));let d=[y.command].concat(y.args).join(" ");y.args=["/d","/s","/c",`"${d}"`],y.command=process.env.comspec||"cmd.exe",y.options.windowsVerbatimArguments=!0}return y}function E(y,u,h){u&&!Array.isArray(u)&&(h=u,u=null),u=u?u.slice(0):[],h=Object.assign({},h);let p={command:y,args:u,options:h,file:void 0,original:{command:y,args:u}};return h.shell?p:f(p)}e.exports=E}),Fp=ce((t,e)=>{let r=process.platform==="win32";function i(n,o){return Object.assign(new Error(`${o} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${n.command}`,path:n.command,spawnargs:n.args})}function c(n,o){if(!r)return;let g=n.emit;n.emit=function(f,E){if(f==="exit"){let y=s(E,o,"spawn");if(y)return g.call(n,"error",y)}return g.apply(n,arguments)}}function s(n,o){return r&&n===1&&!o.file?i(o.original,"spawn"):null}function l(n,o){return r&&n===1&&!o.file?i(o.original,"spawnSync"):null}e.exports={hookChildProcess:c,verifyENOENT:s,verifyENOENTSync:l,notFoundError:i}}),_p=ce((t,e)=>{let r=ve("child_process"),i=Dp(),c=Fp();function s(n,o,g){let f=i(n,o,g),E=r.spawn(f.command,f.args,f.options);return c.hookChildProcess(E,f),E}function l(n,o,g){let f=i(n,o,g),E=r.spawnSync(f.command,f.args,f.options);return E.error=E.error||c.verifyENOENTSync(E.status,f),E}e.exports=s,e.exports.spawn=s,e.exports.sync=l,e.exports._parse=i,e.exports._enoent=c}),Up=Ep(_p(),1),Oo=class extends Error{result;output;get exitCode(){if(this.result.exitCode!==null)return this.result.exitCode}constructor(t,e){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=e}},Gp={timeout:void 0,persist:!1},jp={windowsHide:!0};function Bp(t,e){return{command:ap(t),args:e??[]}}function Mp(t){let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(),r;let i=()=>{e.abort(r.reason)};r.addEventListener("abort",i,{signal:e.signal})}return e.signal}async function Ro(t){let e="";for await(let r of t)e+=r.toString();return e}var qp=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}constructor(t,e,r){this._options={...Gp,...r},this._command=t,this._args=e??[],this._processClosed=new Promise(i=>{this._resolveClose=i})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,e,r){return _r(t,e,{...r,stdin:this})}async*[Symbol.asyncIterator](){let t=this._process;if(!t)return;let e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);let r=Cp(e),i=fp.createInterface({input:r});for await(let c of i)yield c.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Oo(this)}async _waitForOutput(){let t=this._process;if(!t)throw new Error("No process was started");let[e,r]=await Promise.all([this._streamOut?Ro(this._streamOut):"",this._streamErr?Ro(this._streamErr):""]);if(await this._processClosed,this._options?.stdin&&await this._options.stdin,t.removeAllListeners(),this._thrownError)throw this._thrownError;let i={stderr:r,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Oo(this,i);return i}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){let t=up(),e=this._options,r={...jp,...e.nodeOptions},i=[];this._resetState(),e.timeout!==void 0&&i.push(AbortSignal.timeout(e.timeout)),e.signal!==void 0&&i.push(e.signal),e.persist===!0&&(r.detached=!0),i.length>0&&(r.signal=Mp(i)),r.env=Lp(t,r.env);let{command:c,args:s}=Bp(this._command,this._args),l=(0,Up._parse)(c,s,r),n=np(l.command,l.args,l.options);if(n.stderr&&(this._streamErr=n.stderr),n.stdout&&(this._streamOut=n.stdout),this._process=n,n.once("error",this._onError),n.once("close",this._onClose),e.stdin!==void 0&&n.stdin&&e.stdin.process){let{stdout:o}=e.stdin.process;o&&o.pipe(n.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}},zp=(t,e,r)=>{let i=new qp(t,e,r);return i.spawn(),i},_r=zp;var kp="main",de=(0,Po.default)("semantic-release-next-version"),Vp=["GITHUB_TOKEN","GH_TOKEN","GIT_TOKEN"],xo="__srnv_version_marker__",Xp=[/\$\{\s*version\s*\}/g,/<%=\s*version\s*%>/g];function Yp(t){return{repositoryUrl:".",branches:[t,{name:"*",prerelease:!0}],tagFormat:"${version}",plugins:["@semantic-release/commit-analyzer"]}}async function me(t,e){let r=await _r("git",e,{nodeOptions:{cwd:t},throwOnError:!0});if(r.exitCode)throw new Error(`git ${e.join(" ")} failed with code ${r.exitCode}`);return r.stdout.trim()}async function Kp(t){if(process.env.GITHUB_HEAD_REF)return process.env.GITHUB_HEAD_REF;if(process.env.GITHUB_REF_NAME)return process.env.GITHUB_REF_NAME;try{return await me(t,["rev-parse","--abbrev-ref","HEAD"])}catch{return""}}async function Jp(t){try{return await me(t,["config","--get","remote.origin.url"])}catch{return""}}async function Zp(t){try{return await me(t,["rev-parse","--is-shallow-repository"])==="true"}catch{return!1}}function Qp(t){return/^https?:\/\/[^/]*github\.com[:/]/i.test(t)}function ed(){return Vp.some(t=>process.env[t])}async function td(t,e,r){let i=await jr.mkdtemp(Gr.join(Hp.tmpdir(),"srnv-")),c=Gr.join(i,"remote.git");await me(t,["init","--bare",c]),de("created temp remote %s",c);try{await me(t,["--git-dir",c,"symbolic-ref","HEAD",`refs/heads/${r}`])}catch{}try{await me(t,["push",c,`HEAD:refs/heads/${r}`])}catch{}if(e&&e!==r){de("pushing current branch %s to temp remote",e);try{await me(t,["push",c,`HEAD:refs/heads/${e}`])}catch{}}try{await me(t,["push",c,"--tags"])}catch{}return{remote:c,root:i}}function rd(t,e){return t.some(r=>typeof r=="string"?r===e:r?.name===e)}function Ur(t){return t.replace(/[^0-9A-Za-z-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")||"prerelease"}function sd(t,e){if(!t)return"";if(e){let c=e,s=0;for(let l of Xp)c=c.replace(l,()=>(s+=1,xo));if(s===1){let[l,n]=c.split(xo);if(t.startsWith(l)&&t.endsWith(n)){let o=n?t.length-n.length:t.length;if(o>=l.length){let g=t.slice(l.length,o),f=Ae.default.parse(g);if(f)return`${f.major}.${f.minor}.${f.patch}`}}}}let r=Ae.default.clean(t),i=Ae.default.parse(r||"");return i?`${i.major}.${i.minor}.${i.patch}`:""}async function id(t,e){try{let i=(await me(t,["tag","--list"])).split(`
28
+ `).map(c=>sd(c.trim(),e)).filter(Boolean);if(i.length>0)return Ae.default.rsort([...new Set(i)])[0]}catch{}try{let r=Gr.join(t,"package.json"),i=await jr.readFile(r,"utf8"),c=JSON.parse(i)?.version,s=Ae.default.parse(c);if(s)return`${s.major}.${s.minor}.${s.patch}`}catch{}throw new Error("semantic-release did not return a next version and no valid version was found in git tags or package.json.")}async function No(t,e){if(process.env.GITHUB_SHA)return process.env.GITHUB_SHA.slice(0,7);try{return await me(t,["rev-parse","--short","HEAD"])}catch{return e}}async function To({cwd:t=process.cwd(),config:e={},repositoryUrl:r,branches:i,tagFormat:c,plugins:s,release:l=!1,defaultBranch:n,mainBranch:o}={}){let g=n??o??kp;de("start getNextVersion"),de("cwd=%s defaultBranch=%s release=%s",t,g,l),de("env GITHUB_HEAD_REF=%s GITHUB_REF=%s GITHUB_REF_NAME=%s",process.env.GITHUB_HEAD_REF,process.env.GITHUB_REF,process.env.GITHUB_REF_NAME),process.env.GITHUB_HEAD_REF&&process.env.GITHUB_REF?.startsWith("refs/pull/")&&(process.env.GITHUB_REF=`refs/heads/${process.env.GITHUB_HEAD_REF}`,process.env.GITHUB_REF_NAME=process.env.GITHUB_HEAD_REF);let f=await Kp(t)||g;if(de("currentBranch=%s",f),await Zp(t))throw new Error("Shallow git clone detected. This tool requires full git history and tags; use actions/checkout with fetch-depth: 0 (or run git fetch --unshallow --tags).");let E=r||e.repositoryUrl||(l?await Jp(t):".")||".",y="";if(!l&&E==="."||l&&Qp(E)&&!ed())try{let{remote:b,root:v}=await td(t,f,g);E=b,y=v}catch(b){de("failed to create temp remote: %o",b)}let h={...Yp(g),...e,repositoryUrl:E,...c?{tagFormat:c}:{},...s?{plugins:s}:{}};de("loadedConfig.branches=%o overrideBranches=%o repositoryUrl=%s",h.branches,i,h.repositoryUrl);let p=i??h.branches,d=Array.isArray(p)?[...p]:p?[p]:[];de("branches before ensure current=%o",d),rd(d,f)||d.push({name:f,prerelease:f!==g?Ur(f):!1}),de("final branches=%o",d);let m;try{m=await Wp({...h,branches:d,dryRun:!0,ci:!1,repositoryUrl:h.repositoryUrl},{cwd:t,env:{...process.env,GIT_NOTE_REF:"semantic-release-next-version-empty",GIT_NOTES_REF:"",GIT_NOTES_DISPLAY_REF:""},stdout:process.stderr,stderr:process.stderr})}finally{if(y)try{await jr.rm(y,{recursive:!0,force:!0})}catch{}}if(!m){if(!l){let b=await id(t,h.tagFormat),v=await No(t,Ur(f||"preview"));return`${b}-preview-${v}`}throw new Error("semantic-release did not return a next version.")}let w=Ae.default.parse(m.nextRelease.version);if(!w)throw new Error(`Unable to parse semantic-release version: ${m.nextRelease.version}`);let C=`${w.major}.${w.minor}.${w.patch}`;if(l)return C;let a=await No(t,Ur(f||"preview"));return`${C}-preview-${a}`}var od=`
28
29
  Usage
29
- $ next-version-helper [--release] [--cwd <path>] [--main-branch <name>]
30
+ $ next-version-helper [--release] [--cwd <path>] [--default-branch <name>]
30
31
 
31
32
  Options
32
33
  --release Return the plain next release version (x.y.z)
33
34
  --cwd <path> Working directory (defaults to current)
34
- --main-branch Name of the main release branch (default: main)
35
+ --default-branch
36
+ Name of the default release branch (default: main)
37
+ --main-branch Deprecated alias for --default-branch
35
38
  --help, -h Show this help
36
39
  --version, -v Show package version
37
- `;async function sd(t=process.argv){let e=Array.from(t),r=import.meta,n;try{n=bi(rd,{importMeta:r,allowUnknownFlags:!1,autoHelp:!1,autoVersion:!1,argv:e.slice(2),flags:{release:{type:"boolean",default:!1},cwd:{type:"string"},mainBranch:{type:"string"},help:{type:"boolean",shortFlag:"h"},version:{type:"boolean",shortFlag:"v"}}})}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}if(n.flags.help)return console.log(n.help),0;if(n.flags.version){let c=process.env.npm_package_version||n.pkg?.version||"";return console.log(c),0}try{let c=await No({cwd:n.flags.cwd,release:!!n.flags.release,mainBranch:n.flags.mainBranch});return console.log(c),0}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}}var id=td(process.argv[1]??"").href===import.meta.url;id&&sd(process.argv).then(t=>{process.exitCode=t});export{sd as run};
40
+ `;async function ad(t=process.argv){let e=Array.from(t),r=import.meta,i;try{i=vi(od,{importMeta:r,allowUnknownFlags:!1,autoHelp:!1,autoVersion:!1,argv:e.slice(2),flags:{release:{type:"boolean",default:!1},cwd:{type:"string"},defaultBranch:{type:"string"},mainBranch:{type:"string"},help:{type:"boolean",shortFlag:"h"},version:{type:"boolean",shortFlag:"v"}}})}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}if(i.flags.help)return console.log(i.help),0;if(i.flags.version){let c=process.env.npm_package_version||i.pkg?.version||"";return console.log(c),0}try{let c=await To({cwd:i.flags.cwd,release:!!i.flags.release,defaultBranch:i.flags.defaultBranch??i.flags.mainBranch});return console.log(c),0}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}}var cd=nd(process.argv[1]??"").href===import.meta.url;cd&&ad(process.argv).then(t=>{process.exitCode=t});export{ad as run};
38
41
  //# sourceMappingURL=cli.js.map