mirror of
https://github.com/docker/setup-docker-action.git
synced 2026-10-21 16:56:12 +02:00
Merge pull request #212 from crazy-max/esm
switch to ESM and update config/test wiring
This commit is contained in:
17 files changed
+1308
-3550
No files matched your search
+1
-2
@@ -6,6 +6,5 @@
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"bracketSpacing": false,
|
||||
"arrowParens": "avoid",
|
||||
"parser": "typescript"
|
||||
"arrowParens": "avoid"
|
||||
}
|
||||
+16
-15
@@ -1,8 +1,8 @@
|
||||
import {beforeEach, describe, expect, test} from '@jest/globals';
|
||||
import {beforeEach, describe, expect, test} from 'vitest';
|
||||
import * as os from 'os';
|
||||
import * as path from 'path';
|
||||
|
||||
import * as context from '../src/context';
|
||||
import * as context from '../src/context.js';
|
||||
|
||||
describe('getInputs', () => {
|
||||
beforeEach(() => {
|
||||
@@ -15,7 +15,7 @@ describe('getInputs', () => {
|
||||
});
|
||||
|
||||
// prettier-ignore
|
||||
test.each([
|
||||
const cases: [number, Map<string, string>, context.Inputs][] = [
|
||||
[
|
||||
0,
|
||||
new Map<string, string>([
|
||||
@@ -35,7 +35,7 @@ describe('getInputs', () => {
|
||||
setHost: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
1,
|
||||
@@ -59,7 +59,7 @@ describe('getInputs', () => {
|
||||
setHost: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
2,
|
||||
@@ -79,7 +79,7 @@ describe('getInputs', () => {
|
||||
setHost: true,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
3,
|
||||
@@ -101,7 +101,7 @@ describe('getInputs', () => {
|
||||
setHost: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
4,
|
||||
@@ -121,7 +121,7 @@ describe('getInputs', () => {
|
||||
setHost: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
5,
|
||||
@@ -142,7 +142,7 @@ describe('getInputs', () => {
|
||||
rootless: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
6,
|
||||
@@ -163,7 +163,7 @@ describe('getInputs', () => {
|
||||
rootless: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
7,
|
||||
@@ -183,7 +183,7 @@ describe('getInputs', () => {
|
||||
rootless: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
8,
|
||||
@@ -203,7 +203,7 @@ describe('getInputs', () => {
|
||||
rootless: true,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
[
|
||||
9,
|
||||
@@ -226,10 +226,11 @@ describe('getInputs', () => {
|
||||
setHost: false,
|
||||
runtimeBasedir: path.join(os.homedir(), `setup-docker-action`),
|
||||
githubToken: '',
|
||||
} as context.Inputs
|
||||
}
|
||||
],
|
||||
])(
|
||||
'[%d] given %p as inputs, returns %p',
|
||||
];
|
||||
test.each(cases)(
|
||||
'[%d] given %o as inputs, returns %o',
|
||||
async (num: number, inputs: Map<string, string>, expected: context.Inputs) => {
|
||||
inputs.forEach((value: string, name: string) => {
|
||||
setInput(name, value);
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-docker-action-'));
|
||||
|
||||
process.env = Object.assign({}, process.env, {
|
||||
TEMP: tmpDir,
|
||||
GITHUB_REPOSITORY: 'docker/setup-docker-action',
|
||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
||||
});
|
||||
+1
-1
@@ -74,7 +74,7 @@ FROM deps AS test
|
||||
RUN --mount=type=bind,target=.,rw \
|
||||
--mount=type=cache,target=/src/.yarn/cache \
|
||||
--mount=type=cache,target=/src/node_modules \
|
||||
yarn run test --coverage --coverageDirectory=/tmp/coverage
|
||||
yarn run test --coverage --coverage.reportsDirectory=/tmp/coverage
|
||||
|
||||
FROM scratch AS test-coverage
|
||||
COPY --from=test /tmp/coverage /
|
||||
+12
-11
@@ -1,4 +1,4 @@
|
||||
require('./sourcemap-register.js');(()=>{var i={76846:function(i,c,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(i,c,d,p){if(p===undefined)p=d;var A=Object.getOwnPropertyDescriptor(c,d);if(!A||("get"in A?!c.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return c[d]}}}Object.defineProperty(i,p,A)}:function(i,c,d,p){if(p===undefined)p=d;i[p]=c[d]});var A=this&&this.__exportStar||function(i,c){for(var d in i)if(d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d))p(c,i,d)};Object.defineProperty(c,"__esModule",{value:true});const C=d(64487);A(d(13776),c);A(d(45655),c);A(d(64487),c);const S=new C.DefaultArtifactClient;c["default"]=S},35592:(i,c,d)=>{"use strict";Object.defineProperty(c,"__esModule",{value:true});c.Timestamp=void 0;const p=d(68886);const A=d(68886);const C=d(68886);const S=d(68886);const v=d(68886);const _=d(68886);const T=d(68886);class Timestamp$Type extends T.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const i=this.create();const c=Date.now();i.seconds=_.PbLong.from(Math.floor(c/1e3)).toString();i.nanos=c%1e3*1e6;return i}toDate(i){return new Date(_.PbLong.from(i.seconds).toNumber()*1e3+Math.ceil(i.nanos/1e6))}fromDate(i){const c=this.create();const d=i.getTime();c.seconds=_.PbLong.from(Math.floor(d/1e3)).toString();c.nanos=d%1e3*1e6;return c}internalJsonWrite(i,c){let d=_.PbLong.from(i.seconds).toNumber()*1e3;if(d<Date.parse("0001-01-01T00:00:00Z")||d>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(i.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let p="Z";if(i.nanos>0){let c=(i.nanos+1e9).toString().substring(1);if(c.substring(3)==="000000")p="."+c.substring(0,3)+"Z";else if(c.substring(6)==="000")p="."+c.substring(0,6)+"Z";else p="."+c+"Z"}return new Date(d).toISOString().replace(".000Z",p)}internalJsonRead(i,c,d){if(typeof i!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,v.typeofJsonValue)(i)+".");let p=i.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(!p)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let A=Date.parse(p[1]+"-"+p[2]+"-"+p[3]+"T"+p[4]+":"+p[5]+":"+p[6]+(p[8]?p[8]:"Z"));if(Number.isNaN(A))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(A<Date.parse("0001-01-01T00:00:00Z")||A>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!d)d=this.create();d.seconds=_.PbLong.from(A/1e3).toString();d.nanos=0;if(p[7])d.nanos=parseInt("1"+p[7]+"0".repeat(9-p[7].length))-1e9;return d}create(i){const c={seconds:"0",nanos:0};globalThis.Object.defineProperty(c,S.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,C.reflectionMergePartial)(this,c,i);return c}internalBinaryRead(i,c,d,p){let C=p!==null&&p!==void 0?p:this.create(),S=i.pos+c;while(i.pos<S){let[c,p]=i.tag();switch(c){case 1:C.seconds=i.int64().toString();break;case 2:C.nanos=i.int32();break;default:let S=d.readUnknownField;if(S==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${p}) for ${this.typeName}`);let v=i.skip(p);if(S!==false)(S===true?A.UnknownFieldHandler.onRead:S)(this.typeName,C,c,p,v)}}return C}internalBinaryWrite(i,c,d){if(i.seconds!=="0")c.tag(1,p.WireType.Varint).int64(i.seconds);if(i.nanos!==0)c.tag(2,p.WireType.Varint).int32(i.nanos);let C=d.writeUnknownFields;if(C!==false)(C==true?A.UnknownFieldHandler.onWrite:C)(this.typeName,i,c);return c}}c.Timestamp=new Timestamp$Type},78806:(i,c,d)=>{"use strict";Object.defineProperty(c,"__esModule",{value:true});c.BytesValue=c.StringValue=c.BoolValue=c.UInt32Value=c.Int32Value=c.UInt64Value=c.Int64Value=c.FloatValue=c.DoubleValue=void 0;const p=d(68886);const A=d(68886);const C=d(68886);const S=d(68886);const v=d(68886);const _=d(68886);const T=d(68886);class DoubleValue$Type extends T.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(i,c){return this.refJsonWriter.scalar(2,i.value,"value",false,true)}internalJsonRead(i,c,d){if(!d)d=this.create();d.value=this.refJsonReader.scalar(i,1,undefined,"value");return d}create(i){const c={value:0};globalThis.Object.defineProperty(c,_.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,v.reflectionMergePartial)(this,c,i);return c}internalBinaryRead(i,c,d,p){let A=p!==null&&p!==void 0?p:this.create(),C=i.pos+c;while(i.pos<C){let[c,p]=i.tag();switch(c){case 1:A.value=i.double();break;default:let C=d.readUnknownField;if(C==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${p}) for ${this.typeName}`);let v=i.skip(p);Line truncated
|
||||
import './sourcemap-register.cjs';import{createRequire as i}from"module";var c={76846:function(i,c,d){var p=this&&this.__createBinding||(Object.create?function(i,c,d,p){if(p===undefined)p=d;var A=Object.getOwnPropertyDescriptor(c,d);if(!A||("get"in A?!c.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return c[d]}}}Object.defineProperty(i,p,A)}:function(i,c,d,p){if(p===undefined)p=d;i[p]=c[d]});var A=this&&this.__exportStar||function(i,c){for(var d in i)if(d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d))p(c,i,d)};Object.defineProperty(c,"__esModule",{value:true});const C=d(64487);A(d(13776),c);A(d(45655),c);A(d(64487),c);const S=new C.DefaultArtifactClient;c["default"]=S},35592:(i,c,d)=>{Object.defineProperty(c,"__esModule",{value:true});c.Timestamp=void 0;const p=d(68886);const A=d(68886);const C=d(68886);const S=d(68886);const v=d(68886);const _=d(68886);const T=d(68886);class Timestamp$Type extends T.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const i=this.create();const c=Date.now();i.seconds=_.PbLong.from(Math.floor(c/1e3)).toString();i.nanos=c%1e3*1e6;return i}toDate(i){return new Date(_.PbLong.from(i.seconds).toNumber()*1e3+Math.ceil(i.nanos/1e6))}fromDate(i){const c=this.create();const d=i.getTime();c.seconds=_.PbLong.from(Math.floor(d/1e3)).toString();c.nanos=d%1e3*1e6;return c}internalJsonWrite(i,c){let d=_.PbLong.from(i.seconds).toNumber()*1e3;if(d<Date.parse("0001-01-01T00:00:00Z")||d>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(i.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let p="Z";if(i.nanos>0){let c=(i.nanos+1e9).toString().substring(1);if(c.substring(3)==="000000")p="."+c.substring(0,3)+"Z";else if(c.substring(6)==="000")p="."+c.substring(0,6)+"Z";else p="."+c+"Z"}return new Date(d).toISOString().replace(".000Z",p)}internalJsonRead(i,c,d){if(typeof i!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,v.typeofJsonValue)(i)+".");let p=i.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(!p)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let A=Date.parse(p[1]+"-"+p[2]+"-"+p[3]+"T"+p[4]+":"+p[5]+":"+p[6]+(p[8]?p[8]:"Z"));if(Number.isNaN(A))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(A<Date.parse("0001-01-01T00:00:00Z")||A>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!d)d=this.create();d.seconds=_.PbLong.from(A/1e3).toString();d.nanos=0;if(p[7])d.nanos=parseInt("1"+p[7]+"0".repeat(9-p[7].length))-1e9;return d}create(i){const c={seconds:"0",nanos:0};globalThis.Object.defineProperty(c,S.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,C.reflectionMergePartial)(this,c,i);return c}internalBinaryRead(i,c,d,p){let C=p!==null&&p!==void 0?p:this.create(),S=i.pos+c;while(i.pos<S){let[c,p]=i.tag();switch(c){case 1:C.seconds=i.int64().toString();break;case 2:C.nanos=i.int32();break;default:let S=d.readUnknownField;if(S==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${p}) for ${this.typeName}`);let v=i.skip(p);if(S!==false)(S===true?A.UnknownFieldHandler.onRead:S)(this.typeName,C,c,p,v)}}return C}internalBinaryWrite(i,c,d){if(i.seconds!=="0")c.tag(1,p.WireType.Varint).int64(i.seconds);if(i.nanos!==0)c.tag(2,p.WireType.Varint).int32(i.nanos);let C=d.writeUnknownFields;if(C!==false)(C==true?A.UnknownFieldHandler.onWrite:C)(this.typeName,i,c);return c}}c.Timestamp=new Timestamp$Type},78806:(i,c,d)=>{Object.defineProperty(c,"__esModule",{value:true});c.BytesValue=c.StringValue=c.BoolValue=c.UInt32Value=c.Int32Value=c.UInt64Value=c.Int64Value=c.FloatValue=c.DoubleValue=void 0;const p=d(68886);const A=d(68886);const C=d(68886);const S=d(68886);const v=d(68886);const _=d(68886);const T=d(68886);class DoubleValue$Type extends T.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(i,c){return this.refJsonWriter.scalar(2,i.value,"value",false,true)}internalJsonRead(i,c,d){if(!d)d=this.create();d.value=this.refJsonReader.scalar(i,1,undefined,"value");return d}create(i){const c={value:0};globalThis.Object.defineProperty(c,_.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,v.reflectionMergePartial)(this,c,i);return c}internalBinaryRead(i,c,d,p){let A=p!==null&&p!==void 0?p:this.create(),C=i.pos+c;while(i.pos<C){let[c,p]=i.tag();switch(c){case 1:A.value=i.double();break;default:let C=d.readUnknownField;if(C==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${p}) for ${this.typeName}`);let v=i.skip(p);if(C!==Line truncated
|
||||
/**
|
||||
* Archiver Vending
|
||||
*
|
||||
@@ -46,28 +46,29 @@ var p=d(43106);var A=d(56118);var C=d(53296);var Tar=function(i){if(!(this insta
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var p=d(41622);var A=d(53296);var Zip=function(i){if(!(this instanceof Zip)){return new Zip(i)}i=this.options=A.defaults(i,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new p(i)};Zip.prototype.append=function(i,c,d){this.engine.entry(i,c,d)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};i.exports=Zip},45195:(i,c,d)=>{var p=d(52455);function retry(i,c){function run(d,A){var C=c||{};var S;if(!("randomize"in C)){C.randomize=true}S=p.operation(C);function bail(i){A(i||new Error("Aborted"))}function onError(i,c){if(i.bail){bail(i);return}if(!S.retry(i)){A(S.mainError())}else if(C.onRetry){C.onRetry(i,c)}}function runAttempt(c){var p;try{p=i(bail,c)}catch(i){onError(i,c);return}Promise.resolve(p).then(d).catch((function catchIt(i){onError(i,c)}))}S.attempt(runAttempt)}return new Promise(run)}i.exports=retry},52455:(i,c,d)=>{i.exports=d(76185)},76185:(i,c,d)=>{var p=d(42399);c.operation=function(i){var d=c.timeouts(i);return new p(d,{forever:i&&(i.forever||i.retries===Infinity),unref:i&&i.unref,maxRetryTime:i&&i.maxRetryTime})};c.timeouts=function(i){if(i instanceof Array){return[].concat(i)}var c={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var d in i){c[d]=i[d]}if(c.minTimeout>c.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var p=[];for(var A=0;A<c.retries;A++){p.push(this.createTimeout(A,c))}if(i&&i.forever&&!p.length){p.push(this.createTimeout(A,c))}p.sort((function(i,c){return i-c}));return p};c.createTimeout=function(i,c){var d=c.randomize?Math.random()+1:1;var p=Math.round(d*Math.max(c.minTimeout,1)*Math.pow(c.factor,i));p=Math.min(p,c.maxTimeout);return p};c.wrap=function(i,d,p){if(d instanceof Array){p=d;d=null}if(!p){p=[];for(var A in i){if(typeof i[A]==="function"){p.push(A)}}}for(var C=0;C<p.length;C++){var S=p[C];var v=i[S];i[S]=function retryWrapper(p){var A=c.operation(d);var C=Array.prototype.slice.call(arguments,1);var S=C.pop();C.push((function(i){if(A.retry(i)){return}if(i){arguments[0]=A.mainError()}S.apply(this,arguments)}));A.attempt((function(){p.apply(i,C)}))}.bind(i,v);i[S].options=d}}},42399:i=>{function RetryOperation(i,c){if(typeof c==="boolean"){c={forever:c}}this._originalTimeouts=JSON.parse(JSON.stringify(i));this._timeouts=i;this._options=c||{};this._maxRetryTime=c&&c.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}i.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(i){if(this._timeout){clearTimeout(this._timeout)}if(!i){return false}var c=(new Date).getTime();if(i&&c-this._operationStart>=this._maxRetryTime){this._errors.push(i);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(i);var d=this._timeouts.shift();if(d===undefined){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);d=this._cachedTimeouts.slice(-1)}else{return false}}var p=this;this._timer=setTimeout((function(){p._attempts++;if(p._operationTimeoutCb){p._timeout=setTimeout((function(){p._operationTimeoutCb(p._attempts)}),p._operationTimeout);if(p._options.unref){p._timeout.unref()}}p._fn(p._attempts)}),d);if(this._options.unref){this._timer.unref()}return true};RetryOperation.prototype.attempt=function(i,c){this._fn=i;if(c){if(c.timeout){this._operationTimeout=c.timeout}if(c.cb){this._operationTimeoutCb=c.cb}}var d=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){d._operationTimeoutCb()}),d._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated");this.attempt(i)};RetryOperation.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated");this.attempt(i)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var i={};var c=null;var d=0;for(var p=0;p<this._errors.length;p++){var A=this._errors[p];var C=A.message;var S=(i[C]||0)+1;i[C]=S;if(S>=d){c=A;d=S}}return c}},97329:function(Line truncated
|
||||
var p=d(41622);var A=d(53296);var Zip=function(i){if(!(this instanceof Zip)){return new Zip(i)}i=this.options=A.defaults(i,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new p(i)};Zip.prototype.append=function(i,c,d){this.engine.entry(i,c,d)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};i.exports=Zip},45195:(i,c,d)=>{var p=d(52455);function retry(i,c){function run(d,A){var C=c||{};var S;if(!("randomize"in C)){C.randomize=true}S=p.operation(C);function bail(i){A(i||new Error("Aborted"))}function onError(i,c){if(i.bail){bail(i);return}if(!S.retry(i)){A(S.mainError())}else if(C.onRetry){C.onRetry(i,c)}}function runAttempt(c){var p;try{p=i(bail,c)}catch(i){onError(i,c);return}Promise.resolve(p).then(d).catch((function catchIt(i){onError(i,c)}))}S.attempt(runAttempt)}return new Promise(run)}i.exports=retry},52455:(i,c,d)=>{i.exports=d(76185)},76185:(i,c,d)=>{var p=d(42399);c.operation=function(i){var d=c.timeouts(i);return new p(d,{forever:i&&(i.forever||i.retries===Infinity),unref:i&&i.unref,maxRetryTime:i&&i.maxRetryTime})};c.timeouts=function(i){if(i instanceof Array){return[].concat(i)}var c={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var d in i){c[d]=i[d]}if(c.minTimeout>c.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var p=[];for(var A=0;A<c.retries;A++){p.push(this.createTimeout(A,c))}if(i&&i.forever&&!p.length){p.push(this.createTimeout(A,c))}p.sort((function(i,c){return i-c}));return p};c.createTimeout=function(i,c){var d=c.randomize?Math.random()+1:1;var p=Math.round(d*Math.max(c.minTimeout,1)*Math.pow(c.factor,i));p=Math.min(p,c.maxTimeout);return p};c.wrap=function(i,d,p){if(d instanceof Array){p=d;d=null}if(!p){p=[];for(var A in i){if(typeof i[A]==="function"){p.push(A)}}}for(var C=0;C<p.length;C++){var S=p[C];var v=i[S];i[S]=function retryWrapper(p){var A=c.operation(d);var C=Array.prototype.slice.call(arguments,1);var S=C.pop();C.push((function(i){if(A.retry(i)){return}if(i){arguments[0]=A.mainError()}S.apply(this,arguments)}));A.attempt((function(){p.apply(i,C)}))}.bind(i,v);i[S].options=d}}},42399:i=>{function RetryOperation(i,c){if(typeof c==="boolean"){c={forever:c}}this._originalTimeouts=JSON.parse(JSON.stringify(i));this._timeouts=i;this._options=c||{};this._maxRetryTime=c&&c.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}i.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(i){if(this._timeout){clearTimeout(this._timeout)}if(!i){return false}var c=(new Date).getTime();if(i&&c-this._operationStart>=this._maxRetryTime){this._errors.push(i);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(i);var d=this._timeouts.shift();if(d===undefined){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);d=this._cachedTimeouts.slice(-1)}else{return false}}var p=this;this._timer=setTimeout((function(){p._attempts++;if(p._operationTimeoutCb){p._timeout=setTimeout((function(){p._operationTimeoutCb(p._attempts)}),p._operationTimeout);if(p._options.unref){p._timeout.unref()}}p._fn(p._attempts)}),d);if(this._options.unref){this._timer.unref()}return true};RetryOperation.prototype.attempt=function(i,c){this._fn=i;if(c){if(c.timeout){this._operationTimeout=c.timeout}if(c.cb){this._operationTimeoutCb=c.cb}}var d=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){d._operationTimeoutCb()}),d._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated");this.attempt(i)};RetryOperation.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated");this.attempt(i)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var i={};var c=null;var d=0;for(var p=0;p<this._errors.length;p++){var A=this._errors[p];var C=A.message;var S=(i[C]||0)+1;i[C]=S;if(S>=d){c=A;d=S}}return c}},97329:function(Line truncated
|
||||
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
||||
var d;(function(i){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){i(c)}else{}}else{i(d={})}})((function(i){i.version="1.2.2";function signed_crc_table(){var i=0,c=new Array(256);for(var d=0;d!=256;++d){i=d;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;c[d]=i}return typeof Int32Array!=="undefined"?new Int32Array(c):c}var c=signed_crc_table();function slice_by_16_tables(i){var c=0,d=0,p=0,A=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(p=0;p!=256;++p)A[p]=i[p];for(p=0;p!=256;++p){d=i[p];for(c=256+p;c<4096;c+=256)d=A[c]=d>>>8^i[d&255]}var C=[];for(p=1;p!=16;++p)C[p-1]=typeof Int32Array!=="undefined"?A.subarray(p*256,p*256+256):A.slice(p*256,p*256+256);return C}var d=slice_by_16_tables(c);var p=d[0],A=d[1],C=d[2],S=d[3],v=d[4];var _=d[5],T=d[6],V=d[7],K=d[8],ee=d[9];var te=d[10],re=d[11],ne=d[12],ie=d[13],se=d[14];function crc32_bstr(i,d){var p=d^-1;for(var A=0,C=i.length;A<C;)p=p>>>8^c[(p^i.charCodeAt(A++))&255];return~p}function crc32_buf(i,d){var oe=d^-1,ae=i.length-15,le=0;for(;le<ae;)oe=se[i[le++]^oe&255]^ie[i[le++]^oe>>8&255]^ne[i[le++]^oe>>16&255]^re[i[le++]^oe>>>24]^te[i[le++]]^ee[i[le++]]^K[i[le++]]^V[i[le++]]^T[i[le++]]^_[i[le++]]^v[i[le++]]^S[i[le++]]^C[i[le++]]^A[i[le++]]^p[i[le++]]^c[i[le++]];ae+=15;while(le<ae)oe=oe>>>8^c[(oe^i[le++])&255];return~oe}function crc32_str(i,d){var p=d^-1;for(var A=0,C=i.length,S=0,v=0;A<C;){S=i.charCodeAt(A++);if(S<128){p=p>>>8^c[(p^S)&255]}else if(S<2048){p=p>>>8^c[(p^(192|S>>6&31))&255];p=p>>>8^c[(p^(128|S&63))&255]}else if(S>=55296&&S<57344){S=(S&1023)+64;v=i.charCodeAt(A++)&1023;p=p>>>8^c[(p^(240|S>>8&7))&255];p=p>>>8^c[(p^(128|S>>2&63))&255];p=p>>>8^c[(p^(128|v>>6&15|(S&3)<<4))&255];p=p>>>8^c[(p^(128|v&63))&255]}else{p=p>>>8^c[(p^(224|S>>12&15))&255];p=p>>>8^c[(p^(128|S>>6&63))&255];p=p>>>8^c[(p^(128|S&63))&255]}}return~p}i.table=c;i.bstr=crc32_bstr;i.buf=crc32_buf;i.str=crc32_str}))},3662:(i,c,d)=>{"use strict";const{Transform:p}=d(29963);const A=d(84891);class CRC32Stream extends p{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(i,c,d){if(i){this.checksum=A.buf(i,this.checksum)>>>0;this.rawSize+=i.length}d(null,i)}digest(i){const c=Buffer.allocUnsafe(4);c.writeUInt32BE(this.checksum>>>0,0);return i?c.toString(i):c}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}i.exports=CRC32Stream},76252:(i,c,d)=>{"use strict";const{DeflateRaw:p}=d(43106);const A=d(84891);class DeflateCRC32Stream extends p{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(i,c){if(i){this.compressedSize+=i.length}return super.push(i,c)}_transform(i,c,d){if(i){this.checksum=A.buf(i,this.checksum)>>>0;this.rawSize+=i.length}super._transform(i,c,d)}digest(i){const c=Buffer.allocUnsafe(4);c.writeUInt32BE(this.checksum>>>0,0);return i?c.toString(i):c}hex(){return this.digest("hex").toUpperCase()}size(i=false){if(i){return this.compressedSize}else{return this.rawSize}}}i.exports=DeflateCRC32Stream},82770:(i,c,d)=>{"use strict";i.exports={CRC32Stream:d(3662),DeflateCRC32Stream:d(76252)}},66867:i=>{var c=1e3;var d=c*60;var p=d*60;var A=p*24;var C=A*7;var S=A*365.25;i.exports=function(i,c){c=c||{};var d=typeof i;if(d==="string"&&i.length>0){return parse(i)}else if(d==="number"&&isFinite(i)){return c.long?fmtLong(i):fmtShort(i)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function parse(i){i=String(i);if(i.length>100){return}var v=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!v){return}var _=parseFloat(v[1]);var T=(v[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return _*S;case"weeks":case"week":case"w":return _*C;case"days":case"day":case"d":return _*A;case"hours":case"hour":case"hrs":case"hr":case"h":return _*p;case"minutes":case"minute":case"mins":case"min":case"m":return _*d;case"seconds":case"second":case"secs":case"sec":case"s":return _*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return undefined}}function fmtShort(i){var C=Math.abs(i);if(C>=A){return Math.round(i/A)+"d"}if(C>=p){return Math.round(i/p)+"h"}if(C>=d){return Math.round(i/d)+"m"}if(C>=c){return Math.round(i/c)+"s"}return i+"ms"}function fmtLong(i){var C=Math.abs(i);if(C>=A){return plural(i,C,A,"day")}if(C>=p){return plural(i,C,p,"hour")}if(C>=d){return plural(i,C,d,"minute")}if(C>=c){return plural(i,C,c,"second")}return i+" ms"}function plural(i,c,d,p){var A=c>=d*1.5;return Math.round(i/d)+" "+p+(A?"s":"")}},6110:(i,c,d)=>{c.formatArgs=formatArgs;c.save=save;c.load=load;c.useColors=useColors;c.storage=localstorage();c.desLine truncated
|
||||
var d;(function(i){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){i(c)}else{}}else{i(d={})}})((function(i){i.version="1.2.2";function signed_crc_table(){var i=0,c=new Array(256);for(var d=0;d!=256;++d){i=d;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;i=i&1?-306674912^i>>>1:i>>>1;c[d]=i}return typeof Int32Array!=="undefined"?new Int32Array(c):c}var c=signed_crc_table();function slice_by_16_tables(i){var c=0,d=0,p=0,A=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(p=0;p!=256;++p)A[p]=i[p];for(p=0;p!=256;++p){d=i[p];for(c=256+p;c<4096;c+=256)d=A[c]=d>>>8^i[d&255]}var C=[];for(p=1;p!=16;++p)C[p-1]=typeof Int32Array!=="undefined"?A.subarray(p*256,p*256+256):A.slice(p*256,p*256+256);return C}var d=slice_by_16_tables(c);var p=d[0],A=d[1],C=d[2],S=d[3],v=d[4];var _=d[5],T=d[6],V=d[7],K=d[8],ee=d[9];var te=d[10],re=d[11],ne=d[12],ie=d[13],se=d[14];function crc32_bstr(i,d){var p=d^-1;for(var A=0,C=i.length;A<C;)p=p>>>8^c[(p^i.charCodeAt(A++))&255];return~p}function crc32_buf(i,d){var oe=d^-1,ae=i.length-15,le=0;for(;le<ae;)oe=se[i[le++]^oe&255]^ie[i[le++]^oe>>8&255]^ne[i[le++]^oe>>16&255]^re[i[le++]^oe>>>24]^te[i[le++]]^ee[i[le++]]^K[i[le++]]^V[i[le++]]^T[i[le++]]^_[i[le++]]^v[i[le++]]^S[i[le++]]^C[i[le++]]^A[i[le++]]^p[i[le++]]^c[i[le++]];ae+=15;while(le<ae)oe=oe>>>8^c[(oe^i[le++])&255];return~oe}function crc32_str(i,d){var p=d^-1;for(var A=0,C=i.length,S=0,v=0;A<C;){S=i.charCodeAt(A++);if(S<128){p=p>>>8^c[(p^S)&255]}else if(S<2048){p=p>>>8^c[(p^(192|S>>6&31))&255];p=p>>>8^c[(p^(128|S&63))&255]}else if(S>=55296&&S<57344){S=(S&1023)+64;v=i.charCodeAt(A++)&1023;p=p>>>8^c[(p^(240|S>>8&7))&255];p=p>>>8^c[(p^(128|S>>2&63))&255];p=p>>>8^c[(p^(128|v>>6&15|(S&3)<<4))&255];p=p>>>8^c[(p^(128|v&63))&255]}else{p=p>>>8^c[(p^(224|S>>12&15))&255];p=p>>>8^c[(p^(128|S>>6&63))&255];p=p>>>8^c[(p^(128|S&63))&255]}}return~p}i.table=c;i.bstr=crc32_bstr;i.buf=crc32_buf;i.str=crc32_str}))},3662:(i,c,d)=>{const{Transform:p}=d(29963);const A=d(84891);class CRC32Stream extends p{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(i,c,d){if(i){this.checksum=A.buf(i,this.checksum)>>>0;this.rawSize+=i.length}d(null,i)}digest(i){const c=Buffer.allocUnsafe(4);c.writeUInt32BE(this.checksum>>>0,0);return i?c.toString(i):c}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}i.exports=CRC32Stream},76252:(i,c,d)=>{const{DeflateRaw:p}=d(43106);const A=d(84891);class DeflateCRC32Stream extends p{constructor(i){super(i);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(i,c){if(i){this.compressedSize+=i.length}return super.push(i,c)}_transform(i,c,d){if(i){this.checksum=A.buf(i,this.checksum)>>>0;this.rawSize+=i.length}super._transform(i,c,d)}digest(i){const c=Buffer.allocUnsafe(4);c.writeUInt32BE(this.checksum>>>0,0);return i?c.toString(i):c}hex(){return this.digest("hex").toUpperCase()}size(i=false){if(i){return this.compressedSize}else{return this.rawSize}}}i.exports=DeflateCRC32Stream},82770:(i,c,d)=>{i.exports={CRC32Stream:d(3662),DeflateCRC32Stream:d(76252)}},66867:i=>{var c=1e3;var d=c*60;var p=d*60;var A=p*24;var C=A*7;var S=A*365.25;i.exports=function(i,c){c=c||{};var d=typeof i;if(d==="string"&&i.length>0){return parse(i)}else if(d==="number"&&isFinite(i)){return c.long?fmtLong(i):fmtShort(i)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function parse(i){i=String(i);if(i.length>100){return}var v=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!v){return}var _=parseFloat(v[1]);var T=(v[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return _*S;case"weeks":case"week":case"w":return _*C;case"days":case"day":case"d":return _*A;case"hours":case"hour":case"hrs":case"hr":case"h":return _*p;case"minutes":case"minute":case"mins":case"min":case"m":return _*d;case"seconds":case"second":case"secs":case"sec":case"s":return _*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return undefined}}function fmtShort(i){var C=Math.abs(i);if(C>=A){return Math.round(i/A)+"d"}if(C>=p){return Math.round(i/p)+"h"}if(C>=d){return Math.round(i/d)+"m"}if(C>=c){return Math.round(i/c)+"s"}return i+"ms"}function fmtLong(i){var C=Math.abs(i);if(C>=A){return plural(i,C,A,"day")}if(C>=p){return plural(i,C,p,"hour")}if(C>=d){return plural(i,C,d,"minute")}if(C>=c){return plural(i,C,c,"second")}return i+" ms"}function plural(i,c,d,p){var A=c>=d*1.5;return Math.round(i/d)+" "+p+(A?"s":"")}},6110:(i,c,d)=>{c.formatArgs=formatArgs;c.save=save;c.load=load;c.useColors=useColors;c.storage=localstorage();c.destroy=(()=>{let i=false;return()=>{if(!iLine truncated
|
||||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* @copyright 2015 Toru Nagashima. All rights reserved.
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/Object.defineProperty(c,"__esModule",{value:true});const d=new WeakMap;const p=new WeakMap;function pd(i){const c=d.get(i);console.assert(c!=null,"'this' is expected an Event object, but got",i);return c}function setCancelFlag(i){if(i.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",i.passiveListener)}return}if(!i.event.cancelable){return}i.canceled=true;if(typeof i.event.preventDefault==="function"){i.event.preventDefault()}}function Event(i,c){d.set(this,{eventTarget:i,event:c,eventPhase:2,currentTarget:i,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:c.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const p=Object.keys(c);for(let i=0;i<p.length;++i){const c=p[i];if(!(c in this)){Object.defineProperty(this,c,defineRedirectDescriptor(c))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const i=pd(this).currentTarget;if(i==null){return[]}return[i]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const i=pd(this);i.stopped=true;if(typeof i.event.stopPropagation==="function"){i.event.stopPropagation()}},stopImmediatePropagation(){const i=pd(this);i.stopped=true;i.immediateStopped=true;if(typeof i.event.stopImmediatePropagation==="function"){i.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(i){if(!i){return}const c=pd(this);c.stopped=true;if(typeof c.event.cancelBubble==="boolean"){c.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(i){if(!i){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);p.set(window.Event.prototype,Event)}function defineRedirectDescriptor(i){return{get(){return pd(this).event[i]},set(c){pd(this).event[i]=c},configurable:true,enumerable:true}}function defineCallDescriptor(i){return{value(){const c=pd(this).event;return c[i].apply(c,arguments)},configurable:true,enumerable:true}}function defineWrapper(i,c){const d=Object.keys(c);if(d.length===0){return i}function CustomEvent(c,d){i.call(this,c,d)}CustomEvent.prototype=Object.create(i.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let p=0;p<d.length;++p){const A=d[p];if(!(A in i.prototype)){const i=Object.getOwnPropertyDescriptor(c,A);const d=typeof i.value==="function";Object.defineProperty(CustomEvent.prototype,A,d?defineCallDescriptor(A):defineRedirectDescriptor(A))}}return CustomEvent}function getWrapper(i){if(i==null||i===Object.prototype){return Event}let c=p.get(i);if(c==null){c=defineWrapper(getWrapper(Object.getPrototypeOf(i)),i);p.set(i,c)}return c}function wrapEvent(i,c){const d=getWrapper(Object.getPrototypeOf(c));return new d(i,c)}function isStopped(i){return pd(i).immediateStopped}function setEventPhase(i,c){pd(i).eventPhase=c}function setCurrentTarget(i,c){pd(i).currentTarget=c}function setPassiveListener(i,c){pd(i).passiveListener=c}const A=new WeakMap;const C=1;const S=2;const v=3;function isObject(i){return i!==null&&typeof i==="object"}function getListeners(i){const c=A.get(i);if(c==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return c}function defineEventAttributeDescriptor(i){return{get(){const c=getListeners(this);let d=c.get(i);while(d!=null){if(d.listenerType===v){return d.listener}d=d.next}return null},set(c){if(typeof c!=="function"&&!isObject(c)){c=null}const d=getListeners(this);let p=null;let A=d.get(i);while(A!=null){if(A.listenerType===v){if(p!==null){p.next=A.next}else if(A.next!==null){d.set(i,A.next)}else{d.delete(i)}}else{p=A}A=A.next}if(c!==null){const A={listener:c,listenerType:v,passive:false,once:false,next:null};if(p===null){d.set(i,A)}else{p.next=A}}},configurable:true,enumerable:true}}function defineEventAttribute(i,c){Object.defineProperty(i,`on${c}`,defineEventAttributeDescriptor(c))}function defineCustomEventTarget(i){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let c=0;c<i.length;++c){Line truncated
|
||||
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(d){var p=true&&c;var A=true&&i&&i.exports==p&&i;var C=typeof global=="object"&&global;if(C.global===C||C.window===C){d=C}var S=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var v=/[\x01-\x7F]/g;var _=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var T=/<\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;var V={"":"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
|
||||
*/
|
||||
Object.defineProperty(c,"__esModule",{value:true});const d=new WeakMap;const p=new WeakMap;function pd(i){const c=d.get(i);console.assert(c!=null,"'this' is expected an Event object, but got",i);return c}function setCancelFlag(i){if(i.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",i.passiveListener)}return}if(!i.event.cancelable){return}i.canceled=true;if(typeof i.event.preventDefault==="function"){i.event.preventDefault()}}function Event(i,c){d.set(this,{eventTarget:i,event:c,eventPhase:2,currentTarget:i,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:c.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const p=Object.keys(c);for(let i=0;i<p.length;++i){const c=p[i];if(!(c in this)){Object.defineProperty(this,c,defineRedirectDescriptor(c))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const i=pd(this).currentTarget;if(i==null){return[]}return[i]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const i=pd(this);i.stopped=true;if(typeof i.event.stopPropagation==="function"){i.event.stopPropagation()}},stopImmediatePropagation(){const i=pd(this);i.stopped=true;i.immediateStopped=true;if(typeof i.event.stopImmediatePropagation==="function"){i.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(i){if(!i){return}const c=pd(this);c.stopped=true;if(typeof c.event.cancelBubble==="boolean"){c.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(i){if(!i){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);p.set(window.Event.prototype,Event)}function defineRedirectDescriptor(i){return{get(){return pd(this).event[i]},set(c){pd(this).event[i]=c},configurable:true,enumerable:true}}function defineCallDescriptor(i){return{value(){const c=pd(this).event;return c[i].apply(c,arguments)},configurable:true,enumerable:true}}function defineWrapper(i,c){const d=Object.keys(c);if(d.length===0){return i}function CustomEvent(c,d){i.call(this,c,d)}CustomEvent.prototype=Object.create(i.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let p=0;p<d.length;++p){const A=d[p];if(!(A in i.prototype)){const i=Object.getOwnPropertyDescriptor(c,A);const d=typeof i.value==="function";Object.defineProperty(CustomEvent.prototype,A,d?defineCallDescriptor(A):defineRedirectDescriptor(A))}}return CustomEvent}function getWrapper(i){if(i==null||i===Object.prototype){return Event}let c=p.get(i);if(c==null){c=defineWrapper(getWrapper(Object.getPrototypeOf(i)),i);p.set(i,c)}return c}function wrapEvent(i,c){const d=getWrapper(Object.getPrototypeOf(c));return new d(i,c)}function isStopped(i){return pd(i).immediateStopped}function setEventPhase(i,c){pd(i).eventPhase=c}function setCurrentTarget(i,c){pd(i).currentTarget=c}function setPassiveListener(i,c){pd(i).passiveListener=c}const A=new WeakMap;const C=1;const S=2;const v=3;function isObject(i){return i!==null&&typeof i==="object"}function getListeners(i){const c=A.get(i);if(c==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return c}function defineEventAttributeDescriptor(i){return{get(){const c=getListeners(this);let d=c.get(i);while(d!=null){if(d.listenerType===v){return d.listener}d=d.next}return null},set(c){if(typeof c!=="function"&&!isObject(c)){c=null}const d=getListeners(this);let p=null;let A=d.get(i);while(A!=null){if(A.listenerType===v){if(p!==null){p.next=A.next}else if(A.next!==null){d.set(i,A.next)}else{d.delete(i)}}else{p=A}A=A.next}if(c!==null){const A={listener:c,listenerType:v,passive:false,once:false,next:null};if(p===null){d.set(i,A)}else{p.next=A}}},configurable:true,enumerable:true}}function defineEventAttribute(i,c){Object.defineProperty(i,`on${c}`,defineEventAttributeDescriptor(c))}function defineCustomEventTarget(i){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let c=0;c<i.length;++c){defLine truncated
|
||||
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(d){var p=true&&c;var A=true&&i&&i.exports==p&&i;var C=typeof global=="object"&&global;if(C.global===C||C.window===C){d=C}var S=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var v=/[\x01-\x7F]/g;var _=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var T=/<\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;var V={"":"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
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/function isObject(i){return Object.prototype.toString.call(i)==="[object Object]"}function isPlainObject(i){var c,d;if(isObject(i)===false)return false;c=i.constructor;if(c===undefined)return true;d=c.prototype;if(isObject(d)===false)return false;if(d.hasOwnProperty("isPrototypeOf")===false){return false}return true}c.isPlainObject=isPlainObject},96543:i=>{"use strict";const isStream=i=>i!==null&&typeof i==="object"&&typeof i.pipe==="function";isStream.writable=i=>isStream(i)&&i.writable!==false&&typeof i._write==="function"&&typeof i._writableState==="object";isStream.readable=i=>isStream(i)&&i.readable!==false&&typeof i._read==="function"&&typeof i._readableState==="object";isStream.duplex=i=>isStream.writable(i)&&isStream.readable(i);isStream.transform=i=>isStream.duplex(i)&&typeof i._transform==="function";i.exports=isStream},82513:i=>{var c={}.toString;i.exports=Array.isArray||function(i){return c.call(i)=="[object Array]"}},74281:(i,c,d)=>{"use strict";var p=d(91950);var A=d(59980);function renamed(i,c){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. "+"Use yaml."+c+" instead, which is now safe by default.")}}i.exports.Type=d(9557);i.exports.Schema=d(62046);i.exports.FAILSAFE_SCHEMA=d(69832);i.exports.JSON_SCHEMA=d(58927);i.exports.CORE_SCHEMA=d(55746);i.exports.DEFAULT_SCHEMA=d(97336);i.exports.load=p.load;i.exports.loadAll=p.loadAll;i.exports.dump=A.dump;i.exports.YAMLException=d(41248);i.exports.types={binary:d(8149),float:d(57584),map:d(47316),null:d(4333),pairs:d(16267),set:d(78758),timestamp:d(28966),bool:d(67296),int:d(62271),merge:d(76854),omap:d(58649),seq:d(77161),str:d(53929)};i.exports.safeLoad=renamed("safeLoad","load");i.exports.safeLoadAll=renamed("safeLoadAll","loadAll");i.exports.safeDump=renamed("safeDump","dump")},19816:i=>{"use strict";function isNothing(i){return typeof i==="undefined"||i===null}function isObject(i){return typeof i==="object"&&i!==null}function toArray(i){if(Array.isArray(i))return i;else if(isNothing(i))return[];return[i]}function extend(i,c){var d,p,A,C;if(c){C=Object.keys(c);for(d=0,p=C.length;d<p;d+=1){A=C[d];i[A]=c[A]}}return i}function repeat(i,c){var d="",p;for(p=0;p<c;p+=1){d+=i}return d}function isNegativeZero(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}i.exports.isNothing=isNothing;i.exports.isObject=isObject;i.exports.toArray=toArray;i.exports.repeat=repeat;i.exports.isNegativeZero=isNegativeZero;i.exports.extend=extend},59980:(i,c,d)=>{"use strict";var p=d(19816);var A=d(41248);var C=d(97336);var S=Object.prototype.toString;var v=Object.prototype.hasOwnProperty;var _=65279;var T=9;var V=10;var K=13;var ee=32;var te=33;var re=34;var ne=35;var ie=37;var se=38;var oe=39;var ae=42;var le=44;var ce=45;var ue=58;var de=61;var fe=62;var pe=63;var Ae=64;var he=91;var ge=93;var me=96;var ye=123;var Ee=124;var be=125;var Ce={};Ce[0]="\\0";Ce[7]="\\a";Ce[8]="\\b";Ce[9]="\\t";Ce[10]="\\n";Ce[11]="\\v";Ce[12]="\\f";Ce[13]="\\r";Ce[27]="\\e";Ce[34]='\\"';Ce[92]="\\\\";Ce[133]="\\N";Ce[160]="\\_";Ce[8232]="\\L";Ce[8233]="\\P";var we=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Ie=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(i,c){var d,p,A,C,S,_,T;if(c===null)return{};d={};p=Object.keys(c);for(A=0,C=p.length;A<C;A+=1){S=p[A];_=String(c[S]);if(S.slice(0,2)==="!!"){S="tag:yaml.org,2002:"+S.slice(2)}T=i.compiledTypeMap["fallback"][S];if(T&&v.call(T.styleAliases,_)){_=T.styleAliases[_]}d[S]=_}return d}function encodeHex(i){var c,d,C;c=i.toString(16).toUpperCase();if(i<=255){d="x";C=2}else if(i<=65535){d="u";C=4}else if(i<=4294967295){d="U";C=8}else{throw new A("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+d+p.repeat("0",C-c.length)+c}var Se=1,ve=2;function State(i){this.schema=i["schema"]||C;this.indent=Math.max(1,i["indent"]||2);this.noArrayIndent=i["noArrayIndent"]||false;this.skipInvalid=i["skipInvalid"]||false;this.flowLevel=p.isNothing(i["flowLevel"])?-1:i["flowLevel"];this.styleMap=compileStyleMap(this.schema,i["styles"]||null);this.sortKeys=i["sortKeys"]||false;this.lineWidth=i["lineWidth"]||80;this.noRefs=i["noRefs"]||false;this.noCompatMode=i["noCompatMode"]||false;this.condenseFlow=i["condenseFlow"]||false;this.quotingType=i["quotingType"]==='"'?ve:Se;this.forceQuotes=i["forceQuotes"]||false;this.replacer=typeof i["replacer"]==="function"?i["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(i,c){var d=p.repeat(" ",c),A=0,C=-1,S="",v,_=i.length;while(A<_){C=i.indexOf("\n",A);if(C===-1){v=i.slice(A);A=_}else{v=i.slice(A,C+1);A=C+1}if(v.length&&v!=="\n")S+=d;S+=v}return S}function generateNextLine(i,c){return"\n"+p.repeat(" ",i.indent*c)}function testImplicitResolving(i,c){var d,p,A;for(d=0,p=i.implicitTypes.length;d<p;d+=1){A=i.implicitTypes[d];if(A.resolve(c)){return true}}rLine truncated
|
||||
*/function isObject(i){return Object.prototype.toString.call(i)==="[object Object]"}function isPlainObject(i){var c,d;if(isObject(i)===false)return false;c=i.constructor;if(c===undefined)return true;d=c.prototype;if(isObject(d)===false)return false;if(d.hasOwnProperty("isPrototypeOf")===false){return false}return true}c.isPlainObject=isPlainObject},96543:i=>{const isStream=i=>i!==null&&typeof i==="object"&&typeof i.pipe==="function";isStream.writable=i=>isStream(i)&&i.writable!==false&&typeof i._write==="function"&&typeof i._writableState==="object";isStream.readable=i=>isStream(i)&&i.readable!==false&&typeof i._read==="function"&&typeof i._readableState==="object";isStream.duplex=i=>isStream.writable(i)&&isStream.readable(i);isStream.transform=i=>isStream.duplex(i)&&typeof i._transform==="function";i.exports=isStream},82513:i=>{var c={}.toString;i.exports=Array.isArray||function(i){return c.call(i)=="[object Array]"}},74281:(i,c,d)=>{var p=d(91950);var A=d(59980);function renamed(i,c){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. "+"Use yaml."+c+" instead, which is now safe by default.")}}i.exports.Type=d(9557);i.exports.Schema=d(62046);i.exports.FAILSAFE_SCHEMA=d(69832);i.exports.JSON_SCHEMA=d(58927);i.exports.CORE_SCHEMA=d(55746);i.exports.DEFAULT_SCHEMA=d(97336);i.exports.load=p.load;i.exports.loadAll=p.loadAll;i.exports.dump=A.dump;i.exports.YAMLException=d(41248);i.exports.types={binary:d(8149),float:d(57584),map:d(47316),null:d(4333),pairs:d(16267),set:d(78758),timestamp:d(28966),bool:d(67296),int:d(62271),merge:d(76854),omap:d(58649),seq:d(77161),str:d(53929)};i.exports.safeLoad=renamed("safeLoad","load");i.exports.safeLoadAll=renamed("safeLoadAll","loadAll");i.exports.safeDump=renamed("safeDump","dump")},19816:i=>{function isNothing(i){return typeof i==="undefined"||i===null}function isObject(i){return typeof i==="object"&&i!==null}function toArray(i){if(Array.isArray(i))return i;else if(isNothing(i))return[];return[i]}function extend(i,c){var d,p,A,C;if(c){C=Object.keys(c);for(d=0,p=C.length;d<p;d+=1){A=C[d];i[A]=c[A]}}return i}function repeat(i,c){var d="",p;for(p=0;p<c;p+=1){d+=i}return d}function isNegativeZero(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}i.exports.isNothing=isNothing;i.exports.isObject=isObject;i.exports.toArray=toArray;i.exports.repeat=repeat;i.exports.isNegativeZero=isNegativeZero;i.exports.extend=extend},59980:(i,c,d)=>{var p=d(19816);var A=d(41248);var C=d(97336);var S=Object.prototype.toString;var v=Object.prototype.hasOwnProperty;var _=65279;var T=9;var V=10;var K=13;var ee=32;var te=33;var re=34;var ne=35;var ie=37;var se=38;var oe=39;var ae=42;var le=44;var ce=45;var ue=58;var de=61;var fe=62;var pe=63;var Ae=64;var he=91;var ge=93;var me=96;var ye=123;var Ee=124;var be=125;var Ce={};Ce[0]="\\0";Ce[7]="\\a";Ce[8]="\\b";Ce[9]="\\t";Ce[10]="\\n";Ce[11]="\\v";Ce[12]="\\f";Ce[13]="\\r";Ce[27]="\\e";Ce[34]='\\"';Ce[92]="\\\\";Ce[133]="\\N";Ce[160]="\\_";Ce[8232]="\\L";Ce[8233]="\\P";var we=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Ie=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(i,c){var d,p,A,C,S,_,T;if(c===null)return{};d={};p=Object.keys(c);for(A=0,C=p.length;A<C;A+=1){S=p[A];_=String(c[S]);if(S.slice(0,2)==="!!"){S="tag:yaml.org,2002:"+S.slice(2)}T=i.compiledTypeMap["fallback"][S];if(T&&v.call(T.styleAliases,_)){_=T.styleAliases[_]}d[S]=_}return d}function encodeHex(i){var c,d,C;c=i.toString(16).toUpperCase();if(i<=255){d="x";C=2}else if(i<=65535){d="u";C=4}else if(i<=4294967295){d="U";C=8}else{throw new A("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+d+p.repeat("0",C-c.length)+c}var Se=1,ve=2;function State(i){this.schema=i["schema"]||C;this.indent=Math.max(1,i["indent"]||2);this.noArrayIndent=i["noArrayIndent"]||false;this.skipInvalid=i["skipInvalid"]||false;this.flowLevel=p.isNothing(i["flowLevel"])?-1:i["flowLevel"];this.styleMap=compileStyleMap(this.schema,i["styles"]||null);this.sortKeys=i["sortKeys"]||false;this.lineWidth=i["lineWidth"]||80;this.noRefs=i["noRefs"]||false;this.noCompatMode=i["noCompatMode"]||false;this.condenseFlow=i["condenseFlow"]||false;this.quotingType=i["quotingType"]==='"'?ve:Se;this.forceQuotes=i["forceQuotes"]||false;this.replacer=typeof i["replacer"]==="function"?i["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(i,c){var d=p.repeat(" ",c),A=0,C=-1,S="",v,_=i.length;while(A<_){C=i.indexOf("\n",A);if(C===-1){v=i.slice(A);A=_}else{v=i.slice(A,C+1);A=C+1}if(v.length&&v!=="\n")S+=d;S+=v}return S}function generateNextLine(i,c){return"\n"+p.repeat(" ",i.indent*c)}function testImplicitResolving(i,c){var d,p,A;for(d=0,p=i.implicitTypes.length;d<p;d+=1){A=i.implicitTypes[d];if(A.resolve(c)){return true}}return false}function isWhitespace(i){return i===ee||Line truncated
|
||||
/*!
|
||||
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
||||
*
|
||||
* Copyright (c) 2014-2018, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
i.exports=function(i,c){if(typeof i!=="string"){throw new TypeError("expected path to be a string")}if(i==="\\"||i==="/")return"/";var d=i.length;if(d<=1)return i;var p="";if(d>4&&i[3]==="\\"){var A=i[2];if((A==="?"||A===".")&&i.slice(0,2)==="\\\\"){i=i.slice(2);p="//"}}var C=i.split(/[/\\]+/);if(c!==false&&C[C.length-1]===""){C.pop()}return p+C.join("/")}},55560:(i,c,d)=>{var p=d(58264);i.exports=p(once);i.exports.strict=p(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(i){var f=function(){if(f.called)return f.value;f.called=true;return f.value=i.apply(this,arguments)};f.called=false;return f}function onceStrict(i){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=i.apply(this,arguments)};var c=i.name||"Function wrapped with `once`";f.onceError=c+" shouldn't be called more than once";f.called=false;return f}},19183:i=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){i.exports={nextTick:nextTick}}else{i.exports=process}function nextTick(i,c,d,p){if(typeof i!=="function"){throw new TypeError('"callback" argument must be a function')}var A=arguments.length;var C,S;switch(A){case 0:case 1:return process.nextTick(i);case 2:return process.nextTick((function afterTickOne(){i.call(null,c)}));case 3:return process.nextTick((function afterTickTwo(){i.call(null,c,d)}));case 4:return process.nextTick((function afterTickThree(){i.call(null,c,d,p)}));default:C=new Array(A-1);S=0;while(S<C.length){C[S++]=arguments[S]}return process.nextTick((function afterTick(){i.apply(null,C)}))}}},7945:i=>{i.exports=global.process},5506:(i,c,d)=>{i.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):d(36828)},36828:i=>{i.exports=typeof queueMicrotask==="function"?queueMicrotask:i=>Promise.resolve().then(i)},80652:(i,c,d)=>{"use strict";const{SymbolDispose:p}=d(50999);const{AbortError:A,codes:C}=d(69220);const{isNodeStream:S,isWebStream:v,kControllerErrorFunction:_}=d(83426);const T=d(36815);const{ERR_INVALID_ARG_TYPE:V}=C;let K;const validateAbortSignal=(i,c)=>{if(typeof i!=="object"||!("aborted"in i)){throw new V(c,"AbortSignal",i)}};i.exports.addAbortSignal=function addAbortSignal(c,d){validateAbortSignal(c,"signal");if(!S(d)&&!v(d)){throw new V("stream",["ReadableStream","WritableStream","Stream"],d)}return i.exports.addAbortSignalNoValidate(c,d)};i.exports.addAbortSignalNoValidate=function(i,c){if(typeof i!=="object"||!("aborted"in i)){return c}const C=S(c)?()=>{c.destroy(new A(undefined,{cause:i.reason}))}:()=>{c[_](new A(undefined,{cause:i.reason}))};if(i.aborted){C()}else{K=K||d(23539).addAbortListener;const A=K(i,C);T(c,A[p])}return c}},77336:(i,c,d)=>{"use strict";const{StringPrototypeSlice:p,SymbolIterator:A,TypedArrayPrototypeSet:C,Uint8Array:S}=d(50999);const{Buffer:v}=d(20181);const{inspect:_}=d(23539);i.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(i){const c={data:i,next:null};if(this.length>0)this.tail.next=c;else this.head=c;this.tail=c;++this.length}unshift(i){const c={data:i,next:this.head};if(this.length===0)this.tail=c;this.head=c;++this.length}shift(){if(this.length===0)return;const i=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return i}clear(){this.head=this.tail=null;this.length=0}join(i){if(this.length===0)return"";let c=this.head;let d=""+c.data;while((c=c.next)!==null)d+=i+c.data;return d}concat(i){if(this.length===0)return v.alloc(0);const c=v.allocUnsafe(i>>>0);let d=this.head;let p=0;while(d){C(c,d.data,p);p+=d.data.length;d=d.next}return c}consume(i,c){const d=this.head.data;if(i<d.length){const c=d.slice(0,i);this.head.data=d.slice(i);return c}if(i===d.length){return this.shift()}return c?this._getString(i):this._getBuffer(i)}first(){return this.head.data}*[A](){for(let i=this.head;i;i=i.next){yield i.data}}_getString(i){let c="";let d=this.head;let A=0;do{const C=d.data;if(i>C.length){c+=C;i-=C.length}else{if(i===C.length){c+=C;++A;if(d.next)this.head=d.next;else this.head=this.tail=null}else{c+=p(C,0,i);this.head=d;d.data=p(C,i)}break}++A}while((d=d.next)!==null);this.length-=A;return c}_getBuffer(i){const c=v.allocUnsafe(i);const d=i;let p=this.head;let A=0;do{const v=p.data;if(i>v.length){C(c,v,d-i);i-=v.length}else{if(i===v.length){C(c,v,d-i);++A;if(p.next)this.head=p.next;else this.head=this.tail=null}else{C(c,new S(v.buffer,v.byteOffset,i),d-i);this.head=p;p.data=v.slice(i)}break}++A}while((p=p.next)!==null);this.length-=A;return c}[Symbol.for("nodejs.util.inspect.custom")](i,c){return _(this,{...c,depth:0,customInspect:false})}}},64999:(i,c,d)=>{"use stricLine truncated
|
||||
i.exports=function(i,c){if(typeof i!=="string"){throw new TypeError("expected path to be a string")}if(i==="\\"||i==="/")return"/";var d=i.length;if(d<=1)return i;var p="";if(d>4&&i[3]==="\\"){var A=i[2];if((A==="?"||A===".")&&i.slice(0,2)==="\\\\"){i=i.slice(2);p="//"}}var C=i.split(/[/\\]+/);if(c!==false&&C[C.length-1]===""){C.pop()}return p+C.join("/")}},55560:(i,c,d)=>{var p=d(58264);i.exports=p(once);i.exports.strict=p(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(i){var f=function(){if(f.called)return f.value;f.called=true;return f.value=i.apply(this,arguments)};f.called=false;return f}function onceStrict(i){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=i.apply(this,arguments)};var c=i.name||"Function wrapped with `once`";f.onceError=c+" shouldn't be called more than once";f.called=false;return f}},19183:i=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){i.exports={nextTick:nextTick}}else{i.exports=process}function nextTick(i,c,d,p){if(typeof i!=="function"){throw new TypeError('"callback" argument must be a function')}var A=arguments.length;var C,S;switch(A){case 0:case 1:return process.nextTick(i);case 2:return process.nextTick((function afterTickOne(){i.call(null,c)}));case 3:return process.nextTick((function afterTickTwo(){i.call(null,c,d)}));case 4:return process.nextTick((function afterTickThree(){i.call(null,c,d,p)}));default:C=new Array(A-1);S=0;while(S<C.length){C[S++]=arguments[S]}return process.nextTick((function afterTick(){i.apply(null,C)}))}}},7945:i=>{i.exports=global.process},5506:(i,c,d)=>{i.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):d(36828)},36828:i=>{i.exports=typeof queueMicrotask==="function"?queueMicrotask:i=>Promise.resolve().then(i)},80652:(i,c,d)=>{const{SymbolDispose:p}=d(50999);const{AbortError:A,codes:C}=d(69220);const{isNodeStream:S,isWebStream:v,kControllerErrorFunction:_}=d(83426);const T=d(36815);const{ERR_INVALID_ARG_TYPE:V}=C;let K;const validateAbortSignal=(i,c)=>{if(typeof i!=="object"||!("aborted"in i)){throw new V(c,"AbortSignal",i)}};i.exports.addAbortSignal=function addAbortSignal(c,d){validateAbortSignal(c,"signal");if(!S(d)&&!v(d)){throw new V("stream",["ReadableStream","WritableStream","Stream"],d)}return i.exports.addAbortSignalNoValidate(c,d)};i.exports.addAbortSignalNoValidate=function(i,c){if(typeof i!=="object"||!("aborted"in i)){return c}const C=S(c)?()=>{c.destroy(new A(undefined,{cause:i.reason}))}:()=>{c[_](new A(undefined,{cause:i.reason}))};if(i.aborted){C()}else{K=K||d(23539).addAbortListener;const A=K(i,C);T(c,A[p])}return c}},77336:(i,c,d)=>{const{StringPrototypeSlice:p,SymbolIterator:A,TypedArrayPrototypeSet:C,Uint8Array:S}=d(50999);const{Buffer:v}=d(20181);const{inspect:_}=d(23539);i.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(i){const c={data:i,next:null};if(this.length>0)this.tail.next=c;else this.head=c;this.tail=c;++this.length}unshift(i){const c={data:i,next:this.head};if(this.length===0)this.tail=c;this.head=c;++this.length}shift(){if(this.length===0)return;const i=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return i}clear(){this.head=this.tail=null;this.length=0}join(i){if(this.length===0)return"";let c=this.head;let d=""+c.data;while((c=c.next)!==null)d+=i+c.data;return d}concat(i){if(this.length===0)return v.alloc(0);const c=v.allocUnsafe(i>>>0);let d=this.head;let p=0;while(d){C(c,d.data,p);p+=d.data.length;d=d.next}return c}consume(i,c){const d=this.head.data;if(i<d.length){const c=d.slice(0,i);this.head.data=d.slice(i);return c}if(i===d.length){return this.shift()}return c?this._getString(i):this._getBuffer(i)}first(){return this.head.data}*[A](){for(let i=this.head;i;i=i.next){yield i.data}}_getString(i){let c="";let d=this.head;let A=0;do{const C=d.data;if(i>C.length){c+=C;i-=C.length}else{if(i===C.length){c+=C;++A;if(d.next)this.head=d.next;else this.head=this.tail=null}else{c+=p(C,0,i);this.head=d;d.data=p(C,i)}break}++A}while((d=d.next)!==null);this.length-=A;return c}_getBuffer(i){const c=v.allocUnsafe(i);const d=i;let p=this.head;let A=0;do{const v=p.data;if(i>v.length){C(c,v,d-i);i-=v.length}else{if(i===v.length){C(c,v,d-i);++A;if(p.next)this.head=p.next;else this.head=this.tail=null}else{C(c,new S(v.buffer,v.byteOffset,i),d-i);this.head=p;p.data=v.slice(i)}break}++A}while((p=p.next)!==null);this.length-=A;return c}[Symbol.for("nodejs.util.inspect.custom")](i,c){return _(this,{...c,depth:0,customInspect:false})}}},64999:(i,c,d)=>{const{pipeline:p}=d(16701);const A=d(94449);constLine truncated
|
||||
/*!
|
||||
* Tmp
|
||||
*
|
||||
@@ -75,9 +76,9 @@ i.exports=function(i,c){if(typeof i!=="string"){throw new TypeError("expected pa
|
||||
*
|
||||
* MIT Licensed
|
||||
*/
|
||||
const p=d(79896);const A=d(70857);const C=d(16928);const S=d(76982);const v={fs:p.constants,os:A.constants};const _="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",T=/XXXXXX/,V=3,K=(v.O_CREAT||v.fs.O_CREAT)|(v.O_EXCL||v.fs.O_EXCL)|(v.O_RDWR||v.fs.O_RDWR),ee=A.platform()==="win32",te=v.EBADF||v.os.errno.EBADF,re=v.ENOENT||v.os.errno.ENOENT,ne=448,ie=384,se="exit",oe=[],ae=p.rmdirSync.bind(p);let le=false;function rimraf(i,c){return p.rm(i,{recursive:true},c)}function FN_RIMRAF_SYNC(i){return p.rmSync(i,{recursive:true})}function tmpName(i,c){const d=_parseArguments(i,c),A=d[0],C=d[1];_assertAndSanitizeOptions(A,(function(i,c){if(i)return C(i);let d=c.tries;(function _getUniqueName(){try{const i=_generateTmpName(c);p.stat(i,(function(c){if(!c){if(d-- >0)return _getUniqueName();return C(new Error("Could not get a unique tmp filename, max tries reached "+i))}C(null,i)}))}catch(i){C(i)}})()}))}function tmpNameSync(i){const c=_parseArguments(i),d=c[0];const A=_assertAndSanitizeOptionsSync(d);let C=A.tries;do{const i=_generateTmpName(A);try{p.statSync(i)}catch(c){return i}}while(C-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,c){const d=_parseArguments(i,c),A=d[0],C=d[1];tmpName(A,(function _tmpNameCreated(i,c){if(i)return C(i);p.open(c,K,A.mode||ie,(function _fileCreated(i,d){if(i)return C(i);if(A.discardDescriptor){return p.close(d,(function _discardCallback(i){return C(i,c,undefined,_prepareTmpFileRemoveCallback(c,-1,A,false))}))}else{const i=A.discardDescriptor||A.detachDescriptor;C(null,c,d,_prepareTmpFileRemoveCallback(c,i?-1:d,A,false))}}))}))}function fileSync(i){const c=_parseArguments(i),d=c[0];const A=d.discardDescriptor||d.detachDescriptor;const C=tmpNameSync(d);let S=p.openSync(C,K,d.mode||ie);if(d.discardDescriptor){p.closeSync(S);S=undefined}return{name:C,fd:S,removeCallback:_prepareTmpFileRemoveCallback(C,A?-1:S,d,true)}}function dir(i,c){const d=_parseArguments(i,c),A=d[0],C=d[1];tmpName(A,(function _tmpNameCreated(i,c){if(i)return C(i);p.mkdir(c,A.mode||ne,(function _dirCreated(i){if(i)return C(i);C(null,c,_prepareTmpDirRemoveCallback(c,A,false))}))}))}function dirSync(i){const c=_parseArguments(i),d=c[0];const A=tmpNameSync(d);p.mkdirSync(A,d.mode||ne);return{name:A,removeCallback:_prepareTmpDirRemoveCallback(A,d,true)}}function _removeFileAsync(i,c){const _handler=function(i){if(i&&!_isENOENT(i)){return c(i)}c()};if(0<=i[0])p.close(i[0],(function(){p.unlink(i[1],_handler)}));else p.unlink(i[1],_handler)}function _removeFileSync(i){let c=null;try{if(0<=i[0])p.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{p.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))c=i}}if(c!==null){throw c}}function _prepareTmpFileRemoveCallback(i,c,d,p){const A=_prepareRemoveCallback(_removeFileSync,[c,i],p);const C=_prepareRemoveCallback(_removeFileAsync,[c,i],p,A);if(!d.keep)oe.unshift(A);return p?A:C}function _prepareTmpDirRemoveCallback(i,c,d){const A=c.unsafeCleanup?rimraf:p.rmdir.bind(p);const C=c.unsafeCleanup?FN_RIMRAF_SYNC:ae;const S=_prepareRemoveCallback(C,i,d);const v=_prepareRemoveCallback(A,i,d,S);if(!c.keep)oe.unshift(S);return d?S:v}function _prepareRemoveCallback(i,c,d,p){let A=false;return function _cleanupCallback(C){if(!A){const S=p||_cleanupCallback;const v=oe.indexOf(S);if(v>=0)oe.splice(v,1);A=true;if(d||i===ae||i===FN_RIMRAF_SYNC){return i(c)}else{return i(c,C||function(){})}}}}function _garbageCollector(){if(!le)return;while(oe.length){try{oe[0]()}catch(i){}}}function _randomChars(i){let c=[],d=null;try{d=S.randomBytes(i)}catch(c){d=S.pseudoRandomBytes(i)}for(let p=0;p<i;p++){c.push(_[d[p]%_.length])}return c.join("")}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,c){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},c]}const d={};for(const c of Object.getOwnPropertyNames(i)){d[c]=i[c]}return[d,c]}function _resolvePath(i,c,d){const A=C.isAbsolute(i)?i:C.join(c,i);p.stat(A,(function(i){if(i){p.realpath(C.dirname(A),(function(i,c){if(i)return d(i);d(null,C.join(c,C.basename(A)))}))}else{p.realpath(A,d)}}))}function _resolvePathSync(i,c){const d=C.isAbsolute(i)?i:C.join(c,i);try{p.statSync(d);return p.realpathSync(d)}catch(i){const c=p.realpathSync(C.dirname(d));return C.join(c,C.basename(d))}}function _generateTmpName(i){const c=i.tmpdir;if(!_isUndefined(i.name)){return C.join(c,i.dir,i.name)}if(!_isUndefined(i.template)){return C.join(c,i.dir,i.template).replace(T,_randomChars(6))}const d=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return C.join(c,i.dir,d)}function _assertOptionsBase(i){if(!_isUndefined(i.name)){const c=i.name;if(C.isAbsolute(c))throw new Error(`name option must not contain an absolute path, found "${c}".`);const d=C.basename(c);if(d===".."||d==="."||d!==c)throw new Error(`name option must not contain a path, found "${c}".`)}if(!_isUndefined(i.template)&&!i.template.match(T)){throw neLine truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=i=>i.replace(/\r?\n|\r/g,"\r\n");const p=[];const A=new Uint8Array([13,10]);K=0;let C=false;for(const[c,S]of i){if(typeof S==="string"){const i=me.encode(d+`; name="${escape(normalizeLinefeeds(c))}"`+`\r\n\r\n${normalizeLinefeeds(S)}\r\n`);p.push(i);K+=i.byteLength}else{const i=me.encode(`${d}; name="${escape(normalizeLinefeeds(c))}"`+(S.name?`; filename="${escape(S.name)}"`:"")+"\r\n"+`Content-Type: ${S.type||"application/octet-stream"}\r\n\r\n`);p.push(i,S,A);if(typeof S.size==="number"){K+=i.byteLength+S.size+A.byteLength}else{C=true}}}const S=me.encode(`--${c}--`);p.push(S);K+=S.byteLength;if(C){K=null}V=i;T=async function*(){for(const i of p){if(i.stream){yield*i.stream()}else{yield i}}};ee="multipart/form-data; boundary="+c}else if(S(i)){V=i;K=i.size;if(i.type){ee=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(c){throw new TypeError("keepalive")}if(A.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}p=i instanceof he?i:C(i)}if(typeof V==="string"||A.isBuffer(V)){K=Buffer.byteLength(V)}if(T!=null){let c;p=new he({async start(){c=T(i)[Symbol.asyncIterator]()},async pull(i){const{value:d,done:A}=await c.next();if(A){queueMicrotask((()=>{i.close()}))}else{if(!le(p)){i.enqueue(new Uint8Array(d))}}return i.desiredSize>0},async cancel(i){await c.return()},type:undefined})}const te={stream:p,source:V,length:K};return[te,ee]}function safelyExtractBody(i,c=false){if(!he){he=d(63774).ReadableStream}if(i instanceof he){ae(!A.isDisturbed(i),"The body has already been consumed.");ae(!i.locked,"The stream is locked.")}return extractBody(i,c)}function cloneBody(i){const[c,d]=i.stream.tee();const p=ne(d,{transfer:[d]});const[,A]=p.tee();i.stream=c;return{stream:A,length:i.length,source:i.source}}async function*consumeBody(i){if(i){if(ce(i)){yield i}else{const c=i.stream;if(A.isDisturbed(c)){throw new TypeError("The body has already been consumed.")}if(c.locked){throw new TypeError("The stream is locked.")}c[oe]=true;yield*c}}}function throwIfAborted(i){if(i.aborted){throw new re("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const c={blob(){return specConsumeBody(this,(i=>{let c=bodyMimeType(this);if(c==="failure"){c=""}else if(c){c=pe(c)}return new ie([i],{type:c})}),i)},arrayBuffer(){return specConsumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return specConsumeBody(this,utf8DecodeBytes,i)},json(){return specConsumeBody(this,parseJSONFromBytes,i)},async formData(){te.brandCheck(this,i);throwIfAborted(this[ee]);const c=this.headers.get("Content-Type");if(/multipart\/form-data/.test(c)){const i={};for(const[c,d]of this.headers)i[c.toLowerCase()]=d;const c=new K;let d;try{d=new p({headers:i,preservePath:true})}catch(i){throw new re(`${i}`,"AbortError")}d.on("field",((i,d)=>{c.append(i,d)}));d.on("file",((i,d,p,A,C)=>{const S=[];if(A==="base64"||A.toLowerCase()==="base64"){let A="";d.on("data",(i=>{A+=i.toString().replace(/[\r\n]/gm,"");const c=A.length-A.length%4;S.push(Buffer.from(A.slice(0,c),"base64"));A=A.slice(c)}));d.on("end",(()=>{S.push(Buffer.from(A,"base64"));c.append(i,new ge(S,p,{type:C}))}))}else{d.on("data",(i=>{S.push(i)}));d.on("end",(()=>{c.append(i,new ge(S,p,{type:C}))}))}}));const A=new Promise(((i,c)=>{d.on("finish",i);d.on("error",(i=>c(new TypeError(i))))}));if(this.body!==null)for await(const i of consumeBody(this[ee].body))d.write(i);d.end();await A;return c}else if(/application\/x-www-form-urlencoded/.test(c)){let i;try{let c="";const d=new TextDecoder("utf-8",{ignoreBOM:true});for await(const i of consumeBody(this[ee].body)){if(!ce(i)){throw new TypeError("Expected Uint8Array chunk")}c+=d.decode(i,{stream:true})}c+=d.decode();i=new URLSearchParams(c)}catch(i){throw Object.assign(new TypeError,{cause:i})}const c=new K;for(const[d,p]of i){c.append(d,p)}return c}else{await Promise.resolve();throwIfAborted(this[ee]);throw te.errors.exception({header:`${i.name}.formData`,message:"Could not parse content as FormData."})}}};return c}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function specConsumeBody(i,c,d){te.brandCheck(i,d);throwIfAborted(i[ee]);if(bodyUnusable(i[ee].body)){throw new TypeError("Body is unusable")}const p=T();const errorSteps=i=>p.reject(i);const successSteps=i=>{try{p.resolve(c(i))}catch(i){errorSteps(i)}};if(i[ee].body==null){successSteps(new Uint8Array);return p.promise}await V(i[ee].body,successSteps,errorSteps);return p.promise}function bodyUnusable(i){return i!=null&&(i.stream.locked||A.isDisturbed(i.stream))}function utf8DecodeBytes(i){if(i.length===0){return""}if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}const c=ye.decode(i);return c}function parseJSONFromBytes(i){return JSON.parse(utf8DecodeBytes(i))}function bodyMimeType(i){const{headLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */C[A-4]=this.maskKey[0];C[A-3]=this.maskKey[1];C[A-2]=this.maskKey[2];C[A-1]=this.maskKey[3];C[1]=d;if(d===126){C.writeUInt16BE(c,2)}else if(d===127){C[2]=C[3]=0;C.writeUIntBE(c,4,6)}C[1]|=128;for(let i=0;i<c;i++){C[A+i]=this.frameData[i]^this.maskKey[i%4]}return C}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(i,c,d)=>{"use strict";const{Writable:p}=d(2203);const A=d(31637);const{parserStates:C,opcodes:S,states:v,emptyBuffer:_}=d(45913);const{kReadyState:T,kSentClose:V,kResponse:K,kReceivedClose:ee}=d(62933);const{isValidStatusCode:te,failWebsocketConnection:re,websocketMessageReceived:ne}=d(3574);const{WebsocketFrameSend:ie}=d(31237);const se={};se.ping=A.channel("undici:websocket:ping");se.pong=A.channel("undici:websocket:pong");class ByteParser extends p{#o=[];#a=0;#l=C.INFO;#c={};#u=[];constructor(i){super();this.ws=i}_write(i,c,d){this.#o.push(i);this.#a+=i.length;this.run(d)}run(i){while(true){if(this.#l===C.INFO){if(this.#a<2){return i()}const c=this.consume(2);this.#c.fin=(c[0]&128)!==0;this.#c.opcode=c[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==S.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==S.BINARY&&this.#c.opcode!==S.TEXT){re(this.ws,"Invalid frame type was fragmented.");return}const d=c[1]&127;if(d<=125){this.#c.payloadLength=d;this.#l=C.READ_DATA}else if(d===126){this.#l=C.PAYLOADLENGTH_16}else if(d===127){this.#l=C.PAYLOADLENGTH_64}if(this.#c.fragmented&&d>125){re(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===S.PING||this.#c.opcode===S.PONG||this.#c.opcode===S.CLOSE)&&d>125){re(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===S.CLOSE){if(d===1){re(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(d);this.#c.closeInfo=this.parseCloseBody(false,i);if(!this.ws[V]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#c.closeInfo.code,0);const c=new ie(i);this.ws[K].socket.write(c.createFrame(S.CLOSE),(i=>{if(!i){this.ws[V]=true}}))}this.ws[T]=v.CLOSING;this.ws[ee]=true;this.end();return}else if(this.#c.opcode===S.PING){const c=this.consume(d);if(!this.ws[ee]){const i=new ie(c);this.ws[K].socket.write(i.createFrame(S.PONG));if(se.ping.hasSubscribers){se.ping.publish({payload:c})}}this.#l=C.INFO;if(this.#a>0){continue}else{i();return}}else if(this.#c.opcode===S.PONG){const c=this.consume(d);if(se.pong.hasSubscribers){se.pong.publish({payload:c})}if(this.#a>0){continue}else{i();return}}}else if(this.#l===C.PAYLOADLENGTH_16){if(this.#a<2){return i()}const c=this.consume(2);this.#c.payloadLength=c.readUInt16BE(0);this.#l=C.READ_DATA}else if(this.#l===C.PAYLOADLENGTH_64){if(this.#a<8){return i()}const c=this.consume(8);const d=c.readUInt32BE(0);if(d>2**31-1){re(this.ws,"Received payload length > 2^31 bytes.");return}const p=c.readUInt32BE(4);this.#c.payloadLength=(d<<8)+p;this.#l=C.READ_DATA}else if(this.#l===C.READ_DATA){if(this.#a<this.#c.payloadLength){return i()}else if(this.#a>=this.#c.payloadLength){const i=this.consume(this.#c.payloadLength);this.#u.push(i);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===S.CONTINUATION){const i=Buffer.concat(this.#u);ne(this.ws,this.#c.originalOpcode,i);this.#c={};this.#u.length=0}this.#l=C.INFO}}if(this.#a>0){continue}else{i();break}}}consume(i){if(i>this.#a){return null}else if(i===0){return _}if(this.#o[0].length===i){this.#a-=this.#o[0].length;return this.#o.shift()}const c=Buffer.allocUnsafe(i);let d=0;while(d!==i){const p=this.#o[0];const{length:A}=p;if(A+d===i){c.set(this.#o.shift(),d);break}else if(A+d>i){c.set(p.subarray(0,i-d),d);this.#o[0]=p.subarray(i-d);break}else{c.set(this.#o.shift(),d);d+=p.length}}this.#a-=i;return c}parseCloseBody(i,c){let d;if(c.length>=2){d=c.readUInt16BE(0)}if(i){if(!te(d)){return null}return{code:d}}let p=c.subarray(2);if(p[0]===239&&p[1]===187&&p[2]===191){p=p.subarray(3)}if(d!==undefined&&!te(d)){return null}try{p=new TextDecoder("utf-8",{fatal:true}).decode(p)}catch{return null}return{code:d,reason:p}}get closingInfo(){return this.#c.closeInfo}}i.exports={ByteParser:ByteParser}},62933:i=>{"use strict";i.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:(i,c,d)=>{"use strict";const{kReadyState:p,kController:A,kResponse:C,kBinaryType:S,kWebSocketURL:v}=d(62933);const{states:_,opcodes:T}=d(45913);const{MessageEvent:V,ErrorEvent:K}=d(46255);function isEstablished(i){return i[p]===_.OPEN}function isClosing(i){return i[p]===_.CLOSING}function isClosed(i){return i[p]===_.CLOSED}function fireEvent(i,c,d=Event,p){const A=new d(i,p);c.dispatchEvent(A)}function websocketMessageReceived(i,c,d){if(i[p]!==_.OPEN){return}let A;if(c===T.TEXT){try{A=new TextDecodeLine truncated
|
||||
const p=d(79896);const A=d(70857);const C=d(16928);const S=d(76982);const v={fs:p.constants,os:A.constants};const _="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",T=/XXXXXX/,V=3,K=(v.O_CREAT||v.fs.O_CREAT)|(v.O_EXCL||v.fs.O_EXCL)|(v.O_RDWR||v.fs.O_RDWR),ee=A.platform()==="win32",te=v.EBADF||v.os.errno.EBADF,re=v.ENOENT||v.os.errno.ENOENT,ne=448,ie=384,se="exit",oe=[],ae=p.rmdirSync.bind(p);let le=false;function rimraf(i,c){return p.rm(i,{recursive:true},c)}function FN_RIMRAF_SYNC(i){return p.rmSync(i,{recursive:true})}function tmpName(i,c){const d=_parseArguments(i,c),A=d[0],C=d[1];_assertAndSanitizeOptions(A,(function(i,c){if(i)return C(i);let d=c.tries;(function _getUniqueName(){try{const i=_generateTmpName(c);p.stat(i,(function(c){if(!c){if(d-- >0)return _getUniqueName();return C(new Error("Could not get a unique tmp filename, max tries reached "+i))}C(null,i)}))}catch(i){C(i)}})()}))}function tmpNameSync(i){const c=_parseArguments(i),d=c[0];const A=_assertAndSanitizeOptionsSync(d);let C=A.tries;do{const i=_generateTmpName(A);try{p.statSync(i)}catch(c){return i}}while(C-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,c){const d=_parseArguments(i,c),A=d[0],C=d[1];tmpName(A,(function _tmpNameCreated(i,c){if(i)return C(i);p.open(c,K,A.mode||ie,(function _fileCreated(i,d){if(i)return C(i);if(A.discardDescriptor){return p.close(d,(function _discardCallback(i){return C(i,c,undefined,_prepareTmpFileRemoveCallback(c,-1,A,false))}))}else{const i=A.discardDescriptor||A.detachDescriptor;C(null,c,d,_prepareTmpFileRemoveCallback(c,i?-1:d,A,false))}}))}))}function fileSync(i){const c=_parseArguments(i),d=c[0];const A=d.discardDescriptor||d.detachDescriptor;const C=tmpNameSync(d);let S=p.openSync(C,K,d.mode||ie);if(d.discardDescriptor){p.closeSync(S);S=undefined}return{name:C,fd:S,removeCallback:_prepareTmpFileRemoveCallback(C,A?-1:S,d,true)}}function dir(i,c){const d=_parseArguments(i,c),A=d[0],C=d[1];tmpName(A,(function _tmpNameCreated(i,c){if(i)return C(i);p.mkdir(c,A.mode||ne,(function _dirCreated(i){if(i)return C(i);C(null,c,_prepareTmpDirRemoveCallback(c,A,false))}))}))}function dirSync(i){const c=_parseArguments(i),d=c[0];const A=tmpNameSync(d);p.mkdirSync(A,d.mode||ne);return{name:A,removeCallback:_prepareTmpDirRemoveCallback(A,d,true)}}function _removeFileAsync(i,c){const _handler=function(i){if(i&&!_isENOENT(i)){return c(i)}c()};if(0<=i[0])p.close(i[0],(function(){p.unlink(i[1],_handler)}));else p.unlink(i[1],_handler)}function _removeFileSync(i){let c=null;try{if(0<=i[0])p.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{p.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))c=i}}if(c!==null){throw c}}function _prepareTmpFileRemoveCallback(i,c,d,p){const A=_prepareRemoveCallback(_removeFileSync,[c,i],p);const C=_prepareRemoveCallback(_removeFileAsync,[c,i],p,A);if(!d.keep)oe.unshift(A);return p?A:C}function _prepareTmpDirRemoveCallback(i,c,d){const A=c.unsafeCleanup?rimraf:p.rmdir.bind(p);const C=c.unsafeCleanup?FN_RIMRAF_SYNC:ae;const S=_prepareRemoveCallback(C,i,d);const v=_prepareRemoveCallback(A,i,d,S);if(!c.keep)oe.unshift(S);return d?S:v}function _prepareRemoveCallback(i,c,d,p){let A=false;return function _cleanupCallback(C){if(!A){const S=p||_cleanupCallback;const v=oe.indexOf(S);if(v>=0)oe.splice(v,1);A=true;if(d||i===ae||i===FN_RIMRAF_SYNC){return i(c)}else{return i(c,C||function(){})}}}}function _garbageCollector(){if(!le)return;while(oe.length){try{oe[0]()}catch(i){}}}function _randomChars(i){let c=[],d=null;try{d=S.randomBytes(i)}catch(c){d=S.pseudoRandomBytes(i)}for(let p=0;p<i;p++){c.push(_[d[p]%_.length])}return c.join("")}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,c){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},c]}const d={};for(const c of Object.getOwnPropertyNames(i)){d[c]=i[c]}return[d,c]}function _resolvePath(i,c,d){const A=C.isAbsolute(i)?i:C.join(c,i);p.stat(A,(function(i){if(i){p.realpath(C.dirname(A),(function(i,c){if(i)return d(i);d(null,C.join(c,C.basename(A)))}))}else{p.realpath(A,d)}}))}function _resolvePathSync(i,c){const d=C.isAbsolute(i)?i:C.join(c,i);try{p.statSync(d);return p.realpathSync(d)}catch(i){const c=p.realpathSync(C.dirname(d));return C.join(c,C.basename(d))}}function _generateTmpName(i){const c=i.tmpdir;if(!_isUndefined(i.name)){return C.join(c,i.dir,i.name)}if(!_isUndefined(i.template)){return C.join(c,i.dir,i.template).replace(T,_randomChars(6))}const d=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return C.join(c,i.dir,d)}function _assertOptionsBase(i){if(!_isUndefined(i.name)){const c=i.name;if(C.isAbsolute(c))throw new Error(`name option must not contain an absolute path, found "${c}".`);const d=C.basename(c);if(d===".."||d==="."||d!==c)throw new Error(`name option must not contain a path, found "${c}".`)}if(!_isUndefined(i.template)&&!i.template.match(T)){throw neLine truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=i=>i.replace(/\r?\n|\r/g,"\r\n");const p=[];const A=new Uint8Array([13,10]);K=0;let C=false;for(const[c,S]of i){if(typeof S==="string"){const i=me.encode(d+`; name="${escape(normalizeLinefeeds(c))}"`+`\r\n\r\n${normalizeLinefeeds(S)}\r\n`);p.push(i);K+=i.byteLength}else{const i=me.encode(`${d}; name="${escape(normalizeLinefeeds(c))}"`+(S.name?`; filename="${escape(S.name)}"`:"")+"\r\n"+`Content-Type: ${S.type||"application/octet-stream"}\r\n\r\n`);p.push(i,S,A);if(typeof S.size==="number"){K+=i.byteLength+S.size+A.byteLength}else{C=true}}}const S=me.encode(`--${c}--`);p.push(S);K+=S.byteLength;if(C){K=null}V=i;T=async function*(){for(const i of p){if(i.stream){yield*i.stream()}else{yield i}}};ee="multipart/form-data; boundary="+c}else if(S(i)){V=i;K=i.size;if(i.type){ee=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(c){throw new TypeError("keepalive")}if(A.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}p=i instanceof he?i:C(i)}if(typeof V==="string"||A.isBuffer(V)){K=Buffer.byteLength(V)}if(T!=null){let c;p=new he({async start(){c=T(i)[Symbol.asyncIterator]()},async pull(i){const{value:d,done:A}=await c.next();if(A){queueMicrotask((()=>{i.close()}))}else{if(!le(p)){i.enqueue(new Uint8Array(d))}}return i.desiredSize>0},async cancel(i){await c.return()},type:undefined})}const te={stream:p,source:V,length:K};return[te,ee]}function safelyExtractBody(i,c=false){if(!he){he=d(63774).ReadableStream}if(i instanceof he){ae(!A.isDisturbed(i),"The body has already been consumed.");ae(!i.locked,"The stream is locked.")}return extractBody(i,c)}function cloneBody(i){const[c,d]=i.stream.tee();const p=ne(d,{transfer:[d]});const[,A]=p.tee();i.stream=c;return{stream:A,length:i.length,source:i.source}}async function*consumeBody(i){if(i){if(ce(i)){yield i}else{const c=i.stream;if(A.isDisturbed(c)){throw new TypeError("The body has already been consumed.")}if(c.locked){throw new TypeError("The stream is locked.")}c[oe]=true;yield*c}}}function throwIfAborted(i){if(i.aborted){throw new re("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const c={blob(){return specConsumeBody(this,(i=>{let c=bodyMimeType(this);if(c==="failure"){c=""}else if(c){c=pe(c)}return new ie([i],{type:c})}),i)},arrayBuffer(){return specConsumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return specConsumeBody(this,utf8DecodeBytes,i)},json(){return specConsumeBody(this,parseJSONFromBytes,i)},async formData(){te.brandCheck(this,i);throwIfAborted(this[ee]);const c=this.headers.get("Content-Type");if(/multipart\/form-data/.test(c)){const i={};for(const[c,d]of this.headers)i[c.toLowerCase()]=d;const c=new K;let d;try{d=new p({headers:i,preservePath:true})}catch(i){throw new re(`${i}`,"AbortError")}d.on("field",((i,d)=>{c.append(i,d)}));d.on("file",((i,d,p,A,C)=>{const S=[];if(A==="base64"||A.toLowerCase()==="base64"){let A="";d.on("data",(i=>{A+=i.toString().replace(/[\r\n]/gm,"");const c=A.length-A.length%4;S.push(Buffer.from(A.slice(0,c),"base64"));A=A.slice(c)}));d.on("end",(()=>{S.push(Buffer.from(A,"base64"));c.append(i,new ge(S,p,{type:C}))}))}else{d.on("data",(i=>{S.push(i)}));d.on("end",(()=>{c.append(i,new ge(S,p,{type:C}))}))}}));const A=new Promise(((i,c)=>{d.on("finish",i);d.on("error",(i=>c(new TypeError(i))))}));if(this.body!==null)for await(const i of consumeBody(this[ee].body))d.write(i);d.end();await A;return c}else if(/application\/x-www-form-urlencoded/.test(c)){let i;try{let c="";const d=new TextDecoder("utf-8",{ignoreBOM:true});for await(const i of consumeBody(this[ee].body)){if(!ce(i)){throw new TypeError("Expected Uint8Array chunk")}c+=d.decode(i,{stream:true})}c+=d.decode();i=new URLSearchParams(c)}catch(i){throw Object.assign(new TypeError,{cause:i})}const c=new K;for(const[d,p]of i){c.append(d,p)}return c}else{await Promise.resolve();throwIfAborted(this[ee]);throw te.errors.exception({header:`${i.name}.formData`,message:"Could not parse content as FormData."})}}};return c}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function specConsumeBody(i,c,d){te.brandCheck(i,d);throwIfAborted(i[ee]);if(bodyUnusable(i[ee].body)){throw new TypeError("Body is unusable")}const p=T();const errorSteps=i=>p.reject(i);const successSteps=i=>{try{p.resolve(c(i))}catch(i){errorSteps(i)}};if(i[ee].body==null){successSteps(new Uint8Array);return p.promise}await V(i[ee].body,successSteps,errorSteps);return p.promise}function bodyUnusable(i){return i!=null&&(i.stream.locked||A.isDisturbed(i.stream))}function utf8DecodeBytes(i){if(i.length===0){return""}if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}const c=ye.decode(i);return c}function parseJSONFromBytes(i){return JSON.parse(utf8DecodeBytes(i))}function bodyMimeType(i){const{headLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */C[A-4]=this.maskKey[0];C[A-3]=this.maskKey[1];C[A-2]=this.maskKey[2];C[A-1]=this.maskKey[3];C[1]=d;if(d===126){C.writeUInt16BE(c,2)}else if(d===127){C[2]=C[3]=0;C.writeUIntBE(c,4,6)}C[1]|=128;for(let i=0;i<c;i++){C[A+i]=this.frameData[i]^this.maskKey[i%4]}return C}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(i,c,d)=>{const{Writable:p}=d(2203);const A=d(31637);const{parserStates:C,opcodes:S,states:v,emptyBuffer:_}=d(45913);const{kReadyState:T,kSentClose:V,kResponse:K,kReceivedClose:ee}=d(62933);const{isValidStatusCode:te,failWebsocketConnection:re,websocketMessageReceived:ne}=d(3574);const{WebsocketFrameSend:ie}=d(31237);const se={};se.ping=A.channel("undici:websocket:ping");se.pong=A.channel("undici:websocket:pong");class ByteParser extends p{#o=[];#a=0;#l=C.INFO;#c={};#u=[];constructor(i){super();this.ws=i}_write(i,c,d){this.#o.push(i);this.#a+=i.length;this.run(d)}run(i){while(true){if(this.#l===C.INFO){if(this.#a<2){return i()}const c=this.consume(2);this.#c.fin=(c[0]&128)!==0;this.#c.opcode=c[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==S.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==S.BINARY&&this.#c.opcode!==S.TEXT){re(this.ws,"Invalid frame type was fragmented.");return}const d=c[1]&127;if(d<=125){this.#c.payloadLength=d;this.#l=C.READ_DATA}else if(d===126){this.#l=C.PAYLOADLENGTH_16}else if(d===127){this.#l=C.PAYLOADLENGTH_64}if(this.#c.fragmented&&d>125){re(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===S.PING||this.#c.opcode===S.PONG||this.#c.opcode===S.CLOSE)&&d>125){re(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===S.CLOSE){if(d===1){re(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(d);this.#c.closeInfo=this.parseCloseBody(false,i);if(!this.ws[V]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#c.closeInfo.code,0);const c=new ie(i);this.ws[K].socket.write(c.createFrame(S.CLOSE),(i=>{if(!i){this.ws[V]=true}}))}this.ws[T]=v.CLOSING;this.ws[ee]=true;this.end();return}else if(this.#c.opcode===S.PING){const c=this.consume(d);if(!this.ws[ee]){const i=new ie(c);this.ws[K].socket.write(i.createFrame(S.PONG));if(se.ping.hasSubscribers){se.ping.publish({payload:c})}}this.#l=C.INFO;if(this.#a>0){continue}else{i();return}}else if(this.#c.opcode===S.PONG){const c=this.consume(d);if(se.pong.hasSubscribers){se.pong.publish({payload:c})}if(this.#a>0){continue}else{i();return}}}else if(this.#l===C.PAYLOADLENGTH_16){if(this.#a<2){return i()}const c=this.consume(2);this.#c.payloadLength=c.readUInt16BE(0);this.#l=C.READ_DATA}else if(this.#l===C.PAYLOADLENGTH_64){if(this.#a<8){return i()}const c=this.consume(8);const d=c.readUInt32BE(0);if(d>2**31-1){re(this.ws,"Received payload length > 2^31 bytes.");return}const p=c.readUInt32BE(4);this.#c.payloadLength=(d<<8)+p;this.#l=C.READ_DATA}else if(this.#l===C.READ_DATA){if(this.#a<this.#c.payloadLength){return i()}else if(this.#a>=this.#c.payloadLength){const i=this.consume(this.#c.payloadLength);this.#u.push(i);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===S.CONTINUATION){const i=Buffer.concat(this.#u);ne(this.ws,this.#c.originalOpcode,i);this.#c={};this.#u.length=0}this.#l=C.INFO}}if(this.#a>0){continue}else{i();break}}}consume(i){if(i>this.#a){return null}else if(i===0){return _}if(this.#o[0].length===i){this.#a-=this.#o[0].length;return this.#o.shift()}const c=Buffer.allocUnsafe(i);let d=0;while(d!==i){const p=this.#o[0];const{length:A}=p;if(A+d===i){c.set(this.#o.shift(),d);break}else if(A+d>i){c.set(p.subarray(0,i-d),d);this.#o[0]=p.subarray(i-d);break}else{c.set(this.#o.shift(),d);d+=p.length}}this.#a-=i;return c}parseCloseBody(i,c){let d;if(c.length>=2){d=c.readUInt16BE(0)}if(i){if(!te(d)){return null}return{code:d}}let p=c.subarray(2);if(p[0]===239&&p[1]===187&&p[2]===191){p=p.subarray(3)}if(d!==undefined&&!te(d)){return null}try{p=new TextDecoder("utf-8",{fatal:true}).decode(p)}catch{return null}return{code:d,reason:p}}get closingInfo(){return this.#c.closeInfo}}i.exports={ByteParser:ByteParser}},62933:i=>{i.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:(i,c,d)=>{const{kReadyState:p,kController:A,kResponse:C,kBinaryType:S,kWebSocketURL:v}=d(62933);const{states:_,opcodes:T}=d(45913);const{MessageEvent:V,ErrorEvent:K}=d(46255);function isEstablished(i){return i[p]===_.OPEN}function isClosing(i){return i[p]===_.CLOSING}function isClosed(i){return i[p]===_.CLOSED}function fireEvent(i,c,d=Event,p){const A=new d(i,p);c.dispatchEvent(A)}function websocketMessageReceived(i,c,d){if(i[p]!==_.OPEN){return}let A;if(c===T.TEXT){try{A=new TextDecoder("utf-8",{fatal:true}).decode(d)}catchLine truncated
|
||||
/**
|
||||
* ZipStream
|
||||
*
|
||||
@@ -85,5 +86,5 @@ const p=d(79896);const A=d(70857);const C=d(16928);const S=d(76982);const v={fs:
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
||||
* @copyright (c) 2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var p=d(39023).inherits;var A=d(25163).ZipArchiveOutputStream;var C=d(25163).ZipArchiveEntry;var S=d(53296);var v=i.exports=function(i){if(!(this instanceof v)){return new v(i)}i=this.options=i||{};i.zlib=i.zlib||{};A.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};p(v,A);v.prototype._normalizeFileData=function(i){i=S.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var c=i.type==="directory";var d=i.type==="symlink";if(i.name){i.name=S.sanitizePath(i.name);if(!d&&i.name.slice(-1)==="/"){c=true;i.type="directory"}else if(c){i.name+="/"}}if(c||d){i.store=true}i.date=S.dateify(i.date);return i};v.prototype.entry=function(i,c,d){if(typeof d!=="function"){d=this._emitErrorCallback.bind(this)}c=this._normalizeFileData(c);if(c.type!=="file"&&c.type!=="directory"&&c.type!=="symlink"){d(new Error(c.type+" entries not currently supported"));return}if(typeof c.name!=="string"||c.name.length===0){d(new Error("entry name must be a non-empty string value"));return}if(c.type==="symlink"&&typeof c.linkname!=="string"){d(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var p=new C(c.name);p.setTime(c.date,this.options.forceLocalTime);if(c.namePrependSlash){p.setName(c.name,true)}if(c.store){p.setMethod(0)}if(c.comment.length>0){p.setComment(c.comment)}if(c.type==="symlink"&&typeof c.mode!=="number"){c.mode=40960}if(typeof c.mode==="number"){if(c.type==="symlink"){c.mode|=40960}p.setUnixMode(c.mode)}if(c.type==="symlink"&&typeof c.linkname==="string"){i=Buffer.from(c.linkname)}return A.prototype.entry.call(this,p,i,d)};v.prototype.finalize=function(){this.finish()}},40788:function(i,c,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(i,c,d,p){if(p===undefined)p=d;var A=Object.getOwnPropertyDescriptor(c,d);if(!A||("get"in A?!c.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return c[d]}}}Object.defineProperty(i,p,A)}:function(i,c,d,p){if(p===undefined)p=d;i[p]=c[d]});var A=this&&this.__setModuleDefault||(Object.create?function(i,c){Object.defineProperty(i,"default",{enumerable:true,value:c})}:function(i,c){i["default"]=c});var C=this&&this.__importStar||function(){var ownKeys=function(i){ownKeys=Object.getOwnPropertyNames||function(i){var c=[];for(var d in i)if(Object.prototype.hasOwnProperty.call(i,d))c[c.length]=d;return c};return ownKeys(i)};return function(i){if(i&&i.__esModule)return i;var c={};if(i!=null)for(var d=ownKeys(i),C=0;C<d.length;C++)if(d[C]!=="default")p(c,i,d[C]);A(c,i);return c}}();var S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(c,"__esModule",{value:true});c.getInputs=getInputs;const v=S(d(70857));const _=S(d(16928));const T=C(d(37484));const V=d(61110);const K=d(23651);function getInputs(){const i=T.getInput("version")||"latest";const c=parseSource(i);const d=T.getInput("channel");if(d&&c.type==="archive"){c.channel=d}return{source:c,daemonConfig:T.getInput("daemon-config"),tcpPort:K.Util.getInputNumber("tcp-port"),context:T.getInput("context"),setHost:T.getBooleanInput("set-host"),rootless:T.getBooleanInput("rootless"),runtimeBasedir:T.getInput("runtime-basedir")||_.default.join(v.default.homedir(),`setup-docker-action`),githubToken:T.getInput("github-token")}}function parseSource(i){let[c,d,p,A]=["archive","latest","stable","latest"];const C=(0,V.parse)(i,{relaxColumnCount:true,skipEmptyLines:true})[0];for(const i of C){const S=i.toString().split(/(?<=^[^=]+?)=/).map((i=>i.trim()));switch(S[0]){case"type":c=S[1];break;case"version":d=S[1];break;case"channel":p=S[1];break;case"tag":A=S[1];break;default:if(C.length===1){d=S[0];break}throw new Error(`Invalid field: ${S[0]}`)}}if(!c){throw new Error(`Invalid type: ${c}`)}if(!p){throw new Error(`Invalid channel: ${p}`)}if(!d){throw new Error(`Invalid version: ${d}`)}if(!A){throw new Error(`Invalid tag: ${A}`)}let S;switch(c){case"archive":S={type:"archive",version:d,channel:p};break;case"image":S={type:"image",tag:A};break;default:throw new Error(`Invalid version: ${i}`)}return S}},41730:function(i,c,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(i,c,d,p){if(p===undefined)p=d;var A=Object.getOwnPropertyDescriptor(c,d);if(!A||("get"in A?!c.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return c[d]}}}Object.defineProperty(i,p,A)}:function(i,c,d,p){if(p===undefined)p=d;i[p]=c[d]});var A=this&&this.__setModuleDefault||(Object.create?function(i,c){Object.defineProperty(i,"default",{enumerable:true,value:c})}:function(i,c){i["default"]=c});var C=this&&this.__importStar||function(){var ownKeys=function(i){ownKeys=Object.getOwnPropLine truncated
|
||||
var p=d(39023).inherits;var A=d(25163).ZipArchiveOutputStream;var C=d(25163).ZipArchiveEntry;var S=d(53296);var v=i.exports=function(i){if(!(this instanceof v)){return new v(i)}i=this.options=i||{};i.zlib=i.zlib||{};A.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};p(v,A);v.prototype._normalizeFileData=function(i){i=S.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var c=i.type==="directory";var d=i.type==="symlink";if(i.name){i.name=S.sanitizePath(i.name);if(!d&&i.name.slice(-1)==="/"){c=true;i.type="directory"}else if(c){i.name+="/"}}if(c||d){i.store=true}i.date=S.dateify(i.date);return i};v.prototype.entry=function(i,c,d){if(typeof d!=="function"){d=this._emitErrorCallback.bind(this)}c=this._normalizeFileData(c);if(c.type!=="file"&&c.type!=="directory"&&c.type!=="symlink"){d(new Error(c.type+" entries not currently supported"));return}if(typeof c.name!=="string"||c.name.length===0){d(new Error("entry name must be a non-empty string value"));return}if(c.type==="symlink"&&typeof c.linkname!=="string"){d(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var p=new C(c.name);p.setTime(c.date,this.options.forceLocalTime);if(c.namePrependSlash){p.setName(c.name,true)}if(c.store){p.setMethod(0)}if(c.comment.length>0){p.setComment(c.comment)}if(c.type==="symlink"&&typeof c.mode!=="number"){c.mode=40960}if(typeof c.mode==="number"){if(c.type==="symlink"){c.mode|=40960}p.setUnixMode(c.mode)}if(c.type==="symlink"&&typeof c.linkname==="string"){i=Buffer.from(c.linkname)}return A.prototype.entry.call(this,p,i,d)};v.prototype.finalize=function(){this.finish()}},42613:c=>{c.exports=i(import.meta.url)("assert")},90290:c=>{c.exports=i(import.meta.url)("async_hooks")},20181:c=>{c.exports=i(import.meta.url)("buffer")},35317:c=>{c.exports=i(import.meta.url)("child_process")},64236:c=>{c.exports=i(import.meta.url)("console")},49140:c=>{c.exports=i(import.meta.url)("constants")},76982:c=>{c.exports=i(import.meta.url)("crypto")},31637:c=>{c.exports=i(import.meta.url)("diagnostics_channel")},24434:c=>{c.exports=i(import.meta.url)("events")},79896:c=>{c.exports=i(import.meta.url)("fs")},91943:c=>{c.exports=i(import.meta.url)("fs/promises")},58611:c=>{c.exports=i(import.meta.url)("http")},85675:c=>{c.exports=i(import.meta.url)("http2")},65692:c=>{c.exports=i(import.meta.url)("https")},69278:c=>{c.exports=i(import.meta.url)("net")},4573:c=>{c.exports=i(import.meta.url)("node:buffer")},77598:c=>{c.exports=i(import.meta.url)("node:crypto")},78474:c=>{c.exports=i(import.meta.url)("node:events")},73024:c=>{c.exports=i(import.meta.url)("node:fs")},51455:c=>{c.exports=i(import.meta.url)("node:fs/promises")},37067:c=>{c.exports=i(import.meta.url)("node:http")},44708:c=>{c.exports=i(import.meta.url)("node:https")},48161:c=>{c.exports=i(import.meta.url)("node:os")},76760:c=>{c.exports=i(import.meta.url)("node:path")},1708:c=>{c.exports=i(import.meta.url)("node:process")},57075:c=>{c.exports=i(import.meta.url)("node:stream")},68574:c=>{c.exports=i(import.meta.url)("node:string_decoder")},73136:c=>{c.exports=i(import.meta.url)("node:url")},57975:c=>{c.exports=i(import.meta.url)("node:util")},38522:c=>{c.exports=i(import.meta.url)("node:zlib")},70857:c=>{c.exports=i(import.meta.url)("os")},16928:c=>{c.exports=i(import.meta.url)("path")},82987:c=>{c.exports=i(import.meta.url)("perf_hooks")},83480:c=>{c.exports=i(import.meta.url)("querystring")},2203:c=>{c.exports=i(import.meta.url)("stream")},63774:c=>{c.exports=i(import.meta.url)("stream/web")},13193:c=>{c.exports=i(import.meta.url)("string_decoder")},53557:c=>{c.exports=i(import.meta.url)("timers")},64756:c=>{c.exports=i(import.meta.url)("tls")},52018:c=>{c.exports=i(import.meta.url)("tty")},87016:c=>{c.exports=i(import.meta.url)("url")},39023:c=>{c.exports=i(import.meta.url)("util")},98253:c=>{c.exports=i(import.meta.url)("util/types")},28167:c=>{c.exports=i(import.meta.url)("worker_threads")},43106:c=>{c.exports=i(import.meta.url)("zlib")},59192:(i,c)=>{Object.defineProperty(c,"__esModule",{value:true});c.AbortError=void 0;class AbortError extends Error{constructor(i){super(i);this.name="AbortError"}}c.AbortError=AbortError},83134:(i,c,d)=>{Object.defineProperty(c,"__esModule",{value:true});c.AbortError=void 0;var p=d(59192);Object.defineProperty(c,"AbortError",{enumerable:true,get:function(){return p.AbortError}})},50198:(i,c)=>{Object.defineProperty(c,"__esModule",{value:true});c.AzureKeyCredential=void 0;class AzureKeyCredential{_key;get key(){return this._key}constructor(i){if(!i){throw new Error("key must be a non-empty string")}this._key=i}update(i){this._key=i}}c.AzureKeyCredential=AzureKeyCredential},41295:(Line truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","ownKeys","getOwnPropertyNames","ar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","url_1","diLine truncated
|
||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","ownKeys","getOwnPropertyNames","ar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","url_1","diLine truncated
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
File renamed without changes.
@@ -1,57 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||
const {defineConfig, globalIgnores} = require('eslint/config');
|
||||
const {fixupConfigRules, fixupPluginRules} = require('@eslint/compat');
|
||||
const typescriptEslint = require('@typescript-eslint/eslint-plugin');
|
||||
const jestPlugin = require('eslint-plugin-jest');
|
||||
const prettier = require('eslint-plugin-prettier');
|
||||
const globals = require('globals');
|
||||
const tsParser = require('@typescript-eslint/parser');
|
||||
const js = require('@eslint/js');
|
||||
const {FlatCompat} = require('@eslint/eslintrc');
|
||||
|
||||
// __dirname and __filename exist natively in CommonJS
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all
|
||||
});
|
||||
|
||||
module.exports = defineConfig([
|
||||
globalIgnores(['dist/**/*', 'coverage/**/*', 'node_modules/**/*']),
|
||||
{
|
||||
extends: fixupConfigRules(
|
||||
compat.extends(
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:jest/recommended',
|
||||
'plugin:prettier/recommended'
|
||||
)
|
||||
),
|
||||
|
||||
plugins: {
|
||||
'@typescript-eslint': fixupPluginRules(typescriptEslint),
|
||||
jest: fixupPluginRules(jestPlugin),
|
||||
prettier: fixupPluginRules(prettier)
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
...globals.jest
|
||||
},
|
||||
parser: tsParser,
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module'
|
||||
},
|
||||
|
||||
rules: {
|
||||
'@typescript-eslint/no-require-imports': [
|
||||
'error',
|
||||
{
|
||||
allowAsImport: true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]);
|
||||
@@ -0,0 +1,52 @@
|
||||
import {defineConfig} from 'eslint/config';
|
||||
import js from '@eslint/js';
|
||||
import tseslint from '@typescript-eslint/eslint-plugin';
|
||||
import vitest from '@vitest/eslint-plugin';
|
||||
import globals from 'globals';
|
||||
import eslintConfigPrettier from 'eslint-config-prettier/flat';
|
||||
import eslintPluginPrettier from 'eslint-plugin-prettier';
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
ignores: ['.yarn/**/*', 'coverage/**/*', 'dist/**/*']
|
||||
},
|
||||
js.configs.recommended,
|
||||
...tseslint.configs['flat/recommended'],
|
||||
eslintConfigPrettier,
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['__tests__/**'],
|
||||
...vitest.configs.recommended,
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
...vitest.environments.env.globals
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
...vitest.configs.recommended.rules,
|
||||
'vitest/no-conditional-expect': 'error',
|
||||
'vitest/no-disabled-tests': 0
|
||||
}
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
prettier: eslintPluginPrettier
|
||||
},
|
||||
rules: {
|
||||
'prettier/prettier': 'error',
|
||||
'@typescript-eslint/no-require-imports': [
|
||||
'error',
|
||||
{
|
||||
allowAsImport: true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]);
|
||||
@@ -1,29 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-docker-action-'));
|
||||
|
||||
process.env = Object.assign({}, process.env, {
|
||||
TEMP: tmpDir,
|
||||
GITHUB_REPOSITORY: 'docker/setup-docker-action',
|
||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
testEnvironment: 'node',
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testMatch: ['**/*.test.ts'],
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest'
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
|
||||
},
|
||||
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
|
||||
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__mocks__/', '__tests__/'],
|
||||
verbose: true
|
||||
};
|
||||
+17
-22
@@ -1,16 +1,13 @@
|
||||
{
|
||||
"name": "docker-setup-docker",
|
||||
"description": "Set up Docker for use in GitHub Actions by downloading and installing a version of Docker CE",
|
||||
"main": "lib/main.js",
|
||||
"type": "module",
|
||||
"main": "src/main.ts",
|
||||
"scripts": {
|
||||
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
|
||||
"lint": "yarn run prettier && yarn run eslint",
|
||||
"format": "yarn run prettier:fix && yarn run eslint:fix",
|
||||
"eslint": "eslint --max-warnings=0 .",
|
||||
"eslint:fix": "eslint --fix .",
|
||||
"prettier": "prettier --check \"./**/*.ts\"",
|
||||
"prettier:fix": "prettier --write \"./**/*.ts\"",
|
||||
"test": "jest",
|
||||
"lint": "eslint --max-warnings=0 .",
|
||||
"format": "eslint --fix .",
|
||||
"test": "vitest run",
|
||||
"all": "yarn run build && yarn run format && yarn test"
|
||||
},
|
||||
"repository": {
|
||||
@@ -30,21 +27,19 @@
|
||||
"@docker/actions-toolkit": "^0.71.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^2.0.0",
|
||||
"@eslint/eslintrc": "^3.3.3",
|
||||
"@eslint/js": "^9.39.2",
|
||||
"@types/node": "^20.19.27",
|
||||
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
||||
"@typescript-eslint/parser": "^8.50.0",
|
||||
"@eslint/js": "^9.39.3",
|
||||
"@types/node": "^20.19.35",
|
||||
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
||||
"@typescript-eslint/parser": "^8.56.1",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"eslint": "^9.39.2",
|
||||
"@vitest/coverage-v8": "^4.0.18",
|
||||
"@vitest/eslint-plugin": "^1.6.9",
|
||||
"eslint": "^9.39.3",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-jest": "^29.5.0",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"jest": "^30.2.0",
|
||||
"prettier": "^3.7.4",
|
||||
"ts-jest": "^29.4.6",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.9.3"
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"globals": "^17.3.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "^5.9.3",
|
||||
"vitest": "^4.0.18"
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3,8 +3,8 @@ import path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import {parse} from 'csv-parse/sync';
|
||||
|
||||
import {InstallSource} from '@docker/actions-toolkit/lib/docker/install';
|
||||
import {Util} from '@docker/actions-toolkit/lib/util';
|
||||
import {InstallSource} from '@docker/actions-toolkit/lib/docker/install.js';
|
||||
import {Util} from '@docker/actions-toolkit/lib/util.js';
|
||||
|
||||
export interface Inputs {
|
||||
source: InstallSource;
|
||||
|
||||
+6
-6
@@ -2,13 +2,13 @@ import * as crypto from 'crypto';
|
||||
import path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import * as actionsToolkit from '@docker/actions-toolkit';
|
||||
import {Install} from '@docker/actions-toolkit/lib/docker/install';
|
||||
import {Docker} from '@docker/actions-toolkit/lib/docker/docker';
|
||||
import {Install as RegclientInstall} from '@docker/actions-toolkit/lib/regclient/install';
|
||||
import {Install as UndockInstall} from '@docker/actions-toolkit/lib/undock/install';
|
||||
import {Install} from '@docker/actions-toolkit/lib/docker/install.js';
|
||||
import {Docker} from '@docker/actions-toolkit/lib/docker/docker.js';
|
||||
import {Install as RegclientInstall} from '@docker/actions-toolkit/lib/regclient/install.js';
|
||||
import {Install as UndockInstall} from '@docker/actions-toolkit/lib/undock/install.js';
|
||||
|
||||
import * as context from './context';
|
||||
import * as stateHelper from './state-helper';
|
||||
import * as context from './context.js';
|
||||
import * as stateHelper from './state-helper.js';
|
||||
|
||||
const regctlDefaultVersion = 'v0.8.3';
|
||||
const undockDefaultVersion = 'v0.10.0';
|
||||
|
||||
+4
-6
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "nodenext",
|
||||
"moduleResolution": "nodenext",
|
||||
"esModuleInterop": true,
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"newLine": "lf",
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src",
|
||||
@@ -11,9 +11,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"useUnknownInCatchVariables": false,
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/*.test.ts",
|
||||
"jest.config.ts"
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import {defineConfig} from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
clearMocks: true,
|
||||
environment: 'node',
|
||||
setupFiles: ['./__tests__/setup.unit.ts'],
|
||||
include: ['**/*.test.ts'],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['clover'],
|
||||
include: ['src/**/*.ts'],
|
||||
exclude: ['src/**/main.ts']
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user