If the action is configured to install buildx by default using the
input then docker buildx sets up docker build as an alias for buildx
making all docker build calls use the buildx builder instead of
traditional builders. The action didn't perform cleanup in this case to
uninstall the aliases which meant that any future workflows running on
same GitHub Actions runner would get the buildx builders even if it did
not explicitly request it.
This commit tracks if the aliases were installed and removes them during
post step of the action if so.
Signed-off-by: Ashhar Hasan <hashhar_dev@outlook.com>
| `driver` | String | `docker-container` | Sets the [builder driver](https://docs.docker.com/engine/reference/commandline/buildx_create/#driver) to be used |
| `driver-opts`| List | | List of additional [driver-specific options](https://docs.docker.com/engine/reference/commandline/buildx_create/#driver-opt) (eg. `image=moby/buildkit:master`) |
| `buildkitd-config-inline` \* | String | | Same as `buildkitd-config` but inline |
| `install`| Bool | `false` | Sets up `docker build` command as an alias to `docker buildx` |
| `use`| Bool | `true` | Switch to this builder instance |
| `endpoint` | String | | [Optional address for docker socket](https://docs.docker.com/engine/reference/commandline/buildx_create/#description) or context from `docker context ls` |
| `platforms` | List/CSV | | Fixed [platforms](https://docs.docker.com/engine/reference/commandline/buildx_create/#platform) for current node. If not empty, values take priority over the detected ones. |
| `append` | YAML | | [Append additional nodes](https://docs.docker.com/build/ci/github-actions/configure-builder/#append-additional-nodes-to-the-builder) to the builder |
| `name` | String | | Name of the builder. If not specified, one will be generated or if it already exists, it will be used instead of creating a new one |
| `driver` | String | `docker-container` | Sets the [builder driver](https://docs.docker.com/engine/reference/commandline/buildx_create/#driver) to be used |
| `driver-opts` | List | | List of additional [driver-specific options](https://docs.docker.com/engine/reference/commandline/buildx_create/#driver-opt) (eg. `image=moby/buildkit:master`) |
| `buildkitd-config-inline` \* | String| | Same as `buildkitd-config` but inline |
| `install` \* | Bool | `false` | Sets up `docker build` command as an alias to `docker buildx` |
| `use` | Bool | `true` | Switch to this builder instance |
| `endpoint` | String | | [Optional address for docker socket](https://docs.docker.com/engine/reference/commandline/buildx_create/#description) or context from `docker context ls` |
| `platforms`| List/CSV | | Fixed [platforms](https://docs.docker.com/engine/reference/commandline/buildx_create/#platform) for current node. If not empty, values take priority over the detected ones |
| `append` | YAML | | [Append additional nodes](https://docs.docker.com/build/ci/github-actions/configure-builder/#append-additional-nodes-to-the-builder) to the builder |
| `keep-state` | Bool | `false`| Keep BuildKit state on `cleanup`. This is only useful on persistent self-hosted runners |
| `cleanup` | Bool | `true` | Cleanup temp files and remove builder at the end of a job |
_\* `buildkitd-config` and `buildkitd-config-inline` are mutually exclusive_
> [!IMPORTANT]
> If you set the `buildkitd-flags` input, the default flags (`--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host`)
> will be reset. If you want to retain the default behavior, make sure to
> include these flags in your custom `buildkitd-flags` value.
> [!NOTE]
> `buildkitd-config` and `buildkitd-config-inline` are mutually exclusive.
> [!NOTE]
> `install` input is deprecated and will be removed in a future release. This
> input is not necessary when building with our actions like
> `docker/build-push-action` or `docker/bake-action`. If you are still building
> with the `docker build` command then you can set the `BUILDX_BUILDER`
> environment variable, or you can just directly invoke the
description:'Sets up docker build command as an alias to docker buildx build'
deprecationMessage:'"docker buildx install" command is deprecated and will be removed in a future release, use BUILDX_BUILDER environment variable instead'
require('./sourcemap-register.js');(()=>{var__webpack_modules__={7799:function(e,t,r){"use strict";vari=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;varn=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"inn?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){returnt[r]}}}Object.defineProperty(e,i,n)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});varn=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});vars=this&&this.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(e!=null)for(varrine)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);n(t,e);returnt};vara=this&&this.__awaiter||function(e,t,r,i){functionadopt(e){returneinstanceofr?e:newr((function(t){t(e)}))}returnnew(r||(r=Promise))((function(r,n){functionfulfilled(e){try{step(i.next(e))}catch(e){n(e)}}functionrejected(e){try{step(i["throw"](e))}catch(e){n(e)}}functionstep(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void0;consto=s(r(2186));constl=s(r(1017));constc=s(r(1518));constp=s(r(8245));constd=r(6490);classValidationErrorextendsError{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;classReserveCacheErrorextendsError{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;functioncheckPaths(e){if(!e||e.length===0){thrownewValidationError(`Path Validation Error: At least one directory or file path is required`)}}functioncheckKey(e){if(e.length>512){thrownewValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}constt=/^[^,]*$/;if(!t.test(e)){thrownewValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}functionisFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;functionrestoreCache(e,t,r,i,n=false){returna(this,void0,void0,(function*(){checkPaths(e);r=r||[];consts=[t,...r];o.debug("Resolved Keys:");o.debug(JSON.stringify(s));if(s.length>10){thrownewValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(consteofs){checkKey(e)}consta=yieldc.getCompressionMethod();letA="";try{constt=yieldp.getCacheEntry(s,e,{compressionMethod:a,enableCrossOsArchive:n});if(!(t===null||t===void0?void0:t.archiveLocation)){returnundefined}if(i===null||i===void0?void0:i.lookupOnly){o.info("Lookup only - skipping download");returnt.cacheKey}A=l.join(yieldc.createTempDirectory(),c.getCacheFileName(a));o.debug(`Archive Path: ${A}`);yieldp.downloadCache(t.archiveLocation,A,i);if(o.isDebug()){yield(0,d.listTar)(A,a)}constr=c.getArchiveFileSizeInBytes(A);o.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield(0,d.extractTar)(A,a);o.info("Cache restored successfully");returnt.cacheKey}catch(e){constt=e;if(t.name===ValidationError.name){throwe}else{o.warning(`Failed to restore: ${e.message}`)}}finally{try{yieldc.unlinkFile(A)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}returnundefined}))}t.restoreCache=restoreCache;functionsaveCache(e,t,r,i=false){varn,s,A,u,m;returna(this,void0,void0,(function*(){checkPaths(e);checkKey(t);consta=yieldc.getCompressionMethod();letg=-1;consth=yieldc.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(h)}`);if(h.length===0){thrownewError(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}constE=yieldc.createTempDirectory();consty=l.join(E,c.getCacheFileName(a));o.debug(`Archive Path: ${y}`);try{yield(0,d.createTar)(E,h,a);if(o.isDebug()){yield(0,d.listTar)(y,a)}constl=10*1024*1024*1024;constC=c.getArchiveFileSizeInBytes(y);o.debug(`File Size: ${C}`);if(C>l&&!c.isGhes()){thrownewError(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`)}o.debug("Reserving Cache");constb=yieldp.reserveCache(t,e,{compressionMethod:a,enableCrossOsArchive:i,cacheSize:C});if((n=b===null||b===void0?void0:b.result)===null||n===void0?void0:n.cacheId){g=(s=b===null||b===void0?void0:b.result)===null||s===void0?void0:s.cacheId}elseif((b===null||b===void0?void0:b.statusCode)===400){thrownewError((u=(A=b===null||b===void0?void0:b.error)===null||A===void0?void0:A.message)!==null&&u!==void0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`)}else{thrownewReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(m=b===null||b===Line truncated
require('./sourcemap-register.js');(()=>{varr={76846:function(r,i,s){"use strict";vara=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;varl=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"inl?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){returni[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});varl=this&&this.__exportStar||function(r,i){for(varsinr)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});constc=s(64487);l(s(13776),i);l(s(45655),i);l(s(64487),i);constp=newc.DefaultArtifactClient;i["default"]=p},35592:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void0;consta=s(68886);constl=s(68886);constc=s(68886);constp=s(68886);constd=s(68886);constu=s(68886);consth=s(68886);classTimestamp$Typeextendsh.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){constr=this.create();consti=Date.now();r.seconds=u.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;returnr}toDate(r){returnnewDate(u.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){consti=this.create();consts=r.getTime();i.seconds=u.PbLong.from(Math.floor(s/1e3)).toString();i.nanos=s%1e3*1e6;returni}internalJsonWrite(r,i){lets=u.PbLong.from(r.seconds).toNumber()*1e3;if(s<Date.parse("0001-01-01T00:00:00Z")||s>Date.parse("9999-12-31T23:59:59Z"))thrownewError("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)thrownewError("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");leta="Z";if(r.nanos>0){leti=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")a="."+i.substring(0,3)+"Z";elseif(i.substring(6)==="000")a="."+i.substring(0,6)+"Z";elsea="."+i+"Z"}returnnewDate(s).toISOString().replace(".000Z",a)}internalJsonRead(r,i,s){if(typeofr!=="string")thrownewError("Unable to parse Timestamp from JSON "+(0,d.typeofJsonValue)(r)+".");leta=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)thrownewError("Unable to parse Timestamp from JSON. Invalid format.");letl=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(l))thrownewError("Unable to parse Timestamp from JSON. Invalid value.");if(l<Date.parse("0001-01-01T00:00:00Z")||l>Date.parse("9999-12-31T23:59:59Z"))thrownewglobalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=u.PbLong.from(l/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;returns}create(r){consti={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,p.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,i,r);returni}internalBinaryRead(r,i,s,a){letc=a!==null&&a!==void0?a:this.create(),p=r.pos+i;while(r.pos<p){let[i,a]=r.tag();switch(i){case1:c.seconds=r.int64().toString();break;case2:c.nanos=r.int32();break;default:letp=s.readUnknownField;if(p==="throw")thrownewglobalThis.Error(`Unknown field ${i} (wire type ${a}) for ${this.typeName}`);letd=r.skip(a);if(p!==false)(p===true?l.UnknownFieldHandler.onRead:p)(this.typeName,c,i,a,d)}}returnc}internalBinaryWrite(r,i,s){if(r.seconds!=="0")i.tag(1,a.WireType.Varint).int64(r.seconds);if(r.nanos!==0)i.tag(2,a.WireType.Varint).int32(r.nanos);letc=s.writeUnknownFields;if(c!==false)(c==true?l.UnknownFieldHandler.onWrite:c)(this.typeName,r,i);returni}}i.Timestamp=newTimestamp$Type},78806:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void0;consta=s(68886);constl=s(68886);constc=s(68886);constp=s(68886);constd=s(68886);constu=s(68886);consth=s(68886);classDoubleValue$Typeextendsh.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){returnthis.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,s){if(!s)s=this.create();s.value=this.refJsonReader.scalar(r,1,undefined,"value");returns}create(r){consti={value:0};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);returni}internalBinaryRead(r,i,s,a){letl=a!==null&&a!==void0?a:this.create(),c=r.pos+i;while(r.pos<c){let[i,a]=r.tag();switch(i){case1:l.value=r.double();break;default:letc=s.readUnknownField;if(c==="throw")thrownewglobalThis.Error(`Unknown field ${i} (wire type ${a}) for ${this.typeName}`);letd=r.skip(a);Line truncated
vara=s(50549);varl={};varvending=function(r,i){returnvending.create(r,i)};vending.create=function(r,i){if(l[r]){vars=newa(r,i);s.setFormat(r);s.setModule(newl[r](i));returns}else{thrownewError("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(l[r]){thrownewError("register("+r+"): format already registered")}if(typeofi!=="function"){thrownewError("register("+r+"): format module invalid")}if(typeofi.prototype.append!=="function"||typeofi.prototype.finalize!=="function"){thrownewError("register("+r+"): format module missing methods")}l[r]=i};vending.isRegisteredFormat=function(r){if(l[r]){returntrue}returnfalse};vending.registerFormat("zip",s(22836));vending.registerFormat("tar",s(10396));vending.registerFormat("json",s(54693));r.exports=vending},50549:(r,i,s)=>{
vara=s(39023);constl={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};functionArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=i}a.inherits(ArchiverError,Error);i=r.exports=ArchiverError},54693:(r,i,s)=>{
vara=s(41622);varl=s(53296);varZip=function(r){if(!(thisinstanceofZip)){returnnewZip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=newa(r)};Zip.prototype.append=function(r,i,s){this.engine.entry(r,i,s)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){returnthis.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){returnthis.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){returnthis.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},97329:function(r,i){(function(r,s){true?s(i):0})(this,(function(r){"use strict";functionapply(r,...i){return(...s)=>r(...i,...s)}functioninitialParams(r){returnfunction(...i){vars=i.pop();returnr.call(this,i,s)}}vari=typeofqueueMicrotask==="function"&&queueMicrotask;vars=typeofsetImmediate==="function"&&setImmediate;vara=typeofprocess==="object"&&typeofprocess.nextTick==="function";functionfallback(r){setTimeout(r,0)}functionwrap(r){return(i,...s)=>r((()=>i(...s)))}varl;if(i){l=queueMicrotask}elseif(s){l=setImmediate}elseif(a){l=process.nextTick}else{l=fallback}varc=wrap(l);functionasyncify(r){if(isAsync(r)){returnfunction(...i){consts=i.pop();consta=r.apply(this,i);returnhandlePromise(a,s)}}returninitialParams((function(i,s){vara;try{a=r.apply(this,i)}catch(r){returns(r)}if(a&&typeofa.then==="function"){returnhandlePromise(a,s)}else{s(null,a)}}))}functionhandlePromise(r,i){returnr.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(rinstanceofError||r.message)?r:newError(r))}))}functioninvokeCallback(r,i,s){try{r(i,s)}catch(r){c((r=>{throwr}),r)}}functionisAsync(r){returnr[Symbol.toStringTag]==="AsyncFunction"}functionisAsyncGenerator(r){returnr[Symbol.toStringTag]==="AsyncGenerator"}functionisAsyncIterable(r){returntypeofr[Symbol.asyncIterator]==="function"}functionwrapAsync(r){if(typeofr!=="function")thrownewError("expected a function");returnisAsync(r)?asyncify(r):r}functionawaitify(r,i){if(!i)i=r.length;if(!i)thrownewError("arity is undefined");functionawaitable(...s){if(typeofs[i-1]==="function"){returnr.apply(this,s)}returnnewPromise(((a,l)=>{s[i-1]=(r,...i)=>{if(r)returnl(r);a(i.length>1?i:i[0])};r.apply(this,s)}))}returnawaitable}functionapplyEach$1(r){returnfunctionapplyEach(i,...s){consta=awaitify((function(a){varl=this;returnr(i,((r,i)=>{wrapAsync(r).apply(l,s.concat(i))}),a)}));returna}}function_asyncMap(r,i,s,a){i=i||[];varl=[];varc=0;varp=wrapAsync(s);returnr(i,((r,i,s)=>{vara=c++;p(r,((r,i)=>{l[a]=i;s(r)}))}),(r=>{a(r,l)}))}functionisArrayLike(r){returnr&&typeofr.length==="number"&&r.length>=0&&r.length%1===0}constp={};vard=p;functiononce(r){functionwrapper(...i){if(r===null)return;vars=r;r=null;s.apply(this,i)}Object.assign(wrapper,r);returnwrapper}functiongetIterator(r){returnr[Symbol.iterator]&&r[Symbol.iterator]()}functioncreateArrayIterator(r){vari=-1;vars=r.length;returnfunctionnext(){return++i<s?{value:r[i],key:i}:null}}functioncreateES2015Iterator(r){vari=-1;returnfunctionnext(){vars=r.next();if(s.done)returnnull;i++;return{value:s.value,key:i}}}functioncreateObjectIterator(r){vari=r?Object.keys(r):[];vars=-1;vara=i.length;returnfunctionnext(){varl=i[++s];if(l==="__proto__"){returnnext()}returns<a?{value:r[l],key:l}:null}}functioncreateIterator(r){if(isArrayLike(r)){returncreateArrayIterator(r)}vari=getIterator(r);returni?createES2015Iterator(i):createObjectIterator(r)}functiononlyOnce(r){returnfunction(...i){if(r===null)thrownewError("Callback was already called.");vars=r;r=null;s.apply(this,i)}}functionasyncEachOfLimit(r,i,s,a){letl=false;letc=false;letp=false;letu=0;leth=0;functionreplenish(){if(u>=i||p||l)return;p=true;r.next().then((({value:r,done:i})=>{if(c||l)return;p=false;if(i){l=true;if(u<=0){a(null)}return}u++;s(r,h,iterateeCallback);h++;replenish()})).catch(handleError)}functioniterateeCallback(r,i){u-=1;if(c)return;if(r)returnhandleError(r);if(r===false){l=true;c=true;return}if(i===d||l&&u<=0){l=true;returna(null)}replenish()}functionhandleError(r){if(c)return;p=false;l=true;a(r)}replenish()}vareachOfLimit$2=r=>(i,s,a)=>{a=once(a);if(r<=0){thrownewRangeError("concurrency limit cannot be less than 1")}if(!i){returna(null)}if(isAsyncGenerator(i)){returnasyncEachOfLimit(i,r,s,a)}if(isAsyncIterable(i)){returnasyncEachOfLimit(i[Symbol.asyncIterator](),r,s,a)}varl=createIterator(i);varc=false;varp=false;varu=0;varh=false;functioniterateeCallback(r,i){if(p)return;u-=1;if(r){c=true;a(r)}elseif(r===false){c=true;p=true}elseif(i===d||c&&u<=0){c=true;returna(null)}elseif(!h){replenish()}}functionreplenish(){h=true;while(u<r&&!c){vari=l();if(i===null){c=true;if(u<=0){a(null)}return}u+=1;s(i.value,i.key,onlyOnce(iterateeCallback))}h=false}replenish()};functioneachOfLimit(r,i,s,a){returneachOfLimit$2(i)(r,Line truncated
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(s){vara=true&&i;varl=true&&r&&r.exports==a&&r;varc=typeofglobal=="object"&&global;if(c.global===c||c.window===c){s=c}varp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;vard=/[\x01-\x7F]/g;varu=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;varh=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;varA={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine","":"puncsp","":"MediumSpace","":"thinsp","":"hairsp","":"emsp13","":"ensp","":"emsp14","":"emsp","":"numsp","":"nbsp","":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
*/var i=r(7426);var n=r(1017).extname;var s=/^\s*([^;\s]*)(?:;|\s|$)/;vara=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);functioncharset(e){if(!e||typeofe!=="string"){returnfalse}vart=s.exec(e);varr=t&&i[t[1].toLowerCase()];if(r&&r.charset){returnr.charset}if(t&&a.test(t[1])){return"UTF-8"}returnfalse}functioncontentType(e){if(!e||typeofe!=="string"){returnfalse}varr=e.indexOf("/")===-1?t.lookup(e):e;if(!r){returnfalse}if(r.indexOf("charset")===-1){vari=t.charset(r);if(i)r+="; charset="+i.toLowerCase()}returnr}functionextension(e){if(!e||typeofe!=="string"){returnfalse}varr=s.exec(e);vari=r&&t.extensions[r[1].toLowerCase()];if(!i||!i.length){returnfalse}returni[0]}functionlookup(e){if(!e||typeofe!=="string"){returnfalse}varr=n("x."+e).toLowerCase().substr(1);if(!r){returnfalse}returnt.types[r]||false}functionpopulateMaps(e,t){varr=["nginx","apache",undefined,"iana"];Object.keys(i).forEach((functionforEachMimeType(n){vars=i[n];vara=s.extensions;if(!a||!a.length){return}e[n]=a;for(varo=0;o<a.length;o++){varl=a[o];if(t[l]){varc=r.indexOf(i[t[l]].source);varp=r.indexOf(s.source);if(t[l]!=="application/octet-stream"&&(c>p||c===p&&t[l].substr(0,12)==="application/")){continue}}t[l]=n}}))}},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;vari=function(){try{returnr(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=i.sep;varn=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};vars=r(3717);vara={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};varo="[^/]";varl=o+"*?";varc="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";varp="(?:(?!(?:\\/|^)\\.).)*?";vard=charSet("().*{}+?[]^$\\!");functioncharSet(e){returne.split("").reduce((function(e,t){e[t]=true;returne}),{})}varA=/\/+/;minimatch.filter=filter;functionfilter(e,t){t=t||{};returnfunction(r,i,n){returnminimatch(r,e,t)}}functionext(e,t){t=t||{};varr={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));returnr}minimatch.defaults=function(e){if(!e||typeofe!=="object"||!Object.keys(e).length){returnminimatch}vart=minimatch;varr=functionminimatch(r,i,n){returnt(r,i,ext(e,n))};r.Minimatch=functionMinimatch(r,i){returnnewt.Minimatch(r,ext(e,i))};r.Minimatch.defaults=functiondefaults(r){returnt.defaults(ext(e,r)).Minimatch};r.filter=functionfilter(r,i){returnt.filter(r,ext(e,i))};r.defaults=functiondefaults(r){returnt.defaults(ext(e,r))};r.makeRe=functionmakeRe(r,i){returnt.makeRe(r,ext(e,i))};r.braceExpand=functionbraceExpand(r,i){returnt.braceExpand(r,ext(e,i))};r.match=function(r,i,n){returnt.match(r,i,ext(e,n))};returnr};Minimatch.defaults=function(e){returnminimatch.defaults(e).Minimatch};functionminimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){returnfalse}returnnewMinimatch(t,r).match(e)}functionMinimatch(e,t){if(!(thisinstanceofMinimatch)){returnnewMinimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;functionmake(){vare=this.pattern;vart=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();varr=this.globSet=this.braceExpand();if(t.debug)this.debug=functiondebug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){returne.split(A)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){returne.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){returne.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;functionparseNegate(){vare=this.pattern;vart=false;varr=this.options;vari=0;if(r.nonegate)return;for(varn=0,s=e.length;n<s&&e.charAt(n)==="!";n++){t=!t;i++}if(i)this.pattern=e.substr(i);this.negate=t}minimatch.braceExpand=function(e,t){returnbraceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;functionbraceExpand(e,t){if(!t){if(thisinstanceofMinimatch){t=this.options}else{t={}}}e=typeofe==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}returns(e)}varu=1024*64;varassertValidPattern=function(e){if(typeofe!=="string"){thrownewTypeError("invalid pattern")}if(e.length>u){thrownewTypeError("pattern is too long")}};Minimatch.prototype.parse=parse;varm={};functionparse(e,t){assertValidPattern(e);varr=this.options;if(e==="**"){if(!r.noglobstar)returnn;elsee="*"}iLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){vare=String.fromCharCode;vart=Math.floor;varfromCodePoint=function(){varr=16384;vari=[];varn;vars;vara=-1;varo=arguments.length;if(!o){return""}varl="";while(++a<o){varc=Number(arguments[a]);if(!isFinite(c)||c<0||c>1114111||t(c)!==c){throwRangeError("Invalid code point: "+c)}if(c<=65535){i.push(c)}else{c-=65536;n=(c>>10)+55296;s=c%1024+56320;i.push(n,s)}if(a+1===o||i.length>r){l+=e.apply(null,i);i.length=0}}returnl};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:t)},5911:(e,t)=>{t=e.exports=SemVer;varr;if(typeofprocess==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){vare=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";vari=256;varn=Number.MAX_SAFE_INTEGER||9007199254740991;vars=16;vara=i-6;varo=t.re=[];varl=t.safeRe=[];varc=t.src=[];varp=t.tokens={};vard=0;functiontok(e){p[e]=d++}varA="[a-zA-Z0-9-]";varu=[["\\s",1],["\\d",i],[A,a]];functionmakeSafeRe(e){for(vart=0;t<u.length;t++){varr=u[t][0];vari=u[t][1];e=e.split(r+"*").join(r+"{0,"+i+"}").split(r+"+").join(r+"{1,"+i+"}")}returne}tok("NUMERICIDENTIFIER");c[p.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");c[p.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");c[p.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+A+"*";tok("MAINVERSION");c[p.MAINVERSION]="("+c[p.NUMERICIDENTIFIER]+")\\."+"("+c[p.NUMERICIDENTIFIER]+")\\."+"("+c[p.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");c[p.MAINVERSIONLOOSE]="("+c[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+c[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+c[p.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");c[p.PRERELEASEIDENTIFIER]="(?:"+c[p.NUMERICIDENTIFIER]+"|"+c[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");c[p.PRERELEASEIDENTIFIERLOOSE]="(?:"+c[p.NUMERICIDENTIFIERLOOSE]+"|"+c[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");c[p.PRERELEASE]="(?:-("+c[p.PRERELEASEIDENTIFIER]+"(?:\\."+c[p.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");c[p.PRERELEASELOOSE]="(?:-?("+c[p.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+c[p.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");c[p.BUILDIDENTIFIER]=A+"+";tok("BUILD");c[p.BUILD]="(?:\\+("+c[p.BUILDIDENTIFIER]+"(?:\\."+c[p.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");c[p.FULLPLAIN]="v?"+c[p.MAINVERSION]+c[p.PRERELEASE]+"?"+c[p.BUILD]+"?";c[p.FULL]="^"+c[p.FULLPLAIN]+"$";tok("LOOSEPLAIN");c[p.LOOSEPLAIN]="[v=\\s]*"+c[p.MAINVERSIONLOOSE]+c[p.PRERELEASELOOSE]+"?"+c[p.BUILD]+"?";tok("LOOSE");c[p.LOOSE]="^"+c[p.LOOSEPLAIN]+"$";tok("GTLT");c[p.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");c[p.XRANGEIDENTIFIERLOOSE]=c[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");c[p.XRANGEIDENTIFIER]=c[p.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");c[p.XRANGEPLAIN]="[v=\\s]*("+c[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[p.XRANGEIDENTIFIER]+")"+"(?:"+c[p.PRERELEASE]+")?"+c[p.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");c[p.XRANGEPLAINLOOSE]="[v=\\s]*("+c[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+c[p.PRERELEASELOOSE]+")?"+c[p.BUILD]+"?"+")?)?";tok("XRANGE");c[p.XRANGE]="^"+c[p.GTLT]+"\\s*"+c[p.XRANGEPLAIN]+"$";tok("XRANGELOOSE");c[p.XRANGELOOSE]="^"+c[p.GTLT]+"\\s*"+c[p.XRANGEPLAINLOOSE]+"$";tok("COERCE");c[p.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[p.COERCERTL]=newRegExp(c[p.COERCE],"g");l[p.COERCERTL]=newRegExp(makeSafeRe(c[p.COERCE]),"g");tok("LONETILDE");c[p.LONETILDE]="(?:~>?)";tok("TILDETRIM");c[p.TILDETRIM]="(\\s*)"+c[p.LONETILDE]+"\\s+";o[p.TILDETRIM]=newRegExp(c[p.TILDETRIM],"g");l[p.TILDETRIM]=newRegExp(makeSafeRe(c[p.TILDETRIM]),"g");varm="$1~";tok("TILDE");c[p.TILDE]="^"+c[p.LONETILDE]+c[p.XRANGEPLAIN]+"$";tok("TILDELOOSE");c[p.TILDELOOSE]="^"+c[p.LONETILDE]+c[p.XRANGEPLAINLOOSE]+"$";tok("LONECARET");c[p.LONECARET]="(?:\\^)";tok("CARETTRIM");c[p.CARETTRIM]="(\\s*)"+c[p.LONECARET]+"\\s+";o[p.CARETTRIM]=newRegExp(c[p.CARETTRIM],"g");l[p.CARETTRIM]=newRegExp(makeSafeRe(c[p.CARETTRIM]),"g");varg="$1^";tok("CARET");c[p.CARET]="^"+c[p.LONECARET]+c[p.XRANGEPLAIN]+"$";tok("CARETLOOSE");c[p.CARETLOOSE]="^"+c[p.LONECARET]+c[p.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");c[p.COMPARATORLOOSE]="^"+c[p.GTLT]+"\\s*("+c[p.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");c[p.COMPARATOR]="^"+c[p.GTLT]+"\\s*("+c[p.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");c[p.COMPARATORTRIM]="(\\s*)"+c[p.GTLT]+"\\s*("+c[p.LOOSEPLAIN]+"|"+c[p.XRANGEPLAIN]+")";o[p.COMPARATORTRIM]=newRegExp(c[p.COMPARATORTRIM],"g");l[p.COMPARATORTRIM]=newRegExp(makeSafeRe(c[p.COMPARATORTRIM]),"g");varh="$1$2$3";tok("HYPLine truncated
*/var a=s(99829);var l=s(16928).extname;var c=/^\s*([^;\s]*)(?:;|\s|$)/;varp=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);functioncharset(r){if(!r||typeofr!=="string"){returnfalse}vari=c.exec(r);vars=i&&a[i[1].toLowerCase()];if(s&&s.charset){returns.charset}if(i&&p.test(i[1])){return"UTF-8"}returnfalse}functioncontentType(r){if(!r||typeofr!=="string"){returnfalse}vars=r.indexOf("/")===-1?i.lookup(r):r;if(!s){returnfalse}if(s.indexOf("charset")===-1){vara=i.charset(s);if(a)s+="; charset="+a.toLowerCase()}returns}functionextension(r){if(!r||typeofr!=="string"){returnfalse}vars=c.exec(r);vara=s&&i.extensions[s[1].toLowerCase()];if(!a||!a.length){returnfalse}returna[0]}functionlookup(r){if(!r||typeofr!=="string"){returnfalse}vars=l("x."+r).toLowerCase().substr(1);if(!s){returnfalse}returni.types[s]||false}functionpopulateMaps(r,i){vars=["nginx","apache",undefined,"iana"];Object.keys(a).forEach((functionforEachMimeType(l){varc=a[l];varp=c.extensions;if(!p||!p.length){return}r[l]=p;for(vard=0;d<p.length;d++){varu=p[d];if(i[u]){varh=s.indexOf(a[i[u]].source);varA=s.indexOf(c.source);if(i[u]!=="application/octet-stream"&&(h>A||h===A&&i[u].substr(0,12)==="application/")){continue}}i[u]=l}}))}},43772:(r,i,s)=>{r.exports=minimatch;minimatch.Minimatch=Minimatch;vara=function(){try{returns(16928)}catch(r){}}()||{sep:"/"};minimatch.sep=a.sep;varl=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};varc=s(73783);varp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};vard="[^/]";varu=d+"*?";varh="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";varA="(?:(?!(?:\\/|^)\\.).)*?";varg=charSet("().*{}+?[]^$\\!");functioncharSet(r){returnr.split("").reduce((function(r,i){r[i]=true;returnr}),{})}vary=/\/+/;minimatch.filter=filter;functionfilter(r,i){i=i||{};returnfunction(s,a,l){returnminimatch(s,r,i)}}functionext(r,i){i=i||{};vars={};Object.keys(r).forEach((function(i){s[i]=r[i]}));Object.keys(i).forEach((function(r){s[r]=i[r]}));returns}minimatch.defaults=function(r){if(!r||typeofr!=="object"||!Object.keys(r).length){returnminimatch}vari=minimatch;vars=functionminimatch(s,a,l){returni(s,a,ext(r,l))};s.Minimatch=functionMinimatch(s,a){returnnewi.Minimatch(s,ext(r,a))};s.Minimatch.defaults=functiondefaults(s){returni.defaults(ext(r,s)).Minimatch};s.filter=functionfilter(s,a){returni.filter(s,ext(r,a))};s.defaults=functiondefaults(s){returni.defaults(ext(r,s))};s.makeRe=functionmakeRe(s,a){returni.makeRe(s,ext(r,a))};s.braceExpand=functionbraceExpand(s,a){returni.braceExpand(s,ext(r,a))};s.match=function(s,a,l){returni.match(s,a,ext(r,l))};returns};Minimatch.defaults=function(r){returnminimatch.defaults(r).Minimatch};functionminimatch(r,i,s){assertValidPattern(i);if(!s)s={};if(!s.nocomment&&i.charAt(0)==="#"){returnfalse}returnnewMinimatch(i,s).match(r)}functionMinimatch(r,i){if(!(thisinstanceofMinimatch)){returnnewMinimatch(r,i)}assertValidPattern(r);if(!i)i={};r=r.trim();if(!i.allowWindowsEscape&&a.sep!=="/"){r=r.split(a.sep).join("/")}this.options=i;this.set=[];this.pattern=r;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;functionmake(){varr=this.pattern;vari=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();vars=this.globSet=this.braceExpand();if(i.debug)this.debug=functiondebug(){console.error.apply(console,arguments)};this.debug(this.pattern,s);s=this.globParts=s.map((function(r){returnr.split(y)}));this.debug(this.pattern,s);s=s.map((function(r,i,s){returnr.map(this.parse,this)}),this);this.debug(this.pattern,s);s=s.filter((function(r){returnr.indexOf(false)===-1}));this.debug(this.pattern,s);this.set=s}Minimatch.prototype.parseNegate=parseNegate;functionparseNegate(){varr=this.pattern;vari=false;vars=this.options;vara=0;if(s.nonegate)return;for(varl=0,c=r.length;l<c&&r.charAt(l)==="!";l++){i=!i;a++}if(a)this.pattern=r.substr(a);this.negate=i}minimatch.braceExpand=function(r,i){returnbraceExpand(r,i)};Minimatch.prototype.braceExpand=braceExpand;functionbraceExpand(r,i){if(!i){if(thisinstanceofMinimatch){i=this.options}else{i={}}}r=typeofr==="undefined"?this.pattern:r;assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}returnc(r)}varb=1024*64;varassertValidPattern=function(r){if(typeofr!=="string"){thrownewTypeError("invalid pattern")}if(r.length>b){thrownewTypeError("pattern is too long")}};Minimatch.prototype.parse=parse;varv={};functionparse(r,i){assertValidPattern(r);vars=this.options;if(r==="**"){if(!s.noglobstar)returnl;elser=Line truncated
r.exports=function(r,i){if(typeofr!=="string"){thrownewTypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";vars=r.length;if(s<=1)returnr;vara="";if(s>4&&r[3]==="\\"){varl=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}varc=r.split(/[/\\]+/);if(i!==false&&c[c.length-1]===""){c.pop()}returna+c.join("/")}},55560:(r,i,s)=>{vara=s(58264);r.exports=a(once);r.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){returnonce(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){returnonceStrict(this)},configurable:true})}));functiononce(r){varf=function(){if(f.called)returnf.value;f.called=true;returnf.value=r.apply(this,arguments)};f.called=false;returnf}functiononceStrict(r){varf=function(){if(f.called)thrownewError(f.onceError);f.called=true;returnf.value=r.apply(this,arguments)};vari=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;returnf}},41564:r=>{"use strict";if(typeofprocess==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}functionnextTick(r,i,s,a){if(typeofr!=="function"){thrownewTypeError('"callback" argument must be a function')}varl=arguments.length;varc,p;switch(l){case0:case1:returnprocess.nextTick(r);case2:returnprocess.nextTick((functionafterTickOne(){r.call(null,i)}));case3:returnprocess.nextTick((functionafterTickTwo(){r.call(null,i,s)}));case4:returnprocess.nextTick((functionafterTickThree(){r.call(null,i,s,a)}));default:c=newArray(l-1);p=0;while(p<c.length){c[p++]=arguments[p]}returnprocess.nextTick((functionafterTick(){r.apply(null,c)}))}}},7945:r=>{r.exports=global.process},5506:(r,i,s)=>{r.exports=typeofprocess!=="undefined"&&typeofprocess.nextTick==="function"?process.nextTick.bind(process):s(36828)},36828:r=>{r.exports=typeofqueueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80652:(r,i,s)=>{"use strict";const{SymbolDispose:a}=s(50999);const{AbortError:l,codes:c}=s(69220);const{isNodeStream:p,isWebStream:d,kControllerErrorFunction:u}=s(83426);consth=s(36815);const{ERR_INVALID_ARG_TYPE:A}=c;letg;constvalidateAbortSignal=(r,i)=>{if(typeofr!=="object"||!("aborted"inr)){thrownewA(i,"AbortSignal",r)}};r.exports.addAbortSignal=functionaddAbortSignal(i,s){validateAbortSignal(i,"signal");if(!p(s)&&!d(s)){thrownewA("stream",["ReadableStream","WritableStream","Stream"],s)}returnr.exports.addAbortSignalNoValidate(i,s)};r.exports.addAbortSignalNoValidate=function(r,i){if(typeofr!=="object"||!("aborted"inr)){returni}constc=p(i)?()=>{i.destroy(newl(undefined,{cause:r.reason}))}:()=>{i[u](newl(undefined,{cause:r.reason}))};if(r.aborted){c()}else{g=g||s(23539).addAbortListener;constl=g(r,c);h(i,l[a])}returni}},77336:(r,i,s)=>{"use strict";const{StringPrototypeSlice:a,SymbolIterator:l,TypedArrayPrototypeSet:c,Uint8Array:p}=s(50999);const{Buffer:d}=s(20181);const{inspect:u}=s(23539);r.exports=classBufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){consti={data:r,next:null};if(this.length>0)this.tail.next=i;elsethis.head=i;this.tail=i;++this.length}unshift(r){consti={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length}shift(){if(this.length===0)return;constr=this.head.data;if(this.length===1)this.head=this.tail=null;elsethis.head=this.head.next;--this.length;returnr}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";leti=this.head;lets=""+i.data;while((i=i.next)!==null)s+=r+i.data;returns}concat(r){if(this.length===0)returnd.alloc(0);consti=d.allocUnsafe(r>>>0);lets=this.head;leta=0;while(s){c(i,s.data,a);a+=s.data.length;s=s.next}returni}consume(r,i){consts=this.head.data;if(r<s.length){consti=s.slice(0,r);this.head.data=s.slice(r);returni}if(r===s.length){returnthis.shift()}returni?this._getString(r):this._getBuffer(r)}first(){returnthis.head.data}*[l](){for(letr=this.head;r;r=r.next){yieldr.data}}_getString(r){leti="";lets=this.head;letl=0;do{constc=s.data;if(r>c.length){i+=c;r-=c.length}else{if(r===c.length){i+=c;++l;if(s.next)this.head=s.next;elsethis.head=this.tail=null}else{i+=a(c,0,r);this.head=s;s.data=a(c,r)}break}++l}while((s=s.next)!==null);this.length-=l;returni}_getBuffer(r){consti=d.allocUnsafe(r);consts=r;leta=this.head;letl=0;do{constd=a.data;if(r>d.length){c(i,d,s-r);r-=d.length}else{if(r===d.length){c(i,d,s-r);++l;if(a.next)this.head=a.next;elsethis.head=this.tail=null}else{c(i,newp(d.buffer,d.byteOffset,r),s-r);this.head=a;a.data=d.slice(r)}break}++l}while((a=a.next)!==null);this.length-=l;returni}[Symbol.for("nodejs.util.inspect.custom")](r,i){returnu(this,{...i,depth:0,customInspect:false})}}},64999:(r,i,s)=>{"usestricLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){varr=String.fromCharCode;vari=Math.floor;varfromCodePoint=function(){vars=16384;vara=[];varl;varc;varp=-1;vard=arguments.length;if(!d){return""}varu="";while(++p<d){varh=Number(arguments[p]);if(!isFinite(h)||h<0||h>1114111||i(h)!==h){throwRangeError("Invalid code point: "+h)}if(h<=65535){a.push(h)}else{h-=65536;l=(h>>10)+55296;c=h%1024+56320;a.push(l,c)}if(p+1===d||a.length>s){u+=r.apply(null,a);a.length=0}}returnu};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},39318:(r,i)=>{i=r.exports=SemVer;vars;if(typeofprocess==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){s=function(){varr=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{s=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";vara=256;varl=Number.MAX_SAFE_INTEGER||9007199254740991;varc=16;varp=a-6;vard=i.re=[];varu=i.safeRe=[];varh=i.src=[];varA=i.tokens={};varg=0;functiontok(r){A[r]=g++}vary="[a-zA-Z0-9-]";varb=[["\\s",1],["\\d",a],[y,p]];functionmakeSafeRe(r){for(vari=0;i<b.length;i++){vars=b[i][0];vara=b[i][1];r=r.split(s+"*").join(s+"{0,"+a+"}").split(s+"+").join(s+"{1,"+a+"}")}returnr}tok("NUMERICIDENTIFIER");h[A.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");h[A.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");h[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+y+"*";tok("MAINVERSION");h[A.MAINVERSION]="("+h[A.NUMERICIDENTIFIER]+")\\."+"("+h[A.NUMERICIDENTIFIER]+")\\."+"("+h[A.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");h[A.MAINVERSIONLOOSE]="("+h[A.NUMERICIDENTIFIERLOOSE]+")\\."+"("+h[A.NUMERICIDENTIFIERLOOSE]+")\\."+"("+h[A.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");h[A.PRERELEASEIDENTIFIER]="(?:"+h[A.NUMERICIDENTIFIER]+"|"+h[A.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");h[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+h[A.NUMERICIDENTIFIERLOOSE]+"|"+h[A.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");h[A.PRERELEASE]="(?:-("+h[A.PRERELEASEIDENTIFIER]+"(?:\\."+h[A.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");h[A.PRERELEASELOOSE]="(?:-?("+h[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+h[A.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");h[A.BUILDIDENTIFIER]=y+"+";tok("BUILD");h[A.BUILD]="(?:\\+("+h[A.BUILDIDENTIFIER]+"(?:\\."+h[A.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");h[A.FULLPLAIN]="v?"+h[A.MAINVERSION]+h[A.PRERELEASE]+"?"+h[A.BUILD]+"?";h[A.FULL]="^"+h[A.FULLPLAIN]+"$";tok("LOOSEPLAIN");h[A.LOOSEPLAIN]="[v=\\s]*"+h[A.MAINVERSIONLOOSE]+h[A.PRERELEASELOOSE]+"?"+h[A.BUILD]+"?";tok("LOOSE");h[A.LOOSE]="^"+h[A.LOOSEPLAIN]+"$";tok("GTLT");h[A.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");h[A.XRANGEIDENTIFIERLOOSE]=h[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");h[A.XRANGEIDENTIFIER]=h[A.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");h[A.XRANGEPLAIN]="[v=\\s]*("+h[A.XRANGEIDENTIFIER]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIER]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIER]+")"+"(?:"+h[A.PRERELEASE]+")?"+h[A.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");h[A.XRANGEPLAINLOOSE]="[v=\\s]*("+h[A.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+h[A.PRERELEASELOOSE]+")?"+h[A.BUILD]+"?"+")?)?";tok("XRANGE");h[A.XRANGE]="^"+h[A.GTLT]+"\\s*"+h[A.XRANGEPLAIN]+"$";tok("XRANGELOOSE");h[A.XRANGELOOSE]="^"+h[A.GTLT]+"\\s*"+h[A.XRANGEPLAINLOOSE]+"$";tok("COERCE");h[A.COERCE]="(^|[^\\d])"+"(\\d{1,"+c+"})"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");d[A.COERCERTL]=newRegExp(h[A.COERCE],"g");u[A.COERCERTL]=newRegExp(makeSafeRe(h[A.COERCE]),"g");tok("LONETILDE");h[A.LONETILDE]="(?:~>?)";tok("TILDETRIM");h[A.TILDETRIM]="(\\s*)"+h[A.LONETILDE]+"\\s+";d[A.TILDETRIM]=newRegExp(h[A.TILDETRIM],"g");u[A.TILDETRIM]=newRegExp(makeSafeRe(h[A.TILDETRIM]),"g");varv="$1~";tok("TILDE");h[A.TILDE]="^"+h[A.LONETILDE]+h[A.XRANGEPLAIN]+"$";tok("TILDELOOSE");h[A.TILDELOOSE]="^"+h[A.LONETILDE]+h[A.XRANGEPLAINLOOSE]+"$";tok("LONECARET");h[A.LONECARET]="(?:\\^)";tok("CARETTRIM");h[A.CARETTRIM]="(\\s*)"+h[A.LONECARET]+"\\s+";d[A.CARETTRIM]=newRegExp(h[A.CARETTRIM],"g");u[A.CARETTRIM]=newRegExp(makeSafeRe(h[A.CARETTRIM]),"g");varC="$1^";tok("CARET");h[A.CARET]="^"+h[A.LONECARET]+h[A.XRANGEPLAIN]+"$";tok("CARETLOOSE");h[A.CARETLOOSE]="^"+h[A.LONECARET]+h[A.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");h[A.COMPARATORLOOSE]="^"+h[A.GTLT]+"\\s*("+h[A.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");h[A.COMPARATOR]="^"+h[A.GTLT]+"\\s*("+h[A.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");h[A.COMPARATORTRIM]="(\\s*)"+h[A.GTLT]+"\\s*("+h[A.LOOSEPLAIN]+"|"+h[A.XRANGEPLAIN]+")";d[A.COMPARATORTRIM]=newRegExp(h[A.COMPARATORTRIM],"g");u[A.COMPARATORTRIM]=newRegExp(makeSafeRe(h[A.COMPARATORTRIM]),"g");varw="$1$2$3";tok("HYLine truncated
consti=r(7147);constn=r(2037);consts=r(1017);consta=r(6113);consto={fs:i.constants,os:n.constants};constl="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",c=/XXXXXX/,p=3,d=(o.O_CREAT||o.fs.O_CREAT)|(o.O_EXCL||o.fs.O_EXCL)|(o.O_RDWR||o.fs.O_RDWR),A=n.platform()==="win32",u=o.EBADF||o.os.errno.EBADF,m=o.ENOENT||o.os.errno.ENOENT,g=448,h=384,E="exit",y=[],C=i.rmdirSync.bind(i);letb=false;functionrimraf(e,t){returni.rm(e,{recursive:true},t)}functionFN_RIMRAF_SYNC(e){returni.rmSync(e,{recursive:true})}functiontmpName(e,t){constr=_parseArguments(e,t),n=r[0],s=r[1];try{_assertAndSanitizeOptions(n)}catch(e){returns(e)}leta=n.tries;(function_getUniqueName(){try{conste=_generateTmpName(n);i.stat(e,(function(t){if(!t){if(a-->0)return_getUniqueName();returns(newError("Could not get a unique tmp filename, max tries reached "+e))}s(null,e)}))}catch(e){s(e)}})()}functiontmpNameSync(e){constt=_parseArguments(e),r=t[0];_assertAndSanitizeOptions(r);letn=r.tries;do{conste=_generateTmpName(r);try{i.statSync(e)}catch(t){returne}}while(n-->0);thrownewError("Could not get a unique tmp filename, max tries reached")}functionfile(e,t){constr=_parseArguments(e,t),n=r[0],s=r[1];tmpName(n,(function_tmpNameCreated(e,t){if(e)returns(e);i.open(t,d,n.mode||h,(function_fileCreated(e,r){if(e)returns(e);if(n.discardDescriptor){returni.close(r,(function_discardCallback(e){returns(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{conste=n.discardDescriptor||n.detachDescriptor;s(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}functionfileSync(e){constt=_parseArguments(e),r=t[0];constn=r.discardDescriptor||r.detachDescriptor;consts=tmpNameSync(r);vara=i.openSync(s,d,r.mode||h);if(r.discardDescriptor){i.closeSync(a);a=undefined}return{name:s,fd:a,removeCallback:_prepareTmpFileRemoveCallback(s,n?-1:a,r,true)}}functiondir(e,t){constr=_parseArguments(e,t),n=r[0],s=r[1];tmpName(n,(function_tmpNameCreated(e,t){if(e)returns(e);i.mkdir(t,n.mode||g,(function_dirCreated(e){if(e)returns(e);s(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}functiondirSync(e){constt=_parseArguments(e),r=t[0];constn=tmpNameSync(r);i.mkdirSync(n,r.mode||g);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function_removeFileAsync(e,t){const_handler=function(e){if(e&&!_isENOENT(e)){returnt(e)}t()};if(0<=e[0])i.close(e[0],(function(){i.unlink(e[1],_handler)}));elsei.unlink(e[1],_handler)}function_removeFileSync(e){lett=null;try{if(0<=e[0])i.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throwe}finally{try{i.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throwt}}function_prepareTmpFileRemoveCallback(e,t,r,i){constn=_prepareRemoveCallback(_removeFileSync,[t,e],i);consts=_prepareRemoveCallback(_removeFileAsync,[t,e],i,n);if(!r.keep)y.unshift(n);returni?n:s}function_prepareTmpDirRemoveCallback(e,t,r){constn=t.unsafeCleanup?rimraf:i.rmdir.bind(i);consts=t.unsafeCleanup?FN_RIMRAF_SYNC:C;consta=_prepareRemoveCallback(s,e,r);consto=_prepareRemoveCallback(n,e,r,a);if(!t.keep)y.unshift(a);returnr?a:o}function_prepareRemoveCallback(e,t,r,i){letn=false;returnfunction_cleanupCallback(s){if(!n){consta=i||_cleanupCallback;consto=y.indexOf(a);if(o>=0)y.splice(o,1);n=true;if(r||e===C||e===FN_RIMRAF_SYNC){returne(t)}else{returne(t,s||function(){})}}}}function_garbageCollector(){if(!b)return;while(y.length){try{y[0]()}catch(e){}}}function_randomChars(e){lett=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(vari=0;i<e;i++){t.push(l[r[i]%l.length])}returnt.join("")}function_isBlank(e){returne===null||_isUndefined(e)||!e.trim()}function_isUndefined(e){returntypeofe==="undefined"}function_parseArguments(e,t){if(typeofe==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}constr={};for(consttofObject.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function_generateTmpName(e){constt=e.tmpdir;if(!_isUndefined(e.name))returns.join(t,e.dir,e.name);if(!_isUndefined(e.template))returns.join(t,e.dir,e.template).replace(c,_randomChars(6));constr=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");returns.join(t,e.dir,r)}function_assertAndSanitizeOptions(e){e.tmpdir=_getTmpDir(e);constt=e.tmpdir;if(!_isUndefined(e.name))_assertIsRelative(e.name,"name",t);if(!_isUndefined(e.dir))_assertIsRelative(e.dir,"dir",t);if(!_isUndefined(e.template)){_assertIsRelative(e.template,"template",t);if(!e.template.match(c))thrownewError(`Invalid template, found "${e.template}".`)}if(!_isUndefined(e.tries)&&isNaN(e.tries)||e.tries<0)thrownewError(`Invalid tries, found "${e.tries}".`);e.tries=_isUndefined(e.name)?e.tries||p:1;e.keep=!!e.keep;e.detachDescriptor=!!e.detachDescriptor;e.discardDescriptor=!!e.discardDescriptor;e.unsafeCleanup=!!e.unsafeCleanup;e.dir=_isUndefined(e.dir)?"":s.relative(t,_resolvePath(e.dir,t));e.template=_isUndefined(e.template)?unLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;constescape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");constnormalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");consti=[];constn=newUint8Array([13,10]);d=0;lets=false;for(const[t,a]ofe){if(typeofa==="string"){conste=N.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(a)}\r\n`);i.push(e);d+=e.byteLength}else{conste=N.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(a.name?`; filename="${escape(a.name)}"`:"")+"\r\n"+`Content-Type: ${a.type||"application/octet-stream"}\r\n\r\n`);i.push(e,a,n);if(typeofa.size==="number"){d+=e.byteLength+a.size+n.byteLength}else{s=true}}}consta=N.encode(`--${t}--`);i.push(a);d+=a.byteLength;if(s){d=null}p=e;c=asyncfunction*(){for(consteofi){if(e.stream){yield*e.stream()}else{yielde}}};A="multipart/form-data; boundary="+t}elseif(a(e)){p=e;d=e.size;if(e.type){A=e.type}}elseif(typeofe[Symbol.asyncIterator]==="function"){if(t){thrownewTypeError("keepalive")}if(n.isDisturbed(e)||e.locked){thrownewTypeError("Response body object should not be disturbed or locked")}i=einstanceofx?e:s(e)}if(typeofp==="string"||n.isBuffer(p)){d=Buffer.byteLength(p)}if(c!=null){lett;i=newx({asyncstart(){t=c(e)[Symbol.asyncIterator]()},asyncpull(e){const{value:r,done:n}=awaitt.next();if(n){queueMicrotask((()=>{e.close()}))}else{if(!b(i)){e.enqueue(newUint8Array(r))}}returne.desiredSize>0},asynccancel(e){awaitt.return()},type:undefined})}constu={stream:i,source:p,length:d};return[u,A]}functionsafelyExtractBody(e,t=false){if(!x){x=r(5356).ReadableStream}if(einstanceofx){C(!n.isDisturbed(e),"The body has already been consumed.");C(!e.locked,"The stream is locked.")}returnextractBody(e,t)}functioncloneBody(e){const[t,r]=e.stream.tee();consti=g(r,{transfer:[r]});const[,n]=i.tee();e.stream=t;return{stream:n,length:e.length,source:e.source}}asyncfunction*consumeBody(e){if(e){if(I(e)){yielde}else{constt=e.stream;if(n.isDisturbed(t)){thrownewTypeError("The body has already been consumed.")}if(t.locked){thrownewTypeError("The stream is locked.")}t[y]=true;yield*t}}}functionthrowIfAborted(e){if(e.aborted){thrownewm("The operation was aborted.","AbortError")}}functionbodyMixinMethods(e){constt={blob(){returnspecConsumeBody(this,(e=>{lett=bodyMimeType(this);if(t==="failure"){t=""}elseif(t){t=w(t)}returnnewh([e],{type:t})}),e)},arrayBuffer(){returnspecConsumeBody(this,(e=>newUint8Array(e).buffer),e)},text(){returnspecConsumeBody(this,utf8DecodeBytes,e)},json(){returnspecConsumeBody(this,parseJSONFromBytes,e)},asyncformData(){u.brandCheck(this,e);throwIfAborted(this[A]);constt=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){conste={};for(const[t,r]ofthis.headers)e[t.toLowerCase()]=r;constt=newd;letr;try{r=newi({headers:e,preservePath:true})}catch(e){thrownewm(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,i,n,s)=>{consta=[];if(n==="base64"||n.toLowerCase()==="base64"){letn="";r.on("data",(e=>{n+=e.toString().replace(/[\r\n]/gm,"");constt=n.length-n.length%4;a.push(Buffer.from(n.slice(0,t),"base64"));n=n.slice(t)}));r.on("end",(()=>{a.push(Buffer.from(n,"base64"));t.append(e,newS(a,i,{type:s}))}))}else{r.on("data",(e=>{a.push(e)}));r.on("end",(()=>{t.append(e,newS(a,i,{type:s}))}))}}));constn=newPromise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(newTypeError(e))))}));if(this.body!==null)forawait(consteofconsumeBody(this[A].body))r.write(e);r.end();awaitn;returnt}elseif(/application\/x-www-form-urlencoded/.test(t)){lete;try{lett="";constr=newTextDecoder("utf-8",{ignoreBOM:true});forawait(consteofconsumeBody(this[A].body)){if(!I(e)){thrownewTypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=newURLSearchParams(t)}catch(e){throwObject.assign(newTypeError,{cause:e})}constt=newd;for(const[r,i]ofe){t.append(r,i)}returnt}else{awaitPromise.resolve();throwIfAborted(this[A]);throwu.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};returnt}functionmixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}asyncfunctionspecConsumeBody(e,t,r){u.brandCheck(e,r);throwIfAborted(e[A]);if(bodyUnusable(e[A].body)){thrownewTypeError("Body is unusable")}consti=c();consterrorSteps=e=>i.reject(e);constsuccessSteps=e=>{try{i.resolve(t(e))}catch(e){errorSteps(e)}};if(e[A].body==null){successSteps(newUint8Array);returni.promise}awaitp(e[A].body,successSteps,errorSteps);returni.promise}functionbodyUnusable(e){returne!=null&&(e.stream.locked||n.isDisturbed(e.stream))}functionutf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}constt=R.decode(e);returnt}functionparseJSONFromBytes(e){returnJSON.parse(utf8DecodeBytes(e))}functionbodyMimeType(e){const{headersList:t}=e[A];constr=t.get("content-Line truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */s[n-4]=this.maskKey[0];s[n-3]=this.maskKey[1];s[n-2]=this.maskKey[2];s[n-1]=this.maskKey[3];s[1]=r;if(r===126){s.writeUInt16BE(t,2)}elseif(r===127){s[2]=s[3]=0;s.writeUIntBE(t,4,6)}s[1]|=128;for(lete=0;e<t;e++){s[n+e]=this.frameData[e]^this.maskKey[e%4]}returns}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},1688:(e,t,r)=>{"use strict";const{Writable:i}=r(2781);constn=r(7643);const{parserStates:s,opcodes:a,states:o,emptyBuffer:l}=r(9188);const{kReadyState:c,kSentClose:p,kResponse:d,kReceivedClose:A}=r(7578);const{isValidStatusCode:u,failWebsocketConnection:m,websocketMessageReceived:g}=r(5515);const{WebsocketFrameSend:h}=r(5444);constE={};E.ping=n.channel("undici:websocket:ping");E.pong=n.channel("undici:websocket:pong");classByteParserextendsi{#a=[];#o=0;#l=s.INFO;#c={};#p=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#a.push(e);this.#o+=e.length;this.run(r)}run(e){while(true){if(this.#l===s.INFO){if(this.#o<2){returne()}constt=this.consume(2);this.#c.fin=(t[0]&128)!==0;this.#c.opcode=t[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==a.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==a.BINARY&&this.#c.opcode!==a.TEXT){m(this.ws,"Invalid frame type was fragmented.");return}constr=t[1]&127;if(r<=125){this.#c.payloadLength=r;this.#l=s.READ_DATA}elseif(r===126){this.#l=s.PAYLOADLENGTH_16}elseif(r===127){this.#l=s.PAYLOADLENGTH_64}if(this.#c.fragmented&&r>125){m(this.ws,"Fragmented frame exceeded 125 bytes.");return}elseif((this.#c.opcode===a.PING||this.#c.opcode===a.PONG||this.#c.opcode===a.CLOSE)&&r>125){m(this.ws,"Payload length for control frame exceeded 125 bytes.");return}elseif(this.#c.opcode===a.CLOSE){if(r===1){m(this.ws,"Received close frame with a 1-byte body.");return}conste=this.consume(r);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[p]){conste=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);constt=newh(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),(e=>{if(!e){this.ws[p]=true}}))}this.ws[c]=o.CLOSING;this.ws[A]=true;this.end();return}elseif(this.#c.opcode===a.PING){constt=this.consume(r);if(!this.ws[A]){conste=newh(t);this.ws[d].socket.write(e.createFrame(a.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#l=s.INFO;if(this.#o>0){continue}else{e();return}}elseif(this.#c.opcode===a.PONG){constt=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#o>0){continue}else{e();return}}}elseif(this.#l===s.PAYLOADLENGTH_16){if(this.#o<2){returne()}constt=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0);this.#l=s.READ_DATA}elseif(this.#l===s.PAYLOADLENGTH_64){if(this.#o<8){returne()}constt=this.consume(8);constr=t.readUInt32BE(0);if(r>2**31-1){m(this.ws,"Received payload length > 2^31 bytes.");return}consti=t.readUInt32BE(4);this.#c.payloadLength=(r<<8)+i;this.#l=s.READ_DATA}elseif(this.#l===s.READ_DATA){if(this.#o<this.#c.payloadLength){returne()}elseif(this.#o>=this.#c.payloadLength){conste=this.consume(this.#c.payloadLength);this.#p.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===a.CONTINUATION){conste=Buffer.concat(this.#p);g(this.ws,this.#c.originalOpcode,e);this.#c={};this.#p.length=0}this.#l=s.INFO}}if(this.#o>0){continue}else{e();break}}}consume(e){if(e>this.#o){returnnull}elseif(e===0){returnl}if(this.#a[0].length===e){this.#o-=this.#a[0].length;returnthis.#a.shift()}constt=Buffer.allocUnsafe(e);letr=0;while(r!==e){consti=this.#a[0];const{length:n}=i;if(n+r===e){t.set(this.#a.shift(),r);break}elseif(n+r>e){t.set(i.subarray(0,e-r),r);this.#a[0]=i.subarray(e-r);break}else{t.set(this.#a.shift(),r);r+=i.length}}this.#o-=e;returnt}parseCloseBody(e,t){letr;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!u(r)){returnnull}return{code:r}}leti=t.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}if(r!==undefined&&!u(r)){returnnull}try{i=newTextDecoder("utf-8",{fatal:true}).decode(i)}catch{returnnull}return{code:r,reason:i}}getclosingInfo(){returnthis.#c.closeInfo}}e.exports={ByteParser:ByteParser}},7578:e=>{"use strict";e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},5515:(e,t,r)=>{"use strict";const{kReadyState:i,kController:n,kResponse:s,kBinaryType:a,kWebSocketURL:o}=r(7578);const{states:l,opcodes:c}=r(9188);const{MessageEvent:p,ErrorEvent:d}=r(2611);functionisEstablished(e){returne[i]===l.OPEN}functionisClosing(e){returne[i]===l.CLOSING}functionisClosed(e){returne[i]===l.CLOSED}functionfireEvent(e,t,r=Event,i){constn=newr(e,i);t.dispatchEvent(n)}functionwebsocketMessageReceived(e,t,r){if(e[i]!==l.OPEN){return}letn;if(t===c.TEXT){try{n=newTextDecoder("utf-8",{fatal:true}).decode(r)Line truncated
consta=s(79896);constl=s(70857);constc=s(16928);constp=s(76982);constd={fs:a.constants,os:l.constants};constu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",h=/XXXXXX/,A=3,g=(d.O_CREAT||d.fs.O_CREAT)|(d.O_EXCL||d.fs.O_EXCL)|(d.O_RDWR||d.fs.O_RDWR),y=l.platform()==="win32",b=d.EBADF||d.os.errno.EBADF,v=d.ENOENT||d.os.errno.ENOENT,C=448,w=384,S="exit",B=[],I=a.rmdirSync.bind(a);letx=false;functionrimraf(r,i){returna.rm(r,{recursive:true},i)}functionFN_RIMRAF_SYNC(r){returna.rmSync(r,{recursive:true})}functiontmpName(r,i){consts=_parseArguments(r,i),l=s[0],c=s[1];_assertAndSanitizeOptions(l,(function(r,i){if(r)returnc(r);lets=i.tries;(function_getUniqueName(){try{constr=_generateTmpName(i);a.stat(r,(function(i){if(!i){if(s-->0)return_getUniqueName();returnc(newError("Could not get a unique tmp filename, max tries reached "+r))}c(null,r)}))}catch(r){c(r)}})()}))}functiontmpNameSync(r){consti=_parseArguments(r),s=i[0];constl=_assertAndSanitizeOptionsSync(s);letc=l.tries;do{constr=_generateTmpName(l);try{a.statSync(r)}catch(i){returnr}}while(c-->0);thrownewError("Could not get a unique tmp filename, max tries reached")}functionfile(r,i){consts=_parseArguments(r,i),l=s[0],c=s[1];tmpName(l,(function_tmpNameCreated(r,i){if(r)returnc(r);a.open(i,g,l.mode||w,(function_fileCreated(r,s){if(r)returnc(r);if(l.discardDescriptor){returna.close(s,(function_discardCallback(r){returnc(r,i,undefined,_prepareTmpFileRemoveCallback(i,-1,l,false))}))}else{constr=l.discardDescriptor||l.detachDescriptor;c(null,i,s,_prepareTmpFileRemoveCallback(i,r?-1:s,l,false))}}))}))}functionfileSync(r){consti=_parseArguments(r),s=i[0];constl=s.discardDescriptor||s.detachDescriptor;constc=tmpNameSync(s);letp=a.openSync(c,g,s.mode||w);if(s.discardDescriptor){a.closeSync(p);p=undefined}return{name:c,fd:p,removeCallback:_prepareTmpFileRemoveCallback(c,l?-1:p,s,true)}}functiondir(r,i){consts=_parseArguments(r,i),l=s[0],c=s[1];tmpName(l,(function_tmpNameCreated(r,i){if(r)returnc(r);a.mkdir(i,l.mode||C,(function_dirCreated(r){if(r)returnc(r);c(null,i,_prepareTmpDirRemoveCallback(i,l,false))}))}))}functiondirSync(r){consti=_parseArguments(r),s=i[0];constl=tmpNameSync(s);a.mkdirSync(l,s.mode||C);return{name:l,removeCallback:_prepareTmpDirRemoveCallback(l,s,true)}}function_removeFileAsync(r,i){const_handler=function(r){if(r&&!_isENOENT(r)){returni(r)}i()};if(0<=r[0])a.close(r[0],(function(){a.unlink(r[1],_handler)}));elsea.unlink(r[1],_handler)}function_removeFileSync(r){leti=null;try{if(0<=r[0])a.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throwr}finally{try{a.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))i=r}}if(i!==null){throwi}}function_prepareTmpFileRemoveCallback(r,i,s,a){constl=_prepareRemoveCallback(_removeFileSync,[i,r],a);constc=_prepareRemoveCallback(_removeFileAsync,[i,r],a,l);if(!s.keep)B.unshift(l);returna?l:c}function_prepareTmpDirRemoveCallback(r,i,s){constl=i.unsafeCleanup?rimraf:a.rmdir.bind(a);constc=i.unsafeCleanup?FN_RIMRAF_SYNC:I;constp=_prepareRemoveCallback(c,r,s);constd=_prepareRemoveCallback(l,r,s,p);if(!i.keep)B.unshift(p);returns?p:d}function_prepareRemoveCallback(r,i,s,a){letl=false;returnfunction_cleanupCallback(c){if(!l){constp=a||_cleanupCallback;constd=B.indexOf(p);if(d>=0)B.splice(d,1);l=true;if(s||r===I||r===FN_RIMRAF_SYNC){returnr(i)}else{returnr(i,c||function(){})}}}}function_garbageCollector(){if(!x)return;while(B.length){try{B[0]()}catch(r){}}}function_randomChars(r){leti=[],s=null;try{s=p.randomBytes(r)}catch(i){s=p.pseudoRandomBytes(r)}for(leta=0;a<r;a++){i.push(u[s[a]%u.length])}returni.join("")}function_isUndefined(r){returntypeofr==="undefined"}function_parseArguments(r,i){if(typeofr==="function"){return[{},r]}if(_isUndefined(r)){return[{},i]}consts={};for(constiofObject.getOwnPropertyNames(r)){s[i]=r[i]}return[s,i]}function_resolvePath(r,i,s){constl=c.isAbsolute(r)?r:c.join(i,r);a.stat(l,(function(r){if(r){a.realpath(c.dirname(l),(function(r,i){if(r)returns(r);s(null,c.join(i,c.basename(l)))}))}else{a.realpath(c,s)}}))}function_resolvePathSync(r,i){consts=c.isAbsolute(r)?r:c.join(i,r);try{a.statSync(s);returna.realpathSync(s)}catch(r){consti=a.realpathSync(c.dirname(s));returnc.join(i,c.basename(s))}}function_generateTmpName(r){consti=r.tmpdir;if(!_isUndefined(r.name)){returnc.join(i,r.dir,r.name)}if(!_isUndefined(r.template)){returnc.join(i,r.dir,r.template).replace(h,_randomChars(6))}consts=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.postfix:""].join("");returnc.join(i,r.dir,s)}function_assertOptionsBase(r){if(!_isUndefined(r.name)){consti=r.name;if(c.isAbsolute(i))thrownewError(`name option must not contain an absolute path, found "${i}".`);consts=c.basename(i);if(s===".."||s==="."||s!==i)thrownewError(`name option must not contain a path, found "${i}".`)}if(!_isUndefined(r.template)&&!r.template.match(h)){thrownewError(`Invalid templ
Line truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;constescape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");constnormalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");consta=[];constl=newUint8Array([13,10]);g=0;letc=false;for(const[i,p]ofr){if(typeofp==="string"){constr=O.encode(s+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);a.push(r);g+=r.byteLength}else{constr=O.encode(`${s}; name="${escape(normalizeLinefeeds(i))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);a.push(r,p,l);if(typeofp.size==="number"){g+=r.byteLength+p.size+l.byteLength}else{c=true}}}constp=O.encode(`--${i}--`);a.push(p);g+=p.byteLength;if(c){g=null}A=r;h=asyncfunction*(){for(constrofa){if(r.stream){yield*r.stream()}else{yieldr}}};y="multipart/form-data; boundary="+i}elseif(p(r)){A=r;g=r.size;if(r.type){y=r.type}}elseif(typeofr[Symbol.asyncIterator]==="function"){if(i){thrownewTypeError("keepalive")}if(l.isDisturbed(r)||r.locked){thrownewTypeError("Response body object should not be disturbed or locked")}a=rinstanceofD?r:c(r)}if(typeofA==="string"||l.isBuffer(A)){g=Buffer.byteLength(A)}if(h!=null){leti;a=newD({asyncstart(){i=h(r)[Symbol.asyncIterator]()},asyncpull(r){const{value:s,done:l}=awaiti.next();if(l){queueMicrotask((()=>{r.close()}))}else{if(!x(a)){r.enqueue(newUint8Array(s))}}returnr.desiredSize>0},asynccancel(r){awaiti.return()},type:undefined})}constb={stream:a,source:A,length:g};return[b,y]}functionsafelyExtractBody(r,i=false){if(!D){D=s(63774).ReadableStream}if(rinstanceofD){I(!l.isDisturbed(r),"The body has already been consumed.");I(!r.locked,"The stream is locked.")}returnextractBody(r,i)}functioncloneBody(r){const[i,s]=r.stream.tee();consta=C(s,{transfer:[s]});const[,l]=a.tee();r.stream=i;return{stream:l,length:r.length,source:r.source}}asyncfunction*consumeBody(r){if(r){if(N(r)){yieldr}else{consti=r.stream;if(l.isDisturbed(i)){thrownewTypeError("The body has already been consumed.")}if(i.locked){thrownewTypeError("The stream is locked.")}i[B]=true;yield*i}}}functionthrowIfAborted(r){if(r.aborted){thrownewv("The operation was aborted.","AbortError")}}functionbodyMixinMethods(r){consti={blob(){returnspecConsumeBody(this,(r=>{leti=bodyMimeType(this);if(i==="failure"){i=""}elseif(i){i=k(i)}returnneww([r],{type:i})}),r)},arrayBuffer(){returnspecConsumeBody(this,(r=>newUint8Array(r).buffer),r)},text(){returnspecConsumeBody(this,utf8DecodeBytes,r)},json(){returnspecConsumeBody(this,parseJSONFromBytes,r)},asyncformData(){b.brandCheck(this,r);throwIfAborted(this[y]);consti=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){constr={};for(const[i,s]ofthis.headers)r[i.toLowerCase()]=s;consti=newg;lets;try{s=newa({headers:r,preservePath:true})}catch(r){thrownewv(`${r}`,"AbortError")}s.on("field",((r,s)=>{i.append(r,s)}));s.on("file",((r,s,a,l,c)=>{constp=[];if(l==="base64"||l.toLowerCase()==="base64"){letl="";s.on("data",(r=>{l+=r.toString().replace(/[\r\n]/gm,"");consti=l.length-l.length%4;p.push(Buffer.from(l.slice(0,i),"base64"));l=l.slice(i)}));s.on("end",(()=>{p.push(Buffer.from(l,"base64"));i.append(r,newP(p,a,{type:c}))}))}else{s.on("data",(r=>{p.push(r)}));s.on("end",(()=>{i.append(r,newP(p,a,{type:c}))}))}}));constl=newPromise(((r,i)=>{s.on("finish",r);s.on("error",(r=>i(newTypeError(r))))}));if(this.body!==null)forawait(constrofconsumeBody(this[y].body))s.write(r);s.end();awaitl;returni}elseif(/application\/x-www-form-urlencoded/.test(i)){letr;try{leti="";consts=newTextDecoder("utf-8",{ignoreBOM:true});forawait(constrofconsumeBody(this[y].body)){if(!N(r)){thrownewTypeError("Expected Uint8Array chunk")}i+=s.decode(r,{stream:true})}i+=s.decode();r=newURLSearchParams(i)}catch(r){throwObject.assign(newTypeError,{cause:r})}consti=newg;for(const[s,a]ofr){i.append(s,a)}returni}else{awaitPromise.resolve();throwIfAborted(this[y]);throwb.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};returni}functionmixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}asyncfunctionspecConsumeBody(r,i,s){b.brandCheck(r,s);throwIfAborted(r[y]);if(bodyUnusable(r[y].body)){thrownewTypeError("Body is unusable")}consta=h();consterrorSteps=r=>a.reject(r);constsuccessSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[y].body==null){successSteps(newUint8Array);returna.promise}awaitA(r[y].body,successSteps,errorSteps);returna.promise}functionbodyUnusable(r){returnr!=null&&(r.stream.locked||l.isDisturbed(r.stream))}functionutf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}consti=L.decode(r);returni}functionparseJSONFromBytes(r){returnJSON.parse(utf8DecodeBytes(r))}functionbodyMimeType(r){const{headersList:i}=r[y];consts=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */c[l-4]=this.maskKey[0];c[l-3]=this.maskKey[1];c[l-2]=this.maskKey[2];c[l-1]=this.maskKey[3];c[1]=s;if(s===126){c.writeUInt16BE(i,2)}elseif(s===127){c[2]=c[3]=0;c.writeUIntBE(i,4,6)}c[1]|=128;for(letr=0;r<i;r++){c[l+r]=this.frameData[r]^this.maskKey[r%4]}returnc}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(r,i,s)=>{"use strict";const{Writable:a}=s(2203);constl=s(31637);const{parserStates:c,opcodes:p,states:d,emptyBuffer:u}=s(45913);const{kReadyState:h,kSentClose:A,kResponse:g,kReceivedClose:y}=s(62933);const{isValidStatusCode:b,failWebsocketConnection:v,websocketMessageReceived:C}=s(3574);const{WebsocketFrameSend:w}=s(31237);constS={};S.ping=l.channel("undici:websocket:ping");S.pong=l.channel("undici:websocket:pong");classByteParserextendsa{#o=[];#a=0;#l=c.INFO;#c={};#p=[];constructor(r){super();this.ws=r}_write(r,i,s){this.#o.push(r);this.#a+=r.length;this.run(s)}run(r){while(true){if(this.#l===c.INFO){if(this.#a<2){returnr()}consti=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==p.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==p.BINARY&&this.#c.opcode!==p.TEXT){v(this.ws,"Invalid frame type was fragmented.");return}consts=i[1]&127;if(s<=125){this.#c.payloadLength=s;this.#l=c.READ_DATA}elseif(s===126){this.#l=c.PAYLOADLENGTH_16}elseif(s===127){this.#l=c.PAYLOADLENGTH_64}if(this.#c.fragmented&&s>125){v(this.ws,"Fragmented frame exceeded 125 bytes.");return}elseif((this.#c.opcode===p.PING||this.#c.opcode===p.PONG||this.#c.opcode===p.CLOSE)&&s>125){v(this.ws,"Payload length for control frame exceeded 125 bytes.");return}elseif(this.#c.opcode===p.CLOSE){if(s===1){v(this.ws,"Received close frame with a 1-byte body.");return}constr=this.consume(s);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[A]){constr=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);consti=neww(r);this.ws[g].socket.write(i.createFrame(p.CLOSE),(r=>{if(!r){this.ws[A]=true}}))}this.ws[h]=d.CLOSING;this.ws[y]=true;this.end();return}elseif(this.#c.opcode===p.PING){consti=this.consume(s);if(!this.ws[y]){constr=neww(i);this.ws[g].socket.write(r.createFrame(p.PONG));if(S.ping.hasSubscribers){S.ping.publish({payload:i})}}this.#l=c.INFO;if(this.#a>0){continue}else{r();return}}elseif(this.#c.opcode===p.PONG){consti=this.consume(s);if(S.pong.hasSubscribers){S.pong.publish({payload:i})}if(this.#a>0){continue}else{r();return}}}elseif(this.#l===c.PAYLOADLENGTH_16){if(this.#a<2){returnr()}consti=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#l=c.READ_DATA}elseif(this.#l===c.PAYLOADLENGTH_64){if(this.#a<8){returnr()}consti=this.consume(8);consts=i.readUInt32BE(0);if(s>2**31-1){v(this.ws,"Received payload length > 2^31 bytes.");return}consta=i.readUInt32BE(4);this.#c.payloadLength=(s<<8)+a;this.#l=c.READ_DATA}elseif(this.#l===c.READ_DATA){if(this.#a<this.#c.payloadLength){returnr()}elseif(this.#a>=this.#c.payloadLength){constr=this.consume(this.#c.payloadLength);this.#p.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===p.CONTINUATION){constr=Buffer.concat(this.#p);C(this.ws,this.#c.originalOpcode,r);this.#c={};this.#p.length=0}this.#l=c.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){returnnull}elseif(r===0){returnu}if(this.#o[0].length===r){this.#a-=this.#o[0].length;returnthis.#o.shift()}consti=Buffer.allocUnsafe(r);lets=0;while(s!==r){consta=this.#o[0];const{length:l}=a;if(l+s===r){i.set(this.#o.shift(),s);break}elseif(l+s>r){i.set(a.subarray(0,r-s),s);this.#o[0]=a.subarray(r-s);break}else{i.set(this.#o.shift(),s);s+=a.length}}this.#a-=r;returni}parseCloseBody(r,i){lets;if(i.length>=2){s=i.readUInt16BE(0)}if(r){if(!b(s)){returnnull}return{code:s}}leta=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(s!==undefined&&!b(s)){returnnull}try{a=newTextDecoder("utf-8",{fatal:true}).decode(a)}catch{returnnull}return{code:s,reason:a}}getclosingInfo(){returnthis.#c.closeInfo}}r.exports={ByteParser:ByteParser}},62933:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(r,i,s)=>{"use strict";const{kReadyState:a,kController:l,kResponse:c,kBinaryType:p,kWebSocketURL:d}=s(62933);const{states:u,opcodes:h}=s(45913);const{MessageEvent:A,ErrorEvent:g}=s(46255);functionisEstablished(r){returnr[a]===u.OPEN}functionisClosing(r){returnr[a]===u.CLOSING}functionisClosed(r){returnr[a]===u.CLOSED}functionfireEvent(r,i,s=Event,a){constl=news(r,a);i.dispatchEvent(l)}functionwebsocketMessageReceived(r,i,s){if(r[a]!==u.OPEN){return}letl;if(i===h.TEXT){try{l=newTextDecoder("utf-8",{fatal:true}).Line truncated
vara=s(39023).inherits;varl=s(47544).ZipArchiveOutputStream;varc=s(47544).ZipArchiveEntry;varp=s(53296);vard=r.exports=function(r){if(!(thisinstanceofd)){returnnewd(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeofr.level==="number"&&r.level>=0){r.zlib.level=r.level;deleter.level}if(!r.forceZip64&&typeofr.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,l);d.prototype._normalizeFileData=function(r){r=p.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});vari=r.type==="directory";vars=r.type==="symlink";if(r.name){r.name=p.sanitizePath(r.name);if(!s&&r.name.slice(-1)==="/"){i=true;r.type="directory"}elseif(i){r.name+="/"}}if(i||s){r.store=true}r.date=p.dateify(r.date);returnr};d.prototype.entry=function(r,i,s){if(typeofs!=="function"){s=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){s(newError(i.type+" entries not currently supported"));return}if(typeofi.name!=="string"||i.name.length===0){s(newError("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeofi.linkname!=="string"){s(newError("entry linkname must be a non-empty string value when type equals symlink"));return}vara=newc(i.name);a.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){a.setName(i.name,true)}if(i.store){a.setMethod(0)}if(i.comment.length>0){a.setComment(i.comment)}if(i.type==="symlink"&&typeofi.mode!=="number"){i.mode=40960}if(typeofi.mode==="number"){if(i.type==="symlink"){i.mode|=40960}a.setUnixMode(i.mode)}if(i.type==="symlink"&&typeofi.linkname==="string"){r=Buffer.from(i.linkname)}returnl.prototype.entry.call(this,a,r,s)};d.prototype.finalize=function(){this.finish()}},40788:function(r,i,s){"use strict";vara=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;varl=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"inl?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){returni[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});varl=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});varc=this&&this.__importStar||function(){varownKeys=function(r){ownKeys=Object.getOwnPropertyNames||function(r){vari=[];for(varsinr)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;returni};returnownKeys(r)};returnfunction(r){if(r&&r.__esModule)returnr;vari={};if(r!=null)for(vars=ownKeys(r),c=0;c<s.length;c++)if(s[c]!=="default")a(i,r,s[c]);l(i,r);returni}}();varp=this&&this.__awaiter||function(r,i,s,a){functionadopt(r){returnrinstanceofs?r:news((function(i){i(r)}))}returnnew(s||(s=Promise))((function(s,l){functionfulfilled(r){try{step(a.next(r))}catch(r){l(r)}}functionrejected(r){try{step(a["throw"](r))}catch(r){l(r)}}functionstep(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.builderNodeEnvPrefix=void0;i.getInputs=getInputs;i.getBuilderName=getBuilderName;i.getCreateArgs=getCreateArgs;i.getAppendArgs=getAppendArgs;i.getInspectArgs=getInspectArgs;i.getVersion=getVersion;constd=c(s(76982));constu=c(s(37484));consth=s(73490);constA=s(23651);i.builderNodeEnvPrefix="BUILDER_NODE";constg="--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host";functiongetInputs(){returnp(this,void0,void0,(function*(){return{version:u.getInput("version"),name:yieldgetBuilderName(u.getInput("name"),u.getInput("driver")||"docker-container"),driver:u.getInput("driver")||"docker-container",driverOpts:A.Util.getInputList("driver-opts",{ignoreComma:true,quote:false}),buildkitdFlags:u.getInput("buildkitd-flags"),platforms:A.Util.getInputList("platforms"),install:u.getBooleanInput("install"),use:u.getBooleanInput("use"),endpoint:u.getInput("endpoint"),buildkitdConfig:u.getInput("buildkitd-config")||u.getInput("config"),buildkitdConfigInline:u.getInput("buildkitd-config-inline")||u.getInput("config-inline"),append:u.getInput("append"),keepState:u.getBooleanInput("keep-state"),cacheBinary:u.getBooleanInput("cache-binary"),cleanup:u.getBooleanInput("cleanup")}}))}functiongetBuilderName(r,i){returnp(this,void0,void0,(function*(){returni=="docker"?yieldh.Docker.context():r||`builder-${d.randomUUID()}`}))}functiongetCreateArgs(r,i){returnp(this,void0,void0,(function*(){consts=["create","--name",r.name,"--driver",r.driver];if(yieldi.buildx.versionSatisfies(">=0.3.0")){yieldA.Util.asyncForEach(r.driverOpts,(r=>p(this,void0,void0,(function*(){s.push("--driver-opt",r)}))));if(r.buildkitdFlags){s.push("--buildkitd-flags",r.buildLine truncated
(()=>{vare={650:e=>{varr=Object.prototype.toString;varn=typeofBuffer.alloc==="function"&&typeofBuffer.allocUnsafe==="function"&&typeofBuffer.from==="function";functionisArrayBuffer(e){returnr.call(e).slice(8,-1)==="ArrayBuffer"}functionfromArrayBuffer(e,r,t){r>>>=0;varo=e.byteLength-r;if(o<0){thrownewRangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){thrownewRangeError("'length' is out of bounds")}}returnn?Buffer.from(e.slice(r,r+t)):newBuffer(newUint8Array(e.slice(r,r+t)))}functionfromString(e,r){if(typeofr!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){thrownewTypeError('"encoding" must be a valid string encoding')}returnn?Buffer.from(e,r):newBuffer(e,r)}functionbufferFrom(e,r,t){if(typeofe==="number"){thrownewTypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){returnfromArrayBuffer(e,r,t)}if(typeofe==="string"){returnfromString(e,r)}returnn?Buffer.from(e):newBuffer(e)}e.exports=bufferFrom},274:(e,r,n)=>{vart=n(339);varo=Object.prototype.hasOwnProperty;vari=typeofMap!=="undefined";functionArraySet(){this._array=[];this._set=i?newMap:Object.create(null)}ArraySet.fromArray=functionArraySet_fromArray(e,r){varn=newArraySet;for(vart=0,o=e.length;t<o;t++){n.add(e[t],r)}returnn};ArraySet.prototype.size=functionArraySet_size(){returni?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=functionArraySet_add(e,r){varn=i?e:t.toSetString(e);vara=i?this.has(e):o.call(this._set,n);varu=this._array.length;if(!a||r){this._array.push(e)}if(!a){if(i){this._set.set(e,u)}else{this._set[n]=u}}};ArraySet.prototype.has=functionArraySet_has(e){if(i){returnthis._set.has(e)}else{varr=t.toSetString(e);returno.call(this._set,r)}};ArraySet.prototype.indexOf=functionArraySet_indexOf(e){if(i){varr=this._set.get(e);if(r>=0){returnr}}else{varn=t.toSetString(e);if(o.call(this._set,n)){returnthis._set[n]}}thrownewError('"'+e+'" is not in the set.')};ArraySet.prototype.at=functionArraySet_at(e){if(e>=0&&e<this._array.length){returnthis._array[e]}thrownewError("No element indexed by "+e)};ArraySet.prototype.toArray=functionArraySet_toArray(){returnthis._array.slice()};r.I=ArraySet},449:(e,r,n)=>{vart=n(190);varo=5;vari=1<<o;vara=i-1;varu=i;functiontoVLQSigned(e){returne<0?(-e<<1)+1:(e<<1)+0}functionfromVLQSigned(e){varr=(e&1)===1;varn=e>>1;returnr?-n:n}r.encode=functionbase64VLQ_encode(e){varr="";varn;vari=toVLQSigned(e);do{n=i&a;i>>>=o;if(i>0){n|=u}r+=t.encode(n)}while(i>0);returnr};r.decode=functionbase64VLQ_decode(e,r,n){vari=e.length;vars=0;varl=0;varc,p;do{if(r>=i){thrownewError("Expected more digits in base 64 VLQ value.")}p=t.decode(e.charCodeAt(r++));if(p===-1){thrownewError("Invalid base64 digit: "+e.charAt(r-1))}c=!!(p&u);p&=a;s=s+(p<<l);l+=o}while(c);n.value=fromVLQSigned(s);n.rest=r}},190:(e,r)=>{varn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length){returnn[e]}thrownewTypeError("Must be between 0 and 63: "+e)};r.decode=function(e){varr=65;varn=90;vart=97;varo=122;vari=48;vara=57;varu=43;vars=47;varl=26;varc=52;if(r<=e&&e<=n){returne-r}if(t<=e&&e<=o){returne-t+l}if(i<=e&&e<=a){returne-i+c}if(e==u){return62}if(e==s){return63}return-1}},345:(e,r)=>{r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;functionrecursiveSearch(e,n,t,o,i,a){varu=Math.floor((n-e)/2)+e;vars=i(t,o[u],true);if(s===0){returnu}elseif(s>0){if(n-u>1){returnrecursiveSearch(u,n,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){returnn<o.length?n:-1}else{returnu}}else{if(u-e>1){returnrecursiveSearch(e,u,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){returnu}else{returne<0?-1:e}}}r.search=functionsearch(e,n,t,o){if(n.length===0){return-1}vari=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0){return-1}while(i-1>=0){if(t(n[i],n[i-1],true)!==0){break}--i}returni}},680:(e,r,n)=>{vart=n(339);functiongeneratedPositionAfter(e,r){varn=e.generatedLine;varo=r.generatedLine;vari=e.generatedColumn;vara=r.generatedColumn;returno>n||o==n&&a>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}functionMappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=functionMappingList_forEach(e,r){this._array.forEach(e,r)};MappingList.prototype.add=functionMappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=functionMappingList_toArray(){if(!this._sorted){this._array.sort(t.compareByGeneratedPositionsInflated);this._sorted=true}returnthis._array};r.H=MappingList},758:(e,r)=>{functionswap(e,r,n){vart=e[r];e[r]=e[n];e[n]=t}functionrandomIntInRange(e,r){returnMath.round(e+Math.random()*(r-e))}functiondoQuickSort(e,r,n,t){if(n<t){varo=randomIntInRange(n,t);vari=n-1;swap(e,o,t);vara=e[t];for(varu=n;u<t;u++){if(r(e[u],Line truncated
(()=>{vare={296:e=>{varr=Object.prototype.toString;varn=typeofBuffer!=="undefined"&&typeofBuffer.alloc==="function"&&typeofBuffer.allocUnsafe==="function"&&typeofBuffer.from==="function";functionisArrayBuffer(e){returnr.call(e).slice(8,-1)==="ArrayBuffer"}functionfromArrayBuffer(e,r,t){r>>>=0;varo=e.byteLength-r;if(o<0){thrownewRangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){thrownewRangeError("'length' is out of bounds")}}returnn?Buffer.from(e.slice(r,r+t)):newBuffer(newUint8Array(e.slice(r,r+t)))}functionfromString(e,r){if(typeofr!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){thrownewTypeError('"encoding" must be a valid string encoding')}returnn?Buffer.from(e,r):newBuffer(e,r)}functionbufferFrom(e,r,t){if(typeofe==="number"){thrownewTypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){returnfromArrayBuffer(e,r,t)}if(typeofe==="string"){returnfromString(e,r)}returnn?Buffer.from(e):newBuffer(e)}e.exports=bufferFrom},599:(e,r,n)=>{e=n.nmd(e);vart=n(927).SourceMapConsumer;varo=n(928);vari;try{i=n(896);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}vara=n(296);functiondynamicRequire(e,r){returne.require(r)}varu=false;vars=false;varl=false;varc="auto";varp={};varf={};varg=/^data:application\/json[^,]+base64,/;vard=[];varh=[];functionisInBrowser(){if(c==="browser")returntrue;if(c==="node")returnfalse;returntypeofwindow!=="undefined"&&typeofXMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}functionhasGlobalProcessEventEmitter(){returntypeofprocess==="object"&&process!==null&&typeofprocess.on==="function"}functionglobalProcessVersion(){if(typeofprocess==="object"&&process!==null){returnprocess.version}else{return""}}functionglobalProcessStderr(){if(typeofprocess==="object"&&process!==null){returnprocess.stderr}}functionglobalProcessExit(e){if(typeofprocess==="object"&&process!==null&&typeofprocess.exit==="function"){returnprocess.exit(e)}}functionhandlerExec(e){returnfunction(r){for(varn=0;n<e.length;n++){vart=e[n](r);if(t){returnt}}returnnull}}varm=handlerExec(d);d.push((function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,(function(e,r){returnr?"":"/"}))}if(einp){returnp[e]}varr="";try{if(!i){varn=newXMLHttpRequest;n.open("GET",e,false);n.send(null);if(n.readyState===4&&n.status===200){r=n.responseText}}elseif(i.existsSync(e)){r=i.readFileSync(e,"utf8")}}catch(e){}returnp[e]=r}));functionsupportRelativeURL(e,r){if(!e)returnr;varn=o.dirname(e);vart=/^\w+:\/\/[^\/]*/.exec(n);vari=t?t[0]:"";vara=n.slice(i.length);if(i&&/^\/\w\:/.test(a)){i+="/";returni+o.resolve(n.slice(i.length),r).replace(/\\/g,"/")}returni+o.resolve(n.slice(i.length),r)}functionretrieveSourceMapURL(e){varr;if(isInBrowser()){try{varn=newXMLHttpRequest;n.open("GET",e,false);n.send(null);r=n.readyState===4?n.responseText:null;vart=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t){returnt}}catch(e){}}r=m(e);varo=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;vari,a;while(a=o.exec(r))i=a;if(!i)returnnull;returni[1]}varv=handlerExec(h);h.push((function(e){varr=retrieveSourceMapURL(e);if(!r)returnnull;varn;if(g.test(r)){vart=r.slice(r.indexOf(",")+1);n=a(t,"base64").toString();r=e}else{r=supportRelativeURL(e,r);n=m(r)}if(!n){returnnull}return{url:r,map:n}}));functionmapSourcePosition(e){varr=f[e.source];if(!r){varn=v(e.source);if(n){r=f[e.source]={url:n.url,map:newt(n.map)};if(r.map.sourcesContent){r.map.sources.forEach((function(e,n){vart=r.map.sourcesContent[n];if(t){varo=supportRelativeURL(r.url,e);p[o]=t}}))}}else{r=f[e.source]={url:null,map:null}}}if(r&&r.map&&typeofr.map.originalPositionFor==="function"){varo=r.map.originalPositionFor(e);if(o.source!==null){o.source=supportRelativeURL(r.url,o.source);returno}}returne}functionmapEvalOrigin(e){varr=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){varn=mapSourcePosition({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}r=/^eval at ([^(]+) \((.+)\)$/.exec(e);if(r){return"eval at "+r[1]+" ("+mapEvalOrigin(r[2])+")"}returne}functionCallSiteToString(){vare;varr="";if(this.isNative()){r="native"}else{e=this.getScriptNameOrSourceURL();if(!e&&this.isEval()){r=this.getEvalOrigin();r+=", "}if(e){r+=e}else{r+="<anonymous>"}varn=this.getLineNumber();if(n!=null){r+=":"+n;vart=this.getColumnNumber();if(t){r+=":"+t}}}varo="";vari=this.getFunctionName();vara=true;varu=this.isConstructor();vars=!(this.isToplevel()||u);if(s){varl=this.getTypeName();if(l==="[object Object]"){l="null"}varc=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"<anonymous>")}}elseif(u){o+="new "+(i||"<aLine truncated
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.