From 76413571f9f778f25f41f37ea96d5c3cbad1c0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 22 Apr 2024 19:19:52 +0200 Subject: [PATCH] cleanup --- .github/workflows/ci.yml | 6 +++--- Makefile | 7 ++----- Makefile.js | 4 ++-- Makefile.source.mjs | 15 +++++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4db5d959f7f..654618c68e28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -194,10 +194,10 @@ jobs: - name: Extract artifacts run: tar -xf babel-artifact.tar; rm babel-artifact.tar - name: Lint - run: make -j prepublish-prepare-dts lint-ci + run: make -j lint-ci - name: Ensure cwd does not contain uncommitted changes run: | - node ./scripts/assert-dir-git-clean.js "prepublish-prepare-dts lint-ci" + node ./scripts/assert-dir-git-clean.js "lint-ci" test: name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title @@ -287,7 +287,7 @@ jobs: BABEL_8_BREAKING: true STRIP_BABEL_8_FLAG: true - name: Lint - run: make -j tscheck lint-ci + run: make -j lint-ci env: BABEL_ENV: test BABEL_8_BREAKING: true diff --git a/Makefile b/Makefile index 2b38ced1a23d..53a7748010b5 100644 --- a/Makefile +++ b/Makefile @@ -60,13 +60,10 @@ code-quality: lint tscheck: $(MAKEJS) tscheck -tscheck-slow: - $(MAKEJS) tscheck-slow - clean-ts: $(MAKEJS) clean-ts -lint-ci: lint check-compat-data +lint-ci: lint-ci check-compat-data generate-readme: $(NODE) scripts/generators/readmes.js @@ -93,7 +90,7 @@ test: lint test-only clone-license: $(MAKEJS) clone-license -prepublish-prepare-dts: +prepublish-prepare-dts: tscheck $(MAKEJS) prepublish-prepare-dts prepublish-build: diff --git a/Makefile.js b/Makefile.js index 13ef9e5de524..5305f916e3dc 100644 --- a/Makefile.js +++ b/Makefile.js @@ -1,4 +1,4 @@ -// source hash: 0c45ece3fd415a58aa15cad0ed31ad3c5613bb38 +// source hash: a26f7fadd66a8d99418155e161c5218e0fde83df /* eslint-disable */ // prettier-ignore -"use strict";var e=require("os"),t=require("fs"),r=require("path"),n=require("events"),i=require("assert"),o=require("util"),s=require("child_process"),a=require("node:buffer"),c=require("node:path"),u=require("node:child_process"),l=require("node:process"),f=require("node:url"),h=require("node:os"),p=require("node:fs");require("node:timers/promises");var d=require("stream"),v=require("node:util");function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function m(e,t){return e.get(g(e,t))}function y(e,t,r){return e.set(g(e,t),r),r}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function E(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function w(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function T(e,t,r){x(e,t),t.set(e,r)}var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k=function(e){return e&&e.Math===Math&&e},P=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof j&&j)||k("object"==typeof j&&j)||function(){return this}()||Function("return this")(),N={},_=function(e){try{return!!e()}catch(e){return!0}},C=!_((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),F=!_((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),D=F,M=Function.prototype.call,U=D?M.bind(M):function(){return M.apply(M,arguments)},G={},B={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,q=$&&!B.call({1:2},1);G.f=q?function(e){var t=$(this,e);return!!t&&t.enumerable}:B;var W,H,z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X=F,V=Function.prototype,Y=V.call,K=X&&V.bind.bind(Y,Y),J=X?K:function(e){return function(){return Y.apply(e,arguments)}},Q=J,Z=Q({}.toString),ee=Q("".slice),te=function(e){return ee(Z(e),8,-1)},re=_,ne=te,ie=Object,oe=J("".split),se=re((function(){return!ie("z").propertyIsEnumerable(0)}))?function(e){return"String"===ne(e)?oe(e,""):ie(e)}:ie,ae=function(e){return null==e},ce=ae,ue=TypeError,le=function(e){if(ce(e))throw new ue("Can't call method on "+e);return e},fe=se,he=le,pe=function(e){return fe(he(e))},de="object"==typeof document&&document.all,ve=void 0===de&&void 0!==de?function(e){return"function"==typeof e||e===de}:function(e){return"function"==typeof e},ge=ve,me=function(e){return"object"==typeof e?null!==e:ge(e)},ye=P,be=ve,Ee=function(e,t){return arguments.length<2?(r=ye[e],be(r)?r:void 0):ye[e]&&ye[e][t];var r},we=J({}.isPrototypeOf),Se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Oe=P,Re=Se,Ie=Oe.process,Ae=Oe.Deno,xe=Ie&&Ie.versions||Ae&&Ae.version,Te=xe&&xe.v8;Te&&(H=(W=Te.split("."))[0]>0&&W[0]<4?1:+(W[0]+W[1])),!H&&Re&&(!(W=Re.match(/Edge\/(\d+)/))||W[1]>=74)&&(W=Re.match(/Chrome\/(\d+)/))&&(H=+W[1]);var je=H,Le=je,ke=_,Pe=P.String,Ne=!!Object.getOwnPropertySymbols&&!ke((function(){var e=Symbol("symbol detection");return!Pe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Le&&Le<41})),_e=Ne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ce=Ee,Fe=ve,De=we,Me=Object,Ue=_e?function(e){return"symbol"==typeof e}:function(e){var t=Ce("Symbol");return Fe(t)&&De(t.prototype,Me(e))},Ge=String,Be=function(e){try{return Ge(e)}catch(e){return"Object"}},$e=ve,qe=Be,We=TypeError,He=function(e){if($e(e))return e;throw new We(qe(e)+" is not a function")},ze=He,Xe=ae,Ve=function(e,t){var r=e[t];return Xe(r)?void 0:ze(r)},Ye=U,Ke=ve,Je=me,Qe=TypeError,Ze={exports:{}},et=P,tt=Object.defineProperty,rt=function(e,t){try{tt(et,e,{value:t,configurable:!0,writable:!0})}catch(r){et[e]=t}return t},nt=P,it=rt,ot="__core-js_shared__",st=Ze.exports=nt[ot]||it(ot,{});(st.versions||(st.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var at=Ze.exports,ct=at,ut=function(e,t){return ct[e]||(ct[e]=t||{})},lt=le,ft=Object,ht=function(e){return ft(lt(e))},pt=ht,dt=J({}.hasOwnProperty),vt=Object.hasOwn||function(e,t){return dt(pt(e),t)},gt=J,mt=0,yt=Math.random(),bt=gt(1..toString),Et=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bt(++mt+yt,36)},wt=ut,St=vt,Ot=Et,Rt=Ne,It=_e,At=P.Symbol,xt=wt("wks"),Tt=It?At.for||At:At&&At.withoutSetter||Ot,jt=function(e){return St(xt,e)||(xt[e]=Rt&&St(At,e)?At[e]:Tt("Symbol."+e)),xt[e]},Lt=U,kt=me,Pt=Ue,Nt=Ve,_t=function(e,t){var r,n;if("string"===t&&Ke(r=e.toString)&&!Je(n=Ye(r,e)))return n;if(Ke(r=e.valueOf)&&!Je(n=Ye(r,e)))return n;if("string"!==t&&Ke(r=e.toString)&&!Je(n=Ye(r,e)))return n;throw new Qe("Can't convert object to primitive value")},Ct=TypeError,Ft=jt("toPrimitive"),Dt=function(e,t){if(!kt(e)||Pt(e))return e;var r,n=Nt(e,Ft);if(n){if(void 0===t&&(t="default"),r=Lt(n,e,t),!kt(r)||Pt(r))return r;throw new Ct("Can't convert object to primitive value")}return void 0===t&&(t="number"),_t(e,t)},Mt=Dt,Ut=Ue,Gt=function(e){var t=Mt(e,"string");return Ut(t)?t:t+""},Bt=me,$t=P.document,qt=Bt($t)&&Bt($t.createElement),Wt=function(e){return qt?$t.createElement(e):{}},Ht=Wt,zt=!C&&!_((function(){return 7!==Object.defineProperty(Ht("div"),"a",{get:function(){return 7}}).a})),Xt=C,Vt=U,Yt=G,Kt=z,Jt=pe,Qt=Gt,Zt=vt,er=zt,tr=Object.getOwnPropertyDescriptor;N.f=Xt?tr:function(e,t){if(e=Jt(e),t=Qt(t),er)try{return tr(e,t)}catch(e){}if(Zt(e,t))return Kt(!Vt(Yt.f,e,t),e[t])};var rr={},nr=C&&_((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ir=me,or=String,sr=TypeError,ar=function(e){if(ir(e))return e;throw new sr(or(e)+" is not an object")},cr=C,ur=zt,lr=nr,fr=ar,hr=Gt,pr=TypeError,dr=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,gr="enumerable",mr="configurable",yr="writable";rr.f=cr?lr?function(e,t,r){if(fr(e),t=hr(t),fr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&yr in r&&!r[yr]){var n=vr(e,t);n&&n[yr]&&(e[t]=r.value,r={configurable:mr in r?r[mr]:n[mr],enumerable:gr in r?r[gr]:n[gr],writable:!1})}return dr(e,t,r)}:dr:function(e,t,r){if(fr(e),t=hr(t),fr(r),ur)try{return dr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new pr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var br=rr,Er=z,wr=C?function(e,t,r){return br.f(e,t,Er(1,r))}:function(e,t,r){return e[t]=r,e},Sr={exports:{}},Or=C,Rr=vt,Ir=Function.prototype,Ar=Or&&Object.getOwnPropertyDescriptor,xr=Rr(Ir,"name"),Tr={EXISTS:xr,PROPER:xr&&"something"===function(){}.name,CONFIGURABLE:xr&&(!Or||Or&&Ar(Ir,"name").configurable)},jr=ve,Lr=at,kr=J(Function.toString);jr(Lr.inspectSource)||(Lr.inspectSource=function(e){return kr(e)});var Pr,Nr,_r,Cr=Lr.inspectSource,Fr=ve,Dr=P.WeakMap,Mr=Fr(Dr)&&/native code/.test(String(Dr)),Ur=Et,Gr=ut("keys"),Br=function(e){return Gr[e]||(Gr[e]=Ur(e))},$r={},qr=Mr,Wr=P,Hr=me,zr=wr,Xr=vt,Vr=at,Yr=Br,Kr=$r,Jr="Object already initialized",Qr=Wr.TypeError,Zr=Wr.WeakMap;if(qr||Vr.state){var en=Vr.state||(Vr.state=new Zr);en.get=en.get,en.has=en.has,en.set=en.set,Pr=function(e,t){if(en.has(e))throw new Qr(Jr);return t.facade=e,en.set(e,t),t},Nr=function(e){return en.get(e)||{}},_r=function(e){return en.has(e)}}else{var tn=Yr("state");Kr[tn]=!0,Pr=function(e,t){if(Xr(e,tn))throw new Qr(Jr);return t.facade=e,zr(e,tn,t),t},Nr=function(e){return Xr(e,tn)?e[tn]:{}},_r=function(e){return Xr(e,tn)}}var rn={set:Pr,get:Nr,has:_r,enforce:function(e){return _r(e)?Nr(e):Pr(e,{})},getterFor:function(e){return function(t){var r;if(!Hr(t)||(r=Nr(t)).type!==e)throw new Qr("Incompatible receiver, "+e+" required");return r}}},nn=J,on=_,sn=ve,an=vt,cn=C,un=Tr.CONFIGURABLE,ln=Cr,fn=rn.enforce,hn=rn.get,pn=String,dn=Object.defineProperty,vn=nn("".slice),gn=nn("".replace),mn=nn([].join),yn=cn&&!on((function(){return 8!==dn((function(){}),"length",{value:8}).length})),bn=String(String).split("String"),En=Sr.exports=function(e,t,r){"Symbol("===vn(pn(t),0,7)&&(t="["+gn(pn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!an(e,"name")||un&&e.name!==t)&&(cn?dn(e,"name",{value:t,configurable:!0}):e.name=t),yn&&r&&an(r,"arity")&&e.length!==r.arity&&dn(e,"length",{value:r.arity});try{r&&an(r,"constructor")&&r.constructor?cn&&dn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=fn(e);return an(n,"source")||(n.source=mn(bn,"string"==typeof t?t:"")),e};Function.prototype.toString=En((function(){return sn(this)&&hn(this).source||ln(this)}),"toString");var wn=Sr.exports,Sn=ve,On=rr,Rn=wn,In=rt,An=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Sn(r)&&Rn(r,o,n),n.global)i?e[t]=r:In(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:On.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},xn={},Tn=Math.ceil,jn=Math.floor,Ln=Math.trunc||function(e){var t=+e;return(t>0?jn:Tn)(t)},kn=function(e){var t=+e;return t!=t||0===t?0:Ln(t)},Pn=kn,Nn=Math.max,_n=Math.min,Cn=function(e,t){var r=Pn(e);return r<0?Nn(r+t,0):_n(r,t)},Fn=kn,Dn=Math.min,Mn=function(e){var t=Fn(e);return t>0?Dn(t,9007199254740991):0},Un=Mn,Gn=function(e){return Un(e.length)},Bn=pe,$n=Cn,qn=Gn,Wn=function(e){return function(t,r,n){var i=Bn(t),o=qn(i);if(0===o)return!e&&-1;var s,a=$n(n,o);if(e&&r!=r){for(;o>a;)if((s=i[a++])!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}},Hn={includes:Wn(!0),indexOf:Wn(!1)},zn=vt,Xn=pe,Vn=Hn.indexOf,Yn=$r,Kn=J([].push),Jn=function(e,t){var r,n=Xn(e),i=0,o=[];for(r in n)!zn(Yn,r)&&zn(n,r)&&Kn(o,r);for(;t.length>i;)zn(n,r=t[i++])&&(~Vn(o,r)||Kn(o,r));return o},Qn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zn=Jn,ei=Qn.concat("length","prototype");xn.f=Object.getOwnPropertyNames||function(e){return Zn(e,ei)};var ti={};ti.f=Object.getOwnPropertySymbols;var ri=Ee,ni=xn,ii=ti,oi=ar,si=J([].concat),ai=ri("Reflect","ownKeys")||function(e){var t=ni.f(oi(e)),r=ii.f;return r?si(t,r(e)):t},ci=vt,ui=ai,li=N,fi=rr,hi=function(e,t,r){for(var n=ui(t),i=fi.f,o=li.f,s=0;so&&_o(i,arguments[o]),i}));f.prototype=u,"Error"!==a?jo?jo(f,l):Lo(f,l,{name:!0}):Fo&&i in c&&(ko(f,c,i),ko(f,c,"prepareStackTrace")),Lo(f,c);try{u.name!==a&&xo(u,"name",a),u.constructor=f}catch(e){}return f}},Go="WebAssembly",Bo=P[Go],$o=7!==new Error("e",{cause:7}).cause,qo=function(e,t){var r={};r[e]=Uo(e,t,$o),Do({global:!0,constructor:!0,arity:1,forced:$o},r)},Wo=function(e,t){if(Bo&&Bo[e]){var r={};r[e]=Uo(Go+"."+e,t,$o),Do({target:Go,stat:!0,constructor:!0,arity:1,forced:$o},r)}};qo("Error",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("EvalError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("RangeError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("ReferenceError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("SyntaxError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("TypeError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("URIError",(function(e){return function(t){return Mo(e,this,arguments)}})),Wo("CompileError",(function(e){return function(t){return Mo(e,this,arguments)}})),Wo("LinkError",(function(e){return function(t){return Mo(e,this,arguments)}})),Wo("RuntimeError",(function(e){return function(t){return Mo(e,this,arguments)}}));var Ho=te,zo=J,Xo=function(e){if("Function"===Ho(e))return zo(e)},Vo=He,Yo=F,Ko=Xo(Xo.bind),Jo=function(e,t){return Vo(e),void 0===t?e:Yo?Ko(e,t):function(){return e.apply(t,arguments)}},Qo=te,Zo=Array.isArray||function(e){return"Array"===Qo(e)},es=J,ts=_,rs=ve,ns=so,is=Cr,os=function(){},ss=Ee("Reflect","construct"),as=/^\s*(?:class|function)\b/,cs=es(as.exec),us=!as.test(os),ls=function(e){if(!rs(e))return!1;try{return ss(os,[],e),!0}catch(e){return!1}},fs=function(e){if(!rs(e))return!1;switch(ns(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return us||!!cs(as,is(e))}catch(e){return!0}};fs.sham=!0;var hs=!ss||ts((function(){var e;return ls(ls.call)||!ls(Object)||!ls((function(){e=!0}))||e}))?fs:ls,ps=Zo,ds=hs,vs=me,gs=jt("species"),ms=Array,ys=function(e){var t;return ps(e)&&(t=e.constructor,(ds(t)&&(t===ms||ps(t.prototype))||vs(t)&&null===(t=t[gs]))&&(t=void 0)),void 0===t?ms:t},bs=function(e,t){return new(ys(e))(0===t?0:t)},Es=Jo,ws=se,Ss=ht,Os=Gn,Rs=bs,Is=J([].push),As=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,o=6===e,s=7===e,a=5===e||o;return function(c,u,l,f){for(var h,p,d=Ss(c),v=ws(d),g=Os(v),m=Es(u,l),y=0,b=f||Rs,E=t?b(c,g):r||s?b(c,0):void 0;g>y;y++)if((a||y in v)&&(p=m(h=v[y],y,d),e))if(t)E[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:Is(E,h)}else switch(e){case 4:return!1;case 7:Is(E,h)}return o?-1:n||i?i:E}},xs={forEach:As(0),map:As(1),filter:As(2),some:As(3),every:As(4),find:As(5),findIndex:As(6),filterReject:As(7)},Ts=_,js=je,Ls=jt("species"),ks=function(e){return js>=51||!Ts((function(){var t=[];return(t.constructor={})[Ls]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ps=xs.filter;ji({target:"Array",proto:!0,forced:!ks("filter")},{filter:function(e){return Ps(this,e,arguments.length>1?arguments[1]:void 0)}});var Ns={},_s=Jn,Cs=Qn,Fs=Object.keys||function(e){return _s(e,Cs)},Ds=C,Ms=nr,Us=rr,Gs=ar,Bs=pe,$s=Fs;Ns.f=Ds&&!Ms?Object.defineProperties:function(e,t){Gs(e);for(var r,n=Bs(t),i=$s(t),o=i.length,s=0;o>s;)Us.f(e,r=i[s++],n[r]);return e};var qs,Ws=Ee("document","documentElement"),Hs=ar,zs=Ns,Xs=Qn,Vs=$r,Ys=Ws,Ks=Wt,Js="prototype",Qs="script",Zs=Br("IE_PROTO"),ea=function(){},ta=function(e){return"<"+Qs+">"+e+""},ra=function(e){e.write(ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},na=function(){try{qs=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;na="undefined"!=typeof document?document.domain&&qs?ra(qs):(t=Ks("iframe"),r="java"+Qs+":",t.style.display="none",Ys.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(ta("document.F=Object")),e.close(),e.F):ra(qs);for(var n=Xs.length;n--;)delete na[Js][Xs[n]];return na()};Vs[Zs]=!0;var ia=Object.create||function(e,t){var r;return null!==e?(ea[Js]=Hs(e),r=new ea,ea[Js]=null,r[Zs]=e):r=na(),void 0===t?r:zs.f(r,t)},oa=jt,sa=ia,aa=rr.f,ca=oa("unscopables"),ua=Array.prototype;void 0===ua[ca]&&aa(ua,ca,{configurable:!0,value:sa(null)});var la,fa,ha,pa=function(e){ua[ca][e]=!0},da={},va=!_((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ga=vt,ma=ve,ya=ht,ba=va,Ea=Br("IE_PROTO"),wa=Object,Sa=wa.prototype,Oa=ba?wa.getPrototypeOf:function(e){var t=ya(e);if(ga(t,Ea))return t[Ea];var r=t.constructor;return ma(r)&&t instanceof r?r.prototype:t instanceof wa?Sa:null},Ra=_,Ia=ve,Aa=me,xa=Oa,Ta=An,ja=jt("iterator"),La=!1;[].keys&&("next"in(ha=[].keys())?(fa=xa(xa(ha)))!==Object.prototype&&(la=fa):La=!0);var ka=!Aa(la)||Ra((function(){var e={};return la[ja].call(e)!==e}));ka&&(la={}),Ia(la[ja])||Ta(la,ja,(function(){return this}));var Pa={IteratorPrototype:la,BUGGY_SAFARI_ITERATORS:La},Na=rr.f,_a=vt,Ca=jt("toStringTag"),Fa=function(e,t,r){e&&!r&&(e=e.prototype),e&&!_a(e,Ca)&&Na(e,Ca,{configurable:!0,value:t})},Da=Pa.IteratorPrototype,Ma=ia,Ua=z,Ga=Fa,Ba=da,$a=function(){return this},qa=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ma(Da,{next:Ua(+!n,r)}),Ga(e,i,!1),Ba[i]=$a,e},Wa=ji,Ha=U,za=ve,Xa=qa,Va=Oa,Ya=zi,Ka=Fa,Ja=wr,Qa=An,Za=da,ec=Tr.PROPER,tc=Tr.CONFIGURABLE,rc=Pa.IteratorPrototype,nc=Pa.BUGGY_SAFARI_ITERATORS,ic=jt("iterator"),oc="keys",sc="values",ac="entries",cc=function(){return this},uc=function(e,t,r,n,i,o,s){Xa(r,t,n);var a,c,u,l=function(e){if(e===i&&v)return v;if(!nc&&e&&e in p)return p[e];switch(e){case oc:case sc:case ac:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[ic]||p["@@iterator"]||i&&p[i],v=!nc&&d||l(i),g="Array"===t&&p.entries||d;if(g&&(a=Va(g.call(new e)))!==Object.prototype&&a.next&&(Va(a)!==rc&&(Ya?Ya(a,rc):za(a[ic])||Qa(a,ic,cc)),Ka(a,f,!0)),ec&&i===sc&&d&&d.name!==sc&&(tc?Ja(p,"name",sc):(h=!0,v=function(){return Ha(d,this)})),i)if(c={values:l(sc),keys:o?v:l(oc),entries:l(ac)},s)for(u in c)(nc||h||!(u in p))&&Qa(p,u,c[u]);else Wa({target:t,proto:!0,forced:nc||h},c);return p[ic]!==v&&Qa(p,ic,v,{name:i}),Za[t]=v,c},lc=function(e,t){return{value:e,done:t}},fc=pe,hc=pa,pc=da,dc=rn,vc=rr.f,gc=uc,mc=lc,yc=C,bc="Array Iterator",Ec=dc.set,wc=dc.getterFor(bc),Sc=gc(Array,"Array",(function(e,t){Ec(this,{type:bc,target:fc(e),index:0,kind:t})}),(function(){var e=wc(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,mc(void 0,!0);switch(e.kind){case"keys":return mc(r,!1);case"values":return mc(t[r],!1)}return mc([r,t[r]],!1)}),"values"),Oc=pc.Arguments=pc.Array;if(hc("keys"),hc("values"),hc("entries"),yc&&"values"!==Oc.name)try{vc(Oc,"name",{value:"values"})}catch(e){}var Rc=xs.map;ji({target:"Array",proto:!0,forced:!ks("map")},{map:function(e){return Rc(this,e,arguments.length>1?arguments[1]:void 0)}});var Ic=C,Ac=Zo,xc=TypeError,Tc=Object.getOwnPropertyDescriptor,jc=Ic&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(Ac(e)&&!Tc(e,"length").writable)throw new xc("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Lc=TypeError,kc=function(e){if(e>9007199254740991)throw Lc("Maximum allowed index exceeded");return e},Pc=ht,Nc=Gn,_c=jc,Cc=kc;ji({target:"Array",proto:!0,arity:1,forced:_((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=Pc(this),r=Nc(t),n=arguments.length;Cc(r+n);for(var i=0;ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})),ul=C,ll=P,fl=J,hl=wi,pl=Qi,dl=wr,vl=ia,gl=xn.f,ml=we,yl=_u,bl=uo,El=$u,wl=Vu,Sl=Vi,Ol=An,Rl=_,Il=vt,Al=rn.enforce,xl=rl,Tl=ol,jl=cl,Ll=jt("match"),kl=ll.RegExp,Pl=kl.prototype,Nl=ll.SyntaxError,_l=fl(Pl.exec),Cl=fl("".charAt),Fl=fl("".replace),Dl=fl("".indexOf),Ml=fl("".slice),Ul=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Gl=/a/g,Bl=/a/g,$l=new kl(Gl)!==Gl,ql=wl.MISSED_STICKY,Wl=wl.UNSUPPORTED_Y,Hl=ul&&(!$l||ql||Tl||jl||Rl((function(){return Bl[Ll]=!1,kl(Gl)!==Gl||kl(Bl)===Bl||"/a/i"!==String(kl(Gl,"i"))})));if(hl("RegExp",Hl)){for(var zl=function(e,t){var r,n,i,o,s,a,c=ml(Pl,this),u=yl(e),l=void 0===t,f=[],h=e;if(!c&&u&&l&&e.constructor===zl)return e;if((u||ml(Pl,e))&&(e=e.source,l&&(t=El(h))),e=void 0===e?"":bl(e),t=void 0===t?"":bl(t),h=e,Tl&&"dotAll"in Gl&&(n=!!t&&Dl(t,"s")>-1)&&(t=Fl(t,/s/g,"")),r=t,ql&&"sticky"in Gl&&(i=!!t&&Dl(t,"y")>-1)&&Wl&&(t=Fl(t,/y/g,"")),jl&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],s=vl(null),a=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=Cl(e,n)))t+=Cl(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:_l(Ul,Ml(e,n+1))&&(n+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||Il(s,l))throw new Nl("Invalid capture group name");s[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],f=o[1]),s=pl(kl(e,t),c?this:Pl,zl),(n||i||f.length)&&(a=Al(s),n&&(a.dotAll=!0,a.raw=zl(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=Cl(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+Cl(e,++n);return i}(e),r)),i&&(a.sticky=!0),f.length&&(a.groups=f)),e!==h)try{dl(s,"source",""===h?"(?:)":h)}catch(e){}return s},Xl=gl(kl),Vl=0;Xl.length>Vl;)Sl(zl,kl,Xl[Vl++]);Pl.constructor=zl,zl.prototype=Pl,Ol(ll,"RegExp",zl,{constructor:!0})}xl("RegExp");var Yl=C,Kl=ol,Jl=te,Ql=Ju,Zl=rn.get,ef=RegExp.prototype,tf=TypeError;Yl&&Kl&&Ql(ef,"dotAll",{configurable:!0,get:function(){if(this!==ef){if("RegExp"===Jl(this))return!!Zl(this).dotAll;throw new tf("Incompatible receiver, RegExp required")}}});var rf=U,nf=J,of=uo,sf=Fu,af=Vu,cf=ia,uf=rn.get,lf=ol,ff=cl,hf=ut("native-string-replace",String.prototype.replace),pf=RegExp.prototype.exec,df=pf,vf=nf("".charAt),gf=nf("".indexOf),mf=nf("".replace),yf=nf("".slice),bf=function(){var e=/a/,t=/b*/g;return rf(pf,e,"a"),rf(pf,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ef=af.BROKEN_CARET,wf=void 0!==/()??/.exec("")[1];(bf||wf||Ef||lf||ff)&&(df=function(e){var t,r,n,i,o,s,a,c=this,u=uf(c),l=of(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=rf(df,f,l),c.lastIndex=f.lastIndex,t;var h=u.groups,p=Ef&&c.sticky,d=rf(sf,c),v=c.source,g=0,m=l;if(p&&(d=mf(d,"y",""),-1===gf(d,"g")&&(d+="g"),m=yf(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==vf(l,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,g++),r=new RegExp("^(?:"+v+")",d)),wf&&(r=new RegExp("^"+v+"$(?!\\s)",d)),bf&&(n=c.lastIndex),i=rf(pf,p?r:c,m),p?i?(i.input=yf(i.input,g),i[0]=yf(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:bf&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),wf&&i&&i.length>1&&rf(hf,i[0],r,(function(){for(o=1;o=a?e?"":void 0:(n=zf(o,s))<55296||n>56319||s+1===a||(i=zf(o,s+1))<56320||i>57343?e?Hf(o,s):n:e?Xf(o,s,s+2):i-56320+(n-55296<<10)+65536}},Yf={codeAt:Vf(!1),charAt:Vf(!0)},Kf=Yf.charAt,Jf=function(e,t,r){return t+(r?Kf(e,t).length:1)},Qf=U,Zf=ar,eh=ve,th=te,rh=Sf,nh=TypeError,ih=function(e,t){var r=e.exec;if(eh(r)){var n=Qf(r,e,t);return null!==n&&Zf(n),n}if("RegExp"===th(e))return Qf(rh,e,t);throw new nh("RegExp#exec called on incompatible receiver")},oh=U,sh=ar,ah=ae,ch=Mn,uh=uo,lh=le,fh=Ve,hh=Jf,ph=ih;Gf("match",(function(e,t,r){return[function(t){var r=lh(this),n=ah(t)?void 0:fh(t,e);return n?oh(n,t,r):new RegExp(t)[e](uh(r))},function(e){var n=sh(this),i=uh(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return ph(n,i);var s=n.unicode;n.lastIndex=0;for(var a,c=[],u=0;null!==(a=ph(n,i));){var l=uh(a[0]);c[u]=l,""===l&&(n.lastIndex=hh(i,ch(n.lastIndex),s)),u++}return 0===u?null:c}]}));var dh=J,vh=ht,gh=Math.floor,mh=dh("".charAt),yh=dh("".replace),bh=dh("".slice),Eh=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wh=/\$([$&'`]|\d{1,2})/g,Sh=function(e,t,r,n,i,o){var s=r+e.length,a=n.length,c=wh;return void 0!==i&&(i=vh(i),c=Eh),yh(o,c,(function(o,c){var u;switch(mh(c,0)){case"$":return"$";case"&":return e;case"`":return bh(t,0,r);case"'":return bh(t,s);case"<":u=i[bh(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var f=gh(l/10);return 0===f?o:f<=a?void 0===n[f-1]?mh(c,1):n[f-1]+mh(c,1):o}u=n[l-1]}return void 0===u?"":u}))},Oh=_i,Rh=U,Ih=J,Ah=Gf,xh=_,Th=ar,jh=ve,Lh=ae,kh=kn,Ph=Mn,Nh=uo,_h=le,Ch=Jf,Fh=Ve,Dh=Sh,Mh=ih,Uh=jt("replace"),Gh=Math.max,Bh=Math.min,$h=Ih([].concat),qh=Ih([].push),Wh=Ih("".indexOf),Hh=Ih("".slice),zh="$0"==="a".replace(/./,"$0"),Xh=!!/./[Uh]&&""===/./[Uh]("a","$0"),Vh=!xh((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));Ah("replace",(function(e,t,r){var n=Xh?"$":"$0";return[function(e,r){var n=_h(this),i=Lh(e)?void 0:Fh(e,Uh);return i?Rh(i,e,n,r):Rh(t,Nh(n),e,r)},function(e,i){var o=Th(this),s=Nh(e);if("string"==typeof i&&-1===Wh(i,n)&&-1===Wh(i,"$<")){var a=r(t,o,s,i);if(a.done)return a.value}var c=jh(i);c||(i=Nh(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var f,h=[];null!==(f=Mh(o,s))&&(qh(h,f),l);){""===Nh(f[0])&&(o.lastIndex=Ch(s,Ph(o.lastIndex),u))}for(var p,d="",v=0,g=0;g=v&&(d+=Hh(s,v,b)+m,v=b+y.length)}return d+Hh(s,v)}]}),!Vh||!zh||Xh);var Yh=ji,Kh=U,Jh=J,Qh=le,Zh=ve,ep=ae,tp=_u,rp=uo,np=Ve,ip=$u,op=Sh,sp=jt("replace"),ap=TypeError,cp=Jh("".indexOf);Jh("".replace);var up=Jh("".slice),lp=Math.max;Yh({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,o,s,a,c,u,l=Qh(this),f=0,h=0,p="";if(!ep(e)){if(tp(e)&&(r=rp(Qh(ip(e))),!~cp(r,"g")))throw new ap("`.replaceAll` does not allow non-global regexes");if(n=np(e,sp))return Kh(n,e,l,t)}for(i=rp(l),o=rp(e),(s=Zh(t))||(t=rp(t)),a=o.length,c=lp(1,a),f=cp(i,o);-1!==f;)u=s?rp(t(o,f,i)):op(o,i,f,[],void 0,t),p+=up(i,h,f)+u,h=f+a,f=f+c>i.length?-1:cp(i,o,f+c);return h1?arguments[1]:void 0;return kp?Lp(this,e,t)||0:Tp(this,e,t)}});var Pp=ji,Np=_,_p=Zo,Cp=me,Fp=ht,Dp=Gn,Mp=kc,Up=Uc,Gp=bs,Bp=ks,$p=je,qp=jt("isConcatSpreadable"),Wp=$p>=51||!Np((function(){var e=[];return e[qp]=!1,e.concat()[0]!==e})),Hp=function(e){if(!Cp(e))return!1;var t=e[qp];return void 0!==t?!!t:_p(e)};Pp({target:"Array",proto:!0,arity:1,forced:!Wp||!Bp("concat")},{concat:function(e){var t,r,n,i,o,s=Fp(this),a=Gp(s,0),c=0;for(t=-1,n=arguments.length;t=t.length)return r&&(r[p]=t),o(null,t);a.lastIndex=u;var e=a.exec(t);return h=l,l+=e[0],f=h+e[1],u=a.lastIndex,v[f]||r&&r[f]===f?process.nextTick(m):r&&Object.prototype.hasOwnProperty.call(r,f)?E(r[f]):i.lstat(f,y)}function y(e,t){if(e)return o(e);if(!t.isSymbolicLink())return v[f]=!0,r&&(r[f]=f),process.nextTick(m);if(!n){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(d.hasOwnProperty(s))return b(null,d[s],f)}i.stat(f,(function(e){if(e)return o(e);i.readlink(f,(function(e,t){n||(d[s]=t),b(e,t)}))}))}function b(t,n,i){if(t)return o(t);var s=e.resolve(h,n);r&&(r[i]=s),E(s)}function E(r){t=e.resolve(r,t.slice(u)),g()}g()},id}function sd(){if(rd)return td;rd=1,td=c,c.realpath=c,c.sync=u,c.realpathSync=u,c.monkeypatch=function(){e.realpath=c,e.realpathSync=u},c.unmonkeypatch=function(){e.realpath=r,e.realpathSync=n};var e=t,r=e.realpath,n=e.realpathSync,i=process.version,o=/^v[0-5]\./.test(i),s=od();function a(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,n){if(o)return r(e,t,n);"function"==typeof t&&(n=t,t=null),r(e,t,(function(r,i){a(r)?s.realpath(e,t,n):n(r,i)}))}function u(e,t){if(o)return n(e,t);try{return n(e,t)}catch(r){if(a(r))return s.realpathSync(e,t);throw r}}return td}var ad,cd,ud,ld,fd,hd,pd,dd,vd=hs,gd=Be,md=TypeError,yd=function(e){if(vd(e))return e;throw new md(gd(e)+" is not a constructor")},bd=ar,Ed=yd,wd=ae,Sd=jt("species"),Od=function(e,t){var r,n=bd(e).constructor;return void 0===n||wd(r=bd(n)[Sd])?t:Ed(r)},Rd=U,Id=J,Ad=Gf,xd=ar,Td=ae,jd=le,Ld=Od,kd=Jf,Pd=Mn,Nd=uo,_d=Ve,Cd=ih,Fd=_,Dd=Vu.UNSUPPORTED_Y,Md=Math.min,Ud=Id([].push),Gd=Id("".slice),Bd=!Fd((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),$d="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;function qd(){if(cd)return ad;cd=1,ad=function(t,r){for(var n=[],i=0;i=0&&u>0){for(n=[],o=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())=0?c:u;n.length&&(a=[o,s])}return a}return ld=1,ud=e,e.range=r,ud}();fd=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return d(function(e){return e.split("\\\\").join(r).split("\\{").join(n).split("\\}").join(i).split("\\,").join(o).split("\\.").join(s)}(e),!0).map(c)};var r="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function a(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(r).join("\\").split(n).join("{").split(i).join("}").split(o).join(",").split(s).join(".")}function u(e){if(!e)return[""];var r=[],n=t("{","}",e);if(!n)return e.split(",");var i=n.pre,o=n.body,s=n.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var c=u(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),r.push.apply(r,a),r}function l(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function p(e,t){return e>=t}function d(r,n){var o=[],s=t("{","}",r);if(!s||/\$$/.test(s.pre))return[r];var c,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=v||g,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,.*\}/)?d(r=s.pre+"{"+s.body+i+s.post):[r];if(m)c=s.body.split(/\.\./);else if(1===(c=u(s.body)).length&&1===(c=d(c[0],!1).map(l)).length)return(w=s.post.length?d(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var b,E=s.pre,w=s.post.length?d(s.post,!1):[""];if(m){var S=a(c[0]),O=a(c[1]),R=Math.max(c[0].length,c[1].length),I=3==c.length?Math.abs(a(c[2])):1,A=h;O0){var k=new Array(L+1).join("0");j=T<0?"-"+k+j.slice(1):k+j}}b.push(j)}}else b=e(c,(function(e){return d(e,!1)}));for(var P=0;P65536)throw new TypeError("pattern is too long")};l.prototype.parse=function(e,r){h(e);var a=this.options;if("**"===e){if(!a.noglobstar)return t;e="*"}if(""===e)return"";var c,u="",l=!!a.nocase,f=!1,d=[],v=[],g=!1,m=-1,y=-1,b="."===e.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=this;function w(){if(c){switch(c){case"*":u+=o,l=!0;break;case"?":u+=i,l=!0;break;default:u+="\\"+c}E.debug("clearStateChar %j %j",c,u),c=!1}}for(var S,O=0,R=e.length;O-1;k--){var P=v[k],N=u.slice(0,P.reStart),_=u.slice(P.reStart,P.reEnd-8),C=u.slice(P.reEnd-8,P.reEnd),F=u.slice(P.reEnd);C+=F;var D=N.split("(").length-1,M=F;for(O=0;O=0&&!(i=t[o]);o--);for(o=0;o>> no match, partial?",e,h,r,p),h!==a))}if("string"==typeof l?(u=f===l,this.debug("string match",l,f,u)):(u=f.match(l),this.debug("pattern match",l,f,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")},pd}Ad("split",(function(e,t,r){var n="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:Rd(t,this,e,r)}:t;return[function(t,r){var i=jd(this),o=Td(t)?void 0:_d(t,e);return o?Rd(o,t,i,r):Rd(n,Nd(i),t,r)},function(e,i){var o=xd(this),s=Nd(e);if(!$d){var a=r(n,o,s,i,n!==t);if(a.done)return a.value}var c=Ld(o,RegExp),u=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Dd?"g":"y"),f=new c(Dd?"^(?:"+o.source+")":o,l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===Cd(f,s)?[s]:[];for(var p=0,d=0,v=[];d0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var s=tv(r/2),a=rv(ev(e,0,s),t),c=rv(ev(e,s),t),u=a.length,l=c.length,f=0,h=0;f3)){if(Ev)return!0;if(Sv)return Sv<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Ov.push({k:t+n,v:r})}for(Ov.sort((function(e,t){return t.v-e.v})),n=0;nvv(r)?1:-1}}(e)),r=pv(i),n=0;nu-n+r;o--)zv(c,o-1)}else if(r>n)for(o=u-n;o>l;o--)a=o+r-1,(s=o+n-1)in c?c[a]=c[s]:zv(c,a);for(o=0;oi?(n.splice(0,i),process.nextTick((function(){r.apply(null,o)}))):delete t[e]}}))}(e))})),Qv}function dg(){if(tg)return eg;tg=1,eg=y;var e=sd(),t=Hd();t.Minimatch;var o=Kd(),s=n.EventEmitter,a=r,c=i,u=Zd(),l=function(){if(Pv)return kv;Pv=1,kv=h,h.GlobSync=p;var e=sd(),t=Hd();t.Minimatch,dg().Glob;var n=r,o=i,s=Zd(),a=_v(),c=a.setopts,u=a.ownProp,l=a.childrenIgnored,f=a.isIgnored;function h(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new p(e,t).found}function p(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof p))return new p(e,t);if(c(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&u(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},p.prototype._mark=function(e){return a.mark(this,e)},p.prototype._makeAbs=function(e){return a.makeAbs(this,e)},kv}(),f=_v(),h=f.setopts,p=f.ownProp,d=pg(),v=f.childrenIgnored,g=f.isIgnored,m=hg();function y(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return l(e,t)}return new E(e,t,r)}y.sync=l;var b=y.GlobSync=l.GlobSync;function E(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new b(e,t)}if(!(this instanceof E))return new E(e,t,r);h(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=m(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var o=!0,s=0;s1)return!0;for(var i=0;ithis.maxLength)return t();if(!this.stat&&p(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,o)}var a=this,c=d("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return a.fs.stat(r,(function(n,o){n?a._stat2(e,r,null,i,t):a._stat2(e,r,n,o,t)}));a._stat2(e,r,n,i,t)}));c&&a.fs.lstat(r,c)},E.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var o="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,o&&"FILE"===s?i():i(null,s,n)},eg}function vg(){if(rg)return nd;rg=1;var r=e,n=t,i=dg(),o=ny(),s=Object.create(o);nd.extend=Object.assign;var a=Boolean(process.versions.electron),c={fatal:!1,globOptions:{},maxdepth:255,noglob:!1,silent:!1,verbose:!1,execPath:null,bufLength:65536},u={reset:function(){Object.assign(this,c),a||(this.execPath=process.execPath)},resetForTesting:function(){this.reset(),this.silent=!0}};u.reset(),nd.config=u;var l={error:null,errorCode:0,currentCmd:"shell.js"};function f(e){return"object"==typeof e&&null!==e}function h(){u.silent||console.error.apply(console,arguments)}function p(e){if("string"!=typeof e)throw new TypeError("input must be a string");return e.replace(/\\/g,"/")}function d(e,t,r){if("string"!=typeof e)throw new Error("msg must be a string");var n={continue:!1,code:1,prefix:l.currentCmd+": ",silent:!1};"number"==typeof t&&f(r)?r.code=t:f(t)?r=t:"number"==typeof t?r={code:t}:"number"!=typeof t&&(r={}),r=Object.assign({},n,r),l.errorCode||(l.errorCode=r.code);var i=p(r.prefix+e);if(l.error=l.error?l.error+"\n":"",l.error+=i,u.fatal)throw new Error(i);if(e.length>0&&!r.silent&&h(i),!r.continue)throw{msg:"earlyExit",retValue:new v("",l.error,l.errorCode)}}function v(e,t,r){var n;return e instanceof Array?((n=e).stdout=e.join("\n"),e.length>0&&(n.stdout+="\n")):(n=new String(e)).stdout=e,n.stderr=t,n.code=r,w.forEach((function(e){n[e]=s[e].bind(n)})),n}function g(e,t,r){if("string"!=typeof e&&!f(e))throw new Error("options must be strings or key-value pairs");if(!f(t))throw new Error("parseOptions() internal error: map must be an object");if(r&&!f(r))throw new Error("parseOptions() internal error: errorOptions must be object");if("--"===e)return{};var n={};if(Object.keys(t).forEach((function(e){var r=t[e];"!"!==r[0]&&(n[r]=!1)})),""===e)return n;if("string"==typeof e){if("-"!==e[0])throw new Error("Options string must start with a '-'");e.slice(1).split("").forEach((function(e){if(e in t){var i=t[e];"!"===i[0]?n[i.slice(1)]=!1:n[i]=!0}else d("option not recognized: "+e,r||{})}))}else Object.keys(e).forEach((function(i){var o=i[1];if(o in t){var s=t[o];n[s]=e[i]}else d("option not recognized: "+o,r||{})}));return n}function m(e){if(!Array.isArray(e))throw new TypeError("must be an array");var t=[];return e.forEach((function(e){if("string"!=typeof e)t.push(e);else{var r;try{r=(r=i.sync(e,u.globOptions)).length>0?r:[e]}catch(t){r=[e]}t=t.concat(r)}})),t}nd.state=l,delete process.env.OLDPWD,nd.isObject=f,nd.log=h,nd.convertErrorOutput=p,nd.error=d,nd.ShellString=v,nd.parseOptions=g,nd.expand=m;var y="function"==typeof Buffer.alloc?function(e){return Buffer.alloc(e||u.bufLength)}:function(e){return new Buffer(e||u.bufLength)};function b(e,t,n){return n=n||{},function(){var i=null;l.currentCmd=e,l.error=null,l.errorCode=0;try{var o=[].slice.call(arguments,0);if(u.verbose&&console.error.apply(console,[e].concat(o)),l.pipedValue=this&&"string"==typeof this.stdout?this.stdout:"",!1===n.unix)i=t.apply(this,o);else{f(o[0])&&"Object"===o[0].constructor.name||(0===o.length||"string"!=typeof o[0]||o[0].length<=1||"-"!==o[0][0])&&o.unshift(""),o=(o=o.reduce((function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)}),[])).map((function(e){return f(e)&&"String"===e.constructor.name?e.toString():e}));var s=r.homedir();o=o.map((function(e){return"string"==typeof e&&"~/"===e.slice(0,2)||"~"===e?e.replace(/^~/,s):e})),u.noglob||!0!==n.allowGlobbing||(o=o.slice(0,n.globStart).concat(m(o.slice(n.globStart))));try{f(n.cmdOptions)&&(o[0]=g(o[0],n.cmdOptions)),i=t.apply(this,o)}catch(e){if("earlyExit"!==e.msg)throw e;i=e.retValue}}}catch(e){if(!l.error)throw e.name="ShellJSInternalError",e;if(u.fatal)throw e}return n.wrapOutput&&("string"==typeof i||Array.isArray(i))&&(i=new v(i,l.error,l.errorCode)),l.currentCmd="shell.js",i}}nd.buffer=y,nd.unlinkSync=function(e){try{n.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;n.chmodSync(e,"0666"),n.unlinkSync(e)}},nd.statFollowLinks=function(){return n.statSync.apply(n,arguments)},nd.statNoFollowLinks=function(){return n.lstatSync.apply(n,arguments)},nd.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var r="",n=0;n0&&"-"===t.charAt(0)?[].unshift.call(arguments,""):e.error("You must specify a file.")),t=e.parseOptions(t,{R:"recursive",c:"changes",v:"verbose"}),s=[].slice.call(arguments,2),t.recursive?(a=[],s.forEach((function t(r){var i=e.statNoFollowLinks(r);i.isSymbolicLink()||(a.push(r),i.isDirectory()&&n.readdirSync(r).forEach((function(e){t(r+"/"+e)})))}))):a=s,a.forEach((function(s){if(s=i.resolve(s),n.existsSync(s)||e.error("File not found: "+s),!t.recursive||!e.statNoFollowLinks(s).isSymbolicLink()){var a=e.statFollowLinks(s),c=a.isDirectory(),u=a.mode,l=u&o.TYPE_MASK,f=u;isNaN(parseInt(r,8))?r.split(",").forEach((function(r){var i=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(r);if(i){var a=i[1],h=i[2],p=i[3],d=-1!==a.indexOf("u")||"a"===a||""===a,v=-1!==a.indexOf("g")||"a"===a||""===a,g=-1!==a.indexOf("o")||"a"===a||""===a,m=-1!==p.indexOf("r"),y=-1!==p.indexOf("w"),b=-1!==p.indexOf("x"),E=-1!==p.indexOf("X"),w=-1!==p.indexOf("t"),S=-1!==p.indexOf("s");E&&c&&(b=!0);var O=0;switch(d&&(O|=(m?o.OWNER_READ:0)+(y?o.OWNER_WRITE:0)+(b?o.OWNER_EXEC:0)+(S?o.SETUID:0)),v&&(O|=(m?o.GROUP_READ:0)+(y?o.GROUP_WRITE:0)+(b?o.GROUP_EXEC:0)+(S?o.SETGID:0)),g&&(O|=(m?o.OTHER_READ:0)+(y?o.OTHER_WRITE:0)+(b?o.OTHER_EXEC:0)),w&&(O|=o.STICKY),h){case"+":f|=O;break;case"-":f&=~O;break;case"=":f=l+O,e.statFollowLinks(s).isDirectory()&&(f|=o.SETUID+o.SETGID&u);break;default:e.error("Could not recognize operator: `"+h+"`")}t.verbose&&console.log(s+" -> "+f.toString(8)),u!==f&&(!t.verbose&&t.changes&&console.log(s+" -> "+f.toString(8)),n.chmodSync(s,f),u=f)}else e.error("Invalid symbolic mode change: "+r)})):(f=l+parseInt(r,8),e.statFollowLinks(s).isDirectory()&&(f|=o.SETUID+o.SETGID&u),n.chmodSync(s,f))}})),""}return e.register("chmod",s,{}),ag=s}function bg(){if(lg)return ug;lg=1;var e=t,n=r,i=vg();function o(t,r,n){e.existsSync(t)||i.error("copyFileSync: no such file or directory: "+t);var o="win32"===process.platform;try{if(n.update&&i.statFollowLinks(t).mtime=i.config.maxdepth)){n++;var u="win32"===process.platform;try{e.mkdirSync(r)}catch(e){if("EEXIST"!==e.code)throw e}for(var l=e.readdirSync(t),f=0;f and/or "):(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]);var c=e.existsSync(a),u=c&&i.statFollowLinks(a);return c&&u.isDirectory()||!(r.length>1)||i.error("dest is not a directory (too many sources)"),c&&u.isFile()&&t.no_force?new i.ShellString("","",0):(r.forEach((function(c,l){if(!e.existsSync(c))return""===c&&(c="''"),void i.error("no such file or directory: "+c,{continue:!0});var f=i.statFollowLinks(c);if(!t.noFollowsymlink&&f.isDirectory())if(t.recursive){var h=u&&u.isDirectory()?n.join(a,n.basename(c)):a;try{i.statFollowLinks(n.dirname(a)),s(c,h,0,{no_force:t.no_force,followsymlink:t.followsymlink})}catch(e){i.error("cannot create directory '"+a+"': No such file or directory")}}else i.error("omitting directory '"+c+"'",{continue:!0});else{var p=a;u&&u.isDirectory()&&(p=n.normalize(a+"/"+n.basename(c)));var d=e.existsSync(p);if(d&&function(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}(r,l))return void(t.no_force||i.error("will not overwrite just-created '"+p+"' with '"+c+"'",{continue:!0}));if(d&&t.no_force)return;if(""===n.relative(c,p))return void i.error("'"+p+"' and '"+c+"' are the same file",{continue:!0});o(c,p,t)}})),new i.ShellString("",i.state.error,i.state.errorCode))}return i.register("cp",c,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:!1}),ug=c}var Eg,wg,Sg,Og,Rg,Ig={};function Ag(){if(Eg)return Ig;Eg=1;var e=vg(),t=mg(),n=r;e.register("dirs",l,{wrapOutput:!1}),e.register("pushd",c,{wrapOutput:!1}),e.register("popd",u,{wrapOutput:!1});var i=[];function o(e){return/^[\-+]\d+$/.test(e)}function s(t){if(o(t)){if(Math.abs(t)1))return e.error("no other directory");u=u.splice(1,1).concat(u)}return r["no-cd"]?u=u.slice(1):(c=n.resolve(u.shift()),t("",c)),i=u,l(r.quiet?"-q":"")}function u(r,a){if(o(r)&&(a=r,r=""),r=e.parseOptions(r,{n:"no-cd",q:"quiet"}),!i.length)return e.error("directory stack empty");if(a=s(a||"+0"),r["no-cd"]||a>0||i.length+a===0)a=a>0?a-1:a,i.splice(a,1);else{var c=n.resolve(i.shift());t("",c)}return l(r.quiet?"-q":"")}function l(t,r){if(o(t)&&(r=t,t=""),(t=e.parseOptions(t,{c:"clear",q:"quiet"})).clear)return i=[];var n=a();return r?((r=s(r))<0&&(r=n.length+r),t.quiet||e.log(n[r]),n[r]):(t.quiet||e.log(n.join(" ")),n)}return Ig.pushd=c,Ig.popd=u,Ig.dirs=l,Ig}function xg(){if(Sg)return wg;Sg=1;var e=o.format,t=vg();function r(r){var n=[].slice.call(arguments,r?0:1),i={};try{i=t.parseOptions(n[0],{e:"escapes",n:"no_newline"},{silent:!0}),n[0]&&n.shift()}catch(e){t.state.error=null}var o=e.apply(null,n);return i.no_newline||(o+="\n"),process.stdout.write(o),o}return t.register("echo",r,{allowGlobbing:!1}),wg=r}function Tg(){if(Rg)return Og;Rg=1;var e=vg();return Og=function(){return e.state.error}}var jg,Lg={exports:{}};function kg(){return jg||(jg=1,function(e){if(require.main!==e)throw new Error("This file should not be required");var r=s,n=t,i=process.argv[2],o=n.readFileSync(i,"utf8"),a=JSON.parse(o),c=a.command,u=a.execOptions,l=a.pipe,f=a.stdoutFile,h=a.stderrFile,p=r.exec(c,u,(function(e){e?void 0===e.code?process.exitCode=1:process.exitCode=e.code:process.exitCode=0})),d=n.createWriteStream(f),v=n.createWriteStream(h);p.stdout.pipe(d),p.stderr.pipe(v),p.stdout.pipe(process.stdout),p.stderr.pipe(process.stderr),l&&p.stdin.end(l)}(Lg)),Lg.exports}Lg.exports;var Pg,Ng,_g,Cg,Fg,Dg,Mg,Ug,Gg,Bg,$g,qg,Wg,Hg,zg,Xg,Vg,Yg,Kg,Jg,Qg,Zg={};function em(){if(Pg)return Zg;Pg=1;var r,n=vg(),i=e,o=t;function s(e){if(!e||!o.existsSync(e))return!1;if(!n.statFollowLinks(e).isDirectory())return!1;var t=e+"/"+n.randomFileName();try{return o.writeFileSync(t," "),n.unlinkSync(t),e}catch(e){return!1}}function a(){return r||(r=s(i.tmpdir())||s(process.env.TMPDIR)||s(process.env.TEMP)||s(process.env.TMP)||s(process.env.Wimp$ScrapDir)||s("C:\\TEMP")||s("C:\\TMP")||s("\\TEMP")||s("\\TMP")||s("/tmp")||s("/var/tmp")||s("/usr/tmp")||s("."))}return n.register("tempdir",a,{allowGlobbing:!1,wrapOutput:!1}),Zg.tempDir=a,Zg.isCached=function(){return r},Zg.clearCache=function(){r=void 0},Zg}function tm(){if(_g)return Ng;_g=1;var e=r;function t(){return e.resolve(process.cwd())}return vg().register("pwd",t,{allowGlobbing:!1}),Ng=t}function rm(){if(Fg)return Cg;Fg=1;var e=vg(),n=em().tempDir,i=tm(),o=r,a=t,c=s,u=20971520,l=1;function f(t,r,s){r=r||{},t||e.error("must specify command");var f=e.readFromPipe();return"function"==typeof r&&(s=r,r={async:!0}),"object"==typeof r&&"function"==typeof s&&(r.async=!0),(r=e.extend({silent:e.config.silent,async:!1},r)).async?function(t,r,n,o){r=e.extend({silent:e.config.silent,cwd:i().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r);var s=c.exec(t,r,(function(e,t,r){o&&(e?void 0===e.code?o(1,t,r):o(e.code,t,r):o(0,t,r))}));return n&&s.stdin.end(n),r.silent||(s.stdout.pipe(process.stdout),s.stderr.pipe(process.stderr)),s}(t,r,f,s):function(t,r,s){e.config.execPath||e.error("Unable to find a path to the node binary. Please manually set config.execPath");var f=n(),h=o.resolve(f+"/"+e.randomFileName()),p=o.resolve(f+"/"+e.randomFileName()),d=o.resolve(f+"/"+e.randomFileName());r=e.extend({silent:e.config.silent,cwd:i().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r),a.existsSync(h)&&e.unlinkSync(h),a.existsSync(p)&&e.unlinkSync(p),a.existsSync(d)&&e.unlinkSync(d),r.cwd=o.resolve(r.cwd);var v={command:t,execOptions:r,pipe:s,stdoutFile:d,stderrFile:p};function g(e,t){a.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}g(d,""),g(p,""),g(h,JSON.stringify(v));var m=[o.join(__dirname,"exec-child.js"),h];r.silent?r.stdio="ignore":r.stdio=[0,1,2];var y=0;try{delete r.shell,c.execFileSync(e.config.execPath,m,r)}catch(e){y=e.status||l}var b="",E="";"buffer"===r.encoding?(b=a.readFileSync(d),E=a.readFileSync(p)):(b=a.readFileSync(d,r.encoding),E=a.readFileSync(p,r.encoding));try{e.unlinkSync(h)}catch(e){}try{e.unlinkSync(p)}catch(e){}try{e.unlinkSync(d)}catch(e){}return 0!==y&&e.error(E,y,{continue:!0,silent:!0}),e.ShellString(b,E,y)}(t,r,f)}return e.register("exec",f,{unix:!1,canReceivePipe:!0,wrapOutput:!1}),Cg=f}function nm(){if(Mg)return Dg;Mg=1;var e=r,n=t,i=vg(),o=dg(),s=e.sep+"**";function a(t,r){t.all_deprecated&&(i.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),r=r?[].slice.call(arguments,1):["."];var a=[];function c(e,r,n){var o,s;"win32"===process.platform&&(r=r.replace(/\\/g,"/")),t.long?(n=n||(t.link?i.statFollowLinks(e):i.statNoFollowLinks(e)),a.push((o=r,(s=n).name=o,s.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")},s))):a.push(r)}return r.forEach((function(r){var a;try{if((a=t.link?i.statFollowLinks(r):i.statNoFollowLinks(r)).isSymbolicLink())try{var u=i.statFollowLinks(r);u.isDirectory()&&(a=u)}catch(e){}}catch(e){return void i.error("no such file or directory: "+r,2,{continue:!0})}a.isDirectory()&&!t.directory?t.recursive?o.sync(r+s,{dot:t.all,follow:t.link}).forEach((function(t){e.relative(r,t)&&c(t,e.relative(r,t))})):t.all?n.readdirSync(r).forEach((function(t){c(e.join(r,t),t)})):n.readdirSync(r).forEach((function(t){"."!==t[0]&&c(e.join(r,t),t)})):c(r,r,a)})),a}return i.register("ls",a,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}}),Dg=a}function im(){if(Gg)return Ug;Gg=1;var e=r,t=vg(),n=nm();function i(r,i){i?"string"==typeof i&&(i=[].slice.call(arguments,1)):t.error("no path specified");var o=[];function s(e){"win32"===process.platform&&(e=e.replace(/\\/g,"/")),o.push(e)}return i.forEach((function(r){var i;try{i=t.statFollowLinks(r)}catch(e){t.error("no such file or directory: "+r)}s(r),i.isDirectory()&&n({recursive:!0,all:!0},r).forEach((function(t){s(e.join(r,t))}))})),o}return t.register("find",i,{}),Ug=i}function om(){if($g)return Bg;$g=1;var e=vg(),r=t;function n(t,n,i){var o=e.readFromPipe();i||o||e.error("no paths given",2),i=[].slice.call(arguments,2),o&&i.unshift("-");var s=[];return t.ignoreCase&&(n=new RegExp(n,"i")),i.forEach((function(i){if(r.existsSync(i)||"-"===i){var a="-"===i?o:r.readFileSync(i,"utf8");if(t.nameOnly)a.match(n)&&s.push(i);else a.split("\n").forEach((function(e){var r=e.match(n);(t.inverse&&!r||!t.inverse&&r)&&s.push(e)}))}else e.error("no such file or directory: "+i,2,{continue:!0})})),s.join("\n")+"\n"}return e.register("grep",n,{globStart:2,canReceivePipe:!0,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}}),Bg=n}function sm(){if(Wg)return qg;Wg=1;var e=vg(),r=t;function n(t,n){var i=[],o=e.readFromPipe();n||o||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),n=[].slice.call(arguments,s),o&&n.unshift("-");var a=!1;return n.forEach((function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s;s="-"===n?o:t.numLines<0?r.readFileSync(n,"utf8"):function(t,n){for(var i=e.buffer(),o=i.length,s=o,a=0,c=r.openSync(t,"r"),u=0,l="";s===o&&u and/or "),r=String(r);var s=n.normalize(r).replace(RegExp(n.sep+"$"),""),a=n.resolve(r)===s;if(o=n.resolve(process.cwd(),String(o)),e.existsSync(o)&&(t.force||i.error("Destination file exists",{continue:!0}),e.unlinkSync(o)),t.symlink){var c="win32"===process.platform,u=c?"file":null,l=a?s:n.resolve(process.cwd(),n.dirname(o),r);e.existsSync(l)?c&&i.statFollowLinks(l).isDirectory()&&(u="junction"):i.error("Source file does not exist",{continue:!0});try{e.symlinkSync("junction"===u?l:r,o,u)}catch(e){i.error(e.message)}}else{e.existsSync(r)||i.error("Source file does not exist",{continue:!0});try{e.linkSync(r,o)}catch(e){i.error(e.message)}}return""}return i.register("ln",o,{cmdOptions:{s:"symlink",f:"force"}}),Hg=o}function cm(){if(Vg)return Xg;Vg=1;var e=vg(),n=t,i=r;function o(t){var r=i.dirname(t);r===t&&e.error("dirname() failed: ["+t+"]"),n.existsSync(r)||o(r),n.mkdirSync(t,parseInt("0777",8))}function s(t,r){return r||e.error("no paths given"),"string"==typeof r&&(r=[].slice.call(arguments,1)),r.forEach((function(r){try{var s=e.statNoFollowLinks(r);return void(t.fullpath?s.isFile()&&e.error("cannot create directory "+r+": File exists",{continue:!0}):e.error("path already exists: "+r,{continue:!0}))}catch(e){}var a=i.dirname(r);if(n.existsSync(a)||t.fullpath)try{t.fullpath?o(i.resolve(r)):n.mkdirSync(r,parseInt("0777",8))}catch(t){var c;if("EACCES"===t.code)c="Permission denied";else{if("ENOTDIR"!==t.code&&"ENOENT"!==t.code)throw t;c="Not a directory"}e.error("cannot create directory "+r+": "+c,{continue:!0})}else e.error("no such file or directory: "+a,{continue:!0})})),""}return e.register("mkdir",s,{cmdOptions:{p:"fullpath"}}),Xg=s}function um(){if(Kg)return Yg;Kg=1;var e=vg(),r=t;function n(t,o,s){var a;a=r.readdirSync(t);for(var c=0;c1e3)throw e}}catch(r){e.error("could not remove directory (code "+r.code+"): "+t,{continue:!0})}return l}}function i(e){var t=!0;try{var n=r.openSync(e,"a");r.closeSync(n)}catch(e){t=!1}return t}function o(t,r){return r||e.error("no paths given"),(r=[].slice.call(arguments,1)).forEach((function(r){var o;try{var s="/"===r[r.length-1]?r.slice(0,-1):r;o=e.statNoFollowLinks(s)}catch(n){return void(t.force||e.error("no such file or directory: "+r,{continue:!0}))}o.isFile()?function(t,r){r.force||i(t)?e.unlinkSync(t):e.error("permission denied: "+t,{continue:!0})}(r,t):o.isDirectory()?function(t,r){r.recursive?n(t,r.force):e.error("path is a directory",{continue:!0})}(r,t):o.isSymbolicLink()?function(t,r){var i;try{i=e.statFollowLinks(t)}catch(r){return void e.unlinkSync(t)}i.isFile()?e.unlinkSync(t):i.isDirectory()&&("/"===t[t.length-1]?r.recursive?n(t,r.force,!0):e.error("path is a directory",{continue:!0}):e.unlinkSync(t))}(r,t):o.isFIFO()&&function(t){e.unlinkSync(t)}(r)})),""}return e.register("rm",o,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}}),Yg=o}function lm(){if(Qg)return Jg;Qg=1;var e=t,n=r,i=vg(),o=bg(),s=um();function a(t,r,a){arguments.length<3?i.error("missing and/or "):arguments.length>3?(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]):"string"==typeof r?r=[r]:i.error("invalid arguments");var c=e.existsSync(a),u=c&&i.statFollowLinks(a);return c&&u.isDirectory()||!(r.length>1)||i.error("dest is not a directory (too many sources)"),c&&u.isFile()&&t.no_force&&i.error("dest file already exists: "+a),r.forEach((function(c,u){if(e.existsSync(c)){var l=a;if(e.existsSync(a)&&i.statFollowLinks(a).isDirectory()&&(l=n.normalize(a+"/"+n.basename(c))),e.existsSync(l)&&function(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}(r,u))t.no_force||i.error("will not overwrite just-created '"+l+"' with '"+c+"'",{continue:!0});else if(e.existsSync(l)&&t.no_force)i.error("dest file already exists: "+l,{continue:!0});else if(n.resolve(c)!==n.dirname(n.resolve(l)))try{e.renameSync(c,l)}catch(e){"EXDEV"===e.code&&(o("-r",c,l),s("-rf",c))}else i.error("cannot move to self: "+c,{continue:!0})}else i.error("no such file or directory: "+c,{continue:!0})})),""}return i.register("mv",a,{cmdOptions:{f:"!no_force",n:"no_force"}}),Jg=a}var fm,hm={};function pm(){return fm||(fm=1),hm}var dm,vm,gm,mm,ym,bm={};function Em(){return dm||(dm=1),bm}function wm(){if(gm)return vm;gm=1;var e=vg(),r=t;function n(t,n,i,o){var s=e.readFromPipe();"string"!=typeof i&&"function"!=typeof i&&("number"==typeof i?i=i.toString():e.error("invalid replacement string")),"string"==typeof n&&(n=RegExp(n)),o||s||e.error("no files given"),o=[].slice.call(arguments,3),s&&o.unshift("-");var a=[];return o.forEach((function(o){if(r.existsSync(o)||"-"===o){var c=("-"===o?s:r.readFileSync(o,"utf8")).split("\n").map((function(e){return e.replace(n,i)})).join("\n");a.push(c),t.inplace&&r.writeFileSync(o,c,"utf8")}else e.error("no such file or directory: "+o,2,{continue:!0})})),a.join("\n")}return e.register("sed",n,{globStart:3,canReceivePipe:!0,cmdOptions:{i:"inplace"}}),vm=n}function Sm(){if(ym)return mm;ym=1;var e=vg();function t(t){if(!t){var r=[].slice.call(arguments,0);r.length<2&&e.error("must provide an argument"),t=r[1]}var n="+"===t[0];n&&(t="-"+t.slice(1)),t=e.parseOptions(t,{e:"fatal",v:"verbose",f:"noglob"}),n&&Object.keys(t).forEach((function(e){t[e]=!t[e]})),Object.keys(t).forEach((function(r){n!==t[r]&&(e.config[r]=t[r])}))}return e.register("set",t,{allowGlobbing:!1,wrapOutput:!1}),mm=t}var Om=bp.end,Rm=Op("trimEnd")?function(){return Om(this)}:"".trimEnd;ji({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==Rm},{trimRight:Rm});var Im,Am,xm,Tm,jm,Lm,km,Pm,Nm,_m,Cm,Fm,Dm,Mm,Um,Gm,Bm;function $m(){if(Am)return Im;Am=1;var e=vg(),r=t;function n(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function i(e,t){var r=e.toLowerCase(),n=t.toLowerCase();return r===n?-1*e.localeCompare(t):r.localeCompare(n)}function o(e,t){var r=n(e),o=n(t);return r.hasOwnProperty("num")&&o.hasOwnProperty("num")&&r.num!==o.num?r.num-o.num:i(r.value,o.value)}function s(t,n){var s=e.readFromPipe();n||s||e.error("no files given"),n=[].slice.call(arguments,1),s&&n.unshift("-");var a=n.reduce((function(t,n){if("-"!==n){if(!r.existsSync(n))return e.error("no such file or directory: "+n,{continue:!0}),t;if(e.statFollowLinks(n).isDirectory())return e.error("read failed: "+n+": Is a directory",{continue:!0}),t}var i="-"===n?s:r.readFileSync(n,"utf8");return t.concat(i.trimRight().split("\n"))}),[]).sort(t.numerical?o:i);return t.reverse&&(a=a.reverse()),a.join("\n")+"\n"}return e.register("sort",s,{canReceivePipe:!0,cmdOptions:{r:"reverse",n:"numerical"}}),Im=s}function qm(){if(Tm)return xm;Tm=1;var e=vg(),r=t;function n(t,n){var i=[],o=e.readFromPipe();n||o||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),t.numLines=-1*Math.abs(t.numLines),n=[].slice.call(arguments,s),o&&n.unshift("-");var a=!1;return n.forEach((function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s=("-"===n?o:r.readFileSync(n,"utf8")).split("\n");""===s[s.length-1]?(s.pop(),a=!0):a=!1,i=i.concat(s.slice(t.numLines))})),a&&i.push(""),i.join("\n")}return e.register("tail",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),xm=n}function Wm(){if(Lm)return jm;Lm=1;var e=vg(),r=t;function n(t,n){n||e.error("no path given");var i=!1;if(Object.keys(t).forEach((function(e){!0===t[e]&&(i=!0)})),i||e.error("could not interpret expression"),t.link)try{return e.statNoFollowLinks(n).isSymbolicLink()}catch(e){return!1}if(!r.existsSync(n))return!1;if(t.exists)return!0;var o=e.statFollowLinks(n);return t.block?o.isBlockDevice():t.character?o.isCharacterDevice():t.directory?o.isDirectory():t.file?o.isFile():t.pipe?o.isFIFO():!!t.socket&&o.isSocket()}return e.register("test",n,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:!1,allowGlobbing:!1}),jm=n}function Hm(){if(Pm)return km;Pm=1;var e=vg(),n=t,i=r;function o(t,r){r||e.error("wrong arguments"),n.existsSync(i.dirname(r))||e.error("no such file or directory: "+i.dirname(r));try{return n.writeFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not write to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("to",o,{pipeOnly:!0,wrapOutput:!1}),km=o}function zm(){if(_m)return Nm;_m=1;var e=vg(),n=t,i=r;function o(t,r){r||e.error("wrong arguments"),n.existsSync(i.dirname(r))||e.error("no such file or directory: "+i.dirname(r));try{return n.appendFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not append to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("toEnd",o,{pipeOnly:!0,wrapOutput:!1}),Nm=o}function Xm(){if(Fm)return Cm;Fm=1;var e=vg(),r=t;function n(t,n){return n?"string"==typeof n?n=[].slice.call(arguments,1):e.error("file arg should be a string file path or an Array of string file paths"):e.error("no files given"),n.forEach((function(n){!function(t,n){var o=i(n);if(o&&o.isDirectory())return;if(!o&&t.no_create)return;r.closeSync(r.openSync(n,"a"));var s=new Date,a=t.date||s,c=t.date||s;if(t.reference){var u=i(t.reference);u||e.error("failed to get attributess of "+t.reference),a=u.mtime,c=u.atime}else t.date&&(a=t.date,c=t.date);t.atime_only&&t.mtime_only||(t.atime_only?a=o.mtime:t.mtime_only&&(c=o.atime));r.utimesSync(n,c,a)}(t,n)})),""}function i(t){try{return e.statFollowLinks(t)}catch(e){return null}}return e.register("touch",n,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}}),Cm=n}function Vm(){if(Mm)return Dm;Mm=1;var e=vg(),r=t;function n(t,n,i){var o=e.readFromPipe();o||(n||e.error("no input given"),r.existsSync(n)?e.statFollowLinks(n).isDirectory()&&e.error("error reading '"+n+"'"):e.error(n+": No such file or directory")),i&&r.existsSync(i)&&e.statFollowLinks(i).isDirectory()&&e.error(i+": Is a directory");var s=(n?r.readFileSync(n,"utf8"):o).trimRight().split("\n"),a=s.reduceRight((function(e,r){return 0===e.length?[{count:1,ln:r}]:0===(n=e[0].ln,i=r,t.ignoreCase?n.toLocaleLowerCase().localeCompare(i.toLocaleLowerCase()):n.localeCompare(i))?[{count:e[0].count+1,ln:r}].concat(e.slice(1)):[{count:1,ln:r}].concat(e);var n,i}),[]).filter((function(e){return!t.duplicates||e.count>1})).map((function(e){return(t.count?(r=7,n=e.count,(i=""+n).length0)||t.all);h++){var p=i.resolve(s[h],r);n&&(p=p.toUpperCase());var d=p.match(/\.[^<>:"/\|?*.]+$/);if(d&&f.indexOf(d[0])>=0){if(u(p)){l.push(p);break}}else for(var v=0;v0?t.all?l:l[0]:t.all?[]:null}return Um=l}function Km(){return Bm||(Bm={"/node_modules/shelljs/src/cat.js":gg,"/node_modules/shelljs/src/cd.js":mg,"/node_modules/shelljs/src/chmod.js":yg,"/node_modules/shelljs/src/common.js":vg,"/node_modules/shelljs/src/cp.js":bg,"/node_modules/shelljs/src/dirs.js":Ag,"/node_modules/shelljs/src/echo.js":xg,"/node_modules/shelljs/src/error.js":Tg,"/node_modules/shelljs/src/exec-child.js":kg,"/node_modules/shelljs/src/exec.js":rm,"/node_modules/shelljs/src/find.js":im,"/node_modules/shelljs/src/grep.js":om,"/node_modules/shelljs/src/head.js":sm,"/node_modules/shelljs/src/ln.js":am,"/node_modules/shelljs/src/ls.js":nm,"/node_modules/shelljs/src/mkdir.js":cm,"/node_modules/shelljs/src/mv.js":lm,"/node_modules/shelljs/src/popd.js":pm,"/node_modules/shelljs/src/pushd.js":Em,"/node_modules/shelljs/src/pwd.js":tm,"/node_modules/shelljs/src/rm.js":um,"/node_modules/shelljs/src/sed.js":wm,"/node_modules/shelljs/src/set.js":Sm,"/node_modules/shelljs/src/sort.js":$m,"/node_modules/shelljs/src/tail.js":qm,"/node_modules/shelljs/src/tempdir.js":em,"/node_modules/shelljs/src/test.js":Wm,"/node_modules/shelljs/src/to.js":Hm,"/node_modules/shelljs/src/toEnd.js":zm,"/node_modules/shelljs/src/touch.js":Xm,"/node_modules/shelljs/src/uniq.js":Vm,"/node_modules/shelljs/src/which.js":Ym})}function Jm(e,t){var r,n=function(e){var t=e[0];if("/"===t||"\\"===t)return!1;var r=e[1],n=e[2];return!(!("."!==t||r&&"/"!==r&&"\\"!==r)||!("."!==t||"."!==r||n&&"/"!==n&&"\\"!==n))&&(":"!==r||"/"!==n&&"\\"!==n)}(e);"/"===(e=Qm(e))[0]&&(t="");for(var i=Km(),o=["",".js",".json"];!(r=Qm(n?t+"/node_modules/"+e:t+"/"+e)).endsWith("/..");){for(var s=0;s0&&".."!==t[n-1]&&"."!==t[n-1]&&(t.splice(--n,2),n--);return e=t.join("/"),r&&"/"!==e[0]?e="/"+e:0===e.length&&(e="."),e}ji({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==Rm},{trimEnd:Rm});var Zm,ey,ty,ry={};function ny(){if(ty)return ry;ty=1;var e=vg();return(ey?Zm:(ey=1,Zm=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"])).forEach((function(e){!function(e){function t(t){var r=Jm(t,e);if(null!==r)return Km()[r]();throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(t){var r=Jm(t,e);return null!==r?r:require.resolve(t)},t}("/node_modules/shelljs")("./src/"+e)})),ry.exit=process.exit,ry.error=Tg(),ry.ShellString=e.ShellString,ry.env=process.env,ry.config=e.config,ry}var iy=ny(),oy=vg();Object.keys(iy).forEach((function(e){j[e]=iy[e]}));var sy=Hm();String.prototype.to=oy.wrap("to",sy);var ay=zm();String.prototype.toEnd=oy.wrap("toEnd",ay),j.config.fatal=!0,j.target={};var cy,uy=process.argv.slice(2),ly=uy.indexOf("--");ly>-1&&(cy=uy.slice(ly+1,uy.length),uy=uy.slice(0,ly)),setTimeout((function(){var e;if(1!==uy.length||"--help"!==uy[0]){for(e in j.target)!function(e,t){j.target[e]=function(){return t.done||(t.done=!0,t.result=t.apply(t,arguments)),t.result}}(e,j.target[e]);uy.length>0?uy.forEach((function(e){e in j.target?j.target[e](cy):console.log("no such target: "+e)})):"all"in j.target&&j.target.all(cy)}else for(e in console.log("Available targets:"),j.target)console.log(" "+e)}),0);var fy={exports:{}};!function(e,t){var r;t=fy.exports=m,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=n-6,s=t.re=[],a=t.safeRe=[],c=t.src=[],u=t.tokens={},l=0;function f(e){u[e]=l++}var h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[h,o]];function d(e){for(var t=0;t)?=?)",f("XRANGEIDENTIFIERLOOSE"),c[u.XRANGEIDENTIFIERLOOSE]=c[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",f("XRANGEIDENTIFIER"),c[u.XRANGEIDENTIFIER]=c[u.NUMERICIDENTIFIER]+"|x|X|\\*",f("XRANGEPLAIN"),c[u.XRANGEPLAIN]="[v=\\s]*("+c[u.XRANGEIDENTIFIER]+")(?:\\.("+c[u.XRANGEIDENTIFIER]+")(?:\\.("+c[u.XRANGEIDENTIFIER]+")(?:"+c[u.PRERELEASE]+")?"+c[u.BUILD]+"?)?)?",f("XRANGEPLAINLOOSE"),c[u.XRANGEPLAINLOOSE]="[v=\\s]*("+c[u.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+c[u.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+c[u.XRANGEIDENTIFIERLOOSE]+")(?:"+c[u.PRERELEASELOOSE]+")?"+c[u.BUILD]+"?)?)?",f("XRANGE"),c[u.XRANGE]="^"+c[u.GTLT]+"\\s*"+c[u.XRANGEPLAIN]+"$",f("XRANGELOOSE"),c[u.XRANGELOOSE]="^"+c[u.GTLT]+"\\s*"+c[u.XRANGEPLAINLOOSE]+"$",f("COERCE"),c[u.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",f("COERCERTL"),s[u.COERCERTL]=new RegExp(c[u.COERCE],"g"),a[u.COERCERTL]=new RegExp(d(c[u.COERCE]),"g"),f("LONETILDE"),c[u.LONETILDE]="(?:~>?)",f("TILDETRIM"),c[u.TILDETRIM]="(\\s*)"+c[u.LONETILDE]+"\\s+",s[u.TILDETRIM]=new RegExp(c[u.TILDETRIM],"g"),a[u.TILDETRIM]=new RegExp(d(c[u.TILDETRIM]),"g");f("TILDE"),c[u.TILDE]="^"+c[u.LONETILDE]+c[u.XRANGEPLAIN]+"$",f("TILDELOOSE"),c[u.TILDELOOSE]="^"+c[u.LONETILDE]+c[u.XRANGEPLAINLOOSE]+"$",f("LONECARET"),c[u.LONECARET]="(?:\\^)",f("CARETTRIM"),c[u.CARETTRIM]="(\\s*)"+c[u.LONECARET]+"\\s+",s[u.CARETTRIM]=new RegExp(c[u.CARETTRIM],"g"),a[u.CARETTRIM]=new RegExp(d(c[u.CARETTRIM]),"g");f("CARET"),c[u.CARET]="^"+c[u.LONECARET]+c[u.XRANGEPLAIN]+"$",f("CARETLOOSE"),c[u.CARETLOOSE]="^"+c[u.LONECARET]+c[u.XRANGEPLAINLOOSE]+"$",f("COMPARATORLOOSE"),c[u.COMPARATORLOOSE]="^"+c[u.GTLT]+"\\s*("+c[u.LOOSEPLAIN]+")$|^$",f("COMPARATOR"),c[u.COMPARATOR]="^"+c[u.GTLT]+"\\s*("+c[u.FULLPLAIN]+")$|^$",f("COMPARATORTRIM"),c[u.COMPARATORTRIM]="(\\s*)"+c[u.GTLT]+"\\s*("+c[u.LOOSEPLAIN]+"|"+c[u.XRANGEPLAIN]+")",s[u.COMPARATORTRIM]=new RegExp(c[u.COMPARATORTRIM],"g"),a[u.COMPARATORTRIM]=new RegExp(d(c[u.COMPARATORTRIM]),"g");f("HYPHENRANGE"),c[u.HYPHENRANGE]="^\\s*("+c[u.XRANGEPLAIN]+")\\s+-\\s+("+c[u.XRANGEPLAIN]+")\\s*$",f("HYPHENRANGELOOSE"),c[u.HYPHENRANGELOOSE]="^\\s*("+c[u.XRANGEPLAINLOOSE]+")\\s+-\\s+("+c[u.XRANGEPLAINLOOSE]+")\\s*$",f("STAR"),c[u.STAR]="(<|>)?=?\\s*\\*";for(var v=0;vn)return null;if(!(t.loose?a[u.LOOSE]:a[u.FULL]).test(e))return null;try{return new m(e,t)}catch(e){return null}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof m))return new m(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new m(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(O(e,t))return null;var r=g(e),n=g(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return o},t.compareIdentifiers=b;var y=/^[0-9]+$/;function b(e,t){var r=y.test(e),n=y.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}function S(e,t,r){return E(e,t,r)<0}function O(e,t,r){return 0===E(e,t,r)}function R(e,t,r){return 0!==E(e,t,r)}function I(e,t,r){return E(e,t,r)>=0}function A(e,t,r){return E(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return O(e,r,n);case"!=":return R(e,r,n);case">":return w(e,r,n);case">=":return I(e,r,n);case"<":return S(e,r,n);case"<=":return A(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function T(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof T){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof T))return new T(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===j?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return b(t,e)},t.major=function(e,t){return new m(e,t).major},t.minor=function(e,t){return new m(e,t).minor},t.patch=function(e,t){return new m(e,t).patch},t.compare=E,t.compareLoose=function(e,t){return E(e,t,!0)},t.compareBuild=function(e,t,r){var n=new m(e,r),i=new m(t,r);return n.compare(i)||n.compareBuild(i)},t.rcompare=function(e,t,r){return E(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=w,t.lt=S,t.eq=O,t.neq=R,t.gte=I,t.lte=A,t.cmp=x,t.Comparator=T;var j={};function L(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new L(e.raw,t);if(e instanceof T)return new L(e.value,t);if(!(this instanceof L))return new L(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function k(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every((function(e){return i.intersects(e,t)})),i=n.pop();return r}function P(e){return!e||"x"===e.toLowerCase()||"*"===e}function N(e,t,r,n,i,o,s,a,c,u,l,f,h){return((t=P(r)?"":P(n)?">="+r+".0.0":P(i)?">="+r+"."+n+".0":">="+t)+" "+(a=P(c)?"":P(u)?"<"+(+c+1)+".0.0":P(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function _(e,t,n){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function C(e,t,r){try{t=new L(t,r)}catch(e){return!1}return t.test(e)}function F(e,t,r,n){var i,o,s,a,c;switch(e=new m(e,n),t=new L(t,n),r){case">":i=w,o=A,s=S,a=">",c=">=";break;case"<":i=S,o=I,s=w,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(C(e,t,n))return!1;for(var u=0;u=0.0.0")),f=f||e,h=h||e,i(e.semver,f.semver,n)?f=e:s(e.semver,h.semver,n)&&(h=e)})),f.operator===a||f.operator===c)return!1;if((!h.operator||h.operator===a)&&o(e,h.semver))return!1;if(h.operator===c&&s(e,h.semver))return!1}return!0}T.prototype.parse=function(e){var t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new m(r[2],this.options.loose):this.semver=j},T.prototype.toString=function(){return this.value},T.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===j||e===j)return!0;if("string"==typeof e)try{e=new m(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},T.prototype.intersects=function(e,t){if(!(e instanceof T))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new L(e.value,t),C(this.value,r,t));if(""===e.operator)return""===e.value||(r=new L(this.value,t),C(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||c},t.Range=L,L.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},L.prototype.toString=function(){return this.range},L.prototype.parseRange=function(e){var t=this.options.loose,n=t?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];e=e.replace(n,N),r("hyphen replace",e),e=e.replace(a[u.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,a[u.COMPARATORTRIM]),e=(e=(e=e.replace(a[u.TILDETRIM],"$1~")).replace(a[u.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?a[u.COMPARATORLOOSE]:a[u.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[u.CARETLOOSE]:a[u.CARET];return e.replace(n,(function(t,n,i,o,s){var a;return r("caret",e,t,n,i,o,s),P(n)?a="":P(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":P(o)?a="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[u.TILDELOOSE]:a[u.TILDE];return e.replace(n,(function(t,n,i,o,s){var a;return r("tilde",e,t,n,i,o,s),P(n)?a="":P(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":P(o)?a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"):a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return e.replace(n,(function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var u=P(o),l=u||P(s),f=l||P(a),h=f;return"="===i&&h&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&h?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),n=i+o+"."+s+"."+a+c):l?n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c:f&&(n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[u.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o=o.map((function(e){return new T(e,this.options)}),this)},L.prototype.intersects=function(e,t){if(!(e instanceof L))throw new TypeError("a Range is required");return this.set.some((function(r){return k(r,t)&&e.set.some((function(e){return k(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new L(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},L.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new m(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!w(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new L(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return F(e,t,"<",r)},t.gtr=function(e,t,r){return F(e,t,">",r)},t.outside=F,t.prerelease=function(e,t){var r=g(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new L(e,r),t=new L(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof m)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=a[u.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),a[u.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;a[u.COERCERTL].lastIndex=-1}else r=e.match(a[u.COERCE]);if(null===r)return null;return g(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}(0,fy.exports);var hy,py,dy,vy,gy=L(fy.exports),my="process"===te(P.process),yy=we,by=TypeError,Ey=function(e,t){if(yy(t,e))return e;throw new by("Incorrect invocation")},wy=TypeError,Sy=function(e,t){if(eo;o++)if((a=m(e[o]))&&yw(Rw,a))return a;return new Ow(!1)}n=bw(e,i)}for(c=h?e.next:n.next;!(u=pw(c,n)).done;){try{a=m(u.value)}catch(e){ww(n,"throw",e)}if("object"==typeof a&&a&&yw(Rw,a))return a}return new Ow(!1)},Aw=jt("iterator"),xw=!1;try{var Tw=0,jw={next:function(){return{done:!!Tw++}},return:function(){xw=!0}};jw[Aw]=function(){return this},Array.from(jw,(function(){throw 2}))}catch(e){}var Lw=function(e,t){try{if(!t&&!xw)return!1}catch(e){return!1}var r=!1;try{var n={};n[Aw]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},kw=Tb,Pw=Wb.CONSTRUCTOR||!Lw((function(e){kw.all(e).then(void 0,(function(){}))})),Nw=U,_w=He,Cw=Hb,Fw=xb,Dw=Iw;ji({target:"Promise",stat:!0,forced:Pw},{all:function(e){var t=this,r=Cw.f(t),n=r.resolve,i=r.reject,o=Fw((function(){var r=_w(t.resolve),o=[],s=0,a=1;Dw(e,(function(e){var c=s++,u=!1;a++,Nw(r,t,e).then((function(e){u||(u=!0,o[c]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise}});var Mw=ji,Uw=Wb.CONSTRUCTOR,Gw=Tb,Bw=Ee,$w=ve,qw=An,Ww=Gw&&Gw.prototype;if(Mw({target:"Promise",proto:!0,forced:Uw,real:!0},{catch:function(e){return this.then(void 0,e)}}),$w(Gw)){var Hw=Bw("Promise").prototype.catch;Ww.catch!==Hw&&qw(Ww,"catch",Hw,{unsafe:!0})}var zw=U,Xw=He,Vw=Hb,Yw=xb,Kw=Iw;ji({target:"Promise",stat:!0,forced:Pw},{race:function(e){var t=this,r=Vw.f(t),n=r.reject,i=Yw((function(){var i=Xw(t.resolve);Kw(e,(function(e){zw(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Jw=Hb;ji({target:"Promise",stat:!0,forced:Wb.CONSTRUCTOR},{reject:function(e){var t=Jw.f(this);return(0,t.reject)(e),t.promise}});var Qw=ar,Zw=me,eS=Hb,tS=function(e,t){if(Qw(e),Zw(t)&&t.constructor===e)return t;var r=eS.f(e);return(0,r.resolve)(t),r.promise},rS=ji,nS=Wb.CONSTRUCTOR,iS=tS;Ee("Promise"),rS({target:"Promise",stat:!0,forced:nS},{resolve:function(e){return iS(this,e)}});var oS,sS=_u,aS=TypeError,cS=function(e){if(sS(e))throw new aS("The method doesn't accept regular expressions");return e},uS=jt("match"),lS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[uS]=!1,"/./"[e](t)}catch(e){}}return!1},fS=ji,hS=Xo,pS=N.f,dS=Mn,vS=uo,gS=cS,mS=le,yS=lS,bS=hS("".slice),ES=Math.min,wS=yS("startsWith");fS({target:"String",proto:!0,forced:!!(wS||(oS=pS(String.prototype,"startsWith"),!oS||oS.writable))&&!wS},{startsWith:function(e){var t=vS(mS(this));gS(e);var r=dS(ES(arguments.length>1?arguments[1]:void 0,t.length)),n=vS(e);return bS(t,r,r+n.length)===n}});var SS,OS,RS,IS,AS,xS={exports:{}};AS="win32"===process.platform||j.TESTING_WINDOWS?function(){if(IS)return RS;IS=1,RS=n,n.sync=function(t,n){return r(e.statSync(t),t,n)};var e=t;function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;nObject.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),CS=(e,t)=>{const r=t.colon||PS,n=e.match(/\//)||LS&&e.match(/\\/)?[""]:[...LS?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=LS?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=LS?i.split(r):[""];return LS&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i}},FS=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const n=CS(e,t),i=n.pathEnv,o=n.pathExt,s=n.pathExtExe,a=[],c=r=>new Promise(((n,o)=>{if(r===i.length)return t.all&&a.length?n(a):o(_S(e));const s=i[r],c=/^".*"$/.test(s)?s.slice(1,-1):s,l=kS.join(c,e),f=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;n(u(f,r,0))})),u=(e,r,n)=>new Promise(((i,l)=>{if(n===o.length)return i(c(r+1));const f=o[n];NS(e+f,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return i(e+f);a.push(e+f)}return i(u(e,r,n+1))}))}));return r?c(0).then((e=>r(null,e)),r):c(0)};var DS=FS;FS.sync=(e,t)=>{const r=CS(e,t=t||{}),n=r.pathEnv,i=r.pathExt,o=r.pathExtExe,s=[];for(let r=0;r{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};MS.exports=US,MS.exports.default=US;var GS=MS.exports;L(GS);const BS=r,$S=DS,qS=GS;function WS(e,t){const r=e.options.env||process.env,n=process.cwd(),i=null!=e.options.cwd,o=i&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=$S.sync(e.command,{path:r[qS({env:r})],pathExt:t?BS.delimiter:void 0})}catch(e){}finally{o&&process.chdir(n)}return s&&(s=BS.resolve(i?e.options.cwd:"",s)),s}var HS=function(e){return WS(e)||WS(e,!0)};L(HS);var zS={};const XS=/([()\][%!^"`<>&|;, *?])/g;zS.command=function(e){return e=e.replace(XS,"^$1")},zS.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(XS,"^$1"),t&&(e=e.replace(XS,"^$1")),e};var VS=/^#!(.*)/;L(VS);const YS=VS;var KS=(e="")=>{const t=e.match(YS);if(!t)return null;const r=O(t[0].replace(/#! ?/,"").split(" "),2),n=r[0],i=r[1],o=n.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o};L(KS);const JS=t,QS=KS;var ZS=function(e){const t=Buffer.alloc(150);let r;try{r=JS.openSync(e,"r"),JS.readSync(r,t,0,150,0),JS.closeSync(r)}catch(e){}return QS(t.toString())};L(ZS);const eO=r,tO=HS,rO=zS,nO=ZS,iO="win32"===process.platform,oO=/\.(?:com|exe)$/i,sO=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function aO(e){if(!iO)return e;const t=function(e){e.file=tO(e);const t=e.file&&nO(e.file);return t?(e.args.unshift(e.file),e.command=t,tO(e)):e.file}(e),r=!oO.test(t);if(e.options.forceShell||r){const r=sO.test(t);e.command=eO.normalize(e.command),e.command=rO.command(e.command),e.args=e.args.map((e=>rO.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var cO=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:aO(n)};L(cO);const uO="win32"===process.platform;function lO(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function fO(e,t){return uO&&1===e&&!t.file?lO(t.original,"spawn"):null}var hO={hookChildProcess:function(e,t){if(!uO)return;const r=e.emit;e.emit=function(n,i){if("exit"===n){const n=fO(i,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:fO,verifyENOENTSync:function(e,t){return uO&&1===e&&!t.file?lO(t.original,"spawnSync"):null},notFoundError:lO};L(hO);const pO=s,dO=cO,vO=hO;function gO(e,t,r){const n=dO(e,t,r),i=pO.spawn(n.command,n.args,n.options);return vO.hookChildProcess(i,n),i}xS.exports=gO,xS.exports.spawn=gO,xS.exports.sync=function(e,t,r){const n=dO(e,t,r),i=pO.spawnSync(n.command,n.args,n.options);return i.error=i.error||vO.verifyENOENTSync(i.status,n),i},xS.exports._parse=dO,xS.exports._enoent=vO;var mO=L(xS.exports);var yO=Yf.charAt,bO=uo,EO=rn,wO=uc,SO=lc,OO="String Iterator",RO=EO.set,IO=EO.getterFor(OO);wO(String,"String",(function(e){RO(this,{type:OO,string:bO(e),index:0})}),(function(){var e,t=IO(this),r=t.string,n=t.index;return n>=r.length?SO(void 0,!0):(e=yO(r,n),t.index+=e.length,SO(e,!1))}));var AO=_,xO=C,TO=jt("iterator"),jO=!AO((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!xO||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[TO]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),LO=C,kO=J,PO=U,NO=_,_O=Fs,CO=ti,FO=G,DO=ht,MO=se,UO=Object.assign,GO=Object.defineProperty,BO=kO([].concat),$O=!UO||NO((function(){if(LO&&1!==UO({b:1},UO(GO({},"a",{enumerable:!0,get:function(){GO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==UO({},e)[r]||_O(UO({},t)).join("")!==n}))?function(e,t){for(var r=DO(e),n=arguments.length,i=1,o=CO.f,s=FO.f;n>i;)for(var a,c=MO(arguments[i++]),u=o?BO(_O(c),o(c)):_O(c),l=u.length,f=0;l>f;)a=u[f++],LO&&!PO(s,c,a)||(r[a]=c[a]);return r}:UO,qO=ar,WO=fw,HO=Jo,zO=U,XO=ht,VO=function(e,t,r,n){try{return n?t(qO(r)[0],r[1]):t(r)}catch(t){WO(e,"throw",t)}},YO=VE,KO=hs,JO=Gn,QO=Uc,ZO=aw,eR=ew,tR=Array,rR=function(e){var t=XO(e),r=KO(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=HO(i,n>2?arguments[2]:void 0));var s,a,c,u,l,f,h=eR(t),p=0;if(!h||this===tR&&YO(h))for(s=JO(t),a=r?new this(s):tR(s);s>p;p++)f=o?i(t[p],p):t[p],QO(a,p,f);else for(a=r?new this:[],l=(u=ZO(t,h)).next;!(c=zO(l,u)).done;p++)f=o?VO(u,i,[c.value,p],!0):c.value,QO(a,p,f);return a.length=p,a},nR=J,iR=2147483647,oR=/[^\0-\u007E]/,sR=/[.\u3002\uFF0E\uFF61]/g,aR="Overflow: input needs wider integers to process",cR=RangeError,uR=nR(sR.exec),lR=Math.floor,fR=String.fromCharCode,hR=nR("".charCodeAt),pR=nR([].join),dR=nR([].push),vR=nR("".replace),gR=nR("".split),mR=nR("".toLowerCase),yR=function(e){return e+22+75*(e<26)},bR=function(e,t,r){var n=0;for(e=r?lR(e/700):e>>1,e+=lR(e/t);e>455;)e=lR(e/35),n+=36;return lR(n+36*e/(e+38))},ER=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r=o&&nlR((iR-s)/f))throw new cR(aR);for(s+=(l-o)*f,o=l,r=0;riR)throw new cR(aR);if(n===o){for(var h=s,p=36;;){var d=p<=a?1:p>=a+26?26:p-a;if(h=t.length)return e.target=void 0,VR(void 0,!0);var n=t[r];switch(e.kind){case"keys":return VR(n.key,!1);case"values":return VR(n.value,!1)}return VR([n.key,n.value],!1)}),!0),LI=function(e){this.entries=[],this.url=null,void 0!==e&&($R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===hI(e,0)?bI(e,1):e:qR(e)))};LI.prototype={type:QR,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,s,a,c=this.entries,u=XR(e);if(u)for(r=(t=zR(e,u)).next;!(n=AR(r,t)).done;){if(o=(i=zR(BR(n.value))).next,(s=AR(o,i)).done||(a=AR(o,i)).done||!AR(o,i).done)throw new uI("Expected sequence with length 2");dI(c,{key:qR(s.value),value:qR(a.value)})}else for(var l in e)MR(e,l)&&dI(c,{key:l,value:qR(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=yI(e,"&"),o=0;o0?arguments[0]:void 0));TR||(this.size=e.entries.length)},PI=kI.prototype;if(PR(PI,{append:function(e,t){var r=tI(this);YR(arguments.length,2),dI(r.entries,{key:qR(e),value:qR(t)}),TR||this.length++,r.updateURL()},delete:function(e){for(var t=tI(this),r=YR(arguments.length,1),n=t.entries,i=qR(e),o=r<2?void 0:arguments[1],s=void 0===o?o:qR(o),a=0;at.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=tI(this).entries,n=UR(e,arguments.length>1?arguments[1]:void 0),i=0;i1?CI(arguments[1]):{})}}),DR(iI)){var FI=function(e){return FR(this,sI),new iI(e,arguments.length>1?CI(arguments[1]):{})};sI.constructor=FI,FI.prototype=sI,OR({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:FI})}}var DI,MI=ji,UI=C,GI=jO,BI=P,$I=Jo,qI=J,WI=An,HI=Ju,zI=Ey,XI=vt,VI=$O,YI=rR,KI=Gc,JI=Yf.codeAt,QI=function(e){var t,r,n=[],i=gR(vR(mR(e),sR,"."),".");for(t=0;t?@[\\\]^|]/,FA=/[\0\t\n\r #/:<>?@[\\\]^|]/,DA=/^[\u0000-\u0020]+/,MA=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,UA=/[\t\n\r]/g,GA=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)RA(t,e%256),e=fA(e/256);return vA(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=gA(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},BA={},$A=VI({},BA,{" ":1,'"':1,"<":1,">":1,"`":1}),qA=VI({},$A,{"#":1,"?":1,"{":1,"}":1}),WA=VI({},qA,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),HA=function(e,t){var r=JI(e,0);return r>32&&r<127&&!XI(t,e)?e:encodeURIComponent(e)},zA={ftp:21,file:null,http:80,https:443,ws:80,wss:443},XA=function(e,t){var r;return 2===e.length&&dA(TA,pA(e,0))&&(":"===(r=pA(e,1))||!t&&"|"===r)},VA=function(e){var t;return e.length>1&&XA(SA(e,0,2))&&(2===e.length||"/"===(t=pA(e,2))||"\\"===t||"?"===t||"#"===t)},YA=function(e){return"."===e||"%2e"===OA(e)},KA={},JA={},QA={},ZA={},ex={},tx={},rx={},nx={},ix={},ox={},sx={},ax={},cx={},ux={},lx={},fx={},hx={},px={},dx={},vx={},gx={},mx=function(e,t,r){var n,i,o,s=ZI(e);if(t){if(i=this.parse(s))throw new uA(i);this.searchParams=null}else{if(void 0!==r&&(n=new mx(r,!0)),i=this.parse(s,null,n))throw new uA(i);(o=aA(new sA)).bindURL(this),this.searchParams=o}};mx.prototype={type:"URL",parse:function(e,t,r){var n,i,o,s,a,c=this,u=t||KA,l=0,f="",h=!1,p=!1,d=!1;for(e=ZI(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=bA(e,DA,""),e=bA(e,MA,"$1")),e=bA(e,UA,""),n=YI(e);l<=n.length;){switch(i=n[l],u){case KA:if(!i||!dA(TA,i)){if(t)return IA;u=QA;continue}f+=OA(i),u=JA;break;case JA:if(i&&(dA(jA,i)||"+"===i||"-"===i||"."===i))f+=OA(i);else{if(":"!==i){if(t)return IA;f="",u=QA,l=0;continue}if(t&&(c.isSpecial()!==XI(zA,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&zA[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?u=ux:c.isSpecial()&&r&&r.scheme===c.scheme?u=ZA:c.isSpecial()?u=nx:"/"===n[l+1]?(u=ex,l++):(c.cannotBeABaseURL=!0,yA(c.path,""),u=dx)}break;case QA:if(!r||r.cannotBeABaseURL&&"#"!==i)return IA;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=KI(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=gx;break}u="file"===r.scheme?ux:tx;continue;case ZA:if("/"!==i||"/"!==n[l+1]){u=tx;continue}u=ix,l++;break;case ex:if("/"===i){u=ox;break}u=px;continue;case tx:if(c.scheme=r.scheme,i===DI)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())u=rx;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.query="",u=vx;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.path.length--,u=px;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.query=r.query,c.fragment="",u=gx}break;case rx:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=px;continue}u=ox}else u=ix;break;case nx:if(u=ix,"/"!==i||"/"!==pA(f,l+1))continue;l++;break;case ix:if("/"!==i&&"\\"!==i){u=ox;continue}break;case ox:if("@"===i){h&&(f="%40"+f),h=!0,o=YI(f);for(var v=0;v65535)return xA;c.port=c.isSpecial()&&y===zA[c.scheme]?null:y,f=""}if(t)return;u=hx;continue}return xA}f+=i;break;case ux:if(c.scheme="file","/"===i||"\\"===i)u=lx;else{if(!r||"file"!==r.scheme){u=px;continue}switch(i){case DI:c.host=r.host,c.path=KI(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=KI(r.path),c.query="",u=vx;break;case"#":c.host=r.host,c.path=KI(r.path),c.query=r.query,c.fragment="",u=gx;break;default:VA(vA(KI(n,l),""))||(c.host=r.host,c.path=KI(r.path),c.shortenPath()),u=px;continue}}break;case lx:if("/"===i||"\\"===i){u=fx;break}r&&"file"===r.scheme&&!VA(vA(KI(n,l),""))&&(XA(r.path[0],!0)?yA(c.path,r.path[0]):c.host=r.host),u=px;continue;case fx:if(i===DI||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&XA(f))u=px;else if(""===f){if(c.host="",t)return;u=hx}else{if(s=c.parseHost(f))return s;if("localhost"===c.host&&(c.host=""),t)return;f="",u=hx}continue}f+=i;break;case hx:if(c.isSpecial()){if(u=px,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==DI&&(u=px,"/"!==i))continue}else c.fragment="",u=gx;else c.query="",u=vx;break;case px:if(i===DI||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(a=OA(a=f))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||yA(c.path,"")):YA(f)?"/"===i||"\\"===i&&c.isSpecial()||yA(c.path,""):("file"===c.scheme&&!c.path.length&&XA(f)&&(c.host&&(c.host=""),f=pA(f,0)+":"),yA(c.path,f)),f="","file"===c.scheme&&(i===DI||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)EA(c.path);"?"===i?(c.query="",u=vx):"#"===i&&(c.fragment="",u=gx)}else f+=HA(i,qA);break;case dx:"?"===i?(c.query="",u=vx):"#"===i?(c.fragment="",u=gx):i!==DI&&(c.path[0]+=HA(i,BA));break;case vx:t||"#"!==i?i!==DI&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":HA(i,BA)):(c.fragment="",u=gx);break;case gx:i!==DI&&(c.fragment+=HA(i,$A))}l++}},parseHost:function(e){var t,r,n;if("["===pA(e,0)){if("]"!==pA(e,e.length-1))return AA;if(t=function(e){var t,r,n,i,o,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return pA(e,f)};if(":"===h()){if(":"!==pA(e,1))return;f+=2,l=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&dA(_A,h());)t=16*t+lA(h(),16),f++,r++;if("."===h()){if(0===r)return;if(f-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;f++}if(!dA(LA,h()))return;for(;dA(LA,h());){if(o=lA(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(s=u-l,u=7;0!==u&&s>0;)a=c[u],c[u--]=c[l+s-1],c[l+--s]=a;else if(8!==u)return;return c}(SA(e,1,-1)),!t)return AA;this.host=t}else if(this.isSpecial()){if(e=QI(e),dA(CA,e))return AA;if(t=function(e){var t,r,n,i,o,s,a,c=wA(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n1&&"0"===pA(i,0)&&(o=dA(kA,i)?16:8,i=SA(i,8===o?1:2)),""===i)s=0;else{if(!dA(10===o?NA:8===o?PA:_A,i))return e;s=lA(i,o)}yA(r,s)}for(n=0;n=hA(256,5-t))return null}else if(s>255)return null;for(a=mA(r),n=0;n1?arguments[1]:void 0,n=iA(t,new mx(e,!1,r));UI||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},bx=yx.prototype,Ex=function(e,t){return{get:function(){return oA(this)[e]()},set:t&&function(e){return oA(this)[t](e)},configurable:!0,enumerable:!0}};if(UI&&(HI(bx,"href",Ex("serialize","setHref")),HI(bx,"origin",Ex("getOrigin")),HI(bx,"protocol",Ex("getProtocol","setProtocol")),HI(bx,"username",Ex("getUsername","setUsername")),HI(bx,"password",Ex("getPassword","setPassword")),HI(bx,"host",Ex("getHost","setHost")),HI(bx,"hostname",Ex("getHostname","setHostname")),HI(bx,"port",Ex("getPort","setPort")),HI(bx,"pathname",Ex("getPathname","setPathname")),HI(bx,"search",Ex("getSearch","setSearch")),HI(bx,"searchParams",Ex("getSearchParams")),HI(bx,"hash",Ex("getHash","setHash"))),WI(bx,"toJSON",(function(){return oA(this).serialize()}),{enumerable:!0}),WI(bx,"toString",(function(){return oA(this).serialize()}),{enumerable:!0}),cA){var wx=cA.createObjectURL,Sx=cA.revokeObjectURL;wx&&WI(yx,"createObjectURL",$I(wx,cA)),Sx&&WI(yx,"revokeObjectURL",$I(Sx,cA))}eA(yx,"URL"),MI({global:!0,constructor:!0,forced:!GI,sham:!UI},{URL:yx});var Ox=U;ji({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Ox(URL.prototype.toString,this)}});var Rx=An,Ix=J,Ax=uo,xx=Sy,Tx=URLSearchParams,jx=Tx.prototype,Lx=Ix(jx.append),kx=Ix(jx.delete),Px=Ix(jx.forEach),Nx=Ix([].push),_x=new Tx("a=1&a=2&b=3");_x.delete("a",1),_x.delete("b",void 0),_x+""!="a=2"&&Rx(jx,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return kx(this,e);var n=[];Px(this,(function(e,t){Nx(n,{key:t,value:e})})),xx(t,1);for(var i,o=Ax(e),s=Ax(r),a=0,c=0,u=!1,l=n.length;a"PATH"===e.toUpperCase()))||"Path"}Wx&&!("size"in Xx)&&zx(Xx,"size",{get:function(){var e=0;return Vx(this,(function(){e++})),e},configurable:!0,enumerable:!0});const Kx=["env"];function Jx(e={}){let t=e.env,r=void 0===t?l.env:t,n=S(e,Kx);r=Object.assign({},r);const i=Yx({env:r});return n.path=r[i],r[i]=function(e={}){const t=e.cwd,r=void 0===t?l.cwd():t,n=e.path,i=void 0===n?l.env[Yx()]:n,o=e.execPath,s=void 0===o?l.execPath:o;let a;const u=r instanceof URL?f.fileURLToPath(r):r;let h=c.resolve(u);const p=[];for(;a!==h;)p.push(c.join(h,"node_modules/.bin")),a=h,h=c.resolve(h,"..");return p.push(c.resolve(u,s,"..")),[...p,i].join(c.delimiter)}(n),r}var Qx=!_((function(){return Object.isExtensible(Object.preventExtensions({}))})),Zx={exports:{}},eT={},tT=te,rT=pe,nT=xn.f,iT=Gc,oT="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];eT.f=function(e){return oT&&"Window"===tT(e)?function(e){try{return nT(e)}catch(e){return iT(oT)}}(e):nT(rT(e))};var sT=_((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),aT=_,cT=me,uT=te,lT=sT,fT=Object.isExtensible,hT=aT((function(){fT(1)}))||lT?function(e){return!!cT(e)&&((!lT||"ArrayBuffer"!==uT(e))&&(!fT||fT(e)))}:fT,pT=ji,dT=J,vT=$r,gT=me,mT=vt,yT=rr.f,bT=xn,ET=eT,wT=hT,ST=Qx,OT=!1,RT=Et("meta"),IT=0,AT=function(e){yT(e,RT,{value:{objectID:"O"+IT++,weakData:{}}})},xT=Zx.exports={enable:function(){xT.enable=function(){},OT=!0;var e=bT.f,t=dT([].splice),r={};r[RT]=1,e(r).length&&(bT.f=function(r){for(var n=e(r),i=0,o=n.length;i({name:`SIGRT${t+1}`,number:sL+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),sL=34,aL=64,cL=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],uL=()=>{const e=(()=>{const e=aL-sL+1;return Array.from({length:e},oL)})();return[...cL,...e].map(lL)},lL=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{const s=h.constants.signals[e],a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},fL=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}],hL=(()=>{const e=uL();return Object.fromEntries(e.map(fL))})(),pL=(e,t)=>{const r=dL(e,t);if(void 0===r)return{};return{[e]:{name:r.name,number:e,description:r.description,supported:r.supported,action:r.action,forced:r.forced,standard:r.standard}}},dL=(e,t)=>{const r=t.find((({name:t})=>h.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))};(()=>{const e=uL(),t=aL+1,r=Array.from({length:t},((t,r)=>pL(r,e)));Object.assign({},...r)})();const vL=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:f,parsed:{options:{timeout:h,cwd:p=l.cwd()}}})=>{o=null===o?void 0:o;const d=void 0===(i=null===i?void 0:i)?void 0:hL[i].description,v=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed")({timedOut:c,timeout:h,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:u}),g=`Command ${v}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),y=m?`${g}\n${n.message}`:g,b=[y,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=b):n=new Error(b),n.shortMessage=y,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,n.cwd=p,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=u,n.killed=f&&!c,n};var gL=Hn.includes,mL=pa;ji({target:"Array",proto:!0,forced:_((function(){return!Array(1).includes()}))},{includes:function(e){return gL(this,e,arguments.length>1?arguments[1]:void 0)}}),mL("includes");var yL=ji,bL=cS,EL=le,wL=uo,SL=lS,OL=J("".indexOf);yL({target:"String",proto:!0,forced:!SL("includes")},{includes:function(e){return!!~OL(wL(EL(this)),wL(bL(e)),arguments.length>1?arguments[1]:void 0)}});const RL=["stdin","stdout","stderr"],IL=e=>{if(!e)return;const t=e.stdio;if(void 0===t)return RL.map((t=>e[t]));if((e=>RL.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${RL.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=Math.max(t.length,RL.length);return Array.from({length:r},((e,r)=>t[r]))};var AL=ji,xL=Tb,TL=_,jL=Ee,LL=ve,kL=Od,PL=tS,NL=An,_L=xL&&xL.prototype;if(AL({target:"Promise",proto:!0,real:!0,forced:!!xL&&TL((function(){_L.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=kL(this,jL("Promise")),r=LL(e);return this.then(r?function(r){return PL(t,e()).then((function(){return r}))}:e,r?function(r){return PL(t,e()).then((function(){throw r}))}:e)}}),LL(xL)){var CL=jL("Promise").prototype.finally;_L.finally!==CL&&NL(_L,"finally",CL,{unsafe:!0})}var FL=P;ji({global:!0,forced:FL.globalThis!==FL},{globalThis:FL}),WT("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),lj);const DL=[];DL.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&DL.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&DL.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const ML=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,UL=Symbol.for("signal-exit emitter"),GL=globalThis,BL=Object.defineProperty.bind(Object);class $L{constructor(){if(w(this,"emitted",{afterExit:!1,exit:!1}),w(this,"listeners",{afterExit:[],exit:[]}),w(this,"count",0),w(this,"id",Math.random()),GL[UL])return GL[UL];BL(GL,UL,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(var i,o=A(this.listeners[e]);!(i=o()).done;){n=!0===(0,i.value)(t,r)||n}return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class qL{}var WL=new WeakMap,HL=new WeakMap,zL=new WeakMap,XL=new WeakMap,VL=new WeakMap,YL=new WeakMap,KL=new WeakMap,JL=new WeakSet;function QL(e){return ML(m(zL,this))?(m(zL,this).exitCode=e||0,m(HL,this).emit("exit",m(zL,this).exitCode,null),m(VL,this).call(m(zL,this),m(zL,this).exitCode)):0}function ZL(e,...t){const r=m(XL,this);if("exit"===e&&ML(m(zL,this))){"number"==typeof t[0]&&(m(zL,this).exitCode=t[0]);const n=r.call(m(zL,this),e,...t);return m(HL,this).emit("exit",m(zL,this).exitCode,null),n}return r.call(m(zL,this),e,...t)}const ek=globalThis.process;ML(ek)?new class extends qL{constructor(e){var t,r;super(),x(t=this,r=JL),r.add(t),T(this,WL,"win32"===ek.platform?"SIGINT":"SIGHUP"),T(this,HL,new $L),T(this,zL,void 0),T(this,XL,void 0),T(this,VL,void 0),T(this,YL,{}),T(this,KL,!1),y(zL,this,e),y(YL,this,{});for(var n,i=A(DL);!(n=i()).done;){const t=n.value;m(YL,this)[t]=()=>{const r=m(zL,this).listeners(t);let n=m(HL,this).count;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();const r=m(HL,this).emit("exit",null,t),n="SIGHUP"===t?m(WL,this):t;r||e.kill(e.pid,n)}}}y(VL,this,e.reallyExit),y(XL,this,e.emit)}onExit(e,t){if(!ML(m(zL,this)))return()=>{};!1===m(KL,this)&&this.load();const r=null!=t&&t.alwaysLast?"afterExit":"exit";return m(HL,this).on(r,e),()=>{m(HL,this).removeListener(r,e),0===m(HL,this).listeners.exit.length&&0===m(HL,this).listeners.afterExit.length&&this.unload()}}load(){if(!m(KL,this)){y(KL,this,!0),m(HL,this).count+=1;for(var e,t=A(DL);!(e=t()).done;){const t=e.value;try{const e=m(YL,this)[t];e&&m(zL,this).on(t,e)}catch(e){}}m(zL,this).emit=(e,...t)=>g(JL,this,ZL).call(this,e,...t),m(zL,this).reallyExit=e=>g(JL,this,QL).call(this,e)}}unload(){m(KL,this)&&(y(KL,this,!1),DL.forEach((e=>{const t=m(YL,this)[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{m(zL,this).removeListener(e,t)}catch(e){}})),m(zL,this).emit=m(XL,this),m(zL,this).reallyExit=m(VL,this),m(HL,this).count-=1)}}(ek):new class extends qL{onExit(){return()=>{}}load(){}unload(){}};var tk=P,rk={},nk=jt;rk.f=nk;var ik=tk,ok=vt,sk=rk,ak=rr.f,ck=function(e){var t=ik.Symbol||(ik.Symbol={});ok(t,e)||ak(t,e,{value:sk.f(e)})};ck("asyncIterator");var uk=te,lk=TypeError,fk=Di(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==uk(e))throw new lk("ArrayBuffer expected");return e.byteLength},hk=fk,pk=J(ArrayBuffer.prototype.slice),dk=function(e){if(0!==hk(e))return!1;try{return pk(e,0,0),!1}catch(e){return!0}},vk=C,gk=Ju,mk=dk,yk=ArrayBuffer.prototype;vk&&!("detached"in yk)&&gk(yk,"detached",{configurable:!0,get:function(){return mk(this)}});var bk,Ek,wk,Sk,Ok=kn,Rk=Mn,Ik=RangeError,Ak=function(e){if(void 0===e)return 0;var t=Ok(e),r=Rk(t);if(t!==r)throw new Ik("Wrong length or index");return r},xk=my,Tk=_,jk=je,Lk=Lb,kk=jb,Pk=my,Nk=P.structuredClone,_k=!!Nk&&!Tk((function(){if(kk&&jk>92||Pk&&jk>94||Lk&&jk>97)return!1;var e=new ArrayBuffer(8),t=Nk(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),Ck=P,Fk=function(e){try{if(xk)return Function('return require("'+e+'")')()}catch(e){}},Dk=_k,Mk=Ck.structuredClone,Uk=Ck.ArrayBuffer,Gk=Ck.MessageChannel,Bk=!1;if(Dk)Bk=function(e){Mk(e,{transfer:[e]})};else if(Uk)try{Gk||(bk=Fk("worker_threads"))&&(Gk=bk.MessageChannel),Gk&&(Ek=new Gk,wk=new Uk(2),Sk=function(e){Ek.port1.postMessage(null,[e])},2===wk.byteLength&&(Sk(wk),0===wk.byteLength&&(Bk=Sk)))}catch(e){}var $k=P,qk=J,Wk=Di,Hk=Ak,zk=dk,Xk=fk,Vk=Bk,Yk=_k,Kk=$k.structuredClone,Jk=$k.ArrayBuffer,Qk=$k.DataView,Zk=$k.TypeError,eP=Math.min,tP=Jk.prototype,rP=Qk.prototype,nP=qk(tP.slice),iP=Wk(tP,"resizable","get"),oP=Wk(tP,"maxByteLength","get"),sP=qk(rP.getInt8),aP=qk(rP.setInt8),cP=(Yk||Vk)&&function(e,t,r){var n,i=Xk(e),o=void 0===t?i:Hk(t),s=!iP||!iP(e);if(zk(e))throw new Zk("ArrayBuffer is detached");if(Yk&&(e=Kk(e,{transfer:[e]}),i===o&&(r||s)))return e;if(i>=o&&(!r||s))n=nP(e,0,o);else{var a=r&&!s&&oP?{maxByteLength:oP(e)}:void 0;n=new Jk(o,a);for(var c=new Qk(e),u=new Qk(n),l=eP(o,i),f=0;fr||c!=c?s*(1/0):s*c},lN=Math.fround||function(e){return uN(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},fN=Array,hN=Math.abs,pN=Math.pow,dN=Math.floor,vN=Math.log,gN=Math.LN2,mN={pack:function(e,t,r){var n,i,o,s=fN(r),a=8*r-t-1,c=(1<>1,l=23===t?pN(2,-24)-pN(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=hN(e))!=e||e===1/0?(i=e!=e?1:0,n=c):(n=dN(vN(e)/gN),e*(o=pN(2,-n))<1&&(n--,o*=2),(e+=n+u>=1?l/o:l*pN(2,1-u))*o>=2&&(n++,o/=2),n+u>=c?(i=0,n=c):n+u>=1?(i=(e*o-1)*pN(2,t),n+=u):(i=e*pN(2,u-1)*pN(2,t),n=0));t>=8;)s[h++]=255&i,i/=256,t-=8;for(n=n<0;)s[h++]=255&n,n/=256,a-=8;return s[--h]|=128*f,s},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<>1,a=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;a>0;)l=256*l+e[c--],a-=8;for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;)r=256*r+e[c--],a-=8;if(0===l)l=1-s;else{if(l===o)return r?NaN:u?-1/0:1/0;r+=pN(2,t),l-=s}return(u?-1:1)*r*pN(2,l-t)}},yN=ht,bN=Cn,EN=Gn,wN=function(e){for(var t=yN(this),r=EN(t),n=arguments.length,i=bN(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,s=void 0===o?r:bN(o,r);s>i;)t[i++]=e;return t},SN=P,ON=J,RN=C,IN=vP,AN=wr,xN=Ju,TN=SR,jN=_,LN=Ey,kN=kn,PN=Mn,NN=Ak,_N=lN,CN=mN,FN=Oa,DN=zi,MN=wN,UN=Gc,GN=Qi,BN=hi,$N=Fa,qN=rn,WN=Tr.PROPER,HN=Tr.CONFIGURABLE,zN="ArrayBuffer",XN="DataView",VN="prototype",YN="Wrong index",KN=qN.getterFor(zN),JN=qN.getterFor(XN),QN=qN.set,ZN=SN[zN],e_=ZN,t_=e_&&e_[VN],r_=SN[XN],n_=r_&&r_[VN],i_=Object.prototype,o_=SN.Array,s_=SN.RangeError,a_=ON(MN),c_=ON([].reverse),u_=CN.pack,l_=CN.unpack,f_=function(e){return[255&e]},h_=function(e){return[255&e,e>>8&255]},p_=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},d_=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},v_=function(e){return u_(_N(e),23,4)},g_=function(e){return u_(e,52,8)},m_=function(e,t,r){xN(e[VN],t,{configurable:!0,get:function(){return r(this)[t]}})},y_=function(e,t,r,n){var i=JN(e),o=NN(r),s=!!n;if(o+t>i.byteLength)throw new s_(YN);var a=i.bytes,c=o+i.byteOffset,u=UN(a,c,c+t);return s?u:c_(u)},b_=function(e,t,r,n,i,o){var s=JN(e),a=NN(r),c=n(+i),u=!!o;if(a+t>s.byteLength)throw new s_(YN);for(var l=s.bytes,f=a+s.byteOffset,h=0;h>24)},setUint8:function(e,t){S_(this,e,t<<24>>24)}},{unsafe:!0})}else t_=(e_=function(e){LN(this,t_);var t=NN(e);QN(this,{type:zN,bytes:a_(o_(t),0),byteLength:t}),RN||(this.byteLength=t,this.detached=!1)})[VN],r_=function(e,t,r){LN(this,n_),LN(e,t_);var n=KN(e),i=n.byteLength,o=kN(t);if(o<0||o>i)throw new s_("Wrong offset");if(o+(r=void 0===r?i-o:PN(r))>i)throw new s_("Wrong length");QN(this,{type:XN,buffer:e,byteLength:r,byteOffset:o,bytes:n.bytes}),RN||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},n_=r_[VN],RN&&(m_(e_,"byteLength",KN),m_(r_,"buffer",JN),m_(r_,"byteLength",JN),m_(r_,"byteOffset",JN)),TN(n_,{getInt8:function(e){return y_(this,1,e)[0]<<24>>24},getUint8:function(e){return y_(this,1,e)[0]},getInt16:function(e){var t=y_(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=y_(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return d_(y_(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return d_(y_(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return l_(y_(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return l_(y_(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){b_(this,1,e,f_,t)},setUint8:function(e,t){b_(this,1,e,f_,t)},setInt16:function(e,t){b_(this,2,e,h_,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){b_(this,2,e,h_,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){b_(this,4,e,p_,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){b_(this,4,e,p_,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){b_(this,4,e,v_,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){b_(this,8,e,g_,t,arguments.length>2&&arguments[2])}});$N(e_,zN),$N(r_,XN);var O_={ArrayBuffer:e_,DataView:r_},R_=me,I_=Math.floor,A_=Number.isInteger||function(e){return!R_(e)&&isFinite(e)&&I_(e)===e},x_=kn,T_=RangeError,j_=function(e){var t=x_(e);if(t<0)throw new T_("The argument can't be less than 0");return t},L_=RangeError,k_=function(e,t){var r=j_(e);if(r%t)throw new L_("Wrong offset");return r},P_=Math.round,N_=so,__=function(e){var t=N_(e);return"BigInt64Array"===t||"BigUint64Array"===t},C_=Dt,F_=TypeError,D_=function(e){var t=C_(e,"number");if("number"==typeof t)throw new F_("Can't convert number to bigint");return BigInt(t)},M_=Jo,U_=U,G_=yd,B_=ht,$_=Gn,q_=aw,W_=ew,H_=VE,z_=__,X_=JP.aTypedArrayConstructor,V_=D_,Y_=Gn,K_=function(e,t,r){for(var n=0,i=arguments.length>2?r:Y_(t),o=new e(i);i>n;)o[n]=t[n++];return o},J_=ji,Q_=P,Z_=U,eC=C,tC=iN,rC=JP,nC=O_,iC=Ey,oC=z,sC=wr,aC=A_,cC=Mn,uC=Ak,lC=k_,fC=function(e){var t=P_(e);return t<0?0:t>255?255:255&t},hC=Gt,pC=vt,dC=so,vC=me,gC=Ue,mC=ia,yC=we,bC=zi,EC=xn.f,wC=function(e){var t,r,n,i,o,s,a,c,u=G_(this),l=B_(e),f=arguments.length,h=f>1?arguments[1]:void 0,p=void 0!==h,d=W_(l);if(d&&!H_(d))for(c=(a=q_(l,d)).next,l=[];!(s=U_(c,a)).done;)l.push(s.value);for(p&&f>2&&(h=M_(h,arguments[2])),r=$_(l),n=new(X_(u))(r),i=z_(n),t=0;r>t;t++)o=p?h(l[t],t):l[t],n[t]=i?V_(o):+o;return n},SC=xs.forEach,OC=rl,RC=Ju,IC=rr,AC=N,xC=K_,TC=Qi,jC=rn.get,LC=rn.set,kC=rn.enforce,PC=IC.f,NC=AC.f,_C=Q_.RangeError,CC=nC.ArrayBuffer,FC=CC.prototype,DC=nC.DataView,MC=rC.NATIVE_ARRAY_BUFFER_VIEWS,UC=rC.TYPED_ARRAY_TAG,GC=rC.TypedArray,BC=rC.TypedArrayPrototype,$C=rC.isTypedArray,qC="BYTES_PER_ELEMENT",WC="Wrong length",HC=function(e,t){RC(e,t,{configurable:!0,get:function(){return jC(this)[t]}})},zC=function(e){var t;return yC(FC,e)||"ArrayBuffer"===(t=dC(e))||"SharedArrayBuffer"===t},XC=function(e,t){return $C(e)&&!gC(t)&&t in e&&aC(+t)&&t>=0},VC=function(e,t){return t=hC(t),XC(e,t)?oC(2,e[t]):NC(e,t)},YC=function(e,t,r){return t=hC(t),!(XC(e,t)&&vC(r)&&pC(r,"value"))||pC(r,"get")||pC(r,"set")||r.configurable||pC(r,"writable")&&!r.writable||pC(r,"enumerable")&&!r.enumerable?PC(e,t,r):(e[t]=r.value,e)};eC?(MC||(AC.f=VC,IC.f=YC,HC(BC,"buffer"),HC(BC,"byteOffset"),HC(BC,"byteLength"),HC(BC,"length")),J_({target:"Object",stat:!0,forced:!MC},{getOwnPropertyDescriptor:VC,defineProperty:YC}),dP.exports=function(e,t,r){var n=e.match(/\d+/)[0]/8,i=e+(r?"Clamped":"")+"Array",o="get"+e,s="set"+e,a=Q_[i],c=a,u=c&&c.prototype,l={},f=function(e,t){PC(e,t,{get:function(){return function(e,t){var r=jC(e);return r.view[o](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var o=jC(e);o.view[s](t*n+o.byteOffset,r?fC(i):i,!0)}(this,t,e)},enumerable:!0})};MC?tC&&(c=t((function(e,t,r,i){return iC(e,u),TC(vC(t)?zC(t)?void 0!==i?new a(t,lC(r,n),i):void 0!==r?new a(t,lC(r,n)):new a(t):$C(t)?xC(c,t):Z_(wC,c,t):new a(uC(t)),e,c)})),bC&&bC(c,GC),SC(EC(a),(function(e){e in c||sC(c,e,a[e])})),c.prototype=u):(c=t((function(e,t,r,i){iC(e,u);var o,s,a,l=0,h=0;if(vC(t)){if(!zC(t))return $C(t)?xC(c,t):Z_(wC,c,t);o=t,h=lC(r,n);var p=t.byteLength;if(void 0===i){if(p%n)throw new _C(WC);if((s=p-h)<0)throw new _C(WC)}else if((s=cC(i)*n)+h>p)throw new _C(WC);a=s/n}else a=uC(t),o=new CC(s=a*n);for(LC(e,{buffer:o,byteOffset:h,byteLength:s,length:a,view:new DC(o)});l=0?n:r+n;return i<0||i>=r?void 0:t[i]}));var ZC=wN,eF=D_,tF=so,rF=U,nF=_,iF=JP.aTypedArray,oF=JP.exportTypedArrayMethod,sF=J("".slice);oF("fill",(function(e){var t=arguments.length;iF(this);var r="Big"===sF(tF(this),0,3)?eF(e):+e;return rF(ZC,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),nF((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var aF=Jo,cF=se,uF=ht,lF=Gn,fF=function(e){var t=1===e;return function(r,n,i){for(var o,s=uF(r),a=cF(s),c=lF(a),u=aF(n,i);c-- >0;)if(u(o=a[c],c,s))switch(e){case 0:return o;case 1:return c}return t?-1:void 0}},hF={findLast:fF(0),findLastIndex:fF(1)},pF=hF.findLast,dF=JP.aTypedArray;(0,JP.exportTypedArrayMethod)("findLast",(function(e){return pF(dF(this),e,arguments.length>1?arguments[1]:void 0)}));var vF=hF.findLastIndex,gF=JP.aTypedArray;(0,JP.exportTypedArrayMethod)("findLastIndex",(function(e){return vF(gF(this),e,arguments.length>1?arguments[1]:void 0)}));var mF=P,yF=_,bF=J,EF=JP,wF=Sc,SF=jt("iterator"),OF=mF.Uint8Array,RF=bF(wF.values),IF=bF(wF.keys),AF=bF(wF.entries),xF=EF.aTypedArray,TF=EF.exportTypedArrayMethod,jF=OF&&OF.prototype,LF=!yF((function(){jF[SF].call([1])})),kF=!!jF&&jF.values&&jF[SF]===jF.values&&"values"===jF.values.name,PF=function(){return RF(xF(this))};TF("entries",(function(){return AF(xF(this))}),LF),TF("keys",(function(){return IF(xF(this))}),LF),TF("values",PF,LF||!kF,{name:"values"}),TF(SF,PF,LF||!kF,{name:"values"});var NF=P,_F=U,CF=JP,FF=Gn,DF=k_,MF=ht,UF=_,GF=NF.RangeError,BF=NF.Int8Array,$F=BF&&BF.prototype,qF=$F&&$F.set,WF=CF.aTypedArray,HF=CF.exportTypedArrayMethod,zF=!UF((function(){var e=new Uint8ClampedArray(2);return _F(qF,e,{length:1,0:3},1),3!==e[1]})),XF=zF&&CF.NATIVE_ARRAY_BUFFER_VIEWS&&UF((function(){var e=new BF(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));HF("set",(function(e){WF(this);var t=DF(arguments.length>1?arguments[1]:void 0,1),r=MF(e);if(zF)return _F(qF,this,r,t);var n=this.length,i=FF(r),o=0;if(i+t>n)throw new GF("Wrong length");for(;o0&&1/r<0?1:-1:t>r}}(e))}),!aD||sD);var cD=Gn,uD=function(e,t){for(var r=cD(e),n=new t(r),i=0;i=i||s<0)throw new TD("Incorrect index");for(var a=new t(i),c=0;c"string"!=typeof t?e:((e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")})(e),p.readFileSync(t)),UD=e=>{const t=MD(e);if(null!==(r=t)&&"object"==typeof r&&"function"==typeof r.pipe)throw new TypeError("The `input` option cannot be a stream in sync mode");var r;return t},GD=(BD=function*(){},function(){var e=this,t=arguments;return new Promise((function(r,n){var i=BD.apply(e,t);function o(e){E(i,r,n,o,s,"next",e)}function s(e){E(i,r,n,o,s,"throw",e)}o(void 0)}))})().constructor.prototype;var BD;["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(GD,e)]));var $D=ht,qD=Gn,WD=kn,HD=pa;ji({target:"Array",proto:!0},{at:function(e){var t=$D(this),r=qD(t),n=WD(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:t[i]}}),HD("at");var zD=ji,XD=le,VD=kn,YD=uo,KD=_,JD=J("".charAt);zD({target:"String",proto:!0,forced:KD((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=YD(XD(this)),r=t.length,n=VD(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:JD(t,i)}});var QD=ji,ZD=Xo,eM=N.f,tM=Mn,rM=uo,nM=cS,iM=le,oM=lS,sM=ZD("".slice),aM=Math.min,cM=oM("endsWith"),uM=!cM&&!!function(){var e=eM(String.prototype,"endsWith");return e&&!e.writable}();QD({target:"String",proto:!0,forced:!uM&&!cM},{endsWith:function(e){var t=rM(iM(this));nM(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:aM(tM(r),n),o=rM(e);return sM(t,i-o.length,i)===o}});const lM=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],fM=/^[\w.-]+$/,hM=(e,t)=>lM(e,t).join(" "),pM=(e,t)=>lM(e,t).map((e=>(e=>"string"!=typeof e||fM.test(e)?e:`"${e.replaceAll('"','\\"')}"`)(e))).join(" ");var dM=kn,vM=uo,gM=le,mM=RangeError,yM=J,bM=Mn,EM=uo,wM=le,SM=yM((function(e){var t=vM(gM(this)),r="",n=dM(e);if(n<0||n===1/0)throw new mM("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),OM=yM("".slice),RM=Math.ceil,IM=function(e){return function(t,r,n){var i,o,s=EM(wM(t)),a=bM(r),c=s.length,u=void 0===n?" ":EM(n);return a<=c||""===u?s:((o=SM(u,RM((i=a-c)/u.length))).length>i&&(o=OM(o,0,i)),e?s+o:o+s)}},AM={start:IM(!1),end:IM(!0)},xM=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Se),TM=AM.start;ji({target:"String",proto:!0,forced:xM},{padStart:function(e){return TM(this,e,arguments.length>1?arguments[1]:void 0)}});const jM=v.debuglog("execa").enabled,LM=(e,t)=>String(e).padStart(t,"0"),kM=(e,{verbose:t})=>{t&&l.stderr.write(`[${(()=>{const e=new Date;return`${LM(e.getHours(),2)}:${LM(e.getMinutes(),2)}:${LM(e.getSeconds(),2)}.${LM(e.getMilliseconds(),3)}`})()}] ${e}\n`)},PM=(e,t,r={})=>{const n=mO._parse(e,t,r);return e=n.command,t=n.args,r=n.options,(r=Object.assign({maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||l.cwd(),execPath:l.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:jM},r)).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{const o=t?Object.assign(Object.assign({},l.env),e):e;return r?Jx({env:o,cwd:n,execPath:i}):o})(r),r.stdio=IL(r),"win32"===l.platform&&"cmd"===c.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},NM=(e,t,r)=>"string"==typeof t||a.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}(t):t:void 0===r?void 0:"";const _M=global,CM=new Proxy(global.target,{set:function(e,t,r){return Reflect.set(...arguments)},get:function(e,t,r){return UM(`make ${t}`),Reflect.get(...arguments)}}),FM=["packages","codemods","eslint"],DM=_M.which("yarn").stdout,MM=process.execPath;function UM(...e){console.log.apply(console,e)}function GM(e,t,n,i=!0){UM(`${e.replaceAll(DM,"yarn").replaceAll(MM,"node")} ${t.join(" ")}`);try{return function(e,t,r){const n=PM(e,t,r),i=hM(e,t),o=pM(e,t);kM(o,n.options);const s=UD(n.options);let a;try{a=u.spawnSync(n.file,n.args,Object.assign(Object.assign({},n.options),{},{input:s}))}catch(e){throw vL({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const c=NM(n.options,a.stdout,a.error),l=NM(n.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=vL({stdout:c,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:n,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!n.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:c,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}(e,t,{stdio:i?"inherit":void 0,cwd:n&&r.resolve(n),env:process.env}).stdout}catch(r){throw i&&0!==r.exitCode&&(console.error(new Error(`\ncommand: ${e} ${t.join(" ")}\ncode: ${r.exitCode}`)),process.exit(r.exitCode)),r}}function BM(e,t,r){return GM(DM,e,t,r)}function $M(e,t,r){return GM(MM,e,t,r)}function qM(e,t){const r=process.env;process.env=Object.assign(Object.assign({},r),t),e(),process.env=r}function WM(...e){const r={BABEL_ENV:"test"},n=["--format","codeframe",...e.filter(Boolean)],i=t.readdirSync("packages").filter((e=>t.existsSync(`packages/${e}/package.json`))),o=[];for(let e=0,t=40;eBM(["eslint","packages",...s,...n])),r);else for(var a,c=A(o);!(a=c()).done;){const e=a.value;qM((()=>BM(["eslint",...e,...n])),r)}}function HM(e,r,n){const i="./build/"+e.toLowerCase();_M.rm("-rf",i),_M.mkdir("-p","build"),GM("git",["clone","--filter=blob:none","--sparse","--single-branch","--shallow-since='2 years ago'",r,i]),GM("git",["sparse-checkout","set",...n],i),GM("git",["checkout","-q",function(e){const r=t.readFileSync("./Makefile","utf8").match(new RegExp(`${e}_COMMIT = (\\w{40})`))[1];if(!r)throw new Error(`Could not find ${e}_COMMIT in Makefile`);return r}(e)],i)}function zM(){const e=JSON.parse(t.readFileSync("./package.json","utf8")).version_babel8;return FM.forEach((r=>{t.readdirSync(r).forEach((n=>{const i=`${r}/${n}/package.json`;if(t.existsSync(i)){var o,s,a;const r=JSON.parse(t.readFileSync(i,"utf8"));null!=(o=r.peerDependencies)&&o["@babel/core"]&&(r.peerDependencies["@babel/core"]=`^${e}`);const c=null==(s=r.conditions)?void 0:s.BABEL_8_BREAKING[0];null!=c&&null!=(a=c.peerDependencies)&&a["@babel/core"]&&(c.peerDependencies["@babel/core"]=`^${e}`),"babel-eslint-plugin"===n&&(c.peerDependencies["@babel/eslint-parser"]=`^${e}`),t.writeFileSync(i,JSON.stringify(r,null,2)+"\n")}}))})),qM((()=>BM(["install"])),{YARN_ENABLE_IMMUTABLE_INSTALLS:!1}),e}_M.config.verbose=!0,CM["clean-all"]=function(){_M.rm("-rf",["package-lock.json",".changelog"]),FM.forEach((e=>{_M.rm("-rf",`${e}/*/test/tmp`),_M.rm("-rf",`${e}/*/package-lock.json`)})),CM.clean(),CM["clean-lib"](),CM["clean-node-modules"]()},CM["clean-node-modules"]=function(){_M.rm("-rf","node_modules"),FM.forEach((e=>{_M.rm("-rf",`${e}/*/node_modules`)}))},CM.clean=function(){CM["test-clean"](),_M.rm("-rf",[".npmrc","coverage","packages/*/npm-debug*","node_modules/.cache"])},CM["test-clean"]=function(){FM.forEach((e=>{_M.rm("-rf",`${e}/*/test/tmp`),_M.rm("-rf",`${e}/*/test-fixtures.json`)}))},CM["clean-lib"]=function(){_M.rm("-rf",FM.map((e=>`${e}/*/lib`))),$M(["scripts/set-module-type.js"])},CM["clean-runtime-helpers"]=function(){_M.rm("-rf",["packages/babel-runtime/helpers/**/*.js","packages/babel-runtime-corejs2/helpers/**/*.js","packages/babel-runtime-corejs3/helpers/**/*.js","packages/babel-runtime/helpers/**/*.mjs","packages/babel-runtime-corejs2/helpers/**/*.mjs","packages/babel-runtime-corejs3/helpers/**/*.mjs","packages/babel-runtime-corejs2/core-js","packages/babel-runtime-corejs3/core-js","packages/babel-runtime-corejs3/core-js-stable"])},CM["use-cjs"]=function(){$M(["scripts/set-module-type.js","commonjs"]),CM.bootstrap()},CM["use-esm"]=function(){$M(["scripts/set-module-type.js","module"]),CM.bootstrap()},CM["bootstrap-only"]=function(){CM["clean-all"](),BM(["install"])},CM.bootstrap=function(){CM["bootstrap-only"](),CM["generate-tsconfig"](),CM.build()},CM.build=function(){CM["build-no-bundle"](),"true"!==process.env.BABEL_COVERAGE&&CM["build-standalone"]()},CM["build-standalone"]=function(){BM(["gulp","build-babel-standalone"])},CM["build-bundle"]=function(){CM.clean(),CM["clean-lib"](),$M(["scripts/set-module-type.js"]),BM(["gulp","build"]),CM["build-dist"]()},CM["build-no-bundle"]=function(){CM.clean(),CM["clean-lib"](),$M(["scripts/set-module-type.js"]),qM((()=>{BM(["gulp","build-dev"])}),{BABEL_ENV:"development"}),CM["build-dist"]()},CM["build-flow-typings"]=function(){t.writeFileSync("packages/babel-types/lib/index.js.flow",$M(["packages/babel-types/scripts/generators/flow.js"],void 0,!1))},CM["build-dist"]=function(){CM["build-plugin-transform-runtime-dist"]()},CM["build-plugin-transform-runtime-dist"]=function(){$M(["scripts/build-dist.js"],"packages/babel-plugin-transform-runtime")},CM.prepublish=function(){process.env.BABEL_8_BREAKING?$M(["scripts/set-module-type.js","module"]):$M(["scripts/set-module-type.js","commonjs"]),CM["bootstrap-only"](),qM((()=>{CM["prepublish-build"](),CM.test()}),{IS_PUBLISH:"true"}),$M(["scripts/set-module-type.js","clean"])},CM["prepublish-build"]=function(){CM["clean-lib"](),CM["clean-runtime-helpers"](),qM((()=>{CM["build-bundle"]()}),{NODE_ENV:"production",BABEL_ENV:"production",STRIP_BABEL_8_FLAG:"true"}),qM((()=>{CM["prepublish-build-standalone"](),CM["clone-license"](),CM["prepublish-prepare-dts"](),CM["build-flow-typings"]()}),{NODE_ENV:"production",STRIP_BABEL_8_FLAG:"true"})},CM["prepublish-build-standalone"]=function(){qM((()=>{CM["build-standalone"]()}),{BABEL_ENV:"production",IS_PUBLISH:"true"})},CM["prepublish-prepare-dts"]=function(){CM["clean-ts"](),CM.tscheck(),BM(["gulp","bundle-dts"]),CM["build-typescript-legacy-typings"]()},CM.tscheck=function(){CM["generate-tsconfig"](),$M(["scripts/parallel-tsc/tsc.js","."])},CM["tscheck-slow"]=function(){CM["generate-tsconfig"](),BM(["tsc","-b","."])},CM["clean-ts"]=function(){_M.rm("-rf","tsconfig.tsbuildinfo"),_M.rm("-rf","*/*/tsconfig.tsbuildinfo"),_M.rm("-rf","dts")},CM["generate-tsconfig"]=function(){$M(["scripts/generators/tsconfig.js"]),$M(["scripts/generators/archived-libs-typings.js"])},CM["generate-type-helpers"]=function(){BM(["gulp","generate-type-helpers"])},CM["build-typescript-legacy-typings"]=function(){t.writeFileSync("packages/babel-types/lib/index-legacy.d.ts",$M(["packages/babel-types/scripts/generators/typescript-legacy.js"],void 0,!1))},CM["clone-license"]=function(){$M(["scripts/clone-license.js"])},CM.lint=function(){qM((()=>CM.tscheck()),{TSCHECK_SILENT:"true"}),WM()},CM.fix=function(){CM["fix-json"](),CM["fix-js"]()},CM["fix-js"]=function(){qM((()=>CM.tscheck()),{TSCHECK_SILENT:"true"}),WM("--fix")},CM["fix-json"]=function(){BM(["prettier",`{${FM.join(",")}}/*/test/fixtures/**/options.json`,"--write","--loglevel","warn"])},CM.watch=function(){CM["build-no-bundle"](),qM((()=>{BM(["gulp","watch"])}),{BABEL_ENV:"development",WATCH_SKIP_BUILD:"true"})},CM.test=function(){CM.lint(),CM["test-only"]()},CM["test-only"]=function(e=[]){BM(["jest",...e])},CM["test-cov"]=function(){CM.build(),qM((()=>{BM(["c8","jest"])}),{BABEL_ENV:"test",BABEL_COVERAGE:"true"})},CM["bootstrap-test262"]=function(){HM("TEST262","https://github.com/tc39/test262.git",["test","harness"])},CM["bootstrap-typescript"]=function(){HM("TYPESCRIPT","https://github.com/microsoft/TypeScript.git",["tests"])},CM["bootstrap-flow"]=function(){HM("FLOW","https://github.com/facebook/flow.git",["src/parser/test/flow"])},CM["new-version-checklist"]=function(){},CM["new-version"]=function(){CM["new-version-checklist"](),GM("git",["pull","--rebase"]),BM(["release-tool","version","-f","@babel/standalone"])},CM["new-babel-8-version"]=function(){GM("git",["pull","--rebase"]);const e=JSON.parse(t.readFileSync("./package.json","utf8")),r=gy.inc(e.version_babel8,"prerelease");return e.version_babel8=r,t.writeFileSync("./package.json",JSON.stringify(e,null,2)+"\n"),GM("git",["add","./package.json"]),GM("git",["commit","-m","Bump Babel 8 version to "+r]),GM("git",["tag",`v${r}`,"-m",`v${r}`]),r},CM["new-babel-8-version-create-commit-ci"]=function(){BM(["release-tool","version",zM(),"--all","--tag-version-prefix","tmp.v","--yes"])},CM["new-babel-8-version-create-commit"]=function(){const e=zM();GM("git",["checkout","-b",`release/temp/v${e}`]),BM(["release-tool","version",e,"--all","--tag-version-prefix","tmp.v"]),console.log("Run `BABEL_8_BREAKING=true make publish` to finish publishing")}; +"use strict";var e=require("os"),t=require("fs"),r=require("path"),n=require("events"),i=require("assert"),o=require("util"),s=require("child_process"),a=require("node:buffer"),c=require("node:path"),u=require("node:child_process"),l=require("node:process"),f=require("node:url"),h=require("node:os"),p=require("node:fs");require("node:timers/promises");var d=require("stream"),v=require("node:util");function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function m(e,t){return e.get(g(e,t))}function y(e,t,r){return e.set(g(e,t),r),r}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function E(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function w(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function T(e,t,r){x(e,t),t.set(e,r)}var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k=function(e){return e&&e.Math===Math&&e},P=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof j&&j)||k("object"==typeof j&&j)||function(){return this}()||Function("return this")(),N={},_=function(e){try{return!!e()}catch(e){return!0}},C=!_((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),F=!_((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),D=F,M=Function.prototype.call,U=D?M.bind(M):function(){return M.apply(M,arguments)},G={},B={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,q=$&&!B.call({1:2},1);G.f=q?function(e){var t=$(this,e);return!!t&&t.enumerable}:B;var W,H,z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X=F,V=Function.prototype,Y=V.call,K=X&&V.bind.bind(Y,Y),J=X?K:function(e){return function(){return Y.apply(e,arguments)}},Q=J,Z=Q({}.toString),ee=Q("".slice),te=function(e){return ee(Z(e),8,-1)},re=_,ne=te,ie=Object,oe=J("".split),se=re((function(){return!ie("z").propertyIsEnumerable(0)}))?function(e){return"String"===ne(e)?oe(e,""):ie(e)}:ie,ae=function(e){return null==e},ce=ae,ue=TypeError,le=function(e){if(ce(e))throw new ue("Can't call method on "+e);return e},fe=se,he=le,pe=function(e){return fe(he(e))},de="object"==typeof document&&document.all,ve=void 0===de&&void 0!==de?function(e){return"function"==typeof e||e===de}:function(e){return"function"==typeof e},ge=ve,me=function(e){return"object"==typeof e?null!==e:ge(e)},ye=P,be=ve,Ee=function(e,t){return arguments.length<2?(r=ye[e],be(r)?r:void 0):ye[e]&&ye[e][t];var r},we=J({}.isPrototypeOf),Se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Oe=P,Re=Se,Ie=Oe.process,Ae=Oe.Deno,xe=Ie&&Ie.versions||Ae&&Ae.version,Te=xe&&xe.v8;Te&&(H=(W=Te.split("."))[0]>0&&W[0]<4?1:+(W[0]+W[1])),!H&&Re&&(!(W=Re.match(/Edge\/(\d+)/))||W[1]>=74)&&(W=Re.match(/Chrome\/(\d+)/))&&(H=+W[1]);var je=H,Le=je,ke=_,Pe=P.String,Ne=!!Object.getOwnPropertySymbols&&!ke((function(){var e=Symbol("symbol detection");return!Pe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Le&&Le<41})),_e=Ne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ce=Ee,Fe=ve,De=we,Me=Object,Ue=_e?function(e){return"symbol"==typeof e}:function(e){var t=Ce("Symbol");return Fe(t)&&De(t.prototype,Me(e))},Ge=String,Be=function(e){try{return Ge(e)}catch(e){return"Object"}},$e=ve,qe=Be,We=TypeError,He=function(e){if($e(e))return e;throw new We(qe(e)+" is not a function")},ze=He,Xe=ae,Ve=function(e,t){var r=e[t];return Xe(r)?void 0:ze(r)},Ye=U,Ke=ve,Je=me,Qe=TypeError,Ze={exports:{}},et=P,tt=Object.defineProperty,rt=function(e,t){try{tt(et,e,{value:t,configurable:!0,writable:!0})}catch(r){et[e]=t}return t},nt=P,it=rt,ot="__core-js_shared__",st=Ze.exports=nt[ot]||it(ot,{});(st.versions||(st.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var at=Ze.exports,ct=at,ut=function(e,t){return ct[e]||(ct[e]=t||{})},lt=le,ft=Object,ht=function(e){return ft(lt(e))},pt=ht,dt=J({}.hasOwnProperty),vt=Object.hasOwn||function(e,t){return dt(pt(e),t)},gt=J,mt=0,yt=Math.random(),bt=gt(1..toString),Et=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bt(++mt+yt,36)},wt=ut,St=vt,Ot=Et,Rt=Ne,It=_e,At=P.Symbol,xt=wt("wks"),Tt=It?At.for||At:At&&At.withoutSetter||Ot,jt=function(e){return St(xt,e)||(xt[e]=Rt&&St(At,e)?At[e]:Tt("Symbol."+e)),xt[e]},Lt=U,kt=me,Pt=Ue,Nt=Ve,_t=function(e,t){var r,n;if("string"===t&&Ke(r=e.toString)&&!Je(n=Ye(r,e)))return n;if(Ke(r=e.valueOf)&&!Je(n=Ye(r,e)))return n;if("string"!==t&&Ke(r=e.toString)&&!Je(n=Ye(r,e)))return n;throw new Qe("Can't convert object to primitive value")},Ct=TypeError,Ft=jt("toPrimitive"),Dt=function(e,t){if(!kt(e)||Pt(e))return e;var r,n=Nt(e,Ft);if(n){if(void 0===t&&(t="default"),r=Lt(n,e,t),!kt(r)||Pt(r))return r;throw new Ct("Can't convert object to primitive value")}return void 0===t&&(t="number"),_t(e,t)},Mt=Dt,Ut=Ue,Gt=function(e){var t=Mt(e,"string");return Ut(t)?t:t+""},Bt=me,$t=P.document,qt=Bt($t)&&Bt($t.createElement),Wt=function(e){return qt?$t.createElement(e):{}},Ht=Wt,zt=!C&&!_((function(){return 7!==Object.defineProperty(Ht("div"),"a",{get:function(){return 7}}).a})),Xt=C,Vt=U,Yt=G,Kt=z,Jt=pe,Qt=Gt,Zt=vt,er=zt,tr=Object.getOwnPropertyDescriptor;N.f=Xt?tr:function(e,t){if(e=Jt(e),t=Qt(t),er)try{return tr(e,t)}catch(e){}if(Zt(e,t))return Kt(!Vt(Yt.f,e,t),e[t])};var rr={},nr=C&&_((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ir=me,or=String,sr=TypeError,ar=function(e){if(ir(e))return e;throw new sr(or(e)+" is not an object")},cr=C,ur=zt,lr=nr,fr=ar,hr=Gt,pr=TypeError,dr=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,gr="enumerable",mr="configurable",yr="writable";rr.f=cr?lr?function(e,t,r){if(fr(e),t=hr(t),fr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&yr in r&&!r[yr]){var n=vr(e,t);n&&n[yr]&&(e[t]=r.value,r={configurable:mr in r?r[mr]:n[mr],enumerable:gr in r?r[gr]:n[gr],writable:!1})}return dr(e,t,r)}:dr:function(e,t,r){if(fr(e),t=hr(t),fr(r),ur)try{return dr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new pr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var br=rr,Er=z,wr=C?function(e,t,r){return br.f(e,t,Er(1,r))}:function(e,t,r){return e[t]=r,e},Sr={exports:{}},Or=C,Rr=vt,Ir=Function.prototype,Ar=Or&&Object.getOwnPropertyDescriptor,xr=Rr(Ir,"name"),Tr={EXISTS:xr,PROPER:xr&&"something"===function(){}.name,CONFIGURABLE:xr&&(!Or||Or&&Ar(Ir,"name").configurable)},jr=ve,Lr=at,kr=J(Function.toString);jr(Lr.inspectSource)||(Lr.inspectSource=function(e){return kr(e)});var Pr,Nr,_r,Cr=Lr.inspectSource,Fr=ve,Dr=P.WeakMap,Mr=Fr(Dr)&&/native code/.test(String(Dr)),Ur=Et,Gr=ut("keys"),Br=function(e){return Gr[e]||(Gr[e]=Ur(e))},$r={},qr=Mr,Wr=P,Hr=me,zr=wr,Xr=vt,Vr=at,Yr=Br,Kr=$r,Jr="Object already initialized",Qr=Wr.TypeError,Zr=Wr.WeakMap;if(qr||Vr.state){var en=Vr.state||(Vr.state=new Zr);en.get=en.get,en.has=en.has,en.set=en.set,Pr=function(e,t){if(en.has(e))throw new Qr(Jr);return t.facade=e,en.set(e,t),t},Nr=function(e){return en.get(e)||{}},_r=function(e){return en.has(e)}}else{var tn=Yr("state");Kr[tn]=!0,Pr=function(e,t){if(Xr(e,tn))throw new Qr(Jr);return t.facade=e,zr(e,tn,t),t},Nr=function(e){return Xr(e,tn)?e[tn]:{}},_r=function(e){return Xr(e,tn)}}var rn={set:Pr,get:Nr,has:_r,enforce:function(e){return _r(e)?Nr(e):Pr(e,{})},getterFor:function(e){return function(t){var r;if(!Hr(t)||(r=Nr(t)).type!==e)throw new Qr("Incompatible receiver, "+e+" required");return r}}},nn=J,on=_,sn=ve,an=vt,cn=C,un=Tr.CONFIGURABLE,ln=Cr,fn=rn.enforce,hn=rn.get,pn=String,dn=Object.defineProperty,vn=nn("".slice),gn=nn("".replace),mn=nn([].join),yn=cn&&!on((function(){return 8!==dn((function(){}),"length",{value:8}).length})),bn=String(String).split("String"),En=Sr.exports=function(e,t,r){"Symbol("===vn(pn(t),0,7)&&(t="["+gn(pn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!an(e,"name")||un&&e.name!==t)&&(cn?dn(e,"name",{value:t,configurable:!0}):e.name=t),yn&&r&&an(r,"arity")&&e.length!==r.arity&&dn(e,"length",{value:r.arity});try{r&&an(r,"constructor")&&r.constructor?cn&&dn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=fn(e);return an(n,"source")||(n.source=mn(bn,"string"==typeof t?t:"")),e};Function.prototype.toString=En((function(){return sn(this)&&hn(this).source||ln(this)}),"toString");var wn=Sr.exports,Sn=ve,On=rr,Rn=wn,In=rt,An=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Sn(r)&&Rn(r,o,n),n.global)i?e[t]=r:In(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:On.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},xn={},Tn=Math.ceil,jn=Math.floor,Ln=Math.trunc||function(e){var t=+e;return(t>0?jn:Tn)(t)},kn=function(e){var t=+e;return t!=t||0===t?0:Ln(t)},Pn=kn,Nn=Math.max,_n=Math.min,Cn=function(e,t){var r=Pn(e);return r<0?Nn(r+t,0):_n(r,t)},Fn=kn,Dn=Math.min,Mn=function(e){var t=Fn(e);return t>0?Dn(t,9007199254740991):0},Un=Mn,Gn=function(e){return Un(e.length)},Bn=pe,$n=Cn,qn=Gn,Wn=function(e){return function(t,r,n){var i=Bn(t),o=qn(i);if(0===o)return!e&&-1;var s,a=$n(n,o);if(e&&r!=r){for(;o>a;)if((s=i[a++])!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}},Hn={includes:Wn(!0),indexOf:Wn(!1)},zn=vt,Xn=pe,Vn=Hn.indexOf,Yn=$r,Kn=J([].push),Jn=function(e,t){var r,n=Xn(e),i=0,o=[];for(r in n)!zn(Yn,r)&&zn(n,r)&&Kn(o,r);for(;t.length>i;)zn(n,r=t[i++])&&(~Vn(o,r)||Kn(o,r));return o},Qn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zn=Jn,ei=Qn.concat("length","prototype");xn.f=Object.getOwnPropertyNames||function(e){return Zn(e,ei)};var ti={};ti.f=Object.getOwnPropertySymbols;var ri=Ee,ni=xn,ii=ti,oi=ar,si=J([].concat),ai=ri("Reflect","ownKeys")||function(e){var t=ni.f(oi(e)),r=ii.f;return r?si(t,r(e)):t},ci=vt,ui=ai,li=N,fi=rr,hi=function(e,t,r){for(var n=ui(t),i=fi.f,o=li.f,s=0;so&&_o(i,arguments[o]),i}));f.prototype=u,"Error"!==a?jo?jo(f,l):Lo(f,l,{name:!0}):Fo&&i in c&&(ko(f,c,i),ko(f,c,"prepareStackTrace")),Lo(f,c);try{u.name!==a&&xo(u,"name",a),u.constructor=f}catch(e){}return f}},Go="WebAssembly",Bo=P[Go],$o=7!==new Error("e",{cause:7}).cause,qo=function(e,t){var r={};r[e]=Uo(e,t,$o),Do({global:!0,constructor:!0,arity:1,forced:$o},r)},Wo=function(e,t){if(Bo&&Bo[e]){var r={};r[e]=Uo(Go+"."+e,t,$o),Do({target:Go,stat:!0,constructor:!0,arity:1,forced:$o},r)}};qo("Error",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("EvalError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("RangeError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("ReferenceError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("SyntaxError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("TypeError",(function(e){return function(t){return Mo(e,this,arguments)}})),qo("URIError",(function(e){return function(t){return Mo(e,this,arguments)}})),Wo("CompileError",(function(e){return function(t){return Mo(e,this,arguments)}})),Wo("LinkError",(function(e){return function(t){return Mo(e,this,arguments)}})),Wo("RuntimeError",(function(e){return function(t){return Mo(e,this,arguments)}}));var Ho=te,zo=J,Xo=function(e){if("Function"===Ho(e))return zo(e)},Vo=He,Yo=F,Ko=Xo(Xo.bind),Jo=function(e,t){return Vo(e),void 0===t?e:Yo?Ko(e,t):function(){return e.apply(t,arguments)}},Qo=te,Zo=Array.isArray||function(e){return"Array"===Qo(e)},es=J,ts=_,rs=ve,ns=so,is=Cr,os=function(){},ss=Ee("Reflect","construct"),as=/^\s*(?:class|function)\b/,cs=es(as.exec),us=!as.test(os),ls=function(e){if(!rs(e))return!1;try{return ss(os,[],e),!0}catch(e){return!1}},fs=function(e){if(!rs(e))return!1;switch(ns(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return us||!!cs(as,is(e))}catch(e){return!0}};fs.sham=!0;var hs=!ss||ts((function(){var e;return ls(ls.call)||!ls(Object)||!ls((function(){e=!0}))||e}))?fs:ls,ps=Zo,ds=hs,vs=me,gs=jt("species"),ms=Array,ys=function(e){var t;return ps(e)&&(t=e.constructor,(ds(t)&&(t===ms||ps(t.prototype))||vs(t)&&null===(t=t[gs]))&&(t=void 0)),void 0===t?ms:t},bs=function(e,t){return new(ys(e))(0===t?0:t)},Es=Jo,ws=se,Ss=ht,Os=Gn,Rs=bs,Is=J([].push),As=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,o=6===e,s=7===e,a=5===e||o;return function(c,u,l,f){for(var h,p,d=Ss(c),v=ws(d),g=Os(v),m=Es(u,l),y=0,b=f||Rs,E=t?b(c,g):r||s?b(c,0):void 0;g>y;y++)if((a||y in v)&&(p=m(h=v[y],y,d),e))if(t)E[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:Is(E,h)}else switch(e){case 4:return!1;case 7:Is(E,h)}return o?-1:n||i?i:E}},xs={forEach:As(0),map:As(1),filter:As(2),some:As(3),every:As(4),find:As(5),findIndex:As(6),filterReject:As(7)},Ts=_,js=je,Ls=jt("species"),ks=function(e){return js>=51||!Ts((function(){var t=[];return(t.constructor={})[Ls]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ps=xs.filter;ji({target:"Array",proto:!0,forced:!ks("filter")},{filter:function(e){return Ps(this,e,arguments.length>1?arguments[1]:void 0)}});var Ns={},_s=Jn,Cs=Qn,Fs=Object.keys||function(e){return _s(e,Cs)},Ds=C,Ms=nr,Us=rr,Gs=ar,Bs=pe,$s=Fs;Ns.f=Ds&&!Ms?Object.defineProperties:function(e,t){Gs(e);for(var r,n=Bs(t),i=$s(t),o=i.length,s=0;o>s;)Us.f(e,r=i[s++],n[r]);return e};var qs,Ws=Ee("document","documentElement"),Hs=ar,zs=Ns,Xs=Qn,Vs=$r,Ys=Ws,Ks=Wt,Js="prototype",Qs="script",Zs=Br("IE_PROTO"),ea=function(){},ta=function(e){return"<"+Qs+">"+e+""},ra=function(e){e.write(ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},na=function(){try{qs=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;na="undefined"!=typeof document?document.domain&&qs?ra(qs):(t=Ks("iframe"),r="java"+Qs+":",t.style.display="none",Ys.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(ta("document.F=Object")),e.close(),e.F):ra(qs);for(var n=Xs.length;n--;)delete na[Js][Xs[n]];return na()};Vs[Zs]=!0;var ia=Object.create||function(e,t){var r;return null!==e?(ea[Js]=Hs(e),r=new ea,ea[Js]=null,r[Zs]=e):r=na(),void 0===t?r:zs.f(r,t)},oa=jt,sa=ia,aa=rr.f,ca=oa("unscopables"),ua=Array.prototype;void 0===ua[ca]&&aa(ua,ca,{configurable:!0,value:sa(null)});var la,fa,ha,pa=function(e){ua[ca][e]=!0},da={},va=!_((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ga=vt,ma=ve,ya=ht,ba=va,Ea=Br("IE_PROTO"),wa=Object,Sa=wa.prototype,Oa=ba?wa.getPrototypeOf:function(e){var t=ya(e);if(ga(t,Ea))return t[Ea];var r=t.constructor;return ma(r)&&t instanceof r?r.prototype:t instanceof wa?Sa:null},Ra=_,Ia=ve,Aa=me,xa=Oa,Ta=An,ja=jt("iterator"),La=!1;[].keys&&("next"in(ha=[].keys())?(fa=xa(xa(ha)))!==Object.prototype&&(la=fa):La=!0);var ka=!Aa(la)||Ra((function(){var e={};return la[ja].call(e)!==e}));ka&&(la={}),Ia(la[ja])||Ta(la,ja,(function(){return this}));var Pa={IteratorPrototype:la,BUGGY_SAFARI_ITERATORS:La},Na=rr.f,_a=vt,Ca=jt("toStringTag"),Fa=function(e,t,r){e&&!r&&(e=e.prototype),e&&!_a(e,Ca)&&Na(e,Ca,{configurable:!0,value:t})},Da=Pa.IteratorPrototype,Ma=ia,Ua=z,Ga=Fa,Ba=da,$a=function(){return this},qa=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ma(Da,{next:Ua(+!n,r)}),Ga(e,i,!1),Ba[i]=$a,e},Wa=ji,Ha=U,za=ve,Xa=qa,Va=Oa,Ya=zi,Ka=Fa,Ja=wr,Qa=An,Za=da,ec=Tr.PROPER,tc=Tr.CONFIGURABLE,rc=Pa.IteratorPrototype,nc=Pa.BUGGY_SAFARI_ITERATORS,ic=jt("iterator"),oc="keys",sc="values",ac="entries",cc=function(){return this},uc=function(e,t,r,n,i,o,s){Xa(r,t,n);var a,c,u,l=function(e){if(e===i&&v)return v;if(!nc&&e&&e in p)return p[e];switch(e){case oc:case sc:case ac:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[ic]||p["@@iterator"]||i&&p[i],v=!nc&&d||l(i),g="Array"===t&&p.entries||d;if(g&&(a=Va(g.call(new e)))!==Object.prototype&&a.next&&(Va(a)!==rc&&(Ya?Ya(a,rc):za(a[ic])||Qa(a,ic,cc)),Ka(a,f,!0)),ec&&i===sc&&d&&d.name!==sc&&(tc?Ja(p,"name",sc):(h=!0,v=function(){return Ha(d,this)})),i)if(c={values:l(sc),keys:o?v:l(oc),entries:l(ac)},s)for(u in c)(nc||h||!(u in p))&&Qa(p,u,c[u]);else Wa({target:t,proto:!0,forced:nc||h},c);return p[ic]!==v&&Qa(p,ic,v,{name:i}),Za[t]=v,c},lc=function(e,t){return{value:e,done:t}},fc=pe,hc=pa,pc=da,dc=rn,vc=rr.f,gc=uc,mc=lc,yc=C,bc="Array Iterator",Ec=dc.set,wc=dc.getterFor(bc),Sc=gc(Array,"Array",(function(e,t){Ec(this,{type:bc,target:fc(e),index:0,kind:t})}),(function(){var e=wc(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,mc(void 0,!0);switch(e.kind){case"keys":return mc(r,!1);case"values":return mc(t[r],!1)}return mc([r,t[r]],!1)}),"values"),Oc=pc.Arguments=pc.Array;if(hc("keys"),hc("values"),hc("entries"),yc&&"values"!==Oc.name)try{vc(Oc,"name",{value:"values"})}catch(e){}var Rc=xs.map;ji({target:"Array",proto:!0,forced:!ks("map")},{map:function(e){return Rc(this,e,arguments.length>1?arguments[1]:void 0)}});var Ic=C,Ac=Zo,xc=TypeError,Tc=Object.getOwnPropertyDescriptor,jc=Ic&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(Ac(e)&&!Tc(e,"length").writable)throw new xc("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Lc=TypeError,kc=function(e){if(e>9007199254740991)throw Lc("Maximum allowed index exceeded");return e},Pc=ht,Nc=Gn,_c=jc,Cc=kc;ji({target:"Array",proto:!0,arity:1,forced:_((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=Pc(this),r=Nc(t),n=arguments.length;Cc(r+n);for(var i=0;ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})),ul=C,ll=P,fl=J,hl=wi,pl=Qi,dl=wr,vl=ia,gl=xn.f,ml=we,yl=_u,bl=uo,El=$u,wl=Vu,Sl=Vi,Ol=An,Rl=_,Il=vt,Al=rn.enforce,xl=rl,Tl=ol,jl=cl,Ll=jt("match"),kl=ll.RegExp,Pl=kl.prototype,Nl=ll.SyntaxError,_l=fl(Pl.exec),Cl=fl("".charAt),Fl=fl("".replace),Dl=fl("".indexOf),Ml=fl("".slice),Ul=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Gl=/a/g,Bl=/a/g,$l=new kl(Gl)!==Gl,ql=wl.MISSED_STICKY,Wl=wl.UNSUPPORTED_Y,Hl=ul&&(!$l||ql||Tl||jl||Rl((function(){return Bl[Ll]=!1,kl(Gl)!==Gl||kl(Bl)===Bl||"/a/i"!==String(kl(Gl,"i"))})));if(hl("RegExp",Hl)){for(var zl=function(e,t){var r,n,i,o,s,a,c=ml(Pl,this),u=yl(e),l=void 0===t,f=[],h=e;if(!c&&u&&l&&e.constructor===zl)return e;if((u||ml(Pl,e))&&(e=e.source,l&&(t=El(h))),e=void 0===e?"":bl(e),t=void 0===t?"":bl(t),h=e,Tl&&"dotAll"in Gl&&(n=!!t&&Dl(t,"s")>-1)&&(t=Fl(t,/s/g,"")),r=t,ql&&"sticky"in Gl&&(i=!!t&&Dl(t,"y")>-1)&&Wl&&(t=Fl(t,/y/g,"")),jl&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],s=vl(null),a=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=Cl(e,n)))t+=Cl(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:_l(Ul,Ml(e,n+1))&&(n+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||Il(s,l))throw new Nl("Invalid capture group name");s[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],f=o[1]),s=pl(kl(e,t),c?this:Pl,zl),(n||i||f.length)&&(a=Al(s),n&&(a.dotAll=!0,a.raw=zl(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=Cl(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+Cl(e,++n);return i}(e),r)),i&&(a.sticky=!0),f.length&&(a.groups=f)),e!==h)try{dl(s,"source",""===h?"(?:)":h)}catch(e){}return s},Xl=gl(kl),Vl=0;Xl.length>Vl;)Sl(zl,kl,Xl[Vl++]);Pl.constructor=zl,zl.prototype=Pl,Ol(ll,"RegExp",zl,{constructor:!0})}xl("RegExp");var Yl=C,Kl=ol,Jl=te,Ql=Ju,Zl=rn.get,ef=RegExp.prototype,tf=TypeError;Yl&&Kl&&Ql(ef,"dotAll",{configurable:!0,get:function(){if(this!==ef){if("RegExp"===Jl(this))return!!Zl(this).dotAll;throw new tf("Incompatible receiver, RegExp required")}}});var rf=U,nf=J,of=uo,sf=Fu,af=Vu,cf=ia,uf=rn.get,lf=ol,ff=cl,hf=ut("native-string-replace",String.prototype.replace),pf=RegExp.prototype.exec,df=pf,vf=nf("".charAt),gf=nf("".indexOf),mf=nf("".replace),yf=nf("".slice),bf=function(){var e=/a/,t=/b*/g;return rf(pf,e,"a"),rf(pf,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ef=af.BROKEN_CARET,wf=void 0!==/()??/.exec("")[1];(bf||wf||Ef||lf||ff)&&(df=function(e){var t,r,n,i,o,s,a,c=this,u=uf(c),l=of(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=rf(df,f,l),c.lastIndex=f.lastIndex,t;var h=u.groups,p=Ef&&c.sticky,d=rf(sf,c),v=c.source,g=0,m=l;if(p&&(d=mf(d,"y",""),-1===gf(d,"g")&&(d+="g"),m=yf(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==vf(l,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,g++),r=new RegExp("^(?:"+v+")",d)),wf&&(r=new RegExp("^"+v+"$(?!\\s)",d)),bf&&(n=c.lastIndex),i=rf(pf,p?r:c,m),p?i?(i.input=yf(i.input,g),i[0]=yf(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:bf&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),wf&&i&&i.length>1&&rf(hf,i[0],r,(function(){for(o=1;o=a?e?"":void 0:(n=zf(o,s))<55296||n>56319||s+1===a||(i=zf(o,s+1))<56320||i>57343?e?Hf(o,s):n:e?Xf(o,s,s+2):i-56320+(n-55296<<10)+65536}},Yf={codeAt:Vf(!1),charAt:Vf(!0)},Kf=Yf.charAt,Jf=function(e,t,r){return t+(r?Kf(e,t).length:1)},Qf=U,Zf=ar,eh=ve,th=te,rh=Sf,nh=TypeError,ih=function(e,t){var r=e.exec;if(eh(r)){var n=Qf(r,e,t);return null!==n&&Zf(n),n}if("RegExp"===th(e))return Qf(rh,e,t);throw new nh("RegExp#exec called on incompatible receiver")},oh=U,sh=ar,ah=ae,ch=Mn,uh=uo,lh=le,fh=Ve,hh=Jf,ph=ih;Gf("match",(function(e,t,r){return[function(t){var r=lh(this),n=ah(t)?void 0:fh(t,e);return n?oh(n,t,r):new RegExp(t)[e](uh(r))},function(e){var n=sh(this),i=uh(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return ph(n,i);var s=n.unicode;n.lastIndex=0;for(var a,c=[],u=0;null!==(a=ph(n,i));){var l=uh(a[0]);c[u]=l,""===l&&(n.lastIndex=hh(i,ch(n.lastIndex),s)),u++}return 0===u?null:c}]}));var dh=J,vh=ht,gh=Math.floor,mh=dh("".charAt),yh=dh("".replace),bh=dh("".slice),Eh=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wh=/\$([$&'`]|\d{1,2})/g,Sh=function(e,t,r,n,i,o){var s=r+e.length,a=n.length,c=wh;return void 0!==i&&(i=vh(i),c=Eh),yh(o,c,(function(o,c){var u;switch(mh(c,0)){case"$":return"$";case"&":return e;case"`":return bh(t,0,r);case"'":return bh(t,s);case"<":u=i[bh(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var f=gh(l/10);return 0===f?o:f<=a?void 0===n[f-1]?mh(c,1):n[f-1]+mh(c,1):o}u=n[l-1]}return void 0===u?"":u}))},Oh=_i,Rh=U,Ih=J,Ah=Gf,xh=_,Th=ar,jh=ve,Lh=ae,kh=kn,Ph=Mn,Nh=uo,_h=le,Ch=Jf,Fh=Ve,Dh=Sh,Mh=ih,Uh=jt("replace"),Gh=Math.max,Bh=Math.min,$h=Ih([].concat),qh=Ih([].push),Wh=Ih("".indexOf),Hh=Ih("".slice),zh="$0"==="a".replace(/./,"$0"),Xh=!!/./[Uh]&&""===/./[Uh]("a","$0"),Vh=!xh((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));Ah("replace",(function(e,t,r){var n=Xh?"$":"$0";return[function(e,r){var n=_h(this),i=Lh(e)?void 0:Fh(e,Uh);return i?Rh(i,e,n,r):Rh(t,Nh(n),e,r)},function(e,i){var o=Th(this),s=Nh(e);if("string"==typeof i&&-1===Wh(i,n)&&-1===Wh(i,"$<")){var a=r(t,o,s,i);if(a.done)return a.value}var c=jh(i);c||(i=Nh(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var f,h=[];null!==(f=Mh(o,s))&&(qh(h,f),l);){""===Nh(f[0])&&(o.lastIndex=Ch(s,Ph(o.lastIndex),u))}for(var p,d="",v=0,g=0;g=v&&(d+=Hh(s,v,b)+m,v=b+y.length)}return d+Hh(s,v)}]}),!Vh||!zh||Xh);var Yh=ji,Kh=U,Jh=J,Qh=le,Zh=ve,ep=ae,tp=_u,rp=uo,np=Ve,ip=$u,op=Sh,sp=jt("replace"),ap=TypeError,cp=Jh("".indexOf);Jh("".replace);var up=Jh("".slice),lp=Math.max;Yh({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,o,s,a,c,u,l=Qh(this),f=0,h=0,p="";if(!ep(e)){if(tp(e)&&(r=rp(Qh(ip(e))),!~cp(r,"g")))throw new ap("`.replaceAll` does not allow non-global regexes");if(n=np(e,sp))return Kh(n,e,l,t)}for(i=rp(l),o=rp(e),(s=Zh(t))||(t=rp(t)),a=o.length,c=lp(1,a),f=cp(i,o);-1!==f;)u=s?rp(t(o,f,i)):op(o,i,f,[],void 0,t),p+=up(i,h,f)+u,h=f+a,f=f+c>i.length?-1:cp(i,o,f+c);return h1?arguments[1]:void 0;return kp?Lp(this,e,t)||0:Tp(this,e,t)}});var Pp=ji,Np=_,_p=Zo,Cp=me,Fp=ht,Dp=Gn,Mp=kc,Up=Uc,Gp=bs,Bp=ks,$p=je,qp=jt("isConcatSpreadable"),Wp=$p>=51||!Np((function(){var e=[];return e[qp]=!1,e.concat()[0]!==e})),Hp=function(e){if(!Cp(e))return!1;var t=e[qp];return void 0!==t?!!t:_p(e)};Pp({target:"Array",proto:!0,arity:1,forced:!Wp||!Bp("concat")},{concat:function(e){var t,r,n,i,o,s=Fp(this),a=Gp(s,0),c=0;for(t=-1,n=arguments.length;t=t.length)return r&&(r[p]=t),o(null,t);a.lastIndex=u;var e=a.exec(t);return h=l,l+=e[0],f=h+e[1],u=a.lastIndex,v[f]||r&&r[f]===f?process.nextTick(m):r&&Object.prototype.hasOwnProperty.call(r,f)?E(r[f]):i.lstat(f,y)}function y(e,t){if(e)return o(e);if(!t.isSymbolicLink())return v[f]=!0,r&&(r[f]=f),process.nextTick(m);if(!n){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(d.hasOwnProperty(s))return b(null,d[s],f)}i.stat(f,(function(e){if(e)return o(e);i.readlink(f,(function(e,t){n||(d[s]=t),b(e,t)}))}))}function b(t,n,i){if(t)return o(t);var s=e.resolve(h,n);r&&(r[i]=s),E(s)}function E(r){t=e.resolve(r,t.slice(u)),g()}g()},id}function sd(){if(rd)return td;rd=1,td=c,c.realpath=c,c.sync=u,c.realpathSync=u,c.monkeypatch=function(){e.realpath=c,e.realpathSync=u},c.unmonkeypatch=function(){e.realpath=r,e.realpathSync=n};var e=t,r=e.realpath,n=e.realpathSync,i=process.version,o=/^v[0-5]\./.test(i),s=od();function a(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,n){if(o)return r(e,t,n);"function"==typeof t&&(n=t,t=null),r(e,t,(function(r,i){a(r)?s.realpath(e,t,n):n(r,i)}))}function u(e,t){if(o)return n(e,t);try{return n(e,t)}catch(r){if(a(r))return s.realpathSync(e,t);throw r}}return td}var ad,cd,ud,ld,fd,hd,pd,dd,vd=hs,gd=Be,md=TypeError,yd=function(e){if(vd(e))return e;throw new md(gd(e)+" is not a constructor")},bd=ar,Ed=yd,wd=ae,Sd=jt("species"),Od=function(e,t){var r,n=bd(e).constructor;return void 0===n||wd(r=bd(n)[Sd])?t:Ed(r)},Rd=U,Id=J,Ad=Gf,xd=ar,Td=ae,jd=le,Ld=Od,kd=Jf,Pd=Mn,Nd=uo,_d=Ve,Cd=ih,Fd=_,Dd=Vu.UNSUPPORTED_Y,Md=Math.min,Ud=Id([].push),Gd=Id("".slice),Bd=!Fd((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),$d="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;function qd(){if(cd)return ad;cd=1,ad=function(t,r){for(var n=[],i=0;i=0&&u>0){for(n=[],o=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())=0?c:u;n.length&&(a=[o,s])}return a}return ld=1,ud=e,e.range=r,ud}();fd=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return d(function(e){return e.split("\\\\").join(r).split("\\{").join(n).split("\\}").join(i).split("\\,").join(o).split("\\.").join(s)}(e),!0).map(c)};var r="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function a(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(r).join("\\").split(n).join("{").split(i).join("}").split(o).join(",").split(s).join(".")}function u(e){if(!e)return[""];var r=[],n=t("{","}",e);if(!n)return e.split(",");var i=n.pre,o=n.body,s=n.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var c=u(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),r.push.apply(r,a),r}function l(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function p(e,t){return e>=t}function d(r,n){var o=[],s=t("{","}",r);if(!s||/\$$/.test(s.pre))return[r];var c,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=v||g,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,.*\}/)?d(r=s.pre+"{"+s.body+i+s.post):[r];if(m)c=s.body.split(/\.\./);else if(1===(c=u(s.body)).length&&1===(c=d(c[0],!1).map(l)).length)return(w=s.post.length?d(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var b,E=s.pre,w=s.post.length?d(s.post,!1):[""];if(m){var S=a(c[0]),O=a(c[1]),R=Math.max(c[0].length,c[1].length),I=3==c.length?Math.abs(a(c[2])):1,A=h;O0){var k=new Array(L+1).join("0");j=T<0?"-"+k+j.slice(1):k+j}}b.push(j)}}else b=e(c,(function(e){return d(e,!1)}));for(var P=0;P65536)throw new TypeError("pattern is too long")};l.prototype.parse=function(e,r){h(e);var a=this.options;if("**"===e){if(!a.noglobstar)return t;e="*"}if(""===e)return"";var c,u="",l=!!a.nocase,f=!1,d=[],v=[],g=!1,m=-1,y=-1,b="."===e.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=this;function w(){if(c){switch(c){case"*":u+=o,l=!0;break;case"?":u+=i,l=!0;break;default:u+="\\"+c}E.debug("clearStateChar %j %j",c,u),c=!1}}for(var S,O=0,R=e.length;O-1;k--){var P=v[k],N=u.slice(0,P.reStart),_=u.slice(P.reStart,P.reEnd-8),C=u.slice(P.reEnd-8,P.reEnd),F=u.slice(P.reEnd);C+=F;var D=N.split("(").length-1,M=F;for(O=0;O=0&&!(i=t[o]);o--);for(o=0;o>> no match, partial?",e,h,r,p),h!==a))}if("string"==typeof l?(u=f===l,this.debug("string match",l,f,u)):(u=f.match(l),this.debug("pattern match",l,f,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")},pd}Ad("split",(function(e,t,r){var n="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:Rd(t,this,e,r)}:t;return[function(t,r){var i=jd(this),o=Td(t)?void 0:_d(t,e);return o?Rd(o,t,i,r):Rd(n,Nd(i),t,r)},function(e,i){var o=xd(this),s=Nd(e);if(!$d){var a=r(n,o,s,i,n!==t);if(a.done)return a.value}var c=Ld(o,RegExp),u=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Dd?"g":"y"),f=new c(Dd?"^(?:"+o.source+")":o,l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===Cd(f,s)?[s]:[];for(var p=0,d=0,v=[];d0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var s=tv(r/2),a=rv(ev(e,0,s),t),c=rv(ev(e,s),t),u=a.length,l=c.length,f=0,h=0;f3)){if(Ev)return!0;if(Sv)return Sv<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Ov.push({k:t+n,v:r})}for(Ov.sort((function(e,t){return t.v-e.v})),n=0;nvv(r)?1:-1}}(e)),r=pv(i),n=0;nu-n+r;o--)zv(c,o-1)}else if(r>n)for(o=u-n;o>l;o--)a=o+r-1,(s=o+n-1)in c?c[a]=c[s]:zv(c,a);for(o=0;oi?(n.splice(0,i),process.nextTick((function(){r.apply(null,o)}))):delete t[e]}}))}(e))})),Qv}function dg(){if(tg)return eg;tg=1,eg=y;var e=sd(),t=Hd();t.Minimatch;var o=Kd(),s=n.EventEmitter,a=r,c=i,u=Zd(),l=function(){if(Pv)return kv;Pv=1,kv=h,h.GlobSync=p;var e=sd(),t=Hd();t.Minimatch,dg().Glob;var n=r,o=i,s=Zd(),a=_v(),c=a.setopts,u=a.ownProp,l=a.childrenIgnored,f=a.isIgnored;function h(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new p(e,t).found}function p(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof p))return new p(e,t);if(c(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&u(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},p.prototype._mark=function(e){return a.mark(this,e)},p.prototype._makeAbs=function(e){return a.makeAbs(this,e)},kv}(),f=_v(),h=f.setopts,p=f.ownProp,d=pg(),v=f.childrenIgnored,g=f.isIgnored,m=hg();function y(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return l(e,t)}return new E(e,t,r)}y.sync=l;var b=y.GlobSync=l.GlobSync;function E(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new b(e,t)}if(!(this instanceof E))return new E(e,t,r);h(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=m(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var o=!0,s=0;s1)return!0;for(var i=0;ithis.maxLength)return t();if(!this.stat&&p(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,o)}var a=this,c=d("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return a.fs.stat(r,(function(n,o){n?a._stat2(e,r,null,i,t):a._stat2(e,r,n,o,t)}));a._stat2(e,r,n,i,t)}));c&&a.fs.lstat(r,c)},E.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var o="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,o&&"FILE"===s?i():i(null,s,n)},eg}function vg(){if(rg)return nd;rg=1;var r=e,n=t,i=dg(),o=ny(),s=Object.create(o);nd.extend=Object.assign;var a=Boolean(process.versions.electron),c={fatal:!1,globOptions:{},maxdepth:255,noglob:!1,silent:!1,verbose:!1,execPath:null,bufLength:65536},u={reset:function(){Object.assign(this,c),a||(this.execPath=process.execPath)},resetForTesting:function(){this.reset(),this.silent=!0}};u.reset(),nd.config=u;var l={error:null,errorCode:0,currentCmd:"shell.js"};function f(e){return"object"==typeof e&&null!==e}function h(){u.silent||console.error.apply(console,arguments)}function p(e){if("string"!=typeof e)throw new TypeError("input must be a string");return e.replace(/\\/g,"/")}function d(e,t,r){if("string"!=typeof e)throw new Error("msg must be a string");var n={continue:!1,code:1,prefix:l.currentCmd+": ",silent:!1};"number"==typeof t&&f(r)?r.code=t:f(t)?r=t:"number"==typeof t?r={code:t}:"number"!=typeof t&&(r={}),r=Object.assign({},n,r),l.errorCode||(l.errorCode=r.code);var i=p(r.prefix+e);if(l.error=l.error?l.error+"\n":"",l.error+=i,u.fatal)throw new Error(i);if(e.length>0&&!r.silent&&h(i),!r.continue)throw{msg:"earlyExit",retValue:new v("",l.error,l.errorCode)}}function v(e,t,r){var n;return e instanceof Array?((n=e).stdout=e.join("\n"),e.length>0&&(n.stdout+="\n")):(n=new String(e)).stdout=e,n.stderr=t,n.code=r,w.forEach((function(e){n[e]=s[e].bind(n)})),n}function g(e,t,r){if("string"!=typeof e&&!f(e))throw new Error("options must be strings or key-value pairs");if(!f(t))throw new Error("parseOptions() internal error: map must be an object");if(r&&!f(r))throw new Error("parseOptions() internal error: errorOptions must be object");if("--"===e)return{};var n={};if(Object.keys(t).forEach((function(e){var r=t[e];"!"!==r[0]&&(n[r]=!1)})),""===e)return n;if("string"==typeof e){if("-"!==e[0])throw new Error("Options string must start with a '-'");e.slice(1).split("").forEach((function(e){if(e in t){var i=t[e];"!"===i[0]?n[i.slice(1)]=!1:n[i]=!0}else d("option not recognized: "+e,r||{})}))}else Object.keys(e).forEach((function(i){var o=i[1];if(o in t){var s=t[o];n[s]=e[i]}else d("option not recognized: "+o,r||{})}));return n}function m(e){if(!Array.isArray(e))throw new TypeError("must be an array");var t=[];return e.forEach((function(e){if("string"!=typeof e)t.push(e);else{var r;try{r=(r=i.sync(e,u.globOptions)).length>0?r:[e]}catch(t){r=[e]}t=t.concat(r)}})),t}nd.state=l,delete process.env.OLDPWD,nd.isObject=f,nd.log=h,nd.convertErrorOutput=p,nd.error=d,nd.ShellString=v,nd.parseOptions=g,nd.expand=m;var y="function"==typeof Buffer.alloc?function(e){return Buffer.alloc(e||u.bufLength)}:function(e){return new Buffer(e||u.bufLength)};function b(e,t,n){return n=n||{},function(){var i=null;l.currentCmd=e,l.error=null,l.errorCode=0;try{var o=[].slice.call(arguments,0);if(u.verbose&&console.error.apply(console,[e].concat(o)),l.pipedValue=this&&"string"==typeof this.stdout?this.stdout:"",!1===n.unix)i=t.apply(this,o);else{f(o[0])&&"Object"===o[0].constructor.name||(0===o.length||"string"!=typeof o[0]||o[0].length<=1||"-"!==o[0][0])&&o.unshift(""),o=(o=o.reduce((function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)}),[])).map((function(e){return f(e)&&"String"===e.constructor.name?e.toString():e}));var s=r.homedir();o=o.map((function(e){return"string"==typeof e&&"~/"===e.slice(0,2)||"~"===e?e.replace(/^~/,s):e})),u.noglob||!0!==n.allowGlobbing||(o=o.slice(0,n.globStart).concat(m(o.slice(n.globStart))));try{f(n.cmdOptions)&&(o[0]=g(o[0],n.cmdOptions)),i=t.apply(this,o)}catch(e){if("earlyExit"!==e.msg)throw e;i=e.retValue}}}catch(e){if(!l.error)throw e.name="ShellJSInternalError",e;if(u.fatal)throw e}return n.wrapOutput&&("string"==typeof i||Array.isArray(i))&&(i=new v(i,l.error,l.errorCode)),l.currentCmd="shell.js",i}}nd.buffer=y,nd.unlinkSync=function(e){try{n.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;n.chmodSync(e,"0666"),n.unlinkSync(e)}},nd.statFollowLinks=function(){return n.statSync.apply(n,arguments)},nd.statNoFollowLinks=function(){return n.lstatSync.apply(n,arguments)},nd.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var r="",n=0;n0&&"-"===t.charAt(0)?[].unshift.call(arguments,""):e.error("You must specify a file.")),t=e.parseOptions(t,{R:"recursive",c:"changes",v:"verbose"}),s=[].slice.call(arguments,2),t.recursive?(a=[],s.forEach((function t(r){var i=e.statNoFollowLinks(r);i.isSymbolicLink()||(a.push(r),i.isDirectory()&&n.readdirSync(r).forEach((function(e){t(r+"/"+e)})))}))):a=s,a.forEach((function(s){if(s=i.resolve(s),n.existsSync(s)||e.error("File not found: "+s),!t.recursive||!e.statNoFollowLinks(s).isSymbolicLink()){var a=e.statFollowLinks(s),c=a.isDirectory(),u=a.mode,l=u&o.TYPE_MASK,f=u;isNaN(parseInt(r,8))?r.split(",").forEach((function(r){var i=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(r);if(i){var a=i[1],h=i[2],p=i[3],d=-1!==a.indexOf("u")||"a"===a||""===a,v=-1!==a.indexOf("g")||"a"===a||""===a,g=-1!==a.indexOf("o")||"a"===a||""===a,m=-1!==p.indexOf("r"),y=-1!==p.indexOf("w"),b=-1!==p.indexOf("x"),E=-1!==p.indexOf("X"),w=-1!==p.indexOf("t"),S=-1!==p.indexOf("s");E&&c&&(b=!0);var O=0;switch(d&&(O|=(m?o.OWNER_READ:0)+(y?o.OWNER_WRITE:0)+(b?o.OWNER_EXEC:0)+(S?o.SETUID:0)),v&&(O|=(m?o.GROUP_READ:0)+(y?o.GROUP_WRITE:0)+(b?o.GROUP_EXEC:0)+(S?o.SETGID:0)),g&&(O|=(m?o.OTHER_READ:0)+(y?o.OTHER_WRITE:0)+(b?o.OTHER_EXEC:0)),w&&(O|=o.STICKY),h){case"+":f|=O;break;case"-":f&=~O;break;case"=":f=l+O,e.statFollowLinks(s).isDirectory()&&(f|=o.SETUID+o.SETGID&u);break;default:e.error("Could not recognize operator: `"+h+"`")}t.verbose&&console.log(s+" -> "+f.toString(8)),u!==f&&(!t.verbose&&t.changes&&console.log(s+" -> "+f.toString(8)),n.chmodSync(s,f),u=f)}else e.error("Invalid symbolic mode change: "+r)})):(f=l+parseInt(r,8),e.statFollowLinks(s).isDirectory()&&(f|=o.SETUID+o.SETGID&u),n.chmodSync(s,f))}})),""}return e.register("chmod",s,{}),ag=s}function bg(){if(lg)return ug;lg=1;var e=t,n=r,i=vg();function o(t,r,n){e.existsSync(t)||i.error("copyFileSync: no such file or directory: "+t);var o="win32"===process.platform;try{if(n.update&&i.statFollowLinks(t).mtime=i.config.maxdepth)){n++;var u="win32"===process.platform;try{e.mkdirSync(r)}catch(e){if("EEXIST"!==e.code)throw e}for(var l=e.readdirSync(t),f=0;f and/or "):(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]);var c=e.existsSync(a),u=c&&i.statFollowLinks(a);return c&&u.isDirectory()||!(r.length>1)||i.error("dest is not a directory (too many sources)"),c&&u.isFile()&&t.no_force?new i.ShellString("","",0):(r.forEach((function(c,l){if(!e.existsSync(c))return""===c&&(c="''"),void i.error("no such file or directory: "+c,{continue:!0});var f=i.statFollowLinks(c);if(!t.noFollowsymlink&&f.isDirectory())if(t.recursive){var h=u&&u.isDirectory()?n.join(a,n.basename(c)):a;try{i.statFollowLinks(n.dirname(a)),s(c,h,0,{no_force:t.no_force,followsymlink:t.followsymlink})}catch(e){i.error("cannot create directory '"+a+"': No such file or directory")}}else i.error("omitting directory '"+c+"'",{continue:!0});else{var p=a;u&&u.isDirectory()&&(p=n.normalize(a+"/"+n.basename(c)));var d=e.existsSync(p);if(d&&function(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}(r,l))return void(t.no_force||i.error("will not overwrite just-created '"+p+"' with '"+c+"'",{continue:!0}));if(d&&t.no_force)return;if(""===n.relative(c,p))return void i.error("'"+p+"' and '"+c+"' are the same file",{continue:!0});o(c,p,t)}})),new i.ShellString("",i.state.error,i.state.errorCode))}return i.register("cp",c,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:!1}),ug=c}var Eg,wg,Sg,Og,Rg,Ig={};function Ag(){if(Eg)return Ig;Eg=1;var e=vg(),t=mg(),n=r;e.register("dirs",l,{wrapOutput:!1}),e.register("pushd",c,{wrapOutput:!1}),e.register("popd",u,{wrapOutput:!1});var i=[];function o(e){return/^[\-+]\d+$/.test(e)}function s(t){if(o(t)){if(Math.abs(t)1))return e.error("no other directory");u=u.splice(1,1).concat(u)}return r["no-cd"]?u=u.slice(1):(c=n.resolve(u.shift()),t("",c)),i=u,l(r.quiet?"-q":"")}function u(r,a){if(o(r)&&(a=r,r=""),r=e.parseOptions(r,{n:"no-cd",q:"quiet"}),!i.length)return e.error("directory stack empty");if(a=s(a||"+0"),r["no-cd"]||a>0||i.length+a===0)a=a>0?a-1:a,i.splice(a,1);else{var c=n.resolve(i.shift());t("",c)}return l(r.quiet?"-q":"")}function l(t,r){if(o(t)&&(r=t,t=""),(t=e.parseOptions(t,{c:"clear",q:"quiet"})).clear)return i=[];var n=a();return r?((r=s(r))<0&&(r=n.length+r),t.quiet||e.log(n[r]),n[r]):(t.quiet||e.log(n.join(" ")),n)}return Ig.pushd=c,Ig.popd=u,Ig.dirs=l,Ig}function xg(){if(Sg)return wg;Sg=1;var e=o.format,t=vg();function r(r){var n=[].slice.call(arguments,r?0:1),i={};try{i=t.parseOptions(n[0],{e:"escapes",n:"no_newline"},{silent:!0}),n[0]&&n.shift()}catch(e){t.state.error=null}var o=e.apply(null,n);return i.no_newline||(o+="\n"),process.stdout.write(o),o}return t.register("echo",r,{allowGlobbing:!1}),wg=r}function Tg(){if(Rg)return Og;Rg=1;var e=vg();return Og=function(){return e.state.error}}var jg,Lg={exports:{}};function kg(){return jg||(jg=1,function(e){if(require.main!==e)throw new Error("This file should not be required");var r=s,n=t,i=process.argv[2],o=n.readFileSync(i,"utf8"),a=JSON.parse(o),c=a.command,u=a.execOptions,l=a.pipe,f=a.stdoutFile,h=a.stderrFile,p=r.exec(c,u,(function(e){e?void 0===e.code?process.exitCode=1:process.exitCode=e.code:process.exitCode=0})),d=n.createWriteStream(f),v=n.createWriteStream(h);p.stdout.pipe(d),p.stderr.pipe(v),p.stdout.pipe(process.stdout),p.stderr.pipe(process.stderr),l&&p.stdin.end(l)}(Lg)),Lg.exports}Lg.exports;var Pg,Ng,_g,Cg,Fg,Dg,Mg,Ug,Gg,Bg,$g,qg,Wg,Hg,zg,Xg,Vg,Yg,Kg,Jg,Qg,Zg={};function em(){if(Pg)return Zg;Pg=1;var r,n=vg(),i=e,o=t;function s(e){if(!e||!o.existsSync(e))return!1;if(!n.statFollowLinks(e).isDirectory())return!1;var t=e+"/"+n.randomFileName();try{return o.writeFileSync(t," "),n.unlinkSync(t),e}catch(e){return!1}}function a(){return r||(r=s(i.tmpdir())||s(process.env.TMPDIR)||s(process.env.TEMP)||s(process.env.TMP)||s(process.env.Wimp$ScrapDir)||s("C:\\TEMP")||s("C:\\TMP")||s("\\TEMP")||s("\\TMP")||s("/tmp")||s("/var/tmp")||s("/usr/tmp")||s("."))}return n.register("tempdir",a,{allowGlobbing:!1,wrapOutput:!1}),Zg.tempDir=a,Zg.isCached=function(){return r},Zg.clearCache=function(){r=void 0},Zg}function tm(){if(_g)return Ng;_g=1;var e=r;function t(){return e.resolve(process.cwd())}return vg().register("pwd",t,{allowGlobbing:!1}),Ng=t}function rm(){if(Fg)return Cg;Fg=1;var e=vg(),n=em().tempDir,i=tm(),o=r,a=t,c=s,u=20971520,l=1;function f(t,r,s){r=r||{},t||e.error("must specify command");var f=e.readFromPipe();return"function"==typeof r&&(s=r,r={async:!0}),"object"==typeof r&&"function"==typeof s&&(r.async=!0),(r=e.extend({silent:e.config.silent,async:!1},r)).async?function(t,r,n,o){r=e.extend({silent:e.config.silent,cwd:i().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r);var s=c.exec(t,r,(function(e,t,r){o&&(e?void 0===e.code?o(1,t,r):o(e.code,t,r):o(0,t,r))}));return n&&s.stdin.end(n),r.silent||(s.stdout.pipe(process.stdout),s.stderr.pipe(process.stderr)),s}(t,r,f,s):function(t,r,s){e.config.execPath||e.error("Unable to find a path to the node binary. Please manually set config.execPath");var f=n(),h=o.resolve(f+"/"+e.randomFileName()),p=o.resolve(f+"/"+e.randomFileName()),d=o.resolve(f+"/"+e.randomFileName());r=e.extend({silent:e.config.silent,cwd:i().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r),a.existsSync(h)&&e.unlinkSync(h),a.existsSync(p)&&e.unlinkSync(p),a.existsSync(d)&&e.unlinkSync(d),r.cwd=o.resolve(r.cwd);var v={command:t,execOptions:r,pipe:s,stdoutFile:d,stderrFile:p};function g(e,t){a.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}g(d,""),g(p,""),g(h,JSON.stringify(v));var m=[o.join(__dirname,"exec-child.js"),h];r.silent?r.stdio="ignore":r.stdio=[0,1,2];var y=0;try{delete r.shell,c.execFileSync(e.config.execPath,m,r)}catch(e){y=e.status||l}var b="",E="";"buffer"===r.encoding?(b=a.readFileSync(d),E=a.readFileSync(p)):(b=a.readFileSync(d,r.encoding),E=a.readFileSync(p,r.encoding));try{e.unlinkSync(h)}catch(e){}try{e.unlinkSync(p)}catch(e){}try{e.unlinkSync(d)}catch(e){}return 0!==y&&e.error(E,y,{continue:!0,silent:!0}),e.ShellString(b,E,y)}(t,r,f)}return e.register("exec",f,{unix:!1,canReceivePipe:!0,wrapOutput:!1}),Cg=f}function nm(){if(Mg)return Dg;Mg=1;var e=r,n=t,i=vg(),o=dg(),s=e.sep+"**";function a(t,r){t.all_deprecated&&(i.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),r=r?[].slice.call(arguments,1):["."];var a=[];function c(e,r,n){var o,s;"win32"===process.platform&&(r=r.replace(/\\/g,"/")),t.long?(n=n||(t.link?i.statFollowLinks(e):i.statNoFollowLinks(e)),a.push((o=r,(s=n).name=o,s.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")},s))):a.push(r)}return r.forEach((function(r){var a;try{if((a=t.link?i.statFollowLinks(r):i.statNoFollowLinks(r)).isSymbolicLink())try{var u=i.statFollowLinks(r);u.isDirectory()&&(a=u)}catch(e){}}catch(e){return void i.error("no such file or directory: "+r,2,{continue:!0})}a.isDirectory()&&!t.directory?t.recursive?o.sync(r+s,{dot:t.all,follow:t.link}).forEach((function(t){e.relative(r,t)&&c(t,e.relative(r,t))})):t.all?n.readdirSync(r).forEach((function(t){c(e.join(r,t),t)})):n.readdirSync(r).forEach((function(t){"."!==t[0]&&c(e.join(r,t),t)})):c(r,r,a)})),a}return i.register("ls",a,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}}),Dg=a}function im(){if(Gg)return Ug;Gg=1;var e=r,t=vg(),n=nm();function i(r,i){i?"string"==typeof i&&(i=[].slice.call(arguments,1)):t.error("no path specified");var o=[];function s(e){"win32"===process.platform&&(e=e.replace(/\\/g,"/")),o.push(e)}return i.forEach((function(r){var i;try{i=t.statFollowLinks(r)}catch(e){t.error("no such file or directory: "+r)}s(r),i.isDirectory()&&n({recursive:!0,all:!0},r).forEach((function(t){s(e.join(r,t))}))})),o}return t.register("find",i,{}),Ug=i}function om(){if($g)return Bg;$g=1;var e=vg(),r=t;function n(t,n,i){var o=e.readFromPipe();i||o||e.error("no paths given",2),i=[].slice.call(arguments,2),o&&i.unshift("-");var s=[];return t.ignoreCase&&(n=new RegExp(n,"i")),i.forEach((function(i){if(r.existsSync(i)||"-"===i){var a="-"===i?o:r.readFileSync(i,"utf8");if(t.nameOnly)a.match(n)&&s.push(i);else a.split("\n").forEach((function(e){var r=e.match(n);(t.inverse&&!r||!t.inverse&&r)&&s.push(e)}))}else e.error("no such file or directory: "+i,2,{continue:!0})})),s.join("\n")+"\n"}return e.register("grep",n,{globStart:2,canReceivePipe:!0,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}}),Bg=n}function sm(){if(Wg)return qg;Wg=1;var e=vg(),r=t;function n(t,n){var i=[],o=e.readFromPipe();n||o||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),n=[].slice.call(arguments,s),o&&n.unshift("-");var a=!1;return n.forEach((function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s;s="-"===n?o:t.numLines<0?r.readFileSync(n,"utf8"):function(t,n){for(var i=e.buffer(),o=i.length,s=o,a=0,c=r.openSync(t,"r"),u=0,l="";s===o&&u and/or "),r=String(r);var s=n.normalize(r).replace(RegExp(n.sep+"$"),""),a=n.resolve(r)===s;if(o=n.resolve(process.cwd(),String(o)),e.existsSync(o)&&(t.force||i.error("Destination file exists",{continue:!0}),e.unlinkSync(o)),t.symlink){var c="win32"===process.platform,u=c?"file":null,l=a?s:n.resolve(process.cwd(),n.dirname(o),r);e.existsSync(l)?c&&i.statFollowLinks(l).isDirectory()&&(u="junction"):i.error("Source file does not exist",{continue:!0});try{e.symlinkSync("junction"===u?l:r,o,u)}catch(e){i.error(e.message)}}else{e.existsSync(r)||i.error("Source file does not exist",{continue:!0});try{e.linkSync(r,o)}catch(e){i.error(e.message)}}return""}return i.register("ln",o,{cmdOptions:{s:"symlink",f:"force"}}),Hg=o}function cm(){if(Vg)return Xg;Vg=1;var e=vg(),n=t,i=r;function o(t){var r=i.dirname(t);r===t&&e.error("dirname() failed: ["+t+"]"),n.existsSync(r)||o(r),n.mkdirSync(t,parseInt("0777",8))}function s(t,r){return r||e.error("no paths given"),"string"==typeof r&&(r=[].slice.call(arguments,1)),r.forEach((function(r){try{var s=e.statNoFollowLinks(r);return void(t.fullpath?s.isFile()&&e.error("cannot create directory "+r+": File exists",{continue:!0}):e.error("path already exists: "+r,{continue:!0}))}catch(e){}var a=i.dirname(r);if(n.existsSync(a)||t.fullpath)try{t.fullpath?o(i.resolve(r)):n.mkdirSync(r,parseInt("0777",8))}catch(t){var c;if("EACCES"===t.code)c="Permission denied";else{if("ENOTDIR"!==t.code&&"ENOENT"!==t.code)throw t;c="Not a directory"}e.error("cannot create directory "+r+": "+c,{continue:!0})}else e.error("no such file or directory: "+a,{continue:!0})})),""}return e.register("mkdir",s,{cmdOptions:{p:"fullpath"}}),Xg=s}function um(){if(Kg)return Yg;Kg=1;var e=vg(),r=t;function n(t,o,s){var a;a=r.readdirSync(t);for(var c=0;c1e3)throw e}}catch(r){e.error("could not remove directory (code "+r.code+"): "+t,{continue:!0})}return l}}function i(e){var t=!0;try{var n=r.openSync(e,"a");r.closeSync(n)}catch(e){t=!1}return t}function o(t,r){return r||e.error("no paths given"),(r=[].slice.call(arguments,1)).forEach((function(r){var o;try{var s="/"===r[r.length-1]?r.slice(0,-1):r;o=e.statNoFollowLinks(s)}catch(n){return void(t.force||e.error("no such file or directory: "+r,{continue:!0}))}o.isFile()?function(t,r){r.force||i(t)?e.unlinkSync(t):e.error("permission denied: "+t,{continue:!0})}(r,t):o.isDirectory()?function(t,r){r.recursive?n(t,r.force):e.error("path is a directory",{continue:!0})}(r,t):o.isSymbolicLink()?function(t,r){var i;try{i=e.statFollowLinks(t)}catch(r){return void e.unlinkSync(t)}i.isFile()?e.unlinkSync(t):i.isDirectory()&&("/"===t[t.length-1]?r.recursive?n(t,r.force,!0):e.error("path is a directory",{continue:!0}):e.unlinkSync(t))}(r,t):o.isFIFO()&&function(t){e.unlinkSync(t)}(r)})),""}return e.register("rm",o,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}}),Yg=o}function lm(){if(Qg)return Jg;Qg=1;var e=t,n=r,i=vg(),o=bg(),s=um();function a(t,r,a){arguments.length<3?i.error("missing and/or "):arguments.length>3?(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]):"string"==typeof r?r=[r]:i.error("invalid arguments");var c=e.existsSync(a),u=c&&i.statFollowLinks(a);return c&&u.isDirectory()||!(r.length>1)||i.error("dest is not a directory (too many sources)"),c&&u.isFile()&&t.no_force&&i.error("dest file already exists: "+a),r.forEach((function(c,u){if(e.existsSync(c)){var l=a;if(e.existsSync(a)&&i.statFollowLinks(a).isDirectory()&&(l=n.normalize(a+"/"+n.basename(c))),e.existsSync(l)&&function(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}(r,u))t.no_force||i.error("will not overwrite just-created '"+l+"' with '"+c+"'",{continue:!0});else if(e.existsSync(l)&&t.no_force)i.error("dest file already exists: "+l,{continue:!0});else if(n.resolve(c)!==n.dirname(n.resolve(l)))try{e.renameSync(c,l)}catch(e){"EXDEV"===e.code&&(o("-r",c,l),s("-rf",c))}else i.error("cannot move to self: "+c,{continue:!0})}else i.error("no such file or directory: "+c,{continue:!0})})),""}return i.register("mv",a,{cmdOptions:{f:"!no_force",n:"no_force"}}),Jg=a}var fm,hm={};function pm(){return fm||(fm=1),hm}var dm,vm,gm,mm,ym,bm={};function Em(){return dm||(dm=1),bm}function wm(){if(gm)return vm;gm=1;var e=vg(),r=t;function n(t,n,i,o){var s=e.readFromPipe();"string"!=typeof i&&"function"!=typeof i&&("number"==typeof i?i=i.toString():e.error("invalid replacement string")),"string"==typeof n&&(n=RegExp(n)),o||s||e.error("no files given"),o=[].slice.call(arguments,3),s&&o.unshift("-");var a=[];return o.forEach((function(o){if(r.existsSync(o)||"-"===o){var c=("-"===o?s:r.readFileSync(o,"utf8")).split("\n").map((function(e){return e.replace(n,i)})).join("\n");a.push(c),t.inplace&&r.writeFileSync(o,c,"utf8")}else e.error("no such file or directory: "+o,2,{continue:!0})})),a.join("\n")}return e.register("sed",n,{globStart:3,canReceivePipe:!0,cmdOptions:{i:"inplace"}}),vm=n}function Sm(){if(ym)return mm;ym=1;var e=vg();function t(t){if(!t){var r=[].slice.call(arguments,0);r.length<2&&e.error("must provide an argument"),t=r[1]}var n="+"===t[0];n&&(t="-"+t.slice(1)),t=e.parseOptions(t,{e:"fatal",v:"verbose",f:"noglob"}),n&&Object.keys(t).forEach((function(e){t[e]=!t[e]})),Object.keys(t).forEach((function(r){n!==t[r]&&(e.config[r]=t[r])}))}return e.register("set",t,{allowGlobbing:!1,wrapOutput:!1}),mm=t}var Om=bp.end,Rm=Op("trimEnd")?function(){return Om(this)}:"".trimEnd;ji({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==Rm},{trimRight:Rm});var Im,Am,xm,Tm,jm,Lm,km,Pm,Nm,_m,Cm,Fm,Dm,Mm,Um,Gm,Bm;function $m(){if(Am)return Im;Am=1;var e=vg(),r=t;function n(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function i(e,t){var r=e.toLowerCase(),n=t.toLowerCase();return r===n?-1*e.localeCompare(t):r.localeCompare(n)}function o(e,t){var r=n(e),o=n(t);return r.hasOwnProperty("num")&&o.hasOwnProperty("num")&&r.num!==o.num?r.num-o.num:i(r.value,o.value)}function s(t,n){var s=e.readFromPipe();n||s||e.error("no files given"),n=[].slice.call(arguments,1),s&&n.unshift("-");var a=n.reduce((function(t,n){if("-"!==n){if(!r.existsSync(n))return e.error("no such file or directory: "+n,{continue:!0}),t;if(e.statFollowLinks(n).isDirectory())return e.error("read failed: "+n+": Is a directory",{continue:!0}),t}var i="-"===n?s:r.readFileSync(n,"utf8");return t.concat(i.trimRight().split("\n"))}),[]).sort(t.numerical?o:i);return t.reverse&&(a=a.reverse()),a.join("\n")+"\n"}return e.register("sort",s,{canReceivePipe:!0,cmdOptions:{r:"reverse",n:"numerical"}}),Im=s}function qm(){if(Tm)return xm;Tm=1;var e=vg(),r=t;function n(t,n){var i=[],o=e.readFromPipe();n||o||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),t.numLines=-1*Math.abs(t.numLines),n=[].slice.call(arguments,s),o&&n.unshift("-");var a=!1;return n.forEach((function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s=("-"===n?o:r.readFileSync(n,"utf8")).split("\n");""===s[s.length-1]?(s.pop(),a=!0):a=!1,i=i.concat(s.slice(t.numLines))})),a&&i.push(""),i.join("\n")}return e.register("tail",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),xm=n}function Wm(){if(Lm)return jm;Lm=1;var e=vg(),r=t;function n(t,n){n||e.error("no path given");var i=!1;if(Object.keys(t).forEach((function(e){!0===t[e]&&(i=!0)})),i||e.error("could not interpret expression"),t.link)try{return e.statNoFollowLinks(n).isSymbolicLink()}catch(e){return!1}if(!r.existsSync(n))return!1;if(t.exists)return!0;var o=e.statFollowLinks(n);return t.block?o.isBlockDevice():t.character?o.isCharacterDevice():t.directory?o.isDirectory():t.file?o.isFile():t.pipe?o.isFIFO():!!t.socket&&o.isSocket()}return e.register("test",n,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:!1,allowGlobbing:!1}),jm=n}function Hm(){if(Pm)return km;Pm=1;var e=vg(),n=t,i=r;function o(t,r){r||e.error("wrong arguments"),n.existsSync(i.dirname(r))||e.error("no such file or directory: "+i.dirname(r));try{return n.writeFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not write to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("to",o,{pipeOnly:!0,wrapOutput:!1}),km=o}function zm(){if(_m)return Nm;_m=1;var e=vg(),n=t,i=r;function o(t,r){r||e.error("wrong arguments"),n.existsSync(i.dirname(r))||e.error("no such file or directory: "+i.dirname(r));try{return n.appendFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not append to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("toEnd",o,{pipeOnly:!0,wrapOutput:!1}),Nm=o}function Xm(){if(Fm)return Cm;Fm=1;var e=vg(),r=t;function n(t,n){return n?"string"==typeof n?n=[].slice.call(arguments,1):e.error("file arg should be a string file path or an Array of string file paths"):e.error("no files given"),n.forEach((function(n){!function(t,n){var o=i(n);if(o&&o.isDirectory())return;if(!o&&t.no_create)return;r.closeSync(r.openSync(n,"a"));var s=new Date,a=t.date||s,c=t.date||s;if(t.reference){var u=i(t.reference);u||e.error("failed to get attributess of "+t.reference),a=u.mtime,c=u.atime}else t.date&&(a=t.date,c=t.date);t.atime_only&&t.mtime_only||(t.atime_only?a=o.mtime:t.mtime_only&&(c=o.atime));r.utimesSync(n,c,a)}(t,n)})),""}function i(t){try{return e.statFollowLinks(t)}catch(e){return null}}return e.register("touch",n,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}}),Cm=n}function Vm(){if(Mm)return Dm;Mm=1;var e=vg(),r=t;function n(t,n,i){var o=e.readFromPipe();o||(n||e.error("no input given"),r.existsSync(n)?e.statFollowLinks(n).isDirectory()&&e.error("error reading '"+n+"'"):e.error(n+": No such file or directory")),i&&r.existsSync(i)&&e.statFollowLinks(i).isDirectory()&&e.error(i+": Is a directory");var s=(n?r.readFileSync(n,"utf8"):o).trimRight().split("\n"),a=s.reduceRight((function(e,r){return 0===e.length?[{count:1,ln:r}]:0===(n=e[0].ln,i=r,t.ignoreCase?n.toLocaleLowerCase().localeCompare(i.toLocaleLowerCase()):n.localeCompare(i))?[{count:e[0].count+1,ln:r}].concat(e.slice(1)):[{count:1,ln:r}].concat(e);var n,i}),[]).filter((function(e){return!t.duplicates||e.count>1})).map((function(e){return(t.count?(r=7,n=e.count,(i=""+n).length0)||t.all);h++){var p=i.resolve(s[h],r);n&&(p=p.toUpperCase());var d=p.match(/\.[^<>:"/\|?*.]+$/);if(d&&f.indexOf(d[0])>=0){if(u(p)){l.push(p);break}}else for(var v=0;v0?t.all?l:l[0]:t.all?[]:null}return Um=l}function Km(){return Bm||(Bm={"/node_modules/shelljs/src/cat.js":gg,"/node_modules/shelljs/src/cd.js":mg,"/node_modules/shelljs/src/chmod.js":yg,"/node_modules/shelljs/src/common.js":vg,"/node_modules/shelljs/src/cp.js":bg,"/node_modules/shelljs/src/dirs.js":Ag,"/node_modules/shelljs/src/echo.js":xg,"/node_modules/shelljs/src/error.js":Tg,"/node_modules/shelljs/src/exec-child.js":kg,"/node_modules/shelljs/src/exec.js":rm,"/node_modules/shelljs/src/find.js":im,"/node_modules/shelljs/src/grep.js":om,"/node_modules/shelljs/src/head.js":sm,"/node_modules/shelljs/src/ln.js":am,"/node_modules/shelljs/src/ls.js":nm,"/node_modules/shelljs/src/mkdir.js":cm,"/node_modules/shelljs/src/mv.js":lm,"/node_modules/shelljs/src/popd.js":pm,"/node_modules/shelljs/src/pushd.js":Em,"/node_modules/shelljs/src/pwd.js":tm,"/node_modules/shelljs/src/rm.js":um,"/node_modules/shelljs/src/sed.js":wm,"/node_modules/shelljs/src/set.js":Sm,"/node_modules/shelljs/src/sort.js":$m,"/node_modules/shelljs/src/tail.js":qm,"/node_modules/shelljs/src/tempdir.js":em,"/node_modules/shelljs/src/test.js":Wm,"/node_modules/shelljs/src/to.js":Hm,"/node_modules/shelljs/src/toEnd.js":zm,"/node_modules/shelljs/src/touch.js":Xm,"/node_modules/shelljs/src/uniq.js":Vm,"/node_modules/shelljs/src/which.js":Ym})}function Jm(e,t){var r,n=function(e){var t=e[0];if("/"===t||"\\"===t)return!1;var r=e[1],n=e[2];return!(!("."!==t||r&&"/"!==r&&"\\"!==r)||!("."!==t||"."!==r||n&&"/"!==n&&"\\"!==n))&&(":"!==r||"/"!==n&&"\\"!==n)}(e);"/"===(e=Qm(e))[0]&&(t="");for(var i=Km(),o=["",".js",".json"];!(r=Qm(n?t+"/node_modules/"+e:t+"/"+e)).endsWith("/..");){for(var s=0;s0&&".."!==t[n-1]&&"."!==t[n-1]&&(t.splice(--n,2),n--);return e=t.join("/"),r&&"/"!==e[0]?e="/"+e:0===e.length&&(e="."),e}ji({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==Rm},{trimEnd:Rm});var Zm,ey,ty,ry={};function ny(){if(ty)return ry;ty=1;var e=vg();return(ey?Zm:(ey=1,Zm=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"])).forEach((function(e){!function(e){function t(t){var r=Jm(t,e);if(null!==r)return Km()[r]();throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(t){var r=Jm(t,e);return null!==r?r:require.resolve(t)},t}("/node_modules/shelljs")("./src/"+e)})),ry.exit=process.exit,ry.error=Tg(),ry.ShellString=e.ShellString,ry.env=process.env,ry.config=e.config,ry}var iy=ny(),oy=vg();Object.keys(iy).forEach((function(e){j[e]=iy[e]}));var sy=Hm();String.prototype.to=oy.wrap("to",sy);var ay=zm();String.prototype.toEnd=oy.wrap("toEnd",ay),j.config.fatal=!0,j.target={};var cy,uy=process.argv.slice(2),ly=uy.indexOf("--");ly>-1&&(cy=uy.slice(ly+1,uy.length),uy=uy.slice(0,ly)),setTimeout((function(){var e;if(1!==uy.length||"--help"!==uy[0]){for(e in j.target)!function(e,t){j.target[e]=function(){return t.done||(t.done=!0,t.result=t.apply(t,arguments)),t.result}}(e,j.target[e]);uy.length>0?uy.forEach((function(e){e in j.target?j.target[e](cy):console.log("no such target: "+e)})):"all"in j.target&&j.target.all(cy)}else for(e in console.log("Available targets:"),j.target)console.log(" "+e)}),0);var fy={exports:{}};!function(e,t){var r;t=fy.exports=m,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=n-6,s=t.re=[],a=t.safeRe=[],c=t.src=[],u=t.tokens={},l=0;function f(e){u[e]=l++}var h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[h,o]];function d(e){for(var t=0;t)?=?)",f("XRANGEIDENTIFIERLOOSE"),c[u.XRANGEIDENTIFIERLOOSE]=c[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",f("XRANGEIDENTIFIER"),c[u.XRANGEIDENTIFIER]=c[u.NUMERICIDENTIFIER]+"|x|X|\\*",f("XRANGEPLAIN"),c[u.XRANGEPLAIN]="[v=\\s]*("+c[u.XRANGEIDENTIFIER]+")(?:\\.("+c[u.XRANGEIDENTIFIER]+")(?:\\.("+c[u.XRANGEIDENTIFIER]+")(?:"+c[u.PRERELEASE]+")?"+c[u.BUILD]+"?)?)?",f("XRANGEPLAINLOOSE"),c[u.XRANGEPLAINLOOSE]="[v=\\s]*("+c[u.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+c[u.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+c[u.XRANGEIDENTIFIERLOOSE]+")(?:"+c[u.PRERELEASELOOSE]+")?"+c[u.BUILD]+"?)?)?",f("XRANGE"),c[u.XRANGE]="^"+c[u.GTLT]+"\\s*"+c[u.XRANGEPLAIN]+"$",f("XRANGELOOSE"),c[u.XRANGELOOSE]="^"+c[u.GTLT]+"\\s*"+c[u.XRANGEPLAINLOOSE]+"$",f("COERCE"),c[u.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",f("COERCERTL"),s[u.COERCERTL]=new RegExp(c[u.COERCE],"g"),a[u.COERCERTL]=new RegExp(d(c[u.COERCE]),"g"),f("LONETILDE"),c[u.LONETILDE]="(?:~>?)",f("TILDETRIM"),c[u.TILDETRIM]="(\\s*)"+c[u.LONETILDE]+"\\s+",s[u.TILDETRIM]=new RegExp(c[u.TILDETRIM],"g"),a[u.TILDETRIM]=new RegExp(d(c[u.TILDETRIM]),"g");f("TILDE"),c[u.TILDE]="^"+c[u.LONETILDE]+c[u.XRANGEPLAIN]+"$",f("TILDELOOSE"),c[u.TILDELOOSE]="^"+c[u.LONETILDE]+c[u.XRANGEPLAINLOOSE]+"$",f("LONECARET"),c[u.LONECARET]="(?:\\^)",f("CARETTRIM"),c[u.CARETTRIM]="(\\s*)"+c[u.LONECARET]+"\\s+",s[u.CARETTRIM]=new RegExp(c[u.CARETTRIM],"g"),a[u.CARETTRIM]=new RegExp(d(c[u.CARETTRIM]),"g");f("CARET"),c[u.CARET]="^"+c[u.LONECARET]+c[u.XRANGEPLAIN]+"$",f("CARETLOOSE"),c[u.CARETLOOSE]="^"+c[u.LONECARET]+c[u.XRANGEPLAINLOOSE]+"$",f("COMPARATORLOOSE"),c[u.COMPARATORLOOSE]="^"+c[u.GTLT]+"\\s*("+c[u.LOOSEPLAIN]+")$|^$",f("COMPARATOR"),c[u.COMPARATOR]="^"+c[u.GTLT]+"\\s*("+c[u.FULLPLAIN]+")$|^$",f("COMPARATORTRIM"),c[u.COMPARATORTRIM]="(\\s*)"+c[u.GTLT]+"\\s*("+c[u.LOOSEPLAIN]+"|"+c[u.XRANGEPLAIN]+")",s[u.COMPARATORTRIM]=new RegExp(c[u.COMPARATORTRIM],"g"),a[u.COMPARATORTRIM]=new RegExp(d(c[u.COMPARATORTRIM]),"g");f("HYPHENRANGE"),c[u.HYPHENRANGE]="^\\s*("+c[u.XRANGEPLAIN]+")\\s+-\\s+("+c[u.XRANGEPLAIN]+")\\s*$",f("HYPHENRANGELOOSE"),c[u.HYPHENRANGELOOSE]="^\\s*("+c[u.XRANGEPLAINLOOSE]+")\\s+-\\s+("+c[u.XRANGEPLAINLOOSE]+")\\s*$",f("STAR"),c[u.STAR]="(<|>)?=?\\s*\\*";for(var v=0;vn)return null;if(!(t.loose?a[u.LOOSE]:a[u.FULL]).test(e))return null;try{return new m(e,t)}catch(e){return null}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof m))return new m(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new m(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(O(e,t))return null;var r=g(e),n=g(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return o},t.compareIdentifiers=b;var y=/^[0-9]+$/;function b(e,t){var r=y.test(e),n=y.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}function S(e,t,r){return E(e,t,r)<0}function O(e,t,r){return 0===E(e,t,r)}function R(e,t,r){return 0!==E(e,t,r)}function I(e,t,r){return E(e,t,r)>=0}function A(e,t,r){return E(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return O(e,r,n);case"!=":return R(e,r,n);case">":return w(e,r,n);case">=":return I(e,r,n);case"<":return S(e,r,n);case"<=":return A(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function T(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof T){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof T))return new T(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===j?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return b(t,e)},t.major=function(e,t){return new m(e,t).major},t.minor=function(e,t){return new m(e,t).minor},t.patch=function(e,t){return new m(e,t).patch},t.compare=E,t.compareLoose=function(e,t){return E(e,t,!0)},t.compareBuild=function(e,t,r){var n=new m(e,r),i=new m(t,r);return n.compare(i)||n.compareBuild(i)},t.rcompare=function(e,t,r){return E(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=w,t.lt=S,t.eq=O,t.neq=R,t.gte=I,t.lte=A,t.cmp=x,t.Comparator=T;var j={};function L(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new L(e.raw,t);if(e instanceof T)return new L(e.value,t);if(!(this instanceof L))return new L(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function k(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every((function(e){return i.intersects(e,t)})),i=n.pop();return r}function P(e){return!e||"x"===e.toLowerCase()||"*"===e}function N(e,t,r,n,i,o,s,a,c,u,l,f,h){return((t=P(r)?"":P(n)?">="+r+".0.0":P(i)?">="+r+"."+n+".0":">="+t)+" "+(a=P(c)?"":P(u)?"<"+(+c+1)+".0.0":P(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function _(e,t,n){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function C(e,t,r){try{t=new L(t,r)}catch(e){return!1}return t.test(e)}function F(e,t,r,n){var i,o,s,a,c;switch(e=new m(e,n),t=new L(t,n),r){case">":i=w,o=A,s=S,a=">",c=">=";break;case"<":i=S,o=I,s=w,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(C(e,t,n))return!1;for(var u=0;u=0.0.0")),f=f||e,h=h||e,i(e.semver,f.semver,n)?f=e:s(e.semver,h.semver,n)&&(h=e)})),f.operator===a||f.operator===c)return!1;if((!h.operator||h.operator===a)&&o(e,h.semver))return!1;if(h.operator===c&&s(e,h.semver))return!1}return!0}T.prototype.parse=function(e){var t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new m(r[2],this.options.loose):this.semver=j},T.prototype.toString=function(){return this.value},T.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===j||e===j)return!0;if("string"==typeof e)try{e=new m(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},T.prototype.intersects=function(e,t){if(!(e instanceof T))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new L(e.value,t),C(this.value,r,t));if(""===e.operator)return""===e.value||(r=new L(this.value,t),C(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||c},t.Range=L,L.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},L.prototype.toString=function(){return this.range},L.prototype.parseRange=function(e){var t=this.options.loose,n=t?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];e=e.replace(n,N),r("hyphen replace",e),e=e.replace(a[u.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,a[u.COMPARATORTRIM]),e=(e=(e=e.replace(a[u.TILDETRIM],"$1~")).replace(a[u.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?a[u.COMPARATORLOOSE]:a[u.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[u.CARETLOOSE]:a[u.CARET];return e.replace(n,(function(t,n,i,o,s){var a;return r("caret",e,t,n,i,o,s),P(n)?a="":P(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":P(o)?a="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[u.TILDELOOSE]:a[u.TILDE];return e.replace(n,(function(t,n,i,o,s){var a;return r("tilde",e,t,n,i,o,s),P(n)?a="":P(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":P(o)?a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"):a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return e.replace(n,(function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var u=P(o),l=u||P(s),f=l||P(a),h=f;return"="===i&&h&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&h?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),n=i+o+"."+s+"."+a+c):l?n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c:f&&(n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[u.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o=o.map((function(e){return new T(e,this.options)}),this)},L.prototype.intersects=function(e,t){if(!(e instanceof L))throw new TypeError("a Range is required");return this.set.some((function(r){return k(r,t)&&e.set.some((function(e){return k(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new L(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},L.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new m(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!w(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new L(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return F(e,t,"<",r)},t.gtr=function(e,t,r){return F(e,t,">",r)},t.outside=F,t.prerelease=function(e,t){var r=g(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new L(e,r),t=new L(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof m)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=a[u.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),a[u.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;a[u.COERCERTL].lastIndex=-1}else r=e.match(a[u.COERCE]);if(null===r)return null;return g(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}(0,fy.exports);var hy,py,dy,vy,gy=L(fy.exports),my="process"===te(P.process),yy=we,by=TypeError,Ey=function(e,t){if(yy(t,e))return e;throw new by("Incorrect invocation")},wy=TypeError,Sy=function(e,t){if(eo;o++)if((a=m(e[o]))&&yw(Rw,a))return a;return new Ow(!1)}n=bw(e,i)}for(c=h?e.next:n.next;!(u=pw(c,n)).done;){try{a=m(u.value)}catch(e){ww(n,"throw",e)}if("object"==typeof a&&a&&yw(Rw,a))return a}return new Ow(!1)},Aw=jt("iterator"),xw=!1;try{var Tw=0,jw={next:function(){return{done:!!Tw++}},return:function(){xw=!0}};jw[Aw]=function(){return this},Array.from(jw,(function(){throw 2}))}catch(e){}var Lw=function(e,t){try{if(!t&&!xw)return!1}catch(e){return!1}var r=!1;try{var n={};n[Aw]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},kw=Tb,Pw=Wb.CONSTRUCTOR||!Lw((function(e){kw.all(e).then(void 0,(function(){}))})),Nw=U,_w=He,Cw=Hb,Fw=xb,Dw=Iw;ji({target:"Promise",stat:!0,forced:Pw},{all:function(e){var t=this,r=Cw.f(t),n=r.resolve,i=r.reject,o=Fw((function(){var r=_w(t.resolve),o=[],s=0,a=1;Dw(e,(function(e){var c=s++,u=!1;a++,Nw(r,t,e).then((function(e){u||(u=!0,o[c]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise}});var Mw=ji,Uw=Wb.CONSTRUCTOR,Gw=Tb,Bw=Ee,$w=ve,qw=An,Ww=Gw&&Gw.prototype;if(Mw({target:"Promise",proto:!0,forced:Uw,real:!0},{catch:function(e){return this.then(void 0,e)}}),$w(Gw)){var Hw=Bw("Promise").prototype.catch;Ww.catch!==Hw&&qw(Ww,"catch",Hw,{unsafe:!0})}var zw=U,Xw=He,Vw=Hb,Yw=xb,Kw=Iw;ji({target:"Promise",stat:!0,forced:Pw},{race:function(e){var t=this,r=Vw.f(t),n=r.reject,i=Yw((function(){var i=Xw(t.resolve);Kw(e,(function(e){zw(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Jw=Hb;ji({target:"Promise",stat:!0,forced:Wb.CONSTRUCTOR},{reject:function(e){var t=Jw.f(this);return(0,t.reject)(e),t.promise}});var Qw=ar,Zw=me,eS=Hb,tS=function(e,t){if(Qw(e),Zw(t)&&t.constructor===e)return t;var r=eS.f(e);return(0,r.resolve)(t),r.promise},rS=ji,nS=Wb.CONSTRUCTOR,iS=tS;Ee("Promise"),rS({target:"Promise",stat:!0,forced:nS},{resolve:function(e){return iS(this,e)}});var oS,sS=_u,aS=TypeError,cS=function(e){if(sS(e))throw new aS("The method doesn't accept regular expressions");return e},uS=jt("match"),lS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[uS]=!1,"/./"[e](t)}catch(e){}}return!1},fS=ji,hS=Xo,pS=N.f,dS=Mn,vS=uo,gS=cS,mS=le,yS=lS,bS=hS("".slice),ES=Math.min,wS=yS("startsWith");fS({target:"String",proto:!0,forced:!!(wS||(oS=pS(String.prototype,"startsWith"),!oS||oS.writable))&&!wS},{startsWith:function(e){var t=vS(mS(this));gS(e);var r=dS(ES(arguments.length>1?arguments[1]:void 0,t.length)),n=vS(e);return bS(t,r,r+n.length)===n}});var SS,OS,RS,IS,AS,xS={exports:{}};AS="win32"===process.platform||j.TESTING_WINDOWS?function(){if(IS)return RS;IS=1,RS=n,n.sync=function(t,n){return r(e.statSync(t),t,n)};var e=t;function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;nObject.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),CS=(e,t)=>{const r=t.colon||PS,n=e.match(/\//)||LS&&e.match(/\\/)?[""]:[...LS?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=LS?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=LS?i.split(r):[""];return LS&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i}},FS=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const n=CS(e,t),i=n.pathEnv,o=n.pathExt,s=n.pathExtExe,a=[],c=r=>new Promise(((n,o)=>{if(r===i.length)return t.all&&a.length?n(a):o(_S(e));const s=i[r],c=/^".*"$/.test(s)?s.slice(1,-1):s,l=kS.join(c,e),f=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;n(u(f,r,0))})),u=(e,r,n)=>new Promise(((i,l)=>{if(n===o.length)return i(c(r+1));const f=o[n];NS(e+f,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return i(e+f);a.push(e+f)}return i(u(e,r,n+1))}))}));return r?c(0).then((e=>r(null,e)),r):c(0)};var DS=FS;FS.sync=(e,t)=>{const r=CS(e,t=t||{}),n=r.pathEnv,i=r.pathExt,o=r.pathExtExe,s=[];for(let r=0;r{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};MS.exports=US,MS.exports.default=US;var GS=MS.exports;L(GS);const BS=r,$S=DS,qS=GS;function WS(e,t){const r=e.options.env||process.env,n=process.cwd(),i=null!=e.options.cwd,o=i&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=$S.sync(e.command,{path:r[qS({env:r})],pathExt:t?BS.delimiter:void 0})}catch(e){}finally{o&&process.chdir(n)}return s&&(s=BS.resolve(i?e.options.cwd:"",s)),s}var HS=function(e){return WS(e)||WS(e,!0)};L(HS);var zS={};const XS=/([()\][%!^"`<>&|;, *?])/g;zS.command=function(e){return e=e.replace(XS,"^$1")},zS.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(XS,"^$1"),t&&(e=e.replace(XS,"^$1")),e};var VS=/^#!(.*)/;L(VS);const YS=VS;var KS=(e="")=>{const t=e.match(YS);if(!t)return null;const r=O(t[0].replace(/#! ?/,"").split(" "),2),n=r[0],i=r[1],o=n.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o};L(KS);const JS=t,QS=KS;var ZS=function(e){const t=Buffer.alloc(150);let r;try{r=JS.openSync(e,"r"),JS.readSync(r,t,0,150,0),JS.closeSync(r)}catch(e){}return QS(t.toString())};L(ZS);const eO=r,tO=HS,rO=zS,nO=ZS,iO="win32"===process.platform,oO=/\.(?:com|exe)$/i,sO=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function aO(e){if(!iO)return e;const t=function(e){e.file=tO(e);const t=e.file&&nO(e.file);return t?(e.args.unshift(e.file),e.command=t,tO(e)):e.file}(e),r=!oO.test(t);if(e.options.forceShell||r){const r=sO.test(t);e.command=eO.normalize(e.command),e.command=rO.command(e.command),e.args=e.args.map((e=>rO.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var cO=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:aO(n)};L(cO);const uO="win32"===process.platform;function lO(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function fO(e,t){return uO&&1===e&&!t.file?lO(t.original,"spawn"):null}var hO={hookChildProcess:function(e,t){if(!uO)return;const r=e.emit;e.emit=function(n,i){if("exit"===n){const n=fO(i,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:fO,verifyENOENTSync:function(e,t){return uO&&1===e&&!t.file?lO(t.original,"spawnSync"):null},notFoundError:lO};L(hO);const pO=s,dO=cO,vO=hO;function gO(e,t,r){const n=dO(e,t,r),i=pO.spawn(n.command,n.args,n.options);return vO.hookChildProcess(i,n),i}xS.exports=gO,xS.exports.spawn=gO,xS.exports.sync=function(e,t,r){const n=dO(e,t,r),i=pO.spawnSync(n.command,n.args,n.options);return i.error=i.error||vO.verifyENOENTSync(i.status,n),i},xS.exports._parse=dO,xS.exports._enoent=vO;var mO=L(xS.exports);var yO=Yf.charAt,bO=uo,EO=rn,wO=uc,SO=lc,OO="String Iterator",RO=EO.set,IO=EO.getterFor(OO);wO(String,"String",(function(e){RO(this,{type:OO,string:bO(e),index:0})}),(function(){var e,t=IO(this),r=t.string,n=t.index;return n>=r.length?SO(void 0,!0):(e=yO(r,n),t.index+=e.length,SO(e,!1))}));var AO=_,xO=C,TO=jt("iterator"),jO=!AO((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!xO||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[TO]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),LO=C,kO=J,PO=U,NO=_,_O=Fs,CO=ti,FO=G,DO=ht,MO=se,UO=Object.assign,GO=Object.defineProperty,BO=kO([].concat),$O=!UO||NO((function(){if(LO&&1!==UO({b:1},UO(GO({},"a",{enumerable:!0,get:function(){GO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==UO({},e)[r]||_O(UO({},t)).join("")!==n}))?function(e,t){for(var r=DO(e),n=arguments.length,i=1,o=CO.f,s=FO.f;n>i;)for(var a,c=MO(arguments[i++]),u=o?BO(_O(c),o(c)):_O(c),l=u.length,f=0;l>f;)a=u[f++],LO&&!PO(s,c,a)||(r[a]=c[a]);return r}:UO,qO=ar,WO=fw,HO=Jo,zO=U,XO=ht,VO=function(e,t,r,n){try{return n?t(qO(r)[0],r[1]):t(r)}catch(t){WO(e,"throw",t)}},YO=VE,KO=hs,JO=Gn,QO=Uc,ZO=aw,eR=ew,tR=Array,rR=function(e){var t=XO(e),r=KO(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=HO(i,n>2?arguments[2]:void 0));var s,a,c,u,l,f,h=eR(t),p=0;if(!h||this===tR&&YO(h))for(s=JO(t),a=r?new this(s):tR(s);s>p;p++)f=o?i(t[p],p):t[p],QO(a,p,f);else for(a=r?new this:[],l=(u=ZO(t,h)).next;!(c=zO(l,u)).done;p++)f=o?VO(u,i,[c.value,p],!0):c.value,QO(a,p,f);return a.length=p,a},nR=J,iR=2147483647,oR=/[^\0-\u007E]/,sR=/[.\u3002\uFF0E\uFF61]/g,aR="Overflow: input needs wider integers to process",cR=RangeError,uR=nR(sR.exec),lR=Math.floor,fR=String.fromCharCode,hR=nR("".charCodeAt),pR=nR([].join),dR=nR([].push),vR=nR("".replace),gR=nR("".split),mR=nR("".toLowerCase),yR=function(e){return e+22+75*(e<26)},bR=function(e,t,r){var n=0;for(e=r?lR(e/700):e>>1,e+=lR(e/t);e>455;)e=lR(e/35),n+=36;return lR(n+36*e/(e+38))},ER=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r=o&&nlR((iR-s)/f))throw new cR(aR);for(s+=(l-o)*f,o=l,r=0;riR)throw new cR(aR);if(n===o){for(var h=s,p=36;;){var d=p<=a?1:p>=a+26?26:p-a;if(h=t.length)return e.target=void 0,VR(void 0,!0);var n=t[r];switch(e.kind){case"keys":return VR(n.key,!1);case"values":return VR(n.value,!1)}return VR([n.key,n.value],!1)}),!0),LI=function(e){this.entries=[],this.url=null,void 0!==e&&($R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===hI(e,0)?bI(e,1):e:qR(e)))};LI.prototype={type:QR,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,s,a,c=this.entries,u=XR(e);if(u)for(r=(t=zR(e,u)).next;!(n=AR(r,t)).done;){if(o=(i=zR(BR(n.value))).next,(s=AR(o,i)).done||(a=AR(o,i)).done||!AR(o,i).done)throw new uI("Expected sequence with length 2");dI(c,{key:qR(s.value),value:qR(a.value)})}else for(var l in e)MR(e,l)&&dI(c,{key:l,value:qR(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=yI(e,"&"),o=0;o0?arguments[0]:void 0));TR||(this.size=e.entries.length)},PI=kI.prototype;if(PR(PI,{append:function(e,t){var r=tI(this);YR(arguments.length,2),dI(r.entries,{key:qR(e),value:qR(t)}),TR||this.length++,r.updateURL()},delete:function(e){for(var t=tI(this),r=YR(arguments.length,1),n=t.entries,i=qR(e),o=r<2?void 0:arguments[1],s=void 0===o?o:qR(o),a=0;at.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=tI(this).entries,n=UR(e,arguments.length>1?arguments[1]:void 0),i=0;i1?CI(arguments[1]):{})}}),DR(iI)){var FI=function(e){return FR(this,sI),new iI(e,arguments.length>1?CI(arguments[1]):{})};sI.constructor=FI,FI.prototype=sI,OR({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:FI})}}var DI,MI=ji,UI=C,GI=jO,BI=P,$I=Jo,qI=J,WI=An,HI=Ju,zI=Ey,XI=vt,VI=$O,YI=rR,KI=Gc,JI=Yf.codeAt,QI=function(e){var t,r,n=[],i=gR(vR(mR(e),sR,"."),".");for(t=0;t?@[\\\]^|]/,FA=/[\0\t\n\r #/:<>?@[\\\]^|]/,DA=/^[\u0000-\u0020]+/,MA=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,UA=/[\t\n\r]/g,GA=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)RA(t,e%256),e=fA(e/256);return vA(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=gA(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},BA={},$A=VI({},BA,{" ":1,'"':1,"<":1,">":1,"`":1}),qA=VI({},$A,{"#":1,"?":1,"{":1,"}":1}),WA=VI({},qA,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),HA=function(e,t){var r=JI(e,0);return r>32&&r<127&&!XI(t,e)?e:encodeURIComponent(e)},zA={ftp:21,file:null,http:80,https:443,ws:80,wss:443},XA=function(e,t){var r;return 2===e.length&&dA(TA,pA(e,0))&&(":"===(r=pA(e,1))||!t&&"|"===r)},VA=function(e){var t;return e.length>1&&XA(SA(e,0,2))&&(2===e.length||"/"===(t=pA(e,2))||"\\"===t||"?"===t||"#"===t)},YA=function(e){return"."===e||"%2e"===OA(e)},KA={},JA={},QA={},ZA={},ex={},tx={},rx={},nx={},ix={},ox={},sx={},ax={},cx={},ux={},lx={},fx={},hx={},px={},dx={},vx={},gx={},mx=function(e,t,r){var n,i,o,s=ZI(e);if(t){if(i=this.parse(s))throw new uA(i);this.searchParams=null}else{if(void 0!==r&&(n=new mx(r,!0)),i=this.parse(s,null,n))throw new uA(i);(o=aA(new sA)).bindURL(this),this.searchParams=o}};mx.prototype={type:"URL",parse:function(e,t,r){var n,i,o,s,a,c=this,u=t||KA,l=0,f="",h=!1,p=!1,d=!1;for(e=ZI(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=bA(e,DA,""),e=bA(e,MA,"$1")),e=bA(e,UA,""),n=YI(e);l<=n.length;){switch(i=n[l],u){case KA:if(!i||!dA(TA,i)){if(t)return IA;u=QA;continue}f+=OA(i),u=JA;break;case JA:if(i&&(dA(jA,i)||"+"===i||"-"===i||"."===i))f+=OA(i);else{if(":"!==i){if(t)return IA;f="",u=QA,l=0;continue}if(t&&(c.isSpecial()!==XI(zA,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&zA[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?u=ux:c.isSpecial()&&r&&r.scheme===c.scheme?u=ZA:c.isSpecial()?u=nx:"/"===n[l+1]?(u=ex,l++):(c.cannotBeABaseURL=!0,yA(c.path,""),u=dx)}break;case QA:if(!r||r.cannotBeABaseURL&&"#"!==i)return IA;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=KI(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=gx;break}u="file"===r.scheme?ux:tx;continue;case ZA:if("/"!==i||"/"!==n[l+1]){u=tx;continue}u=ix,l++;break;case ex:if("/"===i){u=ox;break}u=px;continue;case tx:if(c.scheme=r.scheme,i===DI)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())u=rx;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.query="",u=vx;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.path.length--,u=px;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=KI(r.path),c.query=r.query,c.fragment="",u=gx}break;case rx:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=px;continue}u=ox}else u=ix;break;case nx:if(u=ix,"/"!==i||"/"!==pA(f,l+1))continue;l++;break;case ix:if("/"!==i&&"\\"!==i){u=ox;continue}break;case ox:if("@"===i){h&&(f="%40"+f),h=!0,o=YI(f);for(var v=0;v65535)return xA;c.port=c.isSpecial()&&y===zA[c.scheme]?null:y,f=""}if(t)return;u=hx;continue}return xA}f+=i;break;case ux:if(c.scheme="file","/"===i||"\\"===i)u=lx;else{if(!r||"file"!==r.scheme){u=px;continue}switch(i){case DI:c.host=r.host,c.path=KI(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=KI(r.path),c.query="",u=vx;break;case"#":c.host=r.host,c.path=KI(r.path),c.query=r.query,c.fragment="",u=gx;break;default:VA(vA(KI(n,l),""))||(c.host=r.host,c.path=KI(r.path),c.shortenPath()),u=px;continue}}break;case lx:if("/"===i||"\\"===i){u=fx;break}r&&"file"===r.scheme&&!VA(vA(KI(n,l),""))&&(XA(r.path[0],!0)?yA(c.path,r.path[0]):c.host=r.host),u=px;continue;case fx:if(i===DI||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&XA(f))u=px;else if(""===f){if(c.host="",t)return;u=hx}else{if(s=c.parseHost(f))return s;if("localhost"===c.host&&(c.host=""),t)return;f="",u=hx}continue}f+=i;break;case hx:if(c.isSpecial()){if(u=px,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==DI&&(u=px,"/"!==i))continue}else c.fragment="",u=gx;else c.query="",u=vx;break;case px:if(i===DI||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(a=OA(a=f))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||yA(c.path,"")):YA(f)?"/"===i||"\\"===i&&c.isSpecial()||yA(c.path,""):("file"===c.scheme&&!c.path.length&&XA(f)&&(c.host&&(c.host=""),f=pA(f,0)+":"),yA(c.path,f)),f="","file"===c.scheme&&(i===DI||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)EA(c.path);"?"===i?(c.query="",u=vx):"#"===i&&(c.fragment="",u=gx)}else f+=HA(i,qA);break;case dx:"?"===i?(c.query="",u=vx):"#"===i?(c.fragment="",u=gx):i!==DI&&(c.path[0]+=HA(i,BA));break;case vx:t||"#"!==i?i!==DI&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":HA(i,BA)):(c.fragment="",u=gx);break;case gx:i!==DI&&(c.fragment+=HA(i,$A))}l++}},parseHost:function(e){var t,r,n;if("["===pA(e,0)){if("]"!==pA(e,e.length-1))return AA;if(t=function(e){var t,r,n,i,o,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return pA(e,f)};if(":"===h()){if(":"!==pA(e,1))return;f+=2,l=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&dA(_A,h());)t=16*t+lA(h(),16),f++,r++;if("."===h()){if(0===r)return;if(f-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;f++}if(!dA(LA,h()))return;for(;dA(LA,h());){if(o=lA(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(s=u-l,u=7;0!==u&&s>0;)a=c[u],c[u--]=c[l+s-1],c[l+--s]=a;else if(8!==u)return;return c}(SA(e,1,-1)),!t)return AA;this.host=t}else if(this.isSpecial()){if(e=QI(e),dA(CA,e))return AA;if(t=function(e){var t,r,n,i,o,s,a,c=wA(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n1&&"0"===pA(i,0)&&(o=dA(kA,i)?16:8,i=SA(i,8===o?1:2)),""===i)s=0;else{if(!dA(10===o?NA:8===o?PA:_A,i))return e;s=lA(i,o)}yA(r,s)}for(n=0;n=hA(256,5-t))return null}else if(s>255)return null;for(a=mA(r),n=0;n1?arguments[1]:void 0,n=iA(t,new mx(e,!1,r));UI||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},bx=yx.prototype,Ex=function(e,t){return{get:function(){return oA(this)[e]()},set:t&&function(e){return oA(this)[t](e)},configurable:!0,enumerable:!0}};if(UI&&(HI(bx,"href",Ex("serialize","setHref")),HI(bx,"origin",Ex("getOrigin")),HI(bx,"protocol",Ex("getProtocol","setProtocol")),HI(bx,"username",Ex("getUsername","setUsername")),HI(bx,"password",Ex("getPassword","setPassword")),HI(bx,"host",Ex("getHost","setHost")),HI(bx,"hostname",Ex("getHostname","setHostname")),HI(bx,"port",Ex("getPort","setPort")),HI(bx,"pathname",Ex("getPathname","setPathname")),HI(bx,"search",Ex("getSearch","setSearch")),HI(bx,"searchParams",Ex("getSearchParams")),HI(bx,"hash",Ex("getHash","setHash"))),WI(bx,"toJSON",(function(){return oA(this).serialize()}),{enumerable:!0}),WI(bx,"toString",(function(){return oA(this).serialize()}),{enumerable:!0}),cA){var wx=cA.createObjectURL,Sx=cA.revokeObjectURL;wx&&WI(yx,"createObjectURL",$I(wx,cA)),Sx&&WI(yx,"revokeObjectURL",$I(Sx,cA))}eA(yx,"URL"),MI({global:!0,constructor:!0,forced:!GI,sham:!UI},{URL:yx});var Ox=U;ji({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Ox(URL.prototype.toString,this)}});var Rx=An,Ix=J,Ax=uo,xx=Sy,Tx=URLSearchParams,jx=Tx.prototype,Lx=Ix(jx.append),kx=Ix(jx.delete),Px=Ix(jx.forEach),Nx=Ix([].push),_x=new Tx("a=1&a=2&b=3");_x.delete("a",1),_x.delete("b",void 0),_x+""!="a=2"&&Rx(jx,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return kx(this,e);var n=[];Px(this,(function(e,t){Nx(n,{key:t,value:e})})),xx(t,1);for(var i,o=Ax(e),s=Ax(r),a=0,c=0,u=!1,l=n.length;a"PATH"===e.toUpperCase()))||"Path"}Wx&&!("size"in Xx)&&zx(Xx,"size",{get:function(){var e=0;return Vx(this,(function(){e++})),e},configurable:!0,enumerable:!0});const Kx=["env"];function Jx(e={}){let t=e.env,r=void 0===t?l.env:t,n=S(e,Kx);r=Object.assign({},r);const i=Yx({env:r});return n.path=r[i],r[i]=function(e={}){const t=e.cwd,r=void 0===t?l.cwd():t,n=e.path,i=void 0===n?l.env[Yx()]:n,o=e.execPath,s=void 0===o?l.execPath:o;let a;const u=r instanceof URL?f.fileURLToPath(r):r;let h=c.resolve(u);const p=[];for(;a!==h;)p.push(c.join(h,"node_modules/.bin")),a=h,h=c.resolve(h,"..");return p.push(c.resolve(u,s,"..")),[...p,i].join(c.delimiter)}(n),r}var Qx=!_((function(){return Object.isExtensible(Object.preventExtensions({}))})),Zx={exports:{}},eT={},tT=te,rT=pe,nT=xn.f,iT=Gc,oT="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];eT.f=function(e){return oT&&"Window"===tT(e)?function(e){try{return nT(e)}catch(e){return iT(oT)}}(e):nT(rT(e))};var sT=_((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),aT=_,cT=me,uT=te,lT=sT,fT=Object.isExtensible,hT=aT((function(){fT(1)}))||lT?function(e){return!!cT(e)&&((!lT||"ArrayBuffer"!==uT(e))&&(!fT||fT(e)))}:fT,pT=ji,dT=J,vT=$r,gT=me,mT=vt,yT=rr.f,bT=xn,ET=eT,wT=hT,ST=Qx,OT=!1,RT=Et("meta"),IT=0,AT=function(e){yT(e,RT,{value:{objectID:"O"+IT++,weakData:{}}})},xT=Zx.exports={enable:function(){xT.enable=function(){},OT=!0;var e=bT.f,t=dT([].splice),r={};r[RT]=1,e(r).length&&(bT.f=function(r){for(var n=e(r),i=0,o=n.length;i({name:`SIGRT${t+1}`,number:sL+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),sL=34,aL=64,cL=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],uL=()=>{const e=(()=>{const e=aL-sL+1;return Array.from({length:e},oL)})();return[...cL,...e].map(lL)},lL=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{const s=h.constants.signals[e],a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},fL=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}],hL=(()=>{const e=uL();return Object.fromEntries(e.map(fL))})(),pL=(e,t)=>{const r=dL(e,t);if(void 0===r)return{};return{[e]:{name:r.name,number:e,description:r.description,supported:r.supported,action:r.action,forced:r.forced,standard:r.standard}}},dL=(e,t)=>{const r=t.find((({name:t})=>h.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))};(()=>{const e=uL(),t=aL+1,r=Array.from({length:t},((t,r)=>pL(r,e)));Object.assign({},...r)})();const vL=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:f,parsed:{options:{timeout:h,cwd:p=l.cwd()}}})=>{o=null===o?void 0:o;const d=void 0===(i=null===i?void 0:i)?void 0:hL[i].description,v=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed")({timedOut:c,timeout:h,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:u}),g=`Command ${v}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),y=m?`${g}\n${n.message}`:g,b=[y,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=b):n=new Error(b),n.shortMessage=y,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,n.cwd=p,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=u,n.killed=f&&!c,n};var gL=Hn.includes,mL=pa;ji({target:"Array",proto:!0,forced:_((function(){return!Array(1).includes()}))},{includes:function(e){return gL(this,e,arguments.length>1?arguments[1]:void 0)}}),mL("includes");var yL=ji,bL=cS,EL=le,wL=uo,SL=lS,OL=J("".indexOf);yL({target:"String",proto:!0,forced:!SL("includes")},{includes:function(e){return!!~OL(wL(EL(this)),wL(bL(e)),arguments.length>1?arguments[1]:void 0)}});const RL=["stdin","stdout","stderr"],IL=e=>{if(!e)return;const t=e.stdio;if(void 0===t)return RL.map((t=>e[t]));if((e=>RL.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${RL.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=Math.max(t.length,RL.length);return Array.from({length:r},((e,r)=>t[r]))};var AL=ji,xL=Tb,TL=_,jL=Ee,LL=ve,kL=Od,PL=tS,NL=An,_L=xL&&xL.prototype;if(AL({target:"Promise",proto:!0,real:!0,forced:!!xL&&TL((function(){_L.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=kL(this,jL("Promise")),r=LL(e);return this.then(r?function(r){return PL(t,e()).then((function(){return r}))}:e,r?function(r){return PL(t,e()).then((function(){throw r}))}:e)}}),LL(xL)){var CL=jL("Promise").prototype.finally;_L.finally!==CL&&NL(_L,"finally",CL,{unsafe:!0})}var FL=P;ji({global:!0,forced:FL.globalThis!==FL},{globalThis:FL}),WT("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),lj);const DL=[];DL.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&DL.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&DL.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const ML=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,UL=Symbol.for("signal-exit emitter"),GL=globalThis,BL=Object.defineProperty.bind(Object);class $L{constructor(){if(w(this,"emitted",{afterExit:!1,exit:!1}),w(this,"listeners",{afterExit:[],exit:[]}),w(this,"count",0),w(this,"id",Math.random()),GL[UL])return GL[UL];BL(GL,UL,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(var i,o=A(this.listeners[e]);!(i=o()).done;){n=!0===(0,i.value)(t,r)||n}return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class qL{}var WL=new WeakMap,HL=new WeakMap,zL=new WeakMap,XL=new WeakMap,VL=new WeakMap,YL=new WeakMap,KL=new WeakMap,JL=new WeakSet;function QL(e){return ML(m(zL,this))?(m(zL,this).exitCode=e||0,m(HL,this).emit("exit",m(zL,this).exitCode,null),m(VL,this).call(m(zL,this),m(zL,this).exitCode)):0}function ZL(e,...t){const r=m(XL,this);if("exit"===e&&ML(m(zL,this))){"number"==typeof t[0]&&(m(zL,this).exitCode=t[0]);const n=r.call(m(zL,this),e,...t);return m(HL,this).emit("exit",m(zL,this).exitCode,null),n}return r.call(m(zL,this),e,...t)}const ek=globalThis.process;ML(ek)?new class extends qL{constructor(e){var t,r;super(),x(t=this,r=JL),r.add(t),T(this,WL,"win32"===ek.platform?"SIGINT":"SIGHUP"),T(this,HL,new $L),T(this,zL,void 0),T(this,XL,void 0),T(this,VL,void 0),T(this,YL,{}),T(this,KL,!1),y(zL,this,e),y(YL,this,{});for(var n,i=A(DL);!(n=i()).done;){const t=n.value;m(YL,this)[t]=()=>{const r=m(zL,this).listeners(t);let n=m(HL,this).count;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();const r=m(HL,this).emit("exit",null,t),n="SIGHUP"===t?m(WL,this):t;r||e.kill(e.pid,n)}}}y(VL,this,e.reallyExit),y(XL,this,e.emit)}onExit(e,t){if(!ML(m(zL,this)))return()=>{};!1===m(KL,this)&&this.load();const r=null!=t&&t.alwaysLast?"afterExit":"exit";return m(HL,this).on(r,e),()=>{m(HL,this).removeListener(r,e),0===m(HL,this).listeners.exit.length&&0===m(HL,this).listeners.afterExit.length&&this.unload()}}load(){if(!m(KL,this)){y(KL,this,!0),m(HL,this).count+=1;for(var e,t=A(DL);!(e=t()).done;){const t=e.value;try{const e=m(YL,this)[t];e&&m(zL,this).on(t,e)}catch(e){}}m(zL,this).emit=(e,...t)=>g(JL,this,ZL).call(this,e,...t),m(zL,this).reallyExit=e=>g(JL,this,QL).call(this,e)}}unload(){m(KL,this)&&(y(KL,this,!1),DL.forEach((e=>{const t=m(YL,this)[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{m(zL,this).removeListener(e,t)}catch(e){}})),m(zL,this).emit=m(XL,this),m(zL,this).reallyExit=m(VL,this),m(HL,this).count-=1)}}(ek):new class extends qL{onExit(){return()=>{}}load(){}unload(){}};var tk=P,rk={},nk=jt;rk.f=nk;var ik=tk,ok=vt,sk=rk,ak=rr.f,ck=function(e){var t=ik.Symbol||(ik.Symbol={});ok(t,e)||ak(t,e,{value:sk.f(e)})};ck("asyncIterator");var uk=te,lk=TypeError,fk=Di(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==uk(e))throw new lk("ArrayBuffer expected");return e.byteLength},hk=fk,pk=J(ArrayBuffer.prototype.slice),dk=function(e){if(0!==hk(e))return!1;try{return pk(e,0,0),!1}catch(e){return!0}},vk=C,gk=Ju,mk=dk,yk=ArrayBuffer.prototype;vk&&!("detached"in yk)&&gk(yk,"detached",{configurable:!0,get:function(){return mk(this)}});var bk,Ek,wk,Sk,Ok=kn,Rk=Mn,Ik=RangeError,Ak=function(e){if(void 0===e)return 0;var t=Ok(e),r=Rk(t);if(t!==r)throw new Ik("Wrong length or index");return r},xk=my,Tk=_,jk=je,Lk=Lb,kk=jb,Pk=my,Nk=P.structuredClone,_k=!!Nk&&!Tk((function(){if(kk&&jk>92||Pk&&jk>94||Lk&&jk>97)return!1;var e=new ArrayBuffer(8),t=Nk(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),Ck=P,Fk=function(e){try{if(xk)return Function('return require("'+e+'")')()}catch(e){}},Dk=_k,Mk=Ck.structuredClone,Uk=Ck.ArrayBuffer,Gk=Ck.MessageChannel,Bk=!1;if(Dk)Bk=function(e){Mk(e,{transfer:[e]})};else if(Uk)try{Gk||(bk=Fk("worker_threads"))&&(Gk=bk.MessageChannel),Gk&&(Ek=new Gk,wk=new Uk(2),Sk=function(e){Ek.port1.postMessage(null,[e])},2===wk.byteLength&&(Sk(wk),0===wk.byteLength&&(Bk=Sk)))}catch(e){}var $k=P,qk=J,Wk=Di,Hk=Ak,zk=dk,Xk=fk,Vk=Bk,Yk=_k,Kk=$k.structuredClone,Jk=$k.ArrayBuffer,Qk=$k.DataView,Zk=$k.TypeError,eP=Math.min,tP=Jk.prototype,rP=Qk.prototype,nP=qk(tP.slice),iP=Wk(tP,"resizable","get"),oP=Wk(tP,"maxByteLength","get"),sP=qk(rP.getInt8),aP=qk(rP.setInt8),cP=(Yk||Vk)&&function(e,t,r){var n,i=Xk(e),o=void 0===t?i:Hk(t),s=!iP||!iP(e);if(zk(e))throw new Zk("ArrayBuffer is detached");if(Yk&&(e=Kk(e,{transfer:[e]}),i===o&&(r||s)))return e;if(i>=o&&(!r||s))n=nP(e,0,o);else{var a=r&&!s&&oP?{maxByteLength:oP(e)}:void 0;n=new Jk(o,a);for(var c=new Qk(e),u=new Qk(n),l=eP(o,i),f=0;fr||c!=c?s*(1/0):s*c},lN=Math.fround||function(e){return uN(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},fN=Array,hN=Math.abs,pN=Math.pow,dN=Math.floor,vN=Math.log,gN=Math.LN2,mN={pack:function(e,t,r){var n,i,o,s=fN(r),a=8*r-t-1,c=(1<>1,l=23===t?pN(2,-24)-pN(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=hN(e))!=e||e===1/0?(i=e!=e?1:0,n=c):(n=dN(vN(e)/gN),e*(o=pN(2,-n))<1&&(n--,o*=2),(e+=n+u>=1?l/o:l*pN(2,1-u))*o>=2&&(n++,o/=2),n+u>=c?(i=0,n=c):n+u>=1?(i=(e*o-1)*pN(2,t),n+=u):(i=e*pN(2,u-1)*pN(2,t),n=0));t>=8;)s[h++]=255&i,i/=256,t-=8;for(n=n<0;)s[h++]=255&n,n/=256,a-=8;return s[--h]|=128*f,s},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<>1,a=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;a>0;)l=256*l+e[c--],a-=8;for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;)r=256*r+e[c--],a-=8;if(0===l)l=1-s;else{if(l===o)return r?NaN:u?-1/0:1/0;r+=pN(2,t),l-=s}return(u?-1:1)*r*pN(2,l-t)}},yN=ht,bN=Cn,EN=Gn,wN=function(e){for(var t=yN(this),r=EN(t),n=arguments.length,i=bN(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,s=void 0===o?r:bN(o,r);s>i;)t[i++]=e;return t},SN=P,ON=J,RN=C,IN=vP,AN=wr,xN=Ju,TN=SR,jN=_,LN=Ey,kN=kn,PN=Mn,NN=Ak,_N=lN,CN=mN,FN=Oa,DN=zi,MN=wN,UN=Gc,GN=Qi,BN=hi,$N=Fa,qN=rn,WN=Tr.PROPER,HN=Tr.CONFIGURABLE,zN="ArrayBuffer",XN="DataView",VN="prototype",YN="Wrong index",KN=qN.getterFor(zN),JN=qN.getterFor(XN),QN=qN.set,ZN=SN[zN],e_=ZN,t_=e_&&e_[VN],r_=SN[XN],n_=r_&&r_[VN],i_=Object.prototype,o_=SN.Array,s_=SN.RangeError,a_=ON(MN),c_=ON([].reverse),u_=CN.pack,l_=CN.unpack,f_=function(e){return[255&e]},h_=function(e){return[255&e,e>>8&255]},p_=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},d_=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},v_=function(e){return u_(_N(e),23,4)},g_=function(e){return u_(e,52,8)},m_=function(e,t,r){xN(e[VN],t,{configurable:!0,get:function(){return r(this)[t]}})},y_=function(e,t,r,n){var i=JN(e),o=NN(r),s=!!n;if(o+t>i.byteLength)throw new s_(YN);var a=i.bytes,c=o+i.byteOffset,u=UN(a,c,c+t);return s?u:c_(u)},b_=function(e,t,r,n,i,o){var s=JN(e),a=NN(r),c=n(+i),u=!!o;if(a+t>s.byteLength)throw new s_(YN);for(var l=s.bytes,f=a+s.byteOffset,h=0;h>24)},setUint8:function(e,t){S_(this,e,t<<24>>24)}},{unsafe:!0})}else t_=(e_=function(e){LN(this,t_);var t=NN(e);QN(this,{type:zN,bytes:a_(o_(t),0),byteLength:t}),RN||(this.byteLength=t,this.detached=!1)})[VN],r_=function(e,t,r){LN(this,n_),LN(e,t_);var n=KN(e),i=n.byteLength,o=kN(t);if(o<0||o>i)throw new s_("Wrong offset");if(o+(r=void 0===r?i-o:PN(r))>i)throw new s_("Wrong length");QN(this,{type:XN,buffer:e,byteLength:r,byteOffset:o,bytes:n.bytes}),RN||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},n_=r_[VN],RN&&(m_(e_,"byteLength",KN),m_(r_,"buffer",JN),m_(r_,"byteLength",JN),m_(r_,"byteOffset",JN)),TN(n_,{getInt8:function(e){return y_(this,1,e)[0]<<24>>24},getUint8:function(e){return y_(this,1,e)[0]},getInt16:function(e){var t=y_(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=y_(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return d_(y_(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return d_(y_(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return l_(y_(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return l_(y_(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){b_(this,1,e,f_,t)},setUint8:function(e,t){b_(this,1,e,f_,t)},setInt16:function(e,t){b_(this,2,e,h_,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){b_(this,2,e,h_,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){b_(this,4,e,p_,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){b_(this,4,e,p_,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){b_(this,4,e,v_,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){b_(this,8,e,g_,t,arguments.length>2&&arguments[2])}});$N(e_,zN),$N(r_,XN);var O_={ArrayBuffer:e_,DataView:r_},R_=me,I_=Math.floor,A_=Number.isInteger||function(e){return!R_(e)&&isFinite(e)&&I_(e)===e},x_=kn,T_=RangeError,j_=function(e){var t=x_(e);if(t<0)throw new T_("The argument can't be less than 0");return t},L_=RangeError,k_=function(e,t){var r=j_(e);if(r%t)throw new L_("Wrong offset");return r},P_=Math.round,N_=so,__=function(e){var t=N_(e);return"BigInt64Array"===t||"BigUint64Array"===t},C_=Dt,F_=TypeError,D_=function(e){var t=C_(e,"number");if("number"==typeof t)throw new F_("Can't convert number to bigint");return BigInt(t)},M_=Jo,U_=U,G_=yd,B_=ht,$_=Gn,q_=aw,W_=ew,H_=VE,z_=__,X_=JP.aTypedArrayConstructor,V_=D_,Y_=Gn,K_=function(e,t,r){for(var n=0,i=arguments.length>2?r:Y_(t),o=new e(i);i>n;)o[n]=t[n++];return o},J_=ji,Q_=P,Z_=U,eC=C,tC=iN,rC=JP,nC=O_,iC=Ey,oC=z,sC=wr,aC=A_,cC=Mn,uC=Ak,lC=k_,fC=function(e){var t=P_(e);return t<0?0:t>255?255:255&t},hC=Gt,pC=vt,dC=so,vC=me,gC=Ue,mC=ia,yC=we,bC=zi,EC=xn.f,wC=function(e){var t,r,n,i,o,s,a,c,u=G_(this),l=B_(e),f=arguments.length,h=f>1?arguments[1]:void 0,p=void 0!==h,d=W_(l);if(d&&!H_(d))for(c=(a=q_(l,d)).next,l=[];!(s=U_(c,a)).done;)l.push(s.value);for(p&&f>2&&(h=M_(h,arguments[2])),r=$_(l),n=new(X_(u))(r),i=z_(n),t=0;r>t;t++)o=p?h(l[t],t):l[t],n[t]=i?V_(o):+o;return n},SC=xs.forEach,OC=rl,RC=Ju,IC=rr,AC=N,xC=K_,TC=Qi,jC=rn.get,LC=rn.set,kC=rn.enforce,PC=IC.f,NC=AC.f,_C=Q_.RangeError,CC=nC.ArrayBuffer,FC=CC.prototype,DC=nC.DataView,MC=rC.NATIVE_ARRAY_BUFFER_VIEWS,UC=rC.TYPED_ARRAY_TAG,GC=rC.TypedArray,BC=rC.TypedArrayPrototype,$C=rC.isTypedArray,qC="BYTES_PER_ELEMENT",WC="Wrong length",HC=function(e,t){RC(e,t,{configurable:!0,get:function(){return jC(this)[t]}})},zC=function(e){var t;return yC(FC,e)||"ArrayBuffer"===(t=dC(e))||"SharedArrayBuffer"===t},XC=function(e,t){return $C(e)&&!gC(t)&&t in e&&aC(+t)&&t>=0},VC=function(e,t){return t=hC(t),XC(e,t)?oC(2,e[t]):NC(e,t)},YC=function(e,t,r){return t=hC(t),!(XC(e,t)&&vC(r)&&pC(r,"value"))||pC(r,"get")||pC(r,"set")||r.configurable||pC(r,"writable")&&!r.writable||pC(r,"enumerable")&&!r.enumerable?PC(e,t,r):(e[t]=r.value,e)};eC?(MC||(AC.f=VC,IC.f=YC,HC(BC,"buffer"),HC(BC,"byteOffset"),HC(BC,"byteLength"),HC(BC,"length")),J_({target:"Object",stat:!0,forced:!MC},{getOwnPropertyDescriptor:VC,defineProperty:YC}),dP.exports=function(e,t,r){var n=e.match(/\d+/)[0]/8,i=e+(r?"Clamped":"")+"Array",o="get"+e,s="set"+e,a=Q_[i],c=a,u=c&&c.prototype,l={},f=function(e,t){PC(e,t,{get:function(){return function(e,t){var r=jC(e);return r.view[o](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var o=jC(e);o.view[s](t*n+o.byteOffset,r?fC(i):i,!0)}(this,t,e)},enumerable:!0})};MC?tC&&(c=t((function(e,t,r,i){return iC(e,u),TC(vC(t)?zC(t)?void 0!==i?new a(t,lC(r,n),i):void 0!==r?new a(t,lC(r,n)):new a(t):$C(t)?xC(c,t):Z_(wC,c,t):new a(uC(t)),e,c)})),bC&&bC(c,GC),SC(EC(a),(function(e){e in c||sC(c,e,a[e])})),c.prototype=u):(c=t((function(e,t,r,i){iC(e,u);var o,s,a,l=0,h=0;if(vC(t)){if(!zC(t))return $C(t)?xC(c,t):Z_(wC,c,t);o=t,h=lC(r,n);var p=t.byteLength;if(void 0===i){if(p%n)throw new _C(WC);if((s=p-h)<0)throw new _C(WC)}else if((s=cC(i)*n)+h>p)throw new _C(WC);a=s/n}else a=uC(t),o=new CC(s=a*n);for(LC(e,{buffer:o,byteOffset:h,byteLength:s,length:a,view:new DC(o)});l=0?n:r+n;return i<0||i>=r?void 0:t[i]}));var ZC=wN,eF=D_,tF=so,rF=U,nF=_,iF=JP.aTypedArray,oF=JP.exportTypedArrayMethod,sF=J("".slice);oF("fill",(function(e){var t=arguments.length;iF(this);var r="Big"===sF(tF(this),0,3)?eF(e):+e;return rF(ZC,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),nF((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var aF=Jo,cF=se,uF=ht,lF=Gn,fF=function(e){var t=1===e;return function(r,n,i){for(var o,s=uF(r),a=cF(s),c=lF(a),u=aF(n,i);c-- >0;)if(u(o=a[c],c,s))switch(e){case 0:return o;case 1:return c}return t?-1:void 0}},hF={findLast:fF(0),findLastIndex:fF(1)},pF=hF.findLast,dF=JP.aTypedArray;(0,JP.exportTypedArrayMethod)("findLast",(function(e){return pF(dF(this),e,arguments.length>1?arguments[1]:void 0)}));var vF=hF.findLastIndex,gF=JP.aTypedArray;(0,JP.exportTypedArrayMethod)("findLastIndex",(function(e){return vF(gF(this),e,arguments.length>1?arguments[1]:void 0)}));var mF=P,yF=_,bF=J,EF=JP,wF=Sc,SF=jt("iterator"),OF=mF.Uint8Array,RF=bF(wF.values),IF=bF(wF.keys),AF=bF(wF.entries),xF=EF.aTypedArray,TF=EF.exportTypedArrayMethod,jF=OF&&OF.prototype,LF=!yF((function(){jF[SF].call([1])})),kF=!!jF&&jF.values&&jF[SF]===jF.values&&"values"===jF.values.name,PF=function(){return RF(xF(this))};TF("entries",(function(){return AF(xF(this))}),LF),TF("keys",(function(){return IF(xF(this))}),LF),TF("values",PF,LF||!kF,{name:"values"}),TF(SF,PF,LF||!kF,{name:"values"});var NF=P,_F=U,CF=JP,FF=Gn,DF=k_,MF=ht,UF=_,GF=NF.RangeError,BF=NF.Int8Array,$F=BF&&BF.prototype,qF=$F&&$F.set,WF=CF.aTypedArray,HF=CF.exportTypedArrayMethod,zF=!UF((function(){var e=new Uint8ClampedArray(2);return _F(qF,e,{length:1,0:3},1),3!==e[1]})),XF=zF&&CF.NATIVE_ARRAY_BUFFER_VIEWS&&UF((function(){var e=new BF(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));HF("set",(function(e){WF(this);var t=DF(arguments.length>1?arguments[1]:void 0,1),r=MF(e);if(zF)return _F(qF,this,r,t);var n=this.length,i=FF(r),o=0;if(i+t>n)throw new GF("Wrong length");for(;o0&&1/r<0?1:-1:t>r}}(e))}),!aD||sD);var cD=Gn,uD=function(e,t){for(var r=cD(e),n=new t(r),i=0;i=i||s<0)throw new TD("Incorrect index");for(var a=new t(i),c=0;c"string"!=typeof t?e:((e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")})(e),p.readFileSync(t)),UD=e=>{const t=MD(e);if(null!==(r=t)&&"object"==typeof r&&"function"==typeof r.pipe)throw new TypeError("The `input` option cannot be a stream in sync mode");var r;return t},GD=(BD=function*(){},function(){var e=this,t=arguments;return new Promise((function(r,n){var i=BD.apply(e,t);function o(e){E(i,r,n,o,s,"next",e)}function s(e){E(i,r,n,o,s,"throw",e)}o(void 0)}))})().constructor.prototype;var BD;["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(GD,e)]));var $D=ht,qD=Gn,WD=kn,HD=pa;ji({target:"Array",proto:!0},{at:function(e){var t=$D(this),r=qD(t),n=WD(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:t[i]}}),HD("at");var zD=ji,XD=le,VD=kn,YD=uo,KD=_,JD=J("".charAt);zD({target:"String",proto:!0,forced:KD((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=YD(XD(this)),r=t.length,n=VD(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:JD(t,i)}});var QD=ji,ZD=Xo,eM=N.f,tM=Mn,rM=uo,nM=cS,iM=le,oM=lS,sM=ZD("".slice),aM=Math.min,cM=oM("endsWith"),uM=!cM&&!!function(){var e=eM(String.prototype,"endsWith");return e&&!e.writable}();QD({target:"String",proto:!0,forced:!uM&&!cM},{endsWith:function(e){var t=rM(iM(this));nM(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:aM(tM(r),n),o=rM(e);return sM(t,i-o.length,i)===o}});const lM=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],fM=/^[\w.-]+$/,hM=(e,t)=>lM(e,t).join(" "),pM=(e,t)=>lM(e,t).map((e=>(e=>"string"!=typeof e||fM.test(e)?e:`"${e.replaceAll('"','\\"')}"`)(e))).join(" ");var dM=kn,vM=uo,gM=le,mM=RangeError,yM=J,bM=Mn,EM=uo,wM=le,SM=yM((function(e){var t=vM(gM(this)),r="",n=dM(e);if(n<0||n===1/0)throw new mM("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),OM=yM("".slice),RM=Math.ceil,IM=function(e){return function(t,r,n){var i,o,s=EM(wM(t)),a=bM(r),c=s.length,u=void 0===n?" ":EM(n);return a<=c||""===u?s:((o=SM(u,RM((i=a-c)/u.length))).length>i&&(o=OM(o,0,i)),e?s+o:o+s)}},AM={start:IM(!1),end:IM(!0)},xM=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Se),TM=AM.start;ji({target:"String",proto:!0,forced:xM},{padStart:function(e){return TM(this,e,arguments.length>1?arguments[1]:void 0)}});const jM=v.debuglog("execa").enabled,LM=(e,t)=>String(e).padStart(t,"0"),kM=(e,{verbose:t})=>{t&&l.stderr.write(`[${(()=>{const e=new Date;return`${LM(e.getHours(),2)}:${LM(e.getMinutes(),2)}:${LM(e.getSeconds(),2)}.${LM(e.getMilliseconds(),3)}`})()}] ${e}\n`)},PM=(e,t,r={})=>{const n=mO._parse(e,t,r);return e=n.command,t=n.args,r=n.options,(r=Object.assign({maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||l.cwd(),execPath:l.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:jM},r)).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{const o=t?Object.assign(Object.assign({},l.env),e):e;return r?Jx({env:o,cwd:n,execPath:i}):o})(r),r.stdio=IL(r),"win32"===l.platform&&"cmd"===c.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},NM=(e,t,r)=>"string"==typeof t||a.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}(t):t:void 0===r?void 0:"";const _M=global,CM=new Proxy(global.target,{set:function(e,t,r){return Reflect.set(...arguments)},get:function(e,t,r){return UM(`make ${t}`),Reflect.get(...arguments)}}),FM=["packages","codemods","eslint"],DM=_M.which("yarn").stdout,MM=process.execPath;function UM(...e){console.log.apply(console,e)}function GM(e,t,n,i=!0){UM(`${e.replaceAll(DM,"yarn").replaceAll(MM,"node")} ${t.join(" ")}`);try{return function(e,t,r){const n=PM(e,t,r),i=hM(e,t),o=pM(e,t);kM(o,n.options);const s=UD(n.options);let a;try{a=u.spawnSync(n.file,n.args,Object.assign(Object.assign({},n.options),{},{input:s}))}catch(e){throw vL({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const c=NM(n.options,a.stdout,a.error),l=NM(n.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=vL({stdout:c,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:n,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!n.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:c,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}(e,t,{stdio:i?"inherit":void 0,cwd:n&&r.resolve(n),env:process.env}).stdout}catch(r){throw i&&0!==r.exitCode&&(console.error(new Error(`\ncommand: ${e} ${t.join(" ")}\ncode: ${r.exitCode}`)),process.exit(r.exitCode)),r}}function BM(e,t,r){return GM(DM,e,t,r)}function $M(e,t,r){return GM(MM,e,t,r)}function qM(e,t){const r=process.env;process.env=Object.assign(Object.assign({},r),t),e(),process.env=r}function WM(...e){const r={BABEL_ENV:"test"},n=["--format","codeframe",...e.filter(Boolean)],i=t.readdirSync("packages").filter((e=>t.existsSync(`packages/${e}/package.json`))),o=[];for(let e=0,t=40;eBM(["eslint","packages",...s,...n])),r);else for(var a,c=A(o);!(a=c()).done;){const e=a.value;qM((()=>BM(["eslint",...e,...n])),r)}}function HM(e,r,n){const i="./build/"+e.toLowerCase();_M.rm("-rf",i),_M.mkdir("-p","build"),GM("git",["clone","--filter=blob:none","--sparse","--single-branch","--shallow-since='2 years ago'",r,i]),GM("git",["sparse-checkout","set",...n],i),GM("git",["checkout","-q",function(e){const r=t.readFileSync("./Makefile","utf8").match(new RegExp(`${e}_COMMIT = (\\w{40})`))[1];if(!r)throw new Error(`Could not find ${e}_COMMIT in Makefile`);return r}(e)],i)}function zM(){const e=JSON.parse(t.readFileSync("./package.json","utf8")).version_babel8;return FM.forEach((r=>{t.readdirSync(r).forEach((n=>{const i=`${r}/${n}/package.json`;if(t.existsSync(i)){var o,s,a;const r=JSON.parse(t.readFileSync(i,"utf8"));null!=(o=r.peerDependencies)&&o["@babel/core"]&&(r.peerDependencies["@babel/core"]=`^${e}`);const c=null==(s=r.conditions)?void 0:s.BABEL_8_BREAKING[0];null!=c&&null!=(a=c.peerDependencies)&&a["@babel/core"]&&(c.peerDependencies["@babel/core"]=`^${e}`),"babel-eslint-plugin"===n&&(c.peerDependencies["@babel/eslint-parser"]=`^${e}`),t.writeFileSync(i,JSON.stringify(r,null,2)+"\n")}}))})),qM((()=>BM(["install"])),{YARN_ENABLE_IMMUTABLE_INSTALLS:!1}),e}_M.config.verbose=!0,CM["clean-all"]=function(){_M.rm("-rf",["package-lock.json",".changelog"]),FM.forEach((e=>{_M.rm("-rf",`${e}/*/test/tmp`),_M.rm("-rf",`${e}/*/package-lock.json`)})),CM.clean(),CM["clean-lib"](),CM["clean-node-modules"]()},CM["clean-node-modules"]=function(){_M.rm("-rf","node_modules"),FM.forEach((e=>{_M.rm("-rf",`${e}/*/node_modules`)}))},CM.clean=function(){CM["test-clean"](),_M.rm("-rf",[".npmrc","coverage","packages/*/npm-debug*","node_modules/.cache"])},CM["test-clean"]=function(){FM.forEach((e=>{_M.rm("-rf",`${e}/*/test/tmp`),_M.rm("-rf",`${e}/*/test-fixtures.json`)}))},CM["clean-lib"]=function(){_M.rm("-rf",FM.map((e=>`${e}/*/lib`))),$M(["scripts/set-module-type.js"])},CM["clean-runtime-helpers"]=function(){_M.rm("-rf",["packages/babel-runtime/helpers/**/*.js","packages/babel-runtime-corejs2/helpers/**/*.js","packages/babel-runtime-corejs3/helpers/**/*.js","packages/babel-runtime/helpers/**/*.mjs","packages/babel-runtime-corejs2/helpers/**/*.mjs","packages/babel-runtime-corejs3/helpers/**/*.mjs","packages/babel-runtime-corejs2/core-js","packages/babel-runtime-corejs3/core-js","packages/babel-runtime-corejs3/core-js-stable"])},CM["use-cjs"]=function(){$M(["scripts/set-module-type.js","commonjs"]),CM.bootstrap()},CM["use-esm"]=function(){$M(["scripts/set-module-type.js","module"]),CM.bootstrap()},CM["bootstrap-only"]=function(){CM["clean-all"](),BM(["install"])},CM.bootstrap=function(){CM["bootstrap-only"](),CM["generate-tsconfig"](),CM.build()},CM.build=function(){CM["build-no-bundle"](),"true"!==process.env.BABEL_COVERAGE&&CM["build-standalone"]()},CM["build-standalone"]=function(){BM(["gulp","build-babel-standalone"])},CM["build-bundle"]=function(){CM.clean(),CM["clean-lib"](),$M(["scripts/set-module-type.js"]),BM(["gulp","build"]),CM["build-dist"]()},CM["build-no-bundle"]=function(){CM.clean(),CM["clean-lib"](),$M(["scripts/set-module-type.js"]),qM((()=>{BM(["gulp","build-dev"])}),{BABEL_ENV:"development"}),CM["build-dist"]()},CM["build-flow-typings"]=function(){t.writeFileSync("packages/babel-types/lib/index.js.flow",$M(["packages/babel-types/scripts/generators/flow.js"],void 0,!1))},CM["build-dist"]=function(){CM["build-plugin-transform-runtime-dist"]()},CM["build-plugin-transform-runtime-dist"]=function(){$M(["scripts/build-dist.js"],"packages/babel-plugin-transform-runtime")},CM.prepublish=function(){process.env.BABEL_8_BREAKING?$M(["scripts/set-module-type.js","module"]):$M(["scripts/set-module-type.js","commonjs"]),CM["bootstrap-only"](),qM((()=>{CM["prepublish-build"](),CM.test()}),{IS_PUBLISH:"true"}),$M(["scripts/set-module-type.js","clean"])},CM["prepublish-build"]=function(){CM["clean-lib"](),CM["clean-runtime-helpers"](),qM((()=>{CM["build-bundle"]()}),{NODE_ENV:"production",BABEL_ENV:"production",STRIP_BABEL_8_FLAG:"true"}),qM((()=>{CM["prepublish-build-standalone"](),CM["clone-license"](),CM["prepublish-prepare-dts"](),CM["build-flow-typings"]()}),{NODE_ENV:"production",STRIP_BABEL_8_FLAG:"true"})},CM["prepublish-build-standalone"]=function(){qM((()=>{CM["build-standalone"]()}),{BABEL_ENV:"production",IS_PUBLISH:"true"})},CM["prepublish-prepare-dts"]=function(){CM["clean-ts"](),CM.tscheck(),CM["prepublish-prepare-dts-no-clean"]()},CM["prepublish-prepare-dts-no-clean"]=function(){BM(["gulp","bundle-dts"]),CM["build-typescript-legacy-typings"]()},CM.tscheck=function(){CM["generate-tsconfig"](),$M(["scripts/parallel-tsc/tsc.js","."])},CM["clean-ts"]=function(){_M.rm("-rf","tsconfig.tsbuildinfo"),_M.rm("-rf","*/*/tsconfig.tsbuildinfo"),_M.rm("-rf","dts")},CM["generate-tsconfig"]=function(){$M(["scripts/generators/tsconfig.js"]),$M(["scripts/generators/archived-libs-typings.js"])},CM["generate-type-helpers"]=function(){BM(["gulp","generate-type-helpers"])},CM["build-typescript-legacy-typings"]=function(){t.writeFileSync("packages/babel-types/lib/index-legacy.d.ts",$M(["packages/babel-types/scripts/generators/typescript-legacy.js"],void 0,!1))},CM["clone-license"]=function(){$M(["scripts/clone-license.js"])},CM.lint=function(){qM((()=>CM.tscheck()),{TSCHECK_SILENT:"true"}),WM()},CM["lint-ci"]=function(){CM.tscheck(),WM(),CM["prepublish-prepare-dts-no-clean"]()},CM.fix=function(){CM["fix-json"](),CM["fix-js"]()},CM["fix-js"]=function(){qM((()=>CM.tscheck()),{TSCHECK_SILENT:"true"}),WM("--fix")},CM["fix-json"]=function(){BM(["prettier",`{${FM.join(",")}}/*/test/fixtures/**/options.json`,"--write","--loglevel","warn"])},CM.watch=function(){CM["build-no-bundle"](),qM((()=>{BM(["gulp","watch"])}),{BABEL_ENV:"development",WATCH_SKIP_BUILD:"true"})},CM.test=function(){CM.lint(),CM["test-only"]()},CM["test-only"]=function(e=[]){BM(["jest",...e])},CM["test-cov"]=function(){CM.build(),qM((()=>{BM(["c8","jest"])}),{BABEL_ENV:"test",BABEL_COVERAGE:"true"})},CM["bootstrap-test262"]=function(){HM("TEST262","https://github.com/tc39/test262.git",["test","harness"])},CM["bootstrap-typescript"]=function(){HM("TYPESCRIPT","https://github.com/microsoft/TypeScript.git",["tests"])},CM["bootstrap-flow"]=function(){HM("FLOW","https://github.com/facebook/flow.git",["src/parser/test/flow"])},CM["new-version-checklist"]=function(){},CM["new-version"]=function(){CM["new-version-checklist"](),GM("git",["pull","--rebase"]),BM(["release-tool","version","-f","@babel/standalone"])},CM["new-babel-8-version"]=function(){GM("git",["pull","--rebase"]);const e=JSON.parse(t.readFileSync("./package.json","utf8")),r=gy.inc(e.version_babel8,"prerelease");return e.version_babel8=r,t.writeFileSync("./package.json",JSON.stringify(e,null,2)+"\n"),GM("git",["add","./package.json"]),GM("git",["commit","-m","Bump Babel 8 version to "+r]),GM("git",["tag",`v${r}`,"-m",`v${r}`]),r},CM["new-babel-8-version-create-commit-ci"]=function(){BM(["release-tool","version",zM(),"--all","--tag-version-prefix","tmp.v","--yes"])},CM["new-babel-8-version-create-commit"]=function(){const e=zM();GM("git",["checkout","-b",`release/temp/v${e}`]),BM(["release-tool","version",e,"--all","--tag-version-prefix","tmp.v"]),console.log("Run `BABEL_8_BREAKING=true make publish` to finish publishing")}; diff --git a/Makefile.source.mjs b/Makefile.source.mjs index 3e8f8537a94a..ac587fc7ea03 100644 --- a/Makefile.source.mjs +++ b/Makefile.source.mjs @@ -287,9 +287,11 @@ target["prepublish-build-standalone"] = function () { target["prepublish-prepare-dts"] = function () { target["clean-ts"](); target["tscheck"](); + target["prepublish-prepare-dts-no-clean"](); +}; +target["prepublish-prepare-dts-no-clean"] = function () { yarn(["gulp", "bundle-dts"]); - target["build-typescript-legacy-typings"](); }; @@ -298,11 +300,6 @@ target["tscheck"] = function () { node(["scripts/parallel-tsc/tsc.js", "."]); }; -target["tscheck-slow"] = function () { - target["generate-tsconfig"](); - yarn(["tsc", "-b", "."]); -}; - target["clean-ts"] = function () { // ts doesn't generate declaration files after we remove the output directory manually when incremental==true shell.rm("-rf", "tsconfig.tsbuildinfo"); @@ -377,6 +374,12 @@ target["lint"] = function () { eslint(); }; +target["lint-ci"] = function () { + target["tscheck"](); + eslint(); + target["prepublish-prepare-dts-no-clean"](); +}; + target["fix"] = function () { target["fix-json"](); target["fix-js"]();