@stencil/core 4.33.1 → 4.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v4.34.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var go=Object.create;var cn=Object.defineProperty;var yo=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty;var kr=r=>{throw TypeError(r)};var So=(r,e,t)=>e in r?cn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ge=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Pr=(r,e)=>{for(var t in e)cn(r,t,{get:e[t],enumerable:!0})},Ir=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of vo(e))!Eo.call(r,s)&&s!==t&&cn(r,s,{get:()=>e[s],enumerable:!(n=yo(e,s))||n.enumerable});return r};var be=(r,e,t)=>(t=r!=null?go(bo(r)):{},Ir(e||!r||!r.__esModule?cn(t,"default",{value:r,enumerable:!0}):t,r)),xo=r=>Ir(cn({},"__esModule",{value:!0}),r);var Kn=(r,e,t)=>So(r,typeof e!="symbol"?e+"":e,t),Yn=(r,e,t)=>e.has(r)||kr("Cannot "+t);var X=(r,e,t)=>(Yn(r,e,"read from private field"),t?t.call(r):e.get(r)),je=(r,e,t)=>e.has(r)?kr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Se=(r,e,t,n)=>(Yn(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),wt=(r,e,t)=>(Yn(r,e,"access private method"),t);var Br=ge((mu,un)=>{"use strict";var $o=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",To=typeof process<"u"&&process.platform==="win32",Mr=typeof process<"u"&&process.platform==="linux",Qn={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Fr=Object.assign({},Qn,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Hr=Object.assign({},Qn,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Mr?"\u25B8":"\u276F",pointerSmall:Mr?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});un.exports=To&&!$o?Fr:Hr;Reflect.defineProperty(un.exports,"common",{enumerable:!1,value:Qn});Reflect.defineProperty(un.exports,"windows",{enumerable:!1,value:Fr});Reflect.defineProperty(un.exports,"other",{enumerable:!1,value:Hr})});var Ur=ge((gu,Zn)=>{"use strict";var Co=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Lo=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Ro=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,jr=()=>{let r={enabled:Ro(),visible:!0,styles:{},keys:{}},e=i=>{let o=i.open=`\x1B[${i.codes[0]}m`,a=i.close=`\x1B[${i.codes[1]}m`,u=i.regex=new RegExp(`\\u001b\\[${i.codes[1]}m`,"g");return i.wrap=(c,p)=>{c.includes(a)&&(c=c.replace(u,a+o));let m=o+c+a;return p?m.replace(/\r*\n/g,`${a}$&${o}`):m},i},t=(i,o,a)=>typeof i=="function"?i(o):i.wrap(o,a),n=(i,o)=>{if(i===""||i==null)return"";if(r.enabled===!1)return i;if(r.visible===!1)return"";let a=""+i,u=a.includes(`
5
5
  `),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=p=>n(p,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Lo,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!Co(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=Br(),r.define=s,r};Zn.exports=jr();Zn.exports.create=jr});var ps=ge((Jy,fs)=>{fs.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)}([function(r,e){r.exports=require("path")},function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function p(m,S){try{var T=a[m](S),h=T.value}catch(b){c(b);return}if(T.done)u(h);else return s.default.resolve(h).then(function(b){p("next",b)},function(b){p("throw",b)})}return p("next")})}}},function(r,e){r.exports=require("util")},function(r,e){r.exports=require("fs")},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,p){super(c),this.code=p}}e.MessageError=n;class s extends n{constructor(c,p,m){super(c,p),this.process=m}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,p){super(c),this.responseCode=p}}e.ResponseError=a},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j,G){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,ln=we.type,Qe=we.onFresh||tt,xe=we.onDone||tt;if(le.has(re.toLowerCase())?G.verbose(`The case-insensitive file ${re} shouldn't be copied twice in one bulk copy`):le.add(re.toLowerCase()),ln==="symlink"){yield Ce((l||d()).default.dirname(re)),Qe(),Ie.symlink.push({dest:re,linkname:me}),xe();return}if(U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let $e=yield Ae(me),St;$e.isDirectory()&&(St=yield De(me));let Ge;try{Ge=yield Ae(re)}catch(Be){if(Be.code!=="ENOENT")throw Be}if(Ge){let Be=$e.isSymbolicLink()&&Ge.isSymbolicLink(),xt=$e.isDirectory()&&Ge.isDirectory(),dt=$e.isFile()&&Ge.isFile();if(dt&&he.has(re)){xe(),G.verbose(G.lang("verboseFileSkipArtifact",me));return}if(dt&&$e.size===Ge.size&&(0,(W||Z()).fileDatesEqual)($e.mtime,Ge.mtime)){xe(),G.verbose(G.lang("verboseFileSkip",me,re,$e.size,+$e.mtime));return}if(Be){let ke=yield ce(me);if(ke===(yield ce(re))){xe(),G.verbose(G.lang("verboseFileSkipSymlink",me,re,ke));return}}if(xt){let ke=yield De(re);Kt(St,"src files not initialised");for(var lt=ke,Ot=Array.isArray(lt),Ze=0,lt=Ot?lt:lt[Symbol.iterator]();;){var Qt;if(Ot){if(Ze>=lt.length)break;Qt=lt[Ze++]}else{if(Ze=lt.next(),Ze.done)break;Qt=Ze.value}let Dt=Qt;if(St.indexOf(Dt)<0){let $t=(l||d()).default.join(re,Dt);if(j.add($t),(yield Ae($t)).isDirectory())for(var ct=yield De($t),At=Array.isArray(ct),qe=0,ct=At?ct:ct[Symbol.iterator]();;){var Zt;if(At){if(qe>=ct.length)break;Zt=ct[qe++]}else{if(qe=ct.next(),qe.done)break;Zt=qe.value}let Vn=Zt;j.add((l||d()).default.join($t,Vn))}}}}}if(Ge&&Ge.isSymbolicLink()&&(yield(0,(W||Z()).unlink)(re),Ge=null),$e.isSymbolicLink()){Qe();let Be=yield ce(me);Ie.symlink.push({dest:re,linkname:Be}),xe()}else if($e.isDirectory()){Ge||(G.verbose(G.lang("verboseFileFolder",re)),yield Ce(re));let Be=re.split((l||d()).default.sep);for(;Be.length;)le.add(Be.join((l||d()).default.sep).toLowerCase()),Be.pop();Kt(St,"src files not initialised");let xt=St.length;xt||xe();for(var ut=St,Nt=Array.isArray(ut),_e=0,ut=Nt?ut:ut[Symbol.iterator]();;){var He;if(Nt){if(_e>=ut.length)break;He=ut[_e++]}else{if(_e=ut.next(),_e.done)break;He=_e.value}let dt=He;J.push({dest:(l||d()).default.join(re,dt),onFresh:Qe,onDone:function(ke){function Dt(){return ke.apply(this,arguments)}return Dt.toString=function(){return ke.toString()},Dt}(function(){--xt===0&&xe()}),src:(l||d()).default.join(me,dt)})}}else if($e.isFile())Qe(),Ie.file.push({src:me,dest:re,atime:$e.atime,mtime:$e.mtime,mode:$e.mode}),xe();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=J,ue=Array.isArray(oe),se=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(se>=oe.length)break;Ye=oe[se++]}else{if(se=oe.next(),se.done)break;Ye=se.value}let ae=Ye,we=ae.onDone;ae.onDone=function(){U.onProgress(ae.dest),we&&we()}}U.onStart(J.length);let Ie={file:[],symlink:[],link:[]};for(;J.length;){let ae=J.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var Me=he,Rt=Array.isArray(Me),ot=0,Me=Rt?Me:Me[Symbol.iterator]();;){var Ht;if(Rt){if(ot>=Me.length)break;Ht=Me[ot++]}else{if(ot=Me.next(),ot.done)break;Ht=ot.value}let ae=Ht;j.has(ae)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Fe=j,an=Array.isArray(Fe),at=0,Fe=an?Fe:Fe[Symbol.iterator]();;){var Bt;if(an){if(at>=Fe.length)break;Bt=Fe[at++]}else{if(at=Fe.next(),at.done)break;Bt=at.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Ie});return function(U,j,G,ne){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j,G){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,ln=we.onFresh||tt,Qe=we.onDone||tt;if(le.has(re.toLowerCase())){Qe();return}if(le.add(re.toLowerCase()),U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let xe=yield Ae(me),$e;xe.isDirectory()&&($e=yield De(me));let St=yield it(re);if(St){let He=yield Ae(re),Be=xe.isSymbolicLink()&&He.isSymbolicLink(),xt=xe.isDirectory()&&He.isDirectory(),dt=xe.isFile()&&He.isFile();if(xe.mode!==He.mode)try{yield Re(re,xe.mode)}catch(ke){G.verbose(ke)}if(dt&&he.has(re)){Qe(),G.verbose(G.lang("verboseFileSkipArtifact",me));return}if(dt&&xe.ino!==null&&xe.ino===He.ino){Qe(),G.verbose(G.lang("verboseFileSkip",me,re,xe.ino));return}if(Be){let ke=yield ce(me);if(ke===(yield ce(re))){Qe(),G.verbose(G.lang("verboseFileSkipSymlink",me,re,ke));return}}if(xt){let ke=yield De(re);Kt($e,"src files not initialised");for(var Ze=ke,Ge=Array.isArray(Ze),Ot=0,Ze=Ge?Ze:Ze[Symbol.iterator]();;){var lt;if(Ge){if(Ot>=Ze.length)break;lt=Ze[Ot++]}else{if(Ot=Ze.next(),Ot.done)break;lt=Ot.value}let Dt=lt;if($e.indexOf(Dt)<0){let $t=(l||d()).default.join(re,Dt);if(j.add($t),(yield Ae($t)).isDirectory())for(var qe=yield De($t),Qt=Array.isArray(qe),At=0,qe=Qt?qe:qe[Symbol.iterator]();;){var ct;if(Qt){if(At>=qe.length)break;ct=qe[At++]}else{if(At=qe.next(),At.done)break;ct=At.value}let Vn=ct;j.add((l||d()).default.join($t,Vn))}}}}}if(xe.isSymbolicLink()){ln();let He=yield ce(me);Ie.symlink.push({dest:re,linkname:He}),Qe()}else if(xe.isDirectory()){G.verbose(G.lang("verboseFileFolder",re)),yield Ce(re);let He=re.split((l||d()).default.sep);for(;He.length;)le.add(He.join((l||d()).default.sep).toLowerCase()),He.pop();Kt($e,"src files not initialised");let Be=$e.length;Be||Qe();for(var _e=$e,Zt=Array.isArray(_e),Nt=0,_e=Zt?_e:_e[Symbol.iterator]();;){var ut;if(Zt){if(Nt>=_e.length)break;ut=_e[Nt++]}else{if(Nt=_e.next(),Nt.done)break;ut=Nt.value}let xt=ut;J.push({onFresh:ln,src:(l||d()).default.join(me,xt),dest:(l||d()).default.join(re,xt),onDone:function(dt){function ke(){return dt.apply(this,arguments)}return ke.toString=function(){return dt.toString()},ke}(function(){--Be===0&&Qe()})})}}else if(xe.isFile())ln(),Ie.link.push({src:me,dest:re,removeDest:St}),Qe();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=J,ue=Array.isArray(oe),se=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(se>=oe.length)break;Ye=oe[se++]}else{if(se=oe.next(),se.done)break;Ye=se.value}let ae=Ye,we=ae.onDone||tt;ae.onDone=function(){U.onProgress(ae.dest),we()}}U.onStart(J.length);let Ie={file:[],symlink:[],link:[]};for(;J.length;){let ae=J.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var Me=he,Rt=Array.isArray(Me),ot=0,Me=Rt?Me:Me[Symbol.iterator]();;){var Ht;if(Rt){if(ot>=Me.length)break;Ht=Me[ot++]}else{if(ot=Me.next(),ot.done)break;Ht=ot.value}let ae=Ht;j.has(ae)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Fe=j,an=Array.isArray(Fe),at=0,Fe=an?Fe:Fe[Symbol.iterator]();;){var Bt;if(an){if(at>=Fe.length)break;Bt=Fe[at++]}else{if(at=Fe.next(),at.done)break;Bt=at.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Ie});return function(U,j,G,ne){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j){let G={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,ignoreBasenames:j&&j.ignoreBasenames||[],artifactFiles:j&&j.artifactFiles||[]},ne=yield i(J,G,G.possibleExtraneous,U);G.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.file,le=new Map;yield(E||R()).queue(he,(()=>{var se=(0,(n||s()).default)(function*(oe){let Ye;for(;Ye=le.get(oe.dest);)yield Ye;U.verbose(U.lang("verboseFileCopy",oe.src,oe.dest));let Ie=(0,(W||Z()).copyFile)(oe,function(){return le.delete(oe.dest)});return le.set(oe.dest,Ie),G.onProgress(oe.dest),Ie});return function(oe){return se.apply(this,arguments)}})(),Ft);let ue=ne.symlink;yield(E||R()).queue(ue,function(se){let oe=(l||d()).default.resolve((l||d()).default.dirname(se.dest),se.linkname);return U.verbose(U.lang("verboseFileSymlink",se.dest,oe)),T(oe,se.dest)})});return function(U,j,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j){let G={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,artifactFiles:j&&j.artifactFiles||[],ignoreBasenames:[]},ne=yield o(J,G,G.possibleExtraneous,U);G.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.link;yield(E||R()).queue(he,(()=>{var ue=(0,(n||s()).default)(function*(se){U.verbose(U.lang("verboseFileLink",se.src,se.dest)),se.removeDest&&(yield(0,(W||Z()).unlink)(se.dest)),yield Tn(se.src,se.dest)});return function(se){return ue.apply(this,arguments)}})(),Ft);let le=ne.symlink;yield(E||R()).queue(le,function(ue){let se=(l||d()).default.resolve((l||d()).default.dirname(ue.dest),ue.linkname);return U.verbose(U.lang("verboseFileSymlink",ue.dest,se)),T(se,ue.dest)})});return function(U,j,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(J){for(var G=J,U=Array.isArray(G),j=0,G=U?G:G[Symbol.iterator]();;){var ne;if(U){if(j>=G.length)break;ne=G[j++]}else{if(j=G.next(),j.done)break;ne=j.value}let he=ne;if(yield it(he))return Jn(he)}return null});return function(U){return Y.apply(this,arguments)}})(),p=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(J){return(yield m(J)).object});return function(U){return Y.apply(this,arguments)}})(),m=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=yield Jn(J);try{return{object:(0,(M||B()).default)(JSON.parse(on(U))),content:U}}catch(j){throw j.message=`${J}: ${j.message}`,j}});return function(U){return Y.apply(this,arguments)}})(),S=e.find=(()=>{var Y=(0,(n||s()).default)(function*(J,U){let j=U.split((l||d()).default.sep);for(;j.length;){let G=j.concat(J).join((l||d()).default.sep);if(yield it(G))return G;j.pop()}return!1});return function(U,j){return Y.apply(this,arguments)}})(),T=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(J,U){try{if((yield Ae(U)).isSymbolicLink()&&(yield Pe(U))===J)return}catch(j){if(j.code!=="ENOENT")throw j}if(yield(0,(W||Z()).unlink)(U),process.platform==="win32")yield Ln(J,U,"junction");else{let j;try{j=(l||d()).default.relative(($||C()).default.realpathSync((l||d()).default.dirname(U)),($||C()).default.realpathSync(J))}catch(G){if(G.code!=="ENOENT")throw G;j=(l||d()).default.relative((l||d()).default.dirname(U),J)}yield Ln(j||".",U)}});return function(U,j){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j=new Set){let G=[],ne=yield De(J);j.size&&(ne=ne.filter(function(oe){return!j.has(oe)}));for(var ue=ne,he=Array.isArray(ue),le=0,ue=he?ue:ue[Symbol.iterator]();;){var se;if(he){if(le>=ue.length)break;se=ue[le++]}else{if(le=ue.next(),le.done)break;se=le.value}let oe=se,Ye=U?(l||d()).default.join(U,oe):oe,Ie=(l||d()).default.join(J,oe),Rt=yield Ae(Ie);G.push({relative:Ye,basename:oe,absolute:Ie,mtime:+Rt.mtime}),Rt.isDirectory()&&(G=G.concat(yield h(Ie,Ye,j)))}return G});return function(U,j){return Y.apply(this,arguments)}})(),b=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=yield Ae(J),j=U.size,G=U.blksize;return Math.ceil(j/G)*G});return function(U){return Y.apply(this,arguments)}})(),x=(()=>{var Y=(0,(n||s()).default)(function*(J){if(!(yield it(J)))return;let U=yield Q(J);for(let j=0;j<U.length;++j){if(U[j]===ho)return`\r
@@ -32,22 +32,22 @@ ${O}`)}function b(x,N,O){let I=h(x,{indent:"",topLevel:!0});if(N)return I;let w=
32
32
  `+O),T.push(N+"m+"+e.humanize(this.diff)+"\x1B[0m")}else T[0]=u()+h+" "+T[0]}function u(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(s.format.apply(s,arguments)+`
33
33
  `)}function p(T){T==null?delete process.env.DEBUG:process.env.DEBUG=T}function m(){return process.env.DEBUG}function S(T){T.inspectOpts={};for(var h=Object.keys(e.inspectOpts),b=0;b<h.length;b++)T.inspectOpts[h[b]]=e.inspectOpts[h[b]]}e.enable(m())},,,,function(r,e,t){var n=t(0),s=process.platform==="win32",i=t(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var S;if(o){var T=new Error;S=h}else S=b;return S;function h(x){x&&(T.message=x.message,x=T,b(x))}function b(x){if(x){if(process.throwDeprecation)throw x;if(!process.noDeprecation){var N="fs: missing callback "+(x.stack||x.message);process.traceDeprecation?console.trace(N):console.error(N)}}}}function u(S){return typeof S=="function"?S:a()}var c=n.normalize;if(s)var p=/(.*?)(?:[\/\\]+|$)/g;else var p=/(.*?)(?:[\/]+|$)/g;if(s)var m=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var m=/^[\/]*/;e.realpathSync=function(T,h){if(T=n.resolve(T),h&&Object.prototype.hasOwnProperty.call(h,T))return h[T];var b=T,x={},N={},O,I,w,g;$();function $(){var l=m.exec(T);O=l[0].length,I=l[0],w=l[0],g="",s&&!N[w]&&(i.lstatSync(w),N[w]=!0)}for(;O<T.length;){p.lastIndex=O;var C=p.exec(T);if(g=I,I+=C[0],w=g+C[1],O=p.lastIndex,!(N[w]||h&&h[w]===w)){var A;if(h&&Object.prototype.hasOwnProperty.call(h,w))A=h[w];else{var P=i.lstatSync(w);if(!P.isSymbolicLink()){N[w]=!0,h&&(h[w]=w);continue}var L=null;if(!s){var y=P.dev.toString(32)+":"+P.ino.toString(32);x.hasOwnProperty(y)&&(L=x[y])}L===null&&(i.statSync(w),L=i.readlinkSync(w)),A=n.resolve(g,L),h&&(h[w]=A),s||(x[y]=L)}T=n.resolve(A,T.slice(O)),$()}}return h&&(h[b]=T),T},e.realpath=function(T,h,b){if(typeof b!="function"&&(b=u(h),h=null),T=n.resolve(T),h&&Object.prototype.hasOwnProperty.call(h,T))return process.nextTick(b.bind(null,null,h[T]));var x=T,N={},O={},I,w,g,$;C();function C(){var l=m.exec(T);I=l[0].length,w=l[0],g=l[0],$="",s&&!O[g]?i.lstat(g,function(d){if(d)return b(d);O[g]=!0,A()}):process.nextTick(A)}function A(){if(I>=T.length)return h&&(h[x]=T),b(null,T);p.lastIndex=I;var l=p.exec(T);return $=w,w+=l[0],g=$+l[1],I=p.lastIndex,O[g]||h&&h[g]===g?process.nextTick(A):h&&Object.prototype.hasOwnProperty.call(h,g)?y(h[g]):i.lstat(g,P)}function P(l,d){if(l)return b(l);if(!d.isSymbolicLink())return O[g]=!0,h&&(h[g]=g),process.nextTick(A);if(!s){var f=d.dev.toString(32)+":"+d.ino.toString(32);if(N.hasOwnProperty(f))return L(null,N[f],g)}i.stat(g,function(v){if(v)return b(v);i.readlink(g,function(E,R){s||(N[f]=R),L(E,R)})})}function L(l,d,f){if(l)return b(l);var v=n.resolve($,d);h&&(h[f]=v),y(v)}function y(l){T=n.resolve(l,T.slice(I)),C()}}},function(r,e,t){r.exports=I,I.GlobSync=w;var n=t(3),s=t(114),i=t(60),o=i.Minimatch,a=t(75).Glob,u=t(2),c=t(0),p=t(22),m=t(76),S=t(115),T=S.alphasort,h=S.alphasorti,b=S.setopts,x=S.ownProp,N=S.childrenIgnored,O=S.isIgnored;function I(g,$){if(typeof $=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
34
34
  See: https://github.com/isaacs/node-glob/issues/167`);return new w(g,$).found}function w(g,$){if(!g)throw new Error("must provide pattern");if(typeof $=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
35
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof w))return new w(g,$);if(b(this,g,$),this.noprocess)return this;var C=this.minimatch.set.length;this.matches=new Array(C);for(var A=0;A<C;A++)this._process(this.minimatch.set[A],A,!1);this._finish()}w.prototype._finish=function(){if(p(this instanceof w),this.realpath){var g=this;this.matches.forEach(function($,C){var A=g.matches[C]=Object.create(null);for(var P in $)try{P=g._makeAbs(P);var L=s.realpathSync(P,g.realpathCache);A[L]=!0}catch(y){if(y.syscall==="stat")A[g._makeAbs(P)]=!0;else throw y}})}S.finish(this)},w.prototype._process=function(g,$,C){p(this instanceof w);for(var A=0;typeof g[A]=="string";)A++;var P;switch(A){case g.length:this._processSimple(g.join("/"),$);return;case 0:P=null;break;default:P=g.slice(0,A).join("/");break}var L=g.slice(A),y;P===null?y=".":((m(P)||m(g.join("/")))&&(!P||!m(P))&&(P="/"+P),y=P);var l=this._makeAbs(y);if(!N(this,y)){var d=L[0]===i.GLOBSTAR;d?this._processGlobStar(P,y,l,L,$,C):this._processReaddir(P,y,l,L,$,C)}},w.prototype._processReaddir=function(g,$,C,A,P,L){var y=this._readdir(C,L);if(y){for(var l=A[0],d=!!this.minimatch.negate,f=l._glob,v=this.dot||f.charAt(0)===".",E=[],R=0;R<y.length;R++){var D=y[R];if(D.charAt(0)!=="."||v){var k;d&&!g?k=!D.match(l):k=D.match(l),k&&E.push(D)}}var M=E.length;if(M!==0){if(A.length===1&&!this.mark&&!this.stat){this.matches[P]||(this.matches[P]=Object.create(null));for(var R=0;R<M;R++){var D=E[R];g&&(g.slice(-1)!=="/"?D=g+"/"+D:D=g+D),D.charAt(0)==="/"&&!this.nomount&&(D=c.join(this.root,D)),this._emitMatch(P,D)}return}A.shift();for(var R=0;R<M;R++){var D=E[R],B;g?B=[g,D]:B=[D],this._process(B.concat(A),P,L)}}}},w.prototype._emitMatch=function(g,$){if(!O(this,$)){var C=this._makeAbs($);if(this.mark&&($=this._mark($)),this.absolute&&($=C),!this.matches[g][$]){if(this.nodir){var A=this.cache[C];if(A==="DIR"||Array.isArray(A))return}this.matches[g][$]=!0,this.stat&&this._stat($)}}},w.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var $,C,A;try{C=n.lstatSync(g)}catch(L){if(L.code==="ENOENT")return null}var P=C&&C.isSymbolicLink();return this.symlinks[g]=P,!P&&C&&!C.isDirectory()?this.cache[g]="FILE":$=this._readdir(g,!1),$},w.prototype._readdir=function(g,$){var C;if($&&!x(this.symlinks,g))return this._readdirInGlobStar(g);if(x(this.cache,g)){var A=this.cache[g];if(!A||A==="FILE")return null;if(Array.isArray(A))return A}try{return this._readdirEntries(g,n.readdirSync(g))}catch(P){return this._readdirError(g,P),null}},w.prototype._readdirEntries=function(g,$){if(!this.mark&&!this.stat)for(var C=0;C<$.length;C++){var A=$[C];g==="/"?A=g+A:A=g+"/"+A,this.cache[A]=!0}return this.cache[g]=$,$},w.prototype._readdirError=function(g,$){switch($.code){case"ENOTSUP":case"ENOTDIR":var C=this._makeAbs(g);if(this.cache[C]="FILE",C===this.cwdAbs){var A=new Error($.code+" invalid cwd "+this.cwd);throw A.path=this.cwd,A.code=$.code,A}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw $;this.silent||console.error("glob error",$);break}},w.prototype._processGlobStar=function(g,$,C,A,P,L){var y=this._readdir(C,L);if(y){var l=A.slice(1),d=g?[g]:[],f=d.concat(l);this._process(f,P,!1);var v=y.length,E=this.symlinks[C];if(!(E&&L))for(var R=0;R<v;R++){var D=y[R];if(!(D.charAt(0)==="."&&!this.dot)){var k=d.concat(y[R],l);this._process(k,P,!0);var M=d.concat(y[R],A);this._process(M,P,!0)}}}},w.prototype._processSimple=function(g,$){var C=this._stat(g);if(this.matches[$]||(this.matches[$]=Object.create(null)),!!C){if(g&&m(g)&&!this.nomount){var A=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=c.join(this.root,g):(g=c.resolve(this.root,g),A&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch($,g)}},w.prototype._stat=function(g){var $=this._makeAbs(g),C=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&x(this.cache,$)){var y=this.cache[$];if(Array.isArray(y)&&(y="DIR"),!C||y==="DIR")return y;if(C&&y==="FILE")return!1}var A,P=this.statCache[$];if(!P){var L;try{L=n.lstatSync($)}catch(l){if(l&&(l.code==="ENOENT"||l.code==="ENOTDIR"))return this.statCache[$]=!1,!1}if(L&&L.isSymbolicLink())try{P=n.statSync($)}catch{P=L}else P=L}this.statCache[$]=P;var y=!0;return P&&(y=P.isDirectory()?"DIR":"FILE"),this.cache[$]=this.cache[$]||y,C&&y==="FILE"?!1:y},w.prototype._mark=function(g){return S.mark(this,g)},w.prototype._makeAbs=function(g){return S.makeAbs(this,g)}},,,function(r,e,t){"use strict";r.exports=function(n,s){s=s||process.argv;var i=s.indexOf("--"),o=/^--/.test(n)?"":"--",a=s.indexOf(o+n);return a!==-1&&(i!==-1?a<i:!0)}},,function(r,e,t){var n=t(123),s=Object.create(null),i=t(61);r.exports=n(o);function o(c,p){return s[c]?(s[c].push(p),null):(s[c]=[p],a(c))}function a(c){return i(function p(){var m=s[c],S=m.length,T=u(arguments);try{for(var h=0;h<S;h++)m[h].apply(null,T)}finally{m.length>S?(m.splice(0,S),process.nextTick(function(){p.apply(null,T)})):delete s[c]}})}function u(c){for(var p=c.length,m=[],S=0;S<p;S++)m[S]=c[S];return m}},function(r,e){typeof Object.create=="function"?r.exports=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,s){n.super_=s;var i=function(){};i.prototype=s.prototype,n.prototype=new i,n.prototype.constructor=n}},,,function(r,e,t){r.exports=typeof t<"u"},,function(r,e){var t=1e3,n=t*60,s=n*60,i=s*24,o=i*365.25;r.exports=function(m,S){S=S||{};var T=typeof m;if(T==="string"&&m.length>0)return a(m);if(T==="number"&&isNaN(m)===!1)return S.long?c(m):u(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))};function a(m){if(m=String(m),!(m.length>100)){var S=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(S){var T=parseFloat(S[1]),h=(S[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return T*o;case"days":case"day":case"d":return T*i;case"hours":case"hour":case"hrs":case"hr":case"h":return T*s;case"minutes":case"minute":case"mins":case"min":case"m":return T*n;case"seconds":case"second":case"secs":case"sec":case"s":return T*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return T;default:return}}}}function u(m){return m>=i?Math.round(m/i)+"d":m>=s?Math.round(m/s)+"h":m>=n?Math.round(m/n)+"m":m>=t?Math.round(m/t)+"s":m+"ms"}function c(m){return p(m,i,"day")||p(m,s,"hour")||p(m,n,"minute")||p(m,t,"second")||m+" ms"}function p(m,S,T){if(!(m<S))return m<S*1.5?Math.floor(m/S)+" "+T:Math.ceil(m/S)+" "+T+"s"}},,,,function(r,e,t){r.exports=S,S.sync=O;var n=t(22),s=t(0),i=t(3),o=t(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,p=process.platform==="win32";function m(g){var $=["unlink","chmod","stat","lstat","rmdir","readdir"];$.forEach(function(C){g[C]=g[C]||i[C],C=C+"Sync",g[C]=g[C]||i[C]}),g.maxBusyTries=g.maxBusyTries||3,g.emfileWait=g.emfileWait||1e3,g.glob===!1&&(g.disableGlob=!0),g.disableGlob=g.disableGlob||!1,g.glob=g.glob||u}function S(g,$,C){typeof $=="function"&&(C=$,$={}),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n.equal(typeof C,"function","rimraf: callback function required"),n($,"rimraf: invalid options argument provided"),n.equal(typeof $,"object","rimraf: options should be object"),m($);var A=0,P=null,L=0;if($.disableGlob||!o.hasMagic(g))return l(null,[g]);$.lstat(g,function(d,f){if(!d)return l(null,[g]);o(g,$.glob,l)});function y(d){P=P||d,--L===0&&C(P)}function l(d,f){if(d)return C(d);if(L=f.length,L===0)return C();f.forEach(function(v){T(v,$,function E(R){if(R){if((R.code==="EBUSY"||R.code==="ENOTEMPTY"||R.code==="EPERM")&&A<$.maxBusyTries){A++;var D=A*100;return setTimeout(function(){T(v,$,E)},D)}if(R.code==="EMFILE"&&c<$.emfileWait)return setTimeout(function(){T(v,$,E)},c++);R.code==="ENOENT"&&(R=null)}c=0,y(R)})})}}function T(g,$,C){n(g),n($),n(typeof C=="function"),$.lstat(g,function(A,P){if(A&&A.code==="ENOENT")return C(null);if(A&&A.code==="EPERM"&&p&&h(g,$,A,C),P&&P.isDirectory())return x(g,$,A,C);$.unlink(g,function(L){if(L){if(L.code==="ENOENT")return C(null);if(L.code==="EPERM")return p?h(g,$,L,C):x(g,$,L,C);if(L.code==="EISDIR")return x(g,$,L,C)}return C(L)})})}function h(g,$,C,A){n(g),n($),n(typeof A=="function"),C&&n(C instanceof Error),$.chmod(g,a,function(P){P?A(P.code==="ENOENT"?null:C):$.stat(g,function(L,y){L?A(L.code==="ENOENT"?null:C):y.isDirectory()?x(g,$,C,A):$.unlink(g,A)})})}function b(g,$,C){n(g),n($),C&&n(C instanceof Error);try{$.chmodSync(g,a)}catch(P){if(P.code==="ENOENT")return;throw C}try{var A=$.statSync(g)}catch(P){if(P.code==="ENOENT")return;throw C}A.isDirectory()?I(g,$,C):$.unlinkSync(g)}function x(g,$,C,A){n(g),n($),C&&n(C instanceof Error),n(typeof A=="function"),$.rmdir(g,function(P){P&&(P.code==="ENOTEMPTY"||P.code==="EEXIST"||P.code==="EPERM")?N(g,$,A):P&&P.code==="ENOTDIR"?A(C):A(P)})}function N(g,$,C){n(g),n($),n(typeof C=="function"),$.readdir(g,function(A,P){if(A)return C(A);var L=P.length;if(L===0)return $.rmdir(g,C);var y;P.forEach(function(l){S(s.join(g,l),$,function(d){if(!y){if(d)return C(y=d);--L===0&&$.rmdir(g,C)}})})})}function O(g,$){$=$||{},m($),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n($,"rimraf: missing options"),n.equal(typeof $,"object","rimraf: options should be object");var C;if($.disableGlob||!o.hasMagic(g))C=[g];else try{$.lstatSync(g),C=[g]}catch{C=o.sync(g,$.glob)}if(C.length)for(var A=0;A<C.length;A++){var g=C[A];try{var P=$.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&p&&b(g,$,y)}try{P&&P.isDirectory()?I(g,$,null):$.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return p?b(g,$,y):I(g,$,y);if(y.code!=="EISDIR")throw y;I(g,$,y)}}}function I(g,$,C){n(g),n($),C&&n(C instanceof Error);try{$.rmdirSync(g)}catch(A){if(A.code==="ENOENT")return;if(A.code==="ENOTDIR")throw C;(A.code==="ENOTEMPTY"||A.code==="EEXIST"||A.code==="EPERM")&&w(g,$)}}function w(g,$){n(g),n($),$.readdirSync(g).forEach(function(y){O(s.join(g,y),$)});var C=p?100:1,A=0;do{var P=!0;try{var L=$.rmdirSync(g,$);return P=!1,L}finally{if(++A<C&&P)continue}}while(!0)}},,,,,,function(r,e,t){"use strict";var n=t(221),s=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},i=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();i===0&&"FORCE_COLOR"in process.env&&(i=1),r.exports=process&&s(i)}])});var ms=ge((Vy,hs)=>{"use strict";hs.exports=function(e,t){t||(t=[process.stdout,process.stderr]);var n=0;function s(){n===t.length&&process.exit(e)}t.forEach(function(i){i.bufferSize===0?n++:i.write("","utf-8",function(){n++,s()}),i.write=function(){}}),s(),process.on("exit",function(){process.exit(e)})}});var Ss=ge((Yy,Es)=>{"use strict";Es.exports=vs;function vs(r,e,t){r instanceof RegExp&&(r=ys(r,t)),e instanceof RegExp&&(e=ys(e,t));var n=bs(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function ys(r,e){var t=e.match(r);return t?t[0]:null}vs.range=bs;function bs(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),p=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;p>=0&&!a;)p==u?(n.push(p),u=t.indexOf(r,p+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,p+1)),p=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var As=ge((Qy,Os)=>{var xs=Ss();Os.exports=Wa;var $s="\0SLASH"+Math.random()+"\0",Ts="\0OPEN"+Math.random()+"\0",fr="\0CLOSE"+Math.random()+"\0",Cs="\0COMMA"+Math.random()+"\0",Ls="\0PERIOD"+Math.random()+"\0";function dr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ja(r){return r.split("\\\\").join($s).split("\\{").join(Ts).split("\\}").join(fr).split("\\,").join(Cs).split("\\.").join(Ls)}function Ua(r){return r.split($s).join("\\").split(Ts).join("{").split(fr).join("}").split(Cs).join(",").split(Ls).join(".")}function Rs(r){if(!r)return[""];var e=[],t=xs("{","}",r);if(!t)return r.split(",");var n=t.pre,s=t.body,i=t.post,o=n.split(",");o[o.length-1]+="{"+s+"}";var a=Rs(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Wa(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),yn(ja(r),!0).map(Ua)):[]}function Xa(r){return"{"+r+"}"}function za(r){return/^-?0\d/.test(r)}function Ga(r,e){return r<=e}function Ja(r,e){return r>=e}function yn(r,e){var t=[],n=xs("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?yn(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<i.length;o++){var a=s+"{"+n.body+"}"+i[o];t.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=u||c,m=n.body.indexOf(",")>=0;if(!p&&!m)return n.post.match(/,.*\}/)?(r=n.pre+"{"+n.body+fr+n.post,yn(r)):[r];var S;if(p)S=n.body.split(/\.\./);else if(S=Rs(n.body),S.length===1&&(S=yn(S[0],!1).map(Xa),S.length===1))return i.map(function(L){return n.pre+S[0]+L});var T;if(p){var h=dr(S[0]),b=dr(S[1]),x=Math.max(S[0].length,S[1].length),N=S.length==3?Math.abs(dr(S[2])):1,O=Ga,I=b<h;I&&(N*=-1,O=Ja);var w=S.some(za);T=[];for(var g=h;O(g,b);g+=N){var $;if(c)$=String.fromCharCode(g),$==="\\"&&($="");else if($=String(g),w){var C=x-$.length;if(C>0){var A=new Array(C+1).join("0");g<0?$="-"+A+$.slice(1):$=A+$}}T.push($)}}else{T=[];for(var P=0;P<S.length;P++)T.push.apply(T,yn(S[P],!1))}for(var P=0;P<T.length;P++)for(var o=0;o<i.length;o++){var a=s+T[P]+i[o];(!e||p||a)&&t.push(a)}}return t}});var Sn=ge((Hv,ti)=>{var Xl=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ti.exports=Xl});var Pn=ge((Bv,ni)=>{var zl="2.0.0",Gl=Number.MAX_SAFE_INTEGER||9007199254740991,Jl=16,Vl=250,Kl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ni.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Jl,MAX_SAFE_BUILD_LENGTH:Vl,MAX_SAFE_INTEGER:Gl,RELEASE_TYPES:Kl,SEMVER_SPEC_VERSION:zl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var In=ge((bt,ri)=>{var{MAX_SAFE_COMPONENT_LENGTH:yr,MAX_SAFE_BUILD_LENGTH:Yl,MAX_LENGTH:Ql}=Pn(),Zl=Sn();bt=ri.exports={};var ql=bt.re=[],_l=bt.safeRe=[],V=bt.src=[],ec=bt.safeSrc=[],K=bt.t={},tc=0,vr="[a-zA-Z0-9-]",nc=[["\\s",1],["\\d",Ql],[vr,Yl]],rc=r=>{for(let[e,t]of nc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},te=(r,e,t)=>{let n=rc(e),s=tc++;Zl(r,s,e),K[r]=s,V[s]=e,ec[s]=n,ql[s]=new RegExp(e,t?"g":void 0),_l[s]=new RegExp(n,t?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${vr}*`);te("MAINVERSION",`(${V[K.NUMERICIDENTIFIER]})\\.(${V[K.NUMERICIDENTIFIER]})\\.(${V[K.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${V[K.NUMERICIDENTIFIERLOOSE]})\\.(${V[K.NUMERICIDENTIFIERLOOSE]})\\.(${V[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${V[K.NUMERICIDENTIFIER]}|${V[K.NONNUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${V[K.NUMERICIDENTIFIERLOOSE]}|${V[K.NONNUMERICIDENTIFIER]})`);te("PRERELEASE",`(?:-(${V[K.PRERELEASEIDENTIFIER]}(?:\\.${V[K.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${V[K.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[K.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${vr}+`);te("BUILD",`(?:\\+(${V[K.BUILDIDENTIFIER]}(?:\\.${V[K.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${V[K.MAINVERSION]}${V[K.PRERELEASE]}?${V[K.BUILD]}?`);te("FULL",`^${V[K.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${V[K.MAINVERSIONLOOSE]}${V[K.PRERELEASELOOSE]}?${V[K.BUILD]}?`);te("LOOSE",`^${V[K.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${V[K.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${V[K.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${V[K.XRANGEIDENTIFIER]})(?:\\.(${V[K.XRANGEIDENTIFIER]})(?:\\.(${V[K.XRANGEIDENTIFIER]})(?:${V[K.PRERELEASE]})?${V[K.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${V[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[K.XRANGEIDENTIFIERLOOSE]})(?:${V[K.PRERELEASELOOSE]})?${V[K.BUILD]}?)?)?`);te("XRANGE",`^${V[K.GTLT]}\\s*${V[K.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${V[K.GTLT]}\\s*${V[K.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${yr}})(?:\\.(\\d{1,${yr}}))?(?:\\.(\\d{1,${yr}}))?`);te("COERCE",`${V[K.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",V[K.COERCEPLAIN]+`(?:${V[K.PRERELEASE]})?(?:${V[K.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",V[K.COERCE],!0);te("COERCERTLFULL",V[K.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${V[K.LONETILDE]}\\s+`,!0);bt.tildeTrimReplace="$1~";te("TILDE",`^${V[K.LONETILDE]}${V[K.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${V[K.LONETILDE]}${V[K.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${V[K.LONECARET]}\\s+`,!0);bt.caretTrimReplace="$1^";te("CARET",`^${V[K.LONECARET]}${V[K.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${V[K.LONECARET]}${V[K.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${V[K.GTLT]}\\s*(${V[K.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${V[K.GTLT]}\\s*(${V[K.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${V[K.GTLT]}\\s*(${V[K.LOOSEPLAIN]}|${V[K.XRANGEPLAIN]})`,!0);bt.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${V[K.XRANGEPLAIN]})\\s+-\\s+(${V[K.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${V[K.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[K.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Mn=ge((jv,si)=>{var sc=Object.freeze({loose:!0}),ic=Object.freeze({}),oc=r=>r?typeof r!="object"?sc:r:ic;si.exports=oc});var li=ge((Uv,ai)=>{var ii=/^[0-9]+$/,oi=(r,e)=>{let t=ii.test(r),n=ii.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},ac=(r,e)=>oi(e,r);ai.exports={compareIdentifiers:oi,rcompareIdentifiers:ac}});var xn=ge((Wv,fi)=>{var Fn=Sn(),{MAX_LENGTH:ci,MAX_SAFE_INTEGER:Hn}=Pn(),{safeRe:ui,safeSrc:di,t:Bn}=In(),lc=Mn(),{compareIdentifiers:sn}=li(),br=class r{constructor(e,t){if(t=lc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.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>ci)throw new TypeError(`version is longer than ${ci} characters`);Fn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?ui[Bn.LOOSE]:ui[Bn.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>Hn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Hn)return i}return s}):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(Fn("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),sn(this.major,e.major)||sn(this.minor,e.minor)||sn(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(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 t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Fn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return sn(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Fn("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return sn(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=new RegExp(`^${this.options.loose?di[Bn.PRERELEASELOOSE]:di[Bn.PRERELEASE]}$`),i=`-${t}`.match(s);if(!i||i[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),sn(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fi.exports=br});var Vt=ge((Xv,hi)=>{var pi=xn(),cc=(r,e,t)=>new pi(r,t).compare(new pi(e,t));hi.exports=cc});var Er=ge((zv,mi)=>{var uc=Vt(),dc=(r,e,t)=>uc(r,e,t)<=0;mi.exports=dc});var yi=ge((Gv,gi)=>{var fc=xn(),pc=(r,e)=>new fc(r,e).major;gi.exports=pc});var bi=ge((Jv,vi)=>{var Sr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};vi.exports=Sr});var Si=ge((Vv,Ei)=>{var hc=Vt(),mc=(r,e,t)=>hc(r,e,t)===0;Ei.exports=mc});var $i=ge((Kv,xi)=>{var gc=Vt(),yc=(r,e,t)=>gc(r,e,t)!==0;xi.exports=yc});var Ci=ge((Yv,Ti)=>{var vc=Vt(),bc=(r,e,t)=>vc(r,e,t)>0;Ti.exports=bc});var Ri=ge((Qv,Li)=>{var Ec=Vt(),Sc=(r,e,t)=>Ec(r,e,t)>=0;Li.exports=Sc});var xr=ge((Zv,Oi)=>{var xc=Vt(),$c=(r,e,t)=>xc(r,e,t)<0;Oi.exports=$c});var Ni=ge((qv,Ai)=>{var Tc=Si(),Cc=$i(),Lc=Ci(),Rc=Ri(),Oc=xr(),Ac=Er(),Nc=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Tc(r,t,n);case"!=":return Cc(r,t,n);case">":return Lc(r,t,n);case">=":return Rc(r,t,n);case"<":return Oc(r,t,n);case"<=":return Ac(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Ai.exports=Nc});var Fi=ge((_v,Mi)=>{var $n=Symbol("SemVer ANY"),Cr=class r{static get ANY(){return $n}constructor(e,t){if(t=Di(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Tr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===$n?this.value="":this.value=this.operator+this.semver.version,Tr("comp",this)}parse(e){let t=this.options.loose?wi[ki.COMPARATORLOOSE]:wi[ki.COMPARATOR],n=e.match(t);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 Pi(n[2],this.options.loose):this.semver=$n}toString(){return this.value}test(e){if(Tr("Comparator.test",e,this.options.loose),this.semver===$n||e===$n)return!0;if(typeof e=="string")try{e=new Pi(e,this.options)}catch{return!1}return $r(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ii(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new Ii(this.value,t).test(e.semver):(t=Di(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.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("=")||$r(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||$r(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Mi.exports=Cr;var Di=Mn(),{safeRe:wi,t:ki}=In(),$r=Ni(),Tr=Sn(),Pi=xn(),Ii=Lr()});var Lr=ge((eb,Ui)=>{var Dc=/\s+/g,Rr=class r{constructor(e,t){if(t=kc(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Or)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Dc," "),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(s=>!Bi(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&jc(s[0])){this.set=[s];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 t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Hc)|(this.options.loose&&Bc))+":"+e,s=Hi.get(n);if(s)return s;let i=this.options.loose,o=i?Ve[Xe.HYPHENRANGELOOSE]:Ve[Xe.HYPHENRANGE];e=e.replace(o,Qc(this.options.includePrerelease)),ve("hyphen replace",e),e=e.replace(Ve[Xe.COMPARATORTRIM],Ic),ve("comparator trim",e),e=e.replace(Ve[Xe.TILDETRIM],Mc),ve("tilde trim",e),e=e.replace(Ve[Xe.CARETTRIM],Fc),ve("caret trim",e);let a=e.split(" ").map(m=>Uc(m,this.options)).join(" ").split(/\s+/).map(m=>Yc(m,this.options));i&&(a=a.filter(m=>(ve("loose invalid filter",m,this.options),!!m.match(Ve[Xe.COMPARATORLOOSE])))),ve("range list",a);let u=new Map,c=a.map(m=>new Or(m,this.options));for(let m of c){if(Bi(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let p=[...u.values()];return Hi.set(n,p),p}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>ji(n,t)&&e.set.some(s=>ji(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Pc(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Zc(this.set[t],e,this.options))return!0;return!1}};Ui.exports=Rr;var wc=bi(),Hi=new wc,kc=Mn(),Or=Fi(),ve=Sn(),Pc=xn(),{safeRe:Ve,t:Xe,comparatorTrimReplace:Ic,tildeTrimReplace:Mc,caretTrimReplace:Fc}=In(),{FLAG_INCLUDE_PRERELEASE:Hc,FLAG_LOOSE:Bc}=Pn(),Bi=r=>r.value==="<0.0.0-0",jc=r=>r.value==="",ji=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},Uc=(r,e)=>(ve("comp",r,e),r=zc(r,e),ve("caret",r),r=Wc(r,e),ve("tildes",r),r=Jc(r,e),ve("xrange",r),r=Kc(r,e),ve("stars",r),r),ze=r=>!r||r.toLowerCase()==="x"||r==="*",Wc=(r,e)=>r.trim().split(/\s+/).map(t=>Xc(t,e)).join(" "),Xc=(r,e)=>{let t=e.loose?Ve[Xe.TILDELOOSE]:Ve[Xe.TILDE];return r.replace(t,(n,s,i,o,a)=>{ve("tilde",r,n,s,i,o,a);let u;return ze(s)?u="":ze(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:ze(o)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(ve("replaceTilde pr",a),u=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,ve("tilde return",u),u})},zc=(r,e)=>r.trim().split(/\s+/).map(t=>Gc(t,e)).join(" "),Gc=(r,e)=>{ve("caret",r,e);let t=e.loose?Ve[Xe.CARETLOOSE]:Ve[Xe.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,u)=>{ve("caret",r,s,i,o,a,u);let c;return ze(i)?c="":ze(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:ze(a)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:u?(ve("replaceCaret pr",u),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${u} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${u} <${+i+1}.0.0-0`):(ve("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),ve("caret return",c),c})},Jc=(r,e)=>(ve("replaceXRanges",r,e),r.split(/\s+/).map(t=>Vc(t,e)).join(" ")),Vc=(r,e)=>{r=r.trim();let t=e.loose?Ve[Xe.XRANGELOOSE]:Ve[Xe.XRANGE];return r.replace(t,(n,s,i,o,a,u)=>{ve("xRange",r,n,s,i,o,a,u);let c=ze(i),p=c||ze(o),m=p||ze(a),S=m;return s==="="&&S&&(s=""),u=e.includePrerelease?"-0":"",c?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&S?(p&&(o=0),a=0,s===">"?(s=">=",p?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",p?i=+i+1:o=+o+1),s==="<"&&(u="-0"),n=`${s+i}.${o}.${a}${u}`):p?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:m&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),ve("xRange return",n),n})},Kc=(r,e)=>(ve("replaceStars",r,e),r.trim().replace(Ve[Xe.STAR],"")),Yc=(r,e)=>(ve("replaceGTE0",r,e),r.trim().replace(Ve[e.includePrerelease?Xe.GTE0PRE:Xe.GTE0],"")),Qc=r=>(e,t,n,s,i,o,a,u,c,p,m,S)=>(ze(n)?t="":ze(s)?t=`>=${n}.0.0${r?"-0":""}`:ze(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,ze(c)?u="":ze(p)?u=`<${+c+1}.0.0-0`:ze(m)?u=`<${c}.${+p+1}.0-0`:S?u=`<=${c}.${p}.${m}-${S}`:r?u=`<${c}.${p}.${+m+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),Zc=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(ve(r[n].semver),r[n].semver!==Or.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Xi=ge((tb,Wi)=>{var qc=Lr(),_c=(r,e,t)=>{try{e=new qc(e,t)}catch{return!1}return e.test(r)};Wi.exports=_c});var pu={};Pr(pu,{createNodeLogger:()=>Jr,createNodeSys:()=>fo,setupNodeProcess:()=>ds});module.exports=xo(pu);var On=be(require("./graceful-fs.js")),Gr=be(require("path"));var ee=be(Ur());var qn=["debug","info","warn","error"];var zr=r=>{let e="info",t=null,n=[],s=l=>e=l,i=()=>e,o=l=>t=l,a=(...l)=>{if(qt(e,"info")){let d=gt(l,r.getColumns());u(d),console.log(d.join(`
36
- `))}I("I",l)},u=l=>{if(l.length>0){let d=Wr();l[0]=(0,ee.dim)(d)+l[0].slice(d.length)}},c=(...l)=>{if(qt(e,"warn")){let d=gt(l,r.getColumns());p(d),console.warn(`
35
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof w))return new w(g,$);if(b(this,g,$),this.noprocess)return this;var C=this.minimatch.set.length;this.matches=new Array(C);for(var A=0;A<C;A++)this._process(this.minimatch.set[A],A,!1);this._finish()}w.prototype._finish=function(){if(p(this instanceof w),this.realpath){var g=this;this.matches.forEach(function($,C){var A=g.matches[C]=Object.create(null);for(var P in $)try{P=g._makeAbs(P);var L=s.realpathSync(P,g.realpathCache);A[L]=!0}catch(y){if(y.syscall==="stat")A[g._makeAbs(P)]=!0;else throw y}})}S.finish(this)},w.prototype._process=function(g,$,C){p(this instanceof w);for(var A=0;typeof g[A]=="string";)A++;var P;switch(A){case g.length:this._processSimple(g.join("/"),$);return;case 0:P=null;break;default:P=g.slice(0,A).join("/");break}var L=g.slice(A),y;P===null?y=".":((m(P)||m(g.join("/")))&&(!P||!m(P))&&(P="/"+P),y=P);var l=this._makeAbs(y);if(!N(this,y)){var d=L[0]===i.GLOBSTAR;d?this._processGlobStar(P,y,l,L,$,C):this._processReaddir(P,y,l,L,$,C)}},w.prototype._processReaddir=function(g,$,C,A,P,L){var y=this._readdir(C,L);if(y){for(var l=A[0],d=!!this.minimatch.negate,f=l._glob,v=this.dot||f.charAt(0)===".",E=[],R=0;R<y.length;R++){var D=y[R];if(D.charAt(0)!=="."||v){var k;d&&!g?k=!D.match(l):k=D.match(l),k&&E.push(D)}}var M=E.length;if(M!==0){if(A.length===1&&!this.mark&&!this.stat){this.matches[P]||(this.matches[P]=Object.create(null));for(var R=0;R<M;R++){var D=E[R];g&&(g.slice(-1)!=="/"?D=g+"/"+D:D=g+D),D.charAt(0)==="/"&&!this.nomount&&(D=c.join(this.root,D)),this._emitMatch(P,D)}return}A.shift();for(var R=0;R<M;R++){var D=E[R],B;g?B=[g,D]:B=[D],this._process(B.concat(A),P,L)}}}},w.prototype._emitMatch=function(g,$){if(!O(this,$)){var C=this._makeAbs($);if(this.mark&&($=this._mark($)),this.absolute&&($=C),!this.matches[g][$]){if(this.nodir){var A=this.cache[C];if(A==="DIR"||Array.isArray(A))return}this.matches[g][$]=!0,this.stat&&this._stat($)}}},w.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var $,C,A;try{C=n.lstatSync(g)}catch(L){if(L.code==="ENOENT")return null}var P=C&&C.isSymbolicLink();return this.symlinks[g]=P,!P&&C&&!C.isDirectory()?this.cache[g]="FILE":$=this._readdir(g,!1),$},w.prototype._readdir=function(g,$){var C;if($&&!x(this.symlinks,g))return this._readdirInGlobStar(g);if(x(this.cache,g)){var A=this.cache[g];if(!A||A==="FILE")return null;if(Array.isArray(A))return A}try{return this._readdirEntries(g,n.readdirSync(g))}catch(P){return this._readdirError(g,P),null}},w.prototype._readdirEntries=function(g,$){if(!this.mark&&!this.stat)for(var C=0;C<$.length;C++){var A=$[C];g==="/"?A=g+A:A=g+"/"+A,this.cache[A]=!0}return this.cache[g]=$,$},w.prototype._readdirError=function(g,$){switch($.code){case"ENOTSUP":case"ENOTDIR":var C=this._makeAbs(g);if(this.cache[C]="FILE",C===this.cwdAbs){var A=new Error($.code+" invalid cwd "+this.cwd);throw A.path=this.cwd,A.code=$.code,A}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw $;this.silent||console.error("glob error",$);break}},w.prototype._processGlobStar=function(g,$,C,A,P,L){var y=this._readdir(C,L);if(y){var l=A.slice(1),d=g?[g]:[],f=d.concat(l);this._process(f,P,!1);var v=y.length,E=this.symlinks[C];if(!(E&&L))for(var R=0;R<v;R++){var D=y[R];if(!(D.charAt(0)==="."&&!this.dot)){var k=d.concat(y[R],l);this._process(k,P,!0);var M=d.concat(y[R],A);this._process(M,P,!0)}}}},w.prototype._processSimple=function(g,$){var C=this._stat(g);if(this.matches[$]||(this.matches[$]=Object.create(null)),!!C){if(g&&m(g)&&!this.nomount){var A=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=c.join(this.root,g):(g=c.resolve(this.root,g),A&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch($,g)}},w.prototype._stat=function(g){var $=this._makeAbs(g),C=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&x(this.cache,$)){var y=this.cache[$];if(Array.isArray(y)&&(y="DIR"),!C||y==="DIR")return y;if(C&&y==="FILE")return!1}var A,P=this.statCache[$];if(!P){var L;try{L=n.lstatSync($)}catch(l){if(l&&(l.code==="ENOENT"||l.code==="ENOTDIR"))return this.statCache[$]=!1,!1}if(L&&L.isSymbolicLink())try{P=n.statSync($)}catch{P=L}else P=L}this.statCache[$]=P;var y=!0;return P&&(y=P.isDirectory()?"DIR":"FILE"),this.cache[$]=this.cache[$]||y,C&&y==="FILE"?!1:y},w.prototype._mark=function(g){return S.mark(this,g)},w.prototype._makeAbs=function(g){return S.makeAbs(this,g)}},,,function(r,e,t){"use strict";r.exports=function(n,s){s=s||process.argv;var i=s.indexOf("--"),o=/^--/.test(n)?"":"--",a=s.indexOf(o+n);return a!==-1&&(i!==-1?a<i:!0)}},,function(r,e,t){var n=t(123),s=Object.create(null),i=t(61);r.exports=n(o);function o(c,p){return s[c]?(s[c].push(p),null):(s[c]=[p],a(c))}function a(c){return i(function p(){var m=s[c],S=m.length,T=u(arguments);try{for(var h=0;h<S;h++)m[h].apply(null,T)}finally{m.length>S?(m.splice(0,S),process.nextTick(function(){p.apply(null,T)})):delete s[c]}})}function u(c){for(var p=c.length,m=[],S=0;S<p;S++)m[S]=c[S];return m}},function(r,e){typeof Object.create=="function"?r.exports=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,s){n.super_=s;var i=function(){};i.prototype=s.prototype,n.prototype=new i,n.prototype.constructor=n}},,,function(r,e,t){r.exports=typeof t<"u"},,function(r,e){var t=1e3,n=t*60,s=n*60,i=s*24,o=i*365.25;r.exports=function(m,S){S=S||{};var T=typeof m;if(T==="string"&&m.length>0)return a(m);if(T==="number"&&isNaN(m)===!1)return S.long?c(m):u(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))};function a(m){if(m=String(m),!(m.length>100)){var S=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(S){var T=parseFloat(S[1]),h=(S[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return T*o;case"days":case"day":case"d":return T*i;case"hours":case"hour":case"hrs":case"hr":case"h":return T*s;case"minutes":case"minute":case"mins":case"min":case"m":return T*n;case"seconds":case"second":case"secs":case"sec":case"s":return T*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return T;default:return}}}}function u(m){return m>=i?Math.round(m/i)+"d":m>=s?Math.round(m/s)+"h":m>=n?Math.round(m/n)+"m":m>=t?Math.round(m/t)+"s":m+"ms"}function c(m){return p(m,i,"day")||p(m,s,"hour")||p(m,n,"minute")||p(m,t,"second")||m+" ms"}function p(m,S,T){if(!(m<S))return m<S*1.5?Math.floor(m/S)+" "+T:Math.ceil(m/S)+" "+T+"s"}},,,,function(r,e,t){r.exports=S,S.sync=O;var n=t(22),s=t(0),i=t(3),o=t(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,p=process.platform==="win32";function m(g){var $=["unlink","chmod","stat","lstat","rmdir","readdir"];$.forEach(function(C){g[C]=g[C]||i[C],C=C+"Sync",g[C]=g[C]||i[C]}),g.maxBusyTries=g.maxBusyTries||3,g.emfileWait=g.emfileWait||1e3,g.glob===!1&&(g.disableGlob=!0),g.disableGlob=g.disableGlob||!1,g.glob=g.glob||u}function S(g,$,C){typeof $=="function"&&(C=$,$={}),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n.equal(typeof C,"function","rimraf: callback function required"),n($,"rimraf: invalid options argument provided"),n.equal(typeof $,"object","rimraf: options should be object"),m($);var A=0,P=null,L=0;if($.disableGlob||!o.hasMagic(g))return l(null,[g]);$.lstat(g,function(d,f){if(!d)return l(null,[g]);o(g,$.glob,l)});function y(d){P=P||d,--L===0&&C(P)}function l(d,f){if(d)return C(d);if(L=f.length,L===0)return C();f.forEach(function(v){T(v,$,function E(R){if(R){if((R.code==="EBUSY"||R.code==="ENOTEMPTY"||R.code==="EPERM")&&A<$.maxBusyTries){A++;var D=A*100;return setTimeout(function(){T(v,$,E)},D)}if(R.code==="EMFILE"&&c<$.emfileWait)return setTimeout(function(){T(v,$,E)},c++);R.code==="ENOENT"&&(R=null)}c=0,y(R)})})}}function T(g,$,C){n(g),n($),n(typeof C=="function"),$.lstat(g,function(A,P){if(A&&A.code==="ENOENT")return C(null);if(A&&A.code==="EPERM"&&p&&h(g,$,A,C),P&&P.isDirectory())return x(g,$,A,C);$.unlink(g,function(L){if(L){if(L.code==="ENOENT")return C(null);if(L.code==="EPERM")return p?h(g,$,L,C):x(g,$,L,C);if(L.code==="EISDIR")return x(g,$,L,C)}return C(L)})})}function h(g,$,C,A){n(g),n($),n(typeof A=="function"),C&&n(C instanceof Error),$.chmod(g,a,function(P){P?A(P.code==="ENOENT"?null:C):$.stat(g,function(L,y){L?A(L.code==="ENOENT"?null:C):y.isDirectory()?x(g,$,C,A):$.unlink(g,A)})})}function b(g,$,C){n(g),n($),C&&n(C instanceof Error);try{$.chmodSync(g,a)}catch(P){if(P.code==="ENOENT")return;throw C}try{var A=$.statSync(g)}catch(P){if(P.code==="ENOENT")return;throw C}A.isDirectory()?I(g,$,C):$.unlinkSync(g)}function x(g,$,C,A){n(g),n($),C&&n(C instanceof Error),n(typeof A=="function"),$.rmdir(g,function(P){P&&(P.code==="ENOTEMPTY"||P.code==="EEXIST"||P.code==="EPERM")?N(g,$,A):P&&P.code==="ENOTDIR"?A(C):A(P)})}function N(g,$,C){n(g),n($),n(typeof C=="function"),$.readdir(g,function(A,P){if(A)return C(A);var L=P.length;if(L===0)return $.rmdir(g,C);var y;P.forEach(function(l){S(s.join(g,l),$,function(d){if(!y){if(d)return C(y=d);--L===0&&$.rmdir(g,C)}})})})}function O(g,$){$=$||{},m($),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n($,"rimraf: missing options"),n.equal(typeof $,"object","rimraf: options should be object");var C;if($.disableGlob||!o.hasMagic(g))C=[g];else try{$.lstatSync(g),C=[g]}catch{C=o.sync(g,$.glob)}if(C.length)for(var A=0;A<C.length;A++){var g=C[A];try{var P=$.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&p&&b(g,$,y)}try{P&&P.isDirectory()?I(g,$,null):$.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return p?b(g,$,y):I(g,$,y);if(y.code!=="EISDIR")throw y;I(g,$,y)}}}function I(g,$,C){n(g),n($),C&&n(C instanceof Error);try{$.rmdirSync(g)}catch(A){if(A.code==="ENOENT")return;if(A.code==="ENOTDIR")throw C;(A.code==="ENOTEMPTY"||A.code==="EEXIST"||A.code==="EPERM")&&w(g,$)}}function w(g,$){n(g),n($),$.readdirSync(g).forEach(function(y){O(s.join(g,y),$)});var C=p?100:1,A=0;do{var P=!0;try{var L=$.rmdirSync(g,$);return P=!1,L}finally{if(++A<C&&P)continue}}while(!0)}},,,,,,function(r,e,t){"use strict";var n=t(221),s=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},i=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();i===0&&"FORCE_COLOR"in process.env&&(i=1),r.exports=process&&s(i)}])});var ms=ge((Vy,hs)=>{"use strict";hs.exports=function(e,t){t||(t=[process.stdout,process.stderr]);var n=0;function s(){n===t.length&&process.exit(e)}t.forEach(function(i){i.bufferSize===0?n++:i.write("","utf-8",function(){n++,s()}),i.write=function(){}}),s(),process.on("exit",function(){process.exit(e)})}});var Ss=ge((Yy,Es)=>{"use strict";Es.exports=vs;function vs(r,e,t){r instanceof RegExp&&(r=ys(r,t)),e instanceof RegExp&&(e=ys(e,t));var n=bs(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function ys(r,e){var t=e.match(r);return t?t[0]:null}vs.range=bs;function bs(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),p=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;p>=0&&!a;)p==u?(n.push(p),u=t.indexOf(r,p+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,p+1)),p=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var As=ge((Qy,Os)=>{var xs=Ss();Os.exports=Wa;var $s="\0SLASH"+Math.random()+"\0",Ts="\0OPEN"+Math.random()+"\0",fr="\0CLOSE"+Math.random()+"\0",Cs="\0COMMA"+Math.random()+"\0",Ls="\0PERIOD"+Math.random()+"\0";function dr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ja(r){return r.split("\\\\").join($s).split("\\{").join(Ts).split("\\}").join(fr).split("\\,").join(Cs).split("\\.").join(Ls)}function Ua(r){return r.split($s).join("\\").split(Ts).join("{").split(fr).join("}").split(Cs).join(",").split(Ls).join(".")}function Rs(r){if(!r)return[""];var e=[],t=xs("{","}",r);if(!t)return r.split(",");var n=t.pre,s=t.body,i=t.post,o=n.split(",");o[o.length-1]+="{"+s+"}";var a=Rs(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Wa(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),yn(ja(r),!0).map(Ua)):[]}function Xa(r){return"{"+r+"}"}function za(r){return/^-?0\d/.test(r)}function Ga(r,e){return r<=e}function Ja(r,e){return r>=e}function yn(r,e){var t=[],n=xs("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?yn(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<i.length;o++){var a=s+"{"+n.body+"}"+i[o];t.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=u||c,m=n.body.indexOf(",")>=0;if(!p&&!m)return n.post.match(/,.*\}/)?(r=n.pre+"{"+n.body+fr+n.post,yn(r)):[r];var S;if(p)S=n.body.split(/\.\./);else if(S=Rs(n.body),S.length===1&&(S=yn(S[0],!1).map(Xa),S.length===1))return i.map(function(L){return n.pre+S[0]+L});var T;if(p){var h=dr(S[0]),b=dr(S[1]),x=Math.max(S[0].length,S[1].length),N=S.length==3?Math.abs(dr(S[2])):1,O=Ga,I=b<h;I&&(N*=-1,O=Ja);var w=S.some(za);T=[];for(var g=h;O(g,b);g+=N){var $;if(c)$=String.fromCharCode(g),$==="\\"&&($="");else if($=String(g),w){var C=x-$.length;if(C>0){var A=new Array(C+1).join("0");g<0?$="-"+A+$.slice(1):$=A+$}}T.push($)}}else{T=[];for(var P=0;P<S.length;P++)T.push.apply(T,yn(S[P],!1))}for(var P=0;P<T.length;P++)for(var o=0;o<i.length;o++){var a=s+T[P]+i[o];(!e||p||a)&&t.push(a)}}return t}});var Sn=ge((Hv,ti)=>{var Xl=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ti.exports=Xl});var Pn=ge((Bv,ni)=>{var zl="2.0.0",Gl=Number.MAX_SAFE_INTEGER||9007199254740991,Jl=16,Vl=250,Kl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ni.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Jl,MAX_SAFE_BUILD_LENGTH:Vl,MAX_SAFE_INTEGER:Gl,RELEASE_TYPES:Kl,SEMVER_SPEC_VERSION:zl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var In=ge((bt,ri)=>{var{MAX_SAFE_COMPONENT_LENGTH:yr,MAX_SAFE_BUILD_LENGTH:Yl,MAX_LENGTH:Ql}=Pn(),Zl=Sn();bt=ri.exports={};var ql=bt.re=[],_l=bt.safeRe=[],V=bt.src=[],ec=bt.safeSrc=[],K=bt.t={},tc=0,vr="[a-zA-Z0-9-]",nc=[["\\s",1],["\\d",Ql],[vr,Yl]],rc=r=>{for(let[e,t]of nc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},te=(r,e,t)=>{let n=rc(e),s=tc++;Zl(r,s,e),K[r]=s,V[s]=e,ec[s]=n,ql[s]=new RegExp(e,t?"g":void 0),_l[s]=new RegExp(n,t?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${vr}*`);te("MAINVERSION",`(${V[K.NUMERICIDENTIFIER]})\\.(${V[K.NUMERICIDENTIFIER]})\\.(${V[K.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${V[K.NUMERICIDENTIFIERLOOSE]})\\.(${V[K.NUMERICIDENTIFIERLOOSE]})\\.(${V[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${V[K.NUMERICIDENTIFIER]}|${V[K.NONNUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${V[K.NUMERICIDENTIFIERLOOSE]}|${V[K.NONNUMERICIDENTIFIER]})`);te("PRERELEASE",`(?:-(${V[K.PRERELEASEIDENTIFIER]}(?:\\.${V[K.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${V[K.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[K.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${vr}+`);te("BUILD",`(?:\\+(${V[K.BUILDIDENTIFIER]}(?:\\.${V[K.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${V[K.MAINVERSION]}${V[K.PRERELEASE]}?${V[K.BUILD]}?`);te("FULL",`^${V[K.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${V[K.MAINVERSIONLOOSE]}${V[K.PRERELEASELOOSE]}?${V[K.BUILD]}?`);te("LOOSE",`^${V[K.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${V[K.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${V[K.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${V[K.XRANGEIDENTIFIER]})(?:\\.(${V[K.XRANGEIDENTIFIER]})(?:\\.(${V[K.XRANGEIDENTIFIER]})(?:${V[K.PRERELEASE]})?${V[K.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${V[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[K.XRANGEIDENTIFIERLOOSE]})(?:${V[K.PRERELEASELOOSE]})?${V[K.BUILD]}?)?)?`);te("XRANGE",`^${V[K.GTLT]}\\s*${V[K.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${V[K.GTLT]}\\s*${V[K.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${yr}})(?:\\.(\\d{1,${yr}}))?(?:\\.(\\d{1,${yr}}))?`);te("COERCE",`${V[K.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",V[K.COERCEPLAIN]+`(?:${V[K.PRERELEASE]})?(?:${V[K.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",V[K.COERCE],!0);te("COERCERTLFULL",V[K.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${V[K.LONETILDE]}\\s+`,!0);bt.tildeTrimReplace="$1~";te("TILDE",`^${V[K.LONETILDE]}${V[K.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${V[K.LONETILDE]}${V[K.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${V[K.LONECARET]}\\s+`,!0);bt.caretTrimReplace="$1^";te("CARET",`^${V[K.LONECARET]}${V[K.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${V[K.LONECARET]}${V[K.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${V[K.GTLT]}\\s*(${V[K.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${V[K.GTLT]}\\s*(${V[K.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${V[K.GTLT]}\\s*(${V[K.LOOSEPLAIN]}|${V[K.XRANGEPLAIN]})`,!0);bt.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${V[K.XRANGEPLAIN]})\\s+-\\s+(${V[K.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${V[K.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[K.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Mn=ge((jv,si)=>{var sc=Object.freeze({loose:!0}),ic=Object.freeze({}),oc=r=>r?typeof r!="object"?sc:r:ic;si.exports=oc});var li=ge((Uv,ai)=>{var ii=/^[0-9]+$/,oi=(r,e)=>{let t=ii.test(r),n=ii.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},ac=(r,e)=>oi(e,r);ai.exports={compareIdentifiers:oi,rcompareIdentifiers:ac}});var xn=ge((Wv,fi)=>{var Fn=Sn(),{MAX_LENGTH:ci,MAX_SAFE_INTEGER:Hn}=Pn(),{safeRe:ui,safeSrc:di,t:Bn}=In(),lc=Mn(),{compareIdentifiers:sn}=li(),br=class r{constructor(e,t){if(t=lc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.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>ci)throw new TypeError(`version is longer than ${ci} characters`);Fn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?ui[Bn.LOOSE]:ui[Bn.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>Hn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Hn)return i}return s}):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(Fn("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),sn(this.major,e.major)||sn(this.minor,e.minor)||sn(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(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 t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Fn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return sn(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Fn("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return sn(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=new RegExp(`^${this.options.loose?di[Bn.PRERELEASELOOSE]:di[Bn.PRERELEASE]}$`),i=`-${t}`.match(s);if(!i||i[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),sn(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fi.exports=br});var Vt=ge((Xv,hi)=>{var pi=xn(),cc=(r,e,t)=>new pi(r,t).compare(new pi(e,t));hi.exports=cc});var Er=ge((zv,mi)=>{var uc=Vt(),dc=(r,e,t)=>uc(r,e,t)<=0;mi.exports=dc});var yi=ge((Gv,gi)=>{var fc=xn(),pc=(r,e)=>new fc(r,e).major;gi.exports=pc});var bi=ge((Jv,vi)=>{var Sr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};vi.exports=Sr});var Si=ge((Vv,Ei)=>{var hc=Vt(),mc=(r,e,t)=>hc(r,e,t)===0;Ei.exports=mc});var $i=ge((Kv,xi)=>{var gc=Vt(),yc=(r,e,t)=>gc(r,e,t)!==0;xi.exports=yc});var Ci=ge((Yv,Ti)=>{var vc=Vt(),bc=(r,e,t)=>vc(r,e,t)>0;Ti.exports=bc});var Ri=ge((Qv,Li)=>{var Ec=Vt(),Sc=(r,e,t)=>Ec(r,e,t)>=0;Li.exports=Sc});var xr=ge((Zv,Oi)=>{var xc=Vt(),$c=(r,e,t)=>xc(r,e,t)<0;Oi.exports=$c});var Ni=ge((qv,Ai)=>{var Tc=Si(),Cc=$i(),Lc=Ci(),Rc=Ri(),Oc=xr(),Ac=Er(),Nc=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Tc(r,t,n);case"!=":return Cc(r,t,n);case">":return Lc(r,t,n);case">=":return Rc(r,t,n);case"<":return Oc(r,t,n);case"<=":return Ac(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Ai.exports=Nc});var Fi=ge((_v,Mi)=>{var $n=Symbol("SemVer ANY"),Cr=class r{static get ANY(){return $n}constructor(e,t){if(t=Di(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Tr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===$n?this.value="":this.value=this.operator+this.semver.version,Tr("comp",this)}parse(e){let t=this.options.loose?wi[ki.COMPARATORLOOSE]:wi[ki.COMPARATOR],n=e.match(t);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 Pi(n[2],this.options.loose):this.semver=$n}toString(){return this.value}test(e){if(Tr("Comparator.test",e,this.options.loose),this.semver===$n||e===$n)return!0;if(typeof e=="string")try{e=new Pi(e,this.options)}catch{return!1}return $r(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ii(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new Ii(this.value,t).test(e.semver):(t=Di(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.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("=")||$r(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||$r(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Mi.exports=Cr;var Di=Mn(),{safeRe:wi,t:ki}=In(),$r=Ni(),Tr=Sn(),Pi=xn(),Ii=Lr()});var Lr=ge((eb,Ui)=>{var Dc=/\s+/g,Rr=class r{constructor(e,t){if(t=kc(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Or)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Dc," "),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(s=>!Bi(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&jc(s[0])){this.set=[s];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 t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Hc)|(this.options.loose&&Bc))+":"+e,s=Hi.get(n);if(s)return s;let i=this.options.loose,o=i?Ve[Xe.HYPHENRANGELOOSE]:Ve[Xe.HYPHENRANGE];e=e.replace(o,Qc(this.options.includePrerelease)),ve("hyphen replace",e),e=e.replace(Ve[Xe.COMPARATORTRIM],Ic),ve("comparator trim",e),e=e.replace(Ve[Xe.TILDETRIM],Mc),ve("tilde trim",e),e=e.replace(Ve[Xe.CARETTRIM],Fc),ve("caret trim",e);let a=e.split(" ").map(m=>Uc(m,this.options)).join(" ").split(/\s+/).map(m=>Yc(m,this.options));i&&(a=a.filter(m=>(ve("loose invalid filter",m,this.options),!!m.match(Ve[Xe.COMPARATORLOOSE])))),ve("range list",a);let u=new Map,c=a.map(m=>new Or(m,this.options));for(let m of c){if(Bi(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let p=[...u.values()];return Hi.set(n,p),p}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>ji(n,t)&&e.set.some(s=>ji(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Pc(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Zc(this.set[t],e,this.options))return!0;return!1}};Ui.exports=Rr;var wc=bi(),Hi=new wc,kc=Mn(),Or=Fi(),ve=Sn(),Pc=xn(),{safeRe:Ve,t:Xe,comparatorTrimReplace:Ic,tildeTrimReplace:Mc,caretTrimReplace:Fc}=In(),{FLAG_INCLUDE_PRERELEASE:Hc,FLAG_LOOSE:Bc}=Pn(),Bi=r=>r.value==="<0.0.0-0",jc=r=>r.value==="",ji=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},Uc=(r,e)=>(ve("comp",r,e),r=zc(r,e),ve("caret",r),r=Wc(r,e),ve("tildes",r),r=Jc(r,e),ve("xrange",r),r=Kc(r,e),ve("stars",r),r),ze=r=>!r||r.toLowerCase()==="x"||r==="*",Wc=(r,e)=>r.trim().split(/\s+/).map(t=>Xc(t,e)).join(" "),Xc=(r,e)=>{let t=e.loose?Ve[Xe.TILDELOOSE]:Ve[Xe.TILDE];return r.replace(t,(n,s,i,o,a)=>{ve("tilde",r,n,s,i,o,a);let u;return ze(s)?u="":ze(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:ze(o)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(ve("replaceTilde pr",a),u=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,ve("tilde return",u),u})},zc=(r,e)=>r.trim().split(/\s+/).map(t=>Gc(t,e)).join(" "),Gc=(r,e)=>{ve("caret",r,e);let t=e.loose?Ve[Xe.CARETLOOSE]:Ve[Xe.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,u)=>{ve("caret",r,s,i,o,a,u);let c;return ze(i)?c="":ze(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:ze(a)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:u?(ve("replaceCaret pr",u),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${u} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${u} <${+i+1}.0.0-0`):(ve("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),ve("caret return",c),c})},Jc=(r,e)=>(ve("replaceXRanges",r,e),r.split(/\s+/).map(t=>Vc(t,e)).join(" ")),Vc=(r,e)=>{r=r.trim();let t=e.loose?Ve[Xe.XRANGELOOSE]:Ve[Xe.XRANGE];return r.replace(t,(n,s,i,o,a,u)=>{ve("xRange",r,n,s,i,o,a,u);let c=ze(i),p=c||ze(o),m=p||ze(a),S=m;return s==="="&&S&&(s=""),u=e.includePrerelease?"-0":"",c?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&S?(p&&(o=0),a=0,s===">"?(s=">=",p?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",p?i=+i+1:o=+o+1),s==="<"&&(u="-0"),n=`${s+i}.${o}.${a}${u}`):p?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:m&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),ve("xRange return",n),n})},Kc=(r,e)=>(ve("replaceStars",r,e),r.trim().replace(Ve[Xe.STAR],"")),Yc=(r,e)=>(ve("replaceGTE0",r,e),r.trim().replace(Ve[e.includePrerelease?Xe.GTE0PRE:Xe.GTE0],"")),Qc=r=>(e,t,n,s,i,o,a,u,c,p,m,S)=>(ze(n)?t="":ze(s)?t=`>=${n}.0.0${r?"-0":""}`:ze(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,ze(c)?u="":ze(p)?u=`<${+c+1}.0.0-0`:ze(m)?u=`<${c}.${+p+1}.0-0`:S?u=`<=${c}.${p}.${m}-${S}`:r?u=`<${c}.${p}.${+m+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),Zc=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(ve(r[n].semver),r[n].semver!==Or.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Xi=ge((tb,Wi)=>{var qc=Lr(),_c=(r,e,t)=>{try{e=new qc(e,t)}catch{return!1}return e.test(r)};Wi.exports=_c});var pu={};Pr(pu,{createNodeLogger:()=>Jr,createNodeSys:()=>fo,setupNodeProcess:()=>ds});module.exports=xo(pu);var On=be(require("./graceful-fs.js")),Gr=be(require("path"));var ee=be(Ur());var qn=["debug","info","warn","error"];var zr=r=>{let e="info",t=null,n=[],s=l=>e=l,i=()=>e,o=l=>t=l,a=(...l)=>{if(qt(e,"info")){let d=yt(l,r.getColumns());u(d),console.log(d.join(`
36
+ `))}I("I",l)},u=l=>{if(l.length>0){let d=Wr();l[0]=(0,ee.dim)(d)+l[0].slice(d.length)}},c=(...l)=>{if(qt(e,"warn")){let d=yt(l,r.getColumns());p(d),console.warn(`
37
37
  `+d.join(`
38
38
  `)+`
39
39
  `)}I("W",l)},p=l=>{if(l.length){let d="[ WARN ]";l[0]=(0,ee.bold)((0,ee.yellow)(d))+l[0].slice(d.length)}},m=(...l)=>{for(let d=0;d<l.length;d++)if(l[d]instanceof Error){let f=l[d];l[d]=f.message,f.stack&&(l[d]+=`
40
- `+f.stack)}if(qt(e,"error")){let d=gt(l,r.getColumns());S(d),console.error(`
40
+ `+f.stack)}if(qt(e,"error")){let d=yt(l,r.getColumns());S(d),console.error(`
41
41
  `+d.join(`
42
42
  `)+`
43
- `)}I("E",l)},S=l=>{if(l.length){let d="[ ERROR ]";l[0]=(0,ee.bold)((0,ee.red)(d))+l[0].slice(d.length)}},T=(...l)=>{if(qt(e,"debug")){x(l);let d=gt(l,r.getColumns());h(d),console.log(d.join(`
44
- `))}I("D",l)},h=l=>{if(l.length){let d=Wr();l[0]=(0,ee.cyan)(d)+l[0].slice(d.length)}},b=(l,d,f)=>{let v=[`${l} ${(0,ee.dim)("...")}`];if(d){if(qt(e,"debug")){x(v);let E=gt(v,r.getColumns());h(E),console.log(E.join(`
45
- `)),I("D",[`${l} ...`])}}else{let E=gt(v,r.getColumns());u(E),console.log(E.join(`
46
- `)),I("I",[`${l} ...`]),f&&f.push(`${l} ...`)}},x=l=>{let d=r.memoryUsage();d>0&&l.push((0,ee.dim)(` MEM: ${(d/1e6).toFixed(1)}MB`))},N=(l,d,f,v,E,R,D)=>{let k=l;if(f&&(k=ee.default[f](l)),v&&(k=(0,ee.bold)(k)),k+=" "+(0,ee.dim)(d),R){if(qt(e,"debug")){let M=[k];x(M);let B=gt(M,r.getColumns());h(B),console.log(B.join(`
47
- `))}I("D",[`${l} ${d}`])}else{let M=gt([k],r.getColumns());u(M),console.log(M.join(`
43
+ `)}I("E",l)},S=l=>{if(l.length){let d="[ ERROR ]";l[0]=(0,ee.bold)((0,ee.red)(d))+l[0].slice(d.length)}},T=(...l)=>{if(qt(e,"debug")){x(l);let d=yt(l,r.getColumns());h(d),console.log(d.join(`
44
+ `))}I("D",l)},h=l=>{if(l.length){let d=Wr();l[0]=(0,ee.cyan)(d)+l[0].slice(d.length)}},b=(l,d,f)=>{let v=[`${l} ${(0,ee.dim)("...")}`];if(d){if(qt(e,"debug")){x(v);let E=yt(v,r.getColumns());h(E),console.log(E.join(`
45
+ `)),I("D",[`${l} ...`])}}else{let E=yt(v,r.getColumns());u(E),console.log(E.join(`
46
+ `)),I("I",[`${l} ...`]),f&&f.push(`${l} ...`)}},x=l=>{let d=r.memoryUsage();d>0&&l.push((0,ee.dim)(` MEM: ${(d/1e6).toFixed(1)}MB`))},N=(l,d,f,v,E,R,D)=>{let k=l;if(f&&(k=ee.default[f](l)),v&&(k=(0,ee.bold)(k)),k+=" "+(0,ee.dim)(d),R){if(qt(e,"debug")){let M=[k];x(M);let B=yt(M,r.getColumns());h(B),console.log(B.join(`
47
+ `))}I("D",[`${l} ${d}`])}else{let M=yt([k],r.getColumns());u(M),console.log(M.join(`
48
48
  `)),I("I",[`${l} ${d}`]),D&&D.push(`${l} ${d}`)}E&&console.log("")},O=(l,d=!1,f)=>{let v=Date.now(),E=()=>Date.now()-v,R={duration:E,finish:(D,k,M,B)=>{let W=E(),Z;return W>1e3?Z="in "+(W/1e3).toFixed(2)+" s":parseFloat(W.toFixed(3))>0?Z="in "+W+" ms":Z="in less than 1 ms",N(D,Z,k,!!M,!!B,d,f),W}};return b(l,d,f),R},I=(l,d)=>{if(t){let f=new Date,v=""+("0"+f.getHours()).slice(-2)+":"+("0"+f.getMinutes()).slice(-2)+":"+("0"+f.getSeconds()).slice(-2)+"."+("0"+Math.floor(f.getMilliseconds()/1e3*10))+" "+("000"+(r.memoryUsage()/1e6).toFixed(1)).slice(-6)+"MB "+l+" "+d.join(", ");n.push(v)}},w=l=>{if(t)try{I("F",["--------------------------------------"]),r.writeLogs(t,n.join(`
49
49
  `),l)}catch{}n.length=0},g=l=>{ee.default.enabled=l},$=(l,d)=>{if(!l||l.length===0)return;let f=[""];l.forEach(v=>{f=f.concat(C(v,d))}),console.log(f.join(`
50
- `))},C=(l,d)=>{let f=gt([l.messageText],r.getColumns()),v="";l.header&&l.header!=="Build Error"&&(v+=l.header),typeof l.absFilePath=="string"&&typeof l.relFilePath!="string"&&(typeof d!="string"&&(d=r.cwd()),l.relFilePath=r.relativePath(d,l.absFilePath),l.relFilePath.includes("/")||(l.relFilePath="./"+l.relFilePath));let E=l.relFilePath;return typeof E!="string"&&(E=l.absFilePath),typeof E=="string"&&(v.length>0&&(v+=": "),v+=(0,ee.cyan)(E),typeof l.lineNumber=="number"&&l.lineNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.lineNumber}`),typeof l.columnNumber=="number"&&l.columnNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.columnNumber}`)))),v.length>0&&f.unshift(Tt+v),f.push(""),l.lines&&l.lines.length&&(Oo(l.lines).forEach(D=>{if(!No(D.text))return;let k="";for(D.lineNumber>-1&&(k=`L${D.lineNumber}: `);k.length<Tt.length;)k=" "+k;let M=D.text;D.errorCharStart>-1&&(M=A(M,D.errorCharStart,D.errorLength)),k=(0,ee.dim)(k),l.language==="typescript"||l.language==="javascript"?k+=P(M):l.language==="scss"||l.language==="css"?k+=L(M):k+=M,f.push(k)}),f.push("")),l.level==="error"?S(f):l.level==="warn"?p(f):l.level==="debug"?h(f):u(f),l.debugText!=null&&e==="debug"&&(f.push(l.debugText),h(gt([l.debugText],r.getColumns()))),f},A=(l,d,f=0)=>{let v=l.length-d+f-1;for(;l.length+Tt.length>r.getColumns();)if(d>l.length-d+f&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let E=[],R=Math.max(l.length,d+f);for(let D=0;D<R;D++){let k=l.charAt(D);D>=d&&D<d+f&&(k=(0,ee.bgRed)(k===""?" ":k)),E.push(k)}return E.join("")},P=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(f=>Do.indexOf(f)>-1?(0,ee.cyan)(f):f).join(" "),L=l=>{let d=!0,f="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",E=[];for(let R=0;R<l.length;R++){let D=l.charAt(R);if(D===";"||D==="{"?d=!0:v.indexOf(D)>-1&&(d=!1),d&&f.indexOf(D.toLowerCase())>-1){E.push((0,ee.cyan)(D));continue}E.push(D)}return E.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:O,debug:T,emoji:r.emoji,enableColors:g,error:m,getLevel:i,info:a,printDiagnostics:$,setLevel:s,setLogFilePath:o,warn:c,writeLogs:w,bgRed:ee.bgRed,blue:ee.blue,bold:ee.bold,cyan:ee.cyan,dim:ee.dim,gray:ee.gray,green:ee.green,magenta:ee.magenta,red:ee.red,yellow:ee.yellow}},qt=(r,e)=>qn.indexOf(e)>=qn.indexOf(r),Wr=()=>{let r=new Date,e=Xr(r.getMinutes()),t=Xr(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},Xr=r=>("0"+r.toString()).slice(-2),gt=(r,e)=>{let t=[],n=[];r.forEach(i=>{i===null?n.push("null"):typeof i>"u"?n.push("undefined"):typeof i=="string"?i.replace(/\s/gm," ").split(" ").forEach(o=>{o.trim().length&&n.push(o.trim())}):typeof i=="number"||typeof i=="boolean"||typeof i=="function"?n.push(i.toString()):Array.isArray(i)?n.push(()=>i.toString()):Object(i)===i?n.push(()=>i.toString()):n.push(i.toString())});let s=Tt;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Tt):Tt.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Tt+i),s=Tt):i.length+s.length>e-1?(t.push(s),s=Tt+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Oo=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!Ao(t))return t;for(let s=0;s<t.length;s++)if(t[s].text=t[s].text.slice(1),t[s].errorCharStart--,!t[s].text.length)return t}return t},Ao=r=>{if(!r.length)return!1;for(let e=0;e<r.length;e++){if(!r[e].text||r[e].text.length<1)return!1;let t=r[e].text.charAt(0);if(t!==" "&&t!==" ")return!1}return!0},No=r=>r?(r=r.trim(),r.length>0):!1,Do=["abstract","any","as","break","boolean","case","catch","class","console","const","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","import","in","implements","Infinity","instanceof","let","module","namespace","NaN","new","number","null","public","private","protected","require","return","static","set","string","super","switch","this","throw","try","true","type","typeof","undefined","var","void","with","while","yield"],Tt=" ";var Jr=()=>{let r=wo();return zr(r)};function wo(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var m,S;let p=(S=(m=process==null?void 0:process.stdout)==null?void 0:m.columns)!=null?S:80;return Math.max(Math.min(p,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>Gr.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{On.default.accessSync(a)}catch{c=!1}c?On.default.appendFileSync(a,u):On.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=m=>(m=m.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise(S=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(m,S)}))),p=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:p}}}}var Vr=()=>{};var _n=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var Kr=r=>typeof r=="function";var jt=r=>typeof r=="string";var Yr=r=>{let e={"{":"}","(":")","[":"]"},t=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(r==="")return!1;let n;for(;n=t.exec(r);){if(n[2])return!0;let s=n.index+n[0].length,i=n[1],o=i?e[i]:null;if(i&&o){let a=r.indexOf(o,s);a!==-1&&(s=a+1)}r=r.slice(s)}return!1};var fn=r=>{let e={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:void 0,absFilePath:void 0,lines:[]};return r&&r.push(e),e};var er=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return jt(t)?n.messageText=t.length?t:"UNKNOWN ERROR":e!=null&&(e.stack!=null?n.messageText=e.stack.toString():e.message!=null?n.messageText=e.message.length?e.message:"UNKNOWN ERROR":n.messageText=e.toString()),r!=null&&!tr(n.messageText)&&r.push(n),n};var tr=r=>r===Ut,Ut="task canceled";var ye=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=Bo(r.trim());let t=Jo(r,Xo(r)),n=Wo(t),s=n[0],i=n[1],o=s+n.slice(1).join("/");return o===""?".":s===""&&i&&r.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")&&e?"./"+o:o},Bo=r=>r.replace(Uo,"/"),jo="\\",Qr="://",Uo=/\\/g,Wo=r=>{if(!Array.isArray(r)||r.length===0)return[];let e=[r[0]];for(let t=1;t<r.length;t++){let n=r[t];if(n&&n!=="."){if(n===".."){if(e.length>1){if(e[e.length-1]!==".."){e.pop();continue}}else if(e[0])continue}e.push(n)}}return e},Xo=r=>{let e=zo(r);return e<0?~e:e},zo=r=>{if(!r)return 0;let e=r.charCodeAt(0);if(e===47||e===92){if(r.charCodeAt(1)!==e)return 1;let n=r.indexOf(e===47?"/":jo,2);return n<0?r.length:n+1}if(Zr(e)&&r.charCodeAt(1)===58){let n=r.charCodeAt(2);if(n===47||n===92)return 3;if(r.length===2)return 2}let t=r.indexOf(Qr);if(t!==-1){let n=t+Qr.length,s=r.indexOf("/",n);if(s!==-1){let i=r.slice(0,t),o=r.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&Zr(r.charCodeAt(s+1))){let a=Go(r,s+2);if(a!==-1){if(r.charCodeAt(a)===47)return~(a+1);if(a===r.length)return~a}}return~(s+1)}return~r.length}return 0},Zr=r=>r>=97&&r<=122||r>=65&&r<=90,Go=(r,e)=>{let t=r.charCodeAt(e);if(t===58)return e+1;if(t===37&&r.charCodeAt(e+1)===51){let n=r.charCodeAt(e+2);if(n===97||n===65)return e+3}return-1},Jo=(r,e)=>{let t=r.substring(0,e),n=r.substring(e).split("/"),s=n.length;return s>0&&!n[s-1]&&n.pop(),[t,...n]};var qr=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var rr={};Pr(rr,{err:()=>_r,map:()=>Vo,ok:()=>nr,unwrap:()=>Ko,unwrapErr:()=>Yo});var nr=r=>({isOk:!0,isErr:!1,value:r}),_r=r=>({isOk:!1,isErr:!0,value:r});function Vo(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>nr(n)):nr(t)}if(r.isErr){let t=r.value;return _r(t)}throw"should never get here"}var Ko=r=>{if(r.isOk)return r.value;throw r.value},Yo=r=>{if(r.isErr)return r.value;throw r.value};var ie={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};var Zo={isDev:!!ie.isDev,isBrowser:!0,isServer:!1,isTesting:!!ie.isTesting};var Qd=ie.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var ft=typeof window<"u"?window:{},sf=ft.HTMLElement||class{};var _t=ie.shadowDom;var ts=ie.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})():!1;/**
50
+ `))},C=(l,d)=>{let f=yt([l.messageText],r.getColumns()),v="";l.header&&l.header!=="Build Error"&&(v+=l.header),typeof l.absFilePath=="string"&&typeof l.relFilePath!="string"&&(typeof d!="string"&&(d=r.cwd()),l.relFilePath=r.relativePath(d,l.absFilePath),l.relFilePath.includes("/")||(l.relFilePath="./"+l.relFilePath));let E=l.relFilePath;return typeof E!="string"&&(E=l.absFilePath),typeof E=="string"&&(v.length>0&&(v+=": "),v+=(0,ee.cyan)(E),typeof l.lineNumber=="number"&&l.lineNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.lineNumber}`),typeof l.columnNumber=="number"&&l.columnNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.columnNumber}`)))),v.length>0&&f.unshift(Tt+v),f.push(""),l.lines&&l.lines.length&&(Oo(l.lines).forEach(D=>{if(!No(D.text))return;let k="";for(D.lineNumber>-1&&(k=`L${D.lineNumber}: `);k.length<Tt.length;)k=" "+k;let M=D.text;D.errorCharStart>-1&&(M=A(M,D.errorCharStart,D.errorLength)),k=(0,ee.dim)(k),l.language==="typescript"||l.language==="javascript"?k+=P(M):l.language==="scss"||l.language==="css"?k+=L(M):k+=M,f.push(k)}),f.push("")),l.level==="error"?S(f):l.level==="warn"?p(f):l.level==="debug"?h(f):u(f),l.debugText!=null&&e==="debug"&&(f.push(l.debugText),h(yt([l.debugText],r.getColumns()))),f},A=(l,d,f=0)=>{let v=l.length-d+f-1;for(;l.length+Tt.length>r.getColumns();)if(d>l.length-d+f&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let E=[],R=Math.max(l.length,d+f);for(let D=0;D<R;D++){let k=l.charAt(D);D>=d&&D<d+f&&(k=(0,ee.bgRed)(k===""?" ":k)),E.push(k)}return E.join("")},P=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(f=>Do.indexOf(f)>-1?(0,ee.cyan)(f):f).join(" "),L=l=>{let d=!0,f="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",E=[];for(let R=0;R<l.length;R++){let D=l.charAt(R);if(D===";"||D==="{"?d=!0:v.indexOf(D)>-1&&(d=!1),d&&f.indexOf(D.toLowerCase())>-1){E.push((0,ee.cyan)(D));continue}E.push(D)}return E.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:O,debug:T,emoji:r.emoji,enableColors:g,error:m,getLevel:i,info:a,printDiagnostics:$,setLevel:s,setLogFilePath:o,warn:c,writeLogs:w,bgRed:ee.bgRed,blue:ee.blue,bold:ee.bold,cyan:ee.cyan,dim:ee.dim,gray:ee.gray,green:ee.green,magenta:ee.magenta,red:ee.red,yellow:ee.yellow}},qt=(r,e)=>qn.indexOf(e)>=qn.indexOf(r),Wr=()=>{let r=new Date,e=Xr(r.getMinutes()),t=Xr(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},Xr=r=>("0"+r.toString()).slice(-2),yt=(r,e)=>{let t=[],n=[];r.forEach(i=>{i===null?n.push("null"):typeof i>"u"?n.push("undefined"):typeof i=="string"?i.replace(/\s/gm," ").split(" ").forEach(o=>{o.trim().length&&n.push(o.trim())}):typeof i=="number"||typeof i=="boolean"||typeof i=="function"?n.push(i.toString()):Array.isArray(i)?n.push(()=>i.toString()):Object(i)===i?n.push(()=>i.toString()):n.push(i.toString())});let s=Tt;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Tt):Tt.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Tt+i),s=Tt):i.length+s.length>e-1?(t.push(s),s=Tt+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Oo=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!Ao(t))return t;for(let s=0;s<t.length;s++)if(t[s].text=t[s].text.slice(1),t[s].errorCharStart--,!t[s].text.length)return t}return t},Ao=r=>{if(!r.length)return!1;for(let e=0;e<r.length;e++){if(!r[e].text||r[e].text.length<1)return!1;let t=r[e].text.charAt(0);if(t!==" "&&t!==" ")return!1}return!0},No=r=>r?(r=r.trim(),r.length>0):!1,Do=["abstract","any","as","break","boolean","case","catch","class","console","const","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","import","in","implements","Infinity","instanceof","let","module","namespace","NaN","new","number","null","public","private","protected","require","return","static","set","string","super","switch","this","throw","try","true","type","typeof","undefined","var","void","with","while","yield"],Tt=" ";var Jr=()=>{let r=wo();return zr(r)};function wo(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var m,S;let p=(S=(m=process==null?void 0:process.stdout)==null?void 0:m.columns)!=null?S:80;return Math.max(Math.min(p,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>Gr.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{On.default.accessSync(a)}catch{c=!1}c?On.default.appendFileSync(a,u):On.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=m=>(m=m.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise(S=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(m,S)}))),p=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:p}}}}var Vr=()=>{};var _n=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var Kr=r=>typeof r=="function";var jt=r=>typeof r=="string";var Yr=r=>{let e={"{":"}","(":")","[":"]"},t=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(r==="")return!1;let n;for(;n=t.exec(r);){if(n[2])return!0;let s=n.index+n[0].length,i=n[1],o=i?e[i]:null;if(i&&o){let a=r.indexOf(o,s);a!==-1&&(s=a+1)}r=r.slice(s)}return!1};var fn=r=>{let e={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:void 0,absFilePath:void 0,lines:[]};return r&&r.push(e),e};var er=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return jt(t)?n.messageText=t.length?t:"UNKNOWN ERROR":e!=null&&(e.stack!=null?n.messageText=e.stack.toString():e.message!=null?n.messageText=e.message.length?e.message:"UNKNOWN ERROR":n.messageText=e.toString()),r!=null&&!tr(n.messageText)&&r.push(n),n};var tr=r=>r===Ut,Ut="task canceled";var ye=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=Bo(r.trim());let t=Jo(r,Xo(r)),n=Wo(t),s=n[0],i=n[1],o=s+n.slice(1).join("/");return o===""?".":s===""&&i&&r.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")&&e?"./"+o:o},Bo=r=>r.replace(Uo,"/"),jo="\\",Qr="://",Uo=/\\/g,Wo=r=>{if(!Array.isArray(r)||r.length===0)return[];let e=[r[0]];for(let t=1;t<r.length;t++){let n=r[t];if(n&&n!=="."){if(n===".."){if(e.length>1){if(e[e.length-1]!==".."){e.pop();continue}}else if(e[0])continue}e.push(n)}}return e},Xo=r=>{let e=zo(r);return e<0?~e:e},zo=r=>{if(!r)return 0;let e=r.charCodeAt(0);if(e===47||e===92){if(r.charCodeAt(1)!==e)return 1;let n=r.indexOf(e===47?"/":jo,2);return n<0?r.length:n+1}if(Zr(e)&&r.charCodeAt(1)===58){let n=r.charCodeAt(2);if(n===47||n===92)return 3;if(r.length===2)return 2}let t=r.indexOf(Qr);if(t!==-1){let n=t+Qr.length,s=r.indexOf("/",n);if(s!==-1){let i=r.slice(0,t),o=r.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&Zr(r.charCodeAt(s+1))){let a=Go(r,s+2);if(a!==-1){if(r.charCodeAt(a)===47)return~(a+1);if(a===r.length)return~a}}return~(s+1)}return~r.length}return 0},Zr=r=>r>=97&&r<=122||r>=65&&r<=90,Go=(r,e)=>{let t=r.charCodeAt(e);if(t===58)return e+1;if(t===37&&r.charCodeAt(e+1)===51){let n=r.charCodeAt(e+2);if(n===97||n===65)return e+3}return-1},Jo=(r,e)=>{let t=r.substring(0,e),n=r.substring(e).split("/"),s=n.length;return s>0&&!n[s-1]&&n.pop(),[t,...n]};var qr=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var rr={};Pr(rr,{err:()=>_r,map:()=>Vo,ok:()=>nr,unwrap:()=>Ko,unwrapErr:()=>Yo});var nr=r=>({isOk:!0,isErr:!1,value:r}),_r=r=>({isOk:!1,isErr:!0,value:r});function Vo(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>nr(n)):nr(t)}if(r.isErr){let t=r.value;return _r(t)}throw"should never get here"}var Ko=r=>{if(r.isOk)return r.value;throw r.value},Yo=r=>{if(r.isErr)return r.value;throw r.value};var ie={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};var Zo={isDev:!!ie.isDev,isBrowser:!0,isServer:!1,isTesting:!!ie.isTesting};var Qd=ie.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var pt=typeof window<"u"?window:{},sf=pt.HTMLElement||class{};var _t=ie.shadowDom;var ts=ie.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})():!1;/**
51
51
  * @license
52
52
  * Copyright Google Inc. All Rights Reserved.
53
53
  *
@@ -57,8 +57,8 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof w))re
57
57
  * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
58
58
  * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
59
59
  * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
60
- */var is="-shadowcsshost",ua="-shadowcssslotted",da="-shadowcsscontext",or=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Yf=new RegExp("("+is+or,"gim"),Qf=new RegExp("("+da+or,"gim"),Zf=new RegExp("("+ua+or,"gim"),qf=is+"-no-combinator";var ar=r=>{let e=qr(r);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},_f=ar("::slotted"),ep=ar(":host"),tp=ar(":host-context");var ga="Capture",Dp=new RegExp(ga+"$");var gn=r=>e=>r(e.toLowerCase()),Ba=gn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),hy=gn(r=>!Ba(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),my=gn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),gy=gn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),yy=gn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function ds(r){r.process.on("unhandledRejection",e=>{if(!tr(e)){let t="unhandledRejection";e!=null&&(typeof e=="string"?t+=": "+e:e.stack?t+=": "+e.stack:e.message&&(t+=": "+e.message)),r.logger.error(t)}})}var lo=be(ps()),Dr=require("crypto"),co=be(ms()),de=be(require("./graceful-fs.js")),rt=require("os"),uo=be(require("os")),fe=be(require("path"));var gs=()=>{let r=[],e=i=>{let o=r.findIndex(a=>a.callback===i);return o>-1?(r.splice(o,1),!0):!1};return{emit:(i,o)=>{let a=i.toLowerCase().trim(),u=r.slice();for(let c of u)if(c.eventName==null)try{c.callback(i,o)}catch(p){console.error(p)}else if(c.eventName===a)try{c.callback(o)}catch(p){console.error(p)}},on:(i,o)=>{if(typeof i=="function"){let u=i;return r.push({eventName:null,callback:u}),()=>e(u)}else if(typeof i=="string"&&typeof o=="function"){let a=i.toLowerCase().trim(),u=o;return r.push({eventName:a,callback:u}),()=>e(u)}return()=>!1},unsubscribeAll:()=>{r.length=0}}};var Bs=be(As(),1);var vn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var Va={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},bn=r=>r.replace(/[[\]\\-]/g,"\\$&"),Ka=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ns=r=>r.join(""),Ds=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let n=[],s=[],i=t+1,o=!1,a=!1,u=!1,c=!1,p=t,m="";e:for(;i<r.length;){let b=r.charAt(i);if((b==="!"||b==="^")&&i===t+1){c=!0,i++;continue}if(b==="]"&&o&&!u){p=i+1;break}if(o=!0,b==="\\"&&!u){u=!0,i++;continue}if(b==="["&&!u){for(let[x,[N,O,I]]of Object.entries(Va))if(r.startsWith(x,i)){if(m)return["$.",!1,r.length-t,!0];i+=x.length,I?s.push(N):n.push(N),a=a||O;continue e}}if(u=!1,m){b>m?n.push(bn(m)+"-"+bn(b)):b===m&&n.push(bn(b)),m="",i++;continue}if(r.startsWith("-]",i+1)){n.push(bn(b+"-")),i+=2;continue}if(r.startsWith("-",i+1)){m=b,i+=2;continue}n.push(bn(b)),i++}if(p<i)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,r.length-t,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let b=n[0].length===2?n[0].slice(-1):n[0];return[Ka(b),!1,p-t,!1]}let S="["+(c?"^":"")+Ns(n)+"]",T="["+(c?"":"^")+Ns(s)+"]";return[n.length&&s.length?"("+S+"|"+T+")":n.length?S:T,a,p-t,!0]};var ht=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Ya=new Set(["!","?","+","*","@"]),ws=r=>Ya.has(r),Qa="(?!(?:^|/)\\.\\.?(?:$|/))",An="(?!\\.)",Za=new Set(["[","."]),qa=new Set(["..","."]),_a=new Set("().*{}+?[]^$\\!"),el=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr="[^/]",ks=hr+"*?",Ps=hr+"+?",Le,Ne,Ct,Ee,Te,kt,zt,Pt,vt,Gt,En,Jt,Is,It,Nn,pr,Ms,Ue=class Ue{constructor(e,t,n={}){je(this,Jt);Kn(this,"type");je(this,Le);je(this,Ne);je(this,Ct,!1);je(this,Ee,[]);je(this,Te);je(this,kt);je(this,zt);je(this,Pt,!1);je(this,vt);je(this,Gt);je(this,En,!1);this.type=e,e&&Se(this,Ne,!0),Se(this,Te,t),Se(this,Le,X(this,Te)?X(X(this,Te),Le):this),Se(this,vt,X(this,Le)===this?n:X(X(this,Le),vt)),Se(this,zt,X(this,Le)===this?[]:X(X(this,Le),zt)),e==="!"&&!X(X(this,Le),Pt)&&X(this,zt).push(this),Se(this,kt,X(this,Te)?X(X(this,Te),Ee).length:0)}get hasMagic(){if(X(this,Ne)!==void 0)return X(this,Ne);for(let e of X(this,Ee))if(typeof e!="string"&&(e.type||e.hasMagic))return Se(this,Ne,!0);return X(this,Ne)}toString(){return X(this,Gt)!==void 0?X(this,Gt):this.type?Se(this,Gt,this.type+"("+X(this,Ee).map(e=>String(e)).join("|")+")"):Se(this,Gt,X(this,Ee).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof Ue&&X(t,Te)===this))throw new Error("invalid part: "+t);X(this,Ee).push(t)}}toJSON(){var t;let e=this.type===null?X(this,Ee).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...X(this,Ee).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===X(this,Le)||X(X(this,Le),Pt)&&((t=X(this,Te))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(X(this,Le)===this)return!0;if(!((t=X(this,Te))!=null&&t.isStart()))return!1;if(X(this,kt)===0)return!0;let e=X(this,Te);for(let n=0;n<X(this,kt);n++){let s=X(e,Ee)[n];if(!(s instanceof Ue&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(X(this,Le)===this||((t=X(this,Te))==null?void 0:t.type)==="!")return!0;if(!((n=X(this,Te))!=null&&n.isEnd()))return!1;if(!this.type)return(s=X(this,Te))==null?void 0:s.isEnd();let e=X(this,Te)?X(X(this,Te),Ee).length:0;return X(this,kt)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new Ue(this.type,e);for(let n of X(this,Ee))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new Ue(null,void 0,t);return wt(s=Ue,It,Nn).call(s,e,n,0,t),n}toMMPattern(){if(this!==X(this,Le))return X(this,Le).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||X(this,Ne)||X(this,vt).nocase&&!X(this,vt).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(X(this,vt).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return X(this,vt)}toRegExpSource(e){var u;let t=e!=null?e:!!X(this,vt).dot;if(X(this,Le)===this&&wt(this,Jt,Is).call(this),!this.type){let c=this.isStart()&&this.isEnd(),p=X(this,Ee).map(h=>{var I;let[b,x,N,O]=typeof h=="string"?wt(I=Ue,It,Ms).call(I,h,X(this,Ne),c):h.toRegExpSource(e);return Se(this,Ne,X(this,Ne)||N),Se(this,Ct,X(this,Ct)||O),b}).join(""),m="";if(this.isStart()&&typeof X(this,Ee)[0]=="string"&&!(X(this,Ee).length===1&&qa.has(X(this,Ee)[0]))){let b=Za,x=t&&b.has(p.charAt(0))||p.startsWith("\\.")&&b.has(p.charAt(2))||p.startsWith("\\.\\.")&&b.has(p.charAt(4)),N=!t&&!e&&b.has(p.charAt(0));m=x?Qa:N?An:""}let S="";return this.isEnd()&&X(X(this,Le),Pt)&&((u=X(this,Te))==null?void 0:u.type)==="!"&&(S="(?:$|\\/)"),[m+p+S,ht(p),Se(this,Ne,!!X(this,Ne)),X(this,Ct)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=wt(this,Jt,pr).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString();return Se(this,Ee,[c]),this.type=null,Se(this,Ne,void 0),[c,ht(this.toString()),!1,!1]}let o=!n||e||t||!An?"":wt(this,Jt,pr).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&X(this,En))a=(this.isStart()&&!t?An:"")+Ps;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?An:"")+ks+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,ht(i),Se(this,Ne,!!X(this,Ne)),X(this,Ct)]}};Le=new WeakMap,Ne=new WeakMap,Ct=new WeakMap,Ee=new WeakMap,Te=new WeakMap,kt=new WeakMap,zt=new WeakMap,Pt=new WeakMap,vt=new WeakMap,Gt=new WeakMap,En=new WeakMap,Jt=new WeakSet,Is=function(){if(this!==X(this,Le))throw new Error("should only call on root");if(X(this,Pt))return this;this.toString(),Se(this,Pt,!0);let e;for(;e=X(this,zt).pop();){if(e.type!=="!")continue;let t=e,n=X(t,Te);for(;n;){for(let s=X(t,kt)+1;!n.type&&s<X(n,Ee).length;s++)for(let i of X(e,Ee)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(X(n,Ee)[s])}t=n,n=X(t,Te)}}return this},It=new WeakSet,Nn=function(e,t,n,s){var T,h;let i=!1,o=!1,a=-1,u=!1;if(t.type===null){let b=n,x="";for(;b<e.length;){let N=e.charAt(b++);if(i||N==="\\"){i=!i,x+=N;continue}if(o){b===a+1?(N==="^"||N==="!")&&(u=!0):N==="]"&&!(b===a+2&&u)&&(o=!1),x+=N;continue}else if(N==="["){o=!0,a=b,u=!1,x+=N;continue}if(!s.noext&&ws(N)&&e.charAt(b)==="("){t.push(x),x="";let O=new Ue(N,t);b=wt(T=Ue,It,Nn).call(T,e,O,b,s),t.push(O);continue}x+=N}return t.push(x),b}let c=n+1,p=new Ue(null,t),m=[],S="";for(;c<e.length;){let b=e.charAt(c++);if(i||b==="\\"){i=!i,S+=b;continue}if(o){c===a+1?(b==="^"||b==="!")&&(u=!0):b==="]"&&!(c===a+2&&u)&&(o=!1),S+=b;continue}else if(b==="["){o=!0,a=c,u=!1,S+=b;continue}if(ws(b)&&e.charAt(c)==="("){p.push(S),S="";let x=new Ue(b,p);p.push(x),c=wt(h=Ue,It,Nn).call(h,e,x,c,s);continue}if(b==="|"){p.push(S),S="",m.push(p),p=new Ue(null,t);continue}if(b===")")return S===""&&X(t,Ee).length===0&&Se(t,En,!0),p.push(S),S="",t.push(...m,p),c;S+=b}return t.type=null,Se(t,Ne,void 0),Se(t,Ee,[e.substring(n-1)]),c},pr=function(e){return X(this,Ee).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return Se(this,Ct,X(this,Ct)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Ms=function(e,t,n=!1){let s=!1,i="",o=!1;for(let a=0;a<e.length;a++){let u=e.charAt(a);if(s){s=!1,i+=(_a.has(u)?"\\":"")+u;continue}if(u==="\\"){a===e.length-1?i+="\\\\":s=!0;continue}if(u==="["){let[c,p,m,S]=Ds(e,a);if(m){i+=c,o=o||p,a+=m-1,t=t||S;continue}}if(u==="*"){n&&e==="*"?i+=Ps:i+=ks,t=!0;continue}if(u==="?"){i+=hr,t=!0;continue}i+=el(u)}return[i,ht(e),!!t,o]},je(Ue,It);var en=Ue;var tn=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var We=(r,e,t={})=>(vn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Lt(e,t).match(r)),tl=/^\*+([^+@!?\*\[\(]*)$/,nl=r=>e=>!e.startsWith(".")&&e.endsWith(r),rl=r=>e=>e.endsWith(r),sl=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),il=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),ol=/^\*+\.\*+$/,al=r=>!r.startsWith(".")&&r.includes("."),ll=r=>r!=="."&&r!==".."&&r.includes("."),cl=/^\.\*+$/,ul=r=>r!=="."&&r!==".."&&r.startsWith("."),dl=/^\*+$/,fl=r=>r.length!==0&&!r.startsWith("."),pl=r=>r.length!==0&&r!=="."&&r!=="..",hl=/^\?+([^+@!?\*\[\(]*)?$/,ml=([r,e=""])=>{let t=js([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},gl=([r,e=""])=>{let t=Us([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},yl=([r,e=""])=>{let t=Us([r]);return e?n=>t(n)&&n.endsWith(e):t},vl=([r,e=""])=>{let t=js([r]);return e?n=>t(n)&&n.endsWith(e):t},js=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Us=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Ws=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Fs={win32:{sep:"\\"},posix:{sep:"/"}},bl=Ws==="win32"?Fs.win32.sep:Fs.posix.sep;We.sep=bl;var et=Symbol("globstar **");We.GLOBSTAR=et;var El="[^/]",Sl=El+"*?",xl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$l="(?:(?!(?:\\/|^)\\.).)*?",Tl=(r,e={})=>t=>We(t,r,e);We.filter=Tl;var nt=(r,e={})=>Object.assign({},r,e),Cl=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return We;let e=We;return Object.assign((n,s,i={})=>e(n,s,nt(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,nt(r,i))}static defaults(s){return e.defaults(nt(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,nt(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,nt(r,i))}},unescape:(n,s={})=>e.unescape(n,nt(r,s)),escape:(n,s={})=>e.escape(n,nt(r,s)),filter:(n,s={})=>e.filter(n,nt(r,s)),defaults:n=>e.defaults(nt(r,n)),makeRe:(n,s={})=>e.makeRe(n,nt(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,nt(r,s)),match:(n,s,i={})=>e.match(n,s,nt(r,i)),sep:e.sep,GLOBSTAR:et})};We.defaults=Cl;var Xs=(r,e={})=>(vn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Bs.default)(r));We.braceExpand=Xs;var Ll=(r,e={})=>new Lt(r,e).makeRe();We.makeRe=Ll;var Rl=(r,e,t={})=>{let n=new Lt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};We.match=Rl;var Hs=/[?*]|[+@!]\(.*?\)|\[|\]/,Ol=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){vn(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Ws,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!Hs.test(i[2]))&&!Hs.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(p=>this.parse(p))];if(c)return[i[0],...i.slice(1).map(p=>this.parse(p))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let s=0;s<e[n].length;s++)e[n][s]==="**"&&(e[n][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let s=n;for(;t[s+1]==="**";)s++;s!==n&&t.splice(n,s-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,s)=>{let i=n[n.length-1];return s==="**"&&i==="**"?n:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(s),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let o=s;for(;n[o+1]==="**";)o++;o>s&&n.splice(s+1,o-s);let a=n[s+1],u=n[s+2],c=n[s+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(s,1);let p=n.slice(0);p[s]="**",e.push(p),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){let o=n[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let s=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);s&&(e[t]=s,e[n]=[])}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(n&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(n&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[i]),s++,i++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let s=this.options;if(this.isWindows){let b=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),x=!b&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),N=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),O=!N&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),I=x?3:b?0:void 0,w=O?3:N?0:void 0;if(typeof I=="number"&&typeof w=="number"){let[g,$]=[e[I],t[w]];g.toLowerCase()===$.toLowerCase()&&(t[w]=g,w>I?t=t.slice(w):I>w&&(e=e.slice(I)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,u=e.length,c=t.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var p=t[a],m=e[o];if(this.debug(t,p,m),p===!1)return!1;if(p===et){this.debug("GLOBSTAR",[t,p,m]);var S=o,T=a+1;if(T===c){for(this.debug("** at the end");o<u;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;S<u;){var h=e[S];if(this.debug(`
60
+ */var is="-shadowcsshost",ua="-shadowcssslotted",da="-shadowcsscontext",or=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Yf=new RegExp("("+is+or,"gim"),Qf=new RegExp("("+da+or,"gim"),Zf=new RegExp("("+ua+or,"gim"),qf=is+"-no-combinator";var ar=r=>{let e=qr(r);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},_f=ar("::slotted"),ep=ar(":host"),tp=ar(":host-context");var ga="Capture",Dp=new RegExp(ga+"$");var gn=r=>e=>r(e.toLowerCase()),Ba=gn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),hy=gn(r=>!Ba(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),my=gn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),gy=gn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),yy=gn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function ds(r){r.process.on("unhandledRejection",e=>{if(!tr(e)){let t="unhandledRejection";e!=null&&(typeof e=="string"?t+=": "+e:e.stack?t+=": "+e.stack:e.message&&(t+=": "+e.message)),r.logger.error(t)}})}var lo=be(ps()),Dr=require("crypto"),co=be(ms()),de=be(require("./graceful-fs.js")),rt=require("os"),uo=be(require("os")),fe=be(require("path"));var gs=()=>{let r=[],e=i=>{let o=r.findIndex(a=>a.callback===i);return o>-1?(r.splice(o,1),!0):!1};return{emit:(i,o)=>{let a=i.toLowerCase().trim(),u=r.slice();for(let c of u)if(c.eventName==null)try{c.callback(i,o)}catch(p){console.error(p)}else if(c.eventName===a)try{c.callback(o)}catch(p){console.error(p)}},on:(i,o)=>{if(typeof i=="function"){let u=i;return r.push({eventName:null,callback:u}),()=>e(u)}else if(typeof i=="string"&&typeof o=="function"){let a=i.toLowerCase().trim(),u=o;return r.push({eventName:a,callback:u}),()=>e(u)}return()=>!1},unsubscribeAll:()=>{r.length=0}}};var Bs=be(As(),1);var vn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var Va={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},bn=r=>r.replace(/[[\]\\-]/g,"\\$&"),Ka=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ns=r=>r.join(""),Ds=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let n=[],s=[],i=t+1,o=!1,a=!1,u=!1,c=!1,p=t,m="";e:for(;i<r.length;){let b=r.charAt(i);if((b==="!"||b==="^")&&i===t+1){c=!0,i++;continue}if(b==="]"&&o&&!u){p=i+1;break}if(o=!0,b==="\\"&&!u){u=!0,i++;continue}if(b==="["&&!u){for(let[x,[N,O,I]]of Object.entries(Va))if(r.startsWith(x,i)){if(m)return["$.",!1,r.length-t,!0];i+=x.length,I?s.push(N):n.push(N),a=a||O;continue e}}if(u=!1,m){b>m?n.push(bn(m)+"-"+bn(b)):b===m&&n.push(bn(b)),m="",i++;continue}if(r.startsWith("-]",i+1)){n.push(bn(b+"-")),i+=2;continue}if(r.startsWith("-",i+1)){m=b,i+=2;continue}n.push(bn(b)),i++}if(p<i)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,r.length-t,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let b=n[0].length===2?n[0].slice(-1):n[0];return[Ka(b),!1,p-t,!1]}let S="["+(c?"^":"")+Ns(n)+"]",T="["+(c?"":"^")+Ns(s)+"]";return[n.length&&s.length?"("+S+"|"+T+")":n.length?S:T,a,p-t,!0]};var mt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Ya=new Set(["!","?","+","*","@"]),ws=r=>Ya.has(r),Qa="(?!(?:^|/)\\.\\.?(?:$|/))",An="(?!\\.)",Za=new Set(["[","."]),qa=new Set(["..","."]),_a=new Set("().*{}+?[]^$\\!"),el=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr="[^/]",ks=hr+"*?",Ps=hr+"+?",Le,Ne,Ct,Ee,Te,kt,zt,Pt,vt,Gt,En,Jt,Is,It,Nn,pr,Ms,Ue=class Ue{constructor(e,t,n={}){je(this,Jt);Kn(this,"type");je(this,Le);je(this,Ne);je(this,Ct,!1);je(this,Ee,[]);je(this,Te);je(this,kt);je(this,zt);je(this,Pt,!1);je(this,vt);je(this,Gt);je(this,En,!1);this.type=e,e&&Se(this,Ne,!0),Se(this,Te,t),Se(this,Le,X(this,Te)?X(X(this,Te),Le):this),Se(this,vt,X(this,Le)===this?n:X(X(this,Le),vt)),Se(this,zt,X(this,Le)===this?[]:X(X(this,Le),zt)),e==="!"&&!X(X(this,Le),Pt)&&X(this,zt).push(this),Se(this,kt,X(this,Te)?X(X(this,Te),Ee).length:0)}get hasMagic(){if(X(this,Ne)!==void 0)return X(this,Ne);for(let e of X(this,Ee))if(typeof e!="string"&&(e.type||e.hasMagic))return Se(this,Ne,!0);return X(this,Ne)}toString(){return X(this,Gt)!==void 0?X(this,Gt):this.type?Se(this,Gt,this.type+"("+X(this,Ee).map(e=>String(e)).join("|")+")"):Se(this,Gt,X(this,Ee).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof Ue&&X(t,Te)===this))throw new Error("invalid part: "+t);X(this,Ee).push(t)}}toJSON(){var t;let e=this.type===null?X(this,Ee).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...X(this,Ee).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===X(this,Le)||X(X(this,Le),Pt)&&((t=X(this,Te))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(X(this,Le)===this)return!0;if(!((t=X(this,Te))!=null&&t.isStart()))return!1;if(X(this,kt)===0)return!0;let e=X(this,Te);for(let n=0;n<X(this,kt);n++){let s=X(e,Ee)[n];if(!(s instanceof Ue&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(X(this,Le)===this||((t=X(this,Te))==null?void 0:t.type)==="!")return!0;if(!((n=X(this,Te))!=null&&n.isEnd()))return!1;if(!this.type)return(s=X(this,Te))==null?void 0:s.isEnd();let e=X(this,Te)?X(X(this,Te),Ee).length:0;return X(this,kt)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new Ue(this.type,e);for(let n of X(this,Ee))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new Ue(null,void 0,t);return wt(s=Ue,It,Nn).call(s,e,n,0,t),n}toMMPattern(){if(this!==X(this,Le))return X(this,Le).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||X(this,Ne)||X(this,vt).nocase&&!X(this,vt).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(X(this,vt).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return X(this,vt)}toRegExpSource(e){var u;let t=e!=null?e:!!X(this,vt).dot;if(X(this,Le)===this&&wt(this,Jt,Is).call(this),!this.type){let c=this.isStart()&&this.isEnd(),p=X(this,Ee).map(h=>{var I;let[b,x,N,O]=typeof h=="string"?wt(I=Ue,It,Ms).call(I,h,X(this,Ne),c):h.toRegExpSource(e);return Se(this,Ne,X(this,Ne)||N),Se(this,Ct,X(this,Ct)||O),b}).join(""),m="";if(this.isStart()&&typeof X(this,Ee)[0]=="string"&&!(X(this,Ee).length===1&&qa.has(X(this,Ee)[0]))){let b=Za,x=t&&b.has(p.charAt(0))||p.startsWith("\\.")&&b.has(p.charAt(2))||p.startsWith("\\.\\.")&&b.has(p.charAt(4)),N=!t&&!e&&b.has(p.charAt(0));m=x?Qa:N?An:""}let S="";return this.isEnd()&&X(X(this,Le),Pt)&&((u=X(this,Te))==null?void 0:u.type)==="!"&&(S="(?:$|\\/)"),[m+p+S,mt(p),Se(this,Ne,!!X(this,Ne)),X(this,Ct)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=wt(this,Jt,pr).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString();return Se(this,Ee,[c]),this.type=null,Se(this,Ne,void 0),[c,mt(this.toString()),!1,!1]}let o=!n||e||t||!An?"":wt(this,Jt,pr).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&X(this,En))a=(this.isStart()&&!t?An:"")+Ps;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?An:"")+ks+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,mt(i),Se(this,Ne,!!X(this,Ne)),X(this,Ct)]}};Le=new WeakMap,Ne=new WeakMap,Ct=new WeakMap,Ee=new WeakMap,Te=new WeakMap,kt=new WeakMap,zt=new WeakMap,Pt=new WeakMap,vt=new WeakMap,Gt=new WeakMap,En=new WeakMap,Jt=new WeakSet,Is=function(){if(this!==X(this,Le))throw new Error("should only call on root");if(X(this,Pt))return this;this.toString(),Se(this,Pt,!0);let e;for(;e=X(this,zt).pop();){if(e.type!=="!")continue;let t=e,n=X(t,Te);for(;n;){for(let s=X(t,kt)+1;!n.type&&s<X(n,Ee).length;s++)for(let i of X(e,Ee)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(X(n,Ee)[s])}t=n,n=X(t,Te)}}return this},It=new WeakSet,Nn=function(e,t,n,s){var T,h;let i=!1,o=!1,a=-1,u=!1;if(t.type===null){let b=n,x="";for(;b<e.length;){let N=e.charAt(b++);if(i||N==="\\"){i=!i,x+=N;continue}if(o){b===a+1?(N==="^"||N==="!")&&(u=!0):N==="]"&&!(b===a+2&&u)&&(o=!1),x+=N;continue}else if(N==="["){o=!0,a=b,u=!1,x+=N;continue}if(!s.noext&&ws(N)&&e.charAt(b)==="("){t.push(x),x="";let O=new Ue(N,t);b=wt(T=Ue,It,Nn).call(T,e,O,b,s),t.push(O);continue}x+=N}return t.push(x),b}let c=n+1,p=new Ue(null,t),m=[],S="";for(;c<e.length;){let b=e.charAt(c++);if(i||b==="\\"){i=!i,S+=b;continue}if(o){c===a+1?(b==="^"||b==="!")&&(u=!0):b==="]"&&!(c===a+2&&u)&&(o=!1),S+=b;continue}else if(b==="["){o=!0,a=c,u=!1,S+=b;continue}if(ws(b)&&e.charAt(c)==="("){p.push(S),S="";let x=new Ue(b,p);p.push(x),c=wt(h=Ue,It,Nn).call(h,e,x,c,s);continue}if(b==="|"){p.push(S),S="",m.push(p),p=new Ue(null,t);continue}if(b===")")return S===""&&X(t,Ee).length===0&&Se(t,En,!0),p.push(S),S="",t.push(...m,p),c;S+=b}return t.type=null,Se(t,Ne,void 0),Se(t,Ee,[e.substring(n-1)]),c},pr=function(e){return X(this,Ee).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return Se(this,Ct,X(this,Ct)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Ms=function(e,t,n=!1){let s=!1,i="",o=!1;for(let a=0;a<e.length;a++){let u=e.charAt(a);if(s){s=!1,i+=(_a.has(u)?"\\":"")+u;continue}if(u==="\\"){a===e.length-1?i+="\\\\":s=!0;continue}if(u==="["){let[c,p,m,S]=Ds(e,a);if(m){i+=c,o=o||p,a+=m-1,t=t||S;continue}}if(u==="*"){n&&e==="*"?i+=Ps:i+=ks,t=!0;continue}if(u==="?"){i+=hr,t=!0;continue}i+=el(u)}return[i,mt(e),!!t,o]},je(Ue,It);var en=Ue;var tn=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var We=(r,e,t={})=>(vn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Lt(e,t).match(r)),tl=/^\*+([^+@!?\*\[\(]*)$/,nl=r=>e=>!e.startsWith(".")&&e.endsWith(r),rl=r=>e=>e.endsWith(r),sl=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),il=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),ol=/^\*+\.\*+$/,al=r=>!r.startsWith(".")&&r.includes("."),ll=r=>r!=="."&&r!==".."&&r.includes("."),cl=/^\.\*+$/,ul=r=>r!=="."&&r!==".."&&r.startsWith("."),dl=/^\*+$/,fl=r=>r.length!==0&&!r.startsWith("."),pl=r=>r.length!==0&&r!=="."&&r!=="..",hl=/^\?+([^+@!?\*\[\(]*)?$/,ml=([r,e=""])=>{let t=js([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},gl=([r,e=""])=>{let t=Us([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},yl=([r,e=""])=>{let t=Us([r]);return e?n=>t(n)&&n.endsWith(e):t},vl=([r,e=""])=>{let t=js([r]);return e?n=>t(n)&&n.endsWith(e):t},js=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Us=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Ws=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Fs={win32:{sep:"\\"},posix:{sep:"/"}},bl=Ws==="win32"?Fs.win32.sep:Fs.posix.sep;We.sep=bl;var et=Symbol("globstar **");We.GLOBSTAR=et;var El="[^/]",Sl=El+"*?",xl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$l="(?:(?!(?:\\/|^)\\.).)*?",Tl=(r,e={})=>t=>We(t,r,e);We.filter=Tl;var nt=(r,e={})=>Object.assign({},r,e),Cl=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return We;let e=We;return Object.assign((n,s,i={})=>e(n,s,nt(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,nt(r,i))}static defaults(s){return e.defaults(nt(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,nt(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,nt(r,i))}},unescape:(n,s={})=>e.unescape(n,nt(r,s)),escape:(n,s={})=>e.escape(n,nt(r,s)),filter:(n,s={})=>e.filter(n,nt(r,s)),defaults:n=>e.defaults(nt(r,n)),makeRe:(n,s={})=>e.makeRe(n,nt(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,nt(r,s)),match:(n,s,i={})=>e.match(n,s,nt(r,i)),sep:e.sep,GLOBSTAR:et})};We.defaults=Cl;var Xs=(r,e={})=>(vn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Bs.default)(r));We.braceExpand=Xs;var Ll=(r,e={})=>new Lt(r,e).makeRe();We.makeRe=Ll;var Rl=(r,e,t={})=>{let n=new Lt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};We.match=Rl;var Hs=/[?*]|[+@!]\(.*?\)|\[|\]/,Ol=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){vn(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Ws,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!Hs.test(i[2]))&&!Hs.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(p=>this.parse(p))];if(c)return[i[0],...i.slice(1).map(p=>this.parse(p))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let s=0;s<e[n].length;s++)e[n][s]==="**"&&(e[n][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let s=n;for(;t[s+1]==="**";)s++;s!==n&&t.splice(n,s-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,s)=>{let i=n[n.length-1];return s==="**"&&i==="**"?n:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(s),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let o=s;for(;n[o+1]==="**";)o++;o>s&&n.splice(s+1,o-s);let a=n[s+1],u=n[s+2],c=n[s+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(s,1);let p=n.slice(0);p[s]="**",e.push(p),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){let o=n[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let s=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);s&&(e[t]=s,e[n]=[])}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(n&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(n&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[i]),s++,i++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let s=this.options;if(this.isWindows){let b=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),x=!b&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),N=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),O=!N&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),I=x?3:b?0:void 0,w=O?3:N?0:void 0;if(typeof I=="number"&&typeof w=="number"){let[g,$]=[e[I],t[w]];g.toLowerCase()===$.toLowerCase()&&(t[w]=g,w>I?t=t.slice(w):I>w&&(e=e.slice(I)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,u=e.length,c=t.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var p=t[a],m=e[o];if(this.debug(t,p,m),p===!1)return!1;if(p===et){this.debug("GLOBSTAR",[t,p,m]);var S=o,T=a+1;if(T===c){for(this.debug("** at the end");o<u;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;S<u;){var h=e[S];if(this.debug(`
61
61
  globstar while`,e,S,t,T,h),this.matchOne(e.slice(S),t.slice(T),n))return this.debug("globstar found match!",S,u,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,S,t,T);break}this.debug("globstar swallow a segment, and continue"),S++}return!!(n&&(this.debug(`
62
- >>> no match, partial?`,e,S,t,T),S===u))}let b;if(typeof p=="string"?(b=m===p,this.debug("string match",p,m,b)):(b=p.test(m),this.debug("pattern match",p,m,b)),!b)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Xs(this.pattern,this.options)}parse(e){vn(e);let t=this.options;if(e==="**")return et;if(e==="")return"";let n,s=null;(n=e.match(dl))?s=t.dot?pl:fl:(n=e.match(tl))?s=(t.nocase?t.dot?il:sl:t.dot?rl:nl)(n[1]):(n=e.match(hl))?s=(t.nocase?t.dot?gl:ml:t.dot?yl:vl)(n):(n=e.match(ol))?s=t.dot?ll:al:(n=e.match(cl))&&(s=ul);let i=en.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?Sl:t.dot?xl:$l,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(p=>{if(p instanceof RegExp)for(let m of p.flags.split(""))s.add(m);return typeof p=="string"?Ol(p):p===et?et:p._src});return c.forEach((p,m)=>{let S=c[m+1],T=c[m-1];p!==et||T===et||(T===void 0?S!==void 0&&S!==et?c[m+1]="(?:\\/|"+n+"\\/)?"+S:c[m]=n:S===void 0?c[m-1]=T+"(?:\\/|"+n+")?":S!==et&&(c[m-1]=T+"(?:\\/|\\/"+n+"\\/)"+S,c[m+1]=et))}),c.filter(p=>p!==et).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let u=i[a],c=s;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return We.defaults(e).Minimatch}};We.AST=en;We.Minimatch=Lt;We.escape=tn;We.unescape=ht;var Mt=require("./glob.js");var mr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Lt(t,e).hasMagic())return!0;return!1};var Pl=require("./glob.js");var $v=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function wn(r,e={}){return new Mt.Glob(r,e).streamSync()}function Gs(r,e={}){return new Mt.Glob(r,e).stream()}function Js(r,e={}){return new Mt.Glob(r,e).walkSync()}async function zs(r,e={}){return new Mt.Glob(r,e).walk()}function kn(r,e={}){return new Mt.Glob(r,e).iterateSync()}function Vs(r,e={}){return new Mt.Glob(r,e).iterate()}var Al=wn,Nl=Object.assign(Gs,{sync:wn}),Dl=kn,wl=Object.assign(Vs,{sync:kn}),kl=Object.assign(Js,{stream:wn,iterate:kn}),Dn=Object.assign(zs,{glob:zs,globSync:Js,sync:kl,globStream:Gs,stream:Nl,globStreamSync:wn,streamSync:Al,globIterate:Vs,iterate:wl,globIterateSync:kn,iterateSync:Dl,Glob:Mt.Glob,hasMagic:mr,escape:tn,unescape:ht});Dn.glob=Dn;var mt=be(require("path"));var nn=be(require("./graceful-fs.js")),rn=require("util"),Ks=(0,rn.promisify)(nn.default.copyFile),Ys=(0,rn.promisify)(nn.default.mkdir),Qs=(0,rn.promisify)(nn.default.readdir),wv=(0,rn.promisify)(nn.default.readFile),Zs=(0,rn.promisify)(nn.default.stat);async function _s(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=_n(await Promise.all(r.map(i=>Il(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>ei(t,n,o)))}let s=jl(n);try{await Promise.all(s.map(i=>Ys(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>Ks(o.src,o.dest)))}}catch(n){er(t.diagnostics,n)}return t}async function Il(r,e){return Yr(r.src)?await Fl(r,e):[{src:Ml(e,r.src),dest:r.keepDirStructure?mt.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function Ml(r,e){return mt.default.isAbsolute(e)?e:mt.default.join(r,e)}async function Fl(r,e){return(await gr(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>Hl(r,e,n))}function Hl(r,e,t){let n=mt.default.join(r.dest,r.keepDirStructure?t:mt.default.basename(t));return{src:mt.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function ei(r,e,t){try{t.src=ye(t.src),t.dest=ye(t.dest),(await Zs(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await Bl(r,e,t)):Wl(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=fn(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function Bl(r,e,t){try{let n=await Qs(t.src);await Promise.all(n.map(async s=>{let i={src:mt.default.join(t.src,s),dest:mt.default.join(t.dest,s),warn:t.warn};await ei(r,e,i)}))}catch(n){er(r.diagnostics,n)}}function jl(r){let e=[];return r.forEach(t=>{Ul(e,mt.default.dirname(t.dest))}),e.sort((t,n)=>{let s=t.split("/").length,i=n.split("/").length;return s<i?-1:s>i?1:t<n?-1:t>n?1:0}),e}function Ul(r,e){e=ye(e),!(e===qs||e+"/"===qs||e==="")&&(r.includes(e)||r.push(e))}var qs=ye(mt.default.resolve("/"));function Wl({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function gr(r,e){return Dn(r,e)}var zi=be(require("./graceful-fs.js")),Gi=be(require("path")),Ji=be(Er()),Vi=be(yi()),Ki=be(Xi()),jn=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t;this.ensured=new Set}async ensure(e,t){let n=[],s=[];if(t.forEach(i=>{if(!this.ensured.has(i)){let{minVersion:o,recommendedVersion:a,maxVersion:u}=this.lazyDependencies[i];try{let c=this.nodeResolveModule.resolveModule(e,i),p=JSON.parse(zi.default.readFileSync(c,"utf8"));if(u?(0,Ki.default)(p.version,`${o} - ${(0,Vi.default)(u)}.x`):(0,Ji.default)(o,p.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=fn(n);i.header="Please install supported versions of dev dependencies with either npm or yarn.",i.messageText=`npm install --save-dev ${s.join(" ")}`}return n}require(e,t){let n=this.getModulePath(e,t);return require(n)}getModulePath(e,t){let n=this.nodeResolveModule.resolveModule(e,t);return Gi.default.dirname(n)}};var Un=be(require("./graceful-fs.js")),Ke=be(require("path")),Wn=class{constructor(){this.resolveModuleCache=new Map}resolveModule(e,t,n){let s=`${e}:${t}`,i=this.resolveModuleCache.get(s);if(i)return i;if(n&&n.manuallyResolve)return this.resolveModuleManually(e,t,s);if(t.startsWith("@types/"))return this.resolveTypesModule(e,t,s);let o=require("module");e=Ke.default.resolve(e);let a=Ke.default.join(e,"noop.js"),u=ye(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=ye(Ke.default.parse(e).root),p;for(;u!==c;)if(u=ye(Ke.default.dirname(u)),p=Ke.default.join(u,"package.json"),!!Un.default.existsSync(p))return this.resolveModuleCache.set(s,p),p;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=ye(Ke.default.parse(e).root),o=ye(Ke.default.join(e,"noop.js")),a;for(;o!==i;)if(o=ye(Ke.default.dirname(o)),a=Ke.default.join(o,"node_modules",s[0],s[1],"package.json"),!!Un.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=ye(Ke.default.parse(e).root),i=ye(Ke.default.join(e,"noop.js")),o;for(;i!==s;)if(i=ye(Ke.default.dirname(i)),o=Ke.default.join(i,"node_modules",t,"package.json"),!!Un.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var Nr=be(require("./graceful-fs.js")),_i=require("os"),eo=be(require("path")),to=be(xr()),eu="https://registry.npmjs.org/@stencil/core",tu=1e3*60*60*24*7,Ar="https://github.com/stenciljs/core/blob/main/CHANGELOG.md";async function no(r,e){try{let t=await nu(r);if(t!=null)return()=>{(0,to.default)(e,t)?ou(r,e,t):console.debug(`${r.cyan("@stencil/core")} version ${r.green(e)} is the latest version`)}}catch(t){r.debug(`unable to load latest compiler version: ${t}`)}return Vr}async function nu(r){try{let e=await iu();if(e==null)return Yi(),null;if(!su(Date.now(),e,tu))return null;let t=Yi(),n=await ru(eu),s=JSON.parse(n);return await t,s["dist-tags"].latest}catch(e){r.debug(`getLatestCompilerVersion error: ${e}`)}return null}async function ru(r){let e=await import("https");return new Promise((t,n)=>{let s=e.request(r,i=>{if(i.statusCode>299){n(`url: ${r}, staus: ${i.statusCode}`);return}i.once("error",n);let o=[];i.once("end",()=>{t(o.join(""))}),i.on("data",a=>{o.push(a)})});s.once("error",n),s.end()})}function su(r,e,t){return e+t<r}function iu(){return new Promise(r=>{Nr.default.readFile(ro(),"utf8",(e,t)=>{if(!e&&jt(t))try{r(JSON.parse(t))}catch{}r(null)})})}function Yi(){return new Promise(r=>{let e=JSON.stringify(Date.now());Nr.default.writeFile(ro(),e,()=>{r()})})}function ro(){return eo.default.join((0,_i.tmpdir)(),"stencil_last_version_node.json")}function ou(r,e,t){let n="npm install @stencil/core",s=[`Update available: ${e} ${au} ${t}`,"To get the latest, please run:",n,Ar],i=s.reduce((p,m)=>m.length>p?m.length:p,0),o=[],a=lu;for(;a.length<=i+Xn*2;)a+=Zi;a+=cu,o.push(a),s.forEach(p=>{let m=Qi;for(let S=0;S<Xn;S++)m+=" ";for(m+=p;m.length<=i+Xn*2;)m+=" ";m+=Qi,o.push(m)});let u=uu;for(;u.length<=i+Xn*2;)u+=Zi;u+=du,o.push(u);let c=`${qi}${o.join(`
62
+ >>> no match, partial?`,e,S,t,T),S===u))}let b;if(typeof p=="string"?(b=m===p,this.debug("string match",p,m,b)):(b=p.test(m),this.debug("pattern match",p,m,b)),!b)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Xs(this.pattern,this.options)}parse(e){vn(e);let t=this.options;if(e==="**")return et;if(e==="")return"";let n,s=null;(n=e.match(dl))?s=t.dot?pl:fl:(n=e.match(tl))?s=(t.nocase?t.dot?il:sl:t.dot?rl:nl)(n[1]):(n=e.match(hl))?s=(t.nocase?t.dot?gl:ml:t.dot?yl:vl)(n):(n=e.match(ol))?s=t.dot?ll:al:(n=e.match(cl))&&(s=ul);let i=en.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?Sl:t.dot?xl:$l,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(p=>{if(p instanceof RegExp)for(let m of p.flags.split(""))s.add(m);return typeof p=="string"?Ol(p):p===et?et:p._src});return c.forEach((p,m)=>{let S=c[m+1],T=c[m-1];p!==et||T===et||(T===void 0?S!==void 0&&S!==et?c[m+1]="(?:\\/|"+n+"\\/)?"+S:c[m]=n:S===void 0?c[m-1]=T+"(?:\\/|"+n+")?":S!==et&&(c[m-1]=T+"(?:\\/|\\/"+n+"\\/)"+S,c[m+1]=et))}),c.filter(p=>p!==et).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let u=i[a],c=s;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return We.defaults(e).Minimatch}};We.AST=en;We.Minimatch=Lt;We.escape=tn;We.unescape=mt;var Mt=require("./glob.js");var mr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Lt(t,e).hasMagic())return!0;return!1};var Pl=require("./glob.js");var $v=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function wn(r,e={}){return new Mt.Glob(r,e).streamSync()}function Gs(r,e={}){return new Mt.Glob(r,e).stream()}function Js(r,e={}){return new Mt.Glob(r,e).walkSync()}async function zs(r,e={}){return new Mt.Glob(r,e).walk()}function kn(r,e={}){return new Mt.Glob(r,e).iterateSync()}function Vs(r,e={}){return new Mt.Glob(r,e).iterate()}var Al=wn,Nl=Object.assign(Gs,{sync:wn}),Dl=kn,wl=Object.assign(Vs,{sync:kn}),kl=Object.assign(Js,{stream:wn,iterate:kn}),Dn=Object.assign(zs,{glob:zs,globSync:Js,sync:kl,globStream:Gs,stream:Nl,globStreamSync:wn,streamSync:Al,globIterate:Vs,iterate:wl,globIterateSync:kn,iterateSync:Dl,Glob:Mt.Glob,hasMagic:mr,escape:tn,unescape:mt});Dn.glob=Dn;var gt=be(require("path"));var nn=be(require("./graceful-fs.js")),rn=require("util"),Ks=(0,rn.promisify)(nn.default.copyFile),Ys=(0,rn.promisify)(nn.default.mkdir),Qs=(0,rn.promisify)(nn.default.readdir),wv=(0,rn.promisify)(nn.default.readFile),Zs=(0,rn.promisify)(nn.default.stat);async function _s(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=_n(await Promise.all(r.map(i=>Il(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>ei(t,n,o)))}let s=jl(n);try{await Promise.all(s.map(i=>Ys(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>Ks(o.src,o.dest)))}}catch(n){er(t.diagnostics,n)}return t}async function Il(r,e){return Yr(r.src)?await Fl(r,e):[{src:Ml(e,r.src),dest:r.keepDirStructure?gt.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function Ml(r,e){return gt.default.isAbsolute(e)?e:gt.default.join(r,e)}async function Fl(r,e){return(await gr(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>Hl(r,e,n))}function Hl(r,e,t){let n=gt.default.join(r.dest,r.keepDirStructure?t:gt.default.basename(t));return{src:gt.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function ei(r,e,t){try{t.src=ye(t.src),t.dest=ye(t.dest),(await Zs(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await Bl(r,e,t)):Wl(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=fn(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function Bl(r,e,t){try{let n=await Qs(t.src);await Promise.all(n.map(async s=>{let i={src:gt.default.join(t.src,s),dest:gt.default.join(t.dest,s),warn:t.warn};await ei(r,e,i)}))}catch(n){er(r.diagnostics,n)}}function jl(r){let e=[];return r.forEach(t=>{Ul(e,gt.default.dirname(t.dest))}),e.sort((t,n)=>{let s=t.split("/").length,i=n.split("/").length;return s<i?-1:s>i?1:t<n?-1:t>n?1:0}),e}function Ul(r,e){e=ye(e),!(e===qs||e+"/"===qs||e==="")&&(r.includes(e)||r.push(e))}var qs=ye(gt.default.resolve("/"));function Wl({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function gr(r,e){return Dn(r,e)}var zi=be(require("./graceful-fs.js")),Gi=be(require("path")),Ji=be(Er()),Vi=be(yi()),Ki=be(Xi()),jn=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t;this.ensured=new Set}async ensure(e,t){let n=[],s=[];if(t.forEach(i=>{if(!this.ensured.has(i)){let{minVersion:o,recommendedVersion:a,maxVersion:u}=this.lazyDependencies[i];try{let c=this.nodeResolveModule.resolveModule(e,i),p=JSON.parse(zi.default.readFileSync(c,"utf8"));if(u?(0,Ki.default)(p.version,`${o} - ${(0,Vi.default)(u)}.x`):(0,Ji.default)(o,p.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=fn(n);i.header="Please install supported versions of dev dependencies with either npm or yarn.",i.messageText=`npm install --save-dev ${s.join(" ")}`}return n}require(e,t){let n=this.getModulePath(e,t);return require(n)}getModulePath(e,t){let n=this.nodeResolveModule.resolveModule(e,t);return Gi.default.dirname(n)}};var Un=be(require("./graceful-fs.js")),Ke=be(require("path")),Wn=class{constructor(){this.resolveModuleCache=new Map}resolveModule(e,t,n){let s=`${e}:${t}`,i=this.resolveModuleCache.get(s);if(i)return i;if(n&&n.manuallyResolve)return this.resolveModuleManually(e,t,s);if(t.startsWith("@types/"))return this.resolveTypesModule(e,t,s);let o=require("module");e=Ke.default.resolve(e);let a=Ke.default.join(e,"noop.js"),u=ye(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=ye(Ke.default.parse(e).root),p;for(;u!==c;)if(u=ye(Ke.default.dirname(u)),p=Ke.default.join(u,"package.json"),!!Un.default.existsSync(p))return this.resolveModuleCache.set(s,p),p;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=ye(Ke.default.parse(e).root),o=ye(Ke.default.join(e,"noop.js")),a;for(;o!==i;)if(o=ye(Ke.default.dirname(o)),a=Ke.default.join(o,"node_modules",s[0],s[1],"package.json"),!!Un.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=ye(Ke.default.parse(e).root),i=ye(Ke.default.join(e,"noop.js")),o;for(;i!==s;)if(i=ye(Ke.default.dirname(i)),o=Ke.default.join(i,"node_modules",t,"package.json"),!!Un.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var Nr=be(require("./graceful-fs.js")),_i=require("os"),eo=be(require("path")),to=be(xr()),eu="https://registry.npmjs.org/@stencil/core",tu=1e3*60*60*24*7,Ar="https://github.com/stenciljs/core/blob/main/CHANGELOG.md";async function no(r,e){try{let t=await nu(r);if(t!=null)return()=>{(0,to.default)(e,t)?ou(r,e,t):console.debug(`${r.cyan("@stencil/core")} version ${r.green(e)} is the latest version`)}}catch(t){r.debug(`unable to load latest compiler version: ${t}`)}return Vr}async function nu(r){try{let e=await iu();if(e==null)return Yi(),null;if(!su(Date.now(),e,tu))return null;let t=Yi(),n=await ru(eu),s=JSON.parse(n);return await t,s["dist-tags"].latest}catch(e){r.debug(`getLatestCompilerVersion error: ${e}`)}return null}async function ru(r){let e=await import("https");return new Promise((t,n)=>{let s=e.request(r,i=>{if(i.statusCode>299){n(`url: ${r}, staus: ${i.statusCode}`);return}i.once("error",n);let o=[];i.once("end",()=>{t(o.join(""))}),i.on("data",a=>{o.push(a)})});s.once("error",n),s.end()})}function su(r,e,t){return e+t<r}function iu(){return new Promise(r=>{Nr.default.readFile(ro(),"utf8",(e,t)=>{if(!e&&jt(t))try{r(JSON.parse(t))}catch{}r(null)})})}function Yi(){return new Promise(r=>{let e=JSON.stringify(Date.now());Nr.default.writeFile(ro(),e,()=>{r()})})}function ro(){return eo.default.join((0,_i.tmpdir)(),"stencil_last_version_node.json")}function ou(r,e,t){let n="npm install @stencil/core",s=[`Update available: ${e} ${au} ${t}`,"To get the latest, please run:",n,Ar],i=s.reduce((p,m)=>m.length>p?m.length:p,0),o=[],a=lu;for(;a.length<=i+Xn*2;)a+=Zi;a+=cu,o.push(a),s.forEach(p=>{let m=Qi;for(let S=0;S<Xn;S++)m+=" ";for(m+=p;m.length<=i+Xn*2;)m+=" ";m+=Qi,o.push(m)});let u=uu;for(;u.length<=i+Xn*2;)u+=Zi;u+=du,o.push(u);let c=`${qi}${o.join(`
63
63
  ${qi}`)}
64
64
  `;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(Ar,r.dim(Ar)),console.log(c)}var au="\u2192",lu="\u256D",cu="\u256E",uu="\u2570",du="\u256F",Qi="\u2502",Zi="\u2500",Xn=2,qi=" ";var oo=require("events"),ao=require("os");var so=be(require("child_process")),io=require("events"),zn=class extends io.EventEmitter{constructor(t,n){super();this.id=t;this.tasks=new Map;this.exitCode=null;this.processQueue=!0;this.sendQueue=[];this.stopped=!1;this.successfulMessage=!1;this.totalTasksAssigned=0;this.fork(n)}fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=so.fork(t,[],s),this.childProcess.stdout.setEncoding("utf8"),this.childProcess.stdout.on("data",i=>{console.log(i)}),this.childProcess.stderr.setEncoding("utf8"),this.childProcess.stderr.on("data",i=>{console.log(i)}),this.childProcess.on("message",this.receiveFromWorker.bind(this)),this.childProcess.on("error",i=>{this.emit("error",i)}),this.childProcess.once("exit",i=>{this.exitCode=i,this.emit("exit",i)})}run(t){this.totalTasksAssigned++,this.tasks.set(t.stencilId,t);let[n,...s]=t.inputArgs;this.sendToWorker({stencilId:t.stencilId,method:n,args:s})}sendToWorker(t){if(!this.processQueue){this.sendQueue.push(t);return}(!this.childProcess.send(t,s=>{if(!(s&&s instanceof Error)&&(this.processQueue=!0,this.sendQueue.length>0)){let i=this.sendQueue.slice();this.sendQueue=[],i.forEach(o=>this.sendToWorker(o))}})||/^win/.test(process.platform))&&(this.processQueue=!1)}receiveFromWorker(t){if(this.successfulMessage=!0,this.stopped)return;let n=this.tasks.get(t.stencilId);if(!n){t.stencilRtnError!=null&&this.emit("error",t.stencilRtnError);return}t.stencilRtnError!=null?n.reject(t.stencilRtnError):n.resolve(t.stencilRtnValue),this.tasks.delete(t.stencilId),this.emit("response",t)}stop(){this.stopped=!0,this.tasks.forEach(t=>t.reject(Ut)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var Gn=class extends oo.EventEmitter{constructor(t,n){super();this.forkModulePath=t;this.workerIds=0;this.stencilId=0;this.isEnding=!1;this.taskQueue=[];this.workers=[];let s=(0,ao.cpus)().length;this.useForkedWorkers=n>0,this.maxWorkers=Math.max(Math.min(n,s),2)-1,this.useForkedWorkers?this.startWorkers():this.mainThreadRunner=require(t)}onError(t,n){if(t.code==="ERR_IPC_CHANNEL_CLOSED")return this.stopWorker(n);t.code!=="EPIPE"&&console.error(t)}onExit(t){setTimeout(()=>{let n=!1,s=this.workers.find(i=>i.id===t);s&&(s.tasks.forEach(i=>{i.retries++,this.taskQueue.unshift(i),n=!0}),s.tasks.clear()),this.stopWorker(t),n&&this.processTaskQueue()},10)}startWorkers(){for(;this.workers.length<this.maxWorkers;)this.startWorker()}startWorker(){let t=this.workerIds++,n=new zn(t,this.forkModulePath);n.on("response",this.processTaskQueue.bind(this)),n.once("exit",()=>{this.onExit(t)}),n.on("error",s=>{this.onError(s,t)}),this.workers.push(n)}stopWorker(t){let n=this.workers.find(s=>s.id===t);if(n){n.stop();let s=this.workers.indexOf(n);s>-1&&this.workers.splice(s,1)}}processTaskQueue(){if(!this.isEnding)for(this.useForkedWorkers&&this.startWorkers();this.taskQueue.length>0;){let t=fu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Ut):this.useForkedWorkers?new Promise((n,s)=>{let i={stencilId:this.stencilId++,inputArgs:t,retries:0,resolve:n,reject:s};this.taskQueue.push(i),this.processTaskQueue()}):this.mainThreadRunner[t[0]].apply(null,t.slice(1))}handler(t){return(...n)=>this.send(t,...n)}cancelTasks(){for(let t of this.workers)t.tasks.forEach(n=>n.reject(Ut)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Ut);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function fu(r){let e=r.filter(n=>!n.stopped);return e.length===0?null:e.sort((n,s)=>n.tasks.size<s.tasks.size?-1:n.tasks.size>s.tasks.size?1:n.totalTasksAssigned<s.totalTasksAssigned?-1:n.totalTasksAssigned>s.totalTasksAssigned?1:0)[0]}function fo(r={}){var T;let e=(T=r==null?void 0:r.process)!=null?T:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,rt.cpus)(),o=i.length,a=(0,rt.platform)(),u=fe.default.join(__dirname,"..","..","compiler","stencil.js"),c=fe.default.join(__dirname,"..","..","dev-server","index.js"),p=()=>{let h=[],b;for(;Kr(b=s.pop());)try{let x=b();h.push(x)}catch{}return Promise.all(h).then(()=>{})},m={name:"node",version:e.versions.node,access(h){return new Promise(b=>{de.default.access(h,x=>b(!x))})},accessSync(h){let b=!1;try{de.default.accessSync(h),b=!0}catch{}return b},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let b=require(fe.default.join(__dirname,"node-fetch.js"));global.fetch=(x,N)=>{if(typeof x=="string"){let O=new URL(x,h.devServerHostUrl).href;return b.fetch(O,N)}else return x.url=new URL(x.url,h.devServerHostUrl).href,b.fetch(x,N)},global.Headers=b.Headers,global.Request=b.Request,global.Response=b.Response,global.FetchError=b.FetchError}h.window.fetch=global.fetch,h.window.Headers=global.Headers,h.window.Request=global.Request,h.window.Response=global.Response,h.window.FetchError=global.FetchError},fetch:(h,b)=>{let x=require(fe.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let N=new URL(h).href;return x.fetch(N,b)}else return h.url=new URL(h.url).href,x.fetch(h,b)},checkVersion:no,copyFile(h,b){return new Promise(x=>{de.default.copyFile(h,b,N=>{x(!N)})})},createDir(h,b){return new Promise(x=>{b?de.default.mkdir(h,b,N=>{x({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:N})}):de.default.mkdir(h,N=>{x({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:N})})})},createDirSync(h,b){let x={basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:null};try{de.default.mkdirSync(h,b)}catch(N){x.error=N}return x},createWorkerController(h){let b=fe.default.join(__dirname,"worker.js");return new Gn(b,h)},async destroy(){let h=[];n.forEach(b=>{try{let x=b();x&&typeof x.then=="function"&&h.push(x)}catch(x){console.error(`node sys destroy: ${x}`)}}),h.length>0&&await Promise.all(h),n.clear()},dynamicImport(h){return Promise.resolve(require(h))},encodeToBase64(h){return Buffer.from(h).toString("base64")},async ensureDependencies(){return console.warn("ensureDependencies will be removed in a future version of Stencil."),console.warn("To get the stencilPath, please use getCompilerExecutingPath()."),{stencilPath:m.getCompilerExecutingPath(),diagnostics:[]}},async ensureResources(){console.warn("ensureResources is a no-op, and will be removed in a future version of Stencil")},exit:async h=>{await p(),(0,co.default)(h)},getCurrentDirectory(){return ye(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:gr,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(b=>{try{de.default.lstat(h,(x,N)=>{b(x?!1:N.isSymbolicLink())})}catch{b(!1)}})},nextTick:e.nextTick,normalizePath:ye,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:fe.default,readDir(h){return new Promise(b=>{de.default.readdir(h,(x,N)=>{b(x?[]:N.map(O=>ye(fe.default.join(h,O))))})})},parseYarnLockFile(h){return(0,lo.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return de.default.readdirSync(h).map(b=>ye(fe.default.join(h,b)))}catch{}return[]},readFile(h,b){return b==="binary"?new Promise(x=>{de.default.readFile(h,(N,O)=>{x(O)})}):new Promise(x=>{de.default.readFile(h,"utf8",(N,O)=>{x(O)})})},readFileSync(h){try{return de.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return uo.homedir()}catch{}},realpath(h){return new Promise(b=>{de.default.realpath(h,"utf8",(x,N)=>{b({path:N,error:x})})})},realpathSync(h){let b={path:void 0,error:null};try{b.path=de.default.realpathSync(h,"utf8")}catch(x){b.error=x}return b},rename(h,b){return new Promise(x=>{de.default.rename(h,b,N=>{x({oldPath:h,newPath:b,error:N,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return ye(h)},removeDir(h,b){return new Promise(x=>{!!(b&&b.recursive)?de.default.rm(h,{recursive:!0,force:!0},O=>{x({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:O})}):de.default.rmdir(h,O=>{x({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:O})})})},removeDirSync(h,b){try{return!!(b&&b.recursive)?de.default.rmSync(h,{recursive:!0,force:!0}):de.default.rmdirSync(h),{basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch(x){return{basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:x}}},removeFile(h){return new Promise(b=>{de.default.unlink(h,x=>{b({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,error:x})})})},removeFileSync(h){let b={basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,error:null};try{de.default.unlinkSync(h)}catch(x){b.error=x}return b},setupCompiler(h){let b=h.ts,x=b.sys.watchDirectory,N=b.sys.watchFile;m.watchTimeout=80,m.events=gs(),m.watchDirectory=(O,I,w)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${O}`);let g=x(O,C=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${O} changedPath=${C}`),I(ye(C),"fileUpdate")},w),$=()=>{g.close()};return m.addDestroy($),{close(){m.removeDestroy($),g.close()}}},m.watchFile=(O,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${O}`);let w=N(O,($,C)=>{$=ye($),C===b.FileWatcherEventKind.Created?(I($,"fileAdd"),m.events.emit("fileAdd",$)):C===b.FileWatcherEventKind.Changed?(I($,"fileUpdate"),m.events.emit("fileUpdate",$)):C===b.FileWatcherEventKind.Deleted&&(I($,"fileDelete"),m.events.emit("fileDelete",$))},250,{watchFile:b.WatchFileKind.FixedPollingInterval,fallbackPolling:b.PollingWatchKind.FixedInterval}),g=()=>{w.close()};return m.addDestroy(g),{close(){m.removeDestroy(g),w.close()}}}},stat(h){return new Promise(b=>{de.default.stat(h,(x,N)=>{b(x?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:x}:{isDirectory:N.isDirectory(),isFile:N.isFile(),isSymbolicLink:N.isSymbolicLink(),size:N.size,mtimeMs:N.mtimeMs,error:null})})})},statSync(h){try{let b=de.default.statSync(h);return{isDirectory:b.isDirectory(),isFile:b.isFile(),isSymbolicLink:b.isSymbolicLink(),size:b.size,mtimeMs:b.mtimeMs,error:null}}catch(b){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:b}}},tmpDirSync(){return(0,rt.tmpdir)()},writeFile(h,b){return new Promise(x=>{de.default.writeFile(h,b,N=>{x({path:h,error:N})})})},writeFileSync(h,b){let x={path:h,error:null};try{de.default.writeFileSync(h,b)}catch(N){x.error=N}return x},generateContentHash(h,b){let x=(0,Dr.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof b=="number"&&(x=x.slice(0,b)),Promise.resolve(x)},generateFileHash(h,b){return new Promise((x,N)=>{let O=(0,Dr.createHash)("sha1");de.default.createReadStream(h).on("error",I=>N(I)).on("data",I=>O.update(I)).on("end",()=>{let I=O.digest("hex").toLowerCase();typeof b=="number"&&(I=I.slice(0,b)),x(I)})})},copy:_s,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,rt.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,rt.release)(),totalmem:(0,rt.totalmem)()}},S=new Wn;return m.lazyRequire=new jn(S,{"@types/jest":{minVersion:"24.9.1",recommendedVersion:"29",maxVersion:"29.0.0"},jest:{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},"jest-cli":{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},puppeteer:{minVersion:"10.0.0",recommendedVersion:"20"},"puppeteer-core":{minVersion:"10.0.0",recommendedVersion:"20"},"workbox-build":{minVersion:"4.3.1",recommendedVersion:"4.3.1"}}),e.on("SIGINT",p),e.on("exit",p),m}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.33.1",
3
+ "version": "4.34.0",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
1
  /*!
2
- Stencil Node System Worker v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.34.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("../../sys/node/index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v4.33.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v4.34.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.33.1",
3
+ "version": "4.34.0",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",