@funnycode/myclaude 0.1.113 → 0.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/myclaude.js +667 -1033
- package/dist/myclaude.mjs +667 -1033
- package/package.json +2 -2
package/dist/myclaude.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-07-
|
|
7
|
+
VERSION: "0.1.115",
|
|
8
|
+
BUILD_TIME: "2026-07-21T18:00:14.161Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -44042,17 +44042,6 @@ function isArrayBufferView(val) {
|
|
|
44042
44042
|
}
|
|
44043
44043
|
return result;
|
|
44044
44044
|
}
|
|
44045
|
-
function getGlobal() {
|
|
44046
|
-
if (typeof globalThis !== "undefined")
|
|
44047
|
-
return globalThis;
|
|
44048
|
-
if (typeof self !== "undefined")
|
|
44049
|
-
return self;
|
|
44050
|
-
if (typeof window !== "undefined")
|
|
44051
|
-
return window;
|
|
44052
|
-
if (typeof global !== "undefined")
|
|
44053
|
-
return global;
|
|
44054
|
-
return {};
|
|
44055
|
-
}
|
|
44056
44045
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
44057
44046
|
if (obj === null || typeof obj === "undefined") {
|
|
44058
44047
|
return;
|
|
@@ -44067,9 +44056,6 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
44067
44056
|
fn.call(null, obj[i2], i2, obj);
|
|
44068
44057
|
}
|
|
44069
44058
|
} else {
|
|
44070
|
-
if (isBuffer2(obj)) {
|
|
44071
|
-
return;
|
|
44072
|
-
}
|
|
44073
44059
|
const keys2 = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
44074
44060
|
const len = keys2.length;
|
|
44075
44061
|
let key;
|
|
@@ -44080,9 +44066,6 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
44080
44066
|
}
|
|
44081
44067
|
}
|
|
44082
44068
|
function findKey(obj, key) {
|
|
44083
|
-
if (isBuffer2(obj)) {
|
|
44084
|
-
return null;
|
|
44085
|
-
}
|
|
44086
44069
|
key = key.toLowerCase();
|
|
44087
44070
|
const keys2 = Object.keys(obj);
|
|
44088
44071
|
let i2 = keys2.length;
|
|
@@ -44096,12 +44079,9 @@ function findKey(obj, key) {
|
|
|
44096
44079
|
return null;
|
|
44097
44080
|
}
|
|
44098
44081
|
function merge2() {
|
|
44099
|
-
const { caseless
|
|
44082
|
+
const { caseless } = isContextDefined(this) && this || {};
|
|
44100
44083
|
const result = {};
|
|
44101
44084
|
const assignValue2 = (val, key) => {
|
|
44102
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
44103
|
-
return;
|
|
44104
|
-
}
|
|
44105
44085
|
const targetKey = caseless && findKey(result, key) || key;
|
|
44106
44086
|
if (isPlainObject4(result[targetKey]) && isPlainObject4(val)) {
|
|
44107
44087
|
result[targetKey] = merge2(result[targetKey], val);
|
|
@@ -44109,7 +44089,7 @@ function merge2() {
|
|
|
44109
44089
|
result[targetKey] = merge2({}, val);
|
|
44110
44090
|
} else if (isArray3(val)) {
|
|
44111
44091
|
result[targetKey] = val.slice();
|
|
44112
|
-
} else
|
|
44092
|
+
} else {
|
|
44113
44093
|
result[targetKey] = val;
|
|
44114
44094
|
}
|
|
44115
44095
|
};
|
|
@@ -44119,9 +44099,9 @@ function merge2() {
|
|
|
44119
44099
|
return result;
|
|
44120
44100
|
}
|
|
44121
44101
|
function isSpecCompliantForm(thing) {
|
|
44122
|
-
return !!(thing && isFunction2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
44102
|
+
return !!(thing && isFunction2(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
44123
44103
|
}
|
|
44124
|
-
var toString3, getPrototypeOf,
|
|
44104
|
+
var toString3, getPrototypeOf, kindOf, kindOfTest = (type) => {
|
|
44125
44105
|
type = type.toLowerCase();
|
|
44126
44106
|
return (thing) => kindOf(thing) === type;
|
|
44127
44107
|
}, typeOfTest = (type) => (thing) => typeof thing === type, isArray3, isUndefined, isArrayBuffer2, isString, isFunction2, isNumber, isObject4 = (thing) => thing !== null && typeof thing === "object", isBoolean = (thing) => thing === true || thing === false, isPlainObject4 = (val) => {
|
|
@@ -44129,39 +44109,16 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44129
44109
|
return false;
|
|
44130
44110
|
}
|
|
44131
44111
|
const prototype = getPrototypeOf(val);
|
|
44132
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
44133
|
-
},
|
|
44134
|
-
if (!isObject4(val) || isBuffer2(val)) {
|
|
44135
|
-
return false;
|
|
44136
|
-
}
|
|
44137
|
-
try {
|
|
44138
|
-
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
44139
|
-
} catch (e) {
|
|
44140
|
-
return false;
|
|
44141
|
-
}
|
|
44142
|
-
}, isDate, isFile, isReactNativeBlob = (value) => {
|
|
44143
|
-
return !!(value && typeof value.uri !== "undefined");
|
|
44144
|
-
}, isReactNative = (formData) => formData && typeof formData.getParts !== "undefined", isBlob, isFileList, isStream2 = (val) => isObject4(val) && isFunction2(val.pipe), G2, FormDataCtor, isFormData = (thing) => {
|
|
44112
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
|
44113
|
+
}, isDate, isFile, isBlob, isFileList, isStream2 = (val) => isObject4(val) && isFunction2(val.pipe), isFormData = (thing) => {
|
|
44145
44114
|
let kind;
|
|
44146
|
-
return thing && (
|
|
44147
|
-
}, isURLSearchParams, isReadableStream3, isRequest, isResponse, isHeaders, trim = (str) => {
|
|
44148
|
-
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
44149
|
-
}, _global, isContextDefined = (context) => !isUndefined(context) && context !== _global, extend2 = (a2, b, thisArg, { allOwnKeys } = {}) => {
|
|
44115
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction2(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction2(thing.toString) && thing.toString() === "[object FormData]"));
|
|
44116
|
+
}, isURLSearchParams, isReadableStream3, isRequest, isResponse, isHeaders, trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), _global, isContextDefined = (context) => !isUndefined(context) && context !== _global, extend2 = (a2, b, thisArg, { allOwnKeys } = {}) => {
|
|
44150
44117
|
forEach(b, (val, key) => {
|
|
44151
44118
|
if (thisArg && isFunction2(val)) {
|
|
44152
|
-
|
|
44153
|
-
value: bind(val, thisArg),
|
|
44154
|
-
writable: true,
|
|
44155
|
-
enumerable: true,
|
|
44156
|
-
configurable: true
|
|
44157
|
-
});
|
|
44119
|
+
a2[key] = bind(val, thisArg);
|
|
44158
44120
|
} else {
|
|
44159
|
-
|
|
44160
|
-
value: val,
|
|
44161
|
-
writable: true,
|
|
44162
|
-
enumerable: true,
|
|
44163
|
-
configurable: true
|
|
44164
|
-
});
|
|
44121
|
+
a2[key] = val;
|
|
44165
44122
|
}
|
|
44166
44123
|
}, { allOwnKeys });
|
|
44167
44124
|
return a2;
|
|
@@ -44172,12 +44129,7 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44172
44129
|
return content;
|
|
44173
44130
|
}, inherits = (constructor, superConstructor, props, descriptors2) => {
|
|
44174
44131
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
|
|
44175
|
-
|
|
44176
|
-
value: constructor,
|
|
44177
|
-
writable: true,
|
|
44178
|
-
enumerable: false,
|
|
44179
|
-
configurable: true
|
|
44180
|
-
});
|
|
44132
|
+
constructor.prototype.constructor = constructor;
|
|
44181
44133
|
Object.defineProperty(constructor, "super", {
|
|
44182
44134
|
value: superConstructor.prototype
|
|
44183
44135
|
});
|
|
@@ -44225,10 +44177,10 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44225
44177
|
}
|
|
44226
44178
|
return arr;
|
|
44227
44179
|
}, isTypedArray2, forEachEntry = (obj, fn) => {
|
|
44228
|
-
const generator = obj && obj[iterator];
|
|
44229
|
-
const
|
|
44180
|
+
const generator = obj && obj[Symbol.iterator];
|
|
44181
|
+
const iterator = generator.call(obj);
|
|
44230
44182
|
let result;
|
|
44231
|
-
while ((result =
|
|
44183
|
+
while ((result = iterator.next()) && !result.done) {
|
|
44232
44184
|
const pair = result.value;
|
|
44233
44185
|
fn.call(obj, pair[0], pair[1]);
|
|
44234
44186
|
}
|
|
@@ -44283,6 +44235,13 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44283
44235
|
return obj;
|
|
44284
44236
|
}, noop5 = () => {}, toFiniteNumber = (value, defaultValue) => {
|
|
44285
44237
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
44238
|
+
}, ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
44239
|
+
let str = "";
|
|
44240
|
+
const { length } = alphabet;
|
|
44241
|
+
while (size--) {
|
|
44242
|
+
str += alphabet[Math.random() * length | 0];
|
|
44243
|
+
}
|
|
44244
|
+
return str;
|
|
44286
44245
|
}, toJSONObject = (obj) => {
|
|
44287
44246
|
const stack = new Array(10);
|
|
44288
44247
|
const visit2 = (source, i2) => {
|
|
@@ -44290,9 +44249,6 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44290
44249
|
if (stack.indexOf(source) >= 0) {
|
|
44291
44250
|
return;
|
|
44292
44251
|
}
|
|
44293
|
-
if (isBuffer2(source)) {
|
|
44294
|
-
return source;
|
|
44295
|
-
}
|
|
44296
44252
|
if (!("toJSON" in source)) {
|
|
44297
44253
|
stack[i2] = source;
|
|
44298
44254
|
const target = isArray3(source) ? [] : {};
|
|
@@ -44307,11 +44263,10 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44307
44263
|
return source;
|
|
44308
44264
|
};
|
|
44309
44265
|
return visit2(obj, 0);
|
|
44310
|
-
}, isAsyncFn, isThenable = (thing) => thing && (isObject4(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch), _setImmediate, asap,
|
|
44266
|
+
}, isAsyncFn, isThenable = (thing) => thing && (isObject4(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch), _setImmediate, asap, utils_default;
|
|
44311
44267
|
var init_utils3 = __esm(() => {
|
|
44312
44268
|
({ toString: toString3 } = Object.prototype);
|
|
44313
44269
|
({ getPrototypeOf } = Object);
|
|
44314
|
-
({ iterator, toStringTag } = Symbol);
|
|
44315
44270
|
kindOf = ((cache) => (thing) => {
|
|
44316
44271
|
const str = toString3.call(thing);
|
|
44317
44272
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -44326,15 +44281,8 @@ var init_utils3 = __esm(() => {
|
|
|
44326
44281
|
isFile = kindOfTest("File");
|
|
44327
44282
|
isBlob = kindOfTest("Blob");
|
|
44328
44283
|
isFileList = kindOfTest("FileList");
|
|
44329
|
-
G2 = getGlobal();
|
|
44330
|
-
FormDataCtor = typeof G2.FormData !== "undefined" ? G2.FormData : undefined;
|
|
44331
44284
|
isURLSearchParams = kindOfTest("URLSearchParams");
|
|
44332
|
-
[isReadableStream3, isRequest, isResponse, isHeaders] = [
|
|
44333
|
-
"ReadableStream",
|
|
44334
|
-
"Request",
|
|
44335
|
-
"Response",
|
|
44336
|
-
"Headers"
|
|
44337
|
-
].map(kindOfTest);
|
|
44285
|
+
[isReadableStream3, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
44338
44286
|
_global = (() => {
|
|
44339
44287
|
if (typeof globalThis !== "undefined")
|
|
44340
44288
|
return globalThis;
|
|
@@ -44348,6 +44296,11 @@ var init_utils3 = __esm(() => {
|
|
|
44348
44296
|
isHTMLForm = kindOfTest("HTMLFormElement");
|
|
44349
44297
|
hasOwnProperty14 = (({ hasOwnProperty: hasOwnProperty15 }) => (obj, prop) => hasOwnProperty15.call(obj, prop))(Object.prototype);
|
|
44350
44298
|
isRegExp = kindOfTest("RegExp");
|
|
44299
|
+
ALPHABET = {
|
|
44300
|
+
DIGIT,
|
|
44301
|
+
ALPHA,
|
|
44302
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
44303
|
+
};
|
|
44351
44304
|
isAsyncFn = kindOfTest("AsyncFunction");
|
|
44352
44305
|
_setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
44353
44306
|
if (setImmediateSupported) {
|
|
@@ -44377,7 +44330,6 @@ var init_utils3 = __esm(() => {
|
|
|
44377
44330
|
isBoolean,
|
|
44378
44331
|
isObject: isObject4,
|
|
44379
44332
|
isPlainObject: isPlainObject4,
|
|
44380
|
-
isEmptyObject,
|
|
44381
44333
|
isReadableStream: isReadableStream3,
|
|
44382
44334
|
isRequest,
|
|
44383
44335
|
isResponse,
|
|
@@ -44385,8 +44337,6 @@ var init_utils3 = __esm(() => {
|
|
|
44385
44337
|
isUndefined,
|
|
44386
44338
|
isDate,
|
|
44387
44339
|
isFile,
|
|
44388
|
-
isReactNativeBlob,
|
|
44389
|
-
isReactNative,
|
|
44390
44340
|
isBlob,
|
|
44391
44341
|
isRegExp,
|
|
44392
44342
|
isFunction: isFunction2,
|
|
@@ -44419,50 +44369,40 @@ var init_utils3 = __esm(() => {
|
|
|
44419
44369
|
findKey,
|
|
44420
44370
|
global: _global,
|
|
44421
44371
|
isContextDefined,
|
|
44372
|
+
ALPHABET,
|
|
44373
|
+
generateString,
|
|
44422
44374
|
isSpecCompliantForm,
|
|
44423
44375
|
toJSONObject,
|
|
44424
44376
|
isAsyncFn,
|
|
44425
44377
|
isThenable,
|
|
44426
44378
|
setImmediate: _setImmediate,
|
|
44427
|
-
asap
|
|
44428
|
-
isIterable
|
|
44379
|
+
asap
|
|
44429
44380
|
};
|
|
44430
44381
|
});
|
|
44431
44382
|
|
|
44432
44383
|
// node_modules/axios/lib/core/AxiosError.js
|
|
44433
|
-
|
|
44384
|
+
function AxiosError(message, code, config2, request, response) {
|
|
44385
|
+
Error.call(this);
|
|
44386
|
+
if (Error.captureStackTrace) {
|
|
44387
|
+
Error.captureStackTrace(this, this.constructor);
|
|
44388
|
+
} else {
|
|
44389
|
+
this.stack = new Error().stack;
|
|
44390
|
+
}
|
|
44391
|
+
this.message = message;
|
|
44392
|
+
this.name = "AxiosError";
|
|
44393
|
+
code && (this.code = code);
|
|
44394
|
+
config2 && (this.config = config2);
|
|
44395
|
+
request && (this.request = request);
|
|
44396
|
+
if (response) {
|
|
44397
|
+
this.response = response;
|
|
44398
|
+
this.status = response.status ? response.status : null;
|
|
44399
|
+
}
|
|
44400
|
+
}
|
|
44401
|
+
var prototype, descriptors2, AxiosError_default;
|
|
44434
44402
|
var init_AxiosError = __esm(() => {
|
|
44435
44403
|
init_utils3();
|
|
44436
|
-
AxiosError
|
|
44437
|
-
|
|
44438
|
-
const axiosError = new AxiosError(error49.message, code || error49.code, config2, request, response);
|
|
44439
|
-
axiosError.cause = error49;
|
|
44440
|
-
axiosError.name = error49.name;
|
|
44441
|
-
if (error49.status != null && axiosError.status == null) {
|
|
44442
|
-
axiosError.status = error49.status;
|
|
44443
|
-
}
|
|
44444
|
-
customProps && Object.assign(axiosError, customProps);
|
|
44445
|
-
return axiosError;
|
|
44446
|
-
}
|
|
44447
|
-
constructor(message, code, config2, request, response) {
|
|
44448
|
-
super(message);
|
|
44449
|
-
Object.defineProperty(this, "message", {
|
|
44450
|
-
value: message,
|
|
44451
|
-
enumerable: true,
|
|
44452
|
-
writable: true,
|
|
44453
|
-
configurable: true
|
|
44454
|
-
});
|
|
44455
|
-
this.name = "AxiosError";
|
|
44456
|
-
this.isAxiosError = true;
|
|
44457
|
-
code && (this.code = code);
|
|
44458
|
-
config2 && (this.config = config2);
|
|
44459
|
-
request && (this.request = request);
|
|
44460
|
-
if (response) {
|
|
44461
|
-
this.response = response;
|
|
44462
|
-
this.status = response.status;
|
|
44463
|
-
}
|
|
44464
|
-
}
|
|
44465
|
-
toJSON() {
|
|
44404
|
+
utils_default.inherits(AxiosError, Error, {
|
|
44405
|
+
toJSON: function toJSON() {
|
|
44466
44406
|
return {
|
|
44467
44407
|
message: this.message,
|
|
44468
44408
|
name: this.name,
|
|
@@ -44477,19 +44417,40 @@ var init_AxiosError = __esm(() => {
|
|
|
44477
44417
|
status: this.status
|
|
44478
44418
|
};
|
|
44479
44419
|
}
|
|
44420
|
+
});
|
|
44421
|
+
prototype = AxiosError.prototype;
|
|
44422
|
+
descriptors2 = {};
|
|
44423
|
+
[
|
|
44424
|
+
"ERR_BAD_OPTION_VALUE",
|
|
44425
|
+
"ERR_BAD_OPTION",
|
|
44426
|
+
"ECONNABORTED",
|
|
44427
|
+
"ETIMEDOUT",
|
|
44428
|
+
"ERR_NETWORK",
|
|
44429
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
44430
|
+
"ERR_DEPRECATED",
|
|
44431
|
+
"ERR_BAD_RESPONSE",
|
|
44432
|
+
"ERR_BAD_REQUEST",
|
|
44433
|
+
"ERR_CANCELED",
|
|
44434
|
+
"ERR_NOT_SUPPORT",
|
|
44435
|
+
"ERR_INVALID_URL"
|
|
44436
|
+
].forEach((code) => {
|
|
44437
|
+
descriptors2[code] = { value: code };
|
|
44438
|
+
});
|
|
44439
|
+
Object.defineProperties(AxiosError, descriptors2);
|
|
44440
|
+
Object.defineProperty(prototype, "isAxiosError", { value: true });
|
|
44441
|
+
AxiosError.from = (error49, code, config2, request, response, customProps) => {
|
|
44442
|
+
const axiosError = Object.create(prototype);
|
|
44443
|
+
utils_default.toFlatObject(error49, axiosError, function filter(obj) {
|
|
44444
|
+
return obj !== Error.prototype;
|
|
44445
|
+
}, (prop) => {
|
|
44446
|
+
return prop !== "isAxiosError";
|
|
44447
|
+
});
|
|
44448
|
+
AxiosError.call(axiosError, error49.message, code, config2, request, response);
|
|
44449
|
+
axiosError.cause = error49;
|
|
44450
|
+
axiosError.name = error49.name;
|
|
44451
|
+
customProps && Object.assign(axiosError, customProps);
|
|
44452
|
+
return axiosError;
|
|
44480
44453
|
};
|
|
44481
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
44482
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
44483
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
44484
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
44485
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
44486
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
44487
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
44488
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
44489
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
44490
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
44491
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
44492
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
44493
44454
|
AxiosError_default = AxiosError;
|
|
44494
44455
|
});
|
|
44495
44456
|
|
|
@@ -53431,9 +53392,9 @@ var require_iterate = __commonJS((exports, module) => {
|
|
|
53431
53392
|
var async = require_async();
|
|
53432
53393
|
var abort = require_abort();
|
|
53433
53394
|
module.exports = iterate;
|
|
53434
|
-
function iterate(list,
|
|
53395
|
+
function iterate(list, iterator, state, callback) {
|
|
53435
53396
|
var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
|
|
53436
|
-
state.jobs[key] = runJob(
|
|
53397
|
+
state.jobs[key] = runJob(iterator, key, list[key], function(error49, output) {
|
|
53437
53398
|
if (!(key in state.jobs)) {
|
|
53438
53399
|
return;
|
|
53439
53400
|
}
|
|
@@ -53446,12 +53407,12 @@ var require_iterate = __commonJS((exports, module) => {
|
|
|
53446
53407
|
callback(error49, state.results);
|
|
53447
53408
|
});
|
|
53448
53409
|
}
|
|
53449
|
-
function runJob(
|
|
53410
|
+
function runJob(iterator, key, item, callback) {
|
|
53450
53411
|
var aborter;
|
|
53451
|
-
if (
|
|
53452
|
-
aborter =
|
|
53412
|
+
if (iterator.length == 2) {
|
|
53413
|
+
aborter = iterator(item, async(callback));
|
|
53453
53414
|
} else {
|
|
53454
|
-
aborter =
|
|
53415
|
+
aborter = iterator(item, key, async(callback));
|
|
53455
53416
|
}
|
|
53456
53417
|
return aborter;
|
|
53457
53418
|
}
|
|
@@ -53498,10 +53459,10 @@ var require_parallel = __commonJS((exports, module) => {
|
|
|
53498
53459
|
var initState = require_state();
|
|
53499
53460
|
var terminator = require_terminator();
|
|
53500
53461
|
module.exports = parallel;
|
|
53501
|
-
function parallel(list,
|
|
53462
|
+
function parallel(list, iterator, callback) {
|
|
53502
53463
|
var state = initState(list);
|
|
53503
53464
|
while (state.index < (state["keyedList"] || list).length) {
|
|
53504
|
-
iterate(list,
|
|
53465
|
+
iterate(list, iterator, state, function(error49, result) {
|
|
53505
53466
|
if (error49) {
|
|
53506
53467
|
callback(error49, result);
|
|
53507
53468
|
return;
|
|
@@ -53525,16 +53486,16 @@ var require_serialOrdered = __commonJS((exports, module) => {
|
|
|
53525
53486
|
module.exports = serialOrdered;
|
|
53526
53487
|
module.exports.ascending = ascending;
|
|
53527
53488
|
module.exports.descending = descending;
|
|
53528
|
-
function serialOrdered(list,
|
|
53489
|
+
function serialOrdered(list, iterator, sortMethod, callback) {
|
|
53529
53490
|
var state = initState(list, sortMethod);
|
|
53530
|
-
iterate(list,
|
|
53491
|
+
iterate(list, iterator, state, function iteratorHandler(error49, result) {
|
|
53531
53492
|
if (error49) {
|
|
53532
53493
|
callback(error49, result);
|
|
53533
53494
|
return;
|
|
53534
53495
|
}
|
|
53535
53496
|
state.index++;
|
|
53536
53497
|
if (state.index < (state["keyedList"] || list).length) {
|
|
53537
|
-
iterate(list,
|
|
53498
|
+
iterate(list, iterator, state, iteratorHandler);
|
|
53538
53499
|
return;
|
|
53539
53500
|
}
|
|
53540
53501
|
callback(null, state.results);
|
|
@@ -53553,8 +53514,8 @@ var require_serialOrdered = __commonJS((exports, module) => {
|
|
|
53553
53514
|
var require_serial = __commonJS((exports, module) => {
|
|
53554
53515
|
var serialOrdered = require_serialOrdered();
|
|
53555
53516
|
module.exports = serial;
|
|
53556
|
-
function serial(list,
|
|
53557
|
-
return serialOrdered(list,
|
|
53517
|
+
function serial(list, iterator, callback) {
|
|
53518
|
+
return serialOrdered(list, iterator, null, callback);
|
|
53558
53519
|
}
|
|
53559
53520
|
});
|
|
53560
53521
|
|
|
@@ -54263,23 +54224,23 @@ var require_es_set_tostringtag = __commonJS((exports, module) => {
|
|
|
54263
54224
|
var hasToStringTag = require_shams2()();
|
|
54264
54225
|
var hasOwn2 = require_hasown();
|
|
54265
54226
|
var $TypeError = require_type();
|
|
54266
|
-
var
|
|
54227
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
54267
54228
|
module.exports = function setToStringTag(object2, value) {
|
|
54268
54229
|
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
54269
54230
|
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
54270
54231
|
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
54271
54232
|
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
54272
54233
|
}
|
|
54273
|
-
if (
|
|
54234
|
+
if (toStringTag && (overrideIfSet || !hasOwn2(object2, toStringTag))) {
|
|
54274
54235
|
if ($defineProperty) {
|
|
54275
|
-
$defineProperty(object2,
|
|
54236
|
+
$defineProperty(object2, toStringTag, {
|
|
54276
54237
|
configurable: !nonConfigurable,
|
|
54277
54238
|
enumerable: false,
|
|
54278
54239
|
value,
|
|
54279
54240
|
writable: false
|
|
54280
54241
|
});
|
|
54281
54242
|
} else {
|
|
54282
|
-
object2[
|
|
54243
|
+
object2[toStringTag] = value;
|
|
54283
54244
|
}
|
|
54284
54245
|
}
|
|
54285
54246
|
};
|
|
@@ -54662,9 +54623,6 @@ function toFormData(obj, formData, options) {
|
|
|
54662
54623
|
if (utils_default.isDate(value)) {
|
|
54663
54624
|
return value.toISOString();
|
|
54664
54625
|
}
|
|
54665
|
-
if (utils_default.isBoolean(value)) {
|
|
54666
|
-
return value.toString();
|
|
54667
|
-
}
|
|
54668
54626
|
if (!useBlob && utils_default.isBlob(value)) {
|
|
54669
54627
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
54670
54628
|
}
|
|
@@ -54675,10 +54633,6 @@ function toFormData(obj, formData, options) {
|
|
|
54675
54633
|
}
|
|
54676
54634
|
function defaultVisitor(value, key, path12) {
|
|
54677
54635
|
let arr = value;
|
|
54678
|
-
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
54679
|
-
formData.append(renderKey(path12, key, dots), convertValue(value));
|
|
54680
|
-
return false;
|
|
54681
|
-
}
|
|
54682
54636
|
if (value && !path12 && typeof value === "object") {
|
|
54683
54637
|
if (utils_default.endsWith(key, "{}")) {
|
|
54684
54638
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -54754,14 +54708,14 @@ function AxiosURLSearchParams(params, options) {
|
|
|
54754
54708
|
this._pairs = [];
|
|
54755
54709
|
params && toFormData_default(params, this, options);
|
|
54756
54710
|
}
|
|
54757
|
-
var
|
|
54711
|
+
var prototype2, AxiosURLSearchParams_default;
|
|
54758
54712
|
var init_AxiosURLSearchParams = __esm(() => {
|
|
54759
54713
|
init_toFormData();
|
|
54760
|
-
|
|
54761
|
-
|
|
54714
|
+
prototype2 = AxiosURLSearchParams.prototype;
|
|
54715
|
+
prototype2.append = function append(name, value) {
|
|
54762
54716
|
this._pairs.push([name, value]);
|
|
54763
54717
|
};
|
|
54764
|
-
|
|
54718
|
+
prototype2.toString = function toString4(encoder2) {
|
|
54765
54719
|
const _encode2 = encoder2 ? function(value) {
|
|
54766
54720
|
return encoder2.call(this, value, encode4);
|
|
54767
54721
|
} : encode4;
|
|
@@ -54774,22 +54728,24 @@ var init_AxiosURLSearchParams = __esm(() => {
|
|
|
54774
54728
|
|
|
54775
54729
|
// node_modules/axios/lib/helpers/buildURL.js
|
|
54776
54730
|
function encode5(val) {
|
|
54777
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
54731
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
54778
54732
|
}
|
|
54779
54733
|
function buildURL(url2, params, options) {
|
|
54780
54734
|
if (!params) {
|
|
54781
54735
|
return url2;
|
|
54782
54736
|
}
|
|
54783
54737
|
const _encode2 = options && options.encode || encode5;
|
|
54784
|
-
|
|
54785
|
-
|
|
54786
|
-
|
|
54787
|
-
|
|
54738
|
+
if (utils_default.isFunction(options)) {
|
|
54739
|
+
options = {
|
|
54740
|
+
serialize: options
|
|
54741
|
+
};
|
|
54742
|
+
}
|
|
54743
|
+
const serializeFn = options && options.serialize;
|
|
54788
54744
|
let serializedParams;
|
|
54789
54745
|
if (serializeFn) {
|
|
54790
|
-
serializedParams = serializeFn(params,
|
|
54746
|
+
serializedParams = serializeFn(params, options);
|
|
54791
54747
|
} else {
|
|
54792
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params,
|
|
54748
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode2);
|
|
54793
54749
|
}
|
|
54794
54750
|
if (serializedParams) {
|
|
54795
54751
|
const hashmarkIndex = url2.indexOf("#");
|
|
@@ -54849,8 +54805,7 @@ var init_transitional = __esm(() => {
|
|
|
54849
54805
|
transitional_default = {
|
|
54850
54806
|
silentJSONParsing: true,
|
|
54851
54807
|
forcedJSONParsing: true,
|
|
54852
|
-
clarifyTimeoutError: false
|
|
54853
|
-
legacyInterceptorReqResOrdering: true
|
|
54808
|
+
clarifyTimeoutError: false
|
|
54854
54809
|
};
|
|
54855
54810
|
});
|
|
54856
54811
|
|
|
@@ -54862,25 +54817,10 @@ var init_URLSearchParams = __esm(() => {
|
|
|
54862
54817
|
});
|
|
54863
54818
|
|
|
54864
54819
|
// node_modules/axios/lib/platform/node/index.js
|
|
54865
|
-
|
|
54866
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
54867
|
-
let str = "";
|
|
54868
|
-
const { length } = alphabet;
|
|
54869
|
-
const randomValues = new Uint32Array(size);
|
|
54870
|
-
crypto3.randomFillSync(randomValues);
|
|
54871
|
-
for (let i2 = 0;i2 < size; i2++) {
|
|
54872
|
-
str += alphabet[randomValues[i2] % length];
|
|
54873
|
-
}
|
|
54874
|
-
return str;
|
|
54875
|
-
}, node_default;
|
|
54820
|
+
var node_default;
|
|
54876
54821
|
var init_node4 = __esm(() => {
|
|
54877
54822
|
init_URLSearchParams();
|
|
54878
54823
|
init_FormData();
|
|
54879
|
-
ALPHABET = {
|
|
54880
|
-
DIGIT,
|
|
54881
|
-
ALPHA,
|
|
54882
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
54883
|
-
};
|
|
54884
54824
|
node_default = {
|
|
54885
54825
|
isNode: true,
|
|
54886
54826
|
classes: {
|
|
@@ -54888,8 +54828,6 @@ var init_node4 = __esm(() => {
|
|
|
54888
54828
|
FormData: FormData_default,
|
|
54889
54829
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
54890
54830
|
},
|
|
54891
|
-
ALPHABET,
|
|
54892
|
-
generateString,
|
|
54893
54831
|
protocols: ["http", "https", "file", "data"]
|
|
54894
54832
|
};
|
|
54895
54833
|
});
|
|
@@ -54927,16 +54865,15 @@ var init_platform2 = __esm(() => {
|
|
|
54927
54865
|
|
|
54928
54866
|
// node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
54929
54867
|
function toURLEncodedForm(data, options) {
|
|
54930
|
-
return toFormData_default(data, new platform_default.classes.URLSearchParams, {
|
|
54868
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams, Object.assign({
|
|
54931
54869
|
visitor: function(value, key, path12, helpers) {
|
|
54932
54870
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
54933
54871
|
this.append(key, value.toString("base64"));
|
|
54934
54872
|
return false;
|
|
54935
54873
|
}
|
|
54936
54874
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
54937
|
-
}
|
|
54938
|
-
|
|
54939
|
-
});
|
|
54875
|
+
}
|
|
54876
|
+
}, options));
|
|
54940
54877
|
}
|
|
54941
54878
|
var init_toURLEncodedForm = __esm(() => {
|
|
54942
54879
|
init_utils3();
|
|
@@ -55028,70 +54965,66 @@ var init_defaults = __esm(() => {
|
|
|
55028
54965
|
defaults2 = {
|
|
55029
54966
|
transitional: transitional_default,
|
|
55030
54967
|
adapter: ["xhr", "http", "fetch"],
|
|
55031
|
-
transformRequest: [
|
|
55032
|
-
|
|
55033
|
-
|
|
55034
|
-
|
|
55035
|
-
|
|
55036
|
-
|
|
55037
|
-
|
|
55038
|
-
|
|
55039
|
-
|
|
55040
|
-
|
|
55041
|
-
|
|
55042
|
-
|
|
55043
|
-
|
|
55044
|
-
|
|
55045
|
-
|
|
55046
|
-
|
|
55047
|
-
|
|
55048
|
-
|
|
55049
|
-
|
|
55050
|
-
|
|
55051
|
-
|
|
55052
|
-
|
|
55053
|
-
|
|
55054
|
-
if (
|
|
55055
|
-
|
|
55056
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
55057
|
-
}
|
|
55058
|
-
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
55059
|
-
const _FormData = this.env && this.env.FormData;
|
|
55060
|
-
return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);
|
|
55061
|
-
}
|
|
54968
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
54969
|
+
const contentType = headers.getContentType() || "";
|
|
54970
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
54971
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
54972
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) {
|
|
54973
|
+
data = new FormData(data);
|
|
54974
|
+
}
|
|
54975
|
+
const isFormData2 = utils_default.isFormData(data);
|
|
54976
|
+
if (isFormData2) {
|
|
54977
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
54978
|
+
}
|
|
54979
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
54980
|
+
return data;
|
|
54981
|
+
}
|
|
54982
|
+
if (utils_default.isArrayBufferView(data)) {
|
|
54983
|
+
return data.buffer;
|
|
54984
|
+
}
|
|
54985
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
54986
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
54987
|
+
return data.toString();
|
|
54988
|
+
}
|
|
54989
|
+
let isFileList2;
|
|
54990
|
+
if (isObjectPayload) {
|
|
54991
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
54992
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
55062
54993
|
}
|
|
55063
|
-
if (
|
|
55064
|
-
|
|
55065
|
-
return
|
|
54994
|
+
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
54995
|
+
const _FormData = this.env && this.env.FormData;
|
|
54996
|
+
return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);
|
|
55066
54997
|
}
|
|
54998
|
+
}
|
|
54999
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
55000
|
+
headers.setContentType("application/json", false);
|
|
55001
|
+
return stringifySafely(data);
|
|
55002
|
+
}
|
|
55003
|
+
return data;
|
|
55004
|
+
}],
|
|
55005
|
+
transformResponse: [function transformResponse(data) {
|
|
55006
|
+
const transitional = this.transitional || defaults2.transitional;
|
|
55007
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
55008
|
+
const JSONRequested = this.responseType === "json";
|
|
55009
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
55067
55010
|
return data;
|
|
55068
55011
|
}
|
|
55069
|
-
|
|
55070
|
-
|
|
55071
|
-
|
|
55072
|
-
|
|
55073
|
-
|
|
55074
|
-
|
|
55075
|
-
|
|
55076
|
-
|
|
55077
|
-
|
|
55078
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
55079
|
-
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
55080
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
55081
|
-
try {
|
|
55082
|
-
return JSON.parse(data, this.parseReviver);
|
|
55083
|
-
} catch (e) {
|
|
55084
|
-
if (strictJSONParsing) {
|
|
55085
|
-
if (e.name === "SyntaxError") {
|
|
55086
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
55087
|
-
}
|
|
55088
|
-
throw e;
|
|
55012
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
55013
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
55014
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
55015
|
+
try {
|
|
55016
|
+
return JSON.parse(data);
|
|
55017
|
+
} catch (e) {
|
|
55018
|
+
if (strictJSONParsing) {
|
|
55019
|
+
if (e.name === "SyntaxError") {
|
|
55020
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
55089
55021
|
}
|
|
55022
|
+
throw e;
|
|
55090
55023
|
}
|
|
55091
55024
|
}
|
|
55092
|
-
return data;
|
|
55093
55025
|
}
|
|
55094
|
-
|
|
55026
|
+
return data;
|
|
55027
|
+
}],
|
|
55095
55028
|
timeout: 0,
|
|
55096
55029
|
xsrfCookieName: "XSRF-TOKEN",
|
|
55097
55030
|
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
@@ -55174,7 +55107,7 @@ function normalizeValue(value) {
|
|
|
55174
55107
|
if (value === false || value == null) {
|
|
55175
55108
|
return value;
|
|
55176
55109
|
}
|
|
55177
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value)
|
|
55110
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
55178
55111
|
}
|
|
55179
55112
|
function parseTokens(str) {
|
|
55180
55113
|
const tokens = Object.create(null);
|
|
@@ -55243,15 +55176,10 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55243
55176
|
setHeaders(header, valueOrRewrite);
|
|
55244
55177
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
55245
55178
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
55246
|
-
} else if (utils_default.
|
|
55247
|
-
|
|
55248
|
-
|
|
55249
|
-
if (!utils_default.isArray(entry)) {
|
|
55250
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
55251
|
-
}
|
|
55252
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
55179
|
+
} else if (utils_default.isHeaders(header)) {
|
|
55180
|
+
for (const [key, value] of header.entries()) {
|
|
55181
|
+
setHeader(value, key, rewrite);
|
|
55253
55182
|
}
|
|
55254
|
-
setHeaders(obj, valueOrRewrite);
|
|
55255
55183
|
} else {
|
|
55256
55184
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
55257
55185
|
}
|
|
@@ -55356,9 +55284,6 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55356
55284
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`
|
|
55357
55285
|
`);
|
|
55358
55286
|
}
|
|
55359
|
-
getSetCookie() {
|
|
55360
|
-
return this.get("set-cookie") || [];
|
|
55361
|
-
}
|
|
55362
55287
|
get [Symbol.toStringTag]() {
|
|
55363
55288
|
return "AxiosHeaders";
|
|
55364
55289
|
}
|
|
@@ -55375,11 +55300,11 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55375
55300
|
accessors: {}
|
|
55376
55301
|
};
|
|
55377
55302
|
const accessors = internals.accessors;
|
|
55378
|
-
const
|
|
55303
|
+
const prototype3 = this.prototype;
|
|
55379
55304
|
function defineAccessor(_header) {
|
|
55380
55305
|
const lHeader = normalizeHeader(_header);
|
|
55381
55306
|
if (!accessors[lHeader]) {
|
|
55382
|
-
buildAccessors(
|
|
55307
|
+
buildAccessors(prototype3, _header);
|
|
55383
55308
|
accessors[lHeader] = true;
|
|
55384
55309
|
}
|
|
55385
55310
|
}
|
|
@@ -55387,14 +55312,7 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55387
55312
|
return this;
|
|
55388
55313
|
}
|
|
55389
55314
|
};
|
|
55390
|
-
AxiosHeaders.accessor([
|
|
55391
|
-
"Content-Type",
|
|
55392
|
-
"Content-Length",
|
|
55393
|
-
"Accept",
|
|
55394
|
-
"Accept-Encoding",
|
|
55395
|
-
"User-Agent",
|
|
55396
|
-
"Authorization"
|
|
55397
|
-
]);
|
|
55315
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
55398
55316
|
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
55399
55317
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
55400
55318
|
return {
|
|
@@ -55432,16 +55350,17 @@ function isCancel(value) {
|
|
|
55432
55350
|
}
|
|
55433
55351
|
|
|
55434
55352
|
// node_modules/axios/lib/cancel/CanceledError.js
|
|
55435
|
-
|
|
55353
|
+
function CanceledError(message, config2, request) {
|
|
55354
|
+
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config2, request);
|
|
55355
|
+
this.name = "CanceledError";
|
|
55356
|
+
}
|
|
55357
|
+
var CanceledError_default;
|
|
55436
55358
|
var init_CanceledError = __esm(() => {
|
|
55437
55359
|
init_AxiosError();
|
|
55438
|
-
|
|
55439
|
-
|
|
55440
|
-
|
|
55441
|
-
|
|
55442
|
-
this.__CANCEL__ = true;
|
|
55443
|
-
}
|
|
55444
|
-
};
|
|
55360
|
+
init_utils3();
|
|
55361
|
+
utils_default.inherits(CanceledError, AxiosError_default, {
|
|
55362
|
+
__CANCEL__: true
|
|
55363
|
+
});
|
|
55445
55364
|
CanceledError_default = CanceledError;
|
|
55446
55365
|
});
|
|
55447
55366
|
|
|
@@ -55460,9 +55379,6 @@ var init_settle = __esm(() => {
|
|
|
55460
55379
|
|
|
55461
55380
|
// node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
55462
55381
|
function isAbsoluteURL2(url3) {
|
|
55463
|
-
if (typeof url3 !== "string") {
|
|
55464
|
-
return false;
|
|
55465
|
-
}
|
|
55466
55382
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url3);
|
|
55467
55383
|
}
|
|
55468
55384
|
|
|
@@ -55472,9 +55388,8 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
55472
55388
|
}
|
|
55473
55389
|
|
|
55474
55390
|
// node_modules/axios/lib/core/buildFullPath.js
|
|
55475
|
-
function buildFullPath(baseURL, requestedURL
|
|
55476
|
-
|
|
55477
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
55391
|
+
function buildFullPath(baseURL, requestedURL) {
|
|
55392
|
+
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
55478
55393
|
return combineURLs(baseURL, requestedURL);
|
|
55479
55394
|
}
|
|
55480
55395
|
return requestedURL;
|
|
@@ -55482,66 +55397,9 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
55482
55397
|
var init_buildFullPath = () => {};
|
|
55483
55398
|
|
|
55484
55399
|
// node_modules/proxy-from-env/index.js
|
|
55485
|
-
|
|
55486
|
-
|
|
55487
|
-
|
|
55488
|
-
} catch {
|
|
55489
|
-
return null;
|
|
55490
|
-
}
|
|
55491
|
-
}
|
|
55492
|
-
function getProxyForUrl(url3) {
|
|
55493
|
-
var parsedUrl = (typeof url3 === "string" ? parseUrl(url3) : url3) || {};
|
|
55494
|
-
var proto2 = parsedUrl.protocol;
|
|
55495
|
-
var hostname3 = parsedUrl.host;
|
|
55496
|
-
var port = parsedUrl.port;
|
|
55497
|
-
if (typeof hostname3 !== "string" || !hostname3 || typeof proto2 !== "string") {
|
|
55498
|
-
return "";
|
|
55499
|
-
}
|
|
55500
|
-
proto2 = proto2.split(":", 1)[0];
|
|
55501
|
-
hostname3 = hostname3.replace(/:\d*$/, "");
|
|
55502
|
-
port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
|
|
55503
|
-
if (!shouldProxy(hostname3, port)) {
|
|
55504
|
-
return "";
|
|
55505
|
-
}
|
|
55506
|
-
var proxy = getEnv2(proto2 + "_proxy") || getEnv2("all_proxy");
|
|
55507
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
55508
|
-
proxy = proto2 + "://" + proxy;
|
|
55509
|
-
}
|
|
55510
|
-
return proxy;
|
|
55511
|
-
}
|
|
55512
|
-
function shouldProxy(hostname3, port) {
|
|
55513
|
-
var NO_PROXY = getEnv2("no_proxy").toLowerCase();
|
|
55514
|
-
if (!NO_PROXY) {
|
|
55515
|
-
return true;
|
|
55516
|
-
}
|
|
55517
|
-
if (NO_PROXY === "*") {
|
|
55518
|
-
return false;
|
|
55519
|
-
}
|
|
55520
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
55521
|
-
if (!proxy) {
|
|
55522
|
-
return true;
|
|
55523
|
-
}
|
|
55524
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
55525
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
55526
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
55527
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
55528
|
-
return true;
|
|
55529
|
-
}
|
|
55530
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
55531
|
-
return hostname3 !== parsedProxyHostname;
|
|
55532
|
-
}
|
|
55533
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
55534
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
55535
|
-
}
|
|
55536
|
-
return !hostname3.endsWith(parsedProxyHostname);
|
|
55537
|
-
});
|
|
55538
|
-
}
|
|
55539
|
-
function getEnv2(key) {
|
|
55540
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
55541
|
-
}
|
|
55542
|
-
var DEFAULT_PORTS;
|
|
55543
|
-
var init_proxy_from_env = __esm(() => {
|
|
55544
|
-
DEFAULT_PORTS = {
|
|
55400
|
+
var require_proxy_from_env = __commonJS((exports) => {
|
|
55401
|
+
var parseUrl = __require("url").parse;
|
|
55402
|
+
var DEFAULT_PORTS = {
|
|
55545
55403
|
ftp: 21,
|
|
55546
55404
|
gopher: 70,
|
|
55547
55405
|
http: 80,
|
|
@@ -55549,6 +55407,60 @@ var init_proxy_from_env = __esm(() => {
|
|
|
55549
55407
|
ws: 80,
|
|
55550
55408
|
wss: 443
|
|
55551
55409
|
};
|
|
55410
|
+
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
55411
|
+
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
55412
|
+
};
|
|
55413
|
+
function getProxyForUrl(url3) {
|
|
55414
|
+
var parsedUrl = typeof url3 === "string" ? parseUrl(url3) : url3 || {};
|
|
55415
|
+
var proto2 = parsedUrl.protocol;
|
|
55416
|
+
var hostname3 = parsedUrl.host;
|
|
55417
|
+
var port = parsedUrl.port;
|
|
55418
|
+
if (typeof hostname3 !== "string" || !hostname3 || typeof proto2 !== "string") {
|
|
55419
|
+
return "";
|
|
55420
|
+
}
|
|
55421
|
+
proto2 = proto2.split(":", 1)[0];
|
|
55422
|
+
hostname3 = hostname3.replace(/:\d*$/, "");
|
|
55423
|
+
port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
|
|
55424
|
+
if (!shouldProxy(hostname3, port)) {
|
|
55425
|
+
return "";
|
|
55426
|
+
}
|
|
55427
|
+
var proxy = getEnv2("npm_config_" + proto2 + "_proxy") || getEnv2(proto2 + "_proxy") || getEnv2("npm_config_proxy") || getEnv2("all_proxy");
|
|
55428
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
55429
|
+
proxy = proto2 + "://" + proxy;
|
|
55430
|
+
}
|
|
55431
|
+
return proxy;
|
|
55432
|
+
}
|
|
55433
|
+
function shouldProxy(hostname3, port) {
|
|
55434
|
+
var NO_PROXY = (getEnv2("npm_config_no_proxy") || getEnv2("no_proxy")).toLowerCase();
|
|
55435
|
+
if (!NO_PROXY) {
|
|
55436
|
+
return true;
|
|
55437
|
+
}
|
|
55438
|
+
if (NO_PROXY === "*") {
|
|
55439
|
+
return false;
|
|
55440
|
+
}
|
|
55441
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
55442
|
+
if (!proxy) {
|
|
55443
|
+
return true;
|
|
55444
|
+
}
|
|
55445
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
55446
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
55447
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
55448
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
55449
|
+
return true;
|
|
55450
|
+
}
|
|
55451
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
55452
|
+
return hostname3 !== parsedProxyHostname;
|
|
55453
|
+
}
|
|
55454
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
55455
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
55456
|
+
}
|
|
55457
|
+
return !stringEndsWith.call(hostname3, parsedProxyHostname);
|
|
55458
|
+
});
|
|
55459
|
+
}
|
|
55460
|
+
function getEnv2(key) {
|
|
55461
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
55462
|
+
}
|
|
55463
|
+
exports.getProxyForUrl = getProxyForUrl;
|
|
55552
55464
|
});
|
|
55553
55465
|
|
|
55554
55466
|
// node_modules/ms/index.js
|
|
@@ -56634,7 +56546,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56634
56546
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
56635
56547
|
}
|
|
56636
56548
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
56637
|
-
var currentUrlParts =
|
|
56549
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
56638
56550
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
56639
56551
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url3.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
56640
56552
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
@@ -56673,7 +56585,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56673
56585
|
if (isURL(input)) {
|
|
56674
56586
|
input = spreadUrlObject(input);
|
|
56675
56587
|
} else if (isString2(input)) {
|
|
56676
|
-
input = spreadUrlObject(
|
|
56588
|
+
input = spreadUrlObject(parseUrl(input));
|
|
56677
56589
|
} else {
|
|
56678
56590
|
callback = options;
|
|
56679
56591
|
options = validateUrl(input);
|
|
@@ -56708,7 +56620,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56708
56620
|
return exports2;
|
|
56709
56621
|
}
|
|
56710
56622
|
function noop6() {}
|
|
56711
|
-
function
|
|
56623
|
+
function parseUrl(input) {
|
|
56712
56624
|
var parsed;
|
|
56713
56625
|
if (useNativeURL) {
|
|
56714
56626
|
parsed = new URL2(input);
|
|
@@ -56721,7 +56633,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56721
56633
|
return parsed;
|
|
56722
56634
|
}
|
|
56723
56635
|
function resolveUrl(relative4, base2) {
|
|
56724
|
-
return useNativeURL ? new URL2(relative4, base2) :
|
|
56636
|
+
return useNativeURL ? new URL2(relative4, base2) : parseUrl(url3.resolve(base2, relative4));
|
|
56725
56637
|
}
|
|
56726
56638
|
function validateUrl(input) {
|
|
56727
56639
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -56807,7 +56719,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56807
56719
|
});
|
|
56808
56720
|
|
|
56809
56721
|
// node_modules/axios/lib/env/data.js
|
|
56810
|
-
var VERSION2 = "1.
|
|
56722
|
+
var VERSION2 = "1.7.9";
|
|
56811
56723
|
|
|
56812
56724
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
56813
56725
|
function parseProtocol(url3) {
|
|
@@ -57028,7 +56940,7 @@ var BOUNDARY_ALPHABET, textEncoder3, CRLF = `\r
|
|
|
57028
56940
|
const {
|
|
57029
56941
|
tag = "form-data-boundary",
|
|
57030
56942
|
size = 25,
|
|
57031
|
-
boundary = tag + "-" +
|
|
56943
|
+
boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
|
|
57032
56944
|
} = options || {};
|
|
57033
56945
|
if (!utils_default.isFormData(form)) {
|
|
57034
56946
|
throw TypeError("FormData instance required");
|
|
@@ -57037,7 +56949,7 @@ var BOUNDARY_ALPHABET, textEncoder3, CRLF = `\r
|
|
|
57037
56949
|
throw Error("boundary must be 10-70 characters long");
|
|
57038
56950
|
}
|
|
57039
56951
|
const boundaryBytes = textEncoder3.encode("--" + boundary + CRLF);
|
|
57040
|
-
const footerBytes = textEncoder3.encode("--" + boundary + "--" + CRLF);
|
|
56952
|
+
const footerBytes = textEncoder3.encode("--" + boundary + "--" + CRLF + CRLF);
|
|
57041
56953
|
let contentLength = footerBytes.byteLength;
|
|
57042
56954
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
57043
56955
|
const part = new FormDataPart(name, value);
|
|
@@ -57064,8 +56976,7 @@ var BOUNDARY_ALPHABET, textEncoder3, CRLF = `\r
|
|
|
57064
56976
|
var init_formDataToStream = __esm(() => {
|
|
57065
56977
|
init_utils3();
|
|
57066
56978
|
init_readBlob();
|
|
57067
|
-
|
|
57068
|
-
BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
56979
|
+
BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
57069
56980
|
textEncoder3 = typeof TextEncoder === "function" ? new TextEncoder : new util.TextEncoder;
|
|
57070
56981
|
CRLF_BYTES = textEncoder3.encode(CRLF);
|
|
57071
56982
|
formDataToStream_default = formDataToStream;
|
|
@@ -57166,7 +57077,7 @@ function throttle(fn, freq) {
|
|
|
57166
57077
|
clearTimeout(timer);
|
|
57167
57078
|
timer = null;
|
|
57168
57079
|
}
|
|
57169
|
-
fn(
|
|
57080
|
+
fn.apply(null, args);
|
|
57170
57081
|
};
|
|
57171
57082
|
const throttled = (...args) => {
|
|
57172
57083
|
const now = Date.now();
|
|
@@ -57217,14 +57128,11 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
57217
57128
|
}, freq);
|
|
57218
57129
|
}, progressEventDecorator = (total, throttled) => {
|
|
57219
57130
|
const lengthComputable = total != null;
|
|
57220
|
-
return [
|
|
57221
|
-
|
|
57222
|
-
|
|
57223
|
-
|
|
57224
|
-
|
|
57225
|
-
}),
|
|
57226
|
-
throttled[1]
|
|
57227
|
-
];
|
|
57131
|
+
return [(loaded) => throttled[0]({
|
|
57132
|
+
lengthComputable,
|
|
57133
|
+
total,
|
|
57134
|
+
loaded
|
|
57135
|
+
}), throttled[1]];
|
|
57228
57136
|
}, asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
57229
57137
|
var init_progressEventReducer = __esm(() => {
|
|
57230
57138
|
init_speedometer();
|
|
@@ -57232,136 +57140,13 @@ var init_progressEventReducer = __esm(() => {
|
|
|
57232
57140
|
init_utils3();
|
|
57233
57141
|
});
|
|
57234
57142
|
|
|
57235
|
-
// node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
57236
|
-
function estimateDataURLDecodedBytes(url3) {
|
|
57237
|
-
if (!url3 || typeof url3 !== "string")
|
|
57238
|
-
return 0;
|
|
57239
|
-
if (!url3.startsWith("data:"))
|
|
57240
|
-
return 0;
|
|
57241
|
-
const comma = url3.indexOf(",");
|
|
57242
|
-
if (comma < 0)
|
|
57243
|
-
return 0;
|
|
57244
|
-
const meta3 = url3.slice(5, comma);
|
|
57245
|
-
const body = url3.slice(comma + 1);
|
|
57246
|
-
const isBase64 = /;base64/i.test(meta3);
|
|
57247
|
-
if (isBase64) {
|
|
57248
|
-
let effectiveLen = body.length;
|
|
57249
|
-
const len = body.length;
|
|
57250
|
-
for (let i2 = 0;i2 < len; i2++) {
|
|
57251
|
-
if (body.charCodeAt(i2) === 37 && i2 + 2 < len) {
|
|
57252
|
-
const a2 = body.charCodeAt(i2 + 1);
|
|
57253
|
-
const b = body.charCodeAt(i2 + 2);
|
|
57254
|
-
const isHex = (a2 >= 48 && a2 <= 57 || a2 >= 65 && a2 <= 70 || a2 >= 97 && a2 <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
57255
|
-
if (isHex) {
|
|
57256
|
-
effectiveLen -= 2;
|
|
57257
|
-
i2 += 2;
|
|
57258
|
-
}
|
|
57259
|
-
}
|
|
57260
|
-
}
|
|
57261
|
-
let pad = 0;
|
|
57262
|
-
let idx = len - 1;
|
|
57263
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
57264
|
-
if (idx >= 0) {
|
|
57265
|
-
if (body.charCodeAt(idx) === 61) {
|
|
57266
|
-
pad++;
|
|
57267
|
-
idx--;
|
|
57268
|
-
} else if (tailIsPct3D(idx)) {
|
|
57269
|
-
pad++;
|
|
57270
|
-
idx -= 3;
|
|
57271
|
-
}
|
|
57272
|
-
}
|
|
57273
|
-
if (pad === 1 && idx >= 0) {
|
|
57274
|
-
if (body.charCodeAt(idx) === 61) {
|
|
57275
|
-
pad++;
|
|
57276
|
-
} else if (tailIsPct3D(idx)) {
|
|
57277
|
-
pad++;
|
|
57278
|
-
}
|
|
57279
|
-
}
|
|
57280
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
57281
|
-
const bytes = groups * 3 - (pad || 0);
|
|
57282
|
-
return bytes > 0 ? bytes : 0;
|
|
57283
|
-
}
|
|
57284
|
-
return Buffer.byteLength(body, "utf8");
|
|
57285
|
-
}
|
|
57286
|
-
|
|
57287
57143
|
// node_modules/axios/lib/adapters/http.js
|
|
57288
57144
|
import http from "http";
|
|
57289
57145
|
import https from "https";
|
|
57290
|
-
import http2 from "http2";
|
|
57291
57146
|
import util2 from "util";
|
|
57292
57147
|
import zlib from "zlib";
|
|
57293
57148
|
import stream3 from "stream";
|
|
57294
57149
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
57295
|
-
|
|
57296
|
-
class Http2Sessions {
|
|
57297
|
-
constructor() {
|
|
57298
|
-
this.sessions = Object.create(null);
|
|
57299
|
-
}
|
|
57300
|
-
getSession(authority, options) {
|
|
57301
|
-
options = Object.assign({
|
|
57302
|
-
sessionTimeout: 1000
|
|
57303
|
-
}, options);
|
|
57304
|
-
let authoritySessions = this.sessions[authority];
|
|
57305
|
-
if (authoritySessions) {
|
|
57306
|
-
let len = authoritySessions.length;
|
|
57307
|
-
for (let i2 = 0;i2 < len; i2++) {
|
|
57308
|
-
const [sessionHandle, sessionOptions] = authoritySessions[i2];
|
|
57309
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
57310
|
-
return sessionHandle;
|
|
57311
|
-
}
|
|
57312
|
-
}
|
|
57313
|
-
}
|
|
57314
|
-
const session = http2.connect(authority, options);
|
|
57315
|
-
let removed;
|
|
57316
|
-
const removeSession = () => {
|
|
57317
|
-
if (removed) {
|
|
57318
|
-
return;
|
|
57319
|
-
}
|
|
57320
|
-
removed = true;
|
|
57321
|
-
let entries = authoritySessions, len = entries.length, i2 = len;
|
|
57322
|
-
while (i2--) {
|
|
57323
|
-
if (entries[i2][0] === session) {
|
|
57324
|
-
if (len === 1) {
|
|
57325
|
-
delete this.sessions[authority];
|
|
57326
|
-
} else {
|
|
57327
|
-
entries.splice(i2, 1);
|
|
57328
|
-
}
|
|
57329
|
-
if (!session.closed) {
|
|
57330
|
-
session.close();
|
|
57331
|
-
}
|
|
57332
|
-
return;
|
|
57333
|
-
}
|
|
57334
|
-
}
|
|
57335
|
-
};
|
|
57336
|
-
const originalRequestFn = session.request;
|
|
57337
|
-
const { sessionTimeout } = options;
|
|
57338
|
-
if (sessionTimeout != null) {
|
|
57339
|
-
let timer;
|
|
57340
|
-
let streamsCount = 0;
|
|
57341
|
-
session.request = function() {
|
|
57342
|
-
const stream4 = originalRequestFn.apply(this, arguments);
|
|
57343
|
-
streamsCount++;
|
|
57344
|
-
if (timer) {
|
|
57345
|
-
clearTimeout(timer);
|
|
57346
|
-
timer = null;
|
|
57347
|
-
}
|
|
57348
|
-
stream4.once("close", () => {
|
|
57349
|
-
if (!--streamsCount) {
|
|
57350
|
-
timer = setTimeout(() => {
|
|
57351
|
-
timer = null;
|
|
57352
|
-
removeSession();
|
|
57353
|
-
}, sessionTimeout);
|
|
57354
|
-
}
|
|
57355
|
-
});
|
|
57356
|
-
return stream4;
|
|
57357
|
-
};
|
|
57358
|
-
}
|
|
57359
|
-
session.once("close", removeSession);
|
|
57360
|
-
let entry = [session, options];
|
|
57361
|
-
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
57362
|
-
return session;
|
|
57363
|
-
}
|
|
57364
|
-
}
|
|
57365
57150
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
57366
57151
|
if (options.beforeRedirects.proxy) {
|
|
57367
57152
|
options.beforeRedirects.proxy(options);
|
|
@@ -57373,7 +57158,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
57373
57158
|
function setProxy(options, configProxy, location) {
|
|
57374
57159
|
let proxy = configProxy;
|
|
57375
57160
|
if (!proxy && proxy !== false) {
|
|
57376
|
-
const proxyUrl = getProxyForUrl(location);
|
|
57161
|
+
const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
|
|
57377
57162
|
if (proxyUrl) {
|
|
57378
57163
|
proxy = new URL(proxyUrl);
|
|
57379
57164
|
}
|
|
@@ -57383,11 +57168,8 @@ function setProxy(options, configProxy, location) {
|
|
|
57383
57168
|
proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
57384
57169
|
}
|
|
57385
57170
|
if (proxy.auth) {
|
|
57386
|
-
|
|
57387
|
-
if (validProxyAuth) {
|
|
57171
|
+
if (proxy.auth.username || proxy.auth.password) {
|
|
57388
57172
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
57389
|
-
} else if (typeof proxy.auth === "object") {
|
|
57390
|
-
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
57391
57173
|
}
|
|
57392
57174
|
const base644 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
57393
57175
|
options.headers["Proxy-Authorization"] = "Basic " + base644;
|
|
@@ -57406,10 +57188,10 @@ function setProxy(options, configProxy, location) {
|
|
|
57406
57188
|
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
57407
57189
|
};
|
|
57408
57190
|
}
|
|
57409
|
-
var import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish = (stream4, [throttled, flush]) => {
|
|
57191
|
+
var import_proxy_from_env, import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish = (stream4, [throttled, flush]) => {
|
|
57410
57192
|
stream4.on("end", flush).on("error", flush);
|
|
57411
57193
|
return throttled;
|
|
57412
|
-
},
|
|
57194
|
+
}, isHttpAdapterSupported, wrapAsync = (asyncExecutor) => {
|
|
57413
57195
|
return new Promise((resolve10, reject) => {
|
|
57414
57196
|
let onDone;
|
|
57415
57197
|
let isDone;
|
|
@@ -57437,13 +57219,12 @@ var import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, http
|
|
|
57437
57219
|
address,
|
|
57438
57220
|
family: family || (address.indexOf(".") < 0 ? 6 : 4)
|
|
57439
57221
|
};
|
|
57440
|
-
}, buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family }),
|
|
57222
|
+
}, buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family }), http_default;
|
|
57441
57223
|
var init_http = __esm(() => {
|
|
57442
57224
|
init_utils3();
|
|
57443
57225
|
init_settle();
|
|
57444
57226
|
init_buildFullPath();
|
|
57445
57227
|
init_buildURL();
|
|
57446
|
-
init_proxy_from_env();
|
|
57447
57228
|
init_transitional();
|
|
57448
57229
|
init_AxiosError();
|
|
57449
57230
|
init_CanceledError();
|
|
@@ -57456,6 +57237,7 @@ var init_http = __esm(() => {
|
|
|
57456
57237
|
init_ZlibHeaderTransformStream();
|
|
57457
57238
|
init_callbackify();
|
|
57458
57239
|
init_progressEventReducer();
|
|
57240
|
+
import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
57459
57241
|
import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
57460
57242
|
zlibOptions = {
|
|
57461
57243
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
@@ -57471,51 +57253,15 @@ var init_http = __esm(() => {
|
|
|
57471
57253
|
supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
57472
57254
|
return protocol + ":";
|
|
57473
57255
|
});
|
|
57474
|
-
http2Sessions = new Http2Sessions;
|
|
57475
57256
|
isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
57476
|
-
http2Transport = {
|
|
57477
|
-
request(options, cb) {
|
|
57478
|
-
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
57479
|
-
const { http2Options, headers } = options;
|
|
57480
|
-
const session = http2Sessions.getSession(authority, http2Options);
|
|
57481
|
-
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
|
|
57482
|
-
const http2Headers = {
|
|
57483
|
-
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
57484
|
-
[HTTP2_HEADER_METHOD]: options.method,
|
|
57485
|
-
[HTTP2_HEADER_PATH]: options.path
|
|
57486
|
-
};
|
|
57487
|
-
utils_default.forEach(headers, (header, name) => {
|
|
57488
|
-
name.charAt(0) !== ":" && (http2Headers[name] = header);
|
|
57489
|
-
});
|
|
57490
|
-
const req = session.request(http2Headers);
|
|
57491
|
-
req.once("response", (responseHeaders) => {
|
|
57492
|
-
const response = req;
|
|
57493
|
-
responseHeaders = Object.assign({}, responseHeaders);
|
|
57494
|
-
const status = responseHeaders[HTTP2_HEADER_STATUS];
|
|
57495
|
-
delete responseHeaders[HTTP2_HEADER_STATUS];
|
|
57496
|
-
response.headers = responseHeaders;
|
|
57497
|
-
response.statusCode = +status;
|
|
57498
|
-
cb(response);
|
|
57499
|
-
});
|
|
57500
|
-
return req;
|
|
57501
|
-
}
|
|
57502
|
-
};
|
|
57503
57257
|
http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
57504
57258
|
return wrapAsync(async function dispatchHttpRequest(resolve10, reject, onDone) {
|
|
57505
|
-
let { data, lookup, family
|
|
57259
|
+
let { data, lookup, family } = config2;
|
|
57506
57260
|
const { responseType, responseEncoding } = config2;
|
|
57507
57261
|
const method = config2.method.toUpperCase();
|
|
57508
57262
|
let isDone;
|
|
57509
57263
|
let rejected = false;
|
|
57510
57264
|
let req;
|
|
57511
|
-
httpVersion = +httpVersion;
|
|
57512
|
-
if (Number.isNaN(httpVersion)) {
|
|
57513
|
-
throw TypeError(`Invalid protocol version: '${config2.httpVersion}' is not a number`);
|
|
57514
|
-
}
|
|
57515
|
-
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
57516
|
-
throw TypeError(`Unsupported protocol version '${httpVersion}'`);
|
|
57517
|
-
}
|
|
57518
|
-
const isHttp2 = httpVersion === 2;
|
|
57519
57265
|
if (lookup) {
|
|
57520
57266
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
57521
57267
|
lookup = (hostname3, opt, cb) => {
|
|
@@ -57528,15 +57274,7 @@ var init_http = __esm(() => {
|
|
|
57528
57274
|
});
|
|
57529
57275
|
};
|
|
57530
57276
|
}
|
|
57531
|
-
const
|
|
57532
|
-
function abort(reason) {
|
|
57533
|
-
try {
|
|
57534
|
-
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config2, req) : reason);
|
|
57535
|
-
} catch (err) {
|
|
57536
|
-
console.warn("emit error", err);
|
|
57537
|
-
}
|
|
57538
|
-
}
|
|
57539
|
-
abortEmitter.once("abort", reject);
|
|
57277
|
+
const emitter = new EventEmitter2;
|
|
57540
57278
|
const onFinished = () => {
|
|
57541
57279
|
if (config2.cancelToken) {
|
|
57542
57280
|
config2.cancelToken.unsubscribe(abort);
|
|
@@ -57544,42 +57282,29 @@ var init_http = __esm(() => {
|
|
|
57544
57282
|
if (config2.signal) {
|
|
57545
57283
|
config2.signal.removeEventListener("abort", abort);
|
|
57546
57284
|
}
|
|
57547
|
-
|
|
57285
|
+
emitter.removeAllListeners();
|
|
57548
57286
|
};
|
|
57549
|
-
|
|
57550
|
-
config2.cancelToken && config2.cancelToken.subscribe(abort);
|
|
57551
|
-
if (config2.signal) {
|
|
57552
|
-
config2.signal.aborted ? abort() : config2.signal.addEventListener("abort", abort);
|
|
57553
|
-
}
|
|
57554
|
-
}
|
|
57555
|
-
onDone((response, isRejected) => {
|
|
57287
|
+
onDone((value, isRejected) => {
|
|
57556
57288
|
isDone = true;
|
|
57557
57289
|
if (isRejected) {
|
|
57558
57290
|
rejected = true;
|
|
57559
57291
|
onFinished();
|
|
57560
|
-
return;
|
|
57561
|
-
}
|
|
57562
|
-
const { data: data2 } = response;
|
|
57563
|
-
if (data2 instanceof stream3.Readable || data2 instanceof stream3.Duplex) {
|
|
57564
|
-
const offListeners = stream3.finished(data2, () => {
|
|
57565
|
-
offListeners();
|
|
57566
|
-
onFinished();
|
|
57567
|
-
});
|
|
57568
|
-
} else {
|
|
57569
|
-
onFinished();
|
|
57570
57292
|
}
|
|
57571
57293
|
});
|
|
57572
|
-
|
|
57294
|
+
function abort(reason) {
|
|
57295
|
+
emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config2, req) : reason);
|
|
57296
|
+
}
|
|
57297
|
+
emitter.once("abort", reject);
|
|
57298
|
+
if (config2.cancelToken || config2.signal) {
|
|
57299
|
+
config2.cancelToken && config2.cancelToken.subscribe(abort);
|
|
57300
|
+
if (config2.signal) {
|
|
57301
|
+
config2.signal.aborted ? abort() : config2.signal.addEventListener("abort", abort);
|
|
57302
|
+
}
|
|
57303
|
+
}
|
|
57304
|
+
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
57573
57305
|
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : undefined);
|
|
57574
57306
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
57575
57307
|
if (protocol === "data:") {
|
|
57576
|
-
if (config2.maxContentLength > -1) {
|
|
57577
|
-
const dataUrl = String(config2.url || fullPath || "");
|
|
57578
|
-
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
57579
|
-
if (estimated > config2.maxContentLength) {
|
|
57580
|
-
return reject(new AxiosError_default("maxContentLength size of " + config2.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config2));
|
|
57581
|
-
}
|
|
57582
|
-
}
|
|
57583
57308
|
let convertedData;
|
|
57584
57309
|
if (method !== "GET") {
|
|
57585
57310
|
return settle(resolve10, reject, {
|
|
@@ -57665,12 +57390,9 @@ var init_http = __esm(() => {
|
|
|
57665
57390
|
if (!utils_default.isStream(data)) {
|
|
57666
57391
|
data = stream3.Readable.from(data, { objectMode: false });
|
|
57667
57392
|
}
|
|
57668
|
-
data = stream3.pipeline([
|
|
57669
|
-
|
|
57670
|
-
|
|
57671
|
-
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
57672
|
-
})
|
|
57673
|
-
], utils_default.noop);
|
|
57393
|
+
data = stream3.pipeline([data, new AxiosTransformStream_default({
|
|
57394
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
57395
|
+
})], utils_default.noop);
|
|
57674
57396
|
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
57675
57397
|
}
|
|
57676
57398
|
let auth = undefined;
|
|
@@ -57705,8 +57427,7 @@ var init_http = __esm(() => {
|
|
|
57705
57427
|
protocol,
|
|
57706
57428
|
family,
|
|
57707
57429
|
beforeRedirect: dispatchBeforeRedirect,
|
|
57708
|
-
beforeRedirects: {}
|
|
57709
|
-
http2Options
|
|
57430
|
+
beforeRedirects: {}
|
|
57710
57431
|
};
|
|
57711
57432
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
57712
57433
|
if (config2.socketPath) {
|
|
@@ -57719,22 +57440,18 @@ var init_http = __esm(() => {
|
|
|
57719
57440
|
let transport;
|
|
57720
57441
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
57721
57442
|
options.agent = isHttpsRequest ? config2.httpsAgent : config2.httpAgent;
|
|
57722
|
-
if (
|
|
57723
|
-
transport =
|
|
57443
|
+
if (config2.transport) {
|
|
57444
|
+
transport = config2.transport;
|
|
57445
|
+
} else if (config2.maxRedirects === 0) {
|
|
57446
|
+
transport = isHttpsRequest ? https : http;
|
|
57724
57447
|
} else {
|
|
57725
|
-
if (config2.
|
|
57726
|
-
|
|
57727
|
-
}
|
|
57728
|
-
|
|
57729
|
-
|
|
57730
|
-
if (config2.maxRedirects) {
|
|
57731
|
-
options.maxRedirects = config2.maxRedirects;
|
|
57732
|
-
}
|
|
57733
|
-
if (config2.beforeRedirect) {
|
|
57734
|
-
options.beforeRedirects.config = config2.beforeRedirect;
|
|
57735
|
-
}
|
|
57736
|
-
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
57448
|
+
if (config2.maxRedirects) {
|
|
57449
|
+
options.maxRedirects = config2.maxRedirects;
|
|
57450
|
+
}
|
|
57451
|
+
if (config2.beforeRedirect) {
|
|
57452
|
+
options.beforeRedirects.config = config2.beforeRedirect;
|
|
57737
57453
|
}
|
|
57454
|
+
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
57738
57455
|
}
|
|
57739
57456
|
if (config2.maxBodyLength > -1) {
|
|
57740
57457
|
options.maxBodyLength = config2.maxBodyLength;
|
|
@@ -57748,7 +57465,7 @@ var init_http = __esm(() => {
|
|
|
57748
57465
|
if (req.destroyed)
|
|
57749
57466
|
return;
|
|
57750
57467
|
const streams = [res];
|
|
57751
|
-
const responseLength =
|
|
57468
|
+
const responseLength = +res.headers["content-length"];
|
|
57752
57469
|
if (onDownloadProgress || maxDownloadRate) {
|
|
57753
57470
|
const transformStream = new AxiosTransformStream_default({
|
|
57754
57471
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
@@ -57783,6 +57500,10 @@ var init_http = __esm(() => {
|
|
|
57783
57500
|
}
|
|
57784
57501
|
}
|
|
57785
57502
|
responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
|
|
57503
|
+
const offListeners = stream3.finished(responseStream, () => {
|
|
57504
|
+
offListeners();
|
|
57505
|
+
onFinished();
|
|
57506
|
+
});
|
|
57786
57507
|
const response = {
|
|
57787
57508
|
status: res.statusCode,
|
|
57788
57509
|
statusText: res.statusMessage,
|
|
@@ -57802,7 +57523,7 @@ var init_http = __esm(() => {
|
|
|
57802
57523
|
if (config2.maxContentLength > -1 && totalResponseBytes > config2.maxContentLength) {
|
|
57803
57524
|
rejected = true;
|
|
57804
57525
|
responseStream.destroy();
|
|
57805
|
-
|
|
57526
|
+
reject(new AxiosError_default("maxContentLength size of " + config2.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config2, lastRequest));
|
|
57806
57527
|
}
|
|
57807
57528
|
});
|
|
57808
57529
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -57834,19 +57555,16 @@ var init_http = __esm(() => {
|
|
|
57834
57555
|
settle(resolve10, reject, response);
|
|
57835
57556
|
});
|
|
57836
57557
|
}
|
|
57837
|
-
|
|
57558
|
+
emitter.once("abort", (err) => {
|
|
57838
57559
|
if (!responseStream.destroyed) {
|
|
57839
57560
|
responseStream.emit("error", err);
|
|
57840
57561
|
responseStream.destroy();
|
|
57841
57562
|
}
|
|
57842
57563
|
});
|
|
57843
57564
|
});
|
|
57844
|
-
|
|
57845
|
-
|
|
57846
|
-
|
|
57847
|
-
} else {
|
|
57848
|
-
req.destroy(err);
|
|
57849
|
-
}
|
|
57565
|
+
emitter.once("abort", (err) => {
|
|
57566
|
+
reject(err);
|
|
57567
|
+
req.destroy(err);
|
|
57850
57568
|
});
|
|
57851
57569
|
req.on("error", function handleRequestError(err) {
|
|
57852
57570
|
reject(AxiosError_default.from(err, null, config2, req));
|
|
@@ -57857,7 +57575,7 @@ var init_http = __esm(() => {
|
|
|
57857
57575
|
if (config2.timeout) {
|
|
57858
57576
|
const timeout = parseInt(config2.timeout, 10);
|
|
57859
57577
|
if (Number.isNaN(timeout)) {
|
|
57860
|
-
|
|
57578
|
+
reject(new AxiosError_default("error trying to parse `config.timeout` to int", AxiosError_default.ERR_BAD_OPTION_VALUE, config2, req));
|
|
57861
57579
|
return;
|
|
57862
57580
|
}
|
|
57863
57581
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -57868,10 +57586,9 @@ var init_http = __esm(() => {
|
|
|
57868
57586
|
if (config2.timeoutErrorMessage) {
|
|
57869
57587
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
57870
57588
|
}
|
|
57871
|
-
|
|
57589
|
+
reject(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config2, req));
|
|
57590
|
+
abort();
|
|
57872
57591
|
});
|
|
57873
|
-
} else {
|
|
57874
|
-
req.setTimeout(0);
|
|
57875
57592
|
}
|
|
57876
57593
|
if (utils_default.isStream(data)) {
|
|
57877
57594
|
let ended = false;
|
|
@@ -57890,8 +57607,7 @@ var init_http = __esm(() => {
|
|
|
57890
57607
|
});
|
|
57891
57608
|
data.pipe(req);
|
|
57892
57609
|
} else {
|
|
57893
|
-
|
|
57894
|
-
req.end();
|
|
57610
|
+
req.end(data);
|
|
57895
57611
|
}
|
|
57896
57612
|
});
|
|
57897
57613
|
};
|
|
@@ -57913,35 +57629,20 @@ var init_cookies = __esm(() => {
|
|
|
57913
57629
|
init_utils3();
|
|
57914
57630
|
init_platform2();
|
|
57915
57631
|
cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
57916
|
-
write(name, value, expires, path12, domain2, secure
|
|
57917
|
-
|
|
57918
|
-
|
|
57919
|
-
|
|
57920
|
-
|
|
57921
|
-
|
|
57922
|
-
}
|
|
57923
|
-
if (utils_default.isString(path12)) {
|
|
57924
|
-
cookie.push(`path=${path12}`);
|
|
57925
|
-
}
|
|
57926
|
-
if (utils_default.isString(domain2)) {
|
|
57927
|
-
cookie.push(`domain=${domain2}`);
|
|
57928
|
-
}
|
|
57929
|
-
if (secure === true) {
|
|
57930
|
-
cookie.push("secure");
|
|
57931
|
-
}
|
|
57932
|
-
if (utils_default.isString(sameSite)) {
|
|
57933
|
-
cookie.push(`SameSite=${sameSite}`);
|
|
57934
|
-
}
|
|
57632
|
+
write(name, value, expires, path12, domain2, secure) {
|
|
57633
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
57634
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
57635
|
+
utils_default.isString(path12) && cookie.push("path=" + path12);
|
|
57636
|
+
utils_default.isString(domain2) && cookie.push("domain=" + domain2);
|
|
57637
|
+
secure === true && cookie.push("secure");
|
|
57935
57638
|
document.cookie = cookie.join("; ");
|
|
57936
57639
|
},
|
|
57937
57640
|
read(name) {
|
|
57938
|
-
|
|
57939
|
-
|
|
57940
|
-
const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
|
|
57941
|
-
return match ? decodeURIComponent(match[1]) : null;
|
|
57641
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
57642
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
57942
57643
|
},
|
|
57943
57644
|
remove(name) {
|
|
57944
|
-
this.write(name, "", Date.now() - 86400000
|
|
57645
|
+
this.write(name, "", Date.now() - 86400000);
|
|
57945
57646
|
}
|
|
57946
57647
|
} : {
|
|
57947
57648
|
write() {},
|
|
@@ -58023,10 +57724,8 @@ function mergeConfig(config1, config2) {
|
|
|
58023
57724
|
validateStatus: mergeDirectKeys,
|
|
58024
57725
|
headers: (a2, b, prop) => mergeDeepProperties(headersToObject(a2), headersToObject(b), prop, true)
|
|
58025
57726
|
};
|
|
58026
|
-
utils_default.forEach(Object.keys({
|
|
58027
|
-
|
|
58028
|
-
return;
|
|
58029
|
-
const merge3 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
57727
|
+
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
57728
|
+
const merge3 = mergeMap[prop] || mergeDeepProperties;
|
|
58030
57729
|
const configValue = merge3(config1[prop], config2[prop], prop);
|
|
58031
57730
|
utils_default.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
58032
57731
|
});
|
|
@@ -58043,21 +57742,17 @@ var resolveConfig_default = (config2) => {
|
|
|
58043
57742
|
const newConfig = mergeConfig({}, config2);
|
|
58044
57743
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
58045
57744
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
58046
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url
|
|
57745
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config2.params, config2.paramsSerializer);
|
|
58047
57746
|
if (auth) {
|
|
58048
57747
|
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
|
|
58049
57748
|
}
|
|
57749
|
+
let contentType;
|
|
58050
57750
|
if (utils_default.isFormData(data)) {
|
|
58051
57751
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
58052
57752
|
headers.setContentType(undefined);
|
|
58053
|
-
} else if (
|
|
58054
|
-
const
|
|
58055
|
-
|
|
58056
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
58057
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
58058
|
-
headers.set(key, val);
|
|
58059
|
-
}
|
|
58060
|
-
});
|
|
57753
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
57754
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
57755
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
58061
57756
|
}
|
|
58062
57757
|
}
|
|
58063
57758
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -58156,11 +57851,8 @@ var init_xhr = __esm(() => {
|
|
|
58156
57851
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config2, request));
|
|
58157
57852
|
request = null;
|
|
58158
57853
|
};
|
|
58159
|
-
request.onerror = function handleError(
|
|
58160
|
-
|
|
58161
|
-
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config2, request);
|
|
58162
|
-
err.event = event || null;
|
|
58163
|
-
reject(err);
|
|
57854
|
+
request.onerror = function handleError() {
|
|
57855
|
+
reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request));
|
|
58164
57856
|
request = null;
|
|
58165
57857
|
};
|
|
58166
57858
|
request.ontimeout = function handleTimeout() {
|
|
@@ -58233,7 +57925,7 @@ var composeSignals = (signals2, timeout) => {
|
|
|
58233
57925
|
};
|
|
58234
57926
|
let timer = timeout && setTimeout(() => {
|
|
58235
57927
|
timer = null;
|
|
58236
|
-
onabort(new AxiosError_default(`timeout
|
|
57928
|
+
onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
58237
57929
|
}, timeout);
|
|
58238
57930
|
const unsubscribe = () => {
|
|
58239
57931
|
if (signals2) {
|
|
@@ -58294,7 +57986,7 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58294
57986
|
await reader.cancel();
|
|
58295
57987
|
}
|
|
58296
57988
|
}, trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
58297
|
-
const
|
|
57989
|
+
const iterator = readBytes(stream4, chunkSize);
|
|
58298
57990
|
let bytes = 0;
|
|
58299
57991
|
let done;
|
|
58300
57992
|
let _onFinish = (e) => {
|
|
@@ -58306,7 +57998,7 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58306
57998
|
return new ReadableStream({
|
|
58307
57999
|
async pull(controller) {
|
|
58308
58000
|
try {
|
|
58309
|
-
const { done: done2, value } = await
|
|
58001
|
+
const { done: done2, value } = await iterator.next();
|
|
58310
58002
|
if (done2) {
|
|
58311
58003
|
_onFinish();
|
|
58312
58004
|
controller.close();
|
|
@@ -58325,7 +58017,7 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58325
58017
|
},
|
|
58326
58018
|
cancel(reason) {
|
|
58327
58019
|
_onFinish(reason);
|
|
58328
|
-
return
|
|
58020
|
+
return iterator.return();
|
|
58329
58021
|
}
|
|
58330
58022
|
}, {
|
|
58331
58023
|
highWaterMark: 2
|
|
@@ -58333,83 +58025,76 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58333
58025
|
};
|
|
58334
58026
|
|
|
58335
58027
|
// node_modules/axios/lib/adapters/fetch.js
|
|
58336
|
-
var
|
|
58028
|
+
var isFetchSupported, isReadableStreamSupported, encodeText, test = (fn, ...args) => {
|
|
58337
58029
|
try {
|
|
58338
58030
|
return !!fn(...args);
|
|
58339
58031
|
} catch (e) {
|
|
58340
58032
|
return false;
|
|
58341
58033
|
}
|
|
58342
|
-
},
|
|
58343
|
-
|
|
58344
|
-
|
|
58345
|
-
}
|
|
58346
|
-
|
|
58347
|
-
|
|
58348
|
-
|
|
58349
|
-
|
|
58350
|
-
|
|
58351
|
-
|
|
58034
|
+
}, supportsRequestStream, DEFAULT_CHUNK_SIZE, supportsResponseStream, resolvers, getBodyLength = async (body) => {
|
|
58035
|
+
if (body == null) {
|
|
58036
|
+
return 0;
|
|
58037
|
+
}
|
|
58038
|
+
if (utils_default.isBlob(body)) {
|
|
58039
|
+
return body.size;
|
|
58040
|
+
}
|
|
58041
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
58042
|
+
const _request = new Request(platform_default.origin, {
|
|
58043
|
+
method: "POST",
|
|
58044
|
+
body
|
|
58045
|
+
});
|
|
58046
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
58352
58047
|
}
|
|
58353
|
-
|
|
58354
|
-
|
|
58355
|
-
|
|
58048
|
+
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
58049
|
+
return body.byteLength;
|
|
58050
|
+
}
|
|
58051
|
+
if (utils_default.isURLSearchParams(body)) {
|
|
58052
|
+
body = body + "";
|
|
58053
|
+
}
|
|
58054
|
+
if (utils_default.isString(body)) {
|
|
58055
|
+
return (await encodeText(body)).byteLength;
|
|
58056
|
+
}
|
|
58057
|
+
}, resolveBodyLength = async (headers, body) => {
|
|
58058
|
+
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
58059
|
+
return length == null ? getBodyLength(body) : length;
|
|
58060
|
+
}, fetch_default;
|
|
58061
|
+
var init_fetch = __esm(() => {
|
|
58062
|
+
init_platform2();
|
|
58063
|
+
init_utils3();
|
|
58064
|
+
init_AxiosError();
|
|
58065
|
+
init_composeSignals();
|
|
58066
|
+
init_AxiosHeaders();
|
|
58067
|
+
init_progressEventReducer();
|
|
58068
|
+
init_resolveConfig();
|
|
58069
|
+
init_settle();
|
|
58070
|
+
isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
58071
|
+
isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
58072
|
+
encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder2) => (str) => encoder2.encode(str))(new TextEncoder) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
58073
|
+
supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
58356
58074
|
let duplexAccessed = false;
|
|
58357
|
-
const
|
|
58358
|
-
|
|
58359
|
-
body,
|
|
58075
|
+
const hasContentType = new Request(platform_default.origin, {
|
|
58076
|
+
body: new ReadableStream,
|
|
58360
58077
|
method: "POST",
|
|
58361
58078
|
get duplex() {
|
|
58362
58079
|
duplexAccessed = true;
|
|
58363
58080
|
return "half";
|
|
58364
58081
|
}
|
|
58365
58082
|
}).headers.has("Content-Type");
|
|
58366
|
-
body.cancel();
|
|
58367
58083
|
return duplexAccessed && !hasContentType;
|
|
58368
58084
|
});
|
|
58369
|
-
|
|
58370
|
-
|
|
58085
|
+
DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
58086
|
+
supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
58087
|
+
resolvers = {
|
|
58371
58088
|
stream: supportsResponseStream && ((res) => res.body)
|
|
58372
58089
|
};
|
|
58373
|
-
isFetchSupported && (() => {
|
|
58090
|
+
isFetchSupported && ((res) => {
|
|
58374
58091
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
58375
|
-
!resolvers[type] && (resolvers[type] = (res, config2) => {
|
|
58376
|
-
let method = res && res[type];
|
|
58377
|
-
if (method) {
|
|
58378
|
-
return method.call(res);
|
|
58379
|
-
}
|
|
58092
|
+
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config2) => {
|
|
58380
58093
|
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config2);
|
|
58381
58094
|
});
|
|
58382
58095
|
});
|
|
58383
|
-
})();
|
|
58384
|
-
|
|
58385
|
-
if (body == null) {
|
|
58386
|
-
return 0;
|
|
58387
|
-
}
|
|
58388
|
-
if (utils_default.isBlob(body)) {
|
|
58389
|
-
return body.size;
|
|
58390
|
-
}
|
|
58391
|
-
if (utils_default.isSpecCompliantForm(body)) {
|
|
58392
|
-
const _request = new Request2(platform_default.origin, {
|
|
58393
|
-
method: "POST",
|
|
58394
|
-
body
|
|
58395
|
-
});
|
|
58396
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
58397
|
-
}
|
|
58398
|
-
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
58399
|
-
return body.byteLength;
|
|
58400
|
-
}
|
|
58401
|
-
if (utils_default.isURLSearchParams(body)) {
|
|
58402
|
-
body = body + "";
|
|
58403
|
-
}
|
|
58404
|
-
if (utils_default.isString(body)) {
|
|
58405
|
-
return (await encodeText(body)).byteLength;
|
|
58406
|
-
}
|
|
58407
|
-
};
|
|
58408
|
-
const resolveBodyLength = async (headers, body) => {
|
|
58409
|
-
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
58410
|
-
return length == null ? getBodyLength(body) : length;
|
|
58411
|
-
};
|
|
58412
|
-
return async (config2) => {
|
|
58096
|
+
})(new Response);
|
|
58097
|
+
fetch_default = isFetchSupported && (async (config2) => {
|
|
58413
58098
|
let {
|
|
58414
58099
|
url: url3,
|
|
58415
58100
|
method,
|
|
@@ -58424,17 +58109,16 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58424
58109
|
withCredentials = "same-origin",
|
|
58425
58110
|
fetchOptions
|
|
58426
58111
|
} = resolveConfig_default(config2);
|
|
58427
|
-
let _fetch = envFetch || fetch;
|
|
58428
58112
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
58429
58113
|
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
58430
|
-
let request
|
|
58114
|
+
let request;
|
|
58431
58115
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
58432
58116
|
composedSignal.unsubscribe();
|
|
58433
58117
|
});
|
|
58434
58118
|
let requestContentLength;
|
|
58435
58119
|
try {
|
|
58436
58120
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
58437
|
-
let _request = new
|
|
58121
|
+
let _request = new Request(url3, {
|
|
58438
58122
|
method: "POST",
|
|
58439
58123
|
body: data,
|
|
58440
58124
|
duplex: "half"
|
|
@@ -58451,8 +58135,8 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58451
58135
|
if (!utils_default.isString(withCredentials)) {
|
|
58452
58136
|
withCredentials = withCredentials ? "include" : "omit";
|
|
58453
58137
|
}
|
|
58454
|
-
const isCredentialsSupported =
|
|
58455
|
-
|
|
58138
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
58139
|
+
request = new Request(url3, {
|
|
58456
58140
|
...fetchOptions,
|
|
58457
58141
|
signal: composedSignal,
|
|
58458
58142
|
method: method.toUpperCase(),
|
|
@@ -58460,9 +58144,8 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58460
58144
|
body: data,
|
|
58461
58145
|
duplex: "half",
|
|
58462
58146
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
58463
|
-
};
|
|
58464
|
-
|
|
58465
|
-
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url3, resolvedOptions));
|
|
58147
|
+
});
|
|
58148
|
+
let response = await fetch(request);
|
|
58466
58149
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
58467
58150
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
58468
58151
|
const options = {};
|
|
@@ -58471,7 +58154,7 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58471
58154
|
});
|
|
58472
58155
|
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
58473
58156
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
58474
|
-
response = new
|
|
58157
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
58475
58158
|
flush && flush();
|
|
58476
58159
|
unsubscribe && unsubscribe();
|
|
58477
58160
|
}), options);
|
|
@@ -58491,79 +58174,18 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58491
58174
|
});
|
|
58492
58175
|
} catch (err) {
|
|
58493
58176
|
unsubscribe && unsubscribe();
|
|
58494
|
-
if (err && err.name === "TypeError" && /
|
|
58495
|
-
throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request
|
|
58177
|
+
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
58178
|
+
throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request), {
|
|
58496
58179
|
cause: err.cause || err
|
|
58497
58180
|
});
|
|
58498
58181
|
}
|
|
58499
|
-
throw AxiosError_default.from(err, err && err.code, config2, request
|
|
58182
|
+
throw AxiosError_default.from(err, err && err.code, config2, request);
|
|
58500
58183
|
}
|
|
58501
|
-
};
|
|
58502
|
-
}, seedCache, getFetch = (config2) => {
|
|
58503
|
-
let env5 = config2 && config2.env || {};
|
|
58504
|
-
const { fetch: fetch2, Request: Request2, Response: Response2 } = env5;
|
|
58505
|
-
const seeds = [Request2, Response2, fetch2];
|
|
58506
|
-
let len = seeds.length, i2 = len, seed, target, map2 = seedCache;
|
|
58507
|
-
while (i2--) {
|
|
58508
|
-
seed = seeds[i2];
|
|
58509
|
-
target = map2.get(seed);
|
|
58510
|
-
target === undefined && map2.set(seed, target = i2 ? new Map : factory(env5));
|
|
58511
|
-
map2 = target;
|
|
58512
|
-
}
|
|
58513
|
-
return target;
|
|
58514
|
-
}, adapter;
|
|
58515
|
-
var init_fetch = __esm(() => {
|
|
58516
|
-
init_platform2();
|
|
58517
|
-
init_utils3();
|
|
58518
|
-
init_AxiosError();
|
|
58519
|
-
init_composeSignals();
|
|
58520
|
-
init_AxiosHeaders();
|
|
58521
|
-
init_progressEventReducer();
|
|
58522
|
-
init_resolveConfig();
|
|
58523
|
-
init_settle();
|
|
58524
|
-
DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
58525
|
-
({ isFunction: isFunction3 } = utils_default);
|
|
58526
|
-
globalFetchAPI = (({ Request: Request2, Response: Response2 }) => ({
|
|
58527
|
-
Request: Request2,
|
|
58528
|
-
Response: Response2
|
|
58529
|
-
}))(utils_default.global);
|
|
58530
|
-
({ ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global);
|
|
58531
|
-
seedCache = new Map;
|
|
58532
|
-
adapter = getFetch();
|
|
58184
|
+
});
|
|
58533
58185
|
});
|
|
58534
58186
|
|
|
58535
58187
|
// node_modules/axios/lib/adapters/adapters.js
|
|
58536
|
-
|
|
58537
|
-
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
58538
|
-
const { length } = adapters;
|
|
58539
|
-
let nameOrAdapter;
|
|
58540
|
-
let adapter2;
|
|
58541
|
-
const rejectedReasons = {};
|
|
58542
|
-
for (let i2 = 0;i2 < length; i2++) {
|
|
58543
|
-
nameOrAdapter = adapters[i2];
|
|
58544
|
-
let id;
|
|
58545
|
-
adapter2 = nameOrAdapter;
|
|
58546
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
58547
|
-
adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
58548
|
-
if (adapter2 === undefined) {
|
|
58549
|
-
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
58550
|
-
}
|
|
58551
|
-
}
|
|
58552
|
-
if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config2)))) {
|
|
58553
|
-
break;
|
|
58554
|
-
}
|
|
58555
|
-
rejectedReasons[id || "#" + i2] = adapter2;
|
|
58556
|
-
}
|
|
58557
|
-
if (!adapter2) {
|
|
58558
|
-
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
58559
|
-
let s = length ? reasons.length > 1 ? `since :
|
|
58560
|
-
` + reasons.map(renderReason).join(`
|
|
58561
|
-
`) : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
58562
|
-
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
|
|
58563
|
-
}
|
|
58564
|
-
return adapter2;
|
|
58565
|
-
}
|
|
58566
|
-
var knownAdapters, renderReason = (reason) => `- ${reason}`, isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false, adapters_default;
|
|
58188
|
+
var knownAdapters, renderReason = (reason) => `- ${reason}`, isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false, adapters_default;
|
|
58567
58189
|
var init_adapters = __esm(() => {
|
|
58568
58190
|
init_utils3();
|
|
58569
58191
|
init_http();
|
|
@@ -58573,9 +58195,7 @@ var init_adapters = __esm(() => {
|
|
|
58573
58195
|
knownAdapters = {
|
|
58574
58196
|
http: http_default,
|
|
58575
58197
|
xhr: xhr_default,
|
|
58576
|
-
fetch:
|
|
58577
|
-
get: getFetch
|
|
58578
|
-
}
|
|
58198
|
+
fetch: fetch_default
|
|
58579
58199
|
};
|
|
58580
58200
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
58581
58201
|
if (fn) {
|
|
@@ -58586,7 +58206,36 @@ var init_adapters = __esm(() => {
|
|
|
58586
58206
|
}
|
|
58587
58207
|
});
|
|
58588
58208
|
adapters_default = {
|
|
58589
|
-
getAdapter
|
|
58209
|
+
getAdapter: (adapters) => {
|
|
58210
|
+
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
58211
|
+
const { length } = adapters;
|
|
58212
|
+
let nameOrAdapter;
|
|
58213
|
+
let adapter;
|
|
58214
|
+
const rejectedReasons = {};
|
|
58215
|
+
for (let i2 = 0;i2 < length; i2++) {
|
|
58216
|
+
nameOrAdapter = adapters[i2];
|
|
58217
|
+
let id;
|
|
58218
|
+
adapter = nameOrAdapter;
|
|
58219
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
58220
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
58221
|
+
if (adapter === undefined) {
|
|
58222
|
+
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
58223
|
+
}
|
|
58224
|
+
}
|
|
58225
|
+
if (adapter) {
|
|
58226
|
+
break;
|
|
58227
|
+
}
|
|
58228
|
+
rejectedReasons[id || "#" + i2] = adapter;
|
|
58229
|
+
}
|
|
58230
|
+
if (!adapter) {
|
|
58231
|
+
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
58232
|
+
let s = length ? reasons.length > 1 ? `since :
|
|
58233
|
+
` + reasons.map(renderReason).join(`
|
|
58234
|
+
`) : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
58235
|
+
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
|
|
58236
|
+
}
|
|
58237
|
+
return adapter;
|
|
58238
|
+
},
|
|
58590
58239
|
adapters: knownAdapters
|
|
58591
58240
|
};
|
|
58592
58241
|
});
|
|
@@ -58607,8 +58256,8 @@ function dispatchRequest(config2) {
|
|
|
58607
58256
|
if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
|
|
58608
58257
|
config2.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
58609
58258
|
}
|
|
58610
|
-
const
|
|
58611
|
-
return
|
|
58259
|
+
const adapter = adapters_default.getAdapter(config2.adapter || defaults_default.adapter);
|
|
58260
|
+
return adapter(config2).then(function onAdapterResolution(response) {
|
|
58612
58261
|
throwIfCancellationRequested(config2);
|
|
58613
58262
|
response.data = transformData.call(config2, config2.transformResponse, response);
|
|
58614
58263
|
response.headers = AxiosHeaders_default.from(response.headers);
|
|
@@ -58695,7 +58344,7 @@ var init_validator = __esm(() => {
|
|
|
58695
58344
|
// node_modules/axios/lib/core/Axios.js
|
|
58696
58345
|
class Axios {
|
|
58697
58346
|
constructor(instanceConfig) {
|
|
58698
|
-
this.defaults = instanceConfig
|
|
58347
|
+
this.defaults = instanceConfig;
|
|
58699
58348
|
this.interceptors = {
|
|
58700
58349
|
request: new InterceptorManager_default,
|
|
58701
58350
|
response: new InterceptorManager_default
|
|
@@ -58734,8 +58383,7 @@ class Axios {
|
|
|
58734
58383
|
validator_default.assertOptions(transitional2, {
|
|
58735
58384
|
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
58736
58385
|
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
58737
|
-
clarifyTimeoutError: validators2.transitional(validators2.boolean)
|
|
58738
|
-
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
58386
|
+
clarifyTimeoutError: validators2.transitional(validators2.boolean)
|
|
58739
58387
|
}, false);
|
|
58740
58388
|
}
|
|
58741
58389
|
if (paramsSerializer != null) {
|
|
@@ -58750,11 +58398,6 @@ class Axios {
|
|
|
58750
58398
|
}, true);
|
|
58751
58399
|
}
|
|
58752
58400
|
}
|
|
58753
|
-
if (config2.allowAbsoluteUrls !== undefined) {} else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
58754
|
-
config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
58755
|
-
} else {
|
|
58756
|
-
config2.allowAbsoluteUrls = true;
|
|
58757
|
-
}
|
|
58758
58401
|
validator_default.assertOptions(config2, {
|
|
58759
58402
|
baseUrl: validators2.spelling("baseURL"),
|
|
58760
58403
|
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
@@ -58772,13 +58415,7 @@ class Axios {
|
|
|
58772
58415
|
return;
|
|
58773
58416
|
}
|
|
58774
58417
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
58775
|
-
|
|
58776
|
-
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
58777
|
-
if (legacyInterceptorReqResOrdering) {
|
|
58778
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
58779
|
-
} else {
|
|
58780
|
-
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
58781
|
-
}
|
|
58418
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
58782
58419
|
});
|
|
58783
58420
|
const responseInterceptorChain = [];
|
|
58784
58421
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -58789,8 +58426,8 @@ class Axios {
|
|
|
58789
58426
|
let len;
|
|
58790
58427
|
if (!synchronousRequestInterceptors) {
|
|
58791
58428
|
const chain = [dispatchRequest.bind(this), undefined];
|
|
58792
|
-
chain.unshift(
|
|
58793
|
-
chain.push(
|
|
58429
|
+
chain.unshift.apply(chain, requestInterceptorChain);
|
|
58430
|
+
chain.push.apply(chain, responseInterceptorChain);
|
|
58794
58431
|
len = chain.length;
|
|
58795
58432
|
promise2 = Promise.resolve(config2);
|
|
58796
58433
|
while (i2 < len) {
|
|
@@ -58800,6 +58437,7 @@ class Axios {
|
|
|
58800
58437
|
}
|
|
58801
58438
|
len = requestInterceptorChain.length;
|
|
58802
58439
|
let newConfig = config2;
|
|
58440
|
+
i2 = 0;
|
|
58803
58441
|
while (i2 < len) {
|
|
58804
58442
|
const onFulfilled = requestInterceptorChain[i2++];
|
|
58805
58443
|
const onRejected = requestInterceptorChain[i2++];
|
|
@@ -58824,7 +58462,7 @@ class Axios {
|
|
|
58824
58462
|
}
|
|
58825
58463
|
getUri(config2) {
|
|
58826
58464
|
config2 = mergeConfig(this.defaults, config2);
|
|
58827
|
-
const fullPath = buildFullPath(config2.baseURL, config2.url
|
|
58465
|
+
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
58828
58466
|
return buildURL(fullPath, config2.params, config2.paramsSerializer);
|
|
58829
58467
|
}
|
|
58830
58468
|
}
|
|
@@ -58838,7 +58476,6 @@ var init_Axios = __esm(() => {
|
|
|
58838
58476
|
init_buildFullPath();
|
|
58839
58477
|
init_validator();
|
|
58840
58478
|
init_AxiosHeaders();
|
|
58841
|
-
init_transitional();
|
|
58842
58479
|
validators2 = validator_default.validators;
|
|
58843
58480
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
58844
58481
|
Axios.prototype[method] = function(url3, config2) {
|
|
@@ -59039,13 +58676,7 @@ var init_HttpStatusCode = __esm(() => {
|
|
|
59039
58676
|
InsufficientStorage: 507,
|
|
59040
58677
|
LoopDetected: 508,
|
|
59041
58678
|
NotExtended: 510,
|
|
59042
|
-
NetworkAuthenticationRequired: 511
|
|
59043
|
-
WebServerIsDown: 521,
|
|
59044
|
-
ConnectionTimedOut: 522,
|
|
59045
|
-
OriginIsUnreachable: 523,
|
|
59046
|
-
TimeoutOccurred: 524,
|
|
59047
|
-
SslHandshakeFailed: 525,
|
|
59048
|
-
InvalidSslCertificate: 526
|
|
58679
|
+
NetworkAuthenticationRequired: 511
|
|
59049
58680
|
};
|
|
59050
58681
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
59051
58682
|
HttpStatusCode[value] = key;
|
|
@@ -59110,7 +58741,7 @@ __export(exports_axios, {
|
|
|
59110
58741
|
mergeConfig: () => mergeConfig2,
|
|
59111
58742
|
isCancel: () => isCancel2,
|
|
59112
58743
|
isAxiosError: () => isAxiosError2,
|
|
59113
|
-
getAdapter: () =>
|
|
58744
|
+
getAdapter: () => getAdapter,
|
|
59114
58745
|
formToJSON: () => formToJSON,
|
|
59115
58746
|
default: () => axios_default,
|
|
59116
58747
|
all: () => all2,
|
|
@@ -59123,7 +58754,7 @@ __export(exports_axios, {
|
|
|
59123
58754
|
AxiosError: () => AxiosError2,
|
|
59124
58755
|
Axios: () => Axios2
|
|
59125
58756
|
});
|
|
59126
|
-
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION3, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON,
|
|
58757
|
+
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION3, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter, mergeConfig2;
|
|
59127
58758
|
var init_axios2 = __esm(() => {
|
|
59128
58759
|
init_axios();
|
|
59129
58760
|
({
|
|
@@ -59141,7 +58772,7 @@ var init_axios2 = __esm(() => {
|
|
|
59141
58772
|
AxiosHeaders: AxiosHeaders2,
|
|
59142
58773
|
HttpStatusCode: HttpStatusCode2,
|
|
59143
58774
|
formToJSON,
|
|
59144
|
-
getAdapter
|
|
58775
|
+
getAdapter,
|
|
59145
58776
|
mergeConfig: mergeConfig2
|
|
59146
58777
|
} = axios_default);
|
|
59147
58778
|
});
|
|
@@ -61897,13 +61528,13 @@ var init_helpers = () => {};
|
|
|
61897
61528
|
|
|
61898
61529
|
// node_modules/agent-base/dist/index.js
|
|
61899
61530
|
import * as net from "net";
|
|
61900
|
-
import * as
|
|
61531
|
+
import * as http2 from "http";
|
|
61901
61532
|
import { Agent as HttpsAgent } from "https";
|
|
61902
61533
|
var INTERNAL, Agent2;
|
|
61903
61534
|
var init_dist = __esm(() => {
|
|
61904
61535
|
init_helpers();
|
|
61905
61536
|
INTERNAL = Symbol("AgentBaseInternalState");
|
|
61906
|
-
Agent2 = class Agent2 extends
|
|
61537
|
+
Agent2 = class Agent2 extends http2.Agent {
|
|
61907
61538
|
constructor(opts) {
|
|
61908
61539
|
super(opts);
|
|
61909
61540
|
this[INTERNAL] = {};
|
|
@@ -61965,7 +61596,7 @@ var init_dist = __esm(() => {
|
|
|
61965
61596
|
const fakeSocket = this.incrementSockets(name);
|
|
61966
61597
|
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
|
61967
61598
|
this.decrementSockets(name, fakeSocket);
|
|
61968
|
-
if (socket instanceof
|
|
61599
|
+
if (socket instanceof http2.Agent) {
|
|
61969
61600
|
try {
|
|
61970
61601
|
return socket.addRequest(req, connectOpts);
|
|
61971
61602
|
} catch (err) {
|
|
@@ -63157,7 +62788,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63157
62788
|
return new BodyAsyncIterable(body);
|
|
63158
62789
|
} else if (body && isFormDataLike(body)) {
|
|
63159
62790
|
return body;
|
|
63160
|
-
} else if (body && typeof body !== "string" && !ArrayBuffer.isView(body) &&
|
|
62791
|
+
} else if (body && typeof body !== "string" && !ArrayBuffer.isView(body) && isIterable(body)) {
|
|
63161
62792
|
return new BodyAsyncIterable(body);
|
|
63162
62793
|
} else {
|
|
63163
62794
|
return body;
|
|
@@ -63279,13 +62910,13 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63279
62910
|
function isAsyncIterable2(obj) {
|
|
63280
62911
|
return !!(obj != null && typeof obj[Symbol.asyncIterator] === "function");
|
|
63281
62912
|
}
|
|
63282
|
-
function
|
|
62913
|
+
function isIterable(obj) {
|
|
63283
62914
|
return !!(obj != null && (typeof obj[Symbol.iterator] === "function" || typeof obj[Symbol.asyncIterator] === "function"));
|
|
63284
62915
|
}
|
|
63285
62916
|
function hasSafeIterator(obj) {
|
|
63286
|
-
const
|
|
62917
|
+
const prototype3 = Object.getPrototypeOf(obj);
|
|
63287
62918
|
const ownIterator = Object.prototype.hasOwnProperty.call(obj, Symbol.iterator);
|
|
63288
|
-
return ownIterator ||
|
|
62919
|
+
return ownIterator || prototype3 != null && prototype3 !== Object.prototype && typeof obj[Symbol.iterator] === "function";
|
|
63289
62920
|
}
|
|
63290
62921
|
function bodyLength(body) {
|
|
63291
62922
|
if (body == null) {
|
|
@@ -63437,13 +63068,13 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63437
63068
|
};
|
|
63438
63069
|
}
|
|
63439
63070
|
function ReadableStreamFrom2(iterable) {
|
|
63440
|
-
let
|
|
63071
|
+
let iterator;
|
|
63441
63072
|
return new ReadableStream({
|
|
63442
63073
|
start() {
|
|
63443
|
-
|
|
63074
|
+
iterator = iterable[Symbol.asyncIterator]();
|
|
63444
63075
|
},
|
|
63445
63076
|
pull(controller) {
|
|
63446
|
-
return
|
|
63077
|
+
return iterator.next().then(({ done, value }) => {
|
|
63447
63078
|
if (done) {
|
|
63448
63079
|
return queueMicrotask(() => {
|
|
63449
63080
|
controller.close();
|
|
@@ -63460,7 +63091,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63460
63091
|
});
|
|
63461
63092
|
},
|
|
63462
63093
|
cancel() {
|
|
63463
|
-
return
|
|
63094
|
+
return iterator.return();
|
|
63464
63095
|
},
|
|
63465
63096
|
type: "bytes"
|
|
63466
63097
|
});
|
|
@@ -63876,7 +63507,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63876
63507
|
parseURL,
|
|
63877
63508
|
getServerName,
|
|
63878
63509
|
isStream: isStream3,
|
|
63879
|
-
isIterable
|
|
63510
|
+
isIterable,
|
|
63880
63511
|
hasSafeIterator,
|
|
63881
63512
|
isAsyncIterable: isAsyncIterable2,
|
|
63882
63513
|
isDestroyed,
|
|
@@ -64102,7 +63733,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
64102
63733
|
destroy,
|
|
64103
63734
|
isBuffer: isBuffer3,
|
|
64104
63735
|
isFormDataLike,
|
|
64105
|
-
isIterable
|
|
63736
|
+
isIterable,
|
|
64106
63737
|
hasSafeIterator,
|
|
64107
63738
|
isBlobLike: isBlobLike2,
|
|
64108
63739
|
serializePathWithQuery,
|
|
@@ -64206,7 +63837,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
64206
63837
|
this.body = body.byteLength ? Buffer.from(body) : null;
|
|
64207
63838
|
} else if (typeof body === "string") {
|
|
64208
63839
|
this.body = body.length ? Buffer.from(body) : null;
|
|
64209
|
-
} else if (isFormDataLike(body) ||
|
|
63840
|
+
} else if (isFormDataLike(body) || isIterable(body) || isBlobLike2(body)) {
|
|
64210
63841
|
this.body = body;
|
|
64211
63842
|
} else {
|
|
64212
63843
|
throw new InvalidArgumentError("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");
|
|
@@ -67982,9 +67613,9 @@ ${normalizeLinefeeds(value)}\r
|
|
|
67982
67613
|
if (action != null) {
|
|
67983
67614
|
(async () => {
|
|
67984
67615
|
const result = action();
|
|
67985
|
-
const
|
|
67986
|
-
if (
|
|
67987
|
-
for await (const bytes of
|
|
67616
|
+
const iterator = result?.[Symbol.asyncIterator]?.();
|
|
67617
|
+
if (iterator) {
|
|
67618
|
+
for await (const bytes of iterator) {
|
|
67988
67619
|
if (isErrored(stream4))
|
|
67989
67620
|
break;
|
|
67990
67621
|
if (bytes.length) {
|
|
@@ -68072,8 +67703,8 @@ ${normalizeLinefeeds(value)}\r
|
|
|
68072
67703
|
};
|
|
68073
67704
|
return methods;
|
|
68074
67705
|
}
|
|
68075
|
-
function mixinBody(
|
|
68076
|
-
Object.assign(
|
|
67706
|
+
function mixinBody(prototype3, getInternalState) {
|
|
67707
|
+
Object.assign(prototype3.prototype, bodyMixinMethods(prototype3, getInternalState));
|
|
68077
67708
|
}
|
|
68078
67709
|
function consumeBody(object2, convertBytesToJSValue, instance, getInternalState) {
|
|
68079
67710
|
try {
|
|
@@ -69823,7 +69454,7 @@ var require_client_h2 = __commonJS((exports, module) => {
|
|
|
69823
69454
|
var require_client = __commonJS((exports, module) => {
|
|
69824
69455
|
var assert3 = __require("node:assert");
|
|
69825
69456
|
var net3 = __require("node:net");
|
|
69826
|
-
var
|
|
69457
|
+
var http3 = __require("node:http");
|
|
69827
69458
|
var util3 = require_util();
|
|
69828
69459
|
var { ClientStats } = require_stats();
|
|
69829
69460
|
var { channels } = require_diagnostics();
|
|
@@ -69881,7 +69512,7 @@ var require_client = __commonJS((exports, module) => {
|
|
|
69881
69512
|
var connectH1 = require_client_h1();
|
|
69882
69513
|
var connectH2 = require_client_h2();
|
|
69883
69514
|
var kClosedResolve = Symbol("kClosedResolve");
|
|
69884
|
-
var getDefaultNodeMaxHeaderSize =
|
|
69515
|
+
var getDefaultNodeMaxHeaderSize = http3 && http3.maxHeaderSize && Number.isInteger(http3.maxHeaderSize) && http3.maxHeaderSize > 0 ? () => http3.maxHeaderSize : () => {
|
|
69885
69516
|
throw new InvalidArgumentError("http module not available or http.maxHeaderSize invalid");
|
|
69886
69517
|
};
|
|
69887
69518
|
var noop6 = () => {};
|
|
@@ -70585,7 +70216,7 @@ var require_pool = __commonJS((exports, module) => {
|
|
|
70585
70216
|
class Pool extends PoolBase {
|
|
70586
70217
|
constructor(origin2, {
|
|
70587
70218
|
connections,
|
|
70588
|
-
factory
|
|
70219
|
+
factory = defaultFactory,
|
|
70589
70220
|
connect: connect3,
|
|
70590
70221
|
connectTimeout,
|
|
70591
70222
|
tls: tls2,
|
|
@@ -70600,7 +70231,7 @@ var require_pool = __commonJS((exports, module) => {
|
|
|
70600
70231
|
if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
|
|
70601
70232
|
throw new InvalidArgumentError("invalid connections");
|
|
70602
70233
|
}
|
|
70603
|
-
if (typeof
|
|
70234
|
+
if (typeof factory !== "function") {
|
|
70604
70235
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70605
70236
|
}
|
|
70606
70237
|
if (connect3 != null && typeof connect3 !== "function" && typeof connect3 !== "object") {
|
|
@@ -70622,7 +70253,7 @@ var require_pool = __commonJS((exports, module) => {
|
|
|
70622
70253
|
this[kUrl] = util3.parseOrigin(origin2);
|
|
70623
70254
|
this[kOptions] = { ...util3.deepClone(options), connect: connect3, allowH2, clientTtl, socketPath };
|
|
70624
70255
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : undefined;
|
|
70625
|
-
this[kFactory] =
|
|
70256
|
+
this[kFactory] = factory;
|
|
70626
70257
|
this.on("connect", (origin3, targets) => {
|
|
70627
70258
|
if (clientTtl != null && clientTtl > 0) {
|
|
70628
70259
|
for (const target of targets) {
|
|
@@ -70698,8 +70329,8 @@ var require_balanced_pool = __commonJS((exports, module) => {
|
|
|
70698
70329
|
}
|
|
70699
70330
|
|
|
70700
70331
|
class BalancedPool extends PoolBase {
|
|
70701
|
-
constructor(upstreams = [], { factory
|
|
70702
|
-
if (typeof
|
|
70332
|
+
constructor(upstreams = [], { factory = defaultFactory, ...opts } = {}) {
|
|
70333
|
+
if (typeof factory !== "function") {
|
|
70703
70334
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70704
70335
|
}
|
|
70705
70336
|
super();
|
|
@@ -70712,7 +70343,7 @@ var require_balanced_pool = __commonJS((exports, module) => {
|
|
|
70712
70343
|
if (!Array.isArray(upstreams)) {
|
|
70713
70344
|
upstreams = [upstreams];
|
|
70714
70345
|
}
|
|
70715
|
-
this[kFactory] =
|
|
70346
|
+
this[kFactory] = factory;
|
|
70716
70347
|
for (const upstream of upstreams) {
|
|
70717
70348
|
this.addUpstream(upstream);
|
|
70718
70349
|
}
|
|
@@ -70833,7 +70464,7 @@ var require_round_robin_pool = __commonJS((exports, module) => {
|
|
|
70833
70464
|
class RoundRobinPool extends PoolBase {
|
|
70834
70465
|
constructor(origin2, {
|
|
70835
70466
|
connections,
|
|
70836
|
-
factory
|
|
70467
|
+
factory = defaultFactory,
|
|
70837
70468
|
connect: connect3,
|
|
70838
70469
|
connectTimeout,
|
|
70839
70470
|
tls: tls2,
|
|
@@ -70848,7 +70479,7 @@ var require_round_robin_pool = __commonJS((exports, module) => {
|
|
|
70848
70479
|
if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
|
|
70849
70480
|
throw new InvalidArgumentError("invalid connections");
|
|
70850
70481
|
}
|
|
70851
|
-
if (typeof
|
|
70482
|
+
if (typeof factory !== "function") {
|
|
70852
70483
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70853
70484
|
}
|
|
70854
70485
|
if (connect3 != null && typeof connect3 !== "function" && typeof connect3 !== "object") {
|
|
@@ -70870,7 +70501,7 @@ var require_round_robin_pool = __commonJS((exports, module) => {
|
|
|
70870
70501
|
this[kUrl] = util3.parseOrigin(origin2);
|
|
70871
70502
|
this[kOptions] = { ...util3.deepClone(options), connect: connect3, allowH2, clientTtl, socketPath };
|
|
70872
70503
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : undefined;
|
|
70873
|
-
this[kFactory] =
|
|
70504
|
+
this[kFactory] = factory;
|
|
70874
70505
|
this[kIndex] = -1;
|
|
70875
70506
|
this.on("connect", (origin3, targets) => {
|
|
70876
70507
|
if (clientTtl != null && clientTtl > 0) {
|
|
@@ -70940,8 +70571,8 @@ var require_agent = __commonJS((exports, module) => {
|
|
|
70940
70571
|
}
|
|
70941
70572
|
|
|
70942
70573
|
class Agent3 extends DispatcherBase {
|
|
70943
|
-
constructor({ factory
|
|
70944
|
-
if (typeof
|
|
70574
|
+
constructor({ factory = defaultFactory, maxOrigins = Infinity, connect: connect3, ...options } = {}) {
|
|
70575
|
+
if (typeof factory !== "function") {
|
|
70945
70576
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70946
70577
|
}
|
|
70947
70578
|
if (connect3 != null && typeof connect3 !== "function" && typeof connect3 !== "object") {
|
|
@@ -70955,7 +70586,7 @@ var require_agent = __commonJS((exports, module) => {
|
|
|
70955
70586
|
connect3 = { ...connect3 };
|
|
70956
70587
|
}
|
|
70957
70588
|
this[kOptions] = { ...util3.deepClone(options), maxOrigins, connect: connect3 };
|
|
70958
|
-
this[kFactory] =
|
|
70589
|
+
this[kFactory] = factory;
|
|
70959
70590
|
this[kClients] = new Map;
|
|
70960
70591
|
this[kOrigins] = new Set;
|
|
70961
70592
|
this[kOnDrain] = (origin2, targets) => {
|
|
@@ -71691,14 +71322,14 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71691
71322
|
|
|
71692
71323
|
class Http1ProxyWrapper extends DispatcherBase {
|
|
71693
71324
|
#client;
|
|
71694
|
-
constructor(proxyUrl, { headers = {}, connect: connect3, factory
|
|
71325
|
+
constructor(proxyUrl, { headers = {}, connect: connect3, factory }) {
|
|
71695
71326
|
if (!proxyUrl) {
|
|
71696
71327
|
throw new InvalidArgumentError("Proxy URL is mandatory");
|
|
71697
71328
|
}
|
|
71698
71329
|
super();
|
|
71699
71330
|
this[kProxyHeaders] = headers;
|
|
71700
|
-
if (
|
|
71701
|
-
this.#client =
|
|
71331
|
+
if (factory) {
|
|
71332
|
+
this.#client = factory(proxyUrl, { connect: connect3 });
|
|
71702
71333
|
} else {
|
|
71703
71334
|
this.#client = new Client(proxyUrl, { connect: connect3 });
|
|
71704
71335
|
}
|
|
@@ -71766,7 +71397,7 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71766
71397
|
const connect3 = buildConnector({ ...opts.proxyTls });
|
|
71767
71398
|
this[kConnectEndpoint] = buildConnector({ ...opts.requestTls });
|
|
71768
71399
|
const agentFactory = opts.factory || defaultAgentFactory;
|
|
71769
|
-
const
|
|
71400
|
+
const factory = (origin3, options) => {
|
|
71770
71401
|
const { protocol: protocol2 } = new URL(origin3);
|
|
71771
71402
|
if (this[kProxy].protocol === "socks5:" || this[kProxy].protocol === "socks:") {
|
|
71772
71403
|
return new Socks5ProxyAgent(this[kProxy].uri, {
|
|
@@ -71794,7 +71425,7 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71794
71425
|
}
|
|
71795
71426
|
this[kAgent] = new Agent3({
|
|
71796
71427
|
...opts,
|
|
71797
|
-
factory
|
|
71428
|
+
factory,
|
|
71798
71429
|
connect: async (opts2, callback) => {
|
|
71799
71430
|
if (!this[kClient]) {
|
|
71800
71431
|
callback(new InvalidArgumentError("Cannot establish tunnel connection without a proxy client"));
|
|
@@ -71911,7 +71542,7 @@ var require_env_http_proxy_agent = __commonJS((exports, module) => {
|
|
|
71911
71542
|
var { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = require_symbols();
|
|
71912
71543
|
var ProxyAgent = require_proxy_agent();
|
|
71913
71544
|
var Agent3 = require_agent();
|
|
71914
|
-
var
|
|
71545
|
+
var DEFAULT_PORTS = {
|
|
71915
71546
|
"http:": 80,
|
|
71916
71547
|
"https:": 443
|
|
71917
71548
|
};
|
|
@@ -71961,7 +71592,7 @@ var require_env_http_proxy_agent = __commonJS((exports, module) => {
|
|
|
71961
71592
|
#getProxyAgentForUrl(url3) {
|
|
71962
71593
|
let { protocol, host: hostname3, port } = url3;
|
|
71963
71594
|
hostname3 = hostname3.replace(/:\d*$/, "").toLowerCase();
|
|
71964
|
-
port = Number.parseInt(port, 10) ||
|
|
71595
|
+
port = Number.parseInt(port, 10) || DEFAULT_PORTS[protocol] || 0;
|
|
71965
71596
|
if (!this.#shouldProxy(hostname3, port)) {
|
|
71966
71597
|
return this[kNoProxyAgent];
|
|
71967
71598
|
}
|
|
@@ -72906,7 +72537,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72906
72537
|
function noop6() {}
|
|
72907
72538
|
|
|
72908
72539
|
class StreamHandler extends AsyncResource {
|
|
72909
|
-
constructor(opts,
|
|
72540
|
+
constructor(opts, factory, callback) {
|
|
72910
72541
|
if (!opts || typeof opts !== "object") {
|
|
72911
72542
|
throw new InvalidArgumentError("invalid opts");
|
|
72912
72543
|
}
|
|
@@ -72915,7 +72546,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72915
72546
|
if (typeof callback !== "function") {
|
|
72916
72547
|
throw new InvalidArgumentError("invalid callback");
|
|
72917
72548
|
}
|
|
72918
|
-
if (typeof
|
|
72549
|
+
if (typeof factory !== "function") {
|
|
72919
72550
|
throw new InvalidArgumentError("invalid factory");
|
|
72920
72551
|
}
|
|
72921
72552
|
if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
|
|
@@ -72936,7 +72567,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72936
72567
|
}
|
|
72937
72568
|
this.responseHeaders = responseHeaders || null;
|
|
72938
72569
|
this.opaque = opaque || null;
|
|
72939
|
-
this.factory =
|
|
72570
|
+
this.factory = factory;
|
|
72940
72571
|
this.callback = callback;
|
|
72941
72572
|
this.res = null;
|
|
72942
72573
|
this.abort = null;
|
|
@@ -72961,7 +72592,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72961
72592
|
this.context = context;
|
|
72962
72593
|
}
|
|
72963
72594
|
onHeaders(statusCode, rawHeaders, resume2, statusMessage) {
|
|
72964
|
-
const { factory
|
|
72595
|
+
const { factory, opaque, context, responseHeaders } = this;
|
|
72965
72596
|
const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
|
|
72966
72597
|
if (statusCode < 200) {
|
|
72967
72598
|
if (this.onInfo) {
|
|
@@ -72970,10 +72601,10 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72970
72601
|
return;
|
|
72971
72602
|
}
|
|
72972
72603
|
this.factory = null;
|
|
72973
|
-
if (
|
|
72604
|
+
if (factory === null) {
|
|
72974
72605
|
return;
|
|
72975
72606
|
}
|
|
72976
|
-
const res = this.runInAsyncScope(
|
|
72607
|
+
const res = this.runInAsyncScope(factory, null, {
|
|
72977
72608
|
statusCode,
|
|
72978
72609
|
headers,
|
|
72979
72610
|
opaque,
|
|
@@ -73031,16 +72662,16 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
73031
72662
|
}
|
|
73032
72663
|
}
|
|
73033
72664
|
}
|
|
73034
|
-
function stream4(opts,
|
|
72665
|
+
function stream4(opts, factory, callback) {
|
|
73035
72666
|
if (callback === undefined) {
|
|
73036
72667
|
return new Promise((resolve11, reject) => {
|
|
73037
|
-
stream4.call(this, opts,
|
|
72668
|
+
stream4.call(this, opts, factory, (err, data) => {
|
|
73038
72669
|
return err ? reject(err) : resolve11(data);
|
|
73039
72670
|
});
|
|
73040
72671
|
});
|
|
73041
72672
|
}
|
|
73042
72673
|
try {
|
|
73043
|
-
const handler = new StreamHandler(opts,
|
|
72674
|
+
const handler = new StreamHandler(opts, factory, callback);
|
|
73044
72675
|
this.dispatch(opts, handler);
|
|
73045
72676
|
} catch (err) {
|
|
73046
72677
|
if (typeof callback !== "function") {
|
|
@@ -74540,8 +74171,8 @@ var require_snapshot_utils = __commonJS((exports, module) => {
|
|
|
74540
74171
|
match: new Set(matchHeaders.map((header) => caseSensitive ? header : header.toLowerCase()))
|
|
74541
74172
|
};
|
|
74542
74173
|
}
|
|
74543
|
-
var
|
|
74544
|
-
var hashId =
|
|
74174
|
+
var crypto3 = runtimeFeatures.has("crypto") ? __require("node:crypto") : null;
|
|
74175
|
+
var hashId = crypto3?.hash ? (value) => crypto3.hash("sha256", value, "base64url") : (value) => Buffer.from(value).toString("base64url");
|
|
74545
74176
|
function isUndiciHeaders(headers) {
|
|
74546
74177
|
return Array.isArray(headers) && (headers.length & 1) === 0;
|
|
74547
74178
|
}
|
|
@@ -75551,9 +75182,9 @@ var require_dns = __commonJS((exports, module) => {
|
|
|
75551
75182
|
var { InvalidArgumentError, InformationalError } = require_errors();
|
|
75552
75183
|
var maxInt = Math.pow(2, 31) - 1;
|
|
75553
75184
|
function hasSafeIterator(headers) {
|
|
75554
|
-
const
|
|
75185
|
+
const prototype3 = Object.getPrototypeOf(headers);
|
|
75555
75186
|
const ownIterator = Object.prototype.hasOwnProperty.call(headers, Symbol.iterator);
|
|
75556
|
-
return ownIterator ||
|
|
75187
|
+
return ownIterator || prototype3 != null && prototype3 !== Object.prototype && typeof headers[Symbol.iterator] === "function";
|
|
75557
75188
|
}
|
|
75558
75189
|
function isHostHeader(key) {
|
|
75559
75190
|
return typeof key === "string" && key.toLowerCase() === "host";
|
|
@@ -78508,12 +78139,12 @@ var require_headers = __commonJS((exports, module) => {
|
|
|
78508
78139
|
if (size === 0) {
|
|
78509
78140
|
return array2;
|
|
78510
78141
|
}
|
|
78511
|
-
const
|
|
78512
|
-
const firstValue =
|
|
78142
|
+
const iterator = this.headersMap[Symbol.iterator]();
|
|
78143
|
+
const firstValue = iterator.next().value;
|
|
78513
78144
|
array2[0] = [firstValue[0], firstValue[1].value];
|
|
78514
78145
|
assert3(firstValue[1].value !== null);
|
|
78515
78146
|
for (let i2 = 1, j = 0, right = 0, left = 0, pivot = 0, x2, value;i2 < size; ++i2) {
|
|
78516
|
-
value =
|
|
78147
|
+
value = iterator.next().value;
|
|
78517
78148
|
x2 = array2[i2] = [value[0], value[1].value];
|
|
78518
78149
|
assert3(x2[1] !== null);
|
|
78519
78150
|
left = 0;
|
|
@@ -78534,7 +78165,7 @@ var require_headers = __commonJS((exports, module) => {
|
|
|
78534
78165
|
array2[left] = x2;
|
|
78535
78166
|
}
|
|
78536
78167
|
}
|
|
78537
|
-
if (!
|
|
78168
|
+
if (!iterator.next().done) {
|
|
78538
78169
|
throw new TypeError("Unreachable");
|
|
78539
78170
|
}
|
|
78540
78171
|
return array2;
|
|
@@ -78693,14 +78324,14 @@ var require_headers = __commonJS((exports, module) => {
|
|
|
78693
78324
|
});
|
|
78694
78325
|
webidl.converters.HeadersInit = function(V, prefix, argument) {
|
|
78695
78326
|
if (webidl.util.Type(V) === webidl.util.Types.OBJECT) {
|
|
78696
|
-
const
|
|
78697
|
-
if (!util3.types.isProxy(V) &&
|
|
78327
|
+
const iterator = Reflect.get(V, Symbol.iterator);
|
|
78328
|
+
if (!util3.types.isProxy(V) && iterator === Headers2.prototype.entries) {
|
|
78698
78329
|
try {
|
|
78699
78330
|
return getHeadersList(V).entriesList;
|
|
78700
78331
|
} catch {}
|
|
78701
78332
|
}
|
|
78702
|
-
if (typeof
|
|
78703
|
-
return webidl.converters["sequence<sequence<ByteString>>"](V, prefix, argument,
|
|
78333
|
+
if (typeof iterator === "function") {
|
|
78334
|
+
return webidl.converters["sequence<sequence<ByteString>>"](V, prefix, argument, iterator.bind(V));
|
|
78704
78335
|
}
|
|
78705
78336
|
return webidl.converters["record<ByteString, ByteString>"](V, prefix, argument);
|
|
78706
78337
|
}
|
|
@@ -79745,10 +79376,10 @@ var require_subresource_integrity = __commonJS((exports, module) => {
|
|
|
79745
79376
|
var assert3 = __require("node:assert");
|
|
79746
79377
|
var { runtimeFeatures } = require_runtime_features();
|
|
79747
79378
|
var validSRIHashAlgorithmTokenSet = new Map([["sha256", 0], ["sha384", 1], ["sha512", 2]]);
|
|
79748
|
-
var
|
|
79379
|
+
var crypto3;
|
|
79749
79380
|
if (runtimeFeatures.has("crypto")) {
|
|
79750
|
-
|
|
79751
|
-
const cryptoHashes =
|
|
79381
|
+
crypto3 = __require("node:crypto");
|
|
79382
|
+
const cryptoHashes = crypto3.getHashes();
|
|
79752
79383
|
if (cryptoHashes.length === 0) {
|
|
79753
79384
|
validSRIHashAlgorithmTokenSet.clear();
|
|
79754
79385
|
}
|
|
@@ -79827,7 +79458,7 @@ var require_subresource_integrity = __commonJS((exports, module) => {
|
|
|
79827
79458
|
return result;
|
|
79828
79459
|
}
|
|
79829
79460
|
var applyAlgorithmToBytes = (algorithm, bytes) => {
|
|
79830
|
-
return
|
|
79461
|
+
return crypto3.hash(algorithm, bytes, "base64");
|
|
79831
79462
|
};
|
|
79832
79463
|
function caseSensitiveMatch(actualValue, expectedValue) {
|
|
79833
79464
|
let actualValueLength = actualValue.length;
|
|
@@ -80661,8 +80292,8 @@ var require_fetch = __commonJS((exports, module) => {
|
|
|
80661
80292
|
if (socket) {
|
|
80662
80293
|
response = makeResponse({ status, statusText, headersList, socket });
|
|
80663
80294
|
} else {
|
|
80664
|
-
const
|
|
80665
|
-
fetchParams.controller.next = () =>
|
|
80295
|
+
const iterator = body[Symbol.asyncIterator]();
|
|
80296
|
+
fetchParams.controller.next = () => iterator.next();
|
|
80666
80297
|
response = makeResponse({ status, statusText, headersList });
|
|
80667
80298
|
}
|
|
80668
80299
|
} catch (err) {
|
|
@@ -82515,7 +82146,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
82515
82146
|
var { WebsocketFrameSend } = require_frame();
|
|
82516
82147
|
var assert3 = __require("node:assert");
|
|
82517
82148
|
var { runtimeFeatures } = require_runtime_features();
|
|
82518
|
-
var
|
|
82149
|
+
var crypto3 = runtimeFeatures.has("crypto") ? __require("node:crypto") : null;
|
|
82519
82150
|
var warningEmitted = false;
|
|
82520
82151
|
function establishWebSocketConnection(url3, protocols, client, handler, options) {
|
|
82521
82152
|
const requestURL = url3;
|
|
@@ -82535,7 +82166,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
82535
82166
|
const headersList = getHeadersList(new Headers2(options.headers));
|
|
82536
82167
|
request.headersList = headersList;
|
|
82537
82168
|
}
|
|
82538
|
-
const keyValue =
|
|
82169
|
+
const keyValue = crypto3.randomBytes(16).toString("base64");
|
|
82539
82170
|
request.headersList.append("sec-websocket-key", keyValue, true);
|
|
82540
82171
|
request.headersList.append("sec-websocket-version", "13", true);
|
|
82541
82172
|
for (const protocol of protocols) {
|
|
@@ -82575,7 +82206,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
82575
82206
|
return;
|
|
82576
82207
|
}
|
|
82577
82208
|
const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
|
|
82578
|
-
const digest =
|
|
82209
|
+
const digest = crypto3.hash("sha1", keyValue + uid, "base64");
|
|
82579
82210
|
if (secWSAccept !== digest) {
|
|
82580
82211
|
failWebsocketConnection(handler, 1002, "Incorrect hash received in Sec-WebSocket-Accept header.");
|
|
82581
82212
|
return;
|
|
@@ -86197,8 +85828,8 @@ var require_dist_cjs9 = __commonJS((exports) => {
|
|
|
86197
85828
|
throw new propertyProvider.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
86198
85829
|
}
|
|
86199
85830
|
};
|
|
86200
|
-
var
|
|
86201
|
-
var fromStatic = (defaultValue) =>
|
|
85831
|
+
var isFunction3 = (func) => typeof func === "function";
|
|
85832
|
+
var fromStatic = (defaultValue) => isFunction3(defaultValue) ? async () => await defaultValue() : propertyProvider.fromStatic(defaultValue);
|
|
86202
85833
|
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
86203
85834
|
const { signingName, logger } = configuration;
|
|
86204
85835
|
const envOptions = { signingName, logger };
|
|
@@ -86236,9 +85867,9 @@ var require_dist_cjs10 = __commonJS((exports) => {
|
|
|
86236
85867
|
// node_modules/@smithy/url-parser/dist-cjs/index.js
|
|
86237
85868
|
var require_dist_cjs11 = __commonJS((exports) => {
|
|
86238
85869
|
var querystringParser = require_dist_cjs10();
|
|
86239
|
-
var
|
|
85870
|
+
var parseUrl = (url3) => {
|
|
86240
85871
|
if (typeof url3 === "string") {
|
|
86241
|
-
return
|
|
85872
|
+
return parseUrl(new URL(url3));
|
|
86242
85873
|
}
|
|
86243
85874
|
const { hostname: hostname3, pathname, port, protocol, search } = url3;
|
|
86244
85875
|
let query2;
|
|
@@ -86253,7 +85884,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
86253
85884
|
query: query2
|
|
86254
85885
|
};
|
|
86255
85886
|
};
|
|
86256
|
-
exports.parseUrl =
|
|
85887
|
+
exports.parseUrl = parseUrl;
|
|
86257
85888
|
});
|
|
86258
85889
|
|
|
86259
85890
|
// node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
|
|
@@ -86261,12 +85892,12 @@ var require_dist_cjs12 = __commonJS((exports) => {
|
|
|
86261
85892
|
var propertyProvider = require_dist_cjs6();
|
|
86262
85893
|
var url3 = __require("url");
|
|
86263
85894
|
var buffer = __require("buffer");
|
|
86264
|
-
var
|
|
85895
|
+
var http3 = __require("http");
|
|
86265
85896
|
var nodeConfigProvider = require_dist_cjs9();
|
|
86266
85897
|
var urlParser = require_dist_cjs11();
|
|
86267
85898
|
function httpRequest(options) {
|
|
86268
85899
|
return new Promise((resolve11, reject) => {
|
|
86269
|
-
const req =
|
|
85900
|
+
const req = http3.request({
|
|
86270
85901
|
method: "GET",
|
|
86271
85902
|
...options,
|
|
86272
85903
|
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
@@ -86634,16 +86265,16 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
86634
86265
|
var __addDisposableResource;
|
|
86635
86266
|
var __disposeResources;
|
|
86636
86267
|
var __rewriteRelativeImportExtension;
|
|
86637
|
-
(function(
|
|
86268
|
+
(function(factory) {
|
|
86638
86269
|
var root2 = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
86639
86270
|
if (typeof define === "function" && define.amd) {
|
|
86640
86271
|
define("tslib", ["exports"], function(exports2) {
|
|
86641
|
-
|
|
86272
|
+
factory(createExporter(root2, createExporter(exports2)));
|
|
86642
86273
|
});
|
|
86643
86274
|
} else if (typeof module === "object" && typeof exports === "object") {
|
|
86644
|
-
|
|
86275
|
+
factory(createExporter(root2, createExporter(exports)));
|
|
86645
86276
|
} else {
|
|
86646
|
-
|
|
86277
|
+
factory(createExporter(root2));
|
|
86647
86278
|
}
|
|
86648
86279
|
function createExporter(exports2, previous) {
|
|
86649
86280
|
if (exports2 !== root2) {
|
|
@@ -93393,7 +93024,7 @@ var require_dist_cjs30 = __commonJS((exports) => {
|
|
|
93393
93024
|
}, value);
|
|
93394
93025
|
var isSet2 = (value) => value != null;
|
|
93395
93026
|
var not = (value) => !value;
|
|
93396
|
-
var
|
|
93027
|
+
var DEFAULT_PORTS = {
|
|
93397
93028
|
[types.EndpointURLScheme.HTTP]: 80,
|
|
93398
93029
|
[types.EndpointURLScheme.HTTPS]: 443
|
|
93399
93030
|
};
|
|
@@ -93428,8 +93059,8 @@ var require_dist_cjs30 = __commonJS((exports) => {
|
|
|
93428
93059
|
return null;
|
|
93429
93060
|
}
|
|
93430
93061
|
const isIp = isIpAddress(hostname3);
|
|
93431
|
-
const inputContainsDefaultPort = urlString.includes(`${host}:${
|
|
93432
|
-
const authority = `${host}${inputContainsDefaultPort ? `:${
|
|
93062
|
+
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
|
|
93063
|
+
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
|
93433
93064
|
return {
|
|
93434
93065
|
scheme,
|
|
93435
93066
|
authority,
|
|
@@ -95978,7 +95609,7 @@ var require_dist_cjs42 = __commonJS((exports) => {
|
|
|
95978
95609
|
var utilBufferFrom = require_dist_cjs15();
|
|
95979
95610
|
var utilUtf8 = require_dist_cjs16();
|
|
95980
95611
|
var buffer = __require("buffer");
|
|
95981
|
-
var
|
|
95612
|
+
var crypto3 = __require("crypto");
|
|
95982
95613
|
|
|
95983
95614
|
class Hash2 {
|
|
95984
95615
|
algorithmIdentifier;
|
|
@@ -95996,7 +95627,7 @@ var require_dist_cjs42 = __commonJS((exports) => {
|
|
|
95996
95627
|
return Promise.resolve(this.hash.digest());
|
|
95997
95628
|
}
|
|
95998
95629
|
reset() {
|
|
95999
|
-
this.hash = this.secret ?
|
|
95630
|
+
this.hash = this.secret ? crypto3.createHmac(this.algorithmIdentifier, castSourceData(this.secret)) : crypto3.createHash(this.algorithmIdentifier);
|
|
96000
95631
|
}
|
|
96001
95632
|
}
|
|
96002
95633
|
function castSourceData(toCast, encoding) {
|
|
@@ -97616,7 +97247,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
97616
97247
|
const D2 = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, k = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true, infinity: "original" };
|
|
97617
97248
|
const F = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/, L2 = new Set(["push", "pop", "reset", "updateCurrent", "restore"]);
|
|
97618
97249
|
|
|
97619
|
-
class
|
|
97250
|
+
class G2 {
|
|
97620
97251
|
constructor(t2 = {}) {
|
|
97621
97252
|
this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [];
|
|
97622
97253
|
}
|
|
@@ -97871,7 +97502,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
97871
97502
|
if (i3 instanceof RegExp && i3.test(t3))
|
|
97872
97503
|
return true;
|
|
97873
97504
|
}
|
|
97874
|
-
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new
|
|
97505
|
+
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new G2, this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = false, this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
97875
97506
|
this.stopNodeExpressions = [];
|
|
97876
97507
|
for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
|
|
97877
97508
|
const e3 = this.options.stopNodes[t3];
|
|
@@ -98357,7 +97988,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
98357
97988
|
const i4 = e2.stopNodes[t3];
|
|
98358
97989
|
typeof i4 == "string" ? n3.push(new R2(i4)) : i4 instanceof R2 && n3.push(i4);
|
|
98359
97990
|
}
|
|
98360
|
-
return xt(t2, e2, i3, new
|
|
97991
|
+
return xt(t2, e2, i3, new G2, n3);
|
|
98361
97992
|
}
|
|
98362
97993
|
function xt(t2, e2, i3, n3, s2) {
|
|
98363
97994
|
let r2 = "", o3 = false;
|
|
@@ -98529,7 +98160,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
98529
98160
|
return mt(t2, this.options);
|
|
98530
98161
|
{
|
|
98531
98162
|
Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 });
|
|
98532
|
-
const e2 = new
|
|
98163
|
+
const e2 = new G2;
|
|
98533
98164
|
return this.j2x(t2, 0, e2).val;
|
|
98534
98165
|
}
|
|
98535
98166
|
}, St.prototype.j2x = function(t2, e2, i3) {
|
|
@@ -103578,7 +103209,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103578
103209
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103579
103210
|
exports.ruleSet = undefined;
|
|
103580
103211
|
var F = "required";
|
|
103581
|
-
var
|
|
103212
|
+
var G2 = "type";
|
|
103582
103213
|
var H2 = "fn";
|
|
103583
103214
|
var I2 = "argv";
|
|
103584
103215
|
var J = "ref";
|
|
@@ -103594,8 +103225,8 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103594
103225
|
var j = "tree";
|
|
103595
103226
|
var k = "error";
|
|
103596
103227
|
var l = "getAttr";
|
|
103597
|
-
var m = { [F]: false, [
|
|
103598
|
-
var n2 = { [F]: true, default: false, [
|
|
103228
|
+
var m = { [F]: false, [G2]: "string" };
|
|
103229
|
+
var n2 = { [F]: true, default: false, [G2]: "boolean" };
|
|
103599
103230
|
var o2 = { [J]: "Endpoint" };
|
|
103600
103231
|
var p = { [H2]: "isSet", [I2]: [{ [J]: "Region" }] };
|
|
103601
103232
|
var q = { [J]: "Region" };
|
|
@@ -103608,7 +103239,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103608
103239
|
headers: {}
|
|
103609
103240
|
};
|
|
103610
103241
|
var v = {};
|
|
103611
|
-
var w = { conditions: [{ [H2]: d, [I2]: [q, "aws-global"] }], [h2]: u2, [
|
|
103242
|
+
var w = { conditions: [{ [H2]: d, [I2]: [q, "aws-global"] }], [h2]: u2, [G2]: h2 };
|
|
103612
103243
|
var x2 = { [H2]: c5, [I2]: [s, true] };
|
|
103613
103244
|
var y2 = { [H2]: c5, [I2]: [t, true] };
|
|
103614
103245
|
var z3 = { [H2]: l, [I2]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
|
|
@@ -103631,41 +103262,41 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103631
103262
|
{ [H2]: c5, [I2]: [t, a2] }
|
|
103632
103263
|
],
|
|
103633
103264
|
rules: [
|
|
103634
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-northeast-1"] }], endpoint: u2, [
|
|
103635
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-south-1"] }], endpoint: u2, [
|
|
103636
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-1"] }], endpoint: u2, [
|
|
103637
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-2"] }], endpoint: u2, [
|
|
103265
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-northeast-1"] }], endpoint: u2, [G2]: h2 },
|
|
103266
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-south-1"] }], endpoint: u2, [G2]: h2 },
|
|
103267
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-1"] }], endpoint: u2, [G2]: h2 },
|
|
103268
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-2"] }], endpoint: u2, [G2]: h2 },
|
|
103638
103269
|
w,
|
|
103639
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ca-central-1"] }], endpoint: u2, [
|
|
103640
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-central-1"] }], endpoint: u2, [
|
|
103641
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-north-1"] }], endpoint: u2, [
|
|
103642
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-1"] }], endpoint: u2, [
|
|
103643
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-2"] }], endpoint: u2, [
|
|
103644
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-3"] }], endpoint: u2, [
|
|
103645
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "sa-east-1"] }], endpoint: u2, [
|
|
103646
|
-
{ conditions: [{ [H2]: d, [I2]: [q, g] }], endpoint: u2, [
|
|
103647
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "us-east-2"] }], endpoint: u2, [
|
|
103648
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-1"] }], endpoint: u2, [
|
|
103649
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-2"] }], endpoint: u2, [
|
|
103270
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ca-central-1"] }], endpoint: u2, [G2]: h2 },
|
|
103271
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-central-1"] }], endpoint: u2, [G2]: h2 },
|
|
103272
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-north-1"] }], endpoint: u2, [G2]: h2 },
|
|
103273
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-1"] }], endpoint: u2, [G2]: h2 },
|
|
103274
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-2"] }], endpoint: u2, [G2]: h2 },
|
|
103275
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-3"] }], endpoint: u2, [G2]: h2 },
|
|
103276
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "sa-east-1"] }], endpoint: u2, [G2]: h2 },
|
|
103277
|
+
{ conditions: [{ [H2]: d, [I2]: [q, g] }], endpoint: u2, [G2]: h2 },
|
|
103278
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "us-east-2"] }], endpoint: u2, [G2]: h2 },
|
|
103279
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-1"] }], endpoint: u2, [G2]: h2 },
|
|
103280
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-2"] }], endpoint: u2, [G2]: h2 },
|
|
103650
103281
|
{
|
|
103651
103282
|
endpoint: {
|
|
103652
103283
|
url: i2,
|
|
103653
103284
|
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
|
|
103654
103285
|
headers: v
|
|
103655
103286
|
},
|
|
103656
|
-
[
|
|
103287
|
+
[G2]: h2
|
|
103657
103288
|
}
|
|
103658
103289
|
],
|
|
103659
|
-
[
|
|
103290
|
+
[G2]: j
|
|
103660
103291
|
},
|
|
103661
103292
|
{
|
|
103662
103293
|
conditions: C2,
|
|
103663
103294
|
rules: [
|
|
103664
|
-
{ conditions: D2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [
|
|
103665
|
-
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [
|
|
103666
|
-
{ endpoint: { url: o2, properties: v, headers: v }, [
|
|
103295
|
+
{ conditions: D2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G2]: k },
|
|
103296
|
+
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G2]: k },
|
|
103297
|
+
{ endpoint: { url: o2, properties: v, headers: v }, [G2]: h2 }
|
|
103667
103298
|
],
|
|
103668
|
-
[
|
|
103299
|
+
[G2]: j
|
|
103669
103300
|
},
|
|
103670
103301
|
{
|
|
103671
103302
|
conditions: [p],
|
|
@@ -103685,14 +103316,14 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103685
103316
|
properties: v,
|
|
103686
103317
|
headers: v
|
|
103687
103318
|
},
|
|
103688
|
-
[
|
|
103319
|
+
[G2]: h2
|
|
103689
103320
|
}
|
|
103690
103321
|
],
|
|
103691
|
-
[
|
|
103322
|
+
[G2]: j
|
|
103692
103323
|
},
|
|
103693
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [
|
|
103324
|
+
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G2]: k }
|
|
103694
103325
|
],
|
|
103695
|
-
[
|
|
103326
|
+
[G2]: j
|
|
103696
103327
|
},
|
|
103697
103328
|
{
|
|
103698
103329
|
conditions: D2,
|
|
@@ -103703,7 +103334,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103703
103334
|
{
|
|
103704
103335
|
conditions: [{ [H2]: d, [I2]: [{ [H2]: l, [I2]: [A, "name"] }, "aws-us-gov"] }],
|
|
103705
103336
|
endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
|
|
103706
|
-
[
|
|
103337
|
+
[G2]: h2
|
|
103707
103338
|
},
|
|
103708
103339
|
{
|
|
103709
103340
|
endpoint: {
|
|
@@ -103711,14 +103342,14 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103711
103342
|
properties: v,
|
|
103712
103343
|
headers: v
|
|
103713
103344
|
},
|
|
103714
|
-
[
|
|
103345
|
+
[G2]: h2
|
|
103715
103346
|
}
|
|
103716
103347
|
],
|
|
103717
|
-
[
|
|
103348
|
+
[G2]: j
|
|
103718
103349
|
},
|
|
103719
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", [
|
|
103350
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", [G2]: k }
|
|
103720
103351
|
],
|
|
103721
|
-
[
|
|
103352
|
+
[G2]: j
|
|
103722
103353
|
},
|
|
103723
103354
|
{
|
|
103724
103355
|
conditions: E,
|
|
@@ -103732,24 +103363,24 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103732
103363
|
properties: v,
|
|
103733
103364
|
headers: v
|
|
103734
103365
|
},
|
|
103735
|
-
[
|
|
103366
|
+
[G2]: h2
|
|
103736
103367
|
}
|
|
103737
103368
|
],
|
|
103738
|
-
[
|
|
103369
|
+
[G2]: j
|
|
103739
103370
|
},
|
|
103740
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", [
|
|
103371
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", [G2]: k }
|
|
103741
103372
|
],
|
|
103742
|
-
[
|
|
103373
|
+
[G2]: j
|
|
103743
103374
|
},
|
|
103744
103375
|
w,
|
|
103745
|
-
{ endpoint: { url: i2, properties: v, headers: v }, [
|
|
103376
|
+
{ endpoint: { url: i2, properties: v, headers: v }, [G2]: h2 }
|
|
103746
103377
|
],
|
|
103747
|
-
[
|
|
103378
|
+
[G2]: j
|
|
103748
103379
|
}
|
|
103749
103380
|
],
|
|
103750
|
-
[
|
|
103381
|
+
[G2]: j
|
|
103751
103382
|
},
|
|
103752
|
-
{ error: "Invalid Configuration: Missing Region", [
|
|
103383
|
+
{ error: "Invalid Configuration: Missing Region", [G2]: k }
|
|
103753
103384
|
]
|
|
103754
103385
|
};
|
|
103755
103386
|
exports.ruleSet = _data;
|
|
@@ -106334,7 +105965,7 @@ var require_dist_cjs61 = __commonJS((exports) => {
|
|
|
106334
105965
|
const currentMessageView = new DataView(currentMessage.buffer);
|
|
106335
105966
|
currentMessageView.setUint32(0, size, false);
|
|
106336
105967
|
};
|
|
106337
|
-
const
|
|
105968
|
+
const iterator = async function* () {
|
|
106338
105969
|
const sourceIterator = source[Symbol.asyncIterator]();
|
|
106339
105970
|
while (true) {
|
|
106340
105971
|
const { value, done } = await sourceIterator.next();
|
|
@@ -106380,7 +106011,7 @@ var require_dist_cjs61 = __commonJS((exports) => {
|
|
|
106380
106011
|
}
|
|
106381
106012
|
};
|
|
106382
106013
|
return {
|
|
106383
|
-
[Symbol.asyncIterator]:
|
|
106014
|
+
[Symbol.asyncIterator]: iterator
|
|
106384
106015
|
};
|
|
106385
106016
|
}
|
|
106386
106017
|
function getMessageUnmarshaller(deserializer, toUtf8) {
|
|
@@ -106460,10 +106091,10 @@ var require_dist_cjs62 = __commonJS((exports) => {
|
|
|
106460
106091
|
}
|
|
106461
106092
|
});
|
|
106462
106093
|
var iterableToReadableStream = (asyncIterable) => {
|
|
106463
|
-
const
|
|
106094
|
+
const iterator = asyncIterable[Symbol.asyncIterator]();
|
|
106464
106095
|
return new ReadableStream({
|
|
106465
106096
|
async pull(controller) {
|
|
106466
|
-
const { done, value } = await
|
|
106097
|
+
const { done, value } = await iterator.next();
|
|
106467
106098
|
if (done) {
|
|
106468
106099
|
return controller.close();
|
|
106469
106100
|
}
|
|
@@ -117484,7 +117115,7 @@ var package_default;
|
|
|
117484
117115
|
var init_package = __esm(() => {
|
|
117485
117116
|
package_default = {
|
|
117486
117117
|
name: "@funnycode/myclaude",
|
|
117487
|
-
version: "0.1.
|
|
117118
|
+
version: "0.1.115",
|
|
117488
117119
|
private: false,
|
|
117489
117120
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117121
|
license: "MIT",
|
|
@@ -117550,7 +117181,7 @@ var init_package = __esm(() => {
|
|
|
117550
117181
|
asciichart: "1.5.25",
|
|
117551
117182
|
"async-mutex": "^0.5.0",
|
|
117552
117183
|
"auto-bind": "5.0.1",
|
|
117553
|
-
axios: "1.
|
|
117184
|
+
axios: "1.7.9",
|
|
117554
117185
|
"bidi-js": "1.0.3",
|
|
117555
117186
|
chalk: "5.6.2",
|
|
117556
117187
|
chokidar: "5.0.0",
|
|
@@ -118009,7 +117640,7 @@ var require_ignore = __commonJS((exports, module) => {
|
|
|
118009
117640
|
return this._test(path12, this._testCache, true);
|
|
118010
117641
|
}
|
|
118011
117642
|
}
|
|
118012
|
-
var
|
|
117643
|
+
var factory = (options) => new Ignore(options);
|
|
118013
117644
|
var isPathValid = (path12) => checkPath(path12 && checkPath.convert(path12), path12, RETURN_FALSE);
|
|
118014
117645
|
var setupWindows = () => {
|
|
118015
117646
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
@@ -118020,8 +117651,8 @@ var require_ignore = __commonJS((exports, module) => {
|
|
|
118020
117651
|
if (typeof process !== "undefined" && process.platform === "win32") {
|
|
118021
117652
|
setupWindows();
|
|
118022
117653
|
}
|
|
118023
|
-
module.exports =
|
|
118024
|
-
|
|
117654
|
+
module.exports = factory;
|
|
117655
|
+
factory.default = factory;
|
|
118025
117656
|
module.exports.isPathValid = isPathValid;
|
|
118026
117657
|
define2(module.exports, Symbol.for("setupWindows"), setupWindows);
|
|
118027
117658
|
});
|
|
@@ -139742,10 +139373,10 @@ function setTerminalFocused(v) {
|
|
|
139742
139373
|
cb();
|
|
139743
139374
|
}
|
|
139744
139375
|
if (!v) {
|
|
139745
|
-
for (const resolve12 of
|
|
139376
|
+
for (const resolve12 of resolvers2) {
|
|
139746
139377
|
resolve12();
|
|
139747
139378
|
}
|
|
139748
|
-
|
|
139379
|
+
resolvers2.clear();
|
|
139749
139380
|
}
|
|
139750
139381
|
}
|
|
139751
139382
|
function getTerminalFocused() {
|
|
@@ -139760,9 +139391,9 @@ function subscribeTerminalFocus(cb) {
|
|
|
139760
139391
|
subscribers.delete(cb);
|
|
139761
139392
|
};
|
|
139762
139393
|
}
|
|
139763
|
-
var focusState = "unknown",
|
|
139394
|
+
var focusState = "unknown", resolvers2, subscribers;
|
|
139764
139395
|
var init_terminal_focus_state = __esm(() => {
|
|
139765
|
-
|
|
139396
|
+
resolvers2 = new Set;
|
|
139766
139397
|
subscribers = new Set;
|
|
139767
139398
|
});
|
|
139768
139399
|
|
|
@@ -141851,8 +141482,8 @@ function optimize(diff2) {
|
|
|
141851
141482
|
|
|
141852
141483
|
// node_modules/bidi-js/dist/bidi.js
|
|
141853
141484
|
var require_bidi = __commonJS((exports, module) => {
|
|
141854
|
-
(function(global3,
|
|
141855
|
-
typeof exports === "object" && typeof module !== "undefined" ? module.exports =
|
|
141485
|
+
(function(global3, factory) {
|
|
141486
|
+
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, global3.bidi_js = factory());
|
|
141856
141487
|
})(exports, function() {
|
|
141857
141488
|
function bidiFactory() {
|
|
141858
141489
|
var bidi = function(exports2) {
|
|
@@ -150100,7 +149731,7 @@ async function initialize() {
|
|
|
150100
149731
|
return true;
|
|
150101
149732
|
},
|
|
150102
149733
|
ignorePermissionErrors: true,
|
|
150103
|
-
usePolling:
|
|
149734
|
+
usePolling: USE_POLLING,
|
|
150104
149735
|
atomic: true
|
|
150105
149736
|
});
|
|
150106
149737
|
watcher.on("change", handleChange);
|
|
@@ -150296,7 +149927,7 @@ function resetForTesting(overrides) {
|
|
|
150296
149927
|
watcher = null;
|
|
150297
149928
|
return w ? w.close() : Promise.resolve();
|
|
150298
149929
|
}
|
|
150299
|
-
var FILE_STABILITY_THRESHOLD_MS = 1000, FILE_STABILITY_POLL_INTERVAL_MS = 500, INTERNAL_WRITE_WINDOW_MS = 5000, MDM_POLL_INTERVAL_MS, DELETION_GRACE_MS, watcher = null, mdmPollTimer = null, lastMdmSnapshot = null, initialized = false, disposed = false, pendingDeletions, settingsChanged, testOverrides = null, subscribe, settingsChangeDetector;
|
|
149930
|
+
var USE_POLLING, FILE_STABILITY_THRESHOLD_MS = 1000, FILE_STABILITY_POLL_INTERVAL_MS = 500, INTERNAL_WRITE_WINDOW_MS = 5000, MDM_POLL_INTERVAL_MS, DELETION_GRACE_MS, watcher = null, mdmPollTimer = null, lastMdmSnapshot = null, initialized = false, disposed = false, pendingDeletions, settingsChanged, testOverrides = null, subscribe, settingsChangeDetector;
|
|
150300
149931
|
var init_changeDetector = __esm(() => {
|
|
150301
149932
|
init_chokidar();
|
|
150302
149933
|
init_state();
|
|
@@ -150311,6 +149942,7 @@ var init_changeDetector = __esm(() => {
|
|
|
150311
149942
|
init_settings();
|
|
150312
149943
|
init_settings2();
|
|
150313
149944
|
init_settingsCache();
|
|
149945
|
+
USE_POLLING = typeof Bun !== "undefined" || process.platform === "win32";
|
|
150314
149946
|
MDM_POLL_INTERVAL_MS = 30 * 60 * 1000;
|
|
150315
149947
|
DELETION_GRACE_MS = FILE_STABILITY_THRESHOLD_MS + FILE_STABILITY_POLL_INTERVAL_MS + 200;
|
|
150316
149948
|
pendingDeletions = new Map;
|
|
@@ -159536,10 +159168,10 @@ import { BlockList, connect as netConnect, isIP as isIP2 } from "node:net";
|
|
|
159536
159168
|
import { connect as tlsConnect } from "node:tls";
|
|
159537
159169
|
import { URL as URL3 } from "node:url";
|
|
159538
159170
|
function resolveParentProxy(cfg) {
|
|
159539
|
-
const
|
|
159540
|
-
const https2 = cfg?.https ?? process.env.HTTPS_PROXY ?? process.env.https_proxy ??
|
|
159171
|
+
const http3 = cfg?.http ?? process.env.HTTP_PROXY ?? process.env.http_proxy ?? undefined;
|
|
159172
|
+
const https2 = cfg?.https ?? process.env.HTTPS_PROXY ?? process.env.https_proxy ?? http3;
|
|
159541
159173
|
const noProxyRaw = cfg?.noProxy ?? process.env.NO_PROXY ?? process.env.no_proxy ?? "";
|
|
159542
|
-
if (!
|
|
159174
|
+
if (!http3 && !https2)
|
|
159543
159175
|
return;
|
|
159544
159176
|
const parse8 = (u2) => {
|
|
159545
159177
|
if (!u2)
|
|
@@ -159557,7 +159189,7 @@ function resolveParentProxy(cfg) {
|
|
|
159557
159189
|
return;
|
|
159558
159190
|
}
|
|
159559
159191
|
};
|
|
159560
|
-
const httpUrl2 = parse8(
|
|
159192
|
+
const httpUrl2 = parse8(http3);
|
|
159561
159193
|
const httpsUrl = parse8(https2);
|
|
159562
159194
|
if (!httpUrl2 && !httpsUrl)
|
|
159563
159195
|
return;
|
|
@@ -185374,10 +185006,10 @@ var require_aes = __commonJS((exports, module) => {
|
|
|
185374
185006
|
registerAlgorithm("AES-CTR", forge.cipher.modes.ctr);
|
|
185375
185007
|
registerAlgorithm("AES-GCM", forge.cipher.modes.gcm);
|
|
185376
185008
|
function registerAlgorithm(name, mode) {
|
|
185377
|
-
var
|
|
185009
|
+
var factory = function() {
|
|
185378
185010
|
return new forge.aes.Algorithm(name, mode);
|
|
185379
185011
|
};
|
|
185380
|
-
forge.cipher.registerAlgorithm(name,
|
|
185012
|
+
forge.cipher.registerAlgorithm(name, factory);
|
|
185381
185013
|
}
|
|
185382
185014
|
var init = false;
|
|
185383
185015
|
var Nb = 4;
|
|
@@ -187093,10 +186725,10 @@ var require_des = __commonJS((exports, module) => {
|
|
|
187093
186725
|
registerAlgorithm("3DES-OFB", forge.cipher.modes.ofb);
|
|
187094
186726
|
registerAlgorithm("3DES-CTR", forge.cipher.modes.ctr);
|
|
187095
186727
|
function registerAlgorithm(name, mode) {
|
|
187096
|
-
var
|
|
186728
|
+
var factory = function() {
|
|
187097
186729
|
return new forge.des.Algorithm(name, mode);
|
|
187098
186730
|
};
|
|
187099
|
-
forge.cipher.registerAlgorithm(name,
|
|
186731
|
+
forge.cipher.registerAlgorithm(name, factory);
|
|
187100
186732
|
}
|
|
187101
186733
|
var spfunction1 = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756];
|
|
187102
186734
|
var spfunction2 = [-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344];
|
|
@@ -187253,36 +186885,36 @@ var require_pbkdf2 = __commonJS((exports, module) => {
|
|
|
187253
186885
|
require_md();
|
|
187254
186886
|
require_util7();
|
|
187255
186887
|
var pkcs5 = forge.pkcs5 = forge.pkcs5 || {};
|
|
187256
|
-
var
|
|
186888
|
+
var crypto3;
|
|
187257
186889
|
if (forge.util.isNodejs && !forge.options.usePureJavaScript) {
|
|
187258
|
-
|
|
186890
|
+
crypto3 = __require("crypto");
|
|
187259
186891
|
}
|
|
187260
186892
|
module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function(p, s, c6, dkLen, md, callback) {
|
|
187261
186893
|
if (typeof md === "function") {
|
|
187262
186894
|
callback = md;
|
|
187263
186895
|
md = null;
|
|
187264
186896
|
}
|
|
187265
|
-
if (forge.util.isNodejs && !forge.options.usePureJavaScript &&
|
|
186897
|
+
if (forge.util.isNodejs && !forge.options.usePureJavaScript && crypto3.pbkdf2 && (md === null || typeof md !== "object") && (crypto3.pbkdf2Sync.length > 4 || (!md || md === "sha1"))) {
|
|
187266
186898
|
if (typeof md !== "string") {
|
|
187267
186899
|
md = "sha1";
|
|
187268
186900
|
}
|
|
187269
186901
|
p = Buffer.from(p, "binary");
|
|
187270
186902
|
s = Buffer.from(s, "binary");
|
|
187271
186903
|
if (!callback) {
|
|
187272
|
-
if (
|
|
187273
|
-
return
|
|
186904
|
+
if (crypto3.pbkdf2Sync.length === 4) {
|
|
186905
|
+
return crypto3.pbkdf2Sync(p, s, c6, dkLen).toString("binary");
|
|
187274
186906
|
}
|
|
187275
|
-
return
|
|
186907
|
+
return crypto3.pbkdf2Sync(p, s, c6, dkLen, md).toString("binary");
|
|
187276
186908
|
}
|
|
187277
|
-
if (
|
|
187278
|
-
return
|
|
186909
|
+
if (crypto3.pbkdf2Sync.length === 4) {
|
|
186910
|
+
return crypto3.pbkdf2(p, s, c6, dkLen, function(err3, key2) {
|
|
187279
186911
|
if (err3) {
|
|
187280
186912
|
return callback(err3);
|
|
187281
186913
|
}
|
|
187282
186914
|
callback(null, key2.toString("binary"));
|
|
187283
186915
|
});
|
|
187284
186916
|
}
|
|
187285
|
-
return
|
|
186917
|
+
return crypto3.pbkdf2(p, s, c6, dkLen, md, function(err3, key2) {
|
|
187286
186918
|
if (err3) {
|
|
187287
186919
|
return callback(err3);
|
|
187288
186920
|
}
|
|
@@ -191864,10 +191496,10 @@ var require_pbe = __commonJS((exports, module) => {
|
|
|
191864
191496
|
return prfAlgorithmToMessageDigest(prfAlgorithm);
|
|
191865
191497
|
}
|
|
191866
191498
|
function prfAlgorithmToMessageDigest(prfAlgorithm) {
|
|
191867
|
-
var
|
|
191499
|
+
var factory = forge.md;
|
|
191868
191500
|
switch (prfAlgorithm) {
|
|
191869
191501
|
case "hmacWithSHA224":
|
|
191870
|
-
|
|
191502
|
+
factory = forge.md.sha512;
|
|
191871
191503
|
case "hmacWithSHA1":
|
|
191872
191504
|
case "hmacWithSHA256":
|
|
191873
191505
|
case "hmacWithSHA384":
|
|
@@ -191886,10 +191518,10 @@ var require_pbe = __commonJS((exports, module) => {
|
|
|
191886
191518
|
];
|
|
191887
191519
|
throw error49;
|
|
191888
191520
|
}
|
|
191889
|
-
if (!
|
|
191521
|
+
if (!factory || !(prfAlgorithm in factory)) {
|
|
191890
191522
|
throw new Error("Unknown hash algorithm: " + prfAlgorithm);
|
|
191891
191523
|
}
|
|
191892
|
-
return
|
|
191524
|
+
return factory[prfAlgorithm].create();
|
|
191893
191525
|
}
|
|
191894
191526
|
function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) {
|
|
191895
191527
|
var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
@@ -204017,7 +203649,7 @@ var init_microCompact = __esm(() => {
|
|
|
204017
203649
|
function M2() {
|
|
204018
203650
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
204019
203651
|
}
|
|
204020
|
-
function
|
|
203652
|
+
function G2(u2) {
|
|
204021
203653
|
T = u2;
|
|
204022
203654
|
}
|
|
204023
203655
|
function k(u2, e = "") {
|
|
@@ -205276,12 +204908,12 @@ var init_marked_esm = __esm(() => {
|
|
|
205276
204908
|
};
|
|
205277
204909
|
L2 = new D2;
|
|
205278
204910
|
g.options = g.setOptions = function(u4) {
|
|
205279
|
-
return L2.setOptions(u4), g.defaults = L2.defaults,
|
|
204911
|
+
return L2.setOptions(u4), g.defaults = L2.defaults, G2(g.defaults), g;
|
|
205280
204912
|
};
|
|
205281
204913
|
g.getDefaults = M2;
|
|
205282
204914
|
g.defaults = T;
|
|
205283
204915
|
g.use = function(...u4) {
|
|
205284
|
-
return L2.use(...u4), g.defaults = L2.defaults,
|
|
204916
|
+
return L2.use(...u4), g.defaults = L2.defaults, G2(g.defaults), g;
|
|
205285
204917
|
};
|
|
205286
204918
|
g.walkTokens = function(u4, e) {
|
|
205287
204919
|
return L2.walkTokens(u4, e);
|
|
@@ -229249,7 +228881,7 @@ var require_hsp = __commonJS((exports, module) => {
|
|
|
229249
228881
|
|
|
229250
228882
|
// node_modules/highlight.js/lib/languages/http.js
|
|
229251
228883
|
var require_http = __commonJS((exports, module) => {
|
|
229252
|
-
function
|
|
228884
|
+
function http3(hljs) {
|
|
229253
228885
|
const regex2 = hljs.regex;
|
|
229254
228886
|
const VERSION4 = "HTTP/([32]|1\\.[01])";
|
|
229255
228887
|
const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/;
|
|
@@ -229332,7 +228964,7 @@ var require_http = __commonJS((exports, module) => {
|
|
|
229332
228964
|
]
|
|
229333
228965
|
};
|
|
229334
228966
|
}
|
|
229335
|
-
module.exports =
|
|
228967
|
+
module.exports = http3;
|
|
229336
228968
|
});
|
|
229337
228969
|
|
|
229338
228970
|
// node_modules/highlight.js/lib/languages/hy.js
|
|
@@ -272981,7 +272613,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
272981
272613
|
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
272982
272614
|
return urnComponent;
|
|
272983
272615
|
}
|
|
272984
|
-
var
|
|
272616
|
+
var http3 = {
|
|
272985
272617
|
scheme: "http",
|
|
272986
272618
|
domainHost: true,
|
|
272987
272619
|
parse: httpParse,
|
|
@@ -272989,7 +272621,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
272989
272621
|
};
|
|
272990
272622
|
var https2 = {
|
|
272991
272623
|
scheme: "https",
|
|
272992
|
-
domainHost:
|
|
272624
|
+
domainHost: http3.domainHost,
|
|
272993
272625
|
parse: httpParse,
|
|
272994
272626
|
serialize: httpSerialize
|
|
272995
272627
|
};
|
|
@@ -273018,7 +272650,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
273018
272650
|
skipNormalize: true
|
|
273019
272651
|
};
|
|
273020
272652
|
var SCHEMES = {
|
|
273021
|
-
http:
|
|
272653
|
+
http: http3,
|
|
273022
272654
|
https: https2,
|
|
273023
272655
|
ws,
|
|
273024
272656
|
wss,
|
|
@@ -278541,7 +278173,7 @@ function createFetchWithInit(baseFetch = fetch, baseInit) {
|
|
|
278541
278173
|
|
|
278542
278174
|
// node_modules/pkce-challenge/dist/index.node.js
|
|
278543
278175
|
async function getRandomValues(size) {
|
|
278544
|
-
return (await
|
|
278176
|
+
return (await crypto3).getRandomValues(new Uint8Array(size));
|
|
278545
278177
|
}
|
|
278546
278178
|
async function random(size) {
|
|
278547
278179
|
const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";
|
|
@@ -278561,7 +278193,7 @@ async function generateVerifier(length) {
|
|
|
278561
278193
|
return await random(length);
|
|
278562
278194
|
}
|
|
278563
278195
|
async function generateChallenge(code_verifier) {
|
|
278564
|
-
const buffer = await (await
|
|
278196
|
+
const buffer = await (await crypto3).subtle.digest("SHA-256", new TextEncoder().encode(code_verifier));
|
|
278565
278197
|
return btoa(String.fromCharCode(...new Uint8Array(buffer))).replace(/\//g, "_").replace(/\+/g, "-").replace(/=/g, "");
|
|
278566
278198
|
}
|
|
278567
278199
|
async function pkceChallenge(length) {
|
|
@@ -278577,9 +278209,9 @@ async function pkceChallenge(length) {
|
|
|
278577
278209
|
code_challenge: challenge
|
|
278578
278210
|
};
|
|
278579
278211
|
}
|
|
278580
|
-
var
|
|
278212
|
+
var crypto3;
|
|
278581
278213
|
var init_index_node = __esm(() => {
|
|
278582
|
-
|
|
278214
|
+
crypto3 = globalThis.crypto?.webcrypto ?? globalThis.crypto ?? import("node:crypto").then((m2) => m2.webcrypto);
|
|
278583
278215
|
});
|
|
278584
278216
|
|
|
278585
278217
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
@@ -280165,7 +279797,7 @@ async function pMap(iterable, mapper, {
|
|
|
280165
279797
|
let isIterableDone = false;
|
|
280166
279798
|
let resolvingCount = 0;
|
|
280167
279799
|
let currentIndex = 0;
|
|
280168
|
-
const
|
|
279800
|
+
const iterator = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
280169
279801
|
const signalListener = () => {
|
|
280170
279802
|
reject2(signal.reason);
|
|
280171
279803
|
};
|
|
@@ -280192,7 +279824,7 @@ async function pMap(iterable, mapper, {
|
|
|
280192
279824
|
if (isResolved) {
|
|
280193
279825
|
return;
|
|
280194
279826
|
}
|
|
280195
|
-
const nextItem = await
|
|
279827
|
+
const nextItem = await iterator.next();
|
|
280196
279828
|
const index = currentIndex;
|
|
280197
279829
|
currentIndex++;
|
|
280198
279830
|
if (nextItem.done) {
|
|
@@ -294363,7 +293995,7 @@ var require_extension = __commonJS((exports, module) => {
|
|
|
294363
293995
|
var require_websocket2 = __commonJS((exports, module) => {
|
|
294364
293996
|
var EventEmitter5 = __require("events");
|
|
294365
293997
|
var https2 = __require("https");
|
|
294366
|
-
var
|
|
293998
|
+
var http3 = __require("http");
|
|
294367
293999
|
var net3 = __require("net");
|
|
294368
294000
|
var tls2 = __require("tls");
|
|
294369
294001
|
var { randomBytes: randomBytes6, createHash: createHash9 } = __require("crypto");
|
|
@@ -294779,7 +294411,7 @@ var require_websocket2 = __commonJS((exports, module) => {
|
|
|
294779
294411
|
}
|
|
294780
294412
|
const defaultPort = isSecure ? 443 : 80;
|
|
294781
294413
|
const key2 = randomBytes6(16).toString("base64");
|
|
294782
|
-
const request = isSecure ? https2.request :
|
|
294414
|
+
const request = isSecure ? https2.request : http3.request;
|
|
294783
294415
|
const protocolSet = new Set;
|
|
294784
294416
|
let perMessageDeflate;
|
|
294785
294417
|
opts.createConnection = opts.createConnection || (isSecure ? tlsConnect2 : netConnect2);
|
|
@@ -295276,7 +294908,7 @@ var require_subprotocol = __commonJS((exports, module) => {
|
|
|
295276
294908
|
// node_modules/ws/lib/websocket-server.js
|
|
295277
294909
|
var require_websocket_server = __commonJS((exports, module) => {
|
|
295278
294910
|
var EventEmitter5 = __require("events");
|
|
295279
|
-
var
|
|
294911
|
+
var http3 = __require("http");
|
|
295280
294912
|
var { Duplex: Duplex4 } = __require("stream");
|
|
295281
294913
|
var { createHash: createHash9 } = __require("crypto");
|
|
295282
294914
|
var extension = require_extension();
|
|
@@ -295315,8 +294947,8 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
295315
294947
|
throw new TypeError('One and only one of the "port", "server", or "noServer" options ' + "must be specified");
|
|
295316
294948
|
}
|
|
295317
294949
|
if (options.port != null) {
|
|
295318
|
-
this._server =
|
|
295319
|
-
const body =
|
|
294950
|
+
this._server = http3.createServer((req, res) => {
|
|
294951
|
+
const body = http3.STATUS_CODES[426];
|
|
295320
294952
|
res.writeHead(426, {
|
|
295321
294953
|
"Content-Length": body.length,
|
|
295322
294954
|
"Content-Type": "text/plain"
|
|
@@ -295554,7 +295186,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
295554
295186
|
this.destroy();
|
|
295555
295187
|
}
|
|
295556
295188
|
function abortHandshake(socket, code, message, headers) {
|
|
295557
|
-
message = message ||
|
|
295189
|
+
message = message || http3.STATUS_CODES[code];
|
|
295558
295190
|
headers = {
|
|
295559
295191
|
Connection: "close",
|
|
295560
295192
|
"Content-Type": "text/html",
|
|
@@ -295562,7 +295194,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
295562
295194
|
...headers
|
|
295563
295195
|
};
|
|
295564
295196
|
socket.once("finish", socket.destroy);
|
|
295565
|
-
socket.end(`HTTP/1.1 ${code} ${
|
|
295197
|
+
socket.end(`HTTP/1.1 ${code} ${http3.STATUS_CODES[code]}\r
|
|
295566
295198
|
` + Object.keys(headers).map((h2) => `${h2}: ${headers[h2]}`).join(`\r
|
|
295567
295199
|
`) + `\r
|
|
295568
295200
|
\r
|
|
@@ -301739,7 +301371,7 @@ var require_global_utils = __commonJS((exports) => {
|
|
|
301739
301371
|
return true;
|
|
301740
301372
|
}
|
|
301741
301373
|
exports.registerGlobal = registerGlobal;
|
|
301742
|
-
function
|
|
301374
|
+
function getGlobal(type) {
|
|
301743
301375
|
var _a4, _b2;
|
|
301744
301376
|
const globalVersion = (_a4 = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a4 === undefined ? undefined : _a4.version;
|
|
301745
301377
|
if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
|
|
@@ -301747,7 +301379,7 @@ var require_global_utils = __commonJS((exports) => {
|
|
|
301747
301379
|
}
|
|
301748
301380
|
return (_b2 = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b2 === undefined ? undefined : _b2[type];
|
|
301749
301381
|
}
|
|
301750
|
-
exports.getGlobal =
|
|
301382
|
+
exports.getGlobal = getGlobal;
|
|
301751
301383
|
function unregisterGlobal(type, diag) {
|
|
301752
301384
|
diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
|
|
301753
301385
|
const api2 = _global2[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
@@ -305714,7 +305346,7 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
305714
305346
|
return;
|
|
305715
305347
|
}
|
|
305716
305348
|
level++;
|
|
305717
|
-
if (isPrimitive(one) || isPrimitive(two) ||
|
|
305349
|
+
if (isPrimitive(one) || isPrimitive(two) || isFunction3(two)) {
|
|
305718
305350
|
result = takeValue(two);
|
|
305719
305351
|
} else if (isArray4(one)) {
|
|
305720
305352
|
result = one.slice();
|
|
@@ -305782,11 +305414,11 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
305782
305414
|
function isArray4(value) {
|
|
305783
305415
|
return Array.isArray(value);
|
|
305784
305416
|
}
|
|
305785
|
-
function
|
|
305417
|
+
function isFunction3(value) {
|
|
305786
305418
|
return typeof value === "function";
|
|
305787
305419
|
}
|
|
305788
305420
|
function isObject5(value) {
|
|
305789
|
-
return !isPrimitive(value) && !isArray4(value) && !
|
|
305421
|
+
return !isPrimitive(value) && !isArray4(value) && !isFunction3(value) && typeof value === "object";
|
|
305790
305422
|
}
|
|
305791
305423
|
function isPrimitive(value) {
|
|
305792
305424
|
return typeof value === "string" || typeof value === "number" || typeof value === "boolean" || typeof value === "undefined" || value instanceof Date || value instanceof RegExp || value === null;
|
|
@@ -309770,8 +309402,8 @@ var require_TemporalMetricProcessor = __commonJS((exports) => {
|
|
|
309770
309402
|
}
|
|
309771
309403
|
static merge(last2, current, aggregator) {
|
|
309772
309404
|
const result = last2;
|
|
309773
|
-
const
|
|
309774
|
-
let next =
|
|
309405
|
+
const iterator = current.entries();
|
|
309406
|
+
let next = iterator.next();
|
|
309775
309407
|
while (next.done !== true) {
|
|
309776
309408
|
const [key2, record3, hash2] = next.value;
|
|
309777
309409
|
if (last2.has(key2, hash2)) {
|
|
@@ -309781,7 +309413,7 @@ var require_TemporalMetricProcessor = __commonJS((exports) => {
|
|
|
309781
309413
|
} else {
|
|
309782
309414
|
result.set(key2, record3, hash2);
|
|
309783
309415
|
}
|
|
309784
|
-
next =
|
|
309416
|
+
next = iterator.next();
|
|
309785
309417
|
}
|
|
309786
309418
|
return result;
|
|
309787
309419
|
}
|
|
@@ -342471,7 +342103,8 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342471
342103
|
} else {
|
|
342472
342104
|
let logs2 = null;
|
|
342473
342105
|
try {
|
|
342474
|
-
|
|
342106
|
+
const seq = getOrCreateSequential(sessionId);
|
|
342107
|
+
logs2 = await seq(sessionId, url3, headers, true);
|
|
342475
342108
|
} catch (fetchError) {
|
|
342476
342109
|
logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
|
|
342477
342110
|
logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
|
|
@@ -342523,8 +342156,9 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342523
342156
|
return false;
|
|
342524
342157
|
}
|
|
342525
342158
|
const delayMs = Math.min(BASE_DELAY_MS2 * Math.pow(2, attempt - 1), 8000);
|
|
342526
|
-
|
|
342527
|
-
|
|
342159
|
+
const jitteredDelay = delayMs * (0.75 + Math.random() * 0.5);
|
|
342160
|
+
logForDebugging(`Remote persistence attempt ${attempt}/${MAX_RETRIES} failed, retrying in ${jitteredDelay}ms…`);
|
|
342161
|
+
await sleep3(jitteredDelay);
|
|
342528
342162
|
}
|
|
342529
342163
|
return false;
|
|
342530
342164
|
}
|
|
@@ -342713,7 +342347,7 @@ function clearAllSessions() {
|
|
|
342713
342347
|
lastUuidMap.clear();
|
|
342714
342348
|
sequentialBySession.clear();
|
|
342715
342349
|
}
|
|
342716
|
-
var lastUuidMap, MAX_RETRIES =
|
|
342350
|
+
var lastUuidMap, MAX_RETRIES = 5, BASE_DELAY_MS2 = 500, sequentialBySession;
|
|
342717
342351
|
var init_sessionIngress = __esm(() => {
|
|
342718
342352
|
init_axios2();
|
|
342719
342353
|
init_oauth();
|
|
@@ -348657,9 +348291,9 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348657
348291
|
keys() {
|
|
348658
348292
|
const state = this._state;
|
|
348659
348293
|
let current = this._head;
|
|
348660
|
-
const
|
|
348294
|
+
const iterator = {
|
|
348661
348295
|
[Symbol.iterator]: () => {
|
|
348662
|
-
return
|
|
348296
|
+
return iterator;
|
|
348663
348297
|
},
|
|
348664
348298
|
next: () => {
|
|
348665
348299
|
if (this._state !== state) {
|
|
@@ -348674,14 +348308,14 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348674
348308
|
}
|
|
348675
348309
|
}
|
|
348676
348310
|
};
|
|
348677
|
-
return
|
|
348311
|
+
return iterator;
|
|
348678
348312
|
}
|
|
348679
348313
|
values() {
|
|
348680
348314
|
const state = this._state;
|
|
348681
348315
|
let current = this._head;
|
|
348682
|
-
const
|
|
348316
|
+
const iterator = {
|
|
348683
348317
|
[Symbol.iterator]: () => {
|
|
348684
|
-
return
|
|
348318
|
+
return iterator;
|
|
348685
348319
|
},
|
|
348686
348320
|
next: () => {
|
|
348687
348321
|
if (this._state !== state) {
|
|
@@ -348696,14 +348330,14 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348696
348330
|
}
|
|
348697
348331
|
}
|
|
348698
348332
|
};
|
|
348699
|
-
return
|
|
348333
|
+
return iterator;
|
|
348700
348334
|
}
|
|
348701
348335
|
entries() {
|
|
348702
348336
|
const state = this._state;
|
|
348703
348337
|
let current = this._head;
|
|
348704
|
-
const
|
|
348338
|
+
const iterator = {
|
|
348705
348339
|
[Symbol.iterator]: () => {
|
|
348706
|
-
return
|
|
348340
|
+
return iterator;
|
|
348707
348341
|
},
|
|
348708
348342
|
next: () => {
|
|
348709
348343
|
if (this._state !== state) {
|
|
@@ -348718,7 +348352,7 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348718
348352
|
}
|
|
348719
348353
|
}
|
|
348720
348354
|
};
|
|
348721
|
-
return
|
|
348355
|
+
return iterator;
|
|
348722
348356
|
}
|
|
348723
348357
|
[(_a4 = Symbol.toStringTag, Symbol.iterator)]() {
|
|
348724
348358
|
return this.entries();
|
|
@@ -494430,24 +494064,24 @@ class Project {
|
|
|
494430
494064
|
}
|
|
494431
494065
|
const batch = queue2.splice(0);
|
|
494432
494066
|
let content = "";
|
|
494433
|
-
const
|
|
494067
|
+
const resolvers3 = [];
|
|
494434
494068
|
for (const { entry, resolve: resolve47 } of batch) {
|
|
494435
494069
|
const line = jsonStringify(entry) + `
|
|
494436
494070
|
`;
|
|
494437
494071
|
if (content.length + line.length >= this.MAX_CHUNK_BYTES) {
|
|
494438
494072
|
await this.appendToFile(filePath, content);
|
|
494439
|
-
for (const r of
|
|
494073
|
+
for (const r of resolvers3) {
|
|
494440
494074
|
r();
|
|
494441
494075
|
}
|
|
494442
|
-
|
|
494076
|
+
resolvers3.length = 0;
|
|
494443
494077
|
content = "";
|
|
494444
494078
|
}
|
|
494445
494079
|
content += line;
|
|
494446
|
-
|
|
494080
|
+
resolvers3.push(resolve47);
|
|
494447
494081
|
}
|
|
494448
494082
|
if (content.length > 0) {
|
|
494449
494083
|
await this.appendToFile(filePath, content);
|
|
494450
|
-
for (const r of
|
|
494084
|
+
for (const r of resolvers3) {
|
|
494451
494085
|
r();
|
|
494452
494086
|
}
|
|
494453
494087
|
}
|
|
@@ -509197,7 +508831,7 @@ function startBunRelay(wsUrl, authHeader, wsAuthHeader) {
|
|
|
509197
508831
|
},
|
|
509198
508832
|
data(sock, data) {
|
|
509199
508833
|
const st = sock.data;
|
|
509200
|
-
const
|
|
508834
|
+
const adapter = {
|
|
509201
508835
|
write: (payload) => {
|
|
509202
508836
|
const bytes = typeof payload === "string" ? Buffer.from(payload, "utf8") : payload;
|
|
509203
508837
|
if (st.writeBuf.length > 0) {
|
|
@@ -509210,7 +508844,7 @@ function startBunRelay(wsUrl, authHeader, wsAuthHeader) {
|
|
|
509210
508844
|
},
|
|
509211
508845
|
end: () => sock.end()
|
|
509212
508846
|
};
|
|
509213
|
-
handleData(
|
|
508847
|
+
handleData(adapter, st, data, wsUrl, authHeader, wsAuthHeader);
|
|
509214
508848
|
},
|
|
509215
508849
|
drain(sock) {
|
|
509216
508850
|
const st = sock.data;
|
|
@@ -509244,13 +508878,13 @@ async function startNodeRelay(wsUrl, authHeader, wsAuthHeader) {
|
|
|
509244
508878
|
const server = createServer8((sock) => {
|
|
509245
508879
|
const st = newConnState();
|
|
509246
508880
|
states.set(sock, st);
|
|
509247
|
-
const
|
|
508881
|
+
const adapter = {
|
|
509248
508882
|
write: (payload) => {
|
|
509249
508883
|
sock.write(typeof payload === "string" ? payload : Buffer.from(payload));
|
|
509250
508884
|
},
|
|
509251
508885
|
end: () => sock.end()
|
|
509252
508886
|
};
|
|
509253
|
-
sock.on("data", (data) => handleData(
|
|
508887
|
+
sock.on("data", (data) => handleData(adapter, st, data, wsUrl, authHeader, wsAuthHeader));
|
|
509254
508888
|
sock.on("close", () => cleanupConn(states.get(sock)));
|
|
509255
508889
|
sock.on("error", (err2) => {
|
|
509256
508890
|
logForDebugging(`[upstreamproxy] client socket error: ${err2.message}`);
|
|
@@ -543040,7 +542674,7 @@ async function initialize4() {
|
|
|
543040
542674
|
return path27.split(platformPath2.sep).some((dir) => dir === ".git");
|
|
543041
542675
|
},
|
|
543042
542676
|
ignorePermissionErrors: true,
|
|
543043
|
-
usePolling:
|
|
542677
|
+
usePolling: USE_POLLING2,
|
|
543044
542678
|
interval: testOverrides2?.chokidarInterval ?? POLLING_INTERVAL_MS,
|
|
543045
542679
|
atomic: true
|
|
543046
542680
|
});
|
|
@@ -543153,7 +542787,7 @@ async function resetForTesting2(overrides) {
|
|
|
543153
542787
|
disposed3 = false;
|
|
543154
542788
|
testOverrides2 = overrides ?? null;
|
|
543155
542789
|
}
|
|
543156
|
-
var FILE_STABILITY_THRESHOLD_MS3 = 1000, FILE_STABILITY_POLL_INTERVAL_MS3 = 500, RELOAD_DEBOUNCE_MS = 300, POLLING_INTERVAL_MS = 2000,
|
|
542790
|
+
var FILE_STABILITY_THRESHOLD_MS3 = 1000, FILE_STABILITY_POLL_INTERVAL_MS3 = 500, RELOAD_DEBOUNCE_MS = 300, POLLING_INTERVAL_MS = 2000, USE_POLLING2, watcher4 = null, reloadTimer = null, pendingChangedPaths, initialized4 = false, disposed3 = false, dynamicSkillsCallbackRegistered = false, unregisterCleanup = null, skillsChanged, testOverrides2 = null, subscribe2, skillChangeDetector;
|
|
543157
542791
|
var init_skillChangeDetector = __esm(() => {
|
|
543158
542792
|
init_chokidar();
|
|
543159
542793
|
init_state();
|
|
@@ -543165,7 +542799,7 @@ var init_skillChangeDetector = __esm(() => {
|
|
|
543165
542799
|
init_debug();
|
|
543166
542800
|
init_fsOperations();
|
|
543167
542801
|
init_hooks5();
|
|
543168
|
-
|
|
542802
|
+
USE_POLLING2 = typeof Bun !== "undefined" || process.platform === "win32";
|
|
543169
542803
|
pendingChangedPaths = new Set;
|
|
543170
542804
|
skillsChanged = createSignal();
|
|
543171
542805
|
subscribe2 = skillsChanged.subscribe;
|
|
@@ -565052,9 +564686,9 @@ class SerialBatchEventUploader {
|
|
|
565052
564686
|
return exponential + jitter2;
|
|
565053
564687
|
}
|
|
565054
564688
|
releaseBackpressure() {
|
|
565055
|
-
const
|
|
564689
|
+
const resolvers3 = this.backpressureResolvers;
|
|
565056
564690
|
this.backpressureResolvers = [];
|
|
565057
|
-
for (const resolve49 of
|
|
564691
|
+
for (const resolve49 of resolvers3)
|
|
565058
564692
|
resolve49();
|
|
565059
564693
|
}
|
|
565060
564694
|
sleep(ms) {
|